create-turbo 2.7.2-canary.0 → 2.7.2-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +46 -46
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -1,73 +1,73 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var tO=Object.create;var Eh=Object.defineProperty;var rO=Object.getOwnPropertyDescriptor;var nO=Object.getOwnPropertyNames;var iO=Object.getPrototypeOf,sO=Object.prototype.hasOwnProperty;var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),oO=(t,e)=>{for(var r in e)Eh(t,r,{get:e[r],enumerable:!0})},aO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of nO(e))!sO.call(t,i)&&i!==r&&Eh(t,i,{get:()=>e[i],enumerable:!(n=rO(e,i))||n.enumerable});return t};var oe=(t,e,r)=>(r=t!=null?tO(iO(t)):{},aO(e||!t||!t.__esModule?Eh(r,"default",{value:t,enumerable:!0}):r,t));var Cg=A((z$,Lr)=>{function wh(t){return Lr.exports=wh=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},Lr.exports.__esModule=!0,Lr.exports.default=Lr.exports,wh(t)}Lr.exports=wh,Lr.exports.__esModule=!0,Lr.exports.default=Lr.exports});var Tg=A((W$,Br)=>{var Rg=Cg().default;function kg(){"use strict";Br.exports=kg=function(){return e},Br.exports.__esModule=!0,Br.exports.default=Br.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(P,L,G){P[L]=G.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(P,L,G){return Object.defineProperty(P,L,{value:G,enumerable:!0,configurable:!0,writable:!0}),P[L]}try{c({},"")}catch{c=function(G,Z,q){return G[Z]=q}}function l(P,L,G,Z){var q=L&&L.prototype instanceof w?L:w,g=Object.create(q.prototype),_=new te(Z||[]);return i(g,"_invoke",{value:W(P,G,_)}),g}function h(P,L,G){try{return{type:"normal",arg:P.call(L,G)}}catch(Z){return{type:"throw",arg:Z}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",p="executing",y="completed",m={};function w(){}function T(){}function F(){}var I={};c(I,o,function(){return this});var R=Object.getPrototypeOf,M=R&&R(R(j([])));M&&M!==r&&n.call(M,o)&&(I=M);var x=F.prototype=w.prototype=Object.create(I);function D(P){["next","throw","return"].forEach(function(L){c(P,L,function(G){return this._invoke(L,G)})})}function U(P,L){function G(q,g,_,v){var k=h(P[q],P,g);if(k.type!=="throw"){var S=k.arg,H=S.value;return H&&Rg(H)=="object"&&n.call(H,"__await")?L.resolve(H.__await).then(function($){G("next",$,_,v)},function($){G("throw",$,_,v)}):L.resolve(H).then(function($){S.value=$,_(S)},function($){return G("throw",$,_,v)})}v(k.arg)}var Z;i(this,"_invoke",{value:function(g,_){function v(){return new L(function(k,S){G(g,_,k,S)})}return Z=Z?Z.then(v,v):v()}})}function W(P,L,G){var Z=f;return function(q,g){if(Z===p)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 v=N(_,G);if(v){if(v===m)continue;return v}}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=p;var k=h(P,L,G);if(k.type==="normal"){if(Z=G.done?y:d,k.arg===m)continue;return{value:k.arg,done:G.done}}k.type==="throw"&&(Z=y,G.method="throw",G.arg=k.arg)}}}function N(P,L){var G=L.method,Z=P.iterator[G];if(Z===t)return L.delegate=null,G==="throw"&&P.iterator.return&&(L.method="return",L.arg=t,N(P,L),L.method==="throw")||G!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+G+"' method")),m;var q=h(Z,P.iterator,L.arg);if(q.type==="throw")return L.method="throw",L.arg=q.arg,L.delegate=null,m;var g=q.arg;return g?g.done?(L[P.resultName]=g.value,L.next=P.nextLoc,L.method!=="return"&&(L.method="next",L.arg=t),L.delegate=null,m):g:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,m)}function V(P){var L={tryLoc:P[0]};1 in P&&(L.catchLoc=P[1]),2 in P&&(L.finallyLoc=P[2],L.afterLoc=P[3]),this.tryEntries.push(L)}function Q(P){var L=P.completion||{};L.type="normal",delete L.arg,P.completion=L}function te(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(V,this),this.reset(!0)}function j(P){if(P||P===""){var L=P[o];if(L)return L.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var G=-1,Z=function q(){for(;++G<P.length;)if(n.call(P,G))return q.value=P[G],q.done=!1,q;return q.value=t,q.done=!0,q};return Z.next=Z}}throw new TypeError(Rg(P)+" is not iterable")}return T.prototype=F,i(x,"constructor",{value:F,configurable:!0}),i(F,"constructor",{value:T,configurable:!0}),T.displayName=c(F,u,"GeneratorFunction"),e.isGeneratorFunction=function(P){var L=typeof P=="function"&&P.constructor;return!!L&&(L===T||(L.displayName||L.name)==="GeneratorFunction")},e.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,F):(P.__proto__=F,c(P,u,"GeneratorFunction")),P.prototype=Object.create(x),P},e.awrap=function(P){return{__await:P}},D(U.prototype),c(U.prototype,a,function(){return this}),e.AsyncIterator=U,e.async=function(P,L,G,Z,q){q===void 0&&(q=Promise);var g=new U(l(P,L,G,Z),q);return e.isGeneratorFunction(L)?g:g.next().then(function(_){return _.done?_.value:g.next()})},D(x),c(x,u,"Generator"),c(x,o,function(){return this}),c(x,"toString",function(){return"[object Generator]"}),e.keys=function(P){var L=Object(P),G=[];for(var Z in L)G.push(Z);return G.reverse(),function q(){for(;G.length;){var g=G.pop();if(g in L)return q.value=g,q.done=!1,q}return q.done=!0,q}},e.values=j,te.prototype={constructor:te,reset:function(L){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),!L)for(var G in this)G.charAt(0)==="t"&&n.call(this,G)&&!isNaN(+G.slice(1))&&(this[G]=t)},stop:function(){this.done=!0;var L=this.tryEntries[0].completion;if(L.type==="throw")throw L.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var G=this;function Z(S,H){return _.type="throw",_.arg=L,G.next=S,H&&(G.method="next",G.arg=t),!!H}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 v=n.call(g,"catchLoc"),k=n.call(g,"finallyLoc");if(v&&k){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0);if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}else if(v){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0)}else{if(!k)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}}}},abrupt:function(L,G){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var q=this.tryEntries[Z];if(q.tryLoc<=this.prev&&n.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var g=q;break}}g&&(L==="break"||L==="continue")&&g.tryLoc<=G&&G<=g.finallyLoc&&(g=null);var _=g?g.completion:{};return _.type=L,_.arg=G,g?(this.method="next",this.next=g.finallyLoc,m):this.complete(_)},complete:function(L,G){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&G&&(this.next=G),m},finish:function(L){for(var G=this.tryEntries.length-1;G>=0;--G){var Z=this.tryEntries[G];if(Z.finallyLoc===L)return this.complete(Z.completion,Z.afterLoc),Q(Z),m}},catch:function(L){for(var G=this.tryEntries.length-1;G>=0;--G){var Z=this.tryEntries[G];if(Z.tryLoc===L){var q=Z.completion;if(q.type==="throw"){var g=q.arg;Q(Z)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(L,G,Z){return this.delegate={iterator:j(L),resultName:G,nextLoc:Z},this.method==="next"&&(this.arg=t),m}},e}Br.exports=kg,Br.exports.__esModule=!0,Br.exports.default=Br.exports});var Fg=A((V$,Og)=>{var za=Tg()();Og.exports=za;try{regeneratorRuntime=za}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=za:Function("r","regeneratorRuntime = r")(za)}});var Ig=A((mG,kh)=>{"use strict";var Pg=(t,...e)=>new Promise(r=>{r(t(...e))});kh.exports=Pg;kh.exports.default=Pg});var Bg=A((yG,Th)=>{"use strict";var uO=Ig(),Lg=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,n=()=>{r--,e.length>0&&e.shift()()},i=(a,u,...c)=>{r++;let l=uO(a,...c);u(l),l.then(n,n)},s=(a,u,...c)=>{r<t?i(a,u,...c):e.push(i.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};Th.exports=Lg;Th.exports.default=Lg});var jg=A((gG,Oh)=>{"use strict";var Ng=Bg(),Wa=class extends Error{constructor(e){super(),this.value=e}},cO=async(t,e)=>e(await t),lO=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Wa(e[0]);return!1},Mg=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Ng(r.concurrency),i=[...t].map(o=>[o,n(cO,o,e)]),s=Ng(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(lO,o)))}catch(o){if(o instanceof Wa)return o.value;throw o}};Oh.exports=Mg;Oh.exports.default=Mg});var zg=A((_G,Fh)=>{"use strict";var qg=require("path"),Va=require("fs"),{promisify:Ug}=require("util"),hO=jg(),fO=Ug(Va.stat),dO=Ug(Va.lstat),Hg={directory:"isDirectory",file:"isFile"};function $g({type:t}){if(!(t in Hg))throw new Error(`Invalid type specified: ${t}`)}var Gg=(t,e)=>t===void 0||e[Hg[t]]();Fh.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},$g(e);let r=e.allowSymlinks?fO:dO;return hO(t,async n=>{try{let i=await r(qg.resolve(e.cwd,n));return Gg(e.type,i)}catch{return!1}},e)};Fh.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},$g(e);let r=e.allowSymlinks?Va.statSync:Va.lstatSync;for(let n of t)try{let i=r(qg.resolve(e.cwd,n));if(Gg(e.type,i))return n}catch{}}});var Vg=A((bG,Ph)=>{"use strict";var Wg=require("fs"),{promisify:pO}=require("util"),mO=pO(Wg.access);Ph.exports=async t=>{try{return await mO(t),!0}catch{return!1}};Ph.exports.sync=t=>{try{return Wg.accessSync(t),!0}catch{return!1}}});var Kg=A((vG,ji)=>{"use strict";var hn=require("path"),Ya=zg(),Yg=Vg(),Ih=Symbol("findUp.stop");ji.exports=async(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return Ya(i,o);let a=await t(o.cwd);return typeof a=="string"?Ya([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Ih)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};ji.exports.sync=(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return Ya.sync(i,o);let a=t(o.cwd);return typeof a=="string"?Ya.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Ih)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};ji.exports.exists=Yg;ji.exports.sync.exists=Yg.sync;ji.exports.stop=Ih});var Q_=A(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.splitWhen=Gi.flatten=void 0;function HP(t){return t.reduce((e,r)=>[].concat(e,r),[])}Gi.flatten=HP;function $P(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Gi.splitWhen=$P});var eb=A(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.isEnoentCodeError=void 0;function GP(t){return t.code==="ENOENT"}tu.isEnoentCodeError=GP});var tb=A(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.createDirentFromStats=void 0;var Zh=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 zP(t,e){return new Zh(t,e)}ru.createDirentFromStats=zP});var rb=A(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.removeLeadingDotSegment=yr.escape=yr.makeAbsolute=yr.unixify=void 0;var WP=require("path"),VP=2,YP=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function KP(t){return t.replace(/\\/g,"/")}yr.unixify=KP;function ZP(t,e){return WP.resolve(t,e)}yr.makeAbsolute=ZP;function JP(t){return t.replace(YP,"\\$2")}yr.escape=JP;function XP(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(VP)}return t}yr.removeLeadingDotSegment=XP});var ib=A((HG,nb)=>{nb.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 ab=A(($G,ob)=>{var QP=ib(),sb={"{":"}","(":")","[":"]"},e5=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||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=sb[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},t5=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 n=sb[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};ob.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(QP(e))return!0;var n=e5;return r&&r.strict===!1&&(n=t5),n(e)}});var cb=A((GG,ub)=>{"use strict";var r5=ab(),n5=require("path").posix.dirname,i5=require("os").platform()==="win32",Jh="/",s5=/\\/g,o5=/[\{\[].*[\}\]]$/,a5=/(^|[^\\])([\{\[]|\([^\)]+$)/,u5=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ub.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&i5&&e.indexOf(Jh)<0&&(e=e.replace(s5,Jh)),o5.test(e)&&(e+=Jh),e+="a";do e=n5(e);while(r5(e)||a5.test(e));return e.replace(u5,"$1")}});var nu=A(Gt=>{"use strict";Gt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Gt.find=(t,e)=>t.nodes.find(r=>r.type===e);Gt.exceedsLimit=(t,e,r=1,n)=>n===!1||!Gt.isInteger(t)||!Gt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;Gt.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Gt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Gt.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;Gt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Gt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Gt.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&e.push(s)}return e};return r(t),e}});var iu=A((WG,hb)=>{"use strict";var lb=nu();hb.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&lb.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&lb.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(t)}});var db=A((VG,fb)=>{"use strict";fb.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var wb=A((YG,Eb)=>{"use strict";var pb=db(),Zn=(t,e,r)=>{if(pb(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(pb(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=t+":"+e+"="+i+s+o+a;if(Zn.cache.hasOwnProperty(u))return Zn.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 n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let h=vb(t)||vb(e),f={min:t,max:e,a:c,b:l},d=[],p=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=l<0?Math.abs(l):1;p=mb(y,Math.abs(c),f,n),c=f.a=0}return l>=0&&(d=mb(c,l,f,n)),f.negatives=p,f.positives=d,f.result=c5(p,d,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&d.length+p.length>1&&(f.result=`(?:${f.result})`),Zn.cache[u]=f,f.result};function c5(t,e,r){let n=Xh(t,e,"-",!1,r)||[],i=Xh(e,t,"",!1,r)||[],s=Xh(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function l5(t,e){let r=1,n=1,i=gb(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=gb(t,r);for(i=_b(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=_b(e+1,n)-1;return s=[...s],s.sort(d5),s}function h5(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=f5(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=p5(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function mb(t,e,r,n){let i=l5(t,e),s=[],o=t,a;for(let u=0;u<i.length;u++){let c=i[u],l=h5(String(o),String(c),n),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+bb(a.count),o=c+1;continue}r.isPadded&&(h=m5(c,r,n)),l.string=h+l.pattern+bb(l.count),s.push(l),o=c+1,a=l}return s}function Xh(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!yb(e,"string",a)&&s.push(r+a),n&&yb(e,"string",a)&&s.push(r+a)}return s}function f5(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function d5(t,e){return t>e?1:e>t?-1:0}function yb(t,e,r){return t.some(n=>n[e]===r)}function gb(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function _b(t,e){return t-t%Math.pow(10,e)}function bb(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function p5(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function vb(t){return/^-?(0+)\d/.test(t)}function m5(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Zn.cache={};Zn.clearCache=()=>Zn.cache={};Eb.exports=Zn});var tf=A((KG,kb)=>{"use strict";var y5=require("util"),Sb=wb(),xb=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),g5=t=>e=>t===!0?Number(e):String(e),Qh=t=>typeof t=="number"||typeof t=="string"&&t!=="",Oo=t=>Number.isInteger(+t),ef=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},_5=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,b5=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},ou=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},v5=(t,e,r)=>{t.negatives.sort((a,u)=>a<u?-1:a>u?1:0),t.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=e.capture?"":"?:",i="",s="",o;return t.positives.length&&(i=t.positives.map(a=>ou(String(a),r)).join("|")),t.negatives.length&&(s=`-(${n}${t.negatives.map(a=>ou(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,e.wrap?`(${n}${o})`:o},Ab=(t,e,r,n)=>{if(r)return Sb(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},Db=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return Sb(t,e,r)},Cb=(...t)=>new RangeError("Invalid range arguments: "+y5.inspect(...t)),Rb=(t,e,r)=>{if(r.strictRanges===!0)throw Cb([t,e]);return[]},E5=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},w5=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Cb([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=ef(a)||ef(u)||ef(c),h=l?Math.max(a.length,u.length,c.length):0,f=l===!1&&_5(t,e,n)===!1,d=n.transform||g5(f);if(n.toRegex&&r===1)return Ab(ou(t,h),ou(e,h),!0,n);let p={negatives:[],positives:[]},y=T=>p[T<0?"negatives":"positives"].push(Math.abs(T)),m=[],w=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):m.push(b5(d(i,w),h,f)),i=o?i-r:i+r,w++;return n.toRegex===!0?r>1?v5(p,n,h):Db(m,null,{wrap:!1,...n}):m},x5=(t,e,r=1,n={})=>{if(!Oo(t)&&t.length>1||!Oo(e)&&e.length>1)return Rb(t,e,n);let i=n.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(n.toRegex&&r===1)return Ab(u,c,!1,n);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?Db(l,null,{wrap:!1,options:n}):l},su=(t,e,r,n={})=>{if(e==null&&Qh(t))return[t];if(!Qh(t)||!Qh(e))return Rb(t,e,n);if(typeof r=="function")return su(t,e,1,{transform:r});if(xb(r))return su(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Oo(r)?Oo(t)&&Oo(e)?w5(t,e,r,i):x5(t,e,Math.max(Math.abs(r),1),i):r!=null&&!xb(r)?E5(r,i):su(t,e,1,r)};kb.exports=su});var Fb=A((ZG,Ob)=>{"use strict";var S5=tf(),Tb=nu(),A5=(t,e={})=>{let r=(n,i={})=>{let s=Tb.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return u+n.value;if(n.isClose===!0)return console.log("node.isClose",u,n.value),u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=Tb.reduce(n.nodes),h=S5(...l,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(t)};Ob.exports=A5});var Lb=A((JG,Ib)=>{"use strict";var D5=tf(),Pb=iu(),zi=nu(),Jn=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?zi.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(Jn(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Jn(i,s,r):i+s);return zi.flatten(n)},C5=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Jn(a.pop(),Pb(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Jn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=zi.reduce(i.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=D5(...h,e);f.length===0&&(f=Pb(i,e)),a.push(Jn(a.pop(),f)),i.nodes=[];return}let u=zi.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let h=0;h<i.nodes.length;h++){let f=i.nodes[h];if(f.type==="comma"&&i.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(Jn(a.pop(),c,u));continue}if(f.value&&f.type!=="open"){c.push(Jn(c.pop(),f.value));continue}f.nodes&&n(f,i)}return c};return zi.flatten(n(t))};Ib.exports=C5});var Nb=A((XG,Bb)=>{"use strict";Bb.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
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 Hb=A((QG,Ub)=>{"use strict";var R5=iu(),{MAX_LENGTH:Mb,CHAR_BACKSLASH:rf,CHAR_BACKTICK:k5,CHAR_COMMA:T5,CHAR_DOT:O5,CHAR_LEFT_PARENTHESES:F5,CHAR_RIGHT_PARENTHESES:P5,CHAR_LEFT_CURLY_BRACE:I5,CHAR_RIGHT_CURLY_BRACE:L5,CHAR_LEFT_SQUARE_BRACKET:jb,CHAR_RIGHT_SQUARE_BRACKET:qb,CHAR_DOUBLE_QUOTE:B5,CHAR_SINGLE_QUOTE:N5,CHAR_NO_BREAK_SPACE:M5,CHAR_ZERO_WIDTH_NOBREAK_SPACE:j5}=Nb(),q5=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Mb,r.maxLength):Mb;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,u=0,c=t.length,l=0,h=0,f,d=()=>t[l++],p=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(p({type:"bos"});l<c;)if(o=s[s.length-1],f=d(),!(f===j5||f===M5)){if(f===rf){p({type:"text",value:(e.keepEscaping?f:"")+d()});continue}if(f===qb){p({type:"text",value:"\\"+f});continue}if(f===jb){u++;let y;for(;l<c&&(y=d());){if(f+=y,y===jb){u++;continue}if(y===rf){f+=d();continue}if(y===qb&&(u--,u===0))break}p({type:"text",value:f});continue}if(f===F5){o=p({type:"paren",nodes:[]}),s.push(o),p({type:"text",value:f});continue}if(f===P5){if(o.type!=="paren"){p({type:"text",value:f});continue}o=s.pop(),p({type:"text",value:f}),o=s[s.length-1];continue}if(f===B5||f===N5||f===k5){let y=f,m;for(e.keepQuotes!==!0&&(f="");l<c&&(m=d());){if(m===rf){f+=m+d();continue}if(m===y){e.keepQuotes===!0&&(f+=m);break}f+=m}p({type:"text",value:f});continue}if(f===I5){h++;let m={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=p(m),s.push(o),p({type:"open",value:f});continue}if(f===L5){if(o.type!=="brace"){p({type:"text",value:f});continue}let y="close";o=s.pop(),o.close=!0,p({type:y,value:f}),h--,o=s[s.length-1];continue}if(f===T5&&h>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:R5(o)}]}p({type:"comma",value:f}),o.commas++;continue}if(f===O5&&h>0&&o.commas===0){let y=o.nodes;if(h===0||y.length===0){p({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"){y.pop();let m=y[y.length-1];m.value+=a.value+f,a=m,o.ranges--;continue}p({type:"dot",value:f});continue}p({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let y=s[s.length-1],m=y.nodes.indexOf(o);y.nodes.splice(m,1,...o.nodes)}while(s.length>0);return p({type:"eos"}),i};Ub.exports=q5});var zb=A((ez,Gb)=>{"use strict";var $b=iu(),U5=Fb(),H5=Lb(),$5=Hb(),Tt=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=Tt.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Tt.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Tt.parse=(t,e={})=>$5(t,e);Tt.stringify=(t,e={})=>$b(typeof t=="string"?Tt.parse(t,e):t,e);Tt.compile=(t,e={})=>(typeof t=="string"&&(t=Tt.parse(t,e)),U5(t,e));Tt.expand=(t,e={})=>{typeof t=="string"&&(t=Tt.parse(t,e));let r=H5(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Tt.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Tt.compile(t,e):Tt.expand(t,e);Gb.exports=Tt});var Fo=A((tz,Zb)=>{"use strict";var G5=require("path"),gr="\\\\/",Wb=`[^${gr}]`,jr="\\.",z5="\\+",W5="\\?",au="\\/",V5="(?=.)",Vb="[^/]",nf=`(?:${au}|$)`,Yb=`(?:^|${au})`,sf=`${jr}{1,2}${nf}`,Y5=`(?!${jr})`,K5=`(?!${Yb}${sf})`,Z5=`(?!${jr}{0,1}${nf})`,J5=`(?!${sf})`,X5=`[^.${au}]`,Q5=`${Vb}*?`,Kb={DOT_LITERAL:jr,PLUS_LITERAL:z5,QMARK_LITERAL:W5,SLASH_LITERAL:au,ONE_CHAR:V5,QMARK:Vb,END_ANCHOR:nf,DOTS_SLASH:sf,NO_DOT:Y5,NO_DOTS:K5,NO_DOT_SLASH:Z5,NO_DOTS_SLASH:J5,QMARK_NO_DOT:X5,STAR:Q5,START_ANCHOR:Yb},eI={...Kb,SLASH_LITERAL:`[${gr}]`,QMARK:Wb,STAR:`${Wb}*?`,DOTS_SLASH:`${jr}{1,2}(?:[${gr}]|$)`,NO_DOT:`(?!${jr})`,NO_DOTS:`(?!(?:^|[${gr}])${jr}{1,2}(?:[${gr}]|$))`,NO_DOT_SLASH:`(?!${jr}{0,1}(?:[${gr}]|$))`,NO_DOTS_SLASH:`(?!${jr}{1,2}(?:[${gr}]|$))`,QMARK_NO_DOT:`[^.${gr}]`,START_ANCHOR:`(?:^|[${gr}])`,END_ANCHOR:`(?:[${gr}]|$)`},tI={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"};Zb.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:tI,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:G5.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?eI:Kb}}});var Po=A(vt=>{"use strict";var rI=require("path"),nI=process.platform==="win32",{REGEX_BACKSLASH:iI,REGEX_REMOVE_BACKSLASH:sI,REGEX_SPECIAL_CHARS:oI,REGEX_SPECIAL_CHARS_GLOBAL:aI}=Fo();vt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);vt.hasRegexChars=t=>oI.test(t);vt.isRegexChar=t=>t.length===1&&vt.hasRegexChars(t);vt.escapeRegex=t=>t.replace(aI,"\\$1");vt.toPosixSlashes=t=>t.replace(iI,"/");vt.removeBackslashes=t=>t.replace(sI,e=>e==="\\"?"":e);vt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};vt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:nI===!0||rI.sep==="\\";vt.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?vt.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};vt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};vt.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var iv=A((nz,nv)=>{"use strict";var Jb=Po(),{CHAR_ASTERISK:of,CHAR_AT:uI,CHAR_BACKWARD_SLASH:Io,CHAR_COMMA:cI,CHAR_DOT:af,CHAR_EXCLAMATION_MARK:uf,CHAR_FORWARD_SLASH:rv,CHAR_LEFT_CURLY_BRACE:cf,CHAR_LEFT_PARENTHESES:lf,CHAR_LEFT_SQUARE_BRACKET:lI,CHAR_PLUS:hI,CHAR_QUESTION_MARK:Xb,CHAR_RIGHT_CURLY_BRACE:fI,CHAR_RIGHT_PARENTHESES:Qb,CHAR_RIGHT_SQUARE_BRACKET:dI}=Fo(),ev=t=>t===rv||t===Io,tv=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},pI=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,h=0,f=!1,d=!1,p=!1,y=!1,m=!1,w=!1,T=!1,F=!1,I=!1,R=!1,M=0,x,D,U={value:"",depth:0,isGlob:!1},W=()=>c>=n,N=()=>u.charCodeAt(c+1),V=()=>(x=D,u.charCodeAt(++c));for(;c<n;){D=V();let L;if(D===Io){T=U.backslashes=!0,D=V(),D===cf&&(w=!0);continue}if(w===!0||D===cf){for(M++;W()!==!0&&(D=V());){if(D===Io){T=U.backslashes=!0,V();continue}if(D===cf){M++;continue}if(w!==!0&&D===af&&(D=V())===af){if(f=U.isBrace=!0,p=U.isGlob=!0,R=!0,i===!0)continue;break}if(w!==!0&&D===cI){if(f=U.isBrace=!0,p=U.isGlob=!0,R=!0,i===!0)continue;break}if(D===fI&&(M--,M===0)){w=!1,f=U.isBrace=!0,R=!0;break}}if(i===!0)continue;break}if(D===rv){if(s.push(c),o.push(U),U={value:"",depth:0,isGlob:!1},R===!0)continue;if(x===af&&c===l+1){l+=2;continue}h=c+1;continue}if(r.noext!==!0&&(D===hI||D===uI||D===of||D===Xb||D===uf)===!0&&N()===lf){if(p=U.isGlob=!0,y=U.isExtglob=!0,R=!0,D===uf&&c===l&&(I=!0),i===!0){for(;W()!==!0&&(D=V());){if(D===Io){T=U.backslashes=!0,D=V();continue}if(D===Qb){p=U.isGlob=!0,R=!0;break}}continue}break}if(D===of){if(x===of&&(m=U.isGlobstar=!0),p=U.isGlob=!0,R=!0,i===!0)continue;break}if(D===Xb){if(p=U.isGlob=!0,R=!0,i===!0)continue;break}if(D===lI){for(;W()!==!0&&(L=V());){if(L===Io){T=U.backslashes=!0,V();continue}if(L===dI){d=U.isBracket=!0,p=U.isGlob=!0,R=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&D===uf&&c===l){F=U.negated=!0,l++;continue}if(r.noparen!==!0&&D===lf){if(p=U.isGlob=!0,i===!0){for(;W()!==!0&&(D=V());){if(D===lf){T=U.backslashes=!0,D=V();continue}if(D===Qb){R=!0;break}}continue}break}if(p===!0){if(R=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,p=!1);let Q=u,te="",j="";l>0&&(te=u.slice(0,l),u=u.slice(l),h-=l),Q&&p===!0&&h>0?(Q=u.slice(0,h),j=u.slice(h)):p===!0?(Q="",j=u):Q=u,Q&&Q!==""&&Q!=="/"&&Q!==u&&ev(Q.charCodeAt(Q.length-1))&&(Q=Q.slice(0,-1)),r.unescape===!0&&(j&&(j=Jb.removeBackslashes(j)),Q&&T===!0&&(Q=Jb.removeBackslashes(Q)));let P={prefix:te,input:t,start:l,base:Q,glob:j,isBrace:f,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:m,negated:F,negatedExtglob:I};if(r.tokens===!0&&(P.maxDepth=0,ev(D)||o.push(U),P.tokens=o),r.parts===!0||r.tokens===!0){let L;for(let G=0;G<s.length;G++){let Z=L?L+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,tv(o[G]),P.maxDepth+=o[G].depth),(G!==0||g!=="")&&a.push(g),L=q}if(L&&L+1<t.length){let G=t.slice(L+1);a.push(G),r.tokens&&(o[o.length-1].value=G,tv(o[o.length-1]),P.maxDepth+=o[o.length-1].depth)}P.slashes=s,P.parts=a}return P};nv.exports=pI});var av=A((iz,ov)=>{"use strict";var uu=Fo(),Ot=Po(),{MAX_LENGTH:cu,POSIX_REGEX_SOURCE:mI,REGEX_NON_SPECIAL_CHARS:yI,REGEX_SPECIAL_CHARS_BACKREF:gI,REPLACEMENTS:sv}=uu,_I=(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(i=>Ot.escapeRegex(i)).join("..")}return r},Wi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,hf=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=sv[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(cu,r.maxLength):cu,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=Ot.isWindows(e),c=uu.globChars(u),l=uu.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:m,NO_DOT_SLASH:w,NO_DOTS_SLASH:T,QMARK:F,QMARK_NO_DOT:I,STAR:R,START_ANCHOR:M}=c,x=Y=>`(${a}(?:(?!${M}${Y.dot?y:h}).)*?)`,D=r.dot?"":m,U=r.dot?F:I,W=r.bash===!0?x(r):R;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=Ot.removePrefix(t,N),i=t.length;let V=[],Q=[],te=[],j=s,P,L=()=>N.index===i-1,G=N.peek=(Y=1)=>t[N.index+Y],Z=N.advance=()=>t[++N.index]||"",q=()=>t.slice(N.index+1),g=(Y="",fe=0)=>{N.consumed+=Y,N.index+=fe},_=Y=>{N.output+=Y.output!=null?Y.output:Y.value,g(Y.value)},v=()=>{let Y=1;for(;G()==="!"&&(G(2)!=="("||G(3)==="?");)Z(),N.start++,Y++;return Y%2===0?!1:(N.negated=!0,N.start++,!0)},k=Y=>{N[Y]++,te.push(Y)},S=Y=>{N[Y]--,te.pop()},H=Y=>{if(j.type==="globstar"){let fe=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"&&!fe&&!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,fe)=>{let J={...l[fe],conditions:1,inner:""};J.prev=j,J.parens=N.parens,J.output=N.output;let E=(r.capture?"(":"")+J.open;k("parens"),H({type:Y,value:fe,output:N.output?"":p}),H({type:"paren",extglob:!0,value:Z(),output:E}),V.push(J)},ne=Y=>{let fe=Y.close+(r.capture?")":""),J;if(Y.type==="negate"){let E=W;if(Y.inner&&Y.inner.length>1&&Y.inner.includes("/")&&(E=x(r)),(E!==W||L()||/^\)+$/.test(q()))&&(fe=Y.close=`)$))${E}`),Y.inner.includes("*")&&(J=q())&&/^\.[^\\/.]+$/.test(J)){let B=hf(J,{...e,fastpaths:!1}).output;fe=Y.close=`)${B})${E})`}Y.prev.type==="bos"&&(N.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:P,output:fe}),S("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let Y=!1,fe=t.replace(gI,(J,E,B,C,X,b)=>C==="\\"?(Y=!0,J):C==="?"?E?E+C+(X?F.repeat(X.length):""):b===0?U+(X?F.repeat(X.length):""):F.repeat(B.length):C==="."?h.repeat(B.length):C==="*"?E?E+C+(X?W:""):W:E?J:`\\${J}`);return Y===!0&&(r.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),fe===t&&r.contains===!0?(N.output=t,N):(N.output=Ot.wrapOutput(fe,N,e),N)}for(;!L();){if(P=Z(),P==="\0")continue;if(P==="\\"){let J=G();if(J==="/"&&r.bash!==!0||J==="."||J===";")continue;if(!J){P+="\\",H({type:"text",value:P});continue}let E=/^\\+/.exec(q()),B=0;if(E&&E[0].length>2&&(B=E[0].length,N.index+=B,B%2!==0&&(P+="\\")),r.unescape===!0?P=Z():P+=Z(),N.brackets===0){H({type:"text",value:P});continue}}if(N.brackets>0&&(P!=="]"||j.value==="["||j.value==="[^")){if(r.posix!==!1&&P===":"){let J=j.value.slice(1);if(J.includes("[")&&(j.posix=!0,J.includes(":"))){let E=j.value.lastIndexOf("["),B=j.value.slice(0,E),C=j.value.slice(E+2),X=mI[C];if(X){j.value=B+X,N.backtrack=!0,Z(),!s.output&&o.indexOf(j)===1&&(s.output=p);continue}}}(P==="["&&G()!==":"||P==="-"&&G()==="]")&&(P=`\\${P}`),P==="]"&&(j.value==="["||j.value==="[^")&&(P=`\\${P}`),r.posix===!0&&P==="!"&&j.value==="["&&(P="^"),j.value+=P,_({value:P});continue}if(N.quotes===1&&P!=='"'){P=Ot.escapeRegex(P),j.value+=P,_({value:P});continue}if(P==='"'){N.quotes=N.quotes===1?0:1,r.keepQuotes===!0&&H({type:"text",value:P});continue}if(P==="("){k("parens"),H({type:"paren",value:P});continue}if(P===")"){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){ne(V.pop());continue}H({type:"paren",value:P,output:N.parens?")":"\\)"}),S("parens");continue}if(P==="["){if(r.nobracket===!0||!q().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));P=`\\${P}`}else k("brackets");H({type:"bracket",value:P});continue}if(P==="]"){if(r.nobracket===!0||j&&j.type==="bracket"&&j.value.length===1){H({type:"text",value:P,output:`\\${P}`});continue}if(N.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wi("opening","["));H({type:"text",value:P,output:`\\${P}`});continue}S("brackets");let J=j.value.slice(1);if(j.posix!==!0&&J[0]==="^"&&!J.includes("/")&&(P=`/${P}`),j.value+=P,_({value:P}),r.literalBrackets===!1||Ot.hasRegexChars(J))continue;let E=Ot.escapeRegex(j.value);if(N.output=N.output.slice(0,-j.value.length),r.literalBrackets===!0){N.output+=E,j.value=E;continue}j.value=`(${a}${E}|${j.value})`,N.output+=j.value;continue}if(P==="{"&&r.nobrace!==!0){k("braces");let J={type:"brace",value:P,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};Q.push(J),H(J);continue}if(P==="}"){let J=Q[Q.length-1];if(r.nobrace===!0||!J){H({type:"text",value:P,output:P});continue}let E=")";if(J.dots===!0){let B=o.slice(),C=[];for(let X=B.length-1;X>=0&&(o.pop(),B[X].type!=="brace");X--)B[X].type!=="dots"&&C.unshift(B[X].value);E=_I(C,r),N.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let B=N.output.slice(0,J.outputIndex),C=N.tokens.slice(J.tokensIndex);J.value=J.output="\\{",P=E="\\}",N.output=B;for(let X of C)N.output+=X.output||X.value}H({type:"brace",value:P,output:E}),S("braces"),Q.pop();continue}if(P==="|"){V.length>0&&V[V.length-1].conditions++,H({type:"text",value:P});continue}if(P===","){let J=P,E=Q[Q.length-1];E&&te[te.length-1]==="braces"&&(E.comma=!0,J="|"),H({type:"comma",value:P,output:J});continue}if(P==="/"){if(j.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",o.pop(),j=s;continue}H({type:"slash",value:P,output:d});continue}if(P==="."){if(N.braces>0&&j.type==="dot"){j.value==="."&&(j.output=h);let J=Q[Q.length-1];j.type="dots",j.output+=P,j.value+=P,J.dots=!0;continue}if(N.braces+N.parens===0&&j.type!=="bos"&&j.type!=="slash"){H({type:"text",value:P,output:h});continue}H({type:"dot",value:P,output:h});continue}if(P==="?"){if(!(j&&j.value==="(")&&r.noextglob!==!0&&G()==="("&&G(2)!=="?"){$("qmark",P);continue}if(j&&j.type==="paren"){let E=G(),B=P;if(E==="<"&&!Ot.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(j.value==="("&&!/[!=<:]/.test(E)||E==="<"&&!/<([!=]|\w+>)/.test(q()))&&(B=`\\${P}`),H({type:"text",value:P,output:B});continue}if(r.dot!==!0&&(j.type==="slash"||j.type==="bos")){H({type:"qmark",value:P,output:I});continue}H({type:"qmark",value:P,output:F});continue}if(P==="!"){if(r.noextglob!==!0&&G()==="("&&(G(2)!=="?"||!/[!=<:]/.test(G(3)))){$("negate",P);continue}if(r.nonegate!==!0&&N.index===0){v();continue}}if(P==="+"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){$("plus",P);continue}if(j&&j.value==="("||r.regex===!1){H({type:"plus",value:P,output:f});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||N.parens>0){H({type:"plus",value:P});continue}H({type:"plus",value:f});continue}if(P==="@"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){H({type:"at",extglob:!0,value:P,output:""});continue}H({type:"text",value:P});continue}if(P!=="*"){(P==="$"||P==="^")&&(P=`\\${P}`);let J=yI.exec(q());J&&(P+=J[0],N.index+=J[0].length),H({type:"text",value:P});continue}if(j&&(j.type==="globstar"||j.star===!0)){j.type="star",j.star=!0,j.value+=P,j.output=W,N.backtrack=!0,N.globstar=!0,g(P);continue}let Y=q();if(r.noextglob!==!0&&/^\([^?]/.test(Y)){$("star",P);continue}if(j.type==="star"){if(r.noglobstar===!0){g(P);continue}let J=j.prev,E=J.prev,B=J.type==="slash"||J.type==="bos",C=E&&(E.type==="star"||E.type==="globstar");if(r.bash===!0&&(!B||Y[0]&&Y[0]!=="/")){H({type:"star",value:P,output:""});continue}let X=N.braces>0&&(J.type==="comma"||J.type==="brace"),b=V.length&&(J.type==="pipe"||J.type==="paren");if(!B&&J.type!=="paren"&&!X&&!b){H({type:"star",value:P,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"&&L()){j.type="globstar",j.value+=P,j.output=x(r),N.output=j.output,N.globstar=!0,g(P);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!C&&L()){N.output=N.output.slice(0,-(J.output+j.output).length),J.output=`(?:${J.output}`,j.type="globstar",j.output=x(r)+(r.strictSlashes?")":"|$)"),j.value+=P,N.globstar=!0,N.output+=J.output+j.output,g(P);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=`${x(r)}${d}|${d}${z})`,j.value+=P,N.output+=J.output+j.output,N.globstar=!0,g(P+Z()),H({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&Y[0]==="/"){j.type="globstar",j.value+=P,j.output=`(?:^|${d}|${x(r)}${d})`,N.output=j.output,N.globstar=!0,g(P+Z()),H({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-j.output.length),j.type="globstar",j.output=x(r),j.value+=P,N.output+=j.output,N.globstar=!0,g(P);continue}let fe={type:"star",value:P,output:W};if(r.bash===!0){fe.output=".*?",(j.type==="bos"||j.type==="slash")&&(fe.output=D+fe.output),H(fe);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&r.regex===!0){fe.output=P,H(fe);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+=T,j.output+=T):(N.output+=D,j.output+=D),G()!=="*"&&(N.output+=p,j.output+=p)),H(fe)}for(;N.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));N.output=Ot.escapeLast(N.output,"["),S("brackets")}for(;N.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing",")"));N.output=Ot.escapeLast(N.output,"("),S("parens")}for(;N.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","}"));N.output=Ot.escapeLast(N.output,"{"),S("braces")}if(r.strictSlashes!==!0&&(j.type==="star"||j.type==="bracket")&&H({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};hf.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(cu,r.maxLength):cu,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=sv[t]||t;let s=Ot.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:p}=uu.globChars(s),y=r.dot?h:l,m=r.dot?f:l,w=r.capture?"":"?:",T={negated:!1,prefix:""},F=r.bash===!0?".*?":d;r.capture&&(F=`(${F})`);let I=D=>D.noglobstar===!0?F:`(${w}(?:(?!${p}${D.dot?c:o}).)*?)`,R=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}${m}${F}`;case"**":return y+I(r);case"**/*":return`(?:${y}${I(r)}${a})?${m}${u}${F}`;case"**/*.*":return`(?:${y}${I(r)}${a})?${m}${F}${o}${u}${F}`;case"**/.*":return`(?:${y}${I(r)}${a})?${o}${u}${F}`;default:{let U=/^(.*?)\.(\w+)$/.exec(D);if(!U)return;let W=R(U[1]);return W?W+o+U[2]:void 0}}},M=Ot.removePrefix(t,T),x=R(M);return x&&r.strictSlashes!==!0&&(x+=`${a}?`),x};ov.exports=hf});var cv=A((sz,uv)=>{"use strict";var bI=require("path"),vI=iv(),ff=av(),df=Po(),EI=Fo(),wI=t=>t&&typeof t=="object"&&!Array.isArray(t),je=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(f=>je(f,e,r));return f=>{for(let d of l){let p=d(f);if(p)return p}return!1}}let n=wI(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=df.isWindows(e),o=n?je.compileRe(t,e):je.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=je(i.ignore,l,r)}let c=(l,h=!1)=>{let{isMatch:f,match:d,output:p}=je.test(l,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:l,output:p,match:d,isMatch:f};return typeof i.onResult=="function"&&i.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),h?y:!0)};return r&&(c.state=a),c};je.test=(t,e,r,{glob:n,posix:i}={})=>{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||(i?df.toPosixSlashes:null),a=t===n,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=je.matchBase(t,e,r,i):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};je.matchBase=(t,e,r,n=df.isWindows(r))=>(e instanceof RegExp?e:je.makeRe(e,r)).test(bI.basename(t));je.isMatch=(t,e,r)=>je(e,r)(t);je.parse=(t,e)=>Array.isArray(t)?t.map(r=>je.parse(r,e)):ff(t,{...e,fastpaths:!1});je.scan=(t,e)=>vI(t,e);je.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=je.toRegex(a,e);return n===!0&&(u.state=t),u};je.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=ff.fastpaths(t,e)),i.output||(i=ff(t,e)),je.compileRe(i,e,r,n)};je.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/$^/}};je.constants=EI;uv.exports=je});var hv=A((oz,lv)=>{"use strict";lv.exports=cv()});var gv=A((az,yv)=>{"use strict";var dv=require("util"),pv=zb(),_r=hv(),pf=Po(),fv=t=>t===""||t==="./",mv=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},Ie=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=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=_r(String(e[l]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let p=h(d,!0);(f?!p.isMatch:p.isMatch)&&(f?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let c=(o===e.length?[...s]:[...i]).filter(l=>!n.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};Ie.match=Ie;Ie.matcher=(t,e)=>_r(t,e);Ie.isMatch=(t,e,r)=>_r(e,r)(t);Ie.any=Ie.isMatch;Ie.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Ie(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Ie.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${dv.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>Ie.contains(t,n,r));if(typeof e=="string"){if(fv(t)||fv(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Ie.isMatch(t,e,{...r,contains:!0})};Ie.matchKeys=(t,e,r)=>{if(!pf.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=Ie(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};Ie.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=_r(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Ie.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=_r(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Ie.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${dv.inspect(t)}"`);return[].concat(e).every(n=>_r(n,r)(t))};Ie.capture=(t,e,r)=>{let n=pf.isWindows(r),s=_r.makeRe(String(t),{...r,capture:!0}).exec(n?pf.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Ie.makeRe=(...t)=>_r.makeRe(...t);Ie.scan=(...t)=>_r.scan(...t);Ie.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of pv(String(n),e))r.push(_r.parse(i,e));return r};Ie.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!mv(t)?[t]:pv(t,e)};Ie.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Ie.braces(t,{...e,expand:!0})};Ie.hasBraces=mv;yv.exports=Ie});var Av=A(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.matchAny=ve.convertPatternsToRe=ve.makeRe=ve.getPatternParts=ve.expandBraceExpansion=ve.expandPatternsWithBraceExpansion=ve.isAffectDepthOfReadingPattern=ve.endsWithSlashGlobStar=ve.hasGlobStar=ve.getBaseDirectory=ve.isPatternRelatedToParentDirectory=ve.getPatternsOutsideCurrentDirectory=ve.getPatternsInsideCurrentDirectory=ve.getPositivePatterns=ve.getNegativePatterns=ve.isPositivePattern=ve.isNegativePattern=ve.convertToNegativePattern=ve.convertToPositivePattern=ve.isDynamicPattern=ve.isStaticPattern=void 0;var xI=require("path"),SI=cb(),mf=gv(),_v="**",AI="\\",DI=/[*?]|^!/,CI=/\[[^[]*]/,RI=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,kI=/[!*+?@]\([^(]*\)/,TI=/,|\.\./;function bv(t,e={}){return!vv(t,e)}ve.isStaticPattern=bv;function vv(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(AI)||DI.test(t)||CI.test(t)||RI.test(t)||e.extglob!==!1&&kI.test(t)||e.braceExpansion!==!1&&OI(t))}ve.isDynamicPattern=vv;function OI(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return TI.test(n)}function FI(t){return lu(t)?t.slice(1):t}ve.convertToPositivePattern=FI;function PI(t){return"!"+t}ve.convertToNegativePattern=PI;function lu(t){return t.startsWith("!")&&t[1]!=="("}ve.isNegativePattern=lu;function Ev(t){return!lu(t)}ve.isPositivePattern=Ev;function II(t){return t.filter(lu)}ve.getNegativePatterns=II;function LI(t){return t.filter(Ev)}ve.getPositivePatterns=LI;function BI(t){return t.filter(e=>!yf(e))}ve.getPatternsInsideCurrentDirectory=BI;function NI(t){return t.filter(yf)}ve.getPatternsOutsideCurrentDirectory=NI;function yf(t){return t.startsWith("..")||t.startsWith("./..")}ve.isPatternRelatedToParentDirectory=yf;function MI(t){return SI(t,{flipBackslashes:!1})}ve.getBaseDirectory=MI;function jI(t){return t.includes(_v)}ve.hasGlobStar=jI;function wv(t){return t.endsWith("/"+_v)}ve.endsWithSlashGlobStar=wv;function qI(t){let e=xI.basename(t);return wv(t)||bv(e)}ve.isAffectDepthOfReadingPattern=qI;function UI(t){return t.reduce((e,r)=>e.concat(xv(r)),[])}ve.expandPatternsWithBraceExpansion=UI;function xv(t){return mf.braces(t,{expand:!0,nodupes:!0})}ve.expandBraceExpansion=xv;function HI(t,e){let{parts:r}=mf.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}ve.getPatternParts=HI;function Sv(t,e){return mf.makeRe(t,e)}ve.makeRe=Sv;function $I(t,e){return t.map(r=>Sv(r,e))}ve.convertPatternsToRe=$I;function GI(t,e){return e.some(r=>r.test(t))}ve.matchAny=GI});var kv=A((cz,Rv)=>{"use strict";var zI=require("stream"),Dv=zI.PassThrough,WI=Array.prototype.slice;Rv.exports=VI;function VI(){let t=[],e=WI.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Dv(n);function a(){for(let l=0,h=arguments.length;l<h;l++)t.push(Cv(arguments[l],n));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(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),s&&p.removeListener("error",m),f()}function m(w){o.emit("error",w)}if(p._readableState.endEmitted)return f();p.on("merge2UnpipeEnd",y),p.on("end",y),s&&p.on("error",m),p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<l.length;p++)d(l[p]);f()}function c(){r=!1,o.emit("queueDrain"),i&&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 Cv(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Cv(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Dv(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Ov=A(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.merge=void 0;var YI=kv();function KI(t){let e=YI(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>Tv(t)),e.once("end",()=>Tv(t)),e}hu.merge=KI;function Tv(t){t.forEach(e=>e.emit("close"))}});var Fv=A(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.isEmpty=Vi.isString=void 0;function ZI(t){return typeof t=="string"}Vi.isString=ZI;function JI(t){return t===""}Vi.isEmpty=JI});var qr=A(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.string=ot.stream=ot.pattern=ot.path=ot.fs=ot.errno=ot.array=void 0;var XI=Q_();ot.array=XI;var QI=eb();ot.errno=QI;var eL=tb();ot.fs=eL;var tL=rb();ot.path=tL;var rL=Av();ot.pattern=rL;var nL=Ov();ot.stream=nL;var iL=Fv();ot.string=iL});var Lv=A(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.convertPatternGroupToTask=at.convertPatternGroupsToTasks=at.groupPatternsByBaseDirectory=at.getNegativePatternsAsPositive=at.getPositivePatterns=at.convertPatternsToTasks=at.generate=void 0;var Ur=qr();function sL(t,e){let r=Pv(t),n=Iv(t,e.ignore),i=r.filter(u=>Ur.pattern.isStaticPattern(u,e)),s=r.filter(u=>Ur.pattern.isDynamicPattern(u,e)),o=gf(i,n,!1),a=gf(s,n,!0);return o.concat(a)}at.generate=sL;function gf(t,e,r){let n=[],i=Ur.pattern.getPatternsOutsideCurrentDirectory(t),s=Ur.pattern.getPatternsInsideCurrentDirectory(t),o=_f(i),a=_f(s);return n.push(...bf(o,e,r)),"."in a?n.push(vf(".",s,e,r)):n.push(...bf(a,e,r)),n}at.convertPatternsToTasks=gf;function Pv(t){return Ur.pattern.getPositivePatterns(t)}at.getPositivePatterns=Pv;function Iv(t,e){return Ur.pattern.getNegativePatterns(t).concat(e).map(Ur.pattern.convertToPositivePattern)}at.getNegativePatternsAsPositive=Iv;function _f(t){let e={};return t.reduce((r,n)=>{let i=Ur.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}at.groupPatternsByBaseDirectory=_f;function bf(t,e,r){return Object.keys(t).map(n=>vf(n,t[n],e,r))}at.convertPatternGroupsToTasks=bf;function vf(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ur.pattern.convertToNegativePattern))}}at.convertPatternGroupToTask=vf});var Nv=A(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.removeDuplicateSlashes=Yi.transform=void 0;var oL=/(?!^)\/{2,}/g;function aL(t){return t.map(e=>Bv(e))}Yi.transform=aL;function Bv(t){return t.replace(oL,"/")}Yi.removeDuplicateSlashes=Bv});var jv=A(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.read=void 0;function uL(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Mv(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){Ef(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Mv(r,s);return}Ef(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Ef(r,o)})})}fu.read=uL;function Mv(t,e){t(e)}function Ef(t,e){t(null,e)}});var qv=A(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.read=void 0;function cL(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}du.read=cL});var Uv=A(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.createFileSystemAdapter=pn.FILE_SYSTEM_ADAPTER=void 0;var pu=require("fs");pn.FILE_SYSTEM_ADAPTER={lstat:pu.lstat,stat:pu.stat,lstatSync:pu.lstatSync,statSync:pu.statSync};function lL(t){return t===void 0?pn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},pn.FILE_SYSTEM_ADAPTER),t)}pn.createFileSystemAdapter=lL});var Hv=A(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var hL=Uv(),wf=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=hL.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}};xf.default=wf});var Xn=A(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.statSync=mn.stat=mn.Settings=void 0;var $v=jv(),fL=qv(),Sf=Hv();mn.Settings=Sf.default;function dL(t,e,r){if(typeof e=="function"){$v.read(t,Af(),e);return}$v.read(t,Af(e),r)}mn.stat=dL;function pL(t,e){let r=Af(e);return fL.read(t,r)}mn.statSync=pL;function Af(t={}){return t instanceof Sf.default?t:new Sf.default(t)}});var Wv=A((vz,zv)=>{var Gv;zv.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Gv||(Gv=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Yv=A((Ez,Vv)=>{Vv.exports=yL;var mL=Wv();function yL(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(u){function c(){e&&e(u,r),e=null}s?mL(c):c()}function a(u,c,l){r[u]=l,(--n===0||c)&&o(c)}n?i?i.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 Df=A(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var mu=process.versions.node.split(".");if(mu[0]===void 0||mu[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Kv=Number.parseInt(mu[0],10),gL=Number.parseInt(mu[1],10),Zv=10,_L=10,bL=Kv>Zv,vL=Kv===Zv&&gL>=_L;yu.IS_SUPPORT_READDIR_WITH_FILE_TYPES=bL||vL});var Jv=A(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.createDirentFromStats=void 0;var Cf=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 EL(t,e){return new Cf(t,e)}gu.createDirentFromStats=EL});var Rf=A(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.fs=void 0;var wL=Jv();_u.fs=wL});var kf=A(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.joinPathSegments=void 0;function xL(t,e,r){return t.endsWith(r)?t+e:t+r+e}bu.joinPathSegments=xL});var nE=A(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.readdir=yn.readdirWithFileTypes=yn.read=void 0;var SL=Xn(),Xv=Yv(),AL=Df(),Qv=Rf(),eE=kf();function DL(t,e,r){if(!e.stats&&AL.IS_SUPPORT_READDIR_WITH_FILE_TYPES){tE(t,e,r);return}rE(t,e,r)}yn.read=DL;function tE(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){vu(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:eE.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Tf(r,s);return}let o=s.map(a=>CL(a,e));Xv(o,(a,u)=>{if(a!==null){vu(r,a);return}Tf(r,u)})})}yn.readdirWithFileTypes=tE;function CL(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=Qv.fs.createDirentFromStats(t.name,i),r(null,t)})}}function rE(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){vu(r,n);return}let s=i.map(o=>{let a=eE.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{SL.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let h={name:o,path:a,dirent:Qv.fs.createDirentFromStats(o,l)};e.stats&&(h.stats=l),u(null,h)})}});Xv(s,(o,a)=>{if(o!==null){vu(r,o);return}Tf(r,a)})})}yn.readdir=rE;function vu(t,e){t(e)}function Tf(t,e){t(null,e)}});var uE=A(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.readdir=gn.readdirWithFileTypes=gn.read=void 0;var RL=Xn(),kL=Df(),iE=Rf(),sE=kf();function TL(t,e){return!e.stats&&kL.IS_SUPPORT_READDIR_WITH_FILE_TYPES?oE(t,e):aE(t,e)}gn.read=TL;function oE(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:sE.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=iE.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}gn.readdirWithFileTypes=oE;function aE(t,e){return e.fs.readdirSync(t).map(n=>{let i=sE.joinPathSegments(t,n,e.pathSegmentSeparator),s=RL.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:iE.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}gn.readdir=aE});var cE=A(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.createFileSystemAdapter=_n.FILE_SYSTEM_ADAPTER=void 0;var Ki=require("fs");_n.FILE_SYSTEM_ADAPTER={lstat:Ki.lstat,stat:Ki.stat,lstatSync:Ki.lstatSync,statSync:Ki.statSync,readdir:Ki.readdir,readdirSync:Ki.readdirSync};function OL(t){return t===void 0?_n.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},_n.FILE_SYSTEM_ADAPTER),t)}_n.createFileSystemAdapter=OL});var lE=A(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var FL=require("path"),PL=Xn(),IL=cE(),Of=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=IL.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,FL.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new PL.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ff.default=Of});var Eu=A(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.Settings=bn.scandirSync=bn.scandir=void 0;var hE=nE(),LL=uE(),Pf=lE();bn.Settings=Pf.default;function BL(t,e,r){if(typeof e=="function"){hE.read(t,If(),e);return}hE.read(t,If(e),r)}bn.scandir=BL;function NL(t,e){let r=If(e);return LL.read(t,r)}bn.scandirSync=NL;function If(t={}){return t instanceof Pf.default?t:new Pf.default(t)}});var dE=A((Oz,fE)=>{"use strict";function ML(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}fE.exports=ML});var mE=A((Fz,Lf)=>{"use strict";var jL=dE();function pE(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 n=jL(qL),i=null,s=null,o=0,a=null,u={push:y,drain:zt,saturated:zt,pause:l,paused:!1,concurrency:r,running:c,resume:d,idle:p,length:h,getQueue:f,unshift:m,empty:zt,kill:T,killAndDrain:F,error:I};return u;function c(){return o}function l(){u.paused=!0}function h(){for(var R=i,M=0;R;)R=R.next,M++;return M}function f(){for(var R=i,M=[];R;)M.push(R.value),R=R.next;return M}function d(){if(u.paused){u.paused=!1;for(var R=0;R<u.concurrency;R++)o++,w()}}function p(){return o===0&&u.length()===0}function y(R,M){var x=n.get();x.context=t,x.release=w,x.value=R,x.callback=M||zt,x.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=x,s=x):(i=x,s=x,u.saturated()):(o++,e.call(t,x.value,x.worked))}function m(R,M){var x=n.get();x.context=t,x.release=w,x.value=R,x.callback=M||zt,o===u.concurrency||u.paused?i?(x.next=i,i=x):(i=x,s=x,u.saturated()):(o++,e.call(t,x.value,x.worked))}function w(R){R&&n.release(R);var M=i;M?u.paused?o--:(s===i&&(s=null),i=M.next,M.next=null,e.call(t,M.value,M.worked),s===null&&u.empty()):--o===0&&u.drain()}function T(){i=null,s=null,u.drain=zt}function F(){i=null,s=null,u.drain(),u.drain=zt}function I(R){a=R}}function zt(){}function qL(){this.value=null,this.callback=zt,this.next=null,this.release=zt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=zt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function UL(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(l,h){e.call(this,l).then(function(f){h(null,f)},h)}var i=pE(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(l){var h=new Promise(function(f,d){s(l,function(p,y){if(p){d(p);return}f(y)})});return h.catch(zt),h}function u(l){var h=new Promise(function(f,d){o(l,function(p,y){if(p){d(p);return}f(y)})});return h.catch(zt),h}function c(){var l=i.drain,h=new Promise(function(f){i.drain=function(){l(),f()}});return h}}Lf.exports=pE;Lf.exports.promise=UL});var wu=A(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.joinPathSegments=br.replacePathSegmentSeparator=br.isAppliedFilter=br.isFatalError=void 0;function HL(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}br.isFatalError=HL;function $L(t,e){return t===null||t(e)}br.isAppliedFilter=$L;function GL(t,e){return t.split(/[/\\]/).join(e)}br.replacePathSegmentSeparator=GL;function zL(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}br.joinPathSegments=zL});var Mf=A(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var WL=wu(),Bf=class{constructor(e,r){this._root=e,this._settings=r,this._root=WL.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Nf.default=Bf});var Uf=A(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var VL=require("events"),YL=Eu(),KL=mE(),xu=wu(),ZL=Mf(),jf=class extends ZL.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=YL.scandir,this._emitter=new VL.EventEmitter,this._queue=KL(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 n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!xu.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 n=e.path;r!==void 0&&(e.path=xu.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),xu.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&xu.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};qf.default=jf});var yE=A($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var JL=Uf(),Hf=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new JL.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{XL(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{QL(e,this._storage)}),this._reader.read()}};$f.default=Hf;function XL(t,e){t(e)}function QL(t,e){t(null,e)}});var gE=A(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var eB=require("stream"),tB=Uf(),Gf=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new tB.default(this._root,this._settings),this._stream=new eB.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}};zf.default=Gf});var _E=A(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var rB=Eu(),Su=wu(),nB=Mf(),Wf=class extends nB.default{constructor(){super(...arguments),this._scandir=rB.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 n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(Su.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Su.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Su.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Su.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Vf.default=Wf});var bE=A(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var iB=_E(),Yf=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new iB.default(this._root,this._settings)}read(){return this._reader.read()}};Kf.default=Yf});var vE=A(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var sB=require("path"),oB=Eu(),Zf=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,sB.sep),this.fsScandirSettings=new oB.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}};Jf.default=Zf});var Du=A(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.Settings=vr.walkStream=vr.walkSync=vr.walk=void 0;var EE=yE(),aB=gE(),uB=bE(),Xf=vE();vr.Settings=Xf.default;function cB(t,e,r){if(typeof e=="function"){new EE.default(t,Au()).read(e);return}new EE.default(t,Au(e)).read(r)}vr.walk=cB;function lB(t,e){let r=Au(e);return new uB.default(t,r).read()}vr.walkSync=lB;function hB(t,e){let r=Au(e);return new aB.default(t,r).read()}vr.walkStream=hB;function Au(t={}){return t instanceof Xf.default?t:new Xf.default(t)}});var Cu=A(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var fB=require("path"),dB=Xn(),wE=qr(),Qf=class{constructor(e){this._settings=e,this._fsStatSettings=new dB.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return fB.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:wE.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!wE.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ed.default=Qf});var nd=A(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var pB=require("stream"),mB=Xn(),yB=Du(),gB=Cu(),td=class extends gB.default{constructor(){super(...arguments),this._walkStream=yB.walkStream,this._stat=mB.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new pB.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};rd.default=td});var xE=A(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var _B=Du(),bB=Cu(),vB=nd(),id=class extends bB.default{constructor(){super(...arguments),this._walkAsync=_B.walk,this._readerStream=new vB.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};sd.default=id});var SE=A(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var Zi=qr(),od=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Zi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Zi.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Zi.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Zi.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Zi.array.splitWhen(e,r=>r.dynamic&&Zi.pattern.hasGlobStar(r.pattern))}};ad.default=od});var AE=A(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var EB=SE(),ud=class extends EB.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>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}};cd.default=ud});var DE=A(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var Ru=qr(),wB=AE(),ld=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new wB.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Ru.pattern.isAffectDepthOfReadingPattern);return Ru.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Ru.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Ru.pattern.matchAny(e,r)}};hd.default=ld});var CE=A(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var Qn=qr(),fd=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=Qn.pattern.convertPatternsToRe(e,this._micromatchOptions),i=Qn.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,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 n=Qn.path.makeAbsolute(this._settings.cwd,e);return Qn.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=Qn.path.removeLeadingDotSegment(e),s=Qn.pattern.matchAny(i,r);return!s&&n?Qn.pattern.matchAny(i+"/",r):s}};dd.default=fd});var RE=A(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var xB=qr(),pd=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return xB.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};md.default=pd});var TE=A(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var kE=qr(),yd=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=kE.path.makeAbsolute(this._settings.cwd,r),r=kE.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};gd.default=yd});var ku=A(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var SB=require("path"),AB=DE(),DB=CE(),CB=RE(),RB=TE(),_d=class{constructor(e){this._settings=e,this.errorFilter=new CB.default(this._settings),this.entryFilter=new DB.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new AB.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new RB.default(this._settings)}_getRootDirectory(e){return SB.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}}};bd.default=_d});var OE=A(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var kB=xE(),TB=ku(),vd=class extends TB.default{constructor(){super(...arguments),this._reader=new kB.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Ed.default=vd});var FE=A(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var OB=require("stream"),FB=nd(),PB=ku(),wd=class extends PB.default{constructor(){super(...arguments),this._reader=new FB.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new OB.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};xd.default=wd});var PE=A(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var IB=Xn(),LB=Du(),BB=Cu(),Sd=class extends BB.default{constructor(){super(...arguments),this._walkSync=LB.walkSync,this._statSync=IB.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Ad.default=Sd});var IE=A(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var NB=PE(),MB=ku(),Dd=class extends MB.default{constructor(){super(...arguments),this._reader=new NB.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Cd.default=Dd});var LE=A(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ji=require("fs"),jB=require("os"),qB=Math.max(jB.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 Rd=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,qB),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=Rd});var Tu=A((nW,ME)=>{"use strict";var BE=Lv(),NE=Nv(),UB=OE(),HB=FE(),$B=IE(),kd=LE(),ei=qr();async function Td(t,e){Qi(t);let r=Od(t,UB.default,e),n=await Promise.all(r);return ei.array.flatten(n)}(function(t){function e(o,a){Qi(o);let u=Od(o,$B.default,a);return ei.array.flatten(u)}t.sync=e;function r(o,a){Qi(o);let u=Od(o,HB.default,a);return ei.stream.merge(u)}t.stream=r;function n(o,a){Qi(o);let u=NE.transform([].concat(o)),c=new kd.default(a);return BE.generate(u,c)}t.generateTasks=n;function i(o,a){Qi(o);let u=new kd.default(a);return ei.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=i;function s(o){return Qi(o),ei.path.escape(o)}t.escapePath=s})(Td||(Td={}));function Od(t,e,r){let n=NE.transform([].concat(t)),i=new kd.default(r),s=BE.generate(n,i),o=new e(i);return s.map(o.read,o)}function Qi(t){if(![].concat(t).every(n=>ei.string.isString(n)&&!ei.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ME.exports=Td});var qE=A((iW,jE)=>{"use strict";jE.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Fd=A((sW,HE)=>{var Lo=qE(),UE={};for(let t of Object.keys(Lo))UE[Lo[t]]=t;var le={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};HE.exports=le;for(let t of Object.keys(le)){if(!("channels"in le[t]))throw new Error("missing channels property: "+t);if(!("labels"in le[t]))throw new Error("missing channel labels property: "+t);if(le[t].labels.length!==le[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=le[t];delete le[t].channels,delete le[t].labels,Object.defineProperty(le[t],"channels",{value:e}),Object.defineProperty(le[t],"labels",{value:r})}le.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+s)/2;return s===i?u=0:c<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,c*100]};le.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,c=Math.max(o,a,u),l=c-Math.min(o,a,u),h=function(f){return(c-f)/6/l+1/2};return l===0?(i=0,s=0):(s=l/c,e=h(o),r=h(a),n=h(u),o===c?i=n-r:a===c?i=1/3+e-n:u===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};le.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=le.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};le.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function GB(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}le.rgb.keyword=function(t){let e=UE[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Lo)){let s=Lo[i],o=GB(t,s);o<r&&(r=o,n=i)}return n};le.keyword.rgb=function(t){return Lo[t]};le.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};le.rgb.lab=function(t){let e=le.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};le.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let c=0;c<3;c++)s=e+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[c]=o*255;return u};le.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};le.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};le.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};le.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let u=r+s*(a-r),c,l,h;switch(o){default:case 6:case 0:c=a,l=u,h=r;break;case 1:c=u,l=a,h=r;break;case 2:c=r,l=a,h=u;break;case 3:c=r,l=u,h=a;break;case 4:c=u,l=r,h=a;break;case 5:c=a,l=r,h=u;break}return[c*255,l*255,h*255]};le.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};le.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};le.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};le.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,c=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};le.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};le.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};le.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?le.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};le.hsv.ansi16=function(t){return le.rgb.ansi16(le.hsv.rgb(t),t[2])};le.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};le.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};le.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};le.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};le.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};le.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};le.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};le.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};le.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};le.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};le.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};le.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};le.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};le.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};le.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};le.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};le.gray.hsl=function(t){return[0,0,t[0]]};le.gray.hsv=le.gray.hsl;le.gray.hwb=function(t){return[0,100,t[0]]};le.gray.cmyk=function(t){return[0,0,0,t[0]]};le.gray.lab=function(t){return[t[0],0,0]};le.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};le.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var GE=A((oW,$E)=>{var Ou=Fd();function zB(){let t={},e=Object.keys(Ou);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function WB(t){let e=zB(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Ou[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function VB(t,e){return function(r){return e(t(r))}}function YB(t,e){let r=[e[t].parent,t],n=Ou[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=VB(Ou[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}$E.exports=function(t){let e=WB(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=YB(o,e))}return r}});var WE=A((aW,zE)=>{var Pd=Fd(),KB=GE(),es={},ZB=Object.keys(Pd);function JB(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function XB(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}ZB.forEach(t=>{es[t]={},Object.defineProperty(es[t],"channels",{value:Pd[t].channels}),Object.defineProperty(es[t],"labels",{value:Pd[t].labels});let e=KB(t);Object.keys(e).forEach(n=>{let i=e[n];es[t][n]=XB(i),es[t][n].raw=JB(i)})});zE.exports=es});var Ld=A((uW,JE)=>{"use strict";var VE=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,YE=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},KE=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},Fu=t=>t,ZE=(t,e,r)=>[t,e,r],ts=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Id,rs=(t,e,r,n)=>{Id===void 0&&(Id=WE());let i=n?10:0,s={};for(let[o,a]of Object.entries(Id)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function QB(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",ts(e.color,"ansi",()=>rs(VE,"ansi16",Fu,!1)),ts(e.color,"ansi256",()=>rs(YE,"ansi256",Fu,!1)),ts(e.color,"ansi16m",()=>rs(KE,"rgb",ZE,!1)),ts(e.bgColor,"ansi",()=>rs(VE,"ansi16",Fu,!0)),ts(e.bgColor,"ansi256",()=>rs(YE,"ansi256",Fu,!0)),ts(e.bgColor,"ansi16m",()=>rs(KE,"rgb",ZE,!0)),e}Object.defineProperty(JE,"exports",{enumerable:!0,get:QB})});var QE=A((cW,XE)=>{"use strict";XE.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Md=A((lW,t1)=>{"use strict";var eN=require("os"),e1=require("tty"),Wt=QE(),{env:Ke}=process,vn;Wt("no-color")||Wt("no-colors")||Wt("color=false")||Wt("color=never")?vn=0:(Wt("color")||Wt("colors")||Wt("color=true")||Wt("color=always"))&&(vn=1);"FORCE_COLOR"in Ke&&(Ke.FORCE_COLOR==="true"?vn=1:Ke.FORCE_COLOR==="false"?vn=0:vn=Ke.FORCE_COLOR.length===0?1:Math.min(parseInt(Ke.FORCE_COLOR,10),3));function Bd(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Nd(t,e){if(vn===0)return 0;if(Wt("color=16m")||Wt("color=full")||Wt("color=truecolor"))return 3;if(Wt("color=256"))return 2;if(t&&!e&&vn===void 0)return 0;let r=vn||0;if(Ke.TERM==="dumb")return r;if(process.platform==="win32"){let n=eN.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ke)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ke)||Ke.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ke)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ke.TEAMCITY_VERSION)?1:0;if(Ke.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ke){let n=parseInt((Ke.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ke.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ke.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ke.TERM)||"COLORTERM"in Ke?1:r}function tN(t){let e=Nd(t,t&&t.isTTY);return Bd(e)}t1.exports={supportsColor:tN,stdout:Bd(Nd(!0,e1.isatty(1))),stderr:Bd(Nd(!0,e1.isatty(2)))}});var n1=A((hW,r1)=>{"use strict";var rN=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},nN=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
2
+ "use strict";var nO=Object.create;var xh=Object.defineProperty;var iO=Object.getOwnPropertyDescriptor;var sO=Object.getOwnPropertyNames;var oO=Object.getPrototypeOf,aO=Object.prototype.hasOwnProperty;var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),uO=(t,e)=>{for(var r in e)xh(t,r,{get:e[r],enumerable:!0})},cO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of sO(e))!aO.call(t,i)&&i!==r&&xh(t,i,{get:()=>e[i],enumerable:!(n=iO(e,i))||n.enumerable});return t};var oe=(t,e,r)=>(r=t!=null?nO(oO(t)):{},cO(e||!t||!t.__esModule?xh(r,"default",{value:t,enumerable:!0}):r,t));var Tg=A((V$,Lr)=>{function Sh(t){return Lr.exports=Sh=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},Lr.exports.__esModule=!0,Lr.exports.default=Lr.exports,Sh(t)}Lr.exports=Sh,Lr.exports.__esModule=!0,Lr.exports.default=Lr.exports});var Pg=A((Y$,Br)=>{var Og=Tg().default;function Fg(){"use strict";Br.exports=Fg=function(){return e},Br.exports.__esModule=!0,Br.exports.default=Br.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(P,L,G){P[L]=G.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(P,L,G){return Object.defineProperty(P,L,{value:G,enumerable:!0,configurable:!0,writable:!0}),P[L]}try{c({},"")}catch{c=function(G,Z,q){return G[Z]=q}}function l(P,L,G,Z){var q=L&&L.prototype instanceof w?L:w,g=Object.create(q.prototype),_=new te(Z||[]);return i(g,"_invoke",{value:W(P,G,_)}),g}function h(P,L,G){try{return{type:"normal",arg:P.call(L,G)}}catch(Z){return{type:"throw",arg:Z}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",p="executing",y="completed",m={};function w(){}function T(){}function F(){}var I={};c(I,o,function(){return this});var R=Object.getPrototypeOf,M=R&&R(R(j([])));M&&M!==r&&n.call(M,o)&&(I=M);var x=F.prototype=w.prototype=Object.create(I);function D(P){["next","throw","return"].forEach(function(L){c(P,L,function(G){return this._invoke(L,G)})})}function U(P,L){function G(q,g,_,v){var k=h(P[q],P,g);if(k.type!=="throw"){var S=k.arg,H=S.value;return H&&Og(H)=="object"&&n.call(H,"__await")?L.resolve(H.__await).then(function($){G("next",$,_,v)},function($){G("throw",$,_,v)}):L.resolve(H).then(function($){S.value=$,_(S)},function($){return G("throw",$,_,v)})}v(k.arg)}var Z;i(this,"_invoke",{value:function(g,_){function v(){return new L(function(k,S){G(g,_,k,S)})}return Z=Z?Z.then(v,v):v()}})}function W(P,L,G){var Z=f;return function(q,g){if(Z===p)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 v=N(_,G);if(v){if(v===m)continue;return v}}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=p;var k=h(P,L,G);if(k.type==="normal"){if(Z=G.done?y:d,k.arg===m)continue;return{value:k.arg,done:G.done}}k.type==="throw"&&(Z=y,G.method="throw",G.arg=k.arg)}}}function N(P,L){var G=L.method,Z=P.iterator[G];if(Z===t)return L.delegate=null,G==="throw"&&P.iterator.return&&(L.method="return",L.arg=t,N(P,L),L.method==="throw")||G!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+G+"' method")),m;var q=h(Z,P.iterator,L.arg);if(q.type==="throw")return L.method="throw",L.arg=q.arg,L.delegate=null,m;var g=q.arg;return g?g.done?(L[P.resultName]=g.value,L.next=P.nextLoc,L.method!=="return"&&(L.method="next",L.arg=t),L.delegate=null,m):g:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,m)}function V(P){var L={tryLoc:P[0]};1 in P&&(L.catchLoc=P[1]),2 in P&&(L.finallyLoc=P[2],L.afterLoc=P[3]),this.tryEntries.push(L)}function Q(P){var L=P.completion||{};L.type="normal",delete L.arg,P.completion=L}function te(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(V,this),this.reset(!0)}function j(P){if(P||P===""){var L=P[o];if(L)return L.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var G=-1,Z=function q(){for(;++G<P.length;)if(n.call(P,G))return q.value=P[G],q.done=!1,q;return q.value=t,q.done=!0,q};return Z.next=Z}}throw new TypeError(Og(P)+" is not iterable")}return T.prototype=F,i(x,"constructor",{value:F,configurable:!0}),i(F,"constructor",{value:T,configurable:!0}),T.displayName=c(F,u,"GeneratorFunction"),e.isGeneratorFunction=function(P){var L=typeof P=="function"&&P.constructor;return!!L&&(L===T||(L.displayName||L.name)==="GeneratorFunction")},e.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,F):(P.__proto__=F,c(P,u,"GeneratorFunction")),P.prototype=Object.create(x),P},e.awrap=function(P){return{__await:P}},D(U.prototype),c(U.prototype,a,function(){return this}),e.AsyncIterator=U,e.async=function(P,L,G,Z,q){q===void 0&&(q=Promise);var g=new U(l(P,L,G,Z),q);return e.isGeneratorFunction(L)?g:g.next().then(function(_){return _.done?_.value:g.next()})},D(x),c(x,u,"Generator"),c(x,o,function(){return this}),c(x,"toString",function(){return"[object Generator]"}),e.keys=function(P){var L=Object(P),G=[];for(var Z in L)G.push(Z);return G.reverse(),function q(){for(;G.length;){var g=G.pop();if(g in L)return q.value=g,q.done=!1,q}return q.done=!0,q}},e.values=j,te.prototype={constructor:te,reset:function(L){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),!L)for(var G in this)G.charAt(0)==="t"&&n.call(this,G)&&!isNaN(+G.slice(1))&&(this[G]=t)},stop:function(){this.done=!0;var L=this.tryEntries[0].completion;if(L.type==="throw")throw L.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var G=this;function Z(S,H){return _.type="throw",_.arg=L,G.next=S,H&&(G.method="next",G.arg=t),!!H}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 v=n.call(g,"catchLoc"),k=n.call(g,"finallyLoc");if(v&&k){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0);if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}else if(v){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0)}else{if(!k)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}}}},abrupt:function(L,G){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var q=this.tryEntries[Z];if(q.tryLoc<=this.prev&&n.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var g=q;break}}g&&(L==="break"||L==="continue")&&g.tryLoc<=G&&G<=g.finallyLoc&&(g=null);var _=g?g.completion:{};return _.type=L,_.arg=G,g?(this.method="next",this.next=g.finallyLoc,m):this.complete(_)},complete:function(L,G){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&G&&(this.next=G),m},finish:function(L){for(var G=this.tryEntries.length-1;G>=0;--G){var Z=this.tryEntries[G];if(Z.finallyLoc===L)return this.complete(Z.completion,Z.afterLoc),Q(Z),m}},catch:function(L){for(var G=this.tryEntries.length-1;G>=0;--G){var Z=this.tryEntries[G];if(Z.tryLoc===L){var q=Z.completion;if(q.type==="throw"){var g=q.arg;Q(Z)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(L,G,Z){return this.delegate={iterator:j(L),resultName:G,nextLoc:Z},this.method==="next"&&(this.arg=t),m}},e}Br.exports=Fg,Br.exports.__esModule=!0,Br.exports.default=Br.exports});var Lg=A((K$,Ig)=>{var za=Pg()();Ig.exports=za;try{regeneratorRuntime=za}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=za:Function("r","regeneratorRuntime = r")(za)}});var Ng=A((gG,Oh)=>{"use strict";var Bg=(t,...e)=>new Promise(r=>{r(t(...e))});Oh.exports=Bg;Oh.exports.default=Bg});var jg=A((_G,Fh)=>{"use strict";var lO=Ng(),Mg=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,n=()=>{r--,e.length>0&&e.shift()()},i=(a,u,...c)=>{r++;let l=lO(a,...c);u(l),l.then(n,n)},s=(a,u,...c)=>{r<t?i(a,u,...c):e.push(i.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};Fh.exports=Mg;Fh.exports.default=Mg});var Hg=A((bG,Ph)=>{"use strict";var qg=jg(),Wa=class extends Error{constructor(e){super(),this.value=e}},hO=async(t,e)=>e(await t),fO=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Wa(e[0]);return!1},Ug=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=qg(r.concurrency),i=[...t].map(o=>[o,n(hO,o,e)]),s=qg(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(fO,o)))}catch(o){if(o instanceof Wa)return o.value;throw o}};Ph.exports=Ug;Ph.exports.default=Ug});var Yg=A((vG,Ih)=>{"use strict";var $g=require("path"),Va=require("fs"),{promisify:Gg}=require("util"),dO=Hg(),pO=Gg(Va.stat),mO=Gg(Va.lstat),zg={directory:"isDirectory",file:"isFile"};function Wg({type:t}){if(!(t in zg))throw new Error(`Invalid type specified: ${t}`)}var Vg=(t,e)=>t===void 0||e[zg[t]]();Ih.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Wg(e);let r=e.allowSymlinks?pO:mO;return dO(t,async n=>{try{let i=await r($g.resolve(e.cwd,n));return Vg(e.type,i)}catch{return!1}},e)};Ih.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Wg(e);let r=e.allowSymlinks?Va.statSync:Va.lstatSync;for(let n of t)try{let i=r($g.resolve(e.cwd,n));if(Vg(e.type,i))return n}catch{}}});var Zg=A((EG,Lh)=>{"use strict";var Kg=require("fs"),{promisify:yO}=require("util"),gO=yO(Kg.access);Lh.exports=async t=>{try{return await gO(t),!0}catch{return!1}};Lh.exports.sync=t=>{try{return Kg.accessSync(t),!0}catch{return!1}}});var Xg=A((wG,ji)=>{"use strict";var hn=require("path"),Ya=Yg(),Jg=Zg(),Bh=Symbol("findUp.stop");ji.exports=async(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return Ya(i,o);let a=await t(o.cwd);return typeof a=="string"?Ya([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Bh)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};ji.exports.sync=(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return Ya.sync(i,o);let a=t(o.cwd);return typeof a=="string"?Ya.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Bh)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};ji.exports.exists=Jg;ji.exports.sync.exists=Jg.sync;ji.exports.stop=Bh});var rb=A(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.splitWhen=Gi.flatten=void 0;function GP(t){return t.reduce((e,r)=>[].concat(e,r),[])}Gi.flatten=GP;function zP(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Gi.splitWhen=zP});var nb=A(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.isEnoentCodeError=void 0;function WP(t){return t.code==="ENOENT"}tu.isEnoentCodeError=WP});var ib=A(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.createDirentFromStats=void 0;var Xh=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 VP(t,e){return new Xh(t,e)}ru.createDirentFromStats=VP});var sb=A(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.removeLeadingDotSegment=yr.escape=yr.makeAbsolute=yr.unixify=void 0;var YP=require("path"),KP=2,ZP=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function JP(t){return t.replace(/\\/g,"/")}yr.unixify=JP;function XP(t,e){return YP.resolve(t,e)}yr.makeAbsolute=XP;function QP(t){return t.replace(ZP,"\\$2")}yr.escape=QP;function e5(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(KP)}return t}yr.removeLeadingDotSegment=e5});var ab=A((GG,ob)=>{ob.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 lb=A((zG,cb)=>{var t5=ab(),ub={"{":"}","(":")","[":"]"},r5=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||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=ub[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},n5=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 n=ub[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};cb.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(t5(e))return!0;var n=r5;return r&&r.strict===!1&&(n=n5),n(e)}});var fb=A((WG,hb)=>{"use strict";var i5=lb(),s5=require("path").posix.dirname,o5=require("os").platform()==="win32",Qh="/",a5=/\\/g,u5=/[\{\[].*[\}\]]$/,c5=/(^|[^\\])([\{\[]|\([^\)]+$)/,l5=/\\([\!\*\?\|\[\]\(\)\{\}])/g;hb.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&o5&&e.indexOf(Qh)<0&&(e=e.replace(a5,Qh)),u5.test(e)&&(e+=Qh),e+="a";do e=s5(e);while(i5(e)||c5.test(e));return e.replace(l5,"$1")}});var nu=A(Gt=>{"use strict";Gt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Gt.find=(t,e)=>t.nodes.find(r=>r.type===e);Gt.exceedsLimit=(t,e,r=1,n)=>n===!1||!Gt.isInteger(t)||!Gt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;Gt.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Gt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Gt.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;Gt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Gt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Gt.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&e.push(s)}return e};return r(t),e}});var iu=A((YG,pb)=>{"use strict";var db=nu();pb.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&db.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&db.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(t)}});var yb=A((KG,mb)=>{"use strict";mb.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Ab=A((ZG,Sb)=>{"use strict";var gb=yb(),Zn=(t,e,r)=>{if(gb(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(gb(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=t+":"+e+"="+i+s+o+a;if(Zn.cache.hasOwnProperty(u))return Zn.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 n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let h=xb(t)||xb(e),f={min:t,max:e,a:c,b:l},d=[],p=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=l<0?Math.abs(l):1;p=_b(y,Math.abs(c),f,n),c=f.a=0}return l>=0&&(d=_b(c,l,f,n)),f.negatives=p,f.positives=d,f.result=h5(p,d,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&d.length+p.length>1&&(f.result=`(?:${f.result})`),Zn.cache[u]=f,f.result};function h5(t,e,r){let n=ef(t,e,"-",!1,r)||[],i=ef(e,t,"",!1,r)||[],s=ef(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function f5(t,e){let r=1,n=1,i=vb(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=vb(t,r);for(i=Eb(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=Eb(e+1,n)-1;return s=[...s],s.sort(m5),s}function d5(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=p5(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=y5(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function _b(t,e,r,n){let i=f5(t,e),s=[],o=t,a;for(let u=0;u<i.length;u++){let c=i[u],l=d5(String(o),String(c),n),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+wb(a.count),o=c+1;continue}r.isPadded&&(h=g5(c,r,n)),l.string=h+l.pattern+wb(l.count),s.push(l),o=c+1,a=l}return s}function ef(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!bb(e,"string",a)&&s.push(r+a),n&&bb(e,"string",a)&&s.push(r+a)}return s}function p5(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function m5(t,e){return t>e?1:e>t?-1:0}function bb(t,e,r){return t.some(n=>n[e]===r)}function vb(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Eb(t,e){return t-t%Math.pow(10,e)}function wb(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function y5(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function xb(t){return/^-?(0+)\d/.test(t)}function g5(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Zn.cache={};Zn.clearCache=()=>Zn.cache={};Sb.exports=Zn});var nf=A((JG,Fb)=>{"use strict";var _5=require("util"),Cb=Ab(),Db=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),b5=t=>e=>t===!0?Number(e):String(e),tf=t=>typeof t=="number"||typeof t=="string"&&t!=="",Oo=t=>Number.isInteger(+t),rf=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},v5=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,E5=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},ou=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},w5=(t,e,r)=>{t.negatives.sort((a,u)=>a<u?-1:a>u?1:0),t.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=e.capture?"":"?:",i="",s="",o;return t.positives.length&&(i=t.positives.map(a=>ou(String(a),r)).join("|")),t.negatives.length&&(s=`-(${n}${t.negatives.map(a=>ou(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,e.wrap?`(${n}${o})`:o},Rb=(t,e,r,n)=>{if(r)return Cb(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},kb=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return Cb(t,e,r)},Tb=(...t)=>new RangeError("Invalid range arguments: "+_5.inspect(...t)),Ob=(t,e,r)=>{if(r.strictRanges===!0)throw Tb([t,e]);return[]},x5=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},S5=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Tb([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=rf(a)||rf(u)||rf(c),h=l?Math.max(a.length,u.length,c.length):0,f=l===!1&&v5(t,e,n)===!1,d=n.transform||b5(f);if(n.toRegex&&r===1)return Rb(ou(t,h),ou(e,h),!0,n);let p={negatives:[],positives:[]},y=T=>p[T<0?"negatives":"positives"].push(Math.abs(T)),m=[],w=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):m.push(E5(d(i,w),h,f)),i=o?i-r:i+r,w++;return n.toRegex===!0?r>1?w5(p,n,h):kb(m,null,{wrap:!1,...n}):m},A5=(t,e,r=1,n={})=>{if(!Oo(t)&&t.length>1||!Oo(e)&&e.length>1)return Ob(t,e,n);let i=n.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(n.toRegex&&r===1)return Rb(u,c,!1,n);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?kb(l,null,{wrap:!1,options:n}):l},su=(t,e,r,n={})=>{if(e==null&&tf(t))return[t];if(!tf(t)||!tf(e))return Ob(t,e,n);if(typeof r=="function")return su(t,e,1,{transform:r});if(Db(r))return su(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Oo(r)?Oo(t)&&Oo(e)?S5(t,e,r,i):A5(t,e,Math.max(Math.abs(r),1),i):r!=null&&!Db(r)?x5(r,i):su(t,e,1,r)};Fb.exports=su});var Lb=A((XG,Ib)=>{"use strict";var D5=nf(),Pb=nu(),C5=(t,e={})=>{let r=(n,i={})=>{let s=Pb.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return u+n.value;if(n.isClose===!0)return console.log("node.isClose",u,n.value),u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=Pb.reduce(n.nodes),h=D5(...l,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(t)};Ib.exports=C5});var Mb=A((QG,Nb)=>{"use strict";var R5=nf(),Bb=iu(),zi=nu(),Jn=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?zi.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(Jn(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Jn(i,s,r):i+s);return zi.flatten(n)},k5=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Jn(a.pop(),Bb(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Jn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=zi.reduce(i.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=R5(...h,e);f.length===0&&(f=Bb(i,e)),a.push(Jn(a.pop(),f)),i.nodes=[];return}let u=zi.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let h=0;h<i.nodes.length;h++){let f=i.nodes[h];if(f.type==="comma"&&i.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(Jn(a.pop(),c,u));continue}if(f.value&&f.type!=="open"){c.push(Jn(c.pop(),f.value));continue}f.nodes&&n(f,i)}return c};return zi.flatten(n(t))};Nb.exports=k5});var qb=A((ez,jb)=>{"use strict";jb.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
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 zb=A((tz,Gb)=>{"use strict";var T5=iu(),{MAX_LENGTH:Ub,CHAR_BACKSLASH:sf,CHAR_BACKTICK:O5,CHAR_COMMA:F5,CHAR_DOT:P5,CHAR_LEFT_PARENTHESES:I5,CHAR_RIGHT_PARENTHESES:L5,CHAR_LEFT_CURLY_BRACE:B5,CHAR_RIGHT_CURLY_BRACE:N5,CHAR_LEFT_SQUARE_BRACKET:Hb,CHAR_RIGHT_SQUARE_BRACKET:$b,CHAR_DOUBLE_QUOTE:M5,CHAR_SINGLE_QUOTE:j5,CHAR_NO_BREAK_SPACE:q5,CHAR_ZERO_WIDTH_NOBREAK_SPACE:U5}=qb(),H5=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Ub,r.maxLength):Ub;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,u=0,c=t.length,l=0,h=0,f,d=()=>t[l++],p=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(p({type:"bos"});l<c;)if(o=s[s.length-1],f=d(),!(f===U5||f===q5)){if(f===sf){p({type:"text",value:(e.keepEscaping?f:"")+d()});continue}if(f===$b){p({type:"text",value:"\\"+f});continue}if(f===Hb){u++;let y;for(;l<c&&(y=d());){if(f+=y,y===Hb){u++;continue}if(y===sf){f+=d();continue}if(y===$b&&(u--,u===0))break}p({type:"text",value:f});continue}if(f===I5){o=p({type:"paren",nodes:[]}),s.push(o),p({type:"text",value:f});continue}if(f===L5){if(o.type!=="paren"){p({type:"text",value:f});continue}o=s.pop(),p({type:"text",value:f}),o=s[s.length-1];continue}if(f===M5||f===j5||f===O5){let y=f,m;for(e.keepQuotes!==!0&&(f="");l<c&&(m=d());){if(m===sf){f+=m+d();continue}if(m===y){e.keepQuotes===!0&&(f+=m);break}f+=m}p({type:"text",value:f});continue}if(f===B5){h++;let m={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=p(m),s.push(o),p({type:"open",value:f});continue}if(f===N5){if(o.type!=="brace"){p({type:"text",value:f});continue}let y="close";o=s.pop(),o.close=!0,p({type:y,value:f}),h--,o=s[s.length-1];continue}if(f===F5&&h>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:T5(o)}]}p({type:"comma",value:f}),o.commas++;continue}if(f===P5&&h>0&&o.commas===0){let y=o.nodes;if(h===0||y.length===0){p({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"){y.pop();let m=y[y.length-1];m.value+=a.value+f,a=m,o.ranges--;continue}p({type:"dot",value:f});continue}p({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let y=s[s.length-1],m=y.nodes.indexOf(o);y.nodes.splice(m,1,...o.nodes)}while(s.length>0);return p({type:"eos"}),i};Gb.exports=H5});var Yb=A((rz,Vb)=>{"use strict";var Wb=iu(),$5=Lb(),G5=Mb(),z5=zb(),Ot=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=Ot.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Ot.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Ot.parse=(t,e={})=>z5(t,e);Ot.stringify=(t,e={})=>Wb(typeof t=="string"?Ot.parse(t,e):t,e);Ot.compile=(t,e={})=>(typeof t=="string"&&(t=Ot.parse(t,e)),$5(t,e));Ot.expand=(t,e={})=>{typeof t=="string"&&(t=Ot.parse(t,e));let r=G5(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Ot.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Ot.compile(t,e):Ot.expand(t,e);Vb.exports=Ot});var Fo=A((nz,Qb)=>{"use strict";var W5=require("path"),gr="\\\\/",Kb=`[^${gr}]`,jr="\\.",V5="\\+",Y5="\\?",au="\\/",K5="(?=.)",Zb="[^/]",of=`(?:${au}|$)`,Jb=`(?:^|${au})`,af=`${jr}{1,2}${of}`,Z5=`(?!${jr})`,J5=`(?!${Jb}${af})`,X5=`(?!${jr}{0,1}${of})`,Q5=`(?!${af})`,eI=`[^.${au}]`,tI=`${Zb}*?`,Xb={DOT_LITERAL:jr,PLUS_LITERAL:V5,QMARK_LITERAL:Y5,SLASH_LITERAL:au,ONE_CHAR:K5,QMARK:Zb,END_ANCHOR:of,DOTS_SLASH:af,NO_DOT:Z5,NO_DOTS:J5,NO_DOT_SLASH:X5,NO_DOTS_SLASH:Q5,QMARK_NO_DOT:eI,STAR:tI,START_ANCHOR:Jb},rI={...Xb,SLASH_LITERAL:`[${gr}]`,QMARK:Kb,STAR:`${Kb}*?`,DOTS_SLASH:`${jr}{1,2}(?:[${gr}]|$)`,NO_DOT:`(?!${jr})`,NO_DOTS:`(?!(?:^|[${gr}])${jr}{1,2}(?:[${gr}]|$))`,NO_DOT_SLASH:`(?!${jr}{0,1}(?:[${gr}]|$))`,NO_DOTS_SLASH:`(?!${jr}{1,2}(?:[${gr}]|$))`,QMARK_NO_DOT:`[^.${gr}]`,START_ANCHOR:`(?:^|[${gr}])`,END_ANCHOR:`(?:[${gr}]|$)`},nI={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"};Qb.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:nI,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:W5.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?rI:Xb}}});var Po=A(vt=>{"use strict";var iI=require("path"),sI=process.platform==="win32",{REGEX_BACKSLASH:oI,REGEX_REMOVE_BACKSLASH:aI,REGEX_SPECIAL_CHARS:uI,REGEX_SPECIAL_CHARS_GLOBAL:cI}=Fo();vt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);vt.hasRegexChars=t=>uI.test(t);vt.isRegexChar=t=>t.length===1&&vt.hasRegexChars(t);vt.escapeRegex=t=>t.replace(cI,"\\$1");vt.toPosixSlashes=t=>t.replace(oI,"/");vt.removeBackslashes=t=>t.replace(aI,e=>e==="\\"?"":e);vt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};vt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:sI===!0||iI.sep==="\\";vt.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?vt.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};vt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};vt.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var av=A((sz,ov)=>{"use strict";var ev=Po(),{CHAR_ASTERISK:uf,CHAR_AT:lI,CHAR_BACKWARD_SLASH:Io,CHAR_COMMA:hI,CHAR_DOT:cf,CHAR_EXCLAMATION_MARK:lf,CHAR_FORWARD_SLASH:sv,CHAR_LEFT_CURLY_BRACE:hf,CHAR_LEFT_PARENTHESES:ff,CHAR_LEFT_SQUARE_BRACKET:fI,CHAR_PLUS:dI,CHAR_QUESTION_MARK:tv,CHAR_RIGHT_CURLY_BRACE:pI,CHAR_RIGHT_PARENTHESES:rv,CHAR_RIGHT_SQUARE_BRACKET:mI}=Fo(),nv=t=>t===sv||t===Io,iv=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},yI=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,h=0,f=!1,d=!1,p=!1,y=!1,m=!1,w=!1,T=!1,F=!1,I=!1,R=!1,M=0,x,D,U={value:"",depth:0,isGlob:!1},W=()=>c>=n,N=()=>u.charCodeAt(c+1),V=()=>(x=D,u.charCodeAt(++c));for(;c<n;){D=V();let L;if(D===Io){T=U.backslashes=!0,D=V(),D===hf&&(w=!0);continue}if(w===!0||D===hf){for(M++;W()!==!0&&(D=V());){if(D===Io){T=U.backslashes=!0,V();continue}if(D===hf){M++;continue}if(w!==!0&&D===cf&&(D=V())===cf){if(f=U.isBrace=!0,p=U.isGlob=!0,R=!0,i===!0)continue;break}if(w!==!0&&D===hI){if(f=U.isBrace=!0,p=U.isGlob=!0,R=!0,i===!0)continue;break}if(D===pI&&(M--,M===0)){w=!1,f=U.isBrace=!0,R=!0;break}}if(i===!0)continue;break}if(D===sv){if(s.push(c),o.push(U),U={value:"",depth:0,isGlob:!1},R===!0)continue;if(x===cf&&c===l+1){l+=2;continue}h=c+1;continue}if(r.noext!==!0&&(D===dI||D===lI||D===uf||D===tv||D===lf)===!0&&N()===ff){if(p=U.isGlob=!0,y=U.isExtglob=!0,R=!0,D===lf&&c===l&&(I=!0),i===!0){for(;W()!==!0&&(D=V());){if(D===Io){T=U.backslashes=!0,D=V();continue}if(D===rv){p=U.isGlob=!0,R=!0;break}}continue}break}if(D===uf){if(x===uf&&(m=U.isGlobstar=!0),p=U.isGlob=!0,R=!0,i===!0)continue;break}if(D===tv){if(p=U.isGlob=!0,R=!0,i===!0)continue;break}if(D===fI){for(;W()!==!0&&(L=V());){if(L===Io){T=U.backslashes=!0,V();continue}if(L===mI){d=U.isBracket=!0,p=U.isGlob=!0,R=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&D===lf&&c===l){F=U.negated=!0,l++;continue}if(r.noparen!==!0&&D===ff){if(p=U.isGlob=!0,i===!0){for(;W()!==!0&&(D=V());){if(D===ff){T=U.backslashes=!0,D=V();continue}if(D===rv){R=!0;break}}continue}break}if(p===!0){if(R=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,p=!1);let Q=u,te="",j="";l>0&&(te=u.slice(0,l),u=u.slice(l),h-=l),Q&&p===!0&&h>0?(Q=u.slice(0,h),j=u.slice(h)):p===!0?(Q="",j=u):Q=u,Q&&Q!==""&&Q!=="/"&&Q!==u&&nv(Q.charCodeAt(Q.length-1))&&(Q=Q.slice(0,-1)),r.unescape===!0&&(j&&(j=ev.removeBackslashes(j)),Q&&T===!0&&(Q=ev.removeBackslashes(Q)));let P={prefix:te,input:t,start:l,base:Q,glob:j,isBrace:f,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:m,negated:F,negatedExtglob:I};if(r.tokens===!0&&(P.maxDepth=0,nv(D)||o.push(U),P.tokens=o),r.parts===!0||r.tokens===!0){let L;for(let G=0;G<s.length;G++){let Z=L?L+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,iv(o[G]),P.maxDepth+=o[G].depth),(G!==0||g!=="")&&a.push(g),L=q}if(L&&L+1<t.length){let G=t.slice(L+1);a.push(G),r.tokens&&(o[o.length-1].value=G,iv(o[o.length-1]),P.maxDepth+=o[o.length-1].depth)}P.slashes=s,P.parts=a}return P};ov.exports=yI});var lv=A((oz,cv)=>{"use strict";var uu=Fo(),Ft=Po(),{MAX_LENGTH:cu,POSIX_REGEX_SOURCE:gI,REGEX_NON_SPECIAL_CHARS:_I,REGEX_SPECIAL_CHARS_BACKREF:bI,REPLACEMENTS:uv}=uu,vI=(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(i=>Ft.escapeRegex(i)).join("..")}return r},Wi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,df=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=uv[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(cu,r.maxLength):cu,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=Ft.isWindows(e),c=uu.globChars(u),l=uu.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:m,NO_DOT_SLASH:w,NO_DOTS_SLASH:T,QMARK:F,QMARK_NO_DOT:I,STAR:R,START_ANCHOR:M}=c,x=Y=>`(${a}(?:(?!${M}${Y.dot?y:h}).)*?)`,D=r.dot?"":m,U=r.dot?F:I,W=r.bash===!0?x(r):R;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=Ft.removePrefix(t,N),i=t.length;let V=[],Q=[],te=[],j=s,P,L=()=>N.index===i-1,G=N.peek=(Y=1)=>t[N.index+Y],Z=N.advance=()=>t[++N.index]||"",q=()=>t.slice(N.index+1),g=(Y="",fe=0)=>{N.consumed+=Y,N.index+=fe},_=Y=>{N.output+=Y.output!=null?Y.output:Y.value,g(Y.value)},v=()=>{let Y=1;for(;G()==="!"&&(G(2)!=="("||G(3)==="?");)Z(),N.start++,Y++;return Y%2===0?!1:(N.negated=!0,N.start++,!0)},k=Y=>{N[Y]++,te.push(Y)},S=Y=>{N[Y]--,te.pop()},H=Y=>{if(j.type==="globstar"){let fe=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"&&!fe&&!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,fe)=>{let J={...l[fe],conditions:1,inner:""};J.prev=j,J.parens=N.parens,J.output=N.output;let E=(r.capture?"(":"")+J.open;k("parens"),H({type:Y,value:fe,output:N.output?"":p}),H({type:"paren",extglob:!0,value:Z(),output:E}),V.push(J)},ne=Y=>{let fe=Y.close+(r.capture?")":""),J;if(Y.type==="negate"){let E=W;if(Y.inner&&Y.inner.length>1&&Y.inner.includes("/")&&(E=x(r)),(E!==W||L()||/^\)+$/.test(q()))&&(fe=Y.close=`)$))${E}`),Y.inner.includes("*")&&(J=q())&&/^\.[^\\/.]+$/.test(J)){let B=df(J,{...e,fastpaths:!1}).output;fe=Y.close=`)${B})${E})`}Y.prev.type==="bos"&&(N.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:P,output:fe}),S("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let Y=!1,fe=t.replace(bI,(J,E,B,C,X,b)=>C==="\\"?(Y=!0,J):C==="?"?E?E+C+(X?F.repeat(X.length):""):b===0?U+(X?F.repeat(X.length):""):F.repeat(B.length):C==="."?h.repeat(B.length):C==="*"?E?E+C+(X?W:""):W:E?J:`\\${J}`);return Y===!0&&(r.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),fe===t&&r.contains===!0?(N.output=t,N):(N.output=Ft.wrapOutput(fe,N,e),N)}for(;!L();){if(P=Z(),P==="\0")continue;if(P==="\\"){let J=G();if(J==="/"&&r.bash!==!0||J==="."||J===";")continue;if(!J){P+="\\",H({type:"text",value:P});continue}let E=/^\\+/.exec(q()),B=0;if(E&&E[0].length>2&&(B=E[0].length,N.index+=B,B%2!==0&&(P+="\\")),r.unescape===!0?P=Z():P+=Z(),N.brackets===0){H({type:"text",value:P});continue}}if(N.brackets>0&&(P!=="]"||j.value==="["||j.value==="[^")){if(r.posix!==!1&&P===":"){let J=j.value.slice(1);if(J.includes("[")&&(j.posix=!0,J.includes(":"))){let E=j.value.lastIndexOf("["),B=j.value.slice(0,E),C=j.value.slice(E+2),X=gI[C];if(X){j.value=B+X,N.backtrack=!0,Z(),!s.output&&o.indexOf(j)===1&&(s.output=p);continue}}}(P==="["&&G()!==":"||P==="-"&&G()==="]")&&(P=`\\${P}`),P==="]"&&(j.value==="["||j.value==="[^")&&(P=`\\${P}`),r.posix===!0&&P==="!"&&j.value==="["&&(P="^"),j.value+=P,_({value:P});continue}if(N.quotes===1&&P!=='"'){P=Ft.escapeRegex(P),j.value+=P,_({value:P});continue}if(P==='"'){N.quotes=N.quotes===1?0:1,r.keepQuotes===!0&&H({type:"text",value:P});continue}if(P==="("){k("parens"),H({type:"paren",value:P});continue}if(P===")"){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){ne(V.pop());continue}H({type:"paren",value:P,output:N.parens?")":"\\)"}),S("parens");continue}if(P==="["){if(r.nobracket===!0||!q().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));P=`\\${P}`}else k("brackets");H({type:"bracket",value:P});continue}if(P==="]"){if(r.nobracket===!0||j&&j.type==="bracket"&&j.value.length===1){H({type:"text",value:P,output:`\\${P}`});continue}if(N.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wi("opening","["));H({type:"text",value:P,output:`\\${P}`});continue}S("brackets");let J=j.value.slice(1);if(j.posix!==!0&&J[0]==="^"&&!J.includes("/")&&(P=`/${P}`),j.value+=P,_({value:P}),r.literalBrackets===!1||Ft.hasRegexChars(J))continue;let E=Ft.escapeRegex(j.value);if(N.output=N.output.slice(0,-j.value.length),r.literalBrackets===!0){N.output+=E,j.value=E;continue}j.value=`(${a}${E}|${j.value})`,N.output+=j.value;continue}if(P==="{"&&r.nobrace!==!0){k("braces");let J={type:"brace",value:P,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};Q.push(J),H(J);continue}if(P==="}"){let J=Q[Q.length-1];if(r.nobrace===!0||!J){H({type:"text",value:P,output:P});continue}let E=")";if(J.dots===!0){let B=o.slice(),C=[];for(let X=B.length-1;X>=0&&(o.pop(),B[X].type!=="brace");X--)B[X].type!=="dots"&&C.unshift(B[X].value);E=vI(C,r),N.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let B=N.output.slice(0,J.outputIndex),C=N.tokens.slice(J.tokensIndex);J.value=J.output="\\{",P=E="\\}",N.output=B;for(let X of C)N.output+=X.output||X.value}H({type:"brace",value:P,output:E}),S("braces"),Q.pop();continue}if(P==="|"){V.length>0&&V[V.length-1].conditions++,H({type:"text",value:P});continue}if(P===","){let J=P,E=Q[Q.length-1];E&&te[te.length-1]==="braces"&&(E.comma=!0,J="|"),H({type:"comma",value:P,output:J});continue}if(P==="/"){if(j.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",o.pop(),j=s;continue}H({type:"slash",value:P,output:d});continue}if(P==="."){if(N.braces>0&&j.type==="dot"){j.value==="."&&(j.output=h);let J=Q[Q.length-1];j.type="dots",j.output+=P,j.value+=P,J.dots=!0;continue}if(N.braces+N.parens===0&&j.type!=="bos"&&j.type!=="slash"){H({type:"text",value:P,output:h});continue}H({type:"dot",value:P,output:h});continue}if(P==="?"){if(!(j&&j.value==="(")&&r.noextglob!==!0&&G()==="("&&G(2)!=="?"){$("qmark",P);continue}if(j&&j.type==="paren"){let E=G(),B=P;if(E==="<"&&!Ft.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(j.value==="("&&!/[!=<:]/.test(E)||E==="<"&&!/<([!=]|\w+>)/.test(q()))&&(B=`\\${P}`),H({type:"text",value:P,output:B});continue}if(r.dot!==!0&&(j.type==="slash"||j.type==="bos")){H({type:"qmark",value:P,output:I});continue}H({type:"qmark",value:P,output:F});continue}if(P==="!"){if(r.noextglob!==!0&&G()==="("&&(G(2)!=="?"||!/[!=<:]/.test(G(3)))){$("negate",P);continue}if(r.nonegate!==!0&&N.index===0){v();continue}}if(P==="+"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){$("plus",P);continue}if(j&&j.value==="("||r.regex===!1){H({type:"plus",value:P,output:f});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||N.parens>0){H({type:"plus",value:P});continue}H({type:"plus",value:f});continue}if(P==="@"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){H({type:"at",extglob:!0,value:P,output:""});continue}H({type:"text",value:P});continue}if(P!=="*"){(P==="$"||P==="^")&&(P=`\\${P}`);let J=_I.exec(q());J&&(P+=J[0],N.index+=J[0].length),H({type:"text",value:P});continue}if(j&&(j.type==="globstar"||j.star===!0)){j.type="star",j.star=!0,j.value+=P,j.output=W,N.backtrack=!0,N.globstar=!0,g(P);continue}let Y=q();if(r.noextglob!==!0&&/^\([^?]/.test(Y)){$("star",P);continue}if(j.type==="star"){if(r.noglobstar===!0){g(P);continue}let J=j.prev,E=J.prev,B=J.type==="slash"||J.type==="bos",C=E&&(E.type==="star"||E.type==="globstar");if(r.bash===!0&&(!B||Y[0]&&Y[0]!=="/")){H({type:"star",value:P,output:""});continue}let X=N.braces>0&&(J.type==="comma"||J.type==="brace"),b=V.length&&(J.type==="pipe"||J.type==="paren");if(!B&&J.type!=="paren"&&!X&&!b){H({type:"star",value:P,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"&&L()){j.type="globstar",j.value+=P,j.output=x(r),N.output=j.output,N.globstar=!0,g(P);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!C&&L()){N.output=N.output.slice(0,-(J.output+j.output).length),J.output=`(?:${J.output}`,j.type="globstar",j.output=x(r)+(r.strictSlashes?")":"|$)"),j.value+=P,N.globstar=!0,N.output+=J.output+j.output,g(P);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=`${x(r)}${d}|${d}${z})`,j.value+=P,N.output+=J.output+j.output,N.globstar=!0,g(P+Z()),H({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&Y[0]==="/"){j.type="globstar",j.value+=P,j.output=`(?:^|${d}|${x(r)}${d})`,N.output=j.output,N.globstar=!0,g(P+Z()),H({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-j.output.length),j.type="globstar",j.output=x(r),j.value+=P,N.output+=j.output,N.globstar=!0,g(P);continue}let fe={type:"star",value:P,output:W};if(r.bash===!0){fe.output=".*?",(j.type==="bos"||j.type==="slash")&&(fe.output=D+fe.output),H(fe);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&r.regex===!0){fe.output=P,H(fe);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+=T,j.output+=T):(N.output+=D,j.output+=D),G()!=="*"&&(N.output+=p,j.output+=p)),H(fe)}for(;N.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));N.output=Ft.escapeLast(N.output,"["),S("brackets")}for(;N.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing",")"));N.output=Ft.escapeLast(N.output,"("),S("parens")}for(;N.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","}"));N.output=Ft.escapeLast(N.output,"{"),S("braces")}if(r.strictSlashes!==!0&&(j.type==="star"||j.type==="bracket")&&H({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};df.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(cu,r.maxLength):cu,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=uv[t]||t;let s=Ft.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:p}=uu.globChars(s),y=r.dot?h:l,m=r.dot?f:l,w=r.capture?"":"?:",T={negated:!1,prefix:""},F=r.bash===!0?".*?":d;r.capture&&(F=`(${F})`);let I=D=>D.noglobstar===!0?F:`(${w}(?:(?!${p}${D.dot?c:o}).)*?)`,R=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}${m}${F}`;case"**":return y+I(r);case"**/*":return`(?:${y}${I(r)}${a})?${m}${u}${F}`;case"**/*.*":return`(?:${y}${I(r)}${a})?${m}${F}${o}${u}${F}`;case"**/.*":return`(?:${y}${I(r)}${a})?${o}${u}${F}`;default:{let U=/^(.*?)\.(\w+)$/.exec(D);if(!U)return;let W=R(U[1]);return W?W+o+U[2]:void 0}}},M=Ft.removePrefix(t,T),x=R(M);return x&&r.strictSlashes!==!0&&(x+=`${a}?`),x};cv.exports=df});var fv=A((az,hv)=>{"use strict";var EI=require("path"),wI=av(),pf=lv(),mf=Po(),xI=Fo(),SI=t=>t&&typeof t=="object"&&!Array.isArray(t),je=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(f=>je(f,e,r));return f=>{for(let d of l){let p=d(f);if(p)return p}return!1}}let n=SI(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=mf.isWindows(e),o=n?je.compileRe(t,e):je.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=je(i.ignore,l,r)}let c=(l,h=!1)=>{let{isMatch:f,match:d,output:p}=je.test(l,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:l,output:p,match:d,isMatch:f};return typeof i.onResult=="function"&&i.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),h?y:!0)};return r&&(c.state=a),c};je.test=(t,e,r,{glob:n,posix:i}={})=>{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||(i?mf.toPosixSlashes:null),a=t===n,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=je.matchBase(t,e,r,i):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};je.matchBase=(t,e,r,n=mf.isWindows(r))=>(e instanceof RegExp?e:je.makeRe(e,r)).test(EI.basename(t));je.isMatch=(t,e,r)=>je(e,r)(t);je.parse=(t,e)=>Array.isArray(t)?t.map(r=>je.parse(r,e)):pf(t,{...e,fastpaths:!1});je.scan=(t,e)=>wI(t,e);je.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=je.toRegex(a,e);return n===!0&&(u.state=t),u};je.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=pf.fastpaths(t,e)),i.output||(i=pf(t,e)),je.compileRe(i,e,r,n)};je.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/$^/}};je.constants=xI;hv.exports=je});var pv=A((uz,dv)=>{"use strict";dv.exports=fv()});var vv=A((cz,bv)=>{"use strict";var yv=require("util"),gv=Yb(),_r=pv(),yf=Po(),mv=t=>t===""||t==="./",_v=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},Ie=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=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=_r(String(e[l]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let p=h(d,!0);(f?!p.isMatch:p.isMatch)&&(f?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let c=(o===e.length?[...s]:[...i]).filter(l=>!n.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};Ie.match=Ie;Ie.matcher=(t,e)=>_r(t,e);Ie.isMatch=(t,e,r)=>_r(e,r)(t);Ie.any=Ie.isMatch;Ie.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Ie(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Ie.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${yv.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>Ie.contains(t,n,r));if(typeof e=="string"){if(mv(t)||mv(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Ie.isMatch(t,e,{...r,contains:!0})};Ie.matchKeys=(t,e,r)=>{if(!yf.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=Ie(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};Ie.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=_r(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Ie.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=_r(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Ie.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${yv.inspect(t)}"`);return[].concat(e).every(n=>_r(n,r)(t))};Ie.capture=(t,e,r)=>{let n=yf.isWindows(r),s=_r.makeRe(String(t),{...r,capture:!0}).exec(n?yf.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Ie.makeRe=(...t)=>_r.makeRe(...t);Ie.scan=(...t)=>_r.scan(...t);Ie.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of gv(String(n),e))r.push(_r.parse(i,e));return r};Ie.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!_v(t)?[t]:gv(t,e)};Ie.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Ie.braces(t,{...e,expand:!0})};Ie.hasBraces=_v;bv.exports=Ie});var Rv=A(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.matchAny=ve.convertPatternsToRe=ve.makeRe=ve.getPatternParts=ve.expandBraceExpansion=ve.expandPatternsWithBraceExpansion=ve.isAffectDepthOfReadingPattern=ve.endsWithSlashGlobStar=ve.hasGlobStar=ve.getBaseDirectory=ve.isPatternRelatedToParentDirectory=ve.getPatternsOutsideCurrentDirectory=ve.getPatternsInsideCurrentDirectory=ve.getPositivePatterns=ve.getNegativePatterns=ve.isPositivePattern=ve.isNegativePattern=ve.convertToNegativePattern=ve.convertToPositivePattern=ve.isDynamicPattern=ve.isStaticPattern=void 0;var AI=require("path"),DI=fb(),gf=vv(),Ev="**",CI="\\",RI=/[*?]|^!/,kI=/\[[^[]*]/,TI=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,OI=/[!*+?@]\([^(]*\)/,FI=/,|\.\./;function wv(t,e={}){return!xv(t,e)}ve.isStaticPattern=wv;function xv(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(CI)||RI.test(t)||kI.test(t)||TI.test(t)||e.extglob!==!1&&OI.test(t)||e.braceExpansion!==!1&&PI(t))}ve.isDynamicPattern=xv;function PI(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return FI.test(n)}function II(t){return lu(t)?t.slice(1):t}ve.convertToPositivePattern=II;function LI(t){return"!"+t}ve.convertToNegativePattern=LI;function lu(t){return t.startsWith("!")&&t[1]!=="("}ve.isNegativePattern=lu;function Sv(t){return!lu(t)}ve.isPositivePattern=Sv;function BI(t){return t.filter(lu)}ve.getNegativePatterns=BI;function NI(t){return t.filter(Sv)}ve.getPositivePatterns=NI;function MI(t){return t.filter(e=>!_f(e))}ve.getPatternsInsideCurrentDirectory=MI;function jI(t){return t.filter(_f)}ve.getPatternsOutsideCurrentDirectory=jI;function _f(t){return t.startsWith("..")||t.startsWith("./..")}ve.isPatternRelatedToParentDirectory=_f;function qI(t){return DI(t,{flipBackslashes:!1})}ve.getBaseDirectory=qI;function UI(t){return t.includes(Ev)}ve.hasGlobStar=UI;function Av(t){return t.endsWith("/"+Ev)}ve.endsWithSlashGlobStar=Av;function HI(t){let e=AI.basename(t);return Av(t)||wv(e)}ve.isAffectDepthOfReadingPattern=HI;function $I(t){return t.reduce((e,r)=>e.concat(Dv(r)),[])}ve.expandPatternsWithBraceExpansion=$I;function Dv(t){return gf.braces(t,{expand:!0,nodupes:!0})}ve.expandBraceExpansion=Dv;function GI(t,e){let{parts:r}=gf.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}ve.getPatternParts=GI;function Cv(t,e){return gf.makeRe(t,e)}ve.makeRe=Cv;function zI(t,e){return t.map(r=>Cv(r,e))}ve.convertPatternsToRe=zI;function WI(t,e){return e.some(r=>r.test(t))}ve.matchAny=WI});var Fv=A((hz,Ov)=>{"use strict";var VI=require("stream"),kv=VI.PassThrough,YI=Array.prototype.slice;Ov.exports=KI;function KI(){let t=[],e=YI.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=kv(n);function a(){for(let l=0,h=arguments.length;l<h;l++)t.push(Tv(arguments[l],n));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(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),s&&p.removeListener("error",m),f()}function m(w){o.emit("error",w)}if(p._readableState.endEmitted)return f();p.on("merge2UnpipeEnd",y),p.on("end",y),s&&p.on("error",m),p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<l.length;p++)d(l[p]);f()}function c(){r=!1,o.emit("queueDrain"),i&&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 Tv(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Tv(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(kv(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Iv=A(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.merge=void 0;var ZI=Fv();function JI(t){let e=ZI(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>Pv(t)),e.once("end",()=>Pv(t)),e}hu.merge=JI;function Pv(t){t.forEach(e=>e.emit("close"))}});var Lv=A(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.isEmpty=Vi.isString=void 0;function XI(t){return typeof t=="string"}Vi.isString=XI;function QI(t){return t===""}Vi.isEmpty=QI});var qr=A(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.string=ot.stream=ot.pattern=ot.path=ot.fs=ot.errno=ot.array=void 0;var eL=rb();ot.array=eL;var tL=nb();ot.errno=tL;var rL=ib();ot.fs=rL;var nL=sb();ot.path=nL;var iL=Rv();ot.pattern=iL;var sL=Iv();ot.stream=sL;var oL=Lv();ot.string=oL});var Mv=A(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.convertPatternGroupToTask=at.convertPatternGroupsToTasks=at.groupPatternsByBaseDirectory=at.getNegativePatternsAsPositive=at.getPositivePatterns=at.convertPatternsToTasks=at.generate=void 0;var Ur=qr();function aL(t,e){let r=Bv(t),n=Nv(t,e.ignore),i=r.filter(u=>Ur.pattern.isStaticPattern(u,e)),s=r.filter(u=>Ur.pattern.isDynamicPattern(u,e)),o=bf(i,n,!1),a=bf(s,n,!0);return o.concat(a)}at.generate=aL;function bf(t,e,r){let n=[],i=Ur.pattern.getPatternsOutsideCurrentDirectory(t),s=Ur.pattern.getPatternsInsideCurrentDirectory(t),o=vf(i),a=vf(s);return n.push(...Ef(o,e,r)),"."in a?n.push(wf(".",s,e,r)):n.push(...Ef(a,e,r)),n}at.convertPatternsToTasks=bf;function Bv(t){return Ur.pattern.getPositivePatterns(t)}at.getPositivePatterns=Bv;function Nv(t,e){return Ur.pattern.getNegativePatterns(t).concat(e).map(Ur.pattern.convertToPositivePattern)}at.getNegativePatternsAsPositive=Nv;function vf(t){let e={};return t.reduce((r,n)=>{let i=Ur.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}at.groupPatternsByBaseDirectory=vf;function Ef(t,e,r){return Object.keys(t).map(n=>wf(n,t[n],e,r))}at.convertPatternGroupsToTasks=Ef;function wf(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ur.pattern.convertToNegativePattern))}}at.convertPatternGroupToTask=wf});var qv=A(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.removeDuplicateSlashes=Yi.transform=void 0;var uL=/(?!^)\/{2,}/g;function cL(t){return t.map(e=>jv(e))}Yi.transform=cL;function jv(t){return t.replace(uL,"/")}Yi.removeDuplicateSlashes=jv});var Hv=A(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.read=void 0;function lL(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Uv(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){xf(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Uv(r,s);return}xf(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),xf(r,o)})})}fu.read=lL;function Uv(t,e){t(e)}function xf(t,e){t(null,e)}});var $v=A(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.read=void 0;function hL(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}du.read=hL});var Gv=A(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.createFileSystemAdapter=pn.FILE_SYSTEM_ADAPTER=void 0;var pu=require("fs");pn.FILE_SYSTEM_ADAPTER={lstat:pu.lstat,stat:pu.stat,lstatSync:pu.lstatSync,statSync:pu.statSync};function fL(t){return t===void 0?pn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},pn.FILE_SYSTEM_ADAPTER),t)}pn.createFileSystemAdapter=fL});var zv=A(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var dL=Gv(),Sf=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=dL.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}};Af.default=Sf});var Xn=A(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.statSync=mn.stat=mn.Settings=void 0;var Wv=Hv(),pL=$v(),Df=zv();mn.Settings=Df.default;function mL(t,e,r){if(typeof e=="function"){Wv.read(t,Cf(),e);return}Wv.read(t,Cf(e),r)}mn.stat=mL;function yL(t,e){let r=Cf(e);return pL.read(t,r)}mn.statSync=yL;function Cf(t={}){return t instanceof Df.default?t:new Df.default(t)}});var Kv=A((wz,Yv)=>{var Vv;Yv.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Vv||(Vv=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Jv=A((xz,Zv)=>{Zv.exports=_L;var gL=Kv();function _L(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(u){function c(){e&&e(u,r),e=null}s?gL(c):c()}function a(u,c,l){r[u]=l,(--n===0||c)&&o(c)}n?i?i.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 Rf=A(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var mu=process.versions.node.split(".");if(mu[0]===void 0||mu[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Xv=Number.parseInt(mu[0],10),bL=Number.parseInt(mu[1],10),Qv=10,vL=10,EL=Xv>Qv,wL=Xv===Qv&&bL>=vL;yu.IS_SUPPORT_READDIR_WITH_FILE_TYPES=EL||wL});var eE=A(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.createDirentFromStats=void 0;var kf=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 xL(t,e){return new kf(t,e)}gu.createDirentFromStats=xL});var Tf=A(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.fs=void 0;var SL=eE();_u.fs=SL});var Of=A(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.joinPathSegments=void 0;function AL(t,e,r){return t.endsWith(r)?t+e:t+r+e}bu.joinPathSegments=AL});var oE=A(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.readdir=yn.readdirWithFileTypes=yn.read=void 0;var DL=Xn(),tE=Jv(),CL=Rf(),rE=Tf(),nE=Of();function RL(t,e,r){if(!e.stats&&CL.IS_SUPPORT_READDIR_WITH_FILE_TYPES){iE(t,e,r);return}sE(t,e,r)}yn.read=RL;function iE(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){vu(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:nE.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Ff(r,s);return}let o=s.map(a=>kL(a,e));tE(o,(a,u)=>{if(a!==null){vu(r,a);return}Ff(r,u)})})}yn.readdirWithFileTypes=iE;function kL(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=rE.fs.createDirentFromStats(t.name,i),r(null,t)})}}function sE(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){vu(r,n);return}let s=i.map(o=>{let a=nE.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{DL.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let h={name:o,path:a,dirent:rE.fs.createDirentFromStats(o,l)};e.stats&&(h.stats=l),u(null,h)})}});tE(s,(o,a)=>{if(o!==null){vu(r,o);return}Ff(r,a)})})}yn.readdir=sE;function vu(t,e){t(e)}function Ff(t,e){t(null,e)}});var hE=A(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.readdir=gn.readdirWithFileTypes=gn.read=void 0;var TL=Xn(),OL=Rf(),aE=Tf(),uE=Of();function FL(t,e){return!e.stats&&OL.IS_SUPPORT_READDIR_WITH_FILE_TYPES?cE(t,e):lE(t,e)}gn.read=FL;function cE(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:uE.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=aE.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}gn.readdirWithFileTypes=cE;function lE(t,e){return e.fs.readdirSync(t).map(n=>{let i=uE.joinPathSegments(t,n,e.pathSegmentSeparator),s=TL.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:aE.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}gn.readdir=lE});var fE=A(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.createFileSystemAdapter=_n.FILE_SYSTEM_ADAPTER=void 0;var Ki=require("fs");_n.FILE_SYSTEM_ADAPTER={lstat:Ki.lstat,stat:Ki.stat,lstatSync:Ki.lstatSync,statSync:Ki.statSync,readdir:Ki.readdir,readdirSync:Ki.readdirSync};function PL(t){return t===void 0?_n.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},_n.FILE_SYSTEM_ADAPTER),t)}_n.createFileSystemAdapter=PL});var dE=A(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});var IL=require("path"),LL=Xn(),BL=fE(),Pf=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=BL.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,IL.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new LL.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};If.default=Pf});var Eu=A(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.Settings=bn.scandirSync=bn.scandir=void 0;var pE=oE(),NL=hE(),Lf=dE();bn.Settings=Lf.default;function ML(t,e,r){if(typeof e=="function"){pE.read(t,Bf(),e);return}pE.read(t,Bf(e),r)}bn.scandir=ML;function jL(t,e){let r=Bf(e);return NL.read(t,r)}bn.scandirSync=jL;function Bf(t={}){return t instanceof Lf.default?t:new Lf.default(t)}});var yE=A((Pz,mE)=>{"use strict";function qL(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}mE.exports=qL});var _E=A((Iz,Nf)=>{"use strict";var UL=yE();function gE(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 n=UL(HL),i=null,s=null,o=0,a=null,u={push:y,drain:zt,saturated:zt,pause:l,paused:!1,concurrency:r,running:c,resume:d,idle:p,length:h,getQueue:f,unshift:m,empty:zt,kill:T,killAndDrain:F,error:I};return u;function c(){return o}function l(){u.paused=!0}function h(){for(var R=i,M=0;R;)R=R.next,M++;return M}function f(){for(var R=i,M=[];R;)M.push(R.value),R=R.next;return M}function d(){if(u.paused){u.paused=!1;for(var R=0;R<u.concurrency;R++)o++,w()}}function p(){return o===0&&u.length()===0}function y(R,M){var x=n.get();x.context=t,x.release=w,x.value=R,x.callback=M||zt,x.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=x,s=x):(i=x,s=x,u.saturated()):(o++,e.call(t,x.value,x.worked))}function m(R,M){var x=n.get();x.context=t,x.release=w,x.value=R,x.callback=M||zt,o===u.concurrency||u.paused?i?(x.next=i,i=x):(i=x,s=x,u.saturated()):(o++,e.call(t,x.value,x.worked))}function w(R){R&&n.release(R);var M=i;M?u.paused?o--:(s===i&&(s=null),i=M.next,M.next=null,e.call(t,M.value,M.worked),s===null&&u.empty()):--o===0&&u.drain()}function T(){i=null,s=null,u.drain=zt}function F(){i=null,s=null,u.drain(),u.drain=zt}function I(R){a=R}}function zt(){}function HL(){this.value=null,this.callback=zt,this.next=null,this.release=zt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=zt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function $L(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(l,h){e.call(this,l).then(function(f){h(null,f)},h)}var i=gE(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(l){var h=new Promise(function(f,d){s(l,function(p,y){if(p){d(p);return}f(y)})});return h.catch(zt),h}function u(l){var h=new Promise(function(f,d){o(l,function(p,y){if(p){d(p);return}f(y)})});return h.catch(zt),h}function c(){var l=i.drain,h=new Promise(function(f){i.drain=function(){l(),f()}});return h}}Nf.exports=gE;Nf.exports.promise=$L});var wu=A(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.joinPathSegments=br.replacePathSegmentSeparator=br.isAppliedFilter=br.isFatalError=void 0;function GL(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}br.isFatalError=GL;function zL(t,e){return t===null||t(e)}br.isAppliedFilter=zL;function WL(t,e){return t.split(/[/\\]/).join(e)}br.replacePathSegmentSeparator=WL;function VL(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}br.joinPathSegments=VL});var qf=A(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var YL=wu(),Mf=class{constructor(e,r){this._root=e,this._settings=r,this._root=YL.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};jf.default=Mf});var $f=A(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var KL=require("events"),ZL=Eu(),JL=_E(),xu=wu(),XL=qf(),Uf=class extends XL.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=ZL.scandir,this._emitter=new KL.EventEmitter,this._queue=JL(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 n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!xu.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 n=e.path;r!==void 0&&(e.path=xu.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),xu.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&xu.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Hf.default=Uf});var bE=A(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var QL=$f(),Gf=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new QL.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{eB(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{tB(e,this._storage)}),this._reader.read()}};zf.default=Gf;function eB(t,e){t(e)}function tB(t,e){t(null,e)}});var vE=A(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var rB=require("stream"),nB=$f(),Wf=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new nB.default(this._root,this._settings),this._stream=new rB.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}};Vf.default=Wf});var EE=A(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var iB=Eu(),Su=wu(),sB=qf(),Yf=class extends sB.default{constructor(){super(...arguments),this._scandir=iB.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 n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(Su.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Su.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Su.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Su.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Kf.default=Yf});var wE=A(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var oB=EE(),Zf=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new oB.default(this._root,this._settings)}read(){return this._reader.read()}};Jf.default=Zf});var xE=A(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var aB=require("path"),uB=Eu(),Xf=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,aB.sep),this.fsScandirSettings=new uB.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}};Qf.default=Xf});var Du=A(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.Settings=vr.walkStream=vr.walkSync=vr.walk=void 0;var SE=bE(),cB=vE(),lB=wE(),ed=xE();vr.Settings=ed.default;function hB(t,e,r){if(typeof e=="function"){new SE.default(t,Au()).read(e);return}new SE.default(t,Au(e)).read(r)}vr.walk=hB;function fB(t,e){let r=Au(e);return new lB.default(t,r).read()}vr.walkSync=fB;function dB(t,e){let r=Au(e);return new cB.default(t,r).read()}vr.walkStream=dB;function Au(t={}){return t instanceof ed.default?t:new ed.default(t)}});var Cu=A(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var pB=require("path"),mB=Xn(),AE=qr(),td=class{constructor(e){this._settings=e,this._fsStatSettings=new mB.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return pB.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:AE.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!AE.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};rd.default=td});var sd=A(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var yB=require("stream"),gB=Xn(),_B=Du(),bB=Cu(),nd=class extends bB.default{constructor(){super(...arguments),this._walkStream=_B.walkStream,this._stat=gB.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new yB.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};id.default=nd});var DE=A(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var vB=Du(),EB=Cu(),wB=sd(),od=class extends EB.default{constructor(){super(...arguments),this._walkAsync=vB.walk,this._readerStream=new wB.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};ad.default=od});var CE=A(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var Zi=qr(),ud=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Zi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Zi.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Zi.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Zi.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Zi.array.splitWhen(e,r=>r.dynamic&&Zi.pattern.hasGlobStar(r.pattern))}};cd.default=ud});var RE=A(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var xB=CE(),ld=class extends xB.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>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}};hd.default=ld});var kE=A(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var Ru=qr(),SB=RE(),fd=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new SB.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Ru.pattern.isAffectDepthOfReadingPattern);return Ru.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Ru.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Ru.pattern.matchAny(e,r)}};dd.default=fd});var TE=A(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var Qn=qr(),pd=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=Qn.pattern.convertPatternsToRe(e,this._micromatchOptions),i=Qn.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,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 n=Qn.path.makeAbsolute(this._settings.cwd,e);return Qn.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=Qn.path.removeLeadingDotSegment(e),s=Qn.pattern.matchAny(i,r);return!s&&n?Qn.pattern.matchAny(i+"/",r):s}};md.default=pd});var OE=A(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var AB=qr(),yd=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return AB.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};gd.default=yd});var PE=A(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var FE=qr(),_d=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=FE.path.makeAbsolute(this._settings.cwd,r),r=FE.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};bd.default=_d});var ku=A(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var DB=require("path"),CB=kE(),RB=TE(),kB=OE(),TB=PE(),vd=class{constructor(e){this._settings=e,this.errorFilter=new kB.default(this._settings),this.entryFilter=new RB.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new CB.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new TB.default(this._settings)}_getRootDirectory(e){return DB.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}}};Ed.default=vd});var IE=A(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var OB=DE(),FB=ku(),wd=class extends FB.default{constructor(){super(...arguments),this._reader=new OB.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};xd.default=wd});var LE=A(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var PB=require("stream"),IB=sd(),LB=ku(),Sd=class extends LB.default{constructor(){super(...arguments),this._reader=new IB.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new PB.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Ad.default=Sd});var BE=A(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var BB=Xn(),NB=Du(),MB=Cu(),Dd=class extends MB.default{constructor(){super(...arguments),this._walkSync=NB.walkSync,this._statSync=BB.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Cd.default=Dd});var NE=A(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var jB=BE(),qB=ku(),Rd=class extends qB.default{constructor(){super(...arguments),this._reader=new jB.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};kd.default=Rd});var ME=A(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ji=require("fs"),UB=require("os"),HB=Math.max(UB.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 Td=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,HB),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=Td});var Tu=A((sW,UE)=>{"use strict";var jE=Mv(),qE=qv(),$B=IE(),GB=LE(),zB=NE(),Od=ME(),ei=qr();async function Fd(t,e){Qi(t);let r=Pd(t,$B.default,e),n=await Promise.all(r);return ei.array.flatten(n)}(function(t){function e(o,a){Qi(o);let u=Pd(o,zB.default,a);return ei.array.flatten(u)}t.sync=e;function r(o,a){Qi(o);let u=Pd(o,GB.default,a);return ei.stream.merge(u)}t.stream=r;function n(o,a){Qi(o);let u=qE.transform([].concat(o)),c=new Od.default(a);return jE.generate(u,c)}t.generateTasks=n;function i(o,a){Qi(o);let u=new Od.default(a);return ei.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=i;function s(o){return Qi(o),ei.path.escape(o)}t.escapePath=s})(Fd||(Fd={}));function Pd(t,e,r){let n=qE.transform([].concat(t)),i=new Od.default(r),s=jE.generate(n,i),o=new e(i);return s.map(o.read,o)}function Qi(t){if(![].concat(t).every(n=>ei.string.isString(n)&&!ei.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}UE.exports=Fd});var $E=A((oW,HE)=>{"use strict";HE.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Id=A((aW,zE)=>{var Lo=$E(),GE={};for(let t of Object.keys(Lo))GE[Lo[t]]=t;var le={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};zE.exports=le;for(let t of Object.keys(le)){if(!("channels"in le[t]))throw new Error("missing channels property: "+t);if(!("labels"in le[t]))throw new Error("missing channel labels property: "+t);if(le[t].labels.length!==le[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=le[t];delete le[t].channels,delete le[t].labels,Object.defineProperty(le[t],"channels",{value:e}),Object.defineProperty(le[t],"labels",{value:r})}le.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+s)/2;return s===i?u=0:c<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,c*100]};le.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,c=Math.max(o,a,u),l=c-Math.min(o,a,u),h=function(f){return(c-f)/6/l+1/2};return l===0?(i=0,s=0):(s=l/c,e=h(o),r=h(a),n=h(u),o===c?i=n-r:a===c?i=1/3+e-n:u===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};le.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=le.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};le.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function WB(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}le.rgb.keyword=function(t){let e=GE[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Lo)){let s=Lo[i],o=WB(t,s);o<r&&(r=o,n=i)}return n};le.keyword.rgb=function(t){return Lo[t]};le.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};le.rgb.lab=function(t){let e=le.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};le.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let c=0;c<3;c++)s=e+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[c]=o*255;return u};le.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};le.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};le.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};le.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let u=r+s*(a-r),c,l,h;switch(o){default:case 6:case 0:c=a,l=u,h=r;break;case 1:c=u,l=a,h=r;break;case 2:c=r,l=a,h=u;break;case 3:c=r,l=u,h=a;break;case 4:c=u,l=r,h=a;break;case 5:c=a,l=r,h=u;break}return[c*255,l*255,h*255]};le.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};le.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};le.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};le.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,c=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};le.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};le.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};le.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?le.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};le.hsv.ansi16=function(t){return le.rgb.ansi16(le.hsv.rgb(t),t[2])};le.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};le.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};le.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};le.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};le.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};le.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};le.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};le.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};le.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};le.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};le.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};le.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};le.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};le.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};le.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};le.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};le.gray.hsl=function(t){return[0,0,t[0]]};le.gray.hsv=le.gray.hsl;le.gray.hwb=function(t){return[0,100,t[0]]};le.gray.cmyk=function(t){return[0,0,0,t[0]]};le.gray.lab=function(t){return[t[0],0,0]};le.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};le.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var VE=A((uW,WE)=>{var Ou=Id();function VB(){let t={},e=Object.keys(Ou);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function YB(t){let e=VB(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Ou[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function KB(t,e){return function(r){return e(t(r))}}function ZB(t,e){let r=[e[t].parent,t],n=Ou[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=KB(Ou[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}WE.exports=function(t){let e=YB(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=ZB(o,e))}return r}});var KE=A((cW,YE)=>{var Ld=Id(),JB=VE(),es={},XB=Object.keys(Ld);function QB(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function eN(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}XB.forEach(t=>{es[t]={},Object.defineProperty(es[t],"channels",{value:Ld[t].channels}),Object.defineProperty(es[t],"labels",{value:Ld[t].labels});let e=JB(t);Object.keys(e).forEach(n=>{let i=e[n];es[t][n]=eN(i),es[t][n].raw=QB(i)})});YE.exports=es});var Nd=A((lW,e1)=>{"use strict";var ZE=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,JE=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},XE=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},Fu=t=>t,QE=(t,e,r)=>[t,e,r],ts=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Bd,rs=(t,e,r,n)=>{Bd===void 0&&(Bd=KE());let i=n?10:0,s={};for(let[o,a]of Object.entries(Bd)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function tN(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",ts(e.color,"ansi",()=>rs(ZE,"ansi16",Fu,!1)),ts(e.color,"ansi256",()=>rs(JE,"ansi256",Fu,!1)),ts(e.color,"ansi16m",()=>rs(XE,"rgb",QE,!1)),ts(e.bgColor,"ansi",()=>rs(ZE,"ansi16",Fu,!0)),ts(e.bgColor,"ansi256",()=>rs(JE,"ansi256",Fu,!0)),ts(e.bgColor,"ansi16m",()=>rs(XE,"rgb",QE,!0)),e}Object.defineProperty(e1,"exports",{enumerable:!0,get:tN})});var r1=A((hW,t1)=>{"use strict";t1.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var qd=A((fW,i1)=>{"use strict";var rN=require("os"),n1=require("tty"),Wt=r1(),{env:Ke}=process,vn;Wt("no-color")||Wt("no-colors")||Wt("color=false")||Wt("color=never")?vn=0:(Wt("color")||Wt("colors")||Wt("color=true")||Wt("color=always"))&&(vn=1);"FORCE_COLOR"in Ke&&(Ke.FORCE_COLOR==="true"?vn=1:Ke.FORCE_COLOR==="false"?vn=0:vn=Ke.FORCE_COLOR.length===0?1:Math.min(parseInt(Ke.FORCE_COLOR,10),3));function Md(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function jd(t,e){if(vn===0)return 0;if(Wt("color=16m")||Wt("color=full")||Wt("color=truecolor"))return 3;if(Wt("color=256"))return 2;if(t&&!e&&vn===void 0)return 0;let r=vn||0;if(Ke.TERM==="dumb")return r;if(process.platform==="win32"){let n=rN.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ke)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ke)||Ke.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ke)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ke.TEAMCITY_VERSION)?1:0;if(Ke.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ke){let n=parseInt((Ke.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ke.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ke.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ke.TERM)||"COLORTERM"in Ke?1:r}function nN(t){let e=jd(t,t&&t.isTTY);return Md(e)}i1.exports={supportsColor:nN,stdout:Md(jd(!0,n1.isatty(1))),stderr:Md(jd(!0,n1.isatty(2)))}});var o1=A((dW,s1)=>{"use strict";var iN=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},sN=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
4
4
  `:`
5
5
  `)+r,i=n+1,n=t.indexOf(`
6
- `,i)}while(n!==-1);return s+=t.substr(i),s};r1.exports={stringReplaceAll:rN,stringEncaseCRLFWithFirstIndex:nN}});var u1=A((fW,a1)=>{"use strict";var iN=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,i1=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,sN=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,oN=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,aN=new Map([["n",`
7
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o1(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):aN.get(t)||t}function uN(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(sN))r.push(i[2].replace(oN,(a,u,c)=>u?o1(u):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function cN(t){i1.lastIndex=0;let e=[],r;for(;(r=i1.exec(t))!==null;){let n=r[1];if(r[2]){let i=uN(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function s1(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}a1.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(iN,(s,o,a,u,c,l)=>{if(o)i.push(o1(o));else if(u){let h=i.join("");i=[],n.push(r.length===0?h:s1(t,r)(h)),r.push({inverse:a,styles:cN(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(s1(t,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var d1=A((dW,f1)=>{"use strict";var Bo=Ld(),{stdout:qd,stderr:Ud}=Md(),{stringReplaceAll:lN,stringEncaseCRLFWithFirstIndex:hN}=n1(),c1=["ansi","ansi","ansi256","ansi16m"],ns=Object.create(null),fN=(t,e={})=>{if(e.level>3||e.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=qd?qd.level:0;t.level=e.level===void 0?r:e.level},Hd=class{constructor(e){return l1(e)}},l1=t=>{let e={};return fN(e,t),e.template=(...r)=>mN(e.template,...r),Object.setPrototypeOf(e,Pu.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Hd,e.template};function Pu(t){return l1(t)}for(let[t,e]of Object.entries(Bo))ns[t]={get(){let r=Iu(this,$d(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};ns.visible={get(){let t=Iu(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var h1=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of h1)ns[t]={get(){let{level:e}=this;return function(...r){let n=$d(Bo.color[c1[e]][t](...r),Bo.color.close,this._styler);return Iu(this,n,this._isEmpty)}}};for(let t of h1){let e="bg"+t[0].toUpperCase()+t.slice(1);ns[e]={get(){let{level:r}=this;return function(...n){let i=$d(Bo.bgColor[c1[r]][t](...n),Bo.bgColor.close,this._styler);return Iu(this,i,this._isEmpty)}}}}var dN=Object.defineProperties(()=>{},{...ns,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),$d=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Iu=(t,e,r)=>{let n=(...i)=>pN(n,i.length===1?""+i[0]:i.join(" "));return n.__proto__=dN,n._generator=t,n._styler=e,n._isEmpty=r,n},pN=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=lN(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
8
- `);return s!==-1&&(e=hN(e,i,n,s)),n+e+i},jd,mN=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return jd===void 0&&(jd=u1()),jd(t,i.join(""))};Object.defineProperties(Pu.prototype,ns);var No=Pu();No.supportsColor=qd;No.stderr=Pu({level:Ud?Ud.level:0});No.stderr.supportsColor=Ud;No.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};f1.exports=No});var m1=A((pW,Gd)=>{"use strict";var p1=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Gd.exports=p1;Gd.exports.default=p1});var zd=A((mW,Bu)=>{"use strict";var yN=m1(),Lu=new WeakMap,y1=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Lu.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return yN(s,t),Lu.set(s,n),s};Bu.exports=y1;Bu.exports.default=y1;Bu.exports.callCount=t=>{if(!Lu.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Lu.get(t)}});var g1=A((yW,Nu)=>{Nu.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Nu.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Nu.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Yd=A((gW,os)=>{var Me=global.process,ti=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"};ti(Me)?(_1=require("assert"),is=g1(),b1=/^win/i.test(Me.platform),Mo=require("events"),typeof Mo!="function"&&(Mo=Mo.EventEmitter),Me.__signal_exit_emitter__?Ze=Me.__signal_exit_emitter__:(Ze=Me.__signal_exit_emitter__=new Mo,Ze.count=0,Ze.emitted={}),Ze.infinite||(Ze.setMaxListeners(1/0),Ze.infinite=!0),os.exports=function(t,e){if(!ti(global.process))return function(){};_1.equal(typeof t,"function","a callback must be provided for exit handler"),ss===!1&&Wd();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ze.removeListener(r,t),Ze.listeners("exit").length===0&&Ze.listeners("afterexit").length===0&&Mu()};return Ze.on(r,t),n},Mu=function(){!ss||!ti(global.process)||(ss=!1,is.forEach(function(e){try{Me.removeListener(e,ju[e])}catch{}}),Me.emit=qu,Me.reallyExit=Vd,Ze.count-=1)},os.exports.unload=Mu,ri=function(e,r,n){Ze.emitted[e]||(Ze.emitted[e]=!0,Ze.emit(e,r,n))},ju={},is.forEach(function(t){ju[t]=function(){if(ti(global.process)){var r=Me.listeners(t);r.length===Ze.count&&(Mu(),ri("exit",null,t),ri("afterexit",null,t),b1&&t==="SIGHUP"&&(t="SIGINT"),Me.kill(Me.pid,t))}}}),os.exports.signals=function(){return is},ss=!1,Wd=function(){ss||!ti(global.process)||(ss=!0,Ze.count+=1,is=is.filter(function(e){try{return Me.on(e,ju[e]),!0}catch{return!1}}),Me.emit=E1,Me.reallyExit=v1)},os.exports.load=Wd,Vd=Me.reallyExit,v1=function(e){ti(global.process)&&(Me.exitCode=e||0,ri("exit",Me.exitCode,null),ri("afterexit",Me.exitCode,null),Vd.call(Me,Me.exitCode))},qu=Me.emit,E1=function(e,r){if(e==="exit"&&ti(global.process)){r!==void 0&&(Me.exitCode=r);var n=qu.apply(this,arguments);return ri("exit",Me.exitCode,null),ri("afterexit",Me.exitCode,null),n}else return qu.apply(this,arguments)}):os.exports=function(){return function(){}};var _1,is,b1,Mo,Ze,Mu,ri,ju,ss,Wd,Vd,v1,qu,E1});var x1=A((_W,w1)=>{"use strict";var gN=zd(),_N=Yd();w1.exports=gN(()=>{_N(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var S1=A(as=>{"use strict";var bN=x1(),Uu=!1;as.show=(t=process.stderr)=>{t.isTTY&&(Uu=!1,t.write("\x1B[?25h"))};as.hide=(t=process.stderr)=>{t.isTTY&&(bN(),Uu=!0,t.write("\x1B[?25l"))};as.toggle=(t,e)=>{t!==void 0&&(Uu=t),Uu?as.show(e):as.hide(e)}});var A1=A((vW,vN)=>{vN.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 R1=A((EW,C1)=>{"use strict";var Hu=Object.assign({},A1()),D1=Object.keys(Hu);Object.defineProperty(Hu,"random",{get(){let t=Math.floor(Math.random()*D1.length),e=D1[t];return Hu[e]}});C1.exports=Hu});var T1=A((wW,k1)=>{"use strict";var EN=/[|\\{}()[\]^$+*?.]/g;k1.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(EN,"\\$&")}});var F1=A((xW,O1)=>{"use strict";O1.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Kd=A((SW,B1)=>{var ni=F1(),L1={};for($u in ni)ni.hasOwnProperty($u)&&(L1[ni[$u]]=$u);var $u,he=B1.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(yt in he)if(he.hasOwnProperty(yt)){if(!("channels"in he[yt]))throw new Error("missing channels property: "+yt);if(!("labels"in he[yt]))throw new Error("missing channel labels property: "+yt);if(he[yt].labels.length!==he[yt].channels)throw new Error("channel and label counts mismatch: "+yt);P1=he[yt].channels,I1=he[yt].labels,delete he[yt].channels,delete he[yt].labels,Object.defineProperty(he[yt],"channels",{value:P1}),Object.defineProperty(he[yt],"labels",{value:I1})}var P1,I1,yt;he.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u,c;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),c=(i+s)/2,s===i?u=0:c<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,c*100]};he.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,c=Math.max(o,a,u),l=c-Math.min(o,a,u),h=function(f){return(c-f)/6/l+1/2};return l===0?i=s=0:(s=l/c,e=h(o),r=h(a),n=h(u),o===c?i=n-r:a===c?i=1/3+e-n:u===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};he.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=he.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};he.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function wN(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}he.rgb.keyword=function(t){var e=L1[t];if(e)return e;var r=1/0,n;for(var i in ni)if(ni.hasOwnProperty(i)){var s=ni[i],o=wN(t,s);o<r&&(r=o,n=i)}return n};he.keyword.rgb=function(t){return ni[t]};he.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};he.rgb.lab=function(t){var e=he.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};he.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var c=0;c<3;c++)o=e+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[c]=u*255;return a};he.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};he.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};he.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};he.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),u=r+a*(o-r);var c,l,h;switch(s){default:case 6:case 0:c=o,l=u,h=r;break;case 1:c=u,l=o,h=r;break;case 2:c=r,l=o,h=u;break;case 3:c=r,l=u,h=o;break;case 4:c=u,l=r,h=o;break;case 5:c=o,l=r,h=u;break}return[c*255,l*255,h*255]};he.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};he.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};he.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};he.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),c=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};he.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};he.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};he.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:he.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};he.hsv.ansi16=function(t){return he.rgb.ansi16(he.hsv.rgb(t),t[2])};he.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};he.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};he.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};he.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};he.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};he.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};he.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};he.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};he.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};he.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};he.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};he.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};he.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};he.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};he.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};he.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};he.gray.hsl=he.gray.hsv=function(t){return[0,0,t[0]]};he.gray.hwb=function(t){return[0,100,t[0]]};he.gray.cmyk=function(t){return[0,0,0,t[0]]};he.gray.lab=function(t){return[t[0],0,0]};he.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};he.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var M1=A((AW,N1)=>{var Gu=Kd();function xN(){for(var t={},e=Object.keys(Gu),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function SN(t){var e=xN(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Gu[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}return e}function AN(t,e){return function(r){return e(t(r))}}function DN(t,e){for(var r=[e[t].parent,t],n=Gu[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=AN(Gu[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}N1.exports=function(t){for(var e=SN(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=DN(o,e))}return r}});var q1=A((DW,j1)=>{var Zd=Kd(),CN=M1(),us={},RN=Object.keys(Zd);function kN(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function TN(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}RN.forEach(function(t){us[t]={},Object.defineProperty(us[t],"channels",{value:Zd[t].channels}),Object.defineProperty(us[t],"labels",{value:Zd[t].labels});var e=CN(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];us[t][n]=TN(i),us[t][n].raw=kN(i)})});j1.exports=us});var H1=A((CW,U1)=>{"use strict";var cs=q1(),zu=(t,e)=>function(){return`\x1B[${t.apply(cs,arguments)+e}m`},Wu=(t,e)=>function(){let r=t.apply(cs,arguments);return`\x1B[${38+e};5;${r}m`},Vu=(t,e)=>function(){let r=t.apply(cs,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function ON(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:zu(r,0)},e.color.ansi256={ansi256:Wu(r,0)},e.color.ansi16m={rgb:Vu(n,0)},e.bgColor.ansi={ansi:zu(r,10)},e.bgColor.ansi256={ansi256:Wu(r,10)},e.bgColor.ansi16m={rgb:Vu(n,10)};for(let i of Object.keys(cs)){if(typeof cs[i]!="object")continue;let s=cs[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=zu(s.ansi16,0),e.bgColor.ansi[i]=zu(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=Wu(s.ansi256,0),e.bgColor.ansi256[i]=Wu(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Vu(s.rgb,0),e.bgColor.ansi16m[i]=Vu(s.rgb,10))}return e}Object.defineProperty(U1,"exports",{enumerable:!0,get:ON})});var G1=A((RW,$1)=>{"use strict";$1.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var W1=A((kW,z1)=>{"use strict";var FN=require("os"),or=G1(),ut=process.env,ls;or("no-color")||or("no-colors")||or("color=false")?ls=!1:(or("color")||or("colors")||or("color=true")||or("color=always"))&&(ls=!0);"FORCE_COLOR"in ut&&(ls=ut.FORCE_COLOR.length===0||parseInt(ut.FORCE_COLOR,10)!==0);function PN(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function IN(t){if(ls===!1)return 0;if(or("color=16m")||or("color=full")||or("color=truecolor"))return 3;if(or("color=256"))return 2;if(t&&!t.isTTY&&ls!==!0)return 0;let e=ls?1:0;if(process.platform==="win32"){let r=FN.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ut)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in ut)||ut.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in ut)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ut.TEAMCITY_VERSION)?1:0;if(ut.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ut){let r=parseInt((ut.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ut.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ut.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ut.TERM)||"COLORTERM"in ut?1:(ut.TERM==="dumb",e)}function Jd(t){let e=IN(t);return PN(e)}z1.exports={supportsColor:Jd,stdout:Jd(process.stdout),stderr:Jd(process.stderr)}});var J1=A((TW,Z1)=>{"use strict";var LN=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,V1=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,BN=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,NN=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,MN=new Map([["n",`
9
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function K1(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):MN.get(t)||t}function jN(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(BN))r.push(i[2].replace(NN,(o,a,u)=>a?K1(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function qN(t){V1.lastIndex=0;let e=[],r;for(;(r=V1.exec(t))!==null;){let n=r[1];if(r[2]){let i=jN(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Y1(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Z1.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(LN,(s,o,a,u,c,l)=>{if(o)i.push(K1(o));else if(u){let h=i.join("");i=[],n.push(r.length===0?h:Y1(t,r)(h)),r.push({inverse:a,styles:qN(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Y1(t,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var rw=A((OW,qo)=>{"use strict";var Qd=T1(),Ge=H1(),Xd=W1().stdout,UN=J1(),Q1=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),ew=["ansi","ansi","ansi256","ansi16m"],tw=new Set(["gray"]),hs=Object.create(null);function X1(t,e){e=e||{};let r=Xd?Xd.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function jo(t){if(!this||!(this instanceof jo)||this.template){let e={};return X1(e,t),e.template=function(){let r=[].slice.call(arguments);return GN.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,jo.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=jo,e.template}X1(this,t)}Q1&&(Ge.blue.open="\x1B[94m");for(let t of Object.keys(Ge))Ge[t].closeRe=new RegExp(Qd(Ge[t].close),"g"),hs[t]={get(){let e=Ge[t];return Yu.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};hs.visible={get(){return Yu.call(this,this._styles||[],!0,"visible")}};Ge.color.closeRe=new RegExp(Qd(Ge.color.close),"g");for(let t of Object.keys(Ge.color.ansi))tw.has(t)||(hs[t]={get(){let e=this.level;return function(){let n={open:Ge.color[ew[e]][t].apply(null,arguments),close:Ge.color.close,closeRe:Ge.color.closeRe};return Yu.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});Ge.bgColor.closeRe=new RegExp(Qd(Ge.bgColor.close),"g");for(let t of Object.keys(Ge.bgColor.ansi)){if(tw.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);hs[e]={get(){let r=this.level;return function(){let i={open:Ge.bgColor[ew[r]][t].apply(null,arguments),close:Ge.bgColor.close,closeRe:Ge.bgColor.closeRe};return Yu.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var HN=Object.defineProperties(()=>{},hs);function Yu(t,e,r){let n=function(){return $N.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=HN,n}function $N(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Ge.dim.open;Q1&&this.hasGrey&&(Ge.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Ge.dim.open=n,r}function GN(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return UN(t,n.join(""))}Object.defineProperties(jo.prototype,hs);qo.exports=jo();qo.exports.supportsColor=Xd;qo.exports.default=qo.exports});var iw=A((FW,nw)=>{"use strict";var En=rw(),zN=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",WN={info:En.blue("\u2139"),success:En.green("\u2714"),warning:En.yellow("\u26A0"),error:En.red("\u2716")},VN={info:En.blue("i"),success:En.green("\u221A"),warning:En.yellow("\u203C"),error:En.red("\xD7")};nw.exports=zN?WN:VN});var ow=A((PW,sw)=>{"use strict";sw.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 uw=A((IW,aw)=>{"use strict";var YN=ow();aw.exports=t=>typeof t=="string"?t.replace(YN(),""):t});var cw=A((LW,Ku)=>{var KN=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 p(y,m){if(y===null)return null;if(m==0)return y;var w,T;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"?(T=Object.getPrototypeOf(y),w=Object.create(T)):(w=Object.create(c),T=c)}if(a){var F=h.indexOf(y);if(F!=-1)return f[F];h.push(y),f.push(w)}for(var I in y){var R;T&&(R=Object.getOwnPropertyDescriptor(T,I)),!(R&&R.set==null)&&(w[I]=p(y[I],m-1))}return w}return p(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 n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;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 Ku=="object"&&Ku.exports&&(Ku.exports=KN)});var hw=A((BW,lw)=>{var ZN=cw();lw.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=ZN(e[r]))}),t}});var dw=A((NW,fw)=>{fw.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 gw=A((MW,ep)=>{"use strict";var JN=hw(),Uo=dw(),mw={nul:0,control:0};ep.exports=function(e){return yw(e,mw)};ep.exports.config=function(t){return t=JN(t||{},mw),function(r){return yw(r,t)}};function yw(t,e){if(typeof t!="string")return pw(t,e);for(var r=0,n=0;n<t.length;n++){var i=pw(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function pw(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:XN(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 XN(t){var e=0,r=Uo.length-1,n;if(t<Uo[0][0]||t>Uo[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>Uo[n][1])e=n+1;else if(t<Uo[n][0])r=n-1;else return!0;return!1}});var bw=A((jW,_w)=>{"use strict";_w.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var Ew=A((qW,vw)=>{var tp=require("stream");vw.exports=Je;function Je(t){tp.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}Je.prototype=Object.create(tp.prototype);Object.defineProperty(Je.prototype,"constructor",{value:Je,enumerable:!1});Je.prototype.mute=function(){this.muted=!0};Je.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Je.prototype,"_onpipe",{value:QN,enumerable:!1,writable:!0,configurable:!0});function QN(t){this._src=t}Object.defineProperty(Je.prototype,"isTTY",{get:e3,set:t3,enumerable:!0,configurable:!0});function e3(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function t3(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Je.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Je.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Je.prototype.pipe=function(t,e){return this._dest=t,tp.prototype.pipe.call(this,t,e)};Je.prototype.pause=function(){if(this._src)return this._src.pause()};Je.prototype.resume=function(){if(this._src)return this._src.resume()};Je.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)};Je.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 rp(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)}}Je.prototype.destroy=rp("destroy");Je.prototype.destroySoon=rp("destroySoon");Je.prototype.close=rp("close")});var tc=A((UW,sp)=>{"use strict";var r3=require("readline"),n3=d1(),ww=S1(),Zu=R1(),Ju=iw(),i3=uw(),s3=gw(),o3=bw(),a3=Ew(),np=Symbol("text"),Xu=Symbol("prefixText"),u3=3,ip=class{constructor(){this.requests=0,this.mutedStream=new a3,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(u3)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}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=r3.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)}},Qu,ec=class{constructor(e){Qu||(Qu=new ip),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:o3({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=Zu.line;else if(e===void 0)this._spinner=Zu.dots;else if(Zu[e])this._spinner=Zu[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[np]}get prefixText(){return this[Xu]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[Xu]=="string"?this[Xu]+"-":"";this.lineCount=i3(r+"--"+this[np]).split(`
10
- `).reduce((n,i)=>n+Math.max(1,Math.ceil(s3(i)/e)),0)}set text(e){this[np]=e,this.updateLineCount()}set prefixText(e){this[Xu]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=n3[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}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&&ww.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,Qu.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
11
- `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&ww.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(Qu.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Ju.success,text:e})}fail(e){return this.stopAndPersist({symbol:Ju.error,text:e})}warn(e){return this.stopAndPersist({symbol:Ju.warning,text:e})}info(e){return this.stopAndPersist({symbol:Ju.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${e.symbol||" "}${s}
12
- `),this}},c3=function(t){return new ec(t)};sp.exports=c3;sp.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new ec(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var Sw=A((HW,xw)=>{"use strict";var l3=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},h3=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
6
+ `,i)}while(n!==-1);return s+=t.substr(i),s};s1.exports={stringReplaceAll:iN,stringEncaseCRLFWithFirstIndex:sN}});var h1=A((pW,l1)=>{"use strict";var oN=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,a1=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,aN=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,uN=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,cN=new Map([["n",`
7
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function c1(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):cN.get(t)||t}function lN(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(aN))r.push(i[2].replace(uN,(a,u,c)=>u?c1(u):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function hN(t){a1.lastIndex=0;let e=[],r;for(;(r=a1.exec(t))!==null;){let n=r[1];if(r[2]){let i=lN(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function u1(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}l1.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(oN,(s,o,a,u,c,l)=>{if(o)i.push(c1(o));else if(u){let h=i.join("");i=[],n.push(r.length===0?h:u1(t,r)(h)),r.push({inverse:a,styles:hN(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(u1(t,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var y1=A((mW,m1)=>{"use strict";var Bo=Nd(),{stdout:Hd,stderr:$d}=qd(),{stringReplaceAll:fN,stringEncaseCRLFWithFirstIndex:dN}=o1(),f1=["ansi","ansi","ansi256","ansi16m"],ns=Object.create(null),pN=(t,e={})=>{if(e.level>3||e.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=Hd?Hd.level:0;t.level=e.level===void 0?r:e.level},Gd=class{constructor(e){return d1(e)}},d1=t=>{let e={};return pN(e,t),e.template=(...r)=>gN(e.template,...r),Object.setPrototypeOf(e,Pu.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Gd,e.template};function Pu(t){return d1(t)}for(let[t,e]of Object.entries(Bo))ns[t]={get(){let r=Iu(this,zd(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};ns.visible={get(){let t=Iu(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var p1=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of p1)ns[t]={get(){let{level:e}=this;return function(...r){let n=zd(Bo.color[f1[e]][t](...r),Bo.color.close,this._styler);return Iu(this,n,this._isEmpty)}}};for(let t of p1){let e="bg"+t[0].toUpperCase()+t.slice(1);ns[e]={get(){let{level:r}=this;return function(...n){let i=zd(Bo.bgColor[f1[r]][t](...n),Bo.bgColor.close,this._styler);return Iu(this,i,this._isEmpty)}}}}var mN=Object.defineProperties(()=>{},{...ns,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),zd=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Iu=(t,e,r)=>{let n=(...i)=>yN(n,i.length===1?""+i[0]:i.join(" "));return n.__proto__=mN,n._generator=t,n._styler=e,n._isEmpty=r,n},yN=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=fN(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
8
+ `);return s!==-1&&(e=dN(e,i,n,s)),n+e+i},Ud,gN=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Ud===void 0&&(Ud=h1()),Ud(t,i.join(""))};Object.defineProperties(Pu.prototype,ns);var No=Pu();No.supportsColor=Hd;No.stderr=Pu({level:$d?$d.level:0});No.stderr.supportsColor=$d;No.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};m1.exports=No});var _1=A((yW,Wd)=>{"use strict";var g1=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Wd.exports=g1;Wd.exports.default=g1});var Vd=A((gW,Bu)=>{"use strict";var _N=_1(),Lu=new WeakMap,b1=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Lu.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return _N(s,t),Lu.set(s,n),s};Bu.exports=b1;Bu.exports.default=b1;Bu.exports.callCount=t=>{if(!Lu.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Lu.get(t)}});var v1=A((_W,Nu)=>{Nu.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Nu.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Nu.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Zd=A((bW,os)=>{var Me=global.process,ti=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"};ti(Me)?(E1=require("assert"),is=v1(),w1=/^win/i.test(Me.platform),Mo=require("events"),typeof Mo!="function"&&(Mo=Mo.EventEmitter),Me.__signal_exit_emitter__?Ze=Me.__signal_exit_emitter__:(Ze=Me.__signal_exit_emitter__=new Mo,Ze.count=0,Ze.emitted={}),Ze.infinite||(Ze.setMaxListeners(1/0),Ze.infinite=!0),os.exports=function(t,e){if(!ti(global.process))return function(){};E1.equal(typeof t,"function","a callback must be provided for exit handler"),ss===!1&&Yd();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ze.removeListener(r,t),Ze.listeners("exit").length===0&&Ze.listeners("afterexit").length===0&&Mu()};return Ze.on(r,t),n},Mu=function(){!ss||!ti(global.process)||(ss=!1,is.forEach(function(e){try{Me.removeListener(e,ju[e])}catch{}}),Me.emit=qu,Me.reallyExit=Kd,Ze.count-=1)},os.exports.unload=Mu,ri=function(e,r,n){Ze.emitted[e]||(Ze.emitted[e]=!0,Ze.emit(e,r,n))},ju={},is.forEach(function(t){ju[t]=function(){if(ti(global.process)){var r=Me.listeners(t);r.length===Ze.count&&(Mu(),ri("exit",null,t),ri("afterexit",null,t),w1&&t==="SIGHUP"&&(t="SIGINT"),Me.kill(Me.pid,t))}}}),os.exports.signals=function(){return is},ss=!1,Yd=function(){ss||!ti(global.process)||(ss=!0,Ze.count+=1,is=is.filter(function(e){try{return Me.on(e,ju[e]),!0}catch{return!1}}),Me.emit=S1,Me.reallyExit=x1)},os.exports.load=Yd,Kd=Me.reallyExit,x1=function(e){ti(global.process)&&(Me.exitCode=e||0,ri("exit",Me.exitCode,null),ri("afterexit",Me.exitCode,null),Kd.call(Me,Me.exitCode))},qu=Me.emit,S1=function(e,r){if(e==="exit"&&ti(global.process)){r!==void 0&&(Me.exitCode=r);var n=qu.apply(this,arguments);return ri("exit",Me.exitCode,null),ri("afterexit",Me.exitCode,null),n}else return qu.apply(this,arguments)}):os.exports=function(){return function(){}};var E1,is,w1,Mo,Ze,Mu,ri,ju,ss,Yd,Kd,x1,qu,S1});var D1=A((vW,A1)=>{"use strict";var bN=Vd(),vN=Zd();A1.exports=bN(()=>{vN(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var C1=A(as=>{"use strict";var EN=D1(),Uu=!1;as.show=(t=process.stderr)=>{t.isTTY&&(Uu=!1,t.write("\x1B[?25h"))};as.hide=(t=process.stderr)=>{t.isTTY&&(EN(),Uu=!0,t.write("\x1B[?25l"))};as.toggle=(t,e)=>{t!==void 0&&(Uu=t),Uu?as.show(e):as.hide(e)}});var R1=A((wW,wN)=>{wN.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 O1=A((xW,T1)=>{"use strict";var Hu=Object.assign({},R1()),k1=Object.keys(Hu);Object.defineProperty(Hu,"random",{get(){let t=Math.floor(Math.random()*k1.length),e=k1[t];return Hu[e]}});T1.exports=Hu});var P1=A((SW,F1)=>{"use strict";var xN=/[|\\{}()[\]^$+*?.]/g;F1.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(xN,"\\$&")}});var L1=A((AW,I1)=>{"use strict";I1.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Jd=A((DW,j1)=>{var ni=L1(),M1={};for($u in ni)ni.hasOwnProperty($u)&&(M1[ni[$u]]=$u);var $u,he=j1.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(yt in he)if(he.hasOwnProperty(yt)){if(!("channels"in he[yt]))throw new Error("missing channels property: "+yt);if(!("labels"in he[yt]))throw new Error("missing channel labels property: "+yt);if(he[yt].labels.length!==he[yt].channels)throw new Error("channel and label counts mismatch: "+yt);B1=he[yt].channels,N1=he[yt].labels,delete he[yt].channels,delete he[yt].labels,Object.defineProperty(he[yt],"channels",{value:B1}),Object.defineProperty(he[yt],"labels",{value:N1})}var B1,N1,yt;he.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u,c;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),c=(i+s)/2,s===i?u=0:c<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,c*100]};he.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,c=Math.max(o,a,u),l=c-Math.min(o,a,u),h=function(f){return(c-f)/6/l+1/2};return l===0?i=s=0:(s=l/c,e=h(o),r=h(a),n=h(u),o===c?i=n-r:a===c?i=1/3+e-n:u===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};he.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=he.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};he.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function SN(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}he.rgb.keyword=function(t){var e=M1[t];if(e)return e;var r=1/0,n;for(var i in ni)if(ni.hasOwnProperty(i)){var s=ni[i],o=SN(t,s);o<r&&(r=o,n=i)}return n};he.keyword.rgb=function(t){return ni[t]};he.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};he.rgb.lab=function(t){var e=he.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};he.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var c=0;c<3;c++)o=e+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[c]=u*255;return a};he.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};he.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};he.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};he.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),u=r+a*(o-r);var c,l,h;switch(s){default:case 6:case 0:c=o,l=u,h=r;break;case 1:c=u,l=o,h=r;break;case 2:c=r,l=o,h=u;break;case 3:c=r,l=u,h=o;break;case 4:c=u,l=r,h=o;break;case 5:c=o,l=r,h=u;break}return[c*255,l*255,h*255]};he.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};he.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};he.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};he.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),c=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};he.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};he.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};he.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:he.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};he.hsv.ansi16=function(t){return he.rgb.ansi16(he.hsv.rgb(t),t[2])};he.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};he.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};he.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};he.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};he.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};he.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};he.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};he.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};he.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};he.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};he.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};he.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};he.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};he.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};he.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};he.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};he.gray.hsl=he.gray.hsv=function(t){return[0,0,t[0]]};he.gray.hwb=function(t){return[0,100,t[0]]};he.gray.cmyk=function(t){return[0,0,0,t[0]]};he.gray.lab=function(t){return[t[0],0,0]};he.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};he.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var U1=A((CW,q1)=>{var Gu=Jd();function AN(){for(var t={},e=Object.keys(Gu),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function DN(t){var e=AN(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Gu[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}return e}function CN(t,e){return function(r){return e(t(r))}}function RN(t,e){for(var r=[e[t].parent,t],n=Gu[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=CN(Gu[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}q1.exports=function(t){for(var e=DN(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=RN(o,e))}return r}});var $1=A((RW,H1)=>{var Xd=Jd(),kN=U1(),us={},TN=Object.keys(Xd);function ON(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function FN(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}TN.forEach(function(t){us[t]={},Object.defineProperty(us[t],"channels",{value:Xd[t].channels}),Object.defineProperty(us[t],"labels",{value:Xd[t].labels});var e=kN(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];us[t][n]=FN(i),us[t][n].raw=ON(i)})});H1.exports=us});var z1=A((kW,G1)=>{"use strict";var cs=$1(),zu=(t,e)=>function(){return`\x1B[${t.apply(cs,arguments)+e}m`},Wu=(t,e)=>function(){let r=t.apply(cs,arguments);return`\x1B[${38+e};5;${r}m`},Vu=(t,e)=>function(){let r=t.apply(cs,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function PN(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:zu(r,0)},e.color.ansi256={ansi256:Wu(r,0)},e.color.ansi16m={rgb:Vu(n,0)},e.bgColor.ansi={ansi:zu(r,10)},e.bgColor.ansi256={ansi256:Wu(r,10)},e.bgColor.ansi16m={rgb:Vu(n,10)};for(let i of Object.keys(cs)){if(typeof cs[i]!="object")continue;let s=cs[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=zu(s.ansi16,0),e.bgColor.ansi[i]=zu(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=Wu(s.ansi256,0),e.bgColor.ansi256[i]=Wu(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Vu(s.rgb,0),e.bgColor.ansi16m[i]=Vu(s.rgb,10))}return e}Object.defineProperty(G1,"exports",{enumerable:!0,get:PN})});var V1=A((TW,W1)=>{"use strict";W1.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var K1=A((OW,Y1)=>{"use strict";var IN=require("os"),or=V1(),ut=process.env,ls;or("no-color")||or("no-colors")||or("color=false")?ls=!1:(or("color")||or("colors")||or("color=true")||or("color=always"))&&(ls=!0);"FORCE_COLOR"in ut&&(ls=ut.FORCE_COLOR.length===0||parseInt(ut.FORCE_COLOR,10)!==0);function LN(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function BN(t){if(ls===!1)return 0;if(or("color=16m")||or("color=full")||or("color=truecolor"))return 3;if(or("color=256"))return 2;if(t&&!t.isTTY&&ls!==!0)return 0;let e=ls?1:0;if(process.platform==="win32"){let r=IN.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ut)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in ut)||ut.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in ut)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ut.TEAMCITY_VERSION)?1:0;if(ut.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ut){let r=parseInt((ut.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ut.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ut.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ut.TERM)||"COLORTERM"in ut?1:(ut.TERM==="dumb",e)}function Qd(t){let e=BN(t);return LN(e)}Y1.exports={supportsColor:Qd,stdout:Qd(process.stdout),stderr:Qd(process.stderr)}});var ew=A((FW,Q1)=>{"use strict";var NN=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Z1=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,MN=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,jN=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,qN=new Map([["n",`
9
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function X1(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):qN.get(t)||t}function UN(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(MN))r.push(i[2].replace(jN,(o,a,u)=>a?X1(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function HN(t){Z1.lastIndex=0;let e=[],r;for(;(r=Z1.exec(t))!==null;){let n=r[1];if(r[2]){let i=UN(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function J1(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Q1.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(NN,(s,o,a,u,c,l)=>{if(o)i.push(X1(o));else if(u){let h=i.join("");i=[],n.push(r.length===0?h:J1(t,r)(h)),r.push({inverse:a,styles:HN(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(J1(t,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var sw=A((PW,qo)=>{"use strict";var tp=P1(),Ge=z1(),ep=K1().stdout,$N=ew(),rw=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),nw=["ansi","ansi","ansi256","ansi16m"],iw=new Set(["gray"]),hs=Object.create(null);function tw(t,e){e=e||{};let r=ep?ep.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function jo(t){if(!this||!(this instanceof jo)||this.template){let e={};return tw(e,t),e.template=function(){let r=[].slice.call(arguments);return WN.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,jo.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=jo,e.template}tw(this,t)}rw&&(Ge.blue.open="\x1B[94m");for(let t of Object.keys(Ge))Ge[t].closeRe=new RegExp(tp(Ge[t].close),"g"),hs[t]={get(){let e=Ge[t];return Yu.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};hs.visible={get(){return Yu.call(this,this._styles||[],!0,"visible")}};Ge.color.closeRe=new RegExp(tp(Ge.color.close),"g");for(let t of Object.keys(Ge.color.ansi))iw.has(t)||(hs[t]={get(){let e=this.level;return function(){let n={open:Ge.color[nw[e]][t].apply(null,arguments),close:Ge.color.close,closeRe:Ge.color.closeRe};return Yu.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});Ge.bgColor.closeRe=new RegExp(tp(Ge.bgColor.close),"g");for(let t of Object.keys(Ge.bgColor.ansi)){if(iw.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);hs[e]={get(){let r=this.level;return function(){let i={open:Ge.bgColor[nw[r]][t].apply(null,arguments),close:Ge.bgColor.close,closeRe:Ge.bgColor.closeRe};return Yu.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var GN=Object.defineProperties(()=>{},hs);function Yu(t,e,r){let n=function(){return zN.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=GN,n}function zN(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Ge.dim.open;rw&&this.hasGrey&&(Ge.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Ge.dim.open=n,r}function WN(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return $N(t,n.join(""))}Object.defineProperties(jo.prototype,hs);qo.exports=jo();qo.exports.supportsColor=ep;qo.exports.default=qo.exports});var aw=A((IW,ow)=>{"use strict";var En=sw(),VN=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",YN={info:En.blue("\u2139"),success:En.green("\u2714"),warning:En.yellow("\u26A0"),error:En.red("\u2716")},KN={info:En.blue("i"),success:En.green("\u221A"),warning:En.yellow("\u203C"),error:En.red("\xD7")};ow.exports=VN?YN:KN});var cw=A((LW,uw)=>{"use strict";uw.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 hw=A((BW,lw)=>{"use strict";var ZN=cw();lw.exports=t=>typeof t=="string"?t.replace(ZN(),""):t});var fw=A((NW,Ku)=>{var JN=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 p(y,m){if(y===null)return null;if(m==0)return y;var w,T;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"?(T=Object.getPrototypeOf(y),w=Object.create(T)):(w=Object.create(c),T=c)}if(a){var F=h.indexOf(y);if(F!=-1)return f[F];h.push(y),f.push(w)}for(var I in y){var R;T&&(R=Object.getOwnPropertyDescriptor(T,I)),!(R&&R.set==null)&&(w[I]=p(y[I],m-1))}return w}return p(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 n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;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 Ku=="object"&&Ku.exports&&(Ku.exports=JN)});var pw=A((MW,dw)=>{var XN=fw();dw.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=XN(e[r]))}),t}});var yw=A((jW,mw)=>{mw.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 vw=A((qW,rp)=>{"use strict";var QN=pw(),Uo=yw(),_w={nul:0,control:0};rp.exports=function(e){return bw(e,_w)};rp.exports.config=function(t){return t=QN(t||{},_w),function(r){return bw(r,t)}};function bw(t,e){if(typeof t!="string")return gw(t,e);for(var r=0,n=0;n<t.length;n++){var i=gw(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function gw(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:e3(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 e3(t){var e=0,r=Uo.length-1,n;if(t<Uo[0][0]||t>Uo[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>Uo[n][1])e=n+1;else if(t<Uo[n][0])r=n-1;else return!0;return!1}});var ww=A((UW,Ew)=>{"use strict";Ew.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var Sw=A((HW,xw)=>{var np=require("stream");xw.exports=Je;function Je(t){np.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}Je.prototype=Object.create(np.prototype);Object.defineProperty(Je.prototype,"constructor",{value:Je,enumerable:!1});Je.prototype.mute=function(){this.muted=!0};Je.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Je.prototype,"_onpipe",{value:t3,enumerable:!1,writable:!0,configurable:!0});function t3(t){this._src=t}Object.defineProperty(Je.prototype,"isTTY",{get:r3,set:n3,enumerable:!0,configurable:!0});function r3(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function n3(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Je.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Je.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Je.prototype.pipe=function(t,e){return this._dest=t,np.prototype.pipe.call(this,t,e)};Je.prototype.pause=function(){if(this._src)return this._src.pause()};Je.prototype.resume=function(){if(this._src)return this._src.resume()};Je.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)};Je.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 ip(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)}}Je.prototype.destroy=ip("destroy");Je.prototype.destroySoon=ip("destroySoon");Je.prototype.close=ip("close")});var tc=A(($W,ap)=>{"use strict";var i3=require("readline"),s3=y1(),Aw=C1(),Zu=O1(),Ju=aw(),o3=hw(),a3=vw(),u3=ww(),c3=Sw(),sp=Symbol("text"),Xu=Symbol("prefixText"),l3=3,op=class{constructor(){this.requests=0,this.mutedStream=new c3,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(l3)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}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=i3.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)}},Qu,ec=class{constructor(e){Qu||(Qu=new op),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:u3({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=Zu.line;else if(e===void 0)this._spinner=Zu.dots;else if(Zu[e])this._spinner=Zu[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[sp]}get prefixText(){return this[Xu]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[Xu]=="string"?this[Xu]+"-":"";this.lineCount=o3(r+"--"+this[sp]).split(`
10
+ `).reduce((n,i)=>n+Math.max(1,Math.ceil(a3(i)/e)),0)}set text(e){this[sp]=e,this.updateLineCount()}set prefixText(e){this[Xu]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=s3[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}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&&Aw.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,Qu.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
11
+ `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&Aw.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(Qu.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Ju.success,text:e})}fail(e){return this.stopAndPersist({symbol:Ju.error,text:e})}warn(e){return this.stopAndPersist({symbol:Ju.warning,text:e})}info(e){return this.stopAndPersist({symbol:Ju.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${e.symbol||" "}${s}
12
+ `),this}},h3=function(t){return new ec(t)};ap.exports=h3;ap.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new ec(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var Cw=A((GW,Dw)=>{"use strict";var f3=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},d3=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
13
13
  `:`
14
14
  `)+r,i=n+1,n=t.indexOf(`
15
- `,i)}while(n!==-1);return s+=t.substr(i),s};xw.exports={stringReplaceAll:l3,stringEncaseCRLFWithFirstIndex:h3}});var kw=A(($W,Rw)=>{"use strict";var f3=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Aw=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,d3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p3=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,m3=new Map([["n",`
16
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Cw(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):m3.get(t)||t}function y3(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(d3))r.push(i[2].replace(p3,(a,u,c)=>u?Cw(u):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function g3(t){Aw.lastIndex=0;let e=[],r;for(;(r=Aw.exec(t))!==null;){let n=r[1];if(r[2]){let i=y3(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Dw(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}Rw.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(f3,(s,o,a,u,c,l)=>{if(o)i.push(Cw(o));else if(u){let h=i.join("");i=[],n.push(r.length===0?h:Dw(t,r)(h)),r.push({inverse:a,styles:g3(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Dw(t,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Bw=A((GW,Lw)=>{"use strict";var Ho=Ld(),{stdout:ap,stderr:up}=Md(),{stringReplaceAll:_3,stringEncaseCRLFWithFirstIndex:b3}=Sw(),{isArray:rc}=Array,Ow=["ansi","ansi","ansi256","ansi16m"],fs=Object.create(null),v3=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=ap?ap.level:0;t.level=e.level===void 0?r:e.level},cp=class{constructor(e){return Fw(e)}},Fw=t=>{let e={};return v3(e,t),e.template=(...r)=>Iw(e.template,...r),Object.setPrototypeOf(e,nc.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=cp,e.template};function nc(t){return Fw(t)}for(let[t,e]of Object.entries(Ho))fs[t]={get(){let r=ic(this,lp(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};fs.visible={get(){let t=ic(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Pw=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of Pw)fs[t]={get(){let{level:e}=this;return function(...r){let n=lp(Ho.color[Ow[e]][t](...r),Ho.color.close,this._styler);return ic(this,n,this._isEmpty)}}};for(let t of Pw){let e="bg"+t[0].toUpperCase()+t.slice(1);fs[e]={get(){let{level:r}=this;return function(...n){let i=lp(Ho.bgColor[Ow[r]][t](...n),Ho.bgColor.close,this._styler);return ic(this,i,this._isEmpty)}}}}var E3=Object.defineProperties(()=>{},{...fs,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),lp=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},ic=(t,e,r)=>{let n=(...i)=>rc(i[0])&&rc(i[0].raw)?Tw(n,Iw(n,...i)):Tw(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,E3),n._generator=t,n._styler=e,n._isEmpty=r,n},Tw=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=_3(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
17
- `);return s!==-1&&(e=b3(e,i,n,s)),n+e+i},op,Iw=(t,...e)=>{let[r]=e;if(!rc(r)||!rc(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return op===void 0&&(op=kw()),op(t,i.join(""))};Object.defineProperties(nc.prototype,fs);var sc=nc();sc.supportsColor=ap;sc.stderr=nc({level:up?up.level:0});sc.stderr.supportsColor=up;Lw.exports=sc});var Nw=A((zW,oc)=>{(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function u(E,B){if(E=E||"",B=B||{},E instanceof u)return E;if(!(this instanceof u))return new u(E,B);var C=c(E);this._originalInput=E,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=i(100*this._a)/100,this._format=B.format||C.format,this._gradientType=B.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=C.ok,this._tc_id=n++}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 E=this.toRgb();return(E.r*299+E.g*587+E.b*114)/1e3},getLuminance:function(){var E=this.toRgb(),B,C,X,b,z,re;return B=E.r/255,C=E.g/255,X=E.b/255,B<=.03928?b=B/12.92:b=t.pow((B+.055)/1.055,2.4),C<=.03928?z=C/12.92:z=t.pow((C+.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(E){return this._a=G(E),this._roundA=i(100*this._a)/100,this},toHsv:function(){var E=d(this._r,this._g,this._b);return{h:E.h*360,s:E.s,v:E.v,a:this._a}},toHsvString:function(){var E=d(this._r,this._g,this._b),B=i(E.h*360),C=i(E.s*100),X=i(E.v*100);return this._a==1?"hsv("+B+", "+C+"%, "+X+"%)":"hsva("+B+", "+C+"%, "+X+"%, "+this._roundA+")"},toHsl:function(){var E=h(this._r,this._g,this._b);return{h:E.h*360,s:E.s,l:E.l,a:this._a}},toHslString:function(){var E=h(this._r,this._g,this._b),B=i(E.h*360),C=i(E.s*100),X=i(E.l*100);return this._a==1?"hsl("+B+", "+C+"%, "+X+"%)":"hsla("+B+", "+C+"%, "+X+"%, "+this._roundA+")"},toHex:function(E){return y(this._r,this._g,this._b,E)},toHexString:function(E){return"#"+this.toHex(E)},toHex8:function(E){return m(this._r,this._g,this._b,this._a,E)},toHex8String:function(E){return"#"+this.toHex8(E)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(Z(this._r,255)*100)+"%",g:i(Z(this._g,255)*100)+"%",b:i(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(Z(this._r,255)*100)+"%, "+i(Z(this._g,255)*100)+"%, "+i(Z(this._b,255)*100)+"%)":"rgba("+i(Z(this._r,255)*100)+"%, "+i(Z(this._g,255)*100)+"%, "+i(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(E){var B="#"+w(this._r,this._g,this._b,this._a),C=B,X=this._gradientType?"GradientType = 1, ":"";if(E){var b=u(E);C="#"+w(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+X+"startColorstr="+B+",endColorstr="+C+")"},toString:function(E){var B=!!E;E=E||this._format;var C=!1,X=this._a<1&&this._a>=0,b=!B&&X&&(E==="hex"||E==="hex6"||E==="hex3"||E==="hex4"||E==="hex8"||E==="name");return b?E==="name"&&this._a===0?this.toName():this.toRgbString():(E==="rgb"&&(C=this.toRgbString()),E==="prgb"&&(C=this.toPercentageRgbString()),(E==="hex"||E==="hex6")&&(C=this.toHexString()),E==="hex3"&&(C=this.toHexString(!0)),E==="hex4"&&(C=this.toHex8String(!0)),E==="hex8"&&(C=this.toHex8String()),E==="name"&&(C=this.toName()),E==="hsl"&&(C=this.toHslString()),E==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(E,B){var C=E.apply(null,[this].concat([].slice.call(B)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(F,arguments)},greyscale:function(){return this._applyModification(I,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(E,B){return E.apply(null,[this].concat([].slice.call(B)))},analogous:function(){return this._applyCombination(Q,arguments)},complement:function(){return this._applyCombination(U,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(E,B){if(typeof E=="object"){var C={};for(var X in E)E.hasOwnProperty(X)&&(X==="a"?C[X]=E[X]:C[X]=S(E[X]));E=C}return u(E,B)};function c(E){var B={r:0,g:0,b:0},C=1,X=null,b=null,z=null,re=!1,ce=!1;return typeof E=="string"&&(E=fe(E)),typeof E=="object"&&(Y(E.r)&&Y(E.g)&&Y(E.b)?(B=l(E.r,E.g,E.b),re=!0,ce=String(E.r).substr(-1)==="%"?"prgb":"rgb"):Y(E.h)&&Y(E.s)&&Y(E.v)?(X=S(E.s),b=S(E.v),B=p(E.h,X,b),re=!0,ce="hsv"):Y(E.h)&&Y(E.s)&&Y(E.l)&&(X=S(E.s),z=S(E.l),B=f(E.h,X,z),re=!0,ce="hsl"),E.hasOwnProperty("a")&&(C=E.a)),C=G(C),{ok:re,format:E.format||ce,r:s(255,o(B.r,0)),g:s(255,o(B.g,0)),b:s(255,o(B.b,0)),a:C}}function l(E,B,C){return{r:Z(E,255)*255,g:Z(B,255)*255,b:Z(C,255)*255}}function h(E,B,C){E=Z(E,255),B=Z(B,255),C=Z(C,255);var X=o(E,B,C),b=s(E,B,C),z,re,ce=(X+b)/2;if(X==b)z=re=0;else{var ye=X-b;switch(re=ce>.5?ye/(2-X-b):ye/(X+b),X){case E:z=(B-C)/ye+(B<C?6:0);break;case B:z=(C-E)/ye+2;break;case C:z=(E-B)/ye+4;break}z/=6}return{h:z,s:re,l:ce}}function f(E,B,C){var X,b,z;E=Z(E,360),B=Z(B,100),C=Z(C,100);function re(Ae,De,Se){return Se<0&&(Se+=1),Se>1&&(Se-=1),Se<1/6?Ae+(De-Ae)*6*Se:Se<1/2?De:Se<2/3?Ae+(De-Ae)*(2/3-Se)*6:Ae}if(B===0)X=b=z=C;else{var ce=C<.5?C*(1+B):C+B-C*B,ye=2*C-ce;X=re(ye,ce,E+1/3),b=re(ye,ce,E),z=re(ye,ce,E-1/3)}return{r:X*255,g:b*255,b:z*255}}function d(E,B,C){E=Z(E,255),B=Z(B,255),C=Z(C,255);var X=o(E,B,C),b=s(E,B,C),z,re,ce=X,ye=X-b;if(re=X===0?0:ye/X,X==b)z=0;else{switch(X){case E:z=(B-C)/ye+(B<C?6:0);break;case B:z=(C-E)/ye+2;break;case C:z=(E-B)/ye+4;break}z/=6}return{h:z,s:re,v:ce}}function p(E,B,C){E=Z(E,360)*6,B=Z(B,100),C=Z(C,100);var X=t.floor(E),b=E-X,z=C*(1-B),re=C*(1-b*B),ce=C*(1-(1-b)*B),ye=X%6,Ae=[C,re,z,z,ce,C][ye],De=[ce,C,C,re,z,z][ye],Se=[z,z,ce,C,C,re][ye];return{r:Ae*255,g:De*255,b:Se*255}}function y(E,B,C,X){var b=[k(i(E).toString(16)),k(i(B).toString(16)),k(i(C).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 m(E,B,C,X,b){var z=[k(i(E).toString(16)),k(i(B).toString(16)),k(i(C).toString(16)),k(H(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(E,B,C,X){var b=[k(H(X)),k(i(E).toString(16)),k(i(B).toString(16)),k(i(C).toString(16))];return b.join("")}u.equals=function(E,B){return!E||!B?!1:u(E).toRgbString()==u(B).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function T(E,B){B=B===0?0:B||10;var C=u(E).toHsl();return C.s-=B/100,C.s=q(C.s),u(C)}function F(E,B){B=B===0?0:B||10;var C=u(E).toHsl();return C.s+=B/100,C.s=q(C.s),u(C)}function I(E){return u(E).desaturate(100)}function R(E,B){B=B===0?0:B||10;var C=u(E).toHsl();return C.l+=B/100,C.l=q(C.l),u(C)}function M(E,B){B=B===0?0:B||10;var C=u(E).toRgb();return C.r=o(0,s(255,C.r-i(255*-(B/100)))),C.g=o(0,s(255,C.g-i(255*-(B/100)))),C.b=o(0,s(255,C.b-i(255*-(B/100)))),u(C)}function x(E,B){B=B===0?0:B||10;var C=u(E).toHsl();return C.l-=B/100,C.l=q(C.l),u(C)}function D(E,B){var C=u(E).toHsl(),X=(C.h+B)%360;return C.h=X<0?360+X:X,u(C)}function U(E){var B=u(E).toHsl();return B.h=(B.h+180)%360,u(B)}function W(E){var B=u(E).toHsl(),C=B.h;return[u(E),u({h:(C+120)%360,s:B.s,l:B.l}),u({h:(C+240)%360,s:B.s,l:B.l})]}function N(E){var B=u(E).toHsl(),C=B.h;return[u(E),u({h:(C+90)%360,s:B.s,l:B.l}),u({h:(C+180)%360,s:B.s,l:B.l}),u({h:(C+270)%360,s:B.s,l:B.l})]}function V(E){var B=u(E).toHsl(),C=B.h;return[u(E),u({h:(C+72)%360,s:B.s,l:B.l}),u({h:(C+216)%360,s:B.s,l:B.l})]}function Q(E,B,C){B=B||6,C=C||30;var X=u(E).toHsl(),b=360/C,z=[u(E)];for(X.h=(X.h-(b*B>>1)+720)%360;--B;)X.h=(X.h+b)%360,z.push(u(X));return z}function te(E,B){B=B||6;for(var C=u(E).toHsv(),X=C.h,b=C.s,z=C.v,re=[],ce=1/B;B--;)re.push(u({h:X,s:b,v:z})),z=(z+ce)%1;return re}u.mix=function(E,B,C){C=C===0?0:C||50;var X=u(E).toRgb(),b=u(B).toRgb(),z=C/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(E,B){var C=u(E),X=u(B);return(t.max(C.getLuminance(),X.getLuminance())+.05)/(t.min(C.getLuminance(),X.getLuminance())+.05)},u.isReadable=function(E,B,C){var X=u.readability(E,B),b,z;switch(z=!1,b=J(C),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(E,B,C){var X=null,b=0,z,re,ce,ye;C=C||{},re=C.includeFallbackColors,ce=C.level,ye=C.size;for(var Ae=0;Ae<B.length;Ae++)z=u.readability(E,B[Ae]),z>b&&(b=z,X=u(B[Ae]));return u.isReadable(E,X,{level:ce,size:ye})||!re?X:(C.includeFallbackColors=!1,u.mostReadable(E,["#fff","#000"],C))};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"},P=u.hexNames=L(j);function L(E){var B={};for(var C in E)E.hasOwnProperty(C)&&(B[E[C]]=C);return B}function G(E){return E=parseFloat(E),(isNaN(E)||E<0||E>1)&&(E=1),E}function Z(E,B){_(E)&&(E="100%");var C=v(E);return E=s(B,o(0,parseFloat(E))),C&&(E=parseInt(E*B,10)/100),t.abs(E-B)<1e-6?1:E%B/parseFloat(B)}function q(E){return s(1,o(0,E))}function g(E){return parseInt(E,16)}function _(E){return typeof E=="string"&&E.indexOf(".")!=-1&&parseFloat(E)===1}function v(E){return typeof E=="string"&&E.indexOf("%")!=-1}function k(E){return E.length==1?"0"+E:""+E}function S(E){return E<=1&&(E=E*100+"%"),E}function H(E){return t.round(parseFloat(E)*255).toString(16)}function $(E){return g(E)/255}var ne=function(){var E="[-\\+]?\\d+%?",B="[-\\+]?\\d*\\.\\d+%?",C="(?:"+B+")|(?:"+E+")",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",b="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),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(E){return!!ne.CSS_UNIT.exec(E)}function fe(E){E=E.replace(e,"").replace(r,"").toLowerCase();var B=!1;if(j[E])E=j[E],B=!0;else if(E=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=ne.rgb.exec(E))?{r:C[1],g:C[2],b:C[3]}:(C=ne.rgba.exec(E))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=ne.hsl.exec(E))?{h:C[1],s:C[2],l:C[3]}:(C=ne.hsla.exec(E))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=ne.hsv.exec(E))?{h:C[1],s:C[2],v:C[3]}:(C=ne.hsva.exec(E))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=ne.hex8.exec(E))?{r:g(C[1]),g:g(C[2]),b:g(C[3]),a:$(C[4]),format:B?"name":"hex8"}:(C=ne.hex6.exec(E))?{r:g(C[1]),g:g(C[2]),b:g(C[3]),format:B?"name":"hex"}:(C=ne.hex4.exec(E))?{r:g(C[1]+""+C[1]),g:g(C[2]+""+C[2]),b:g(C[3]+""+C[3]),a:$(C[4]+""+C[4]),format:B?"name":"hex8"}:(C=ne.hex3.exec(E))?{r:g(C[1]+""+C[1]),g:g(C[2]+""+C[2]),b:g(C[3]+""+C[3]),format:B?"name":"hex"}:!1}function J(E){var B,C;return E=E||{level:"AA",size:"small"},B=(E.level||"AA").toUpperCase(),C=(E.size||"small").toLowerCase(),B!=="AA"&&B!=="AAA"&&(B="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:B,size:C}}typeof oc!="undefined"&&oc.exports?oc.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var Gw=A((WW,$w)=>{var $o=Nw(),Uw={r:256,g:256,b:256,a:1},Hw={h:360,s:1,v:1,a:1};function fp(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function dp(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function hp(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=fp(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=dp(s,n,a,Uw);o.push($o(u))}return o}function Mw(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return hp(t,e,r);let o;if(typeof n=="boolean")o=n;else{let l=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&l||n==="short"&&!l}let a=fp(i,s,r),u=[t.color],c;i.h<=s.h&&!o||i.h>=s.h&&o?c=s.h-i.h:o?c=360-s.h+i.h:c=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let h=dp(a,i,l,Hw);u.push($o(h))}return u}function jw(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 n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function qw(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=fp(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=dp(o,i.color[r](),(e-i.pos)*100,n);return $o(a)}var ds=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-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===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?$o(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<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:$o(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new ds(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new ds(e.concat(r.reverse()))}rgb(e){let r=jw(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=hp(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=hp(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=jw(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=Mw(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=Mw(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return qw(this.stops,e,"toRgb",Uw)}hsvAt(e){return qw(this.stops,e,"toHsv",Hw)}};$w.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 ds(t)}});var uc=A((VW,ac)=>{"use strict";var Ww=Bw(),w3=Gw(),zw=/\s/g;function pp(...t){let e=w3.apply(this,t),r=(n,i)=>x3(n?n.toString():"",e,i);return r.multiline=(n,i)=>S3(n?n.toString():"",e,i),r}var Vw=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function x3(t,e,r){let n=Yw(r),i=Math.max(t.replace(zw,"").length,e.stops.length),s=Vw(e,n,i),o="";for(let a of t)o+=a.match(zw)?a:Ww.hex(s.shift().toHex())(a);return o}function S3(t,e,r){let n=Yw(r),i=t.split(`
18
- `),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=Vw(e,n,s),a=[];for(let u of i){let c=o.slice(0),l="";for(let h of u)l+=Ww.hex(c.shift().toHex())(h);a.push(l)}return a.join(`
19
- `)}function Yw(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 Go={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"}}};ac.exports=pp;for(let t in Go)ac.exports[t]=e=>new pp(Go[t].colors)(e,Go[t].options),ac.exports[t].multiline=e=>new pp(Go[t].colors).multiline(e,Go[t].options)});var sx=A((XW,ix)=>{ix.exports=nx;nx.sync=q3;var tx=require("fs");function j3(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 n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function rx(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:j3(e,r)}function nx(t,e,r){tx.stat(t,function(n,i){r(n,n?!1:rx(i,t,e))})}function q3(t,e){return rx(tx.statSync(t),t,e)}});var lx=A((QW,cx)=>{cx.exports=ax;ax.sync=U3;var ox=require("fs");function ax(t,e,r){ox.stat(t,function(n,i){r(n,n?!1:ux(i,e))})}function U3(t,e){return ux(ox.statSync(t),e)}function ux(t,e){return t.isFile()&&H3(t,e)}function H3(t,e){var r=t.mode,n=t.uid,i=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&&i===o||r&a&&n===s||r&l&&s===0;return h}});var fx=A((tV,hx)=>{var eV=require("fs"),cc;process.platform==="win32"||global.TESTING_WINDOWS?cc=sx():cc=lx();hx.exports=gp;gp.sync=$3;function gp(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(n,i){gp(t,e||{},function(s,o){s?i(s):n(o)})})}cc(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function $3(t,e){try{return cc.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var bx=A((rV,_x)=>{var ms=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",dx=require("path"),G3=ms?";":":",px=fx(),mx=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),yx=(t,e)=>{let r=e.colon||G3,n=t.match(/\//)||ms&&t.match(/\\/)?[""]:[...ms?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=ms?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ms?i.split(r):[""];return ms&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},gx=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=yx(t,e),o=[],a=c=>new Promise((l,h)=>{if(c===n.length)return e.all&&o.length?l(o):h(mx(t));let f=n[c],d=/^".*"$/.test(f)?f.slice(1,-1):f,p=dx.join(d,t),y=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;l(u(y,c,0))}),u=(c,l,h)=>new Promise((f,d)=>{if(h===i.length)return f(a(l+1));let p=i[h];px(c+p,{pathExt:s},(y,m)=>{if(!y&&m)if(e.all)o.push(c+p);else return f(c+p);return f(u(c,l,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},z3=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=yx(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=dx.join(u,t),l=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<n.length;h++){let f=l+n[h];try{if(px.sync(f,{pathExt:i}))if(e.all)s.push(f);else return f}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw mx(t)};_x.exports=gx;gx.sync=z3});var bp=A((nV,_p)=>{"use strict";var vx=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};_p.exports=vx;_p.exports.default=vx});var Sx=A((iV,xx)=>{"use strict";var Ex=require("path"),W3=bx(),V3=bp();function wx(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=W3.sync(t.command,{path:r[V3({env:r})],pathExt:e?Ex.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=Ex.resolve(i?t.options.cwd:"",o)),o}function Y3(t){return wx(t)||wx(t,!0)}xx.exports=Y3});var Ax=A((sV,Ep)=>{"use strict";var vp=/([()\][%!^"`<>&|;, *?])/g;function K3(t){return t=t.replace(vp,"^$1"),t}function Z3(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(vp,"^$1"),e&&(t=t.replace(vp,"^$1")),t}Ep.exports.command=K3;Ep.exports.argument=Z3});var Cx=A((oV,Dx)=>{"use strict";Dx.exports=/^#!(.*)/});var kx=A((aV,Rx)=>{"use strict";var J3=Cx();Rx.exports=(t="")=>{let e=t.match(J3);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var Ox=A((uV,Tx)=>{"use strict";var wp=require("fs"),X3=kx();function Q3(t){let r=Buffer.alloc(150),n;try{n=wp.openSync(t,"r"),wp.readSync(n,r,0,150,0),wp.closeSync(n)}catch{}return X3(r.toString())}Tx.exports=Q3});var Lx=A((cV,Ix)=>{"use strict";var eM=require("path"),Fx=Sx(),Px=Ax(),tM=Ox(),rM=process.platform==="win32",nM=/\.(?:com|exe)$/i,iM=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function sM(t){t.file=Fx(t);let e=t.file&&tM(t.file);return e?(t.args.unshift(t.file),t.command=e,Fx(t)):t.file}function oM(t){if(!rM)return t;let e=sM(t),r=!nM.test(e);if(t.options.forceShell||r){let n=iM.test(e);t.command=eM.normalize(t.command),t.command=Px.command(t.command),t.args=t.args.map(s=>Px.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function aM(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:oM(n)}Ix.exports=aM});var Mx=A((lV,Nx)=>{"use strict";var xp=process.platform==="win32";function Sp(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 uM(t,e){if(!xp)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=Bx(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Bx(t,e){return xp&&t===1&&!e.file?Sp(e.original,"spawn"):null}function cM(t,e){return xp&&t===1&&!e.file?Sp(e.original,"spawnSync"):null}Nx.exports={hookChildProcess:uM,verifyENOENT:Bx,verifyENOENTSync:cM,notFoundError:Sp}});var Ux=A((hV,ys)=>{"use strict";var jx=require("child_process"),Ap=Lx(),Dp=Mx();function qx(t,e,r){let n=Ap(t,e,r),i=jx.spawn(n.command,n.args,n.options);return Dp.hookChildProcess(i,n),i}function lM(t,e,r){let n=Ap(t,e,r),i=jx.spawnSync(n.command,n.args,n.options);return i.error=i.error||Dp.verifyENOENTSync(i.status,n),i}ys.exports=qx;ys.exports.spawn=qx;ys.exports.sync=lM;ys.exports._parse=Ap;ys.exports._enoent=Dp});var $x=A((fV,Hx)=>{"use strict";Hx.exports=t=>{let e=typeof t=="string"?`
15
+ `,i)}while(n!==-1);return s+=t.substr(i),s};Dw.exports={stringReplaceAll:f3,stringEncaseCRLFWithFirstIndex:d3}});var Fw=A((zW,Ow)=>{"use strict";var p3=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Rw=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,m3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,y3=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,g3=new Map([["n",`
16
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Tw(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):g3.get(t)||t}function _3(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(m3))r.push(i[2].replace(y3,(a,u,c)=>u?Tw(u):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function b3(t){Rw.lastIndex=0;let e=[],r;for(;(r=Rw.exec(t))!==null;){let n=r[1];if(r[2]){let i=_3(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function kw(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}Ow.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(p3,(s,o,a,u,c,l)=>{if(o)i.push(Tw(o));else if(u){let h=i.join("");i=[],n.push(r.length===0?h:kw(t,r)(h)),r.push({inverse:a,styles:b3(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(kw(t,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var jw=A((WW,Mw)=>{"use strict";var Ho=Nd(),{stdout:cp,stderr:lp}=qd(),{stringReplaceAll:v3,stringEncaseCRLFWithFirstIndex:E3}=Cw(),{isArray:rc}=Array,Iw=["ansi","ansi","ansi256","ansi16m"],fs=Object.create(null),w3=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=cp?cp.level:0;t.level=e.level===void 0?r:e.level},hp=class{constructor(e){return Lw(e)}},Lw=t=>{let e={};return w3(e,t),e.template=(...r)=>Nw(e.template,...r),Object.setPrototypeOf(e,nc.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=hp,e.template};function nc(t){return Lw(t)}for(let[t,e]of Object.entries(Ho))fs[t]={get(){let r=ic(this,fp(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};fs.visible={get(){let t=ic(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Bw=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of Bw)fs[t]={get(){let{level:e}=this;return function(...r){let n=fp(Ho.color[Iw[e]][t](...r),Ho.color.close,this._styler);return ic(this,n,this._isEmpty)}}};for(let t of Bw){let e="bg"+t[0].toUpperCase()+t.slice(1);fs[e]={get(){let{level:r}=this;return function(...n){let i=fp(Ho.bgColor[Iw[r]][t](...n),Ho.bgColor.close,this._styler);return ic(this,i,this._isEmpty)}}}}var x3=Object.defineProperties(()=>{},{...fs,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),fp=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},ic=(t,e,r)=>{let n=(...i)=>rc(i[0])&&rc(i[0].raw)?Pw(n,Nw(n,...i)):Pw(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,x3),n._generator=t,n._styler=e,n._isEmpty=r,n},Pw=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=v3(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
17
+ `);return s!==-1&&(e=E3(e,i,n,s)),n+e+i},up,Nw=(t,...e)=>{let[r]=e;if(!rc(r)||!rc(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return up===void 0&&(up=Fw()),up(t,i.join(""))};Object.defineProperties(nc.prototype,fs);var sc=nc();sc.supportsColor=cp;sc.stderr=nc({level:lp?lp.level:0});sc.stderr.supportsColor=lp;Mw.exports=sc});var qw=A((VW,oc)=>{(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function u(E,B){if(E=E||"",B=B||{},E instanceof u)return E;if(!(this instanceof u))return new u(E,B);var C=c(E);this._originalInput=E,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=i(100*this._a)/100,this._format=B.format||C.format,this._gradientType=B.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=C.ok,this._tc_id=n++}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 E=this.toRgb();return(E.r*299+E.g*587+E.b*114)/1e3},getLuminance:function(){var E=this.toRgb(),B,C,X,b,z,re;return B=E.r/255,C=E.g/255,X=E.b/255,B<=.03928?b=B/12.92:b=t.pow((B+.055)/1.055,2.4),C<=.03928?z=C/12.92:z=t.pow((C+.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(E){return this._a=G(E),this._roundA=i(100*this._a)/100,this},toHsv:function(){var E=d(this._r,this._g,this._b);return{h:E.h*360,s:E.s,v:E.v,a:this._a}},toHsvString:function(){var E=d(this._r,this._g,this._b),B=i(E.h*360),C=i(E.s*100),X=i(E.v*100);return this._a==1?"hsv("+B+", "+C+"%, "+X+"%)":"hsva("+B+", "+C+"%, "+X+"%, "+this._roundA+")"},toHsl:function(){var E=h(this._r,this._g,this._b);return{h:E.h*360,s:E.s,l:E.l,a:this._a}},toHslString:function(){var E=h(this._r,this._g,this._b),B=i(E.h*360),C=i(E.s*100),X=i(E.l*100);return this._a==1?"hsl("+B+", "+C+"%, "+X+"%)":"hsla("+B+", "+C+"%, "+X+"%, "+this._roundA+")"},toHex:function(E){return y(this._r,this._g,this._b,E)},toHexString:function(E){return"#"+this.toHex(E)},toHex8:function(E){return m(this._r,this._g,this._b,this._a,E)},toHex8String:function(E){return"#"+this.toHex8(E)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(Z(this._r,255)*100)+"%",g:i(Z(this._g,255)*100)+"%",b:i(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(Z(this._r,255)*100)+"%, "+i(Z(this._g,255)*100)+"%, "+i(Z(this._b,255)*100)+"%)":"rgba("+i(Z(this._r,255)*100)+"%, "+i(Z(this._g,255)*100)+"%, "+i(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(E){var B="#"+w(this._r,this._g,this._b,this._a),C=B,X=this._gradientType?"GradientType = 1, ":"";if(E){var b=u(E);C="#"+w(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+X+"startColorstr="+B+",endColorstr="+C+")"},toString:function(E){var B=!!E;E=E||this._format;var C=!1,X=this._a<1&&this._a>=0,b=!B&&X&&(E==="hex"||E==="hex6"||E==="hex3"||E==="hex4"||E==="hex8"||E==="name");return b?E==="name"&&this._a===0?this.toName():this.toRgbString():(E==="rgb"&&(C=this.toRgbString()),E==="prgb"&&(C=this.toPercentageRgbString()),(E==="hex"||E==="hex6")&&(C=this.toHexString()),E==="hex3"&&(C=this.toHexString(!0)),E==="hex4"&&(C=this.toHex8String(!0)),E==="hex8"&&(C=this.toHex8String()),E==="name"&&(C=this.toName()),E==="hsl"&&(C=this.toHslString()),E==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(E,B){var C=E.apply(null,[this].concat([].slice.call(B)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(F,arguments)},greyscale:function(){return this._applyModification(I,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(E,B){return E.apply(null,[this].concat([].slice.call(B)))},analogous:function(){return this._applyCombination(Q,arguments)},complement:function(){return this._applyCombination(U,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(E,B){if(typeof E=="object"){var C={};for(var X in E)E.hasOwnProperty(X)&&(X==="a"?C[X]=E[X]:C[X]=S(E[X]));E=C}return u(E,B)};function c(E){var B={r:0,g:0,b:0},C=1,X=null,b=null,z=null,re=!1,ce=!1;return typeof E=="string"&&(E=fe(E)),typeof E=="object"&&(Y(E.r)&&Y(E.g)&&Y(E.b)?(B=l(E.r,E.g,E.b),re=!0,ce=String(E.r).substr(-1)==="%"?"prgb":"rgb"):Y(E.h)&&Y(E.s)&&Y(E.v)?(X=S(E.s),b=S(E.v),B=p(E.h,X,b),re=!0,ce="hsv"):Y(E.h)&&Y(E.s)&&Y(E.l)&&(X=S(E.s),z=S(E.l),B=f(E.h,X,z),re=!0,ce="hsl"),E.hasOwnProperty("a")&&(C=E.a)),C=G(C),{ok:re,format:E.format||ce,r:s(255,o(B.r,0)),g:s(255,o(B.g,0)),b:s(255,o(B.b,0)),a:C}}function l(E,B,C){return{r:Z(E,255)*255,g:Z(B,255)*255,b:Z(C,255)*255}}function h(E,B,C){E=Z(E,255),B=Z(B,255),C=Z(C,255);var X=o(E,B,C),b=s(E,B,C),z,re,ce=(X+b)/2;if(X==b)z=re=0;else{var ye=X-b;switch(re=ce>.5?ye/(2-X-b):ye/(X+b),X){case E:z=(B-C)/ye+(B<C?6:0);break;case B:z=(C-E)/ye+2;break;case C:z=(E-B)/ye+4;break}z/=6}return{h:z,s:re,l:ce}}function f(E,B,C){var X,b,z;E=Z(E,360),B=Z(B,100),C=Z(C,100);function re(Ae,De,Se){return Se<0&&(Se+=1),Se>1&&(Se-=1),Se<1/6?Ae+(De-Ae)*6*Se:Se<1/2?De:Se<2/3?Ae+(De-Ae)*(2/3-Se)*6:Ae}if(B===0)X=b=z=C;else{var ce=C<.5?C*(1+B):C+B-C*B,ye=2*C-ce;X=re(ye,ce,E+1/3),b=re(ye,ce,E),z=re(ye,ce,E-1/3)}return{r:X*255,g:b*255,b:z*255}}function d(E,B,C){E=Z(E,255),B=Z(B,255),C=Z(C,255);var X=o(E,B,C),b=s(E,B,C),z,re,ce=X,ye=X-b;if(re=X===0?0:ye/X,X==b)z=0;else{switch(X){case E:z=(B-C)/ye+(B<C?6:0);break;case B:z=(C-E)/ye+2;break;case C:z=(E-B)/ye+4;break}z/=6}return{h:z,s:re,v:ce}}function p(E,B,C){E=Z(E,360)*6,B=Z(B,100),C=Z(C,100);var X=t.floor(E),b=E-X,z=C*(1-B),re=C*(1-b*B),ce=C*(1-(1-b)*B),ye=X%6,Ae=[C,re,z,z,ce,C][ye],De=[ce,C,C,re,z,z][ye],Se=[z,z,ce,C,C,re][ye];return{r:Ae*255,g:De*255,b:Se*255}}function y(E,B,C,X){var b=[k(i(E).toString(16)),k(i(B).toString(16)),k(i(C).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 m(E,B,C,X,b){var z=[k(i(E).toString(16)),k(i(B).toString(16)),k(i(C).toString(16)),k(H(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(E,B,C,X){var b=[k(H(X)),k(i(E).toString(16)),k(i(B).toString(16)),k(i(C).toString(16))];return b.join("")}u.equals=function(E,B){return!E||!B?!1:u(E).toRgbString()==u(B).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function T(E,B){B=B===0?0:B||10;var C=u(E).toHsl();return C.s-=B/100,C.s=q(C.s),u(C)}function F(E,B){B=B===0?0:B||10;var C=u(E).toHsl();return C.s+=B/100,C.s=q(C.s),u(C)}function I(E){return u(E).desaturate(100)}function R(E,B){B=B===0?0:B||10;var C=u(E).toHsl();return C.l+=B/100,C.l=q(C.l),u(C)}function M(E,B){B=B===0?0:B||10;var C=u(E).toRgb();return C.r=o(0,s(255,C.r-i(255*-(B/100)))),C.g=o(0,s(255,C.g-i(255*-(B/100)))),C.b=o(0,s(255,C.b-i(255*-(B/100)))),u(C)}function x(E,B){B=B===0?0:B||10;var C=u(E).toHsl();return C.l-=B/100,C.l=q(C.l),u(C)}function D(E,B){var C=u(E).toHsl(),X=(C.h+B)%360;return C.h=X<0?360+X:X,u(C)}function U(E){var B=u(E).toHsl();return B.h=(B.h+180)%360,u(B)}function W(E){var B=u(E).toHsl(),C=B.h;return[u(E),u({h:(C+120)%360,s:B.s,l:B.l}),u({h:(C+240)%360,s:B.s,l:B.l})]}function N(E){var B=u(E).toHsl(),C=B.h;return[u(E),u({h:(C+90)%360,s:B.s,l:B.l}),u({h:(C+180)%360,s:B.s,l:B.l}),u({h:(C+270)%360,s:B.s,l:B.l})]}function V(E){var B=u(E).toHsl(),C=B.h;return[u(E),u({h:(C+72)%360,s:B.s,l:B.l}),u({h:(C+216)%360,s:B.s,l:B.l})]}function Q(E,B,C){B=B||6,C=C||30;var X=u(E).toHsl(),b=360/C,z=[u(E)];for(X.h=(X.h-(b*B>>1)+720)%360;--B;)X.h=(X.h+b)%360,z.push(u(X));return z}function te(E,B){B=B||6;for(var C=u(E).toHsv(),X=C.h,b=C.s,z=C.v,re=[],ce=1/B;B--;)re.push(u({h:X,s:b,v:z})),z=(z+ce)%1;return re}u.mix=function(E,B,C){C=C===0?0:C||50;var X=u(E).toRgb(),b=u(B).toRgb(),z=C/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(E,B){var C=u(E),X=u(B);return(t.max(C.getLuminance(),X.getLuminance())+.05)/(t.min(C.getLuminance(),X.getLuminance())+.05)},u.isReadable=function(E,B,C){var X=u.readability(E,B),b,z;switch(z=!1,b=J(C),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(E,B,C){var X=null,b=0,z,re,ce,ye;C=C||{},re=C.includeFallbackColors,ce=C.level,ye=C.size;for(var Ae=0;Ae<B.length;Ae++)z=u.readability(E,B[Ae]),z>b&&(b=z,X=u(B[Ae]));return u.isReadable(E,X,{level:ce,size:ye})||!re?X:(C.includeFallbackColors=!1,u.mostReadable(E,["#fff","#000"],C))};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"},P=u.hexNames=L(j);function L(E){var B={};for(var C in E)E.hasOwnProperty(C)&&(B[E[C]]=C);return B}function G(E){return E=parseFloat(E),(isNaN(E)||E<0||E>1)&&(E=1),E}function Z(E,B){_(E)&&(E="100%");var C=v(E);return E=s(B,o(0,parseFloat(E))),C&&(E=parseInt(E*B,10)/100),t.abs(E-B)<1e-6?1:E%B/parseFloat(B)}function q(E){return s(1,o(0,E))}function g(E){return parseInt(E,16)}function _(E){return typeof E=="string"&&E.indexOf(".")!=-1&&parseFloat(E)===1}function v(E){return typeof E=="string"&&E.indexOf("%")!=-1}function k(E){return E.length==1?"0"+E:""+E}function S(E){return E<=1&&(E=E*100+"%"),E}function H(E){return t.round(parseFloat(E)*255).toString(16)}function $(E){return g(E)/255}var ne=function(){var E="[-\\+]?\\d+%?",B="[-\\+]?\\d*\\.\\d+%?",C="(?:"+B+")|(?:"+E+")",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",b="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),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(E){return!!ne.CSS_UNIT.exec(E)}function fe(E){E=E.replace(e,"").replace(r,"").toLowerCase();var B=!1;if(j[E])E=j[E],B=!0;else if(E=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=ne.rgb.exec(E))?{r:C[1],g:C[2],b:C[3]}:(C=ne.rgba.exec(E))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=ne.hsl.exec(E))?{h:C[1],s:C[2],l:C[3]}:(C=ne.hsla.exec(E))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=ne.hsv.exec(E))?{h:C[1],s:C[2],v:C[3]}:(C=ne.hsva.exec(E))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=ne.hex8.exec(E))?{r:g(C[1]),g:g(C[2]),b:g(C[3]),a:$(C[4]),format:B?"name":"hex8"}:(C=ne.hex6.exec(E))?{r:g(C[1]),g:g(C[2]),b:g(C[3]),format:B?"name":"hex"}:(C=ne.hex4.exec(E))?{r:g(C[1]+""+C[1]),g:g(C[2]+""+C[2]),b:g(C[3]+""+C[3]),a:$(C[4]+""+C[4]),format:B?"name":"hex8"}:(C=ne.hex3.exec(E))?{r:g(C[1]+""+C[1]),g:g(C[2]+""+C[2]),b:g(C[3]+""+C[3]),format:B?"name":"hex"}:!1}function J(E){var B,C;return E=E||{level:"AA",size:"small"},B=(E.level||"AA").toUpperCase(),C=(E.size||"small").toLowerCase(),B!=="AA"&&B!=="AAA"&&(B="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:B,size:C}}typeof oc!="undefined"&&oc.exports?oc.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var Vw=A((YW,Ww)=>{var $o=qw(),Gw={r:256,g:256,b:256,a:1},zw={h:360,s:1,v:1,a:1};function pp(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function mp(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function dp(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=pp(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=mp(s,n,a,Gw);o.push($o(u))}return o}function Uw(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return dp(t,e,r);let o;if(typeof n=="boolean")o=n;else{let l=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&l||n==="short"&&!l}let a=pp(i,s,r),u=[t.color],c;i.h<=s.h&&!o||i.h>=s.h&&o?c=s.h-i.h:o?c=360-s.h+i.h:c=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let h=mp(a,i,l,zw);u.push($o(h))}return u}function Hw(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 n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function $w(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=pp(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=mp(o,i.color[r](),(e-i.pos)*100,n);return $o(a)}var ds=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-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===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?$o(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<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:$o(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new ds(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new ds(e.concat(r.reverse()))}rgb(e){let r=Hw(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=dp(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=dp(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=Hw(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=Uw(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=Uw(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return $w(this.stops,e,"toRgb",Gw)}hsvAt(e){return $w(this.stops,e,"toHsv",zw)}};Ww.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 ds(t)}});var uc=A((KW,ac)=>{"use strict";var Kw=jw(),S3=Vw(),Yw=/\s/g;function yp(...t){let e=S3.apply(this,t),r=(n,i)=>A3(n?n.toString():"",e,i);return r.multiline=(n,i)=>D3(n?n.toString():"",e,i),r}var Zw=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function A3(t,e,r){let n=Jw(r),i=Math.max(t.replace(Yw,"").length,e.stops.length),s=Zw(e,n,i),o="";for(let a of t)o+=a.match(Yw)?a:Kw.hex(s.shift().toHex())(a);return o}function D3(t,e,r){let n=Jw(r),i=t.split(`
18
+ `),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=Zw(e,n,s),a=[];for(let u of i){let c=o.slice(0),l="";for(let h of u)l+=Kw.hex(c.shift().toHex())(h);a.push(l)}return a.join(`
19
+ `)}function Jw(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 Go={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"}}};ac.exports=yp;for(let t in Go)ac.exports[t]=e=>new yp(Go[t].colors)(e,Go[t].options),ac.exports[t].multiline=e=>new yp(Go[t].colors).multiline(e,Go[t].options)});var ux=A((eV,ax)=>{ax.exports=ox;ox.sync=H3;var ix=require("fs");function U3(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 n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function sx(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:U3(e,r)}function ox(t,e,r){ix.stat(t,function(n,i){r(n,n?!1:sx(i,t,e))})}function H3(t,e){return sx(ix.statSync(t),t,e)}});var dx=A((tV,fx)=>{fx.exports=lx;lx.sync=$3;var cx=require("fs");function lx(t,e,r){cx.stat(t,function(n,i){r(n,n?!1:hx(i,e))})}function $3(t,e){return hx(cx.statSync(t),e)}function hx(t,e){return t.isFile()&&G3(t,e)}function G3(t,e){var r=t.mode,n=t.uid,i=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&&i===o||r&a&&n===s||r&l&&s===0;return h}});var mx=A((nV,px)=>{var rV=require("fs"),cc;process.platform==="win32"||global.TESTING_WINDOWS?cc=ux():cc=dx();px.exports=bp;bp.sync=z3;function bp(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(n,i){bp(t,e||{},function(s,o){s?i(s):n(o)})})}cc(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function z3(t,e){try{return cc.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var wx=A((iV,Ex)=>{var ms=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",yx=require("path"),W3=ms?";":":",gx=mx(),_x=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),bx=(t,e)=>{let r=e.colon||W3,n=t.match(/\//)||ms&&t.match(/\\/)?[""]:[...ms?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=ms?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ms?i.split(r):[""];return ms&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},vx=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=bx(t,e),o=[],a=c=>new Promise((l,h)=>{if(c===n.length)return e.all&&o.length?l(o):h(_x(t));let f=n[c],d=/^".*"$/.test(f)?f.slice(1,-1):f,p=yx.join(d,t),y=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;l(u(y,c,0))}),u=(c,l,h)=>new Promise((f,d)=>{if(h===i.length)return f(a(l+1));let p=i[h];gx(c+p,{pathExt:s},(y,m)=>{if(!y&&m)if(e.all)o.push(c+p);else return f(c+p);return f(u(c,l,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},V3=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=bx(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=yx.join(u,t),l=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<n.length;h++){let f=l+n[h];try{if(gx.sync(f,{pathExt:i}))if(e.all)s.push(f);else return f}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw _x(t)};Ex.exports=vx;vx.sync=V3});var Ep=A((sV,vp)=>{"use strict";var xx=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};vp.exports=xx;vp.exports.default=xx});var Cx=A((oV,Dx)=>{"use strict";var Sx=require("path"),Y3=wx(),K3=Ep();function Ax(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=Y3.sync(t.command,{path:r[K3({env:r})],pathExt:e?Sx.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=Sx.resolve(i?t.options.cwd:"",o)),o}function Z3(t){return Ax(t)||Ax(t,!0)}Dx.exports=Z3});var Rx=A((aV,xp)=>{"use strict";var wp=/([()\][%!^"`<>&|;, *?])/g;function J3(t){return t=t.replace(wp,"^$1"),t}function X3(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(wp,"^$1"),e&&(t=t.replace(wp,"^$1")),t}xp.exports.command=J3;xp.exports.argument=X3});var Tx=A((uV,kx)=>{"use strict";kx.exports=/^#!(.*)/});var Fx=A((cV,Ox)=>{"use strict";var Q3=Tx();Ox.exports=(t="")=>{let e=t.match(Q3);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var Ix=A((lV,Px)=>{"use strict";var Sp=require("fs"),eM=Fx();function tM(t){let r=Buffer.alloc(150),n;try{n=Sp.openSync(t,"r"),Sp.readSync(n,r,0,150,0),Sp.closeSync(n)}catch{}return eM(r.toString())}Px.exports=tM});var Mx=A((hV,Nx)=>{"use strict";var rM=require("path"),Lx=Cx(),Bx=Rx(),nM=Ix(),iM=process.platform==="win32",sM=/\.(?:com|exe)$/i,oM=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function aM(t){t.file=Lx(t);let e=t.file&&nM(t.file);return e?(t.args.unshift(t.file),t.command=e,Lx(t)):t.file}function uM(t){if(!iM)return t;let e=aM(t),r=!sM.test(e);if(t.options.forceShell||r){let n=oM.test(e);t.command=rM.normalize(t.command),t.command=Bx.command(t.command),t.args=t.args.map(s=>Bx.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function cM(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:uM(n)}Nx.exports=cM});var Ux=A((fV,qx)=>{"use strict";var Ap=process.platform==="win32";function Dp(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 lM(t,e){if(!Ap)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=jx(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function jx(t,e){return Ap&&t===1&&!e.file?Dp(e.original,"spawn"):null}function hM(t,e){return Ap&&t===1&&!e.file?Dp(e.original,"spawnSync"):null}qx.exports={hookChildProcess:lM,verifyENOENT:jx,verifyENOENTSync:hM,notFoundError:Dp}});var Gx=A((dV,ys)=>{"use strict";var Hx=require("child_process"),Cp=Mx(),Rp=Ux();function $x(t,e,r){let n=Cp(t,e,r),i=Hx.spawn(n.command,n.args,n.options);return Rp.hookChildProcess(i,n),i}function fM(t,e,r){let n=Cp(t,e,r),i=Hx.spawnSync(n.command,n.args,n.options);return i.error=i.error||Rp.verifyENOENTSync(i.status,n),i}ys.exports=$x;ys.exports.spawn=$x;ys.exports.sync=fM;ys.exports._parse=Cp;ys.exports._enoent=Rp});var Wx=A((pV,zx)=>{"use strict";zx.exports=t=>{let e=typeof t=="string"?`
20
20
  `:`
21
- `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Wx=A((dV,Vo)=>{"use strict";var Wo=require("path"),Gx=bp(),zx=t=>{t={cwd:process.cwd(),path:process.env[Gx()],execPath:process.execPath,...t};let e,r=Wo.resolve(t.cwd),n=[];for(;e!==r;)n.push(Wo.join(r,"node_modules/.bin")),e=r,r=Wo.resolve(r,"..");let i=Wo.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(Wo.delimiter)};Vo.exports=zx;Vo.exports.default=zx;Vo.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Gx({env:e});return t.path=e[r],e[r]=Vo.exports(t),e}});var Vx=A(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.SIGNALS=void 0;var hM=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];lc.SIGNALS=hM});var Cp=A(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.SIGRTMAX=gs.getRealtimeSignals=void 0;var fM=function(){let t=Kx-Yx+1;return Array.from({length:t},dM)};gs.getRealtimeSignals=fM;var dM=function(t,e){return{name:`SIGRT${e+1}`,number:Yx+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Yx=34,Kx=64;gs.SIGRTMAX=Kx});var Zx=A(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.getSignals=void 0;var pM=require("os"),mM=Vx(),yM=Cp(),gM=function(){let t=(0,yM.getRealtimeSignals)();return[...mM.SIGNALS,...t].map(_M)};hc.getSignals=gM;var _M=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=pM.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}}});var Xx=A(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.signalsByNumber=_s.signalsByName=void 0;var bM=require("os"),Jx=Zx(),vM=Cp(),EM=function(){return(0,Jx.getSignals)().reduce(wM,{})},wM=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},xM=EM();_s.signalsByName=xM;var SM=function(){let t=(0,Jx.getSignals)(),e=vM.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>AM(i,t));return Object.assign({},...r)},AM=function(t,e){let r=DM(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:u}}},DM=function(t,e){let r=e.find(({name:n})=>bM.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},CM=SM();_s.signalsByNumber=CM});var eS=A((_V,Qx)=>{"use strict";var{signalsByName:RM}=Xx(),kM=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",TM=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:u,isCanceled:c,killed:l,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let f=i===void 0?void 0:RM[i].description,d=n&&n.code,y=`Command ${kM({timedOut:u,timeout:h,errorCode:d,signal:i,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,m=Object.prototype.toString.call(n)==="[object Error]",w=m?`${y}
21
+ `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Kx=A((mV,Vo)=>{"use strict";var Wo=require("path"),Vx=Ep(),Yx=t=>{t={cwd:process.cwd(),path:process.env[Vx()],execPath:process.execPath,...t};let e,r=Wo.resolve(t.cwd),n=[];for(;e!==r;)n.push(Wo.join(r,"node_modules/.bin")),e=r,r=Wo.resolve(r,"..");let i=Wo.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(Wo.delimiter)};Vo.exports=Yx;Vo.exports.default=Yx;Vo.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Vx({env:e});return t.path=e[r],e[r]=Vo.exports(t),e}});var Zx=A(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.SIGNALS=void 0;var dM=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];lc.SIGNALS=dM});var kp=A(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.SIGRTMAX=gs.getRealtimeSignals=void 0;var pM=function(){let t=Xx-Jx+1;return Array.from({length:t},mM)};gs.getRealtimeSignals=pM;var mM=function(t,e){return{name:`SIGRT${e+1}`,number:Jx+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Jx=34,Xx=64;gs.SIGRTMAX=Xx});var Qx=A(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.getSignals=void 0;var yM=require("os"),gM=Zx(),_M=kp(),bM=function(){let t=(0,_M.getRealtimeSignals)();return[...gM.SIGNALS,...t].map(vM)};hc.getSignals=bM;var vM=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=yM.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}}});var tS=A(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.signalsByNumber=_s.signalsByName=void 0;var EM=require("os"),eS=Qx(),wM=kp(),xM=function(){return(0,eS.getSignals)().reduce(SM,{})},SM=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},AM=xM();_s.signalsByName=AM;var DM=function(){let t=(0,eS.getSignals)(),e=wM.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>CM(i,t));return Object.assign({},...r)},CM=function(t,e){let r=RM(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:u}}},RM=function(t,e){let r=e.find(({name:n})=>EM.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},kM=DM();_s.signalsByNumber=kM});var nS=A((vV,rS)=>{"use strict";var{signalsByName:TM}=tS(),OM=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",FM=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:u,isCanceled:c,killed:l,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let f=i===void 0?void 0:TM[i].description,d=n&&n.code,y=`Command ${OM({timedOut:u,timeout:h,errorCode:d,signal:i,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,m=Object.prototype.toString.call(n)==="[object Error]",w=m?`${y}
22
22
  ${n.message}`:y,T=[w,e,t].filter(Boolean).join(`
23
- `);return m?(n.originalMessage=n.message,n.message=T):n=new Error(T),n.shortMessage=w,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=f,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=c,n.killed=l&&!u,n};Qx.exports=TM});var rS=A((bV,Rp)=>{"use strict";var fc=["stdin","stdout","stderr"],OM=t=>fc.some(e=>t[e]!==void 0),tS=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return fc.map(n=>t[n]);if(OM(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${fc.map(n=>`\`${n}\``).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,fc.length);return Array.from({length:r},(n,i)=>e[i])};Rp.exports=tS;Rp.exports.node=t=>{let e=tS(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var iS=A((vV,nS)=>{"use strict";var FM=require("os"),PM=Yd(),IM=1e3*5,LM=(t,e="SIGTERM",r={})=>{let n=t(e);return BM(t,e,r,n),n},BM=(t,e,r,n)=>{if(!NM(e,r,n))return;let i=jM(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},NM=(t,{forceKillAfterTimeout:e},r)=>MM(t)&&e!==!1&&r,MM=t=>t===FM.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",jM=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return IM;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},qM=(t,e)=>{t.kill()&&(e.isCanceled=!0)},UM=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},HM=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{UM(t,r,u)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},$M=({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})`)},GM=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=PM(()=>{t.kill()});return n.finally(()=>{i()})};nS.exports={spawnedKill:LM,spawnedCancel:qM,setupTimeout:HM,validateTimeout:$M,setExitHandler:GM}});var oS=A((EV,sS)=>{"use strict";var Er=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Er.writable=t=>Er(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Er.readable=t=>Er(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Er.duplex=t=>Er.writable(t)&&Er.readable(t);Er.transform=t=>Er.duplex(t)&&typeof t._transform=="function";sS.exports=Er});var uS=A((wV,aS)=>{"use strict";var{PassThrough:zM}=require("stream");aS.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new zM({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var cS=A((xV,Yo)=>{"use strict";var{constants:WM}=require("buffer"),VM=require("stream"),{promisify:YM}=require("util"),KM=uS(),ZM=YM(VM.pipeline),dc=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function kp(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=KM(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=WM.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await ZM(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new dc)})}),n.getBufferedValue()}Yo.exports=kp;Yo.exports.buffer=(t,e)=>kp(t,{...e,encoding:"buffer"});Yo.exports.array=(t,e)=>kp(t,{...e,array:!0});Yo.exports.MaxBufferError=dc});var hS=A((SV,lS)=>{"use strict";var{PassThrough:JM}=require("stream");lS.exports=function(){var t=[],e=new JM({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),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",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var mS=A((AV,pS)=>{"use strict";var dS=oS(),fS=cS(),XM=hS(),QM=(t,e)=>{e===void 0||t.stdin===void 0||(dS(e)?e.pipe(t.stdin):t.stdin.end(e))},e8=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=XM();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tp=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Op=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?fS(t,{encoding:e,maxBuffer:n}):fS.buffer(t,{maxBuffer:n})},t8=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=Op(t,{encoding:n,buffer:i,maxBuffer:s}),u=Op(e,{encoding:n,buffer:i,maxBuffer:s}),c=Op(r,{encoding:n,buffer:i,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},Tp(t,a),Tp(e,u),Tp(r,c)])}},r8=({input:t})=>{if(dS(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};pS.exports={handleInput:QM,makeAllStream:e8,getSpawnedResult:t8,validateInputSync:r8}});var gS=A((DV,yS)=>{"use strict";var n8=(async()=>{})().constructor.prototype,i8=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(n8,t)]),s8=(t,e)=>{for(let[r,n]of i8){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},o8=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});yS.exports={mergePromise:s8,getSpawnedPromise:o8}});var vS=A((CV,bS)=>{"use strict";var _S=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],a8=/^[\w.-]+$/,u8=/"/g,c8=t=>typeof t!="string"||a8.test(t)?t:`"${t.replace(u8,'\\"')}"`,l8=(t,e)=>_S(t,e).join(" "),h8=(t,e)=>_S(t,e).map(r=>c8(r)).join(" "),f8=/ +/g,d8=t=>{let e=[];for(let r of t.trim().split(f8)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};bS.exports={joinCommand:l8,getEscapedCommand:h8,parseCommand:d8}});var vs=A((RV,bs)=>{"use strict";var p8=require("path"),Fp=require("child_process"),m8=Ux(),y8=$x(),g8=Wx(),_8=zd(),pc=eS(),wS=rS(),{spawnedKill:b8,spawnedCancel:v8,setupTimeout:E8,validateTimeout:w8,setExitHandler:x8}=iS(),{handleInput:S8,getSpawnedResult:A8,makeAllStream:D8,validateInputSync:C8}=mS(),{mergePromise:ES,getSpawnedPromise:R8}=gS(),{joinCommand:xS,parseCommand:SS,getEscapedCommand:AS}=vS(),k8=1e3*1e3*100,T8=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?g8.env({env:s,cwd:n,execPath:i}):s},DS=(t,e,r={})=>{let n=m8._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:k8,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=T8(r),r.stdio=wS(r),process.platform==="win32"&&p8.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Ko=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?y8(e):e,mc=(t,e,r)=>{let n=DS(t,e,r),i=xS(t,e),s=AS(t,e);w8(n.options);let o;try{o=Fp.spawn(n.file,n.args,n.options)}catch(d){let p=new Fp.ChildProcess,y=Promise.reject(pc({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return ES(p,y)}let a=R8(o),u=E8(o,n.options,a),c=x8(o,n.options,u),l={isCanceled:!1};o.kill=b8.bind(null,o.kill.bind(o)),o.cancel=v8.bind(null,o,l);let f=_8(async()=>{let[{error:d,exitCode:p,signal:y,timedOut:m},w,T,F]=await A8(o,n.options,c),I=Ko(n.options,w),R=Ko(n.options,T),M=Ko(n.options,F);if(d||p!==0||y!==null){let x=pc({error:d,exitCode:p,signal:y,stdout:I,stderr:R,all:M,command:i,escapedCommand:s,parsed:n,timedOut:m,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return x;throw x}return{command:i,escapedCommand:s,exitCode:0,stdout:I,stderr:R,all:M,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return S8(o,n.options.input),o.all=D8(o,n.options),ES(o,f)};bs.exports=mc;bs.exports.sync=(t,e,r)=>{let n=DS(t,e,r),i=xS(t,e),s=AS(t,e);C8(n.options);let o;try{o=Fp.spawnSync(n.file,n.args,n.options)}catch(c){throw pc({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=Ko(n.options,o.stdout,o.error),u=Ko(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=pc({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};bs.exports.command=(t,e)=>{let[r,...n]=SS(t);return mc(r,n,e)};bs.exports.commandSync=(t,e)=>{let[r,...n]=SS(t);return mc.sync(r,n,e)};bs.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=wS.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return mc(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Es=A((PV,OS)=>{"use strict";var TS=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"]]);OS.exports=t=>t?Object.keys(t).map(e=>[TS.has(e)?TS.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var xc=A((IV,qS)=>{"use strict";var FS=typeof process=="object"&&process?process:{stdout:null,stderr:null},P8=require("events"),PS=require("stream"),IS=require("string_decoder").StringDecoder,Hr=Symbol("EOF"),$r=Symbol("maybeEmitEnd"),wn=Symbol("emittedEnd"),_c=Symbol("emittingEnd"),Xo=Symbol("emittedError"),bc=Symbol("closed"),LS=Symbol("read"),vc=Symbol("flush"),BS=Symbol("flushChunk"),xt=Symbol("encoding"),Gr=Symbol("decoder"),Ec=Symbol("flowing"),Qo=Symbol("paused"),ws=Symbol("resume"),qe=Symbol("buffer"),wr=Symbol("pipes"),Xe=Symbol("bufferLength"),Bp=Symbol("bufferPush"),Np=Symbol("bufferShift"),ct=Symbol("objectMode"),lt=Symbol("destroyed"),Mp=Symbol("emitData"),NS=Symbol("emitEnd"),jp=Symbol("emitEnd2"),zr=Symbol("async"),ea=t=>Promise.resolve().then(t),MS=global._MP_NO_ITERATOR_SYMBOLS_!=="1",I8=MS&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),L8=MS&&Symbol.iterator||Symbol("iterator not implemented"),B8=t=>t==="end"||t==="finish"||t==="prefinish",N8=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,M8=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),wc=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ws](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},qp=class extends wc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};qS.exports=class jS extends PS{constructor(e){super(),this[Ec]=!1,this[Qo]=!1,this[wr]=[],this[qe]=[],this[ct]=e&&e.objectMode||!1,this[ct]?this[xt]=null:this[xt]=e&&e.encoding||null,this[xt]==="buffer"&&(this[xt]=null),this[zr]=e&&!!e.async||!1,this[Gr]=this[xt]?new IS(this[xt]):null,this[Hr]=!1,this[wn]=!1,this[_c]=!1,this[bc]=!1,this[Xo]=null,this.writable=!0,this.readable=!0,this[Xe]=0,this[lt]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[qe]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[wr]})}get bufferLength(){return this[Xe]}get encoding(){return this[xt]}set encoding(e){if(this[ct])throw new Error("cannot set encoding in objectMode");if(this[xt]&&e!==this[xt]&&(this[Gr]&&this[Gr].lastNeed||this[Xe]))throw new Error("cannot change encoding");this[xt]!==e&&(this[Gr]=e?new IS(e):null,this[qe].length&&(this[qe]=this[qe].map(r=>this[Gr].write(r)))),this[xt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ct]}set objectMode(e){this[ct]=this[ct]||!!e}get async(){return this[zr]}set async(e){this[zr]=this[zr]||!!e}write(e,r,n){if(this[Hr])throw new Error("write after end");if(this[lt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[zr]?ea:s=>s();return!this[ct]&&!Buffer.isBuffer(e)&&(M8(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):N8(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ct]?(this.flowing&&this[Xe]!==0&&this[vc](!0),this.flowing?this.emit("data",e):this[Bp](e),this[Xe]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[xt]&&!this[Gr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[xt]&&(e=this[Gr].write(e)),this.flowing&&this[Xe]!==0&&this[vc](!0),this.flowing?this.emit("data",e):this[Bp](e),this[Xe]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Xe]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[lt])return null;if(this[Xe]===0||e===0||e>this[Xe])return this[$r](),null;this[ct]&&(e=null),this[qe].length>1&&!this[ct]&&(this.encoding?this[qe]=[this[qe].join("")]:this[qe]=[Buffer.concat(this[qe],this[Xe])]);let r=this[LS](e||null,this[qe][0]);return this[$r](),r}[LS](e,r){return e===r.length||e===null?this[Np]():(this[qe][0]=r.slice(e),r=r.slice(0,e),this[Xe]-=e),this.emit("data",r),!this[qe].length&&!this[Hr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Hr]=!0,this.writable=!1,(this.flowing||!this[Qo])&&this[$r](),this}[ws](){this[lt]||(this[Qo]=!1,this[Ec]=!0,this.emit("resume"),this[qe].length?this[vc]():this[Hr]?this[$r]():this.emit("drain"))}resume(){return this[ws]()}pause(){this[Ec]=!1,this[Qo]=!0}get destroyed(){return this[lt]}get flowing(){return this[Ec]}get paused(){return this[Qo]}[Bp](e){this[ct]?this[Xe]+=1:this[Xe]+=e.length,this[qe].push(e)}[Np](){return this[qe].length&&(this[ct]?this[Xe]-=1:this[Xe]-=this[qe][0].length),this[qe].shift()}[vc](e){do;while(this[BS](this[Np]()));!e&&!this[qe].length&&!this[Hr]&&this.emit("drain")}[BS](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[lt])return;let n=this[wn];return r=r||{},e===FS.stdout||e===FS.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[wr].push(r.proxyErrors?new qp(this,e,r):new wc(this,e,r)),this[zr]?ea(()=>this[ws]()):this[ws]()),e}unpipe(e){let r=this[wr].find(n=>n.dest===e);r&&(this[wr].splice(this[wr].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[wr].length&&!this.flowing?this[ws]():e==="readable"&&this[Xe]!==0?super.emit("readable"):B8(e)&&this[wn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Xo]&&(this[zr]?ea(()=>r.call(this,this[Xo])):r.call(this,this[Xo])),n}get emittedEnd(){return this[wn]}[$r](){!this[_c]&&!this[wn]&&!this[lt]&&this[qe].length===0&&this[Hr]&&(this[_c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[bc]&&this.emit("close"),this[_c]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==lt&&this[lt])return;if(e==="data")return r?this[zr]?ea(()=>this[Mp](r)):this[Mp](r):!1;if(e==="end")return this[NS]();if(e==="close"){if(this[bc]=!0,!this[wn]&&!this[lt])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Xo]=r;let s=super.emit("error",r);return this[$r](),s}else if(e==="resume"){let s=super.emit("resume");return this[$r](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[$r](),i}[Mp](e){for(let n of this[wr])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[$r](),r}[NS](){this[wn]||(this[wn]=!0,this.readable=!1,this[zr]?ea(()=>this[jp]()):this[jp]())}[jp](){if(this[Gr]){let r=this[Gr].end();if(r){for(let n of this[wr])n.dest.write(r);super.emit("data",r)}}for(let r of this[wr])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ct]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ct]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this[xt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(lt,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[I8](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Hr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[Hr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(lt,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[L8](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[lt]?(e?this.emit("error",e):this.emit(lt),this):(this[lt]=!0,this[qe].length=0,this[Xe]=0,typeof this.close=="function"&&!this[bc]&&this.close(),e?this.emit("error",e):this.emit(lt),this)}static isStream(e){return!!e&&(e instanceof jS||e instanceof PS||e instanceof P8&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var HS=A((LV,US)=>{var j8=require("zlib").constants||{ZLIB_VERNUM:4736};US.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},j8))});var Wp=A((BV,JS)=>{"use strict";var $S=typeof process=="object"&&process?process:{stdout:null,stderr:null},q8=require("events"),GS=require("stream"),zS=require("string_decoder").StringDecoder,Wr=Symbol("EOF"),Vr=Symbol("maybeEmitEnd"),xn=Symbol("emittedEnd"),Sc=Symbol("emittingEnd"),ta=Symbol("emittedError"),Ac=Symbol("closed"),WS=Symbol("read"),Dc=Symbol("flush"),VS=Symbol("flushChunk"),St=Symbol("encoding"),Yr=Symbol("decoder"),Cc=Symbol("flowing"),ra=Symbol("paused"),xs=Symbol("resume"),Qe=Symbol("bufferLength"),Up=Symbol("bufferPush"),Hp=Symbol("bufferShift"),ht=Symbol("objectMode"),ft=Symbol("destroyed"),$p=Symbol("emitData"),YS=Symbol("emitEnd"),Gp=Symbol("emitEnd2"),Kr=Symbol("async"),na=t=>Promise.resolve().then(t),KS=global._MP_NO_ITERATOR_SYMBOLS_!=="1",U8=KS&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),H8=KS&&Symbol.iterator||Symbol("iterator not implemented"),$8=t=>t==="end"||t==="finish"||t==="prefinish",G8=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,z8=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Rc=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[xs](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},zp=class extends Rc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};JS.exports=class ZS extends GS{constructor(e){super(),this[Cc]=!1,this[ra]=!1,this.pipes=[],this.buffer=[],this[ht]=e&&e.objectMode||!1,this[ht]?this[St]=null:this[St]=e&&e.encoding||null,this[St]==="buffer"&&(this[St]=null),this[Kr]=e&&!!e.async||!1,this[Yr]=this[St]?new zS(this[St]):null,this[Wr]=!1,this[xn]=!1,this[Sc]=!1,this[Ac]=!1,this[ta]=null,this.writable=!0,this.readable=!0,this[Qe]=0,this[ft]=!1}get bufferLength(){return this[Qe]}get encoding(){return this[St]}set encoding(e){if(this[ht])throw new Error("cannot set encoding in objectMode");if(this[St]&&e!==this[St]&&(this[Yr]&&this[Yr].lastNeed||this[Qe]))throw new Error("cannot change encoding");this[St]!==e&&(this[Yr]=e?new zS(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Yr].write(r)))),this[St]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ht]}set objectMode(e){this[ht]=this[ht]||!!e}get async(){return this[Kr]}set async(e){this[Kr]=this[Kr]||!!e}write(e,r,n){if(this[Wr])throw new Error("write after end");if(this[ft])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Kr]?na:s=>s();return!this[ht]&&!Buffer.isBuffer(e)&&(z8(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):G8(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ht]?(this.flowing&&this[Qe]!==0&&this[Dc](!0),this.flowing?this.emit("data",e):this[Up](e),this[Qe]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[St]&&!this[Yr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[St]&&(e=this[Yr].write(e)),this.flowing&&this[Qe]!==0&&this[Dc](!0),this.flowing?this.emit("data",e):this[Up](e),this[Qe]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Qe]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ft])return null;if(this[Qe]===0||e===0||e>this[Qe])return this[Vr](),null;this[ht]&&(e=null),this.buffer.length>1&&!this[ht]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Qe])]);let r=this[WS](e||null,this.buffer[0]);return this[Vr](),r}[WS](e,r){return e===r.length||e===null?this[Hp]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Qe]-=e),this.emit("data",r),!this.buffer.length&&!this[Wr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Wr]=!0,this.writable=!1,(this.flowing||!this[ra])&&this[Vr](),this}[xs](){this[ft]||(this[ra]=!1,this[Cc]=!0,this.emit("resume"),this.buffer.length?this[Dc]():this[Wr]?this[Vr]():this.emit("drain"))}resume(){return this[xs]()}pause(){this[Cc]=!1,this[ra]=!0}get destroyed(){return this[ft]}get flowing(){return this[Cc]}get paused(){return this[ra]}[Up](e){this[ht]?this[Qe]+=1:this[Qe]+=e.length,this.buffer.push(e)}[Hp](){return this.buffer.length&&(this[ht]?this[Qe]-=1:this[Qe]-=this.buffer[0].length),this.buffer.shift()}[Dc](e){do;while(this[VS](this[Hp]()));!e&&!this.buffer.length&&!this[Wr]&&this.emit("drain")}[VS](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ft])return;let n=this[xn];return r=r||{},e===$S.stdout||e===$S.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new zp(this,e,r):new Rc(this,e,r)),this[Kr]?na(()=>this[xs]()):this[xs]()),e}unpipe(e){let r=this.pipes.find(n=>n.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 n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[xs]():e==="readable"&&this[Qe]!==0?super.emit("readable"):$8(e)&&this[xn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ta]&&(this[Kr]?na(()=>r.call(this,this[ta])):r.call(this,this[ta])),n}get emittedEnd(){return this[xn]}[Vr](){!this[Sc]&&!this[xn]&&!this[ft]&&this.buffer.length===0&&this[Wr]&&(this[Sc]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ac]&&this.emit("close"),this[Sc]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ft&&this[ft])return;if(e==="data")return r?this[Kr]?na(()=>this[$p](r)):this[$p](r):!1;if(e==="end")return this[YS]();if(e==="close"){if(this[Ac]=!0,!this[xn]&&!this[ft])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ta]=r;let s=super.emit("error",r);return this[Vr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Vr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Vr](),i}[$p](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Vr](),r}[YS](){this[xn]||(this[xn]=!0,this.readable=!1,this[Kr]?na(()=>this[Gp]()):this[Gp]())}[Gp](){if(this[Yr]){let r=this[Yr].end();if(r){for(let n of this.pipes)n.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[ht]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ht]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[ht]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ht]?Promise.reject(new Error("cannot concat in objectMode")):this[St]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ft,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[U8](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Wr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[Wr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(ft,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[H8](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ft]?(e?this.emit("error",e):this.emit(ft),this):(this[ft]=!0,this.buffer.length=0,this[Qe]=0,typeof this.close=="function"&&!this[Ac]&&this.close(),e?this.emit("error",e):this.emit(ft),this)}static isStream(e){return!!e&&(e instanceof ZS||e instanceof GS||e instanceof q8&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var um=A(Ft=>{"use strict";var Jp=require("assert"),Sn=require("buffer").Buffer,eA=require("zlib"),ii=Ft.constants=HS(),W8=Wp(),XS=Sn.concat,si=Symbol("_superWrite"),As=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"}},V8=Symbol("opts"),ia=Symbol("flushFlag"),QS=Symbol("finishFlushFlag"),am=Symbol("fullFlushFlag"),Pe=Symbol("handle"),kc=Symbol("onError"),Ss=Symbol("sawError"),Vp=Symbol("level"),Yp=Symbol("strategy"),Kp=Symbol("ended"),NV=Symbol("_defaultFullFlush"),Tc=class extends W8{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Ss]=!1,this[Kp]=!1,this[V8]=e,this[ia]=e.flush,this[QS]=e.finishFlush;try{this[Pe]=new eA[r](e)}catch(n){throw new As(n)}this[kc]=n=>{this[Ss]||(this[Ss]=!0,this.close(),this.emit("error",n))},this[Pe].on("error",n=>this[kc](new As(n))),this.once("end",()=>this.close)}close(){this[Pe]&&(this[Pe].close(),this[Pe]=null,this.emit("close"))}reset(){if(!this[Ss])return Jp(this[Pe],"zlib binding closed"),this[Pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[am]),this.write(Object.assign(Sn.alloc(0),{[ia]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[QS]),this[Kp]=!0,super.end(null,null,n)}get ended(){return this[Kp]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=Sn.from(e,r)),this[Ss])return;Jp(this[Pe],"zlib binding closed");let i=this[Pe]._handle,s=i.close;i.close=()=>{};let o=this[Pe].close;this[Pe].close=()=>{},Sn.concat=c=>c;let a;try{let c=typeof e[ia]=="number"?e[ia]:this[ia];a=this[Pe]._processChunk(e,c),Sn.concat=XS}catch(c){Sn.concat=XS,this[kc](new As(c))}finally{this[Pe]&&(this[Pe]._handle=i,i.close=s,this[Pe].close=o,this[Pe].removeAllListeners("error"))}this[Pe]&&this[Pe].on("error",c=>this[kc](new As(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[si](Sn.from(a[0]));for(let c=1;c<a.length;c++)u=this[si](a[c])}else u=this[si](Sn.from(a));return n&&n(),u}[si](e){return super.write(e)}},Zr=class extends Tc{constructor(e,r){e=e||{},e.flush=e.flush||ii.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ii.Z_FINISH,super(e,r),this[am]=ii.Z_FULL_FLUSH,this[Vp]=e.level,this[Yp]=e.strategy}params(e,r){if(!this[Ss]){if(!this[Pe])throw new Error("cannot switch params when binding is closed");if(!this[Pe].params)throw new Error("not supported in this implementation");if(this[Vp]!==e||this[Yp]!==r){this.flush(ii.Z_SYNC_FLUSH),Jp(this[Pe],"zlib binding closed");let n=this[Pe].flush;this[Pe].flush=(i,s)=>{this.flush(i),s()};try{this[Pe].params(e,r)}finally{this[Pe].flush=n}this[Pe]&&(this[Vp]=e,this[Yp]=r)}}}},Xp=class extends Zr{constructor(e){super(e,"Deflate")}},Qp=class extends Zr{constructor(e){super(e,"Inflate")}},Zp=Symbol("_portable"),em=class extends Zr{constructor(e){super(e,"Gzip"),this[Zp]=e&&!!e.portable}[si](e){return this[Zp]?(this[Zp]=!1,e[9]=255,super[si](e)):super[si](e)}},tm=class extends Zr{constructor(e){super(e,"Gunzip")}},rm=class extends Zr{constructor(e){super(e,"DeflateRaw")}},nm=class extends Zr{constructor(e){super(e,"InflateRaw")}},im=class extends Zr{constructor(e){super(e,"Unzip")}},Oc=class extends Tc{constructor(e,r){e=e||{},e.flush=e.flush||ii.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||ii.BROTLI_OPERATION_FINISH,super(e,r),this[am]=ii.BROTLI_OPERATION_FLUSH}},sm=class extends Oc{constructor(e){super(e,"BrotliCompress")}},om=class extends Oc{constructor(e){super(e,"BrotliDecompress")}};Ft.Deflate=Xp;Ft.Inflate=Qp;Ft.Gzip=em;Ft.Gunzip=tm;Ft.DeflateRaw=rm;Ft.InflateRaw=nm;Ft.Unzip=im;typeof eA.BrotliCompress=="function"?(Ft.BrotliCompress=sm,Ft.BrotliDecompress=om):Ft.BrotliCompress=Ft.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ds=A((qV,tA)=>{var Y8=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;tA.exports=Y8!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Fc=A((HV,rA)=>{"use strict";var K8=xc(),cm=Ds(),lm=Symbol("slurp");rA.exports=class extends K8{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,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=cm(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=cm(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[lm](r),n&&this[lm](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[lm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?cm(e[n]):e[n])}}});var hm=A(Pc=>{"use strict";Pc.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"]]);Pc.code=new Map(Array.from(Pc.name).map(t=>[t[1],t[0]]))});var oA=A((GV,sA)=>{"use strict";var Z8=(t,e)=>{if(Number.isSafeInteger(t))t<0?X8(t,e):J8(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},J8=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},X8=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=nA(i):i===0?e[n-1]=0:(r=!0,e[n-1]=iA(i))}},Q8=t=>{let e=t[0],r=e===128?t6(t.slice(1,t.length)):e===255?e6(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},e6=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=nA(s):s===0?o=s:(n=!0,o=iA(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},t6=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},nA=t=>(255^t)&255,iA=t=>(255^t)+1&255;sA.exports={encode:Z8,parse:Q8}});var Rs=A((zV,uA)=>{"use strict";var fm=hm(),Cs=require("path").posix,aA=oA(),dm=Symbol("slurp"),Pt=Symbol("type"),ym=class{constructor(e,r,n,i){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[Pt]="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,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=oi(e,r,100),this.mode=An(e,r+100,8),this.uid=An(e,r+108,8),this.gid=An(e,r+116,8),this.size=An(e,r+124,12),this.mtime=pm(e,r+136,12),this.cksum=An(e,r+148,12),this[dm](n),this[dm](i,!0),this[Pt]=oi(e,r+156,1),this[Pt]===""&&(this[Pt]="0"),this[Pt]==="0"&&this.path.slice(-1)==="/"&&(this[Pt]="5"),this[Pt]==="5"&&(this.size=0),this.linkpath=oi(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=oi(e,r+265,32),this.gname=oi(e,r+297,32),this.devmaj=An(e,r+329,8),this.devmin=An(e,r+337,8),e[r+475]!==0){let o=oi(e,r+345,155);this.path=o+"/"+this.path}else{let o=oi(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=pm(e,r+476,12),this.ctime=pm(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)}[dm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}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 n=this.ctime||this.atime?130:155,i=r6(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=ai(e,r,100,s)||this.needPax,this.needPax=Dn(e,r+100,8,this.mode)||this.needPax,this.needPax=Dn(e,r+108,8,this.uid)||this.needPax,this.needPax=Dn(e,r+116,8,this.gid)||this.needPax,this.needPax=Dn(e,r+124,12,this.size)||this.needPax,this.needPax=mm(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Pt].charCodeAt(0),this.needPax=ai(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=ai(e,r+265,32,this.uname)||this.needPax,this.needPax=ai(e,r+297,32,this.gname)||this.needPax,this.needPax=Dn(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Dn(e,r+337,8,this.devmin)||this.needPax,this.needPax=ai(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=ai(e,r+345,155,o)||this.needPax:(this.needPax=ai(e,r+345,130,o)||this.needPax,this.needPax=mm(e,r+476,12,this.atime)||this.needPax,this.needPax=mm(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,Dn(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 fm.name.get(this[Pt])||this[Pt]}get typeKey(){return this[Pt]}set type(e){fm.code.has(e)?this[Pt]=fm.code.get(e):this[Pt]=e}},r6=(t,e)=>{let n=t,i="",s,o=Cs.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Cs.dirname(n),n=Cs.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=Cs.join(Cs.basename(i),n),i=Cs.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},oi=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),pm=(t,e,r)=>n6(An(t,e,r)),n6=t=>t===null?null:new Date(t*1e3),An=(t,e,r)=>t[e]&128?aA.parse(t.slice(e,e+r)):s6(t,e,r),i6=t=>isNaN(t)?null:t,s6=(t,e,r)=>i6(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),o6={12:8589934591,8:2097151},Dn=(t,e,r,n)=>n===null?!1:n>o6[r]||n<0?(aA.encode(n,t.slice(e,e+r)),!0):(a6(t,e,r,n),!1),a6=(t,e,r,n)=>t.write(u6(n,r),e,r,"ascii"),u6=(t,e)=>c6(Math.floor(t).toString(8),e),c6=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",mm=(t,e,r,n)=>n===null?!1:Dn(t,e,r,n.getTime()/1e3),l6=new Array(156).join("\0"),ai=(t,e,r,n)=>n===null?!1:(t.write(n+l6,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);uA.exports=ym});var Ic=A((WV,cA)=>{"use strict";var h6=Rs(),f6=require("path"),sa=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),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new h6({path:("PaxHeader/"+f6.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(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}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],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
24
- `,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};sa.parse=(t,e,r)=>new sa(d6(p6(t),e),r);var d6=(t,e)=>e?Object.keys(t).reduce((r,n)=>(r[n]=t[n],r),e):t,p6=t=>t.replace(/\n$/,"").split(`
25
- `).reduce(m6,Object.create(null)),m6=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};cA.exports=sa});var ks=A((VV,lA)=>{lA.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 Lc=A((YV,hA)=>{"use strict";hA.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),n))}}});var _m=A((ZV,fA)=>{"use strict";var Bc=["|","<",">","?",":"],gm=Bc.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),y6=new Map(Bc.map((t,e)=>[t,gm[e]])),g6=new Map(gm.map((t,e)=>[t,Bc[e]]));fA.exports={encode:t=>Bc.reduce((e,r)=>e.split(r).join(y6.get(r)),t),decode:t=>gm.reduce((e,r)=>e.split(r).join(g6.get(r)),t)}});var bm=A((JV,pA)=>{var{isAbsolute:_6,parse:dA}=require("path").win32;pA.exports=t=>{let e="",r=dA(t);for(;_6(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=dA(t)}return[e,t]}});var yA=A((XV,mA)=>{"use strict";mA.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 km=A((tY,TA)=>{"use strict";var xA=xc(),SA=Ic(),AA=Rs(),Sr=require("fs"),gA=require("path"),xr=Ds(),b6=ks(),DA=(t,e)=>e?(t=xr(t).replace(/^\.(\/|$)/,""),b6(e)+"/"+t):xr(t),v6=16*1024*1024,_A=Symbol("process"),bA=Symbol("file"),vA=Symbol("directory"),Em=Symbol("symlink"),EA=Symbol("hardlink"),oa=Symbol("header"),Nc=Symbol("read"),wm=Symbol("lstat"),Mc=Symbol("onlstat"),xm=Symbol("onread"),Sm=Symbol("onreadlink"),Am=Symbol("openfile"),Dm=Symbol("onopenfile"),Cn=Symbol("close"),jc=Symbol("mode"),Cm=Symbol("awaitDrain"),vm=Symbol("ondrain"),Ar=Symbol("prefix"),wA=Symbol("hadError"),CA=Lc(),E6=_m(),RA=bm(),kA=yA(),qc=CA(class extends xA{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=xr(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||v6,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=xr(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?xr(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 n=!1;if(!this.preservePaths){let[i,s]=RA(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=E6.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=xr(r.absolute||gA.resolve(this.cwd,e)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Mc](this.statCache.get(this.absolute)):this[wm]()}emit(e,...r){return e==="error"&&(this[wA]=!0),super.emit(e,...r)}[wm](){Sr.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Mc](r)})}[Mc](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=x6(e),this.emit("stat",e),this[_A]()}[_A](){switch(this.type){case"File":return this[bA]();case"Directory":return this[vA]();case"SymbolicLink":return this[Em]();default:return this.end()}}[jc](e){return kA(e,this.type==="Directory",this.portable)}[Ar](e){return DA(e,this.prefix)}[oa](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new AA({path:this[Ar](this.path),linkpath:this.type==="Link"?this[Ar](this.linkpath):this.linkpath,mode:this[jc](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 SA({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[Ar](this.path),linkpath:this.type==="Link"?this[Ar](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)}[vA](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[oa](),this.end()}[Em](){Sr.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Sm](r)})}[Sm](e){this.linkpath=xr(e),this[oa](),this.end()}[EA](e){this.type="Link",this.linkpath=xr(gA.relative(this.cwd,e)),this.stat.size=0,this[oa](),this.end()}[bA](){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[EA](r)}this.linkCache.set(e,this.absolute)}if(this[oa](),this.stat.size===0)return this.end();this[Am]()}[Am](){Sr.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Dm](r)})}[Dm](e){if(this.fd=e,this[wA])return this[Cn]();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[Nc]()}[Nc](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Sr.read(e,r,n,i,s,(o,a)=>{if(o)return this[Cn](()=>this.emit("error",o));this[xm](a)})}[Cn](e){Sr.close(this.fd,e)}[xm](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Cn](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Cn](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+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[vm]():this[Cm](()=>this[vm]())}[Cm](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)}[vm](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Cn](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[Nc]()}}),Rm=class extends qc{[wm](){this[Mc](Sr.lstatSync(this.absolute))}[Em](){this[Sm](Sr.readlinkSync(this.absolute))}[Am](){this[Dm](Sr.openSync(this.absolute,"r"))}[Nc](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Sr.readSync(r,n,i,s,o);this[xm](a),e=!1}finally{if(e)try{this[Cn](()=>{})}catch{}}}[Cm](e){e()}[Cn](e){Sr.closeSync(this.fd),e()}},w6=CA(class extends xA{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=xr(e.path),this.mode=this[jc](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=xr(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=RA(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new AA({path:this[Ar](this.path),linkpath:this.type==="Link"?this[Ar](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}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new SA({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[Ar](this.path),linkpath:this.type==="Link"?this[Ar](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)}[Ar](e){return DA(e,this.prefix)}[jc](e){return kA(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()}});qc.Sync=Rm;qc.Tar=w6;var x6=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";TA.exports=qc});var FA=A((rY,OA)=>{"use strict";OA.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Tm=A((nY,PA)=>{"use strict";PA.exports=Ce;Ce.Node=ui;Ce.create=Ce;function Ce(t){var e=this;if(e instanceof Ce||(e=new Ce),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}Ce.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};Ce.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++}};Ce.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++}};Ce.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)A6(this,arguments[t]);return this.length};Ce.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)D6(this,arguments[t]);return this.length};Ce.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}};Ce.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}};Ce.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};Ce.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};Ce.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};Ce.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};Ce.prototype.map=function(t,e){e=e||this;for(var r=new Ce,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};Ce.prototype.mapReverse=function(t,e){e=e||this;for(var r=new Ce,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};Ce.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};Ce.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};Ce.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};Ce.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};Ce.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 Ce;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};Ce.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 Ce;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};Ce.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=S6(this,i,r[n]);return s};Ce.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function S6(t,e,r){var n=e===t.head?new ui(r,null,e,t):new ui(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function A6(t,e){t.tail=new ui(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function D6(t,e){t.head=new ui(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function ui(t,e,r,n){if(!(this instanceof ui))return new ui(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{FA()(Ce)}catch{}});var Kc=A((sY,qA)=>{"use strict";var Vc=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}},C6=xc(),R6=um(),k6=Fc(),jm=km(),T6=jm.Sync,O6=jm.Tar,F6=Tm(),IA=Buffer.alloc(1024),$c=Symbol("onStat"),Uc=Symbol("ended"),Dr=Symbol("queue"),Ts=Symbol("current"),ci=Symbol("process"),Hc=Symbol("processing"),LA=Symbol("processJob"),Cr=Symbol("jobs"),Om=Symbol("jobDone"),Gc=Symbol("addFSEntry"),BA=Symbol("addTarEntry"),Lm=Symbol("stat"),Bm=Symbol("readdir"),zc=Symbol("onreaddir"),Wc=Symbol("pipe"),NA=Symbol("entry"),Fm=Symbol("entryOpt"),Nm=Symbol("writeEntryClass"),jA=Symbol("write"),Pm=Symbol("ondrain"),Yc=require("fs"),MA=require("path"),P6=Lc(),Im=Ds(),qm=P6(class extends C6{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=Im(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Nm]=jm,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 R6.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Pm]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Pm]),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[Dr]=new F6,this[Cr]=0,this.jobs=+e.jobs||4,this[Hc]=!1,this[Uc]=!1}[jA](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Uc]=!0,this[ci](),this}write(e){if(this[Uc])throw new Error("write after end");return e instanceof k6?this[BA](e):this[Gc](e),this.flowing}[BA](e){let r=Im(MA.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new Vc(e.path,r,!1);n.entry=new O6(e,this[Fm](n)),n.entry.on("end",i=>this[Om](n)),this[Cr]+=1,this[Dr].push(n)}this[ci]()}[Gc](e){let r=Im(MA.resolve(this.cwd,e));this[Dr].push(new Vc(e,r)),this[ci]()}[Lm](e){e.pending=!0,this[Cr]+=1;let r=this.follow?"stat":"lstat";Yc[r](e.absolute,(n,i)=>{e.pending=!1,this[Cr]-=1,n?this.emit("error",n):this[$c](e,i)})}[$c](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[ci]()}[Bm](e){e.pending=!0,this[Cr]+=1,Yc.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[Cr]-=1,r)return this.emit("error",r);this[zc](e,n)})}[zc](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[ci]()}[ci](){if(!this[Hc]){this[Hc]=!0;for(let e=this[Dr].head;e!==null&&this[Cr]<this.jobs;e=e.next)if(this[LA](e.value),e.value.ignore){let r=e.next;this[Dr].removeNode(e),e.next=r}this[Hc]=!1,this[Uc]&&!this[Dr].length&&this[Cr]===0&&(this.zip?this.zip.end(IA):(super.write(IA),super.end()))}}get[Ts](){return this[Dr]&&this[Dr].head&&this[Dr].head.value}[Om](e){this[Dr].shift(),this[Cr]-=1,this[ci]()}[LA](e){if(!e.pending){if(e.entry){e===this[Ts]&&!e.piped&&this[Wc](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[$c](e,this.statCache.get(e.absolute)):this[Lm](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[zc](e,this.readdirCache.get(e.absolute)):this[Bm](e),!e.readdir))){if(e.entry=this[NA](e),!e.entry){e.ignore=!0;return}e===this[Ts]&&!e.piped&&this[Wc](e)}}}[Fm](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),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}}[NA](e){this[Cr]+=1;try{return new this[Nm](e.path,this[Fm](e)).on("end",()=>this[Om](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Pm](){this[Ts]&&this[Ts].entry&&this[Ts].entry.resume()}[Wc](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Gc](o+i)});let r=e.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Mm=class extends qm{constructor(e){super(e),this[Nm]=T6}pause(){}resume(){}[Lm](e){let r=this.follow?"statSync":"lstatSync";this[$c](e,Yc[r](e.absolute))}[Bm](e,r){this[zc](e,Yc.readdirSync(e.absolute))}[Wc](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Gc](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[jA](i)})}};qm.Sync=Mm;qA.exports=qm});var Ms=A(ua=>{"use strict";var I6=Wp(),L6=require("events").EventEmitter,At=require("fs"),$m=At.writev;if(!$m){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;$m=(r,n,i,s)=>{let o=(u,c)=>s(u,c,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var Bs=Symbol("_autoClose"),ar=Symbol("_close"),aa=Symbol("_ended"),Oe=Symbol("_fd"),UA=Symbol("_finished"),kn=Symbol("_flags"),Um=Symbol("_flush"),Gm=Symbol("_handleChunk"),zm=Symbol("_makeBuf"),el=Symbol("_mode"),Zc=Symbol("_needDrain"),Is=Symbol("_onerror"),Ns=Symbol("_onopen"),Hm=Symbol("_onread"),Fs=Symbol("_onwrite"),Tn=Symbol("_open"),Jr=Symbol("_path"),li=Symbol("_pos"),Rr=Symbol("_queue"),Ps=Symbol("_read"),HA=Symbol("_readSize"),Rn=Symbol("_reading"),Jc=Symbol("_remain"),$A=Symbol("_size"),Xc=Symbol("_write"),Os=Symbol("_writing"),Qc=Symbol("_defaultFlag"),Ls=Symbol("_errored"),tl=class extends I6{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[Ls]=!1,this[Oe]=typeof r.fd=="number"?r.fd:null,this[Jr]=e,this[HA]=r.readSize||16*1024*1024,this[Rn]=!1,this[$A]=typeof r.size=="number"?r.size:1/0,this[Jc]=this[$A],this[Bs]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[Oe]=="number"?this[Ps]():this[Tn]()}get fd(){return this[Oe]}get path(){return this[Jr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Tn](){At.open(this[Jr],"r",(e,r)=>this[Ns](e,r))}[Ns](e,r){e?this[Is](e):(this[Oe]=r,this.emit("open",r),this[Ps]())}[zm](){return Buffer.allocUnsafe(Math.min(this[HA],this[Jc]))}[Ps](){if(!this[Rn]){this[Rn]=!0;let e=this[zm]();if(e.length===0)return process.nextTick(()=>this[Hm](null,0,e));At.read(this[Oe],e,0,e.length,null,(r,n,i)=>this[Hm](r,n,i))}}[Hm](e,r,n){this[Rn]=!1,e?this[Is](e):this[Gm](r,n)&&this[Ps]()}[ar](){if(this[Bs]&&typeof this[Oe]=="number"){let e=this[Oe];this[Oe]=null,At.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Is](e){this[Rn]=!0,this[ar](),this.emit("error",e)}[Gm](e,r){let n=!1;return this[Jc]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Jc]<=0)&&(n=!1,this[ar](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[Oe]=="number"&&this[Ps]();break;case"error":return this[Ls]?void 0:(this[Ls]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Wm=class extends tl{[Tn](){let e=!0;try{this[Ns](null,At.openSync(this[Jr],"r")),e=!1}finally{e&&this[ar]()}}[Ps](){let e=!0;try{if(!this[Rn]){this[Rn]=!0;do{let r=this[zm](),n=r.length===0?0:At.readSync(this[Oe],r,0,r.length,null);if(!this[Gm](n,r))break}while(!0);this[Rn]=!1}e=!1}finally{e&&this[ar]()}}[ar](){if(this[Bs]&&typeof this[Oe]=="number"){let e=this[Oe];this[Oe]=null,At.closeSync(e),this.emit("close")}}},rl=class extends L6{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ls]=!1,this[Os]=!1,this[aa]=!1,this[Zc]=!1,this[Rr]=[],this[Jr]=e,this[Oe]=typeof r.fd=="number"?r.fd:null,this[el]=r.mode===void 0?438:r.mode,this[li]=typeof r.start=="number"?r.start:null,this[Bs]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[li]!==null?"r+":"w";this[Qc]=r.flags===void 0,this[kn]=this[Qc]?n:r.flags,this[Oe]===null&&this[Tn]()}emit(e,r){if(e==="error"){if(this[Ls])return;this[Ls]=!0}return super.emit(e,r)}get fd(){return this[Oe]}get path(){return this[Jr]}[Is](e){this[ar](),this[Os]=!0,this.emit("error",e)}[Tn](){At.open(this[Jr],this[kn],this[el],(e,r)=>this[Ns](e,r))}[Ns](e,r){this[Qc]&&this[kn]==="r+"&&e&&e.code==="ENOENT"?(this[kn]="w",this[Tn]()):e?this[Is](e):(this[Oe]=r,this.emit("open",r),this[Um]())}end(e,r){return e&&this.write(e,r),this[aa]=!0,!this[Os]&&!this[Rr].length&&typeof this[Oe]=="number"&&this[Fs](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[aa]?(this.emit("error",new Error("write() after end()")),!1):this[Oe]===null||this[Os]||this[Rr].length?(this[Rr].push(e),this[Zc]=!0,!1):(this[Os]=!0,this[Xc](e),!0)}[Xc](e){At.write(this[Oe],e,0,e.length,this[li],(r,n)=>this[Fs](r,n))}[Fs](e,r){e?this[Is](e):(this[li]!==null&&(this[li]+=r),this[Rr].length?this[Um]():(this[Os]=!1,this[aa]&&!this[UA]?(this[UA]=!0,this[ar](),this.emit("finish")):this[Zc]&&(this[Zc]=!1,this.emit("drain"))))}[Um](){if(this[Rr].length===0)this[aa]&&this[Fs](null,0);else if(this[Rr].length===1)this[Xc](this[Rr].pop());else{let e=this[Rr];this[Rr]=[],$m(this[Oe],e,this[li],(r,n)=>this[Fs](r,n))}}[ar](){if(this[Bs]&&typeof this[Oe]=="number"){let e=this[Oe];this[Oe]=null,At.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Vm=class extends rl{[Tn](){let e;if(this[Qc]&&this[kn]==="r+")try{e=At.openSync(this[Jr],this[kn],this[el])}catch(r){if(r.code==="ENOENT")return this[kn]="w",this[Tn]();throw r}else e=At.openSync(this[Jr],this[kn],this[el]);this[Ns](null,e)}[ar](){if(this[Bs]&&typeof this[Oe]=="number"){let e=this[Oe];this[Oe]=null,At.closeSync(e),this.emit("close")}}[Xc](e){let r=!0;try{this[Fs](null,At.writeSync(this[Oe],e,0,e.length,this[li])),r=!1}finally{if(r)try{this[ar]()}catch{}}}};ua.ReadStream=tl;ua.ReadStreamSync=Wm;ua.WriteStream=rl;ua.WriteStreamSync=Vm});var cl=A((uY,JA)=>{"use strict";var B6=Lc(),N6=Rs(),M6=require("events"),j6=Tm(),q6=1024*1024,U6=Fc(),GA=Ic(),H6=um(),{nextTick:$6}=require("process"),Ym=Buffer.from([31,139]),Vt=Symbol("state"),hi=Symbol("writeEntry"),Xr=Symbol("readEntry"),Km=Symbol("nextEntry"),zA=Symbol("processEntry"),Yt=Symbol("extendedHeader"),ca=Symbol("globalExtendedHeader"),On=Symbol("meta"),WA=Symbol("emitMeta"),Le=Symbol("buffer"),Qr=Symbol("queue"),fi=Symbol("ended"),VA=Symbol("emittedEnd"),di=Symbol("emit"),Dt=Symbol("unzip"),nl=Symbol("consumeChunk"),il=Symbol("consumeChunkSub"),Zm=Symbol("consumeBody"),YA=Symbol("consumeMeta"),KA=Symbol("consumeHeader"),sl=Symbol("consuming"),Jm=Symbol("bufferConcat"),Xm=Symbol("maybeEnd"),la=Symbol("writing"),Fn=Symbol("aborted"),ol=Symbol("onDone"),pi=Symbol("sawValidEntry"),al=Symbol("sawNullBlock"),ul=Symbol("sawEOF"),ZA=Symbol("closeStream"),G6=t=>!0;JA.exports=B6(class extends M6{constructor(e){e=e||{},super(e),this.file=e.file||"",this[pi]=null,this.on(ol,r=>{(this[Vt]==="begin"||this[pi]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(ol,e.ondone):this.on(ol,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||q6,this.filter=typeof e.filter=="function"?e.filter:G6,this.writable=!0,this.readable=!1,this[Qr]=new j6,this[Le]=null,this[Xr]=null,this[hi]=null,this[Vt]="begin",this[On]="",this[Yt]=null,this[ca]=null,this[fi]=!1,this[Dt]=null,this[Fn]=!1,this[al]=!1,this[ul]=!1,this.on("end",()=>this[ZA]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[KA](e,r){this[pi]===null&&(this[pi]=!1);let n;try{n=new N6(e,r,this[Yt],this[ca])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[al]?(this[ul]=!0,this[Vt]==="begin"&&(this[Vt]="header"),this[di]("eof")):(this[al]=!0,this[di]("nullBlock"));else if(this[al]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[hi]=new U6(n,this[Yt],this[ca]);if(!this[pi])if(s.remain){let o=()=>{s.invalid||(this[pi]=!0)};s.on("end",o)}else this[pi]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[di]("ignoredEntry",s),this[Vt]="ignore",s.resume()):s.size>0&&(this[On]="",s.on("data",o=>this[On]+=o),this[Vt]="meta"):(this[Yt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[di]("ignoredEntry",s),this[Vt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Vt]="body":(this[Vt]="header",s.end()),this[Xr]?this[Qr].push(s):(this[Qr].push(s),this[Km]())))}}}[ZA](){$6(()=>this.emit("close"))}[zA](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Xr]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[Km]()),r=!1)):(this[Xr]=null,r=!1),r}[Km](){do;while(this[zA](this[Qr].shift()));if(!this[Qr].length){let e=this[Xr];!e||e.flowing||e.size===e.remain?this[la]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[Zm](e,r){let n=this[hi],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[Vt]="header",this[hi]=null,n.end()),s.length}[YA](e,r){let n=this[hi],i=this[Zm](e,r);return this[hi]||this[WA](n),i}[di](e,r,n){!this[Qr].length&&!this[Xr]?this.emit(e,r,n):this[Qr].push([e,r,n])}[WA](e){switch(this[di]("meta",this[On]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Yt]=GA.parse(this[On],this[Yt],!1);break;case"GlobalExtendedHeader":this[ca]=GA.parse(this[On],this[ca],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Yt]=this[Yt]||Object.create(null),this[Yt].path=this[On].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Yt]=this[Yt]||Object.create(null),this[Yt].linkpath=this[On].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Fn]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Fn])return;if(this[Dt]===null&&e){if(this[Le]&&(e=Buffer.concat([this[Le],e]),this[Le]=null),e.length<Ym.length)return this[Le]=e,!0;for(let n=0;this[Dt]===null&&n<Ym.length;n++)e[n]!==Ym[n]&&(this[Dt]=!1);if(this[Dt]===null){let n=this[fi];this[fi]=!1,this[Dt]=new H6.Unzip,this[Dt].on("data",s=>this[nl](s)),this[Dt].on("error",s=>this.abort(s)),this[Dt].on("end",s=>{this[fi]=!0,this[nl]()}),this[la]=!0;let i=this[Dt][n?"end":"write"](e);return this[la]=!1,i}}this[la]=!0,this[Dt]?this[Dt].write(e):this[nl](e),this[la]=!1;let r=this[Qr].length?!1:this[Xr]?this[Xr].flowing:!0;return!r&&!this[Qr].length&&this[Xr].once("drain",n=>this.emit("drain")),r}[Jm](e){e&&!this[Fn]&&(this[Le]=this[Le]?Buffer.concat([this[Le],e]):e)}[Xm](){if(this[fi]&&!this[VA]&&!this[Fn]&&!this[sl]){this[VA]=!0;let e=this[hi];if(e&&e.blockRemain){let r=this[Le]?this[Le].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Le]&&e.write(this[Le]),e.end()}this[di](ol)}}[nl](e){if(this[sl])this[Jm](e);else if(!e&&!this[Le])this[Xm]();else{if(this[sl]=!0,this[Le]){this[Jm](e);let r=this[Le];this[Le]=null,this[il](r)}else this[il](e);for(;this[Le]&&this[Le].length>=512&&!this[Fn]&&!this[ul];){let r=this[Le];this[Le]=null,this[il](r)}this[sl]=!1}(!this[Le]||this[fi])&&this[Xm]()}[il](e){let r=0,n=e.length;for(;r+512<=n&&!this[Fn]&&!this[ul];)switch(this[Vt]){case"begin":case"header":this[KA](e,r),r+=512;break;case"ignore":case"body":r+=this[Zm](e,r);break;case"meta":r+=this[YA](e,r);break;default:throw new Error("invalid state: "+this[Vt])}r<n&&(this[Le]?this[Le]=Buffer.concat([e.slice(r),this[Le]]):this[Le]=e.slice(r))}end(e){this[Fn]||(this[Dt]?this[Dt].end(e):(this[fi]=!0,this.write(e)))}})});var ll=A((cY,tD)=>{"use strict";var z6=Es(),QA=cl(),js=require("fs"),W6=Ms(),XA=require("path"),Qm=ks();tD.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 n=z6(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Y6(n,e),n.noResume||V6(n),n.file&&n.sync?K6(n):n.file?Z6(n,r):eD(n)};var V6=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},Y6=(t,e)=>{let r=new Map(e.map(s=>[Qm(s),!0])),n=t.filter,i=(s,o)=>{let a=o||XA.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(XA.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(Qm(s)):s=>i(Qm(s))},K6=t=>{let e=eD(t),r=t.file,n=!0,i;try{let s=js.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(js.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(i=js.openSync(r,"r");a<s.size;){let c=js.readSync(i,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}n=!1}finally{if(n&&i)try{js.closeSync(i)}catch{}}},Z6=(t,e)=>{let r=new QA(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),js.stat(i,(u,c)=>{if(u)a(u);else{let l=new W6.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},eD=t=>new QA(t)});var aD=A((lY,oD)=>{"use strict";var J6=Es(),hl=Kc(),rD=Ms(),nD=ll(),iD=require("path");oD.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 n=J6(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?X6(n,e):n.file?Q6(n,e,r):n.sync?e4(n,e):t4(n,e)};var X6=(t,e)=>{let r=new hl.Sync(t),n=new rD.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),sD(r,e)},Q6=(t,e,r)=>{let n=new hl(t),i=new rD.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return e0(n,e),r?s.then(r,r):s},sD=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?nD({file:iD.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},e0=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return nD({file:iD.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>e0(t,e));t.add(r)}t.end()},e4=(t,e)=>{let r=new hl.Sync(t);return sD(r,e),r},t4=(t,e)=>{let r=new hl(t);return e0(r,e),r}});var t0=A((hY,pD)=>{"use strict";var r4=Es(),uD=Kc(),It=require("fs"),cD=Ms(),lD=ll(),hD=require("path"),fD=Rs();pD.exports=(t,e,r)=>{let n=r4(t);if(!n.file)throw new TypeError("file is required");if(n.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),n.sync?n4(n,e):s4(n,e,r)};var n4=(t,e)=>{let r=new uD.Sync(t),n=!0,i,s;try{try{i=It.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")i=It.openSync(t.file,"w+");else throw u}let o=It.fstatSync(i),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=It.readSync(i,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 fD(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)}n=!1,i4(t,r,s,i,e)}finally{if(n)try{It.closeSync(i)}catch{}}},i4=(t,e,r,n,i)=>{let s=new cD.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),o4(e,i)},s4=(t,e,r)=>{e=Array.from(e);let n=new uD(t),i=(o,a,u)=>{let c=(p,y)=>{p?It.close(o,m=>u(p)):u(null,y)},l=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(p,y)=>{if(p)return c(p);if(h+=y,h<512&&y)return It.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 m=new fD(f);if(!m.cksumValid)return c(null,l);let w=512*Math.ceil(m.size/512);if(l+w+512>a||(l+=w+512,l>=a))return c(null,l);t.mtimeCache&&t.mtimeCache.set(m.path,m.mtime),h=0,It.read(o,f,0,512,l,d)};It.read(o,f,0,512,l,d)},s=new Promise((o,a)=>{n.on("error",a);let u="r+",c=(l,h)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",It.open(t.file,u,c);if(l)return a(l);It.fstat(h,(f,d)=>{if(f)return It.close(h,()=>a(f));i(h,d.size,(p,y)=>{if(p)return a(p);let m=new cD.WriteStream(t.file,{fd:h,start:y});n.pipe(m),m.on("error",a),m.on("close",o),dD(n,e)})})};It.open(t.file,u,c)});return r?s.then(r,r):s},o4=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?lD({file:hD.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},dD=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return lD({file:hD.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>dD(t,e));t.add(r)}t.end()}});var yD=A((fY,mD)=>{"use strict";var a4=Es(),u4=t0();mD.exports=(t,e,r)=>{let n=a4(t);if(!n.file)throw new TypeError("file is required");if(n.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),c4(n),u4(n,e,r)};var c4=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var bD=A((dY,_D)=>{var{promisify:gD}=require("util"),Pn=require("fs"),l4=t=>{if(!t)t={mode:511,fs:Pn};else if(typeof t=="object")t={mode:511,fs:Pn,...t};else if(typeof t=="number")t={mode:t,fs:Pn};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Pn};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Pn.mkdir,t.mkdirAsync=gD(t.mkdir),t.stat=t.stat||t.fs.stat||Pn.stat,t.statAsync=gD(t.stat),t.statSync=t.statSync||t.fs.statSync||Pn.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Pn.mkdirSync,t};_D.exports=l4});var ED=A((pY,vD)=>{var h4=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:f4,parse:d4}=require("path"),p4=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=f4(t),h4==="win32"){let e=/[*|"<>?:]/,{root:r}=d4(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};vD.exports=p4});var DD=A((mY,AD)=>{var{dirname:wD}=require("path"),xD=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?xD(t,wD(e),e):void 0),SD=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?SD(t,wD(e),e):void 0}};AD.exports={findMade:xD,findMadeSync:SD}});var i0=A((yY,RD)=>{var{dirname:CD}=require("path"),r0=(t,e,r)=>{e.recursive=!1;let n=CD(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return r0(n,e).then(s=>r0(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},n0=(t,e,r)=>{let n=CD(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return n0(t,e,n0(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};RD.exports={mkdirpManual:r0,mkdirpManualSync:n0}});var OD=A((gY,TD)=>{var{dirname:kD}=require("path"),{findMade:m4,findMadeSync:y4}=DD(),{mkdirpManual:g4,mkdirpManualSync:_4}=i0(),b4=(t,e)=>(e.recursive=!0,kD(t)===t?e.mkdirAsync(t,e):m4(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return g4(t,e);throw i}))),v4=(t,e)=>{if(e.recursive=!0,kD(t)===t)return e.mkdirSync(t,e);let n=y4(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return _4(t,e);throw i}};TD.exports={mkdirpNative:b4,mkdirpNativeSync:v4}});var LD=A((_Y,ID)=>{var FD=require("fs"),E4=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,s0=E4.replace(/^v/,"").split("."),PD=+s0[0]>10||+s0[0]==10&&+s0[1]>=12,w4=PD?t=>t.mkdir===FD.mkdir:()=>!1,x4=PD?t=>t.mkdirSync===FD.mkdirSync:()=>!1;ID.exports={useNative:w4,useNativeSync:x4}});var UD=A((bY,qD)=>{var qs=bD(),Us=ED(),{mkdirpNative:BD,mkdirpNativeSync:ND}=OD(),{mkdirpManual:MD,mkdirpManualSync:jD}=i0(),{useNative:S4,useNativeSync:A4}=LD(),Hs=(t,e)=>(t=Us(t),e=qs(e),S4(e)?BD(t,e):MD(t,e)),D4=(t,e)=>(t=Us(t),e=qs(e),A4(e)?ND(t,e):jD(t,e));Hs.sync=D4;Hs.native=(t,e)=>BD(Us(t),qs(e));Hs.manual=(t,e)=>MD(Us(t),qs(e));Hs.nativeSync=(t,e)=>ND(Us(t),qs(e));Hs.manualSync=(t,e)=>jD(Us(t),qs(e));qD.exports=Hs});var YD=A((vY,VD)=>{"use strict";var Kt=require("fs"),mi=require("path"),C4=Kt.lchown?"lchown":"chown",R4=Kt.lchownSync?"lchownSync":"chownSync",$D=Kt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),HD=(t,e,r)=>{try{return Kt[R4](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},k4=(t,e,r)=>{try{return Kt.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},T4=$D?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Kt.chown(t,e,r,n)}:(t,e,r,n)=>n,o0=$D?(t,e,r)=>{try{return HD(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;k4(t,e,r)}}:(t,e,r)=>HD(t,e,r),O4=process.version,GD=(t,e,r)=>Kt.readdir(t,e,r),F4=(t,e)=>Kt.readdirSync(t,e);/^v4\./.test(O4)&&(GD=(t,e,r)=>Kt.readdir(t,r));var fl=(t,e,r,n)=>{Kt[C4](t,e,r,T4(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},zD=(t,e,r,n,i)=>{if(typeof e=="string")return Kt.lstat(mi.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,zD(t,o,r,n,i)});if(e.isDirectory())a0(mi.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=mi.resolve(t,e.name);fl(o,r,n,i)});else{let s=mi.resolve(t,e.name);fl(s,r,n,i)}},a0=(t,e,r,n)=>{GD(t,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return fl(t,e,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return fl(t,e,r,n)}};s.forEach(c=>zD(t,c,e,r,u))})},P4=(t,e,r,n)=>{if(typeof e=="string")try{let i=Kt.lstatSync(mi.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&WD(mi.resolve(t,e.name),r,n),o0(mi.resolve(t,e.name),r,n)},WD=(t,e,r)=>{let n;try{n=F4(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return o0(t,e,r);throw i}return n&&n.length&&n.forEach(i=>P4(t,i,e,r)),o0(t,e,r)};VD.exports=a0;a0.sync=WD});var XD=A((EY,u0)=>{"use strict";var KD=UD(),Zt=require("fs"),dl=require("path"),ZD=YD(),ur=Ds(),pl=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},ml=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},yl=(t,e)=>t.get(ur(e)),ha=(t,e,r)=>t.set(ur(e),r),I4=(t,e)=>{Zt.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new ml(t,r&&r.code||"ENOTDIR")),e(r)})};u0.exports=(t,e,r)=>{t=ur(t);let n=e.umask,i=e.mode|448,s=(i&n)!==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=ur(e.cwd),d=(m,w)=>{m?r(m):(ha(h,t,!0),w&&u?ZD(w,o,a,T=>d(T)):s?Zt.chmod(t,i,r):r())};if(h&&yl(h,t)===!0)return d();if(t===f)return I4(t,d);if(c)return KD(t,{mode:i}).then(m=>d(null,m),d);let y=ur(dl.relative(f,t)).split("/");gl(f,y,i,h,l,f,null,d)};var gl=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=ur(dl.resolve(t+"/"+u));if(yl(n,c))return gl(c,e,r,n,i,s,o,a);Zt.mkdir(c,r,JD(c,e,r,n,i,s,o,a))},JD=(t,e,r,n,i,s,o,a)=>u=>{u?Zt.lstat(t,(c,l)=>{if(c)c.path=c.path&&ur(c.path),a(c);else if(l.isDirectory())gl(t,e,r,n,i,s,o,a);else if(i)Zt.unlink(t,h=>{if(h)return a(h);Zt.mkdir(t,r,JD(t,e,r,n,i,s,o,a))});else{if(l.isSymbolicLink())return a(new pl(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,gl(t,e,r,n,i,s,o,a))},L4=t=>{let e=!1,r="ENOTDIR";try{e=Zt.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new ml(t,r)}};u0.exports.sync=(t,e)=>{t=ur(t);let r=e.umask,n=e.mode|448,i=(n&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=ur(e.cwd),f=m=>{ha(l,t,!0),m&&a&&ZD.sync(m,s,o),i&&Zt.chmodSync(t,n)};if(l&&yl(l,t)===!0)return f();if(t===h)return L4(h),f();if(u)return f(KD.sync(t,n));let p=ur(dl.relative(h,t)).split("/"),y=null;for(let m=p.shift(),w=h;m&&(w+="/"+m);m=p.shift())if(w=ur(dl.resolve(w)),!yl(l,w))try{Zt.mkdirSync(w,n),y=y||w,ha(l,w,!0)}catch{let F=Zt.lstatSync(w);if(F.isDirectory()){ha(l,w,!0);continue}else if(c){Zt.unlinkSync(w),Zt.mkdirSync(w,n),y=y||w,ha(l,w,!0);continue}else if(F.isSymbolicLink())return new pl(w,w+"/"+p.join("/"))}return f(y)}});var l0=A((wY,QD)=>{var c0=Object.create(null),{hasOwnProperty:B4}=Object.prototype;QD.exports=t=>(B4.call(c0,t)||(c0[t]=t.normalize("NFKD")),c0[t])});var nC=A((xY,rC)=>{var eC=require("assert"),N4=l0(),M4=ks(),{join:tC}=require("path"),j4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,q4=j4==="win32";rC.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=tC(h[h.length-1],f)),h.push(f||"/"),h),[]),n=new Set,i=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}=i(c);return l.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>a(c)),!0),a=c=>{if(!n.has(c))return!1;let{paths:l,dirs:h}=e.get(c),f=new Set;return l.forEach(d=>{let p=t.get(d);eC.equal(p[0],c),p.length===1?t.delete(d):(p.shift(),typeof p[0]=="function"?f.add(p[0]):p[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let p=t.get(d);eC(p[0]instanceof Set),p[0].size===1&&p.length===1?t.delete(d):p[0].size===1?(p.shift(),f.add(p[0])):p[0].delete(c)}),n.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,l)=>{c=q4?["win32 parallelization disabled"]:c.map(f=>N4(M4(tC(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 oC=A((SY,sC)=>{var U4=process.env.__FAKE_PLATFORM__||process.platform,H4=U4==="win32",$4=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:G4,O_TRUNC:z4,O_WRONLY:W4,UV_FS_O_FILEMAP:iC=0}=$4.constants,V4=H4&&!!iC,Y4=512*1024,K4=iC|z4|G4|W4;sC.exports=V4?t=>t<Y4?K4:"w":()=>"w"});var b0=A((AY,vC)=>{"use strict";var Z4=require("assert"),J4=cl(),Re=require("fs"),X4=Ms(),en=require("path"),gC=XD(),aC=_m(),Q4=nC(),ej=bm(),Lt=Ds(),tj=ks(),rj=l0(),uC=Symbol("onEntry"),d0=Symbol("checkFs"),cC=Symbol("checkFs2"),vl=Symbol("pruneCache"),p0=Symbol("isReusable"),Jt=Symbol("makeFs"),m0=Symbol("file"),y0=Symbol("directory"),El=Symbol("link"),lC=Symbol("symlink"),hC=Symbol("hardlink"),fC=Symbol("unsupported"),dC=Symbol("checkPath"),In=Symbol("mkdir"),dt=Symbol("onError"),_l=Symbol("pending"),pC=Symbol("pend"),$s=Symbol("unpend"),h0=Symbol("ended"),f0=Symbol("maybeClose"),g0=Symbol("skip"),fa=Symbol("doChown"),da=Symbol("uid"),pa=Symbol("gid"),ma=Symbol("checkedCwd"),_C=require("crypto"),bC=oC(),nj=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ya=nj==="win32",ij=(t,e)=>{if(!ya)return Re.unlink(t,e);let r=t+".DELETE."+_C.randomBytes(16).toString("hex");Re.rename(t,r,n=>{if(n)return e(n);Re.unlink(r,e)})},sj=t=>{if(!ya)return Re.unlinkSync(t);let e=t+".DELETE."+_C.randomBytes(16).toString("hex");Re.renameSync(t,e),Re.unlinkSync(e)},mC=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,yC=t=>rj(tj(Lt(t))).toLowerCase(),oj=(t,e)=>{e=yC(e);for(let r of t.keys()){let n=yC(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},aj=t=>{for(let e of t.keys())t.delete(e)},ga=class extends J4{constructor(e){if(e||(e={}),e.ondone=r=>{this[h0]=!0,this[f0]()},super(e),this[ma]=!1,this.reservations=Q4(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[_l]=0,this[h0]=!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||ya,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Lt(en.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[uC](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[f0](){this[h0]&&this[_l]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[dC](e){if(this.strip){let r=Lt(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=Lt(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Lt(e.path),n=r.split("/");if(n.includes("..")||ya&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=ej(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(en.isAbsolute(e.path)?e.absolute=Lt(en.resolve(e.path)):e.absolute=Lt(en.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:Lt(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}=en.win32.parse(e.absolute);e.absolute=r+aC.encode(e.absolute.slice(r.length));let{root:n}=en.win32.parse(e.path);e.path=n+aC.encode(e.path.slice(n.length))}return!0}[uC](e){if(!this[dC](e))return e.resume();switch(Z4.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[d0](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[fC](e)}}[dt](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[$s](),r.resume())}[In](e,r,n){gC(Lt(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},n)}[fa](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}[da](e){return mC(this.uid,e.uid,this.processUid)}[pa](e){return mC(this.gid,e.gid,this.processGid)}[m0](e,r){let n=e.mode&4095||this.fmode,i=new X4.WriteStream(e.absolute,{flags:bC(e.size),mode:n,autoClose:!1});i.on("error",u=>{i.fd&&Re.close(i.fd,()=>{}),i.write=()=>!0,this[dt](u,e),r()});let s=1,o=u=>{if(u){i.fd&&Re.close(i.fd,()=>{}),this[dt](u,e),r();return}--s===0&&Re.close(i.fd,c=>{c?this[dt](c,e):this[$s](),r()})};i.on("finish",u=>{let c=e.absolute,l=i.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;Re.futimes(l,h,f,d=>d?Re.utimes(c,h,f,p=>o(p&&d)):o())}if(this[fa](e)){s++;let h=this[da](e),f=this[pa](e);Re.fchown(l,h,f,d=>d?Re.chown(c,h,f,p=>o(p&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[dt](u,e),r()}),e.pipe(a)),a.pipe(i)}[y0](e,r){let n=e.mode&4095||this.dmode;this[In](e.absolute,n,i=>{if(i){this[dt](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[$s](),e.resume())};e.mtime&&!this.noMtime&&(s++,Re.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[fa](e)&&(s++,Re.chown(e.absolute,this[da](e),this[pa](e),o)),o()})}[fC](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[lC](e,r){this[El](e,e.linkpath,"symlink",r)}[hC](e,r){let n=Lt(en.resolve(this.cwd,e.linkpath));this[El](e,n,"link",r)}[pC](){this[_l]++}[$s](){this[_l]--,this[f0]()}[g0](e){this[$s](),e.resume()}[p0](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!ya}[d0](e){this[pC]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[cC](e,n))}[vl](e){e.type==="SymbolicLink"?aj(this.dirCache):e.type!=="Directory"&&oj(this.dirCache,e.absolute)}[cC](e,r){this[vl](e);let n=a=>{this[vl](e),r(a)},i=()=>{this[In](this.cwd,this.dmode,a=>{if(a){this[dt](a,e),n();return}this[ma]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Lt(en.dirname(e.absolute));if(a!==this.cwd)return this[In](a,this.dmode,u=>{if(u){this[dt](u,e),n();return}o()})}o()},o=()=>{Re.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[g0](e),n();return}if(a||this[p0](e,u))return this[Jt](null,e,n);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=h=>this[Jt](h,e,n);return c?Re.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return Re.rmdir(e.absolute,c=>this[Jt](c,e,n))}if(e.absolute===this.cwd)return this[Jt](null,e,n);ij(e.absolute,c=>this[Jt](c,e,n))})};this[ma]?s():i()}[Jt](e,r,n){if(e){this[dt](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[m0](r,n);case"Link":return this[hC](r,n);case"SymbolicLink":return this[lC](r,n);case"Directory":case"GNUDumpDir":return this[y0](r,n)}}[El](e,r,n,i){Re[n](r,e.absolute,s=>{s?this[dt](s,e):(this[$s](),e.resume()),i()})}},bl=t=>{try{return[null,t()]}catch(e){return[e,null]}},_0=class extends ga{[Jt](e,r){return super[Jt](e,r,()=>{})}[d0](e){if(this[vl](e),!this[ma]){let s=this[In](this.cwd,this.dmode);if(s)return this[dt](s,e);this[ma]=!0}if(e.absolute!==this.cwd){let s=Lt(en.dirname(e.absolute));if(s!==this.cwd){let o=this[In](s,this.dmode);if(o)return this[dt](o,e)}}let[r,n]=bl(()=>Re.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[g0](e);if(r||this[p0](e,n))return this[Jt](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?bl(()=>{Re.chmodSync(e.absolute,e.mode)}):[];return this[Jt](a,e)}let[s]=bl(()=>Re.rmdirSync(e.absolute));this[Jt](s,e)}let[i]=e.absolute===this.cwd?[]:bl(()=>sj(e.absolute));this[Jt](i,e)}[m0](e,r){let n=e.mode&4095||this.fmode,i=a=>{let u;try{Re.closeSync(s)}catch(c){u=c}(a||u)&&this[dt](a||u,e),r()},s;try{s=Re.openSync(e.absolute,bC(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[dt](a,e)),e.pipe(o)),o.on("data",a=>{try{Re.writeSync(s,a,0,a.length)}catch(u){i(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{Re.futimesSync(s,c,l)}catch(h){try{Re.utimesSync(e.absolute,c,l)}catch{u=h}}}if(this[fa](e)){let c=this[da](e),l=this[pa](e);try{Re.fchownSync(s,c,l)}catch(h){try{Re.chownSync(e.absolute,c,l)}catch{u=u||h}}}i(u)})}[y0](e,r){let n=e.mode&4095||this.dmode,i=this[In](e.absolute,n);if(i){this[dt](i,e),r();return}if(e.mtime&&!this.noMtime)try{Re.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[fa](e))try{Re.chownSync(e.absolute,this[da](e),this[pa](e))}catch{}r(),e.resume()}[In](e,r){try{return gC.sync(Lt(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(n){return n}}[El](e,r,n,i){try{Re[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[dt](s,e)}}};ga.Sync=_0;vC.exports=ga});var AC=A((DY,SC)=>{"use strict";var uj=Es(),wl=b0(),wC=require("fs"),xC=Ms(),EC=require("path"),v0=ks();SC.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 n=uj(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&cj(n,e),n.file&&n.sync?lj(n):n.file?hj(n,r):n.sync?fj(n):dj(n)};var cj=(t,e)=>{let r=new Map(e.map(s=>[v0(s),!0])),n=t.filter,i=(s,o)=>{let a=o||EC.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(EC.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(v0(s)):s=>i(v0(s))},lj=t=>{let e=new wl.Sync(t),r=t.file,n=wC.statSync(r),i=t.maxReadSize||16*1024*1024;new xC.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},hj=(t,e)=>{let r=new wl(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),wC.stat(i,(u,c)=>{if(u)a(u);else{let l=new xC.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},fj=t=>new wl.Sync(t),dj=t=>new wl(t)});var DC=A(Ve=>{"use strict";Ve.c=Ve.create=aD();Ve.r=Ve.replace=t0();Ve.t=Ve.list=ll();Ve.u=Ve.update=yD();Ve.x=Ve.extract=AC();Ve.Pack=Kc();Ve.Unpack=b0();Ve.Parse=cl();Ve.ReadEntry=Fc();Ve.WriteEntry=km();Ve.Header=Rs();Ve.Pax=Ic();Ve.types=hm()});var IC=A((OY,PC)=>{function Xt(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))}PC.exports=Xt;Xt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Xt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Xt.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 n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Xt.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)};Xt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Xt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Xt.prototype.start=Xt.prototype.try;Xt.prototype.errors=function(){return this._errors};Xt.prototype.attempts=function(){return this._attempts};Xt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var LC=A(yi=>{var _j=IC();yi.operation=function(t){var e=yi.timeouts(t);return new _j(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};yi.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 n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};yi.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};yi.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(u){var c=yi.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 NC=A((PY,BC)=>{BC.exports=LC()});var jC=A((IY,MC)=>{var bj=NC();function vj(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=bj.operation(s);function a(l){i(l||new Error("Aborted"))}function u(l,h){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,h):i(o.mainError())}function c(l){var h;try{h=t(a,l)}catch(f){u(f,l);return}Promise.resolve(h).then(n).catch(function(d){u(d,l)})}o.attempt(c)}return new Promise(r)}MC.exports=vj});var r2=A(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});function E9(t){return t&&t.__esModule?t:{default:t}}var XC=Object.defineProperty,ZC=Object.getOwnPropertySymbols,w9=Object.prototype.hasOwnProperty,x9=Object.prototype.propertyIsEnumerable,JC=(t,e,r)=>e in t?XC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S9=(t,e)=>{for(var r in e||(e={}))w9.call(e,r)&&JC(t,r,e[r]);if(ZC)for(var r of ZC(e))x9.call(e,r)&&JC(t,r,e[r]);return t},A9=(t,e)=>{for(var r in e)XC(t,r,{get:e[r],enumerable:!0})},D9=(t,e,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())}),QC={};A9(QC,{configDir:()=>t2,darwinConfig:()=>N0,getPathForPlatform:()=>j0,getPlatform:()=>B0,linuxConfig:()=>Fl,winConfig:()=>M0});var C9=require("fs/promises"),R9=require("path"),e2=E9(R9);function B0(){return process.platform}function Fl(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return e2.default.join(process.env.HOME,".config")}function N0(){if(process.env.HOME!==void 0)return e2.default.join(process.env.HOME,"/Library/Application Support")}function M0(){return process.env.APPDATA}function j0({platform:t}){switch(t){case"linux":return Fl();case"darwin":return N0();case"win32":return M0();default:return Fl()}}function t2(){return D9(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:B0(),n=j0({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield C9.stat.call(void 0,n),n}catch{return}}})}Pr.__spreadValues=S9;Pr.getPlatform=B0;Pr.linuxConfig=Fl;Pr.darwinConfig=N0;Pr.winConfig=M0;Pr.getPathForPlatform=j0;Pr.configDir=t2;Pr.config_dir_exports=QC});var n2=A(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});var k9=r2();q0.configDir=k9.configDir});var an=A((on,Pl)=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});var u2=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function M9(t){return u2.includes(t)}var j9=["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",...u2];function q9(t){return j9.includes(t)}var U9=["null","undefined","string","number","bigint","boolean","symbol"];function H9(t){return U9.includes(t)}function no(t){return e=>typeof e===t}var{toString:c2}=Object.prototype,va=t=>{let e=c2.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&O.domElement(t))return"HTMLElement";if(q9(e))return e},Fe=t=>e=>va(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=va(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=no("undefined");O.string=no("string");var $9=no("number");O.number=t=>$9(t)&&!O.nan(t);O.bigint=no("bigint");O.function_=no("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=no("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,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};O.blob=t=>Fe("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=>Fe("Promise")(t);var G9=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)||G9(t);O.generatorFunction=Fe("GeneratorFunction");O.asyncGeneratorFunction=t=>va(t)==="AsyncGeneratorFunction";O.asyncFunction=t=>va(t)==="AsyncFunction";O.boundFunction=t=>O.function_(t)&&!t.hasOwnProperty("prototype");O.regExp=Fe("RegExp");O.date=Fe("Date");O.error=Fe("Error");O.map=t=>Fe("Map")(t);O.set=t=>Fe("Set")(t);O.weakMap=t=>Fe("WeakMap")(t);O.weakSet=t=>Fe("WeakSet")(t);O.int8Array=Fe("Int8Array");O.uint8Array=Fe("Uint8Array");O.uint8ClampedArray=Fe("Uint8ClampedArray");O.int16Array=Fe("Int16Array");O.uint16Array=Fe("Uint16Array");O.int32Array=Fe("Int32Array");O.uint32Array=Fe("Uint32Array");O.float32Array=Fe("Float32Array");O.float64Array=Fe("Float64Array");O.bigInt64Array=Fe("BigInt64Array");O.bigUint64Array=Fe("BigUint64Array");O.arrayBuffer=Fe("ArrayBuffer");O.sharedArrayBuffer=Fe("SharedArrayBuffer");O.dataView=Fe("DataView");O.enumCase=(t,e)=>Object.values(e).includes(t);O.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;O.urlInstance=t=>Fe("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)||H9(typeof t);O.integer=t=>Number.isInteger(t);O.safeInteger=t=>Number.isSafeInteger(t);O.plainObject=t=>{if(c2.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};O.typedArray=t=>M9(va(t));var z9=t=>O.safeInteger(t)&&t>=0;O.arrayLike=t=>!O.nullOrUndefined(t)&&!O.function_(t)&&z9(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 W9=1,V9=["innerHTML","ownerDocument","style","attributes","nodeValue"];O.domElement=t=>O.object(t)&&t.nodeType===W9&&O.string(t.nodeName)&&!O.plainObject(t)&&V9.every(e=>e in t);O.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};O.nodeStream=t=>O.object(t)&&O.function_(t.pipe)&&!O.observable(t);O.infinite=t=>t===1/0||t===-1/0;var l2=t=>e=>O.integer(e)&&Math.abs(e%2)===t;O.evenInteger=l2(0);O.oddInteger=l2(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 Y9=t=>O.string(t)&&!/\S/.test(t);O.emptyStringOrWhitespace=t=>O.emptyString(t)||Y9(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=>Fe("FormData")(t);O.urlSearchParams=t=>Fe("URLSearchParams")(t);var h2=(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(n=>h2(Array.prototype.some,n,e));O.all=(t,...e)=>h2(Array.prototype.every,t,e);var se=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`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}.`)}};on.assert={undefined:t=>se(O.undefined(t),"undefined",t),string:t=>se(O.string(t),"string",t),number:t=>se(O.number(t),"number",t),bigint:t=>se(O.bigint(t),"bigint",t),function_:t=>se(O.function_(t),"Function",t),null_:t=>se(O.null_(t),"null",t),class_:t=>se(O.class_(t),"Class",t),boolean:t=>se(O.boolean(t),"boolean",t),symbol:t=>se(O.symbol(t),"symbol",t),numericString:t=>se(O.numericString(t),"string with a number",t),array:(t,e)=>{se(O.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>se(O.buffer(t),"Buffer",t),blob:t=>se(O.blob(t),"Blob",t),nullOrUndefined:t=>se(O.nullOrUndefined(t),"null or undefined",t),object:t=>se(O.object(t),"Object",t),iterable:t=>se(O.iterable(t),"Iterable",t),asyncIterable:t=>se(O.asyncIterable(t),"AsyncIterable",t),generator:t=>se(O.generator(t),"Generator",t),asyncGenerator:t=>se(O.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>se(O.nativePromise(t),"native Promise",t),promise:t=>se(O.promise(t),"Promise",t),generatorFunction:t=>se(O.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>se(O.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>se(O.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>se(O.boundFunction(t),"Function",t),regExp:t=>se(O.regExp(t),"RegExp",t),date:t=>se(O.date(t),"Date",t),error:t=>se(O.error(t),"Error",t),map:t=>se(O.map(t),"Map",t),set:t=>se(O.set(t),"Set",t),weakMap:t=>se(O.weakMap(t),"WeakMap",t),weakSet:t=>se(O.weakSet(t),"WeakSet",t),int8Array:t=>se(O.int8Array(t),"Int8Array",t),uint8Array:t=>se(O.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>se(O.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>se(O.int16Array(t),"Int16Array",t),uint16Array:t=>se(O.uint16Array(t),"Uint16Array",t),int32Array:t=>se(O.int32Array(t),"Int32Array",t),uint32Array:t=>se(O.uint32Array(t),"Uint32Array",t),float32Array:t=>se(O.float32Array(t),"Float32Array",t),float64Array:t=>se(O.float64Array(t),"Float64Array",t),bigInt64Array:t=>se(O.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>se(O.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>se(O.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>se(O.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>se(O.dataView(t),"DataView",t),enumCase:(t,e)=>se(O.enumCase(t,e),"EnumCase",t),urlInstance:t=>se(O.urlInstance(t),"URL",t),urlString:t=>se(O.urlString(t),"string with a URL",t),truthy:t=>se(O.truthy(t),"truthy",t),falsy:t=>se(O.falsy(t),"falsy",t),nan:t=>se(O.nan(t),"NaN",t),primitive:t=>se(O.primitive(t),"primitive",t),integer:t=>se(O.integer(t),"integer",t),safeInteger:t=>se(O.safeInteger(t),"integer",t),plainObject:t=>se(O.plainObject(t),"plain object",t),typedArray:t=>se(O.typedArray(t),"TypedArray",t),arrayLike:t=>se(O.arrayLike(t),"array-like",t),domElement:t=>se(O.domElement(t),"HTMLElement",t),observable:t=>se(O.observable(t),"Observable",t),nodeStream:t=>se(O.nodeStream(t),"Node.js Stream",t),infinite:t=>se(O.infinite(t),"infinite number",t),emptyArray:t=>se(O.emptyArray(t),"empty array",t),nonEmptyArray:t=>se(O.nonEmptyArray(t),"non-empty array",t),emptyString:t=>se(O.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>se(O.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>se(O.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>se(O.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>se(O.emptyObject(t),"empty object",t),nonEmptyObject:t=>se(O.nonEmptyObject(t),"non-empty object",t),emptySet:t=>se(O.emptySet(t),"empty set",t),nonEmptySet:t=>se(O.nonEmptySet(t),"non-empty set",t),emptyMap:t=>se(O.emptyMap(t),"empty map",t),nonEmptyMap:t=>se(O.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>se(O.propertyKey(t),"PropertyKey",t),formData:t=>se(O.formData(t),"FormData",t),urlSearchParams:t=>se(O.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>se(O.evenInteger(t),"even integer",t),oddInteger:t=>se(O.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>se(O.directInstanceOf(t,e),"T",t),inRange:(t,e)=>se(O.inRange(t,e),"in range",t),any:(t,...e)=>se(O.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>se(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(on.assert,{class:{value:on.assert.class_},function:{value:on.assert.function_},null:{value:on.assert.null_}});on.default=O;Pl.exports=O;Pl.exports.default=O;Pl.exports.assert=on.assert});var f2=A((pK,$0)=>{"use strict";var Il=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},io=class{static fn(e){return(...r)=>new io((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(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(i,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 Il(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(io.prototype,Promise.prototype);$0.exports=io;$0.exports.CancelError=Il});var d2=A((z0,W0)=>{"use strict";Object.defineProperty(z0,"__esModule",{value:!0});function K9(t){return t.encrypted}var G0=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),K9(t)&&i&&(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)};z0.default=G0;W0.exports=G0;W0.exports.default=G0});var p2=A((Y0,K0)=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});var Z9=d2(),J9=require("util"),X9=Number(process.versions.node.split(".")[0]),V0=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 n=()=>{e.abort=Date.now(),(!e.response||X9>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,J9.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),Z9.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?i(t.socket):t.prependOnceListener("socket",i);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",n)}),e};Y0.default=V0;K0.exports=V0;K0.exports.default=V0});var E2=A((mK,X0)=>{"use strict";var{V4MAPPED:Q9,ADDRCONFIG:eq,ALL:v2,promises:{Resolver:m2},lookup:tq}=require("dns"),{promisify:Z0}=require("util"),rq=require("os"),so=Symbol("cacheableLookupCreateConnection"),J0=Symbol("cacheableLookupInstance"),y2=Symbol("expires"),nq=typeof v2=="number",g2=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},iq=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},_2=()=>{let t=!1,e=!1;for(let r of Object.values(rq.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},sq=t=>Symbol.iterator in t,b2={ttl:!0},oq={all:!0},Ll=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new m2,lookup:o=tq}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=Z0(o),this._resolver instanceof m2?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Z0(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Z0(this._resolver.resolve6.bind(this._resolver))),this._iface=_2(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*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,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&Q9&&(nq&&r.hints&v2||i.length===0)?iq(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&eq){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[n,i]=await Promise.all([this._resolve4(e,b2),this._resolve6(e,b2)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of n)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of i)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],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,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[y2]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}sq(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,oq);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 n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[y2];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(g2(e),so in e)throw new Error("CacheableLookup has been already installed");e[so]=e.createConnection,e[J0]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[so](r,n))}uninstall(e){if(g2(e),e[so]){if(e[J0]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[so],delete e[so],delete e[J0]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=_2(),(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()}};X0.exports=Ll;X0.exports.default=Ll});var S2=A((yK,x2)=>{"use strict";var aq="text/plain",uq="us-ascii",w2=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),cq=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.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(p=>p.trim());return f==="charset"&&(d=d.toLowerCase(),d===uq)?"":`${f}${d?`=${d}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==aq)&&l.unshift(u),`data:${l.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},lq=(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 cq(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 i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];w2(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])w2(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};x2.exports=lq});var C2=A((gK,D2)=>{D2.exports=A2;function A2(t,e){if(t&&e)return A2(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var ey=A((_K,Q0)=>{var R2=C2();Q0.exports=R2(Bl);Q0.exports.strict=R2(k2);Bl.proto=Bl(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Bl(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return k2(this)},configurable:!0})});function Bl(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function k2(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 F2=A((bK,O2)=>{var hq=ey(),fq=function(){},dq=function(t){return t.setHeader&&typeof t.abort=="function"},pq=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},T2=function(t,e,r){if(typeof e=="function")return T2(t,null,e);e||(e={}),r=hq(r||fq);var n=t._writableState,i=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(m){r.call(t,m?new Error("exited with error code: "+m):null)},f=function(m){r.call(t,m)},d=function(){process.nextTick(p)},p=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},y=function(){t.req.on("finish",c)};return dq(t)?(t.on("complete",c),t.on("abort",d),t.req?y():t.on("request",y)):o&&!n&&(t.on("end",u),t.on("close",u)),pq(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)}};O2.exports=T2});var L2=A((vK,I2)=>{var mq=ey(),yq=F2(),ty=require("fs"),Ea=function(){},gq=/^v?\.0/.test(process.version),Nl=function(t){return typeof t=="function"},_q=function(t){return!gq||!ty?!1:(t instanceof(ty.ReadStream||Ea)||t instanceof(ty.WriteStream||Ea))&&Nl(t.close)},bq=function(t){return t.setHeader&&Nl(t.abort)},vq=function(t,e,r,n){n=mq(n);var i=!1;t.on("close",function(){i=!0}),yq(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,_q(t))return t.close(Ea);if(bq(t))return t.abort();if(Nl(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},P2=function(t){t()},Eq=function(t,e){return t.pipe(e)},wq=function(){var t=Array.prototype.slice.call(arguments),e=Nl(t[t.length-1]||Ea)&&t.pop()||Ea;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return vq(i,o,a,function(u){r||(r=u),u&&n.forEach(P2),!o&&(n.forEach(P2),e(r))})});return t.reduce(Eq)};I2.exports=wq});var N2=A((EK,B2)=>{"use strict";var{PassThrough:xq}=require("stream");B2.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new xq({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var M2=A((wK,oo)=>{"use strict";var{constants:Sq}=require("buffer"),Aq=L2(),Dq=N2(),Ml=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function jl(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=Sq.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=Aq(t,Dq(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new Ml)})}),n.getBufferedValue()}oo.exports=jl;oo.exports.default=jl;oo.exports.buffer=(t,e)=>jl(t,{...e,encoding:"buffer"});oo.exports.array=(t,e)=>jl(t,{...e,array:!0});oo.exports.MaxBufferError=Ml});var q2=A((SK,j2)=>{"use strict";var Cq=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),Rq=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),kq=new Set([500,502,503,504]),Tq={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Oq={"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 Fq(t){return t?kq.has(t.status):!0}function ry(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function Pq(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}j2.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,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=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=ry(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=ry(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":Pq(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())&&Rq.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||Cq.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=ry(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 n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)Tq[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.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 n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+ki(this._rescc["stale-if-error"]),n=e+ki(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*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 i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.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()&&Fq(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!Oq[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var ql=A((AK,U2)=>{"use strict";U2.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var $2=A((DK,H2)=>{"use strict";var Iq=require("stream").Readable,Lq=ql(),ny=class extends Iq{constructor(e,r,n,i){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(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=Lq(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};H2.exports=ny});var z2=A((CK,G2)=>{"use strict";var Bq=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];G2.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(Bq));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var V2=A((RK,W2)=>{"use strict";var Nq=require("stream").PassThrough,Mq=z2(),jq=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new Nq;return Mq(t,e),t.pipe(e)};W2.exports=jq});var Y2=A(iy=>{iy.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="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};iy.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 X2=A((TK,J2)=>{"use strict";var qq=require("events"),K2=Y2(),Uq=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},Z2=["sqlite","postgres","mysql","mongo","redis","tiered"],sy=class extends qq{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:K2.stringify,deserialize:K2.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=Uq(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 i=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=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Z2.includes(this.opts.store.opts.dialect)||Z2.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:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.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(()=>i?n.getMany(s):n.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(i){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,n){let i=this._getKeyPrefix(e);typeof n=="undefined"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n: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(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};J2.exports=sy});var tR=A((OK,eR)=>{"use strict";var Hq=require("events"),Ul=require("url"),$q=S2(),Gq=M2(),oy=q2(),Q2=$2(),zq=ql(),Wq=V2(),Vq=X2(),hr=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new Vq({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=ay(Ul.parse(r)),r={};else if(r instanceof Ul.URL)i=ay(Ul.parse(r.toString())),r={};else{let[h,...f]=(r.path||"").split("?"),d=f.length>0?`?${f.join("?")}`:"";i=ay({...r,pathname:h,search:d})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...Yq(i)},r.headers=zq(r.headers);let s=new Hq,o=$q(Ul.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=h=>{c=!0;let f=!1,d,p=new Promise(m=>{d=()=>{f||(f=!0,m())}}),y=m=>{if(u&&!h.forceRefresh){m.status=m.statusCode;let T=oy.fromObject(u.cachePolicy).revalidatedPolicy(h,m);if(!T.modified){let F=T.policy.responseHeaders();m=new Q2(u.statusCode,F,u.body,u.url),m.cachePolicy=T.policy,m.fromCache=!0}}m.fromCache||(m.cachePolicy=new oy(h,m,h),m.fromCache=!1);let w;h.cache&&m.cachePolicy.storable()?(w=Wq(m),(async()=>{try{let T=Gq.buffer(m);if(await Promise.race([p,new Promise(M=>m.once("end",M))]),f)return;let F=await T,I={cachePolicy:m.cachePolicy.toObject(),url:m.url,statusCode:m.fromCache?u.statusCode:m.statusCode,body:F},R=h.strictTtl?m.cachePolicy.timeToLive():void 0;h.maxTtl&&(R=R?Math.min(R,h.maxTtl):h.maxTtl),await this.cache.set(a,I,R)}catch(T){s.emit("error",new hr.CacheError(T))}})()):h.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(T){s.emit("error",new hr.CacheError(T))}})(),s.emit("response",w||m),typeof n=="function"&&n(w||m)};try{let m=e(h,y);m.once("error",d),m.once("abort",d),s.emit("request",m)}catch(m){s.emit("error",new hr.RequestError(m))}};return(async()=>{let h=async d=>{await Promise.resolve();let p=d.cache?await this.cache.get(a):void 0;if(typeof p=="undefined")return l(d);let y=oy.fromObject(p.cachePolicy);if(y.satisfiesWithoutRevalidation(d)&&!d.forceRefresh){let m=y.responseHeaders(),w=new Q2(p.statusCode,m,p.body,p.url);w.cachePolicy=y,w.fromCache=!0,s.emit("response",w),typeof n=="function"&&n(w)}else u=p,d.headers=y.revalidationHeaders(d),l(d)},f=d=>s.emit("error",new hr.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 hr.CacheError(d))}})(),s}}};function Yq(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function ay(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}hr.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};hr.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};eR.exports=hr});var nR=A((IK,rR)=>{"use strict";var Kq=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];rR.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(Kq)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),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 sR=A((LK,iR)=>{"use strict";var{Transform:Zq,PassThrough:Jq}=require("stream"),uy=require("zlib"),Xq=nR();iR.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof uy.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new Zq({transform(a,u,c){n=!1,c(null,a)},flush(a){a()}}),s=new Jq({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?uy.createBrotliDecompress():uy.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),Xq(t,s),t.pipe(i).pipe(o).pipe(s),s}});var ly=A((BK,oR)=>{"use strict";var cy=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[n,i]of this.oldCache.entries())this.onEviction(n,i);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)}};oR.exports=cy});var fy=A((NK,lR)=>{"use strict";var Qq=require("events"),eU=require("tls"),tU=require("http2"),rU=ly(),_t=Symbol("currentStreamsCount"),aR=Symbol("request"),tr=Symbol("cachedOriginSet"),ao=Symbol("gracefullyClosing"),nU=["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"],iU=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},sU=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,hy=(t,e)=>{for(let r of t)r[tr].length<e[tr].length&&r[tr].every(n=>e[tr].includes(n))&&r[_t]+e[_t]<=e.remoteSettings.maxConcurrentStreams&&cR(r)},oU=(t,e)=>{for(let r of t)e[tr].length<r[tr].length&&e[tr].every(n=>r[tr].includes(n))&&e[_t]+r[_t]<=r.remoteSettings.maxConcurrentStreams&&cR(e)},uR=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Ir.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},cR=t=>{t[ao]=!0,t[_t]===0&&t.close()},Ir=class extends Qq{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new rU({maxSize:i})}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 n of nU)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Ir.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:l}of n)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 p of l){let y=p.remoteSettings.maxConcurrentStreams;if(y<h)break;if(p[tr].includes(a)){let m=p[_t];if(m>=y||p[ao]||p.destroyed)continue;d||(h=y),m>f&&(d=p,f=m)}}if(d){if(n.length!==1){for(let{reject:p}of n){let y=new Error(`Expected the length of listeners to be 1, got ${n.length}.
26
- Please report this to https://github.com/szmarczak/http2-wrapper/`);p(y)}return}n[0].resolve(d);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),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=tU.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});f[_t]=0,f[ao]=!1;let d=()=>f[_t]<f.remoteSettings.maxConcurrentStreams,p=!0;f.socket.once("session",m=>{this.tlsSessionCache.set(l,m)}),f.once("error",m=>{for(let{reject:w}of n)w(m);this.tlsSessionCache.delete(l)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(h){p&&this._freeSessionsCount--,this._sessionsCount--;let m=this.sessions[o];m.splice(m.indexOf(f),1),m.length===0&&delete this.sessions[o]}else{let m=new Error("Session closed without receiving a SETTINGS frame");m.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:w}of n)w(m);u()}this._tryToCreateNewSession(o,a)});let y=()=>{if(!(!(o in this.queue)||!d())){for(let m of f[tr])if(m in this.queue[o]){let{listeners:w}=this.queue[o][m];for(;w.length!==0&&d();)w.shift().resolve(f);let T=this.queue[o];if(T[m].listeners.length===0&&(delete T[m],Object.keys(T).length===0)){delete this.queue[o];break}if(!d())break}}};f.on("origin",()=>{f[tr]=f.originSet,d()&&(y(),hy(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(f.ref(),f.unref(),this._sessionsCount++,c.destroyed){let m=new Error("Agent has been destroyed");for(let w of n)w.reject(m);f.destroy();return}f[tr]=f.originSet;{let m=this.sessions;if(o in m){let w=m[o];w.splice(iU(w,f,sU),0,f)}else m[o]=[f]}this._freeSessionsCount+=1,h=!0,this.emit("session",f),y(),u(),f[_t]===0&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),f.on("remoteSettings",()=>{y(),hy(this.sessions[o],f)})}),f[aR]=f.request,f.request=(m,w)=>{if(f[ao])throw new Error("The session is gracefully closing. No new streams are allowed.");let T=f[aR](m,w);return f.ref(),++f[_t],f[_t]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,T.once("close",()=>{if(p=d(),--f[_t],!f.destroyed&&!f.closed&&(oU(this.sessions[o],f),d()&&!f.closed)){p||(this._freeSessionsCount++,p=!0);let F=f[_t]===0;F&&f.unref(),F&&(this._freeSessionsCount>this.maxFreeSessions||f[ao])?f.close():(hy(this.sessions[o],f),y())}}),T}}catch(f){for(let d of n)d.reject(f);u()}};c.listeners=n,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(u){o(u)}}}])})}createConnection(e,r){return Ir.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=i),eU.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[_t]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return uR({agent:this,isFree:!0})}get busySessions(){return uR({agent:this,isFree:!1})}};Ir.kCurrentStreamsCount=_t;Ir.kGracefullyClosing=ao;lR.exports={Agent:Ir,globalAgent:new Ir}});var py=A((MK,hR)=>{"use strict";var{Readable:aU}=require("stream"),dy=class extends aU{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()}};hR.exports=dy});var my=A((jK,fR)=>{"use strict";fR.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 pR=A((qK,dR)=>{"use strict";dR.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var yR=A((UK,mR)=>{"use strict";mR.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var _R=A(($K,gR)=>{"use strict";var uo=(t,e,r)=>{gR.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};uo(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});uo(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);uo(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);uo(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);uo(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);uo(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var vy=A((GK,AR)=>{"use strict";var uU=require("http2"),{Writable:cU}=require("stream"),{Agent:bR,globalAgent:lU}=fy(),hU=py(),fU=my(),dU=pR(),pU=yR(),{ERR_INVALID_ARG_TYPE:yy,ERR_INVALID_PROTOCOL:mU,ERR_HTTP_HEADERS_SENT:vR,ERR_INVALID_HTTP_TOKEN:yU,ERR_HTTP_INVALID_HEADER_VALUE:gU,ERR_INVALID_CHAR:_U}=_R(),{HTTP2_HEADER_STATUS:ER,HTTP2_HEADER_METHOD:wR,HTTP2_HEADER_PATH:xR,HTTP2_METHOD_CONNECT:bU}=uU.constants,pt=Symbol("headers"),gy=Symbol("origin"),_y=Symbol("session"),SR=Symbol("options"),Hl=Symbol("flushedHeaders"),wa=Symbol("jobs"),vU=/^[\^`\-\w!#$%&*+.|~]+$/,EU=/[^\t\u0020-\u007E\u0080-\u00FF]/,by=class extends cU{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=fU(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[_y]=r.h2session;else if(r.agent===!1)this.agent=new bR({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new bR({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=lU;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new yy("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new mU(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[pt]=Object.create(null),this[wa]=[],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[pt])&&(this[pt].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[SR]=r,s===443?(this[gy]=`https://${o}`,":authority"in this[pt]||(this[pt][":authority"]=o)):(this[gy]=`https://${o}:${s}`,":authority"in this[pt]||(this[pt][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[Hl]=!1}get method(){return this[pt][wR]}set method(e){e&&(this[pt][wR]=e.toUpperCase())}get path(){return this[pt][xR]}set path(e){e&&(this[pt][xR]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[wa].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[wa].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[Hl]||this.destroyed)return;this[Hl]=!0;let e=this.method===bU,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||dU(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,u)=>{let c=new hU(this.socket,n.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[ER],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,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",l=>{!c._dumped&&!c.push(l)&&n.pause()}),n.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[ER]}))),n.once("trailers",i((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[wa])o();this.emit("socket",this.socket)};if(this[_y])try{r(this[_y].request(this[pt]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[gy],this[SR],this[pt]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new yy("name","string",e);return this[pt][e.toLowerCase()]}get headersSent(){return this[Hl]}removeHeader(e){if(typeof e!="string")throw new yy("name","string",e);if(this.headersSent)throw new vR("remove");delete this[pt][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new vR("set");if(typeof e!="string"||!vU.test(e)&&!pU(e))throw new yU("Header name",e);if(typeof r=="undefined")throw new gU(r,e);if(EU.test(r))throw new _U("header content",e);this[pt][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[wa].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};AR.exports=by});var CR=A((zK,DR)=>{"use strict";var wU=require("tls");DR.exports=(t={},e=wU.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",a)}catch(c){n(c)}})()})});var kR=A((WK,RR)=>{"use strict";var xU=require("net");RR.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]),xU.isIP(e)?"":e}});var FR=A((VK,wy)=>{"use strict";var TR=require("http"),Ey=require("https"),SU=CR(),AU=ly(),DU=vy(),CU=kR(),RU=my(),$l=new AU({maxSize:100}),xa=new Map,OR=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},kU=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!$l.has(e)){if(xa.has(e))return(await xa.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=SU(t);xa.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if($l.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=Ey,u=Ey.Agent.prototype.createConnection;n?n.createConnection===u?OR(n,s,t):s.destroy():a.createConnection===u?OR(a,s,t):s.destroy()}return xa.delete(e),o}catch(s){throw xa.delete(e),s}}return $l.get(e)};wy.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=RU(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 n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||CU(e),e.port=e.port||(n?443:80),e._defaultAgent=n?Ey.globalAgent:TR.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await kU(e)==="h2"?(i&&(e.agent=i.http2),new DU(e,r)):TR.request(e,r)};wy.exports.protocolCache=$l});var IR=A((YK,PR)=>{"use strict";var TU=require("http2"),OU=fy(),xy=vy(),FU=py(),PU=FR(),IU=(t,e,r)=>new xy(t,e,r),LU=(t,e,r)=>{let n=new xy(t,e,r);return n.end(),n};PR.exports={...TU,ClientRequest:xy,IncomingMessage:FU,...OU,request:IU,get:LU,auto:PU}});var Ay=A(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var LR=an();Sy.default=t=>LR.default.nodeStream(t)&&LR.default.function_(t.getBoundary)});var jR=A(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var NR=require("fs"),MR=require("util"),BR=an(),BU=Ay(),NU=MR.promisify(NR.stat);Dy.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(BR.default.string(t))return Buffer.byteLength(t);if(BR.default.buffer(t))return t.length;if(BU.default(t))return MR.promisify(t.getLength.bind(t))();if(t instanceof NR.ReadStream){let{size:r}=await NU(t.path);return r===0?void 0:r}}});var Ry=A(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});function MU(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}Cy.default=MU});var qR=A(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var HR=A(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.TimeoutError=void 0;var jU=require("net"),qU=qR(),UR=Symbol("reentry"),UU=()=>{},Gl=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Sa.TimeoutError=Gl;Sa.default=(t,e,r)=>{if(UR in t)return UU;t[UR]=!0;let n=[],{once:i,unhandleAll:s}=qU.default(),o=(h,f,d)=>{var p;let y=setTimeout(f,h,h,d);(p=y.unref)===null||p===void 0||p.call(y);let m=()=>{clearTimeout(y)};return n.push(m),m},{host:a,hostname:u}=r,c=(h,f)=>{t.destroy(new Gl(h,f))},l=()=>{for(let h of n)h();s()};if(t.once("error",h=>{if(l(),t.listenerCount("error")===0)throw h}),t.once("close",l),i(t,"response",h=>{i(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),n.push(()=>{t.removeListener("timeout",h)})}return i(t,"socket",h=>{var f;let{socketPath:d}=t;if(h.connecting){let p=!!(d!=null?d:jU.isIP((f=u!=null?u:a)!==null&&f!==void 0?f:"")!==0);if(typeof e.lookup!="undefined"&&!p&&typeof h.address().address=="undefined"){let y=o(e.lookup,c,"lookup");i(h,"lookup",y)}if(typeof e.connect!="undefined"){let y=()=>o(e.connect,c,"connect");p?i(h,"connect",y()):i(h,"lookup",m=>{m===null&&i(h,"connect",y())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&i(h,"connect",()=>{let y=o(e.secureConnect,c,"secureConnect");i(h,"secureConnect",y)})}if(typeof e.send!="undefined"){let p=()=>o(e.send,c,"send");h.connecting?i(h,"connect",()=>{i(t,"upload-complete",p())}):i(t,"upload-complete",p())}}),typeof e.response!="undefined"&&i(t,"upload-complete",()=>{let h=o(e.response,c,"response");i(t,"response",h)}),l}});var GR=A(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var $R=an();Ty.default=t=>{t=t;let e={protocol:t.protocol,hostname:$R.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 $R.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 zR=A(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var HU=require("url"),$U=["protocol","host","hostname","port","pathname","search"];Oy.default=(t,e)=>{var r,n;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}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new HU.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 $U)e[s]&&(i[s]=e[s].toString());return i}});var WR=A(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var Fy=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)}};Py.default=Fy});var Ly=A(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var GU=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Iy.default=GU});var YR=A(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.dnsLookupIpVersionToFamily=Ti.isDnsLookupIpVersion=void 0;var VR={auto:0,ipv4:4,ipv6:6};Ti.isDnsLookupIpVersion=t=>t in VR;Ti.dnsLookupIpVersionToFamily=t=>{if(Ti.isDnsLookupIpVersion(t))return VR[t];throw new Error("Invalid DNS lookup IP version")}});var By=A(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.isResponseOk=void 0;zl.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var ZR=A(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var KR=new Set;Ny.default=t=>{KR.has(t)||(KR.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var JR=A(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var Ne=an(),zU=(t,e)=>{if(Ne.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Ne.assert.any([Ne.default.string,Ne.default.undefined],t.encoding),Ne.assert.any([Ne.default.boolean,Ne.default.undefined],t.resolveBodyOnly),Ne.assert.any([Ne.default.boolean,Ne.default.undefined],t.methodRewriting),Ne.assert.any([Ne.default.boolean,Ne.default.undefined],t.isStream),Ne.assert.any([Ne.default.string,Ne.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Ne.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):Ne.default.number(r)&&(t.retry.limit=r),Ne.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(Ne.default.number))),Ne.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!Ne.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Ne.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Ne.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Ne.default.function_(n.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};My.default=zU});var XR=A(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.retryAfterStatusCodes=void 0;Aa.retryAfterStatusCodes=new Set([413,429,503]);var WU=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Aa.default=WU});var Ra=A(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.UnsupportedProtocolError=Te.ReadError=Te.TimeoutError=Te.UploadError=Te.CacheError=Te.HTTPError=Te.MaxRedirectsError=Te.RequestError=Te.setNonEnumerableProperties=Te.knownHookEvents=Te.withoutBody=Te.kIsNormalizedAlready=void 0;var QR=require("util"),ek=require("stream"),VU=require("fs"),jn=require("url"),tk=require("http"),jy=require("http"),YU=require("https"),KU=p2(),ZU=E2(),rk=tR(),JU=sR(),XU=IR(),QU=ql(),K=an(),e7=jR(),nk=Ay(),t7=Ry(),ik=HR(),r7=GR(),sk=zR(),n7=WR(),i7=Ly(),ok=YR(),s7=By(),qn=ZR(),o7=JR(),a7=XR(),qy,it=Symbol("request"),Yl=Symbol("response"),co=Symbol("responseSize"),lo=Symbol("downloadedSize"),ho=Symbol("bodySize"),fo=Symbol("uploadedSize"),Wl=Symbol("serverResponsesPiped"),ak=Symbol("unproxyEvents"),uk=Symbol("isFromCache"),Uy=Symbol("cancelTimeouts"),ck=Symbol("startedReading"),po=Symbol("stopReading"),Vl=Symbol("triggerRead"),Un=Symbol("body"),Da=Symbol("jobs"),lk=Symbol("originalResponse"),hk=Symbol("retryTimeout");Te.kIsNormalizedAlready=Symbol("isNormalizedAlready");var u7=K.default.string(process.versions.brotli);Te.withoutBody=new Set(["GET","HEAD"]);Te.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function c7(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 l7(t){return K.default.object(t)&&!("statusCode"in t)}var Hy=new n7.default,h7=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),f7=new Set([300,301,302,303,304,307,308]),d7=["context","body","json","form"];Te.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(n)for(let i of d7)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var Ue=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof th?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[Yl]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),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(`
23
+ `);return m?(n.originalMessage=n.message,n.message=T):n=new Error(T),n.shortMessage=w,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=f,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=c,n.killed=l&&!u,n};rS.exports=FM});var sS=A((EV,Tp)=>{"use strict";var fc=["stdin","stdout","stderr"],PM=t=>fc.some(e=>t[e]!==void 0),iS=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return fc.map(n=>t[n]);if(PM(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${fc.map(n=>`\`${n}\``).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,fc.length);return Array.from({length:r},(n,i)=>e[i])};Tp.exports=iS;Tp.exports.node=t=>{let e=iS(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var aS=A((wV,oS)=>{"use strict";var IM=require("os"),LM=Zd(),BM=1e3*5,NM=(t,e="SIGTERM",r={})=>{let n=t(e);return MM(t,e,r,n),n},MM=(t,e,r,n)=>{if(!jM(e,r,n))return;let i=UM(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},jM=(t,{forceKillAfterTimeout:e},r)=>qM(t)&&e!==!1&&r,qM=t=>t===IM.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",UM=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return BM;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},HM=(t,e)=>{t.kill()&&(e.isCanceled=!0)},$M=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},GM=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{$M(t,r,u)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},zM=({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})`)},WM=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=LM(()=>{t.kill()});return n.finally(()=>{i()})};oS.exports={spawnedKill:NM,spawnedCancel:HM,setupTimeout:GM,validateTimeout:zM,setExitHandler:WM}});var cS=A((xV,uS)=>{"use strict";var Er=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Er.writable=t=>Er(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Er.readable=t=>Er(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Er.duplex=t=>Er.writable(t)&&Er.readable(t);Er.transform=t=>Er.duplex(t)&&typeof t._transform=="function";uS.exports=Er});var hS=A((SV,lS)=>{"use strict";var{PassThrough:VM}=require("stream");lS.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new VM({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var fS=A((AV,Yo)=>{"use strict";var{constants:YM}=require("buffer"),KM=require("stream"),{promisify:ZM}=require("util"),JM=hS(),XM=ZM(KM.pipeline),dc=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Op(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=JM(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=YM.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await XM(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new dc)})}),n.getBufferedValue()}Yo.exports=Op;Yo.exports.buffer=(t,e)=>Op(t,{...e,encoding:"buffer"});Yo.exports.array=(t,e)=>Op(t,{...e,array:!0});Yo.exports.MaxBufferError=dc});var pS=A((DV,dS)=>{"use strict";var{PassThrough:QM}=require("stream");dS.exports=function(){var t=[],e=new QM({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),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",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var _S=A((CV,gS)=>{"use strict";var yS=cS(),mS=fS(),e8=pS(),t8=(t,e)=>{e===void 0||t.stdin===void 0||(yS(e)?e.pipe(t.stdin):t.stdin.end(e))},r8=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=e8();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Fp=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Pp=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?mS(t,{encoding:e,maxBuffer:n}):mS.buffer(t,{maxBuffer:n})},n8=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=Pp(t,{encoding:n,buffer:i,maxBuffer:s}),u=Pp(e,{encoding:n,buffer:i,maxBuffer:s}),c=Pp(r,{encoding:n,buffer:i,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},Fp(t,a),Fp(e,u),Fp(r,c)])}},i8=({input:t})=>{if(yS(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};gS.exports={handleInput:t8,makeAllStream:r8,getSpawnedResult:n8,validateInputSync:i8}});var vS=A((RV,bS)=>{"use strict";var s8=(async()=>{})().constructor.prototype,o8=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(s8,t)]),a8=(t,e)=>{for(let[r,n]of o8){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},u8=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});bS.exports={mergePromise:a8,getSpawnedPromise:u8}});var xS=A((kV,wS)=>{"use strict";var ES=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],c8=/^[\w.-]+$/,l8=/"/g,h8=t=>typeof t!="string"||c8.test(t)?t:`"${t.replace(l8,'\\"')}"`,f8=(t,e)=>ES(t,e).join(" "),d8=(t,e)=>ES(t,e).map(r=>h8(r)).join(" "),p8=/ +/g,m8=t=>{let e=[];for(let r of t.trim().split(p8)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};wS.exports={joinCommand:f8,getEscapedCommand:d8,parseCommand:m8}});var vs=A((TV,bs)=>{"use strict";var y8=require("path"),Ip=require("child_process"),g8=Gx(),_8=Wx(),b8=Kx(),v8=Vd(),pc=nS(),AS=sS(),{spawnedKill:E8,spawnedCancel:w8,setupTimeout:x8,validateTimeout:S8,setExitHandler:A8}=aS(),{handleInput:D8,getSpawnedResult:C8,makeAllStream:R8,validateInputSync:k8}=_S(),{mergePromise:SS,getSpawnedPromise:T8}=vS(),{joinCommand:DS,parseCommand:CS,getEscapedCommand:RS}=xS(),O8=1e3*1e3*100,F8=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?b8.env({env:s,cwd:n,execPath:i}):s},kS=(t,e,r={})=>{let n=g8._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:O8,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=F8(r),r.stdio=AS(r),process.platform==="win32"&&y8.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Ko=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?_8(e):e,mc=(t,e,r)=>{let n=kS(t,e,r),i=DS(t,e),s=RS(t,e);S8(n.options);let o;try{o=Ip.spawn(n.file,n.args,n.options)}catch(d){let p=new Ip.ChildProcess,y=Promise.reject(pc({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return SS(p,y)}let a=T8(o),u=x8(o,n.options,a),c=A8(o,n.options,u),l={isCanceled:!1};o.kill=E8.bind(null,o.kill.bind(o)),o.cancel=w8.bind(null,o,l);let f=v8(async()=>{let[{error:d,exitCode:p,signal:y,timedOut:m},w,T,F]=await C8(o,n.options,c),I=Ko(n.options,w),R=Ko(n.options,T),M=Ko(n.options,F);if(d||p!==0||y!==null){let x=pc({error:d,exitCode:p,signal:y,stdout:I,stderr:R,all:M,command:i,escapedCommand:s,parsed:n,timedOut:m,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return x;throw x}return{command:i,escapedCommand:s,exitCode:0,stdout:I,stderr:R,all:M,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return D8(o,n.options.input),o.all=R8(o,n.options),SS(o,f)};bs.exports=mc;bs.exports.sync=(t,e,r)=>{let n=kS(t,e,r),i=DS(t,e),s=RS(t,e);k8(n.options);let o;try{o=Ip.spawnSync(n.file,n.args,n.options)}catch(c){throw pc({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=Ko(n.options,o.stdout,o.error),u=Ko(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=pc({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};bs.exports.command=(t,e)=>{let[r,...n]=CS(t);return mc(r,n,e)};bs.exports.commandSync=(t,e)=>{let[r,...n]=CS(t);return mc.sync(r,n,e)};bs.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=AS.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return mc(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Es=A((LV,IS)=>{"use strict";var PS=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"]]);IS.exports=t=>t?Object.keys(t).map(e=>[PS.has(e)?PS.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var xc=A((BV,$S)=>{"use strict";var LS=typeof process=="object"&&process?process:{stdout:null,stderr:null},L8=require("events"),BS=require("stream"),NS=require("string_decoder").StringDecoder,Hr=Symbol("EOF"),$r=Symbol("maybeEmitEnd"),wn=Symbol("emittedEnd"),_c=Symbol("emittingEnd"),Xo=Symbol("emittedError"),bc=Symbol("closed"),MS=Symbol("read"),vc=Symbol("flush"),jS=Symbol("flushChunk"),xt=Symbol("encoding"),Gr=Symbol("decoder"),Ec=Symbol("flowing"),Qo=Symbol("paused"),ws=Symbol("resume"),qe=Symbol("buffer"),wr=Symbol("pipes"),Xe=Symbol("bufferLength"),Mp=Symbol("bufferPush"),jp=Symbol("bufferShift"),ct=Symbol("objectMode"),lt=Symbol("destroyed"),qp=Symbol("emitData"),qS=Symbol("emitEnd"),Up=Symbol("emitEnd2"),zr=Symbol("async"),ea=t=>Promise.resolve().then(t),US=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B8=US&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),N8=US&&Symbol.iterator||Symbol("iterator not implemented"),M8=t=>t==="end"||t==="finish"||t==="prefinish",j8=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,q8=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),wc=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ws](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Hp=class extends wc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};$S.exports=class HS extends BS{constructor(e){super(),this[Ec]=!1,this[Qo]=!1,this[wr]=[],this[qe]=[],this[ct]=e&&e.objectMode||!1,this[ct]?this[xt]=null:this[xt]=e&&e.encoding||null,this[xt]==="buffer"&&(this[xt]=null),this[zr]=e&&!!e.async||!1,this[Gr]=this[xt]?new NS(this[xt]):null,this[Hr]=!1,this[wn]=!1,this[_c]=!1,this[bc]=!1,this[Xo]=null,this.writable=!0,this.readable=!0,this[Xe]=0,this[lt]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[qe]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[wr]})}get bufferLength(){return this[Xe]}get encoding(){return this[xt]}set encoding(e){if(this[ct])throw new Error("cannot set encoding in objectMode");if(this[xt]&&e!==this[xt]&&(this[Gr]&&this[Gr].lastNeed||this[Xe]))throw new Error("cannot change encoding");this[xt]!==e&&(this[Gr]=e?new NS(e):null,this[qe].length&&(this[qe]=this[qe].map(r=>this[Gr].write(r)))),this[xt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ct]}set objectMode(e){this[ct]=this[ct]||!!e}get async(){return this[zr]}set async(e){this[zr]=this[zr]||!!e}write(e,r,n){if(this[Hr])throw new Error("write after end");if(this[lt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[zr]?ea:s=>s();return!this[ct]&&!Buffer.isBuffer(e)&&(q8(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):j8(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ct]?(this.flowing&&this[Xe]!==0&&this[vc](!0),this.flowing?this.emit("data",e):this[Mp](e),this[Xe]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[xt]&&!this[Gr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[xt]&&(e=this[Gr].write(e)),this.flowing&&this[Xe]!==0&&this[vc](!0),this.flowing?this.emit("data",e):this[Mp](e),this[Xe]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Xe]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[lt])return null;if(this[Xe]===0||e===0||e>this[Xe])return this[$r](),null;this[ct]&&(e=null),this[qe].length>1&&!this[ct]&&(this.encoding?this[qe]=[this[qe].join("")]:this[qe]=[Buffer.concat(this[qe],this[Xe])]);let r=this[MS](e||null,this[qe][0]);return this[$r](),r}[MS](e,r){return e===r.length||e===null?this[jp]():(this[qe][0]=r.slice(e),r=r.slice(0,e),this[Xe]-=e),this.emit("data",r),!this[qe].length&&!this[Hr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Hr]=!0,this.writable=!1,(this.flowing||!this[Qo])&&this[$r](),this}[ws](){this[lt]||(this[Qo]=!1,this[Ec]=!0,this.emit("resume"),this[qe].length?this[vc]():this[Hr]?this[$r]():this.emit("drain"))}resume(){return this[ws]()}pause(){this[Ec]=!1,this[Qo]=!0}get destroyed(){return this[lt]}get flowing(){return this[Ec]}get paused(){return this[Qo]}[Mp](e){this[ct]?this[Xe]+=1:this[Xe]+=e.length,this[qe].push(e)}[jp](){return this[qe].length&&(this[ct]?this[Xe]-=1:this[Xe]-=this[qe][0].length),this[qe].shift()}[vc](e){do;while(this[jS](this[jp]()));!e&&!this[qe].length&&!this[Hr]&&this.emit("drain")}[jS](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[lt])return;let n=this[wn];return r=r||{},e===LS.stdout||e===LS.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[wr].push(r.proxyErrors?new Hp(this,e,r):new wc(this,e,r)),this[zr]?ea(()=>this[ws]()):this[ws]()),e}unpipe(e){let r=this[wr].find(n=>n.dest===e);r&&(this[wr].splice(this[wr].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[wr].length&&!this.flowing?this[ws]():e==="readable"&&this[Xe]!==0?super.emit("readable"):M8(e)&&this[wn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Xo]&&(this[zr]?ea(()=>r.call(this,this[Xo])):r.call(this,this[Xo])),n}get emittedEnd(){return this[wn]}[$r](){!this[_c]&&!this[wn]&&!this[lt]&&this[qe].length===0&&this[Hr]&&(this[_c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[bc]&&this.emit("close"),this[_c]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==lt&&this[lt])return;if(e==="data")return r?this[zr]?ea(()=>this[qp](r)):this[qp](r):!1;if(e==="end")return this[qS]();if(e==="close"){if(this[bc]=!0,!this[wn]&&!this[lt])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Xo]=r;let s=super.emit("error",r);return this[$r](),s}else if(e==="resume"){let s=super.emit("resume");return this[$r](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[$r](),i}[qp](e){for(let n of this[wr])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[$r](),r}[qS](){this[wn]||(this[wn]=!0,this.readable=!1,this[zr]?ea(()=>this[Up]()):this[Up]())}[Up](){if(this[Gr]){let r=this[Gr].end();if(r){for(let n of this[wr])n.dest.write(r);super.emit("data",r)}}for(let r of this[wr])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ct]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ct]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this[xt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(lt,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[B8](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Hr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[Hr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(lt,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[N8](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[lt]?(e?this.emit("error",e):this.emit(lt),this):(this[lt]=!0,this[qe].length=0,this[Xe]=0,typeof this.close=="function"&&!this[bc]&&this.close(),e?this.emit("error",e):this.emit(lt),this)}static isStream(e){return!!e&&(e instanceof HS||e instanceof BS||e instanceof L8&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var zS=A((NV,GS)=>{var U8=require("zlib").constants||{ZLIB_VERNUM:4736};GS.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},U8))});var Yp=A((MV,eA)=>{"use strict";var WS=typeof process=="object"&&process?process:{stdout:null,stderr:null},H8=require("events"),VS=require("stream"),YS=require("string_decoder").StringDecoder,Wr=Symbol("EOF"),Vr=Symbol("maybeEmitEnd"),xn=Symbol("emittedEnd"),Sc=Symbol("emittingEnd"),ta=Symbol("emittedError"),Ac=Symbol("closed"),KS=Symbol("read"),Dc=Symbol("flush"),ZS=Symbol("flushChunk"),St=Symbol("encoding"),Yr=Symbol("decoder"),Cc=Symbol("flowing"),ra=Symbol("paused"),xs=Symbol("resume"),Qe=Symbol("bufferLength"),$p=Symbol("bufferPush"),Gp=Symbol("bufferShift"),ht=Symbol("objectMode"),ft=Symbol("destroyed"),zp=Symbol("emitData"),JS=Symbol("emitEnd"),Wp=Symbol("emitEnd2"),Kr=Symbol("async"),na=t=>Promise.resolve().then(t),XS=global._MP_NO_ITERATOR_SYMBOLS_!=="1",$8=XS&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),G8=XS&&Symbol.iterator||Symbol("iterator not implemented"),z8=t=>t==="end"||t==="finish"||t==="prefinish",W8=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,V8=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Rc=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[xs](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Vp=class extends Rc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};eA.exports=class QS extends VS{constructor(e){super(),this[Cc]=!1,this[ra]=!1,this.pipes=[],this.buffer=[],this[ht]=e&&e.objectMode||!1,this[ht]?this[St]=null:this[St]=e&&e.encoding||null,this[St]==="buffer"&&(this[St]=null),this[Kr]=e&&!!e.async||!1,this[Yr]=this[St]?new YS(this[St]):null,this[Wr]=!1,this[xn]=!1,this[Sc]=!1,this[Ac]=!1,this[ta]=null,this.writable=!0,this.readable=!0,this[Qe]=0,this[ft]=!1}get bufferLength(){return this[Qe]}get encoding(){return this[St]}set encoding(e){if(this[ht])throw new Error("cannot set encoding in objectMode");if(this[St]&&e!==this[St]&&(this[Yr]&&this[Yr].lastNeed||this[Qe]))throw new Error("cannot change encoding");this[St]!==e&&(this[Yr]=e?new YS(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Yr].write(r)))),this[St]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ht]}set objectMode(e){this[ht]=this[ht]||!!e}get async(){return this[Kr]}set async(e){this[Kr]=this[Kr]||!!e}write(e,r,n){if(this[Wr])throw new Error("write after end");if(this[ft])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Kr]?na:s=>s();return!this[ht]&&!Buffer.isBuffer(e)&&(V8(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):W8(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ht]?(this.flowing&&this[Qe]!==0&&this[Dc](!0),this.flowing?this.emit("data",e):this[$p](e),this[Qe]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[St]&&!this[Yr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[St]&&(e=this[Yr].write(e)),this.flowing&&this[Qe]!==0&&this[Dc](!0),this.flowing?this.emit("data",e):this[$p](e),this[Qe]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Qe]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ft])return null;if(this[Qe]===0||e===0||e>this[Qe])return this[Vr](),null;this[ht]&&(e=null),this.buffer.length>1&&!this[ht]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Qe])]);let r=this[KS](e||null,this.buffer[0]);return this[Vr](),r}[KS](e,r){return e===r.length||e===null?this[Gp]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Qe]-=e),this.emit("data",r),!this.buffer.length&&!this[Wr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Wr]=!0,this.writable=!1,(this.flowing||!this[ra])&&this[Vr](),this}[xs](){this[ft]||(this[ra]=!1,this[Cc]=!0,this.emit("resume"),this.buffer.length?this[Dc]():this[Wr]?this[Vr]():this.emit("drain"))}resume(){return this[xs]()}pause(){this[Cc]=!1,this[ra]=!0}get destroyed(){return this[ft]}get flowing(){return this[Cc]}get paused(){return this[ra]}[$p](e){this[ht]?this[Qe]+=1:this[Qe]+=e.length,this.buffer.push(e)}[Gp](){return this.buffer.length&&(this[ht]?this[Qe]-=1:this[Qe]-=this.buffer[0].length),this.buffer.shift()}[Dc](e){do;while(this[ZS](this[Gp]()));!e&&!this.buffer.length&&!this[Wr]&&this.emit("drain")}[ZS](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ft])return;let n=this[xn];return r=r||{},e===WS.stdout||e===WS.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Vp(this,e,r):new Rc(this,e,r)),this[Kr]?na(()=>this[xs]()):this[xs]()),e}unpipe(e){let r=this.pipes.find(n=>n.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 n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[xs]():e==="readable"&&this[Qe]!==0?super.emit("readable"):z8(e)&&this[xn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ta]&&(this[Kr]?na(()=>r.call(this,this[ta])):r.call(this,this[ta])),n}get emittedEnd(){return this[xn]}[Vr](){!this[Sc]&&!this[xn]&&!this[ft]&&this.buffer.length===0&&this[Wr]&&(this[Sc]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ac]&&this.emit("close"),this[Sc]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ft&&this[ft])return;if(e==="data")return r?this[Kr]?na(()=>this[zp](r)):this[zp](r):!1;if(e==="end")return this[JS]();if(e==="close"){if(this[Ac]=!0,!this[xn]&&!this[ft])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ta]=r;let s=super.emit("error",r);return this[Vr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Vr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Vr](),i}[zp](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Vr](),r}[JS](){this[xn]||(this[xn]=!0,this.readable=!1,this[Kr]?na(()=>this[Wp]()):this[Wp]())}[Wp](){if(this[Yr]){let r=this[Yr].end();if(r){for(let n of this.pipes)n.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[ht]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ht]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[ht]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ht]?Promise.reject(new Error("cannot concat in objectMode")):this[St]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ft,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[$8](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Wr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[Wr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(ft,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[G8](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ft]?(e?this.emit("error",e):this.emit(ft),this):(this[ft]=!0,this.buffer.length=0,this[Qe]=0,typeof this.close=="function"&&!this[Ac]&&this.close(),e?this.emit("error",e):this.emit(ft),this)}static isStream(e){return!!e&&(e instanceof QS||e instanceof VS||e instanceof H8&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var lm=A(Pt=>{"use strict";var Qp=require("assert"),Sn=require("buffer").Buffer,nA=require("zlib"),ii=Pt.constants=zS(),Y8=Yp(),tA=Sn.concat,si=Symbol("_superWrite"),As=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"}},K8=Symbol("opts"),ia=Symbol("flushFlag"),rA=Symbol("finishFlushFlag"),cm=Symbol("fullFlushFlag"),Pe=Symbol("handle"),kc=Symbol("onError"),Ss=Symbol("sawError"),Kp=Symbol("level"),Zp=Symbol("strategy"),Jp=Symbol("ended"),jV=Symbol("_defaultFullFlush"),Tc=class extends Y8{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Ss]=!1,this[Jp]=!1,this[K8]=e,this[ia]=e.flush,this[rA]=e.finishFlush;try{this[Pe]=new nA[r](e)}catch(n){throw new As(n)}this[kc]=n=>{this[Ss]||(this[Ss]=!0,this.close(),this.emit("error",n))},this[Pe].on("error",n=>this[kc](new As(n))),this.once("end",()=>this.close)}close(){this[Pe]&&(this[Pe].close(),this[Pe]=null,this.emit("close"))}reset(){if(!this[Ss])return Qp(this[Pe],"zlib binding closed"),this[Pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[cm]),this.write(Object.assign(Sn.alloc(0),{[ia]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[rA]),this[Jp]=!0,super.end(null,null,n)}get ended(){return this[Jp]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=Sn.from(e,r)),this[Ss])return;Qp(this[Pe],"zlib binding closed");let i=this[Pe]._handle,s=i.close;i.close=()=>{};let o=this[Pe].close;this[Pe].close=()=>{},Sn.concat=c=>c;let a;try{let c=typeof e[ia]=="number"?e[ia]:this[ia];a=this[Pe]._processChunk(e,c),Sn.concat=tA}catch(c){Sn.concat=tA,this[kc](new As(c))}finally{this[Pe]&&(this[Pe]._handle=i,i.close=s,this[Pe].close=o,this[Pe].removeAllListeners("error"))}this[Pe]&&this[Pe].on("error",c=>this[kc](new As(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[si](Sn.from(a[0]));for(let c=1;c<a.length;c++)u=this[si](a[c])}else u=this[si](Sn.from(a));return n&&n(),u}[si](e){return super.write(e)}},Zr=class extends Tc{constructor(e,r){e=e||{},e.flush=e.flush||ii.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ii.Z_FINISH,super(e,r),this[cm]=ii.Z_FULL_FLUSH,this[Kp]=e.level,this[Zp]=e.strategy}params(e,r){if(!this[Ss]){if(!this[Pe])throw new Error("cannot switch params when binding is closed");if(!this[Pe].params)throw new Error("not supported in this implementation");if(this[Kp]!==e||this[Zp]!==r){this.flush(ii.Z_SYNC_FLUSH),Qp(this[Pe],"zlib binding closed");let n=this[Pe].flush;this[Pe].flush=(i,s)=>{this.flush(i),s()};try{this[Pe].params(e,r)}finally{this[Pe].flush=n}this[Pe]&&(this[Kp]=e,this[Zp]=r)}}}},em=class extends Zr{constructor(e){super(e,"Deflate")}},tm=class extends Zr{constructor(e){super(e,"Inflate")}},Xp=Symbol("_portable"),rm=class extends Zr{constructor(e){super(e,"Gzip"),this[Xp]=e&&!!e.portable}[si](e){return this[Xp]?(this[Xp]=!1,e[9]=255,super[si](e)):super[si](e)}},nm=class extends Zr{constructor(e){super(e,"Gunzip")}},im=class extends Zr{constructor(e){super(e,"DeflateRaw")}},sm=class extends Zr{constructor(e){super(e,"InflateRaw")}},om=class extends Zr{constructor(e){super(e,"Unzip")}},Oc=class extends Tc{constructor(e,r){e=e||{},e.flush=e.flush||ii.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||ii.BROTLI_OPERATION_FINISH,super(e,r),this[cm]=ii.BROTLI_OPERATION_FLUSH}},am=class extends Oc{constructor(e){super(e,"BrotliCompress")}},um=class extends Oc{constructor(e){super(e,"BrotliDecompress")}};Pt.Deflate=em;Pt.Inflate=tm;Pt.Gzip=rm;Pt.Gunzip=nm;Pt.DeflateRaw=im;Pt.InflateRaw=sm;Pt.Unzip=om;typeof nA.BrotliCompress=="function"?(Pt.BrotliCompress=am,Pt.BrotliDecompress=um):Pt.BrotliCompress=Pt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ds=A((HV,iA)=>{var Z8=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;iA.exports=Z8!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Fc=A((GV,sA)=>{"use strict";var J8=xc(),hm=Ds(),fm=Symbol("slurp");sA.exports=class extends J8{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,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=hm(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=hm(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[fm](r),n&&this[fm](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[fm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?hm(e[n]):e[n])}}});var dm=A(Pc=>{"use strict";Pc.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"]]);Pc.code=new Map(Array.from(Pc.name).map(t=>[t[1],t[0]]))});var cA=A((WV,uA)=>{"use strict";var X8=(t,e)=>{if(Number.isSafeInteger(t))t<0?e6(t,e):Q8(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},Q8=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},e6=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=oA(i):i===0?e[n-1]=0:(r=!0,e[n-1]=aA(i))}},t6=t=>{let e=t[0],r=e===128?n6(t.slice(1,t.length)):e===255?r6(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},r6=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=oA(s):s===0?o=s:(n=!0,o=aA(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},n6=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},oA=t=>(255^t)&255,aA=t=>(255^t)+1&255;uA.exports={encode:X8,parse:t6}});var Rs=A((VV,hA)=>{"use strict";var pm=dm(),Cs=require("path").posix,lA=cA(),mm=Symbol("slurp"),It=Symbol("type"),_m=class{constructor(e,r,n,i){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[It]="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,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=oi(e,r,100),this.mode=An(e,r+100,8),this.uid=An(e,r+108,8),this.gid=An(e,r+116,8),this.size=An(e,r+124,12),this.mtime=ym(e,r+136,12),this.cksum=An(e,r+148,12),this[mm](n),this[mm](i,!0),this[It]=oi(e,r+156,1),this[It]===""&&(this[It]="0"),this[It]==="0"&&this.path.slice(-1)==="/"&&(this[It]="5"),this[It]==="5"&&(this.size=0),this.linkpath=oi(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=oi(e,r+265,32),this.gname=oi(e,r+297,32),this.devmaj=An(e,r+329,8),this.devmin=An(e,r+337,8),e[r+475]!==0){let o=oi(e,r+345,155);this.path=o+"/"+this.path}else{let o=oi(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=ym(e,r+476,12),this.ctime=ym(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)}[mm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}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 n=this.ctime||this.atime?130:155,i=i6(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=ai(e,r,100,s)||this.needPax,this.needPax=Dn(e,r+100,8,this.mode)||this.needPax,this.needPax=Dn(e,r+108,8,this.uid)||this.needPax,this.needPax=Dn(e,r+116,8,this.gid)||this.needPax,this.needPax=Dn(e,r+124,12,this.size)||this.needPax,this.needPax=gm(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[It].charCodeAt(0),this.needPax=ai(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=ai(e,r+265,32,this.uname)||this.needPax,this.needPax=ai(e,r+297,32,this.gname)||this.needPax,this.needPax=Dn(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Dn(e,r+337,8,this.devmin)||this.needPax,this.needPax=ai(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=ai(e,r+345,155,o)||this.needPax:(this.needPax=ai(e,r+345,130,o)||this.needPax,this.needPax=gm(e,r+476,12,this.atime)||this.needPax,this.needPax=gm(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,Dn(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 pm.name.get(this[It])||this[It]}get typeKey(){return this[It]}set type(e){pm.code.has(e)?this[It]=pm.code.get(e):this[It]=e}},i6=(t,e)=>{let n=t,i="",s,o=Cs.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Cs.dirname(n),n=Cs.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=Cs.join(Cs.basename(i),n),i=Cs.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},oi=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),ym=(t,e,r)=>s6(An(t,e,r)),s6=t=>t===null?null:new Date(t*1e3),An=(t,e,r)=>t[e]&128?lA.parse(t.slice(e,e+r)):a6(t,e,r),o6=t=>isNaN(t)?null:t,a6=(t,e,r)=>o6(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),u6={12:8589934591,8:2097151},Dn=(t,e,r,n)=>n===null?!1:n>u6[r]||n<0?(lA.encode(n,t.slice(e,e+r)),!0):(c6(t,e,r,n),!1),c6=(t,e,r,n)=>t.write(l6(n,r),e,r,"ascii"),l6=(t,e)=>h6(Math.floor(t).toString(8),e),h6=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",gm=(t,e,r,n)=>n===null?!1:Dn(t,e,r,n.getTime()/1e3),f6=new Array(156).join("\0"),ai=(t,e,r,n)=>n===null?!1:(t.write(n+f6,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);hA.exports=_m});var Ic=A((YV,fA)=>{"use strict";var d6=Rs(),p6=require("path"),sa=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),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new d6({path:("PaxHeader/"+p6.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(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}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],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
24
+ `,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};sa.parse=(t,e,r)=>new sa(m6(y6(t),e),r);var m6=(t,e)=>e?Object.keys(t).reduce((r,n)=>(r[n]=t[n],r),e):t,y6=t=>t.replace(/\n$/,"").split(`
25
+ `).reduce(g6,Object.create(null)),g6=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};fA.exports=sa});var ks=A((KV,dA)=>{dA.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 Lc=A((ZV,pA)=>{"use strict";pA.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),n))}}});var vm=A((XV,mA)=>{"use strict";var Bc=["|","<",">","?",":"],bm=Bc.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),_6=new Map(Bc.map((t,e)=>[t,bm[e]])),b6=new Map(bm.map((t,e)=>[t,Bc[e]]));mA.exports={encode:t=>Bc.reduce((e,r)=>e.split(r).join(_6.get(r)),t),decode:t=>bm.reduce((e,r)=>e.split(r).join(b6.get(r)),t)}});var Em=A((QV,gA)=>{var{isAbsolute:v6,parse:yA}=require("path").win32;gA.exports=t=>{let e="",r=yA(t);for(;v6(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=yA(t)}return[e,t]}});var bA=A((eY,_A)=>{"use strict";_A.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 Om=A((nY,PA)=>{"use strict";var DA=xc(),CA=Ic(),RA=Rs(),Sr=require("fs"),vA=require("path"),xr=Ds(),E6=ks(),kA=(t,e)=>e?(t=xr(t).replace(/^\.(\/|$)/,""),E6(e)+"/"+t):xr(t),w6=16*1024*1024,EA=Symbol("process"),wA=Symbol("file"),xA=Symbol("directory"),xm=Symbol("symlink"),SA=Symbol("hardlink"),oa=Symbol("header"),Nc=Symbol("read"),Sm=Symbol("lstat"),Mc=Symbol("onlstat"),Am=Symbol("onread"),Dm=Symbol("onreadlink"),Cm=Symbol("openfile"),Rm=Symbol("onopenfile"),Cn=Symbol("close"),jc=Symbol("mode"),km=Symbol("awaitDrain"),wm=Symbol("ondrain"),Ar=Symbol("prefix"),AA=Symbol("hadError"),TA=Lc(),x6=vm(),OA=Em(),FA=bA(),qc=TA(class extends DA{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=xr(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||w6,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=xr(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?xr(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 n=!1;if(!this.preservePaths){let[i,s]=OA(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=x6.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=xr(r.absolute||vA.resolve(this.cwd,e)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Mc](this.statCache.get(this.absolute)):this[Sm]()}emit(e,...r){return e==="error"&&(this[AA]=!0),super.emit(e,...r)}[Sm](){Sr.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Mc](r)})}[Mc](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=A6(e),this.emit("stat",e),this[EA]()}[EA](){switch(this.type){case"File":return this[wA]();case"Directory":return this[xA]();case"SymbolicLink":return this[xm]();default:return this.end()}}[jc](e){return FA(e,this.type==="Directory",this.portable)}[Ar](e){return kA(e,this.prefix)}[oa](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new RA({path:this[Ar](this.path),linkpath:this.type==="Link"?this[Ar](this.linkpath):this.linkpath,mode:this[jc](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 CA({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[Ar](this.path),linkpath:this.type==="Link"?this[Ar](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)}[xA](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[oa](),this.end()}[xm](){Sr.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Dm](r)})}[Dm](e){this.linkpath=xr(e),this[oa](),this.end()}[SA](e){this.type="Link",this.linkpath=xr(vA.relative(this.cwd,e)),this.stat.size=0,this[oa](),this.end()}[wA](){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[SA](r)}this.linkCache.set(e,this.absolute)}if(this[oa](),this.stat.size===0)return this.end();this[Cm]()}[Cm](){Sr.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Rm](r)})}[Rm](e){if(this.fd=e,this[AA])return this[Cn]();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[Nc]()}[Nc](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Sr.read(e,r,n,i,s,(o,a)=>{if(o)return this[Cn](()=>this.emit("error",o));this[Am](a)})}[Cn](e){Sr.close(this.fd,e)}[Am](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Cn](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Cn](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+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[wm]():this[km](()=>this[wm]())}[km](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)}[wm](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Cn](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[Nc]()}}),Tm=class extends qc{[Sm](){this[Mc](Sr.lstatSync(this.absolute))}[xm](){this[Dm](Sr.readlinkSync(this.absolute))}[Cm](){this[Rm](Sr.openSync(this.absolute,"r"))}[Nc](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Sr.readSync(r,n,i,s,o);this[Am](a),e=!1}finally{if(e)try{this[Cn](()=>{})}catch{}}}[km](e){e()}[Cn](e){Sr.closeSync(this.fd),e()}},S6=TA(class extends DA{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=xr(e.path),this.mode=this[jc](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=xr(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=OA(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new RA({path:this[Ar](this.path),linkpath:this.type==="Link"?this[Ar](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}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new CA({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[Ar](this.path),linkpath:this.type==="Link"?this[Ar](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)}[Ar](e){return kA(e,this.prefix)}[jc](e){return FA(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()}});qc.Sync=Tm;qc.Tar=S6;var A6=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";PA.exports=qc});var LA=A((iY,IA)=>{"use strict";IA.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Fm=A((sY,BA)=>{"use strict";BA.exports=Ce;Ce.Node=ui;Ce.create=Ce;function Ce(t){var e=this;if(e instanceof Ce||(e=new Ce),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}Ce.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};Ce.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++}};Ce.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++}};Ce.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)C6(this,arguments[t]);return this.length};Ce.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)R6(this,arguments[t]);return this.length};Ce.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}};Ce.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}};Ce.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};Ce.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};Ce.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};Ce.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};Ce.prototype.map=function(t,e){e=e||this;for(var r=new Ce,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};Ce.prototype.mapReverse=function(t,e){e=e||this;for(var r=new Ce,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};Ce.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};Ce.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};Ce.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};Ce.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};Ce.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 Ce;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};Ce.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 Ce;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};Ce.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=D6(this,i,r[n]);return s};Ce.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function D6(t,e,r){var n=e===t.head?new ui(r,null,e,t):new ui(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function C6(t,e){t.tail=new ui(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function R6(t,e){t.head=new ui(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function ui(t,e,r,n){if(!(this instanceof ui))return new ui(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{LA()(Ce)}catch{}});var Kc=A((aY,$A)=>{"use strict";var Vc=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}},k6=xc(),T6=lm(),O6=Fc(),Um=Om(),F6=Um.Sync,P6=Um.Tar,I6=Fm(),NA=Buffer.alloc(1024),$c=Symbol("onStat"),Uc=Symbol("ended"),Dr=Symbol("queue"),Ts=Symbol("current"),ci=Symbol("process"),Hc=Symbol("processing"),MA=Symbol("processJob"),Cr=Symbol("jobs"),Pm=Symbol("jobDone"),Gc=Symbol("addFSEntry"),jA=Symbol("addTarEntry"),Nm=Symbol("stat"),Mm=Symbol("readdir"),zc=Symbol("onreaddir"),Wc=Symbol("pipe"),qA=Symbol("entry"),Im=Symbol("entryOpt"),jm=Symbol("writeEntryClass"),HA=Symbol("write"),Lm=Symbol("ondrain"),Yc=require("fs"),UA=require("path"),L6=Lc(),Bm=Ds(),Hm=L6(class extends k6{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=Bm(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[jm]=Um,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 T6.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Lm]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Lm]),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[Dr]=new I6,this[Cr]=0,this.jobs=+e.jobs||4,this[Hc]=!1,this[Uc]=!1}[HA](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Uc]=!0,this[ci](),this}write(e){if(this[Uc])throw new Error("write after end");return e instanceof O6?this[jA](e):this[Gc](e),this.flowing}[jA](e){let r=Bm(UA.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new Vc(e.path,r,!1);n.entry=new P6(e,this[Im](n)),n.entry.on("end",i=>this[Pm](n)),this[Cr]+=1,this[Dr].push(n)}this[ci]()}[Gc](e){let r=Bm(UA.resolve(this.cwd,e));this[Dr].push(new Vc(e,r)),this[ci]()}[Nm](e){e.pending=!0,this[Cr]+=1;let r=this.follow?"stat":"lstat";Yc[r](e.absolute,(n,i)=>{e.pending=!1,this[Cr]-=1,n?this.emit("error",n):this[$c](e,i)})}[$c](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[ci]()}[Mm](e){e.pending=!0,this[Cr]+=1,Yc.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[Cr]-=1,r)return this.emit("error",r);this[zc](e,n)})}[zc](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[ci]()}[ci](){if(!this[Hc]){this[Hc]=!0;for(let e=this[Dr].head;e!==null&&this[Cr]<this.jobs;e=e.next)if(this[MA](e.value),e.value.ignore){let r=e.next;this[Dr].removeNode(e),e.next=r}this[Hc]=!1,this[Uc]&&!this[Dr].length&&this[Cr]===0&&(this.zip?this.zip.end(NA):(super.write(NA),super.end()))}}get[Ts](){return this[Dr]&&this[Dr].head&&this[Dr].head.value}[Pm](e){this[Dr].shift(),this[Cr]-=1,this[ci]()}[MA](e){if(!e.pending){if(e.entry){e===this[Ts]&&!e.piped&&this[Wc](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[$c](e,this.statCache.get(e.absolute)):this[Nm](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[zc](e,this.readdirCache.get(e.absolute)):this[Mm](e),!e.readdir))){if(e.entry=this[qA](e),!e.entry){e.ignore=!0;return}e===this[Ts]&&!e.piped&&this[Wc](e)}}}[Im](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),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}}[qA](e){this[Cr]+=1;try{return new this[jm](e.path,this[Im](e)).on("end",()=>this[Pm](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Lm](){this[Ts]&&this[Ts].entry&&this[Ts].entry.resume()}[Wc](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Gc](o+i)});let r=e.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),qm=class extends Hm{constructor(e){super(e),this[jm]=F6}pause(){}resume(){}[Nm](e){let r=this.follow?"statSync":"lstatSync";this[$c](e,Yc[r](e.absolute))}[Mm](e,r){this[zc](e,Yc.readdirSync(e.absolute))}[Wc](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Gc](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[HA](i)})}};Hm.Sync=qm;$A.exports=Hm});var Ms=A(ua=>{"use strict";var B6=Yp(),N6=require("events").EventEmitter,At=require("fs"),zm=At.writev;if(!zm){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;zm=(r,n,i,s)=>{let o=(u,c)=>s(u,c,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var Bs=Symbol("_autoClose"),ar=Symbol("_close"),aa=Symbol("_ended"),Oe=Symbol("_fd"),GA=Symbol("_finished"),kn=Symbol("_flags"),$m=Symbol("_flush"),Wm=Symbol("_handleChunk"),Vm=Symbol("_makeBuf"),el=Symbol("_mode"),Zc=Symbol("_needDrain"),Is=Symbol("_onerror"),Ns=Symbol("_onopen"),Gm=Symbol("_onread"),Fs=Symbol("_onwrite"),Tn=Symbol("_open"),Jr=Symbol("_path"),li=Symbol("_pos"),Rr=Symbol("_queue"),Ps=Symbol("_read"),zA=Symbol("_readSize"),Rn=Symbol("_reading"),Jc=Symbol("_remain"),WA=Symbol("_size"),Xc=Symbol("_write"),Os=Symbol("_writing"),Qc=Symbol("_defaultFlag"),Ls=Symbol("_errored"),tl=class extends B6{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[Ls]=!1,this[Oe]=typeof r.fd=="number"?r.fd:null,this[Jr]=e,this[zA]=r.readSize||16*1024*1024,this[Rn]=!1,this[WA]=typeof r.size=="number"?r.size:1/0,this[Jc]=this[WA],this[Bs]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[Oe]=="number"?this[Ps]():this[Tn]()}get fd(){return this[Oe]}get path(){return this[Jr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Tn](){At.open(this[Jr],"r",(e,r)=>this[Ns](e,r))}[Ns](e,r){e?this[Is](e):(this[Oe]=r,this.emit("open",r),this[Ps]())}[Vm](){return Buffer.allocUnsafe(Math.min(this[zA],this[Jc]))}[Ps](){if(!this[Rn]){this[Rn]=!0;let e=this[Vm]();if(e.length===0)return process.nextTick(()=>this[Gm](null,0,e));At.read(this[Oe],e,0,e.length,null,(r,n,i)=>this[Gm](r,n,i))}}[Gm](e,r,n){this[Rn]=!1,e?this[Is](e):this[Wm](r,n)&&this[Ps]()}[ar](){if(this[Bs]&&typeof this[Oe]=="number"){let e=this[Oe];this[Oe]=null,At.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Is](e){this[Rn]=!0,this[ar](),this.emit("error",e)}[Wm](e,r){let n=!1;return this[Jc]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Jc]<=0)&&(n=!1,this[ar](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[Oe]=="number"&&this[Ps]();break;case"error":return this[Ls]?void 0:(this[Ls]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Ym=class extends tl{[Tn](){let e=!0;try{this[Ns](null,At.openSync(this[Jr],"r")),e=!1}finally{e&&this[ar]()}}[Ps](){let e=!0;try{if(!this[Rn]){this[Rn]=!0;do{let r=this[Vm](),n=r.length===0?0:At.readSync(this[Oe],r,0,r.length,null);if(!this[Wm](n,r))break}while(!0);this[Rn]=!1}e=!1}finally{e&&this[ar]()}}[ar](){if(this[Bs]&&typeof this[Oe]=="number"){let e=this[Oe];this[Oe]=null,At.closeSync(e),this.emit("close")}}},rl=class extends N6{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ls]=!1,this[Os]=!1,this[aa]=!1,this[Zc]=!1,this[Rr]=[],this[Jr]=e,this[Oe]=typeof r.fd=="number"?r.fd:null,this[el]=r.mode===void 0?438:r.mode,this[li]=typeof r.start=="number"?r.start:null,this[Bs]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[li]!==null?"r+":"w";this[Qc]=r.flags===void 0,this[kn]=this[Qc]?n:r.flags,this[Oe]===null&&this[Tn]()}emit(e,r){if(e==="error"){if(this[Ls])return;this[Ls]=!0}return super.emit(e,r)}get fd(){return this[Oe]}get path(){return this[Jr]}[Is](e){this[ar](),this[Os]=!0,this.emit("error",e)}[Tn](){At.open(this[Jr],this[kn],this[el],(e,r)=>this[Ns](e,r))}[Ns](e,r){this[Qc]&&this[kn]==="r+"&&e&&e.code==="ENOENT"?(this[kn]="w",this[Tn]()):e?this[Is](e):(this[Oe]=r,this.emit("open",r),this[$m]())}end(e,r){return e&&this.write(e,r),this[aa]=!0,!this[Os]&&!this[Rr].length&&typeof this[Oe]=="number"&&this[Fs](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[aa]?(this.emit("error",new Error("write() after end()")),!1):this[Oe]===null||this[Os]||this[Rr].length?(this[Rr].push(e),this[Zc]=!0,!1):(this[Os]=!0,this[Xc](e),!0)}[Xc](e){At.write(this[Oe],e,0,e.length,this[li],(r,n)=>this[Fs](r,n))}[Fs](e,r){e?this[Is](e):(this[li]!==null&&(this[li]+=r),this[Rr].length?this[$m]():(this[Os]=!1,this[aa]&&!this[GA]?(this[GA]=!0,this[ar](),this.emit("finish")):this[Zc]&&(this[Zc]=!1,this.emit("drain"))))}[$m](){if(this[Rr].length===0)this[aa]&&this[Fs](null,0);else if(this[Rr].length===1)this[Xc](this[Rr].pop());else{let e=this[Rr];this[Rr]=[],zm(this[Oe],e,this[li],(r,n)=>this[Fs](r,n))}}[ar](){if(this[Bs]&&typeof this[Oe]=="number"){let e=this[Oe];this[Oe]=null,At.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Km=class extends rl{[Tn](){let e;if(this[Qc]&&this[kn]==="r+")try{e=At.openSync(this[Jr],this[kn],this[el])}catch(r){if(r.code==="ENOENT")return this[kn]="w",this[Tn]();throw r}else e=At.openSync(this[Jr],this[kn],this[el]);this[Ns](null,e)}[ar](){if(this[Bs]&&typeof this[Oe]=="number"){let e=this[Oe];this[Oe]=null,At.closeSync(e),this.emit("close")}}[Xc](e){let r=!0;try{this[Fs](null,At.writeSync(this[Oe],e,0,e.length,this[li])),r=!1}finally{if(r)try{this[ar]()}catch{}}}};ua.ReadStream=tl;ua.ReadStreamSync=Ym;ua.WriteStream=rl;ua.WriteStreamSync=Km});var cl=A((lY,eD)=>{"use strict";var M6=Lc(),j6=Rs(),q6=require("events"),U6=Fm(),H6=1024*1024,$6=Fc(),VA=Ic(),G6=lm(),{nextTick:z6}=require("process"),Zm=Buffer.from([31,139]),Vt=Symbol("state"),hi=Symbol("writeEntry"),Xr=Symbol("readEntry"),Jm=Symbol("nextEntry"),YA=Symbol("processEntry"),Yt=Symbol("extendedHeader"),ca=Symbol("globalExtendedHeader"),On=Symbol("meta"),KA=Symbol("emitMeta"),Le=Symbol("buffer"),Qr=Symbol("queue"),fi=Symbol("ended"),ZA=Symbol("emittedEnd"),di=Symbol("emit"),Dt=Symbol("unzip"),nl=Symbol("consumeChunk"),il=Symbol("consumeChunkSub"),Xm=Symbol("consumeBody"),JA=Symbol("consumeMeta"),XA=Symbol("consumeHeader"),sl=Symbol("consuming"),Qm=Symbol("bufferConcat"),e0=Symbol("maybeEnd"),la=Symbol("writing"),Fn=Symbol("aborted"),ol=Symbol("onDone"),pi=Symbol("sawValidEntry"),al=Symbol("sawNullBlock"),ul=Symbol("sawEOF"),QA=Symbol("closeStream"),W6=t=>!0;eD.exports=M6(class extends q6{constructor(e){e=e||{},super(e),this.file=e.file||"",this[pi]=null,this.on(ol,r=>{(this[Vt]==="begin"||this[pi]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(ol,e.ondone):this.on(ol,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||H6,this.filter=typeof e.filter=="function"?e.filter:W6,this.writable=!0,this.readable=!1,this[Qr]=new U6,this[Le]=null,this[Xr]=null,this[hi]=null,this[Vt]="begin",this[On]="",this[Yt]=null,this[ca]=null,this[fi]=!1,this[Dt]=null,this[Fn]=!1,this[al]=!1,this[ul]=!1,this.on("end",()=>this[QA]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[XA](e,r){this[pi]===null&&(this[pi]=!1);let n;try{n=new j6(e,r,this[Yt],this[ca])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[al]?(this[ul]=!0,this[Vt]==="begin"&&(this[Vt]="header"),this[di]("eof")):(this[al]=!0,this[di]("nullBlock"));else if(this[al]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[hi]=new $6(n,this[Yt],this[ca]);if(!this[pi])if(s.remain){let o=()=>{s.invalid||(this[pi]=!0)};s.on("end",o)}else this[pi]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[di]("ignoredEntry",s),this[Vt]="ignore",s.resume()):s.size>0&&(this[On]="",s.on("data",o=>this[On]+=o),this[Vt]="meta"):(this[Yt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[di]("ignoredEntry",s),this[Vt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Vt]="body":(this[Vt]="header",s.end()),this[Xr]?this[Qr].push(s):(this[Qr].push(s),this[Jm]())))}}}[QA](){z6(()=>this.emit("close"))}[YA](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Xr]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[Jm]()),r=!1)):(this[Xr]=null,r=!1),r}[Jm](){do;while(this[YA](this[Qr].shift()));if(!this[Qr].length){let e=this[Xr];!e||e.flowing||e.size===e.remain?this[la]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[Xm](e,r){let n=this[hi],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[Vt]="header",this[hi]=null,n.end()),s.length}[JA](e,r){let n=this[hi],i=this[Xm](e,r);return this[hi]||this[KA](n),i}[di](e,r,n){!this[Qr].length&&!this[Xr]?this.emit(e,r,n):this[Qr].push([e,r,n])}[KA](e){switch(this[di]("meta",this[On]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Yt]=VA.parse(this[On],this[Yt],!1);break;case"GlobalExtendedHeader":this[ca]=VA.parse(this[On],this[ca],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Yt]=this[Yt]||Object.create(null),this[Yt].path=this[On].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Yt]=this[Yt]||Object.create(null),this[Yt].linkpath=this[On].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Fn]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Fn])return;if(this[Dt]===null&&e){if(this[Le]&&(e=Buffer.concat([this[Le],e]),this[Le]=null),e.length<Zm.length)return this[Le]=e,!0;for(let n=0;this[Dt]===null&&n<Zm.length;n++)e[n]!==Zm[n]&&(this[Dt]=!1);if(this[Dt]===null){let n=this[fi];this[fi]=!1,this[Dt]=new G6.Unzip,this[Dt].on("data",s=>this[nl](s)),this[Dt].on("error",s=>this.abort(s)),this[Dt].on("end",s=>{this[fi]=!0,this[nl]()}),this[la]=!0;let i=this[Dt][n?"end":"write"](e);return this[la]=!1,i}}this[la]=!0,this[Dt]?this[Dt].write(e):this[nl](e),this[la]=!1;let r=this[Qr].length?!1:this[Xr]?this[Xr].flowing:!0;return!r&&!this[Qr].length&&this[Xr].once("drain",n=>this.emit("drain")),r}[Qm](e){e&&!this[Fn]&&(this[Le]=this[Le]?Buffer.concat([this[Le],e]):e)}[e0](){if(this[fi]&&!this[ZA]&&!this[Fn]&&!this[sl]){this[ZA]=!0;let e=this[hi];if(e&&e.blockRemain){let r=this[Le]?this[Le].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Le]&&e.write(this[Le]),e.end()}this[di](ol)}}[nl](e){if(this[sl])this[Qm](e);else if(!e&&!this[Le])this[e0]();else{if(this[sl]=!0,this[Le]){this[Qm](e);let r=this[Le];this[Le]=null,this[il](r)}else this[il](e);for(;this[Le]&&this[Le].length>=512&&!this[Fn]&&!this[ul];){let r=this[Le];this[Le]=null,this[il](r)}this[sl]=!1}(!this[Le]||this[fi])&&this[e0]()}[il](e){let r=0,n=e.length;for(;r+512<=n&&!this[Fn]&&!this[ul];)switch(this[Vt]){case"begin":case"header":this[XA](e,r),r+=512;break;case"ignore":case"body":r+=this[Xm](e,r);break;case"meta":r+=this[JA](e,r);break;default:throw new Error("invalid state: "+this[Vt])}r<n&&(this[Le]?this[Le]=Buffer.concat([e.slice(r),this[Le]]):this[Le]=e.slice(r))}end(e){this[Fn]||(this[Dt]?this[Dt].end(e):(this[fi]=!0,this.write(e)))}})});var ll=A((hY,iD)=>{"use strict";var V6=Es(),rD=cl(),js=require("fs"),Y6=Ms(),tD=require("path"),t0=ks();iD.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 n=V6(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Z6(n,e),n.noResume||K6(n),n.file&&n.sync?J6(n):n.file?X6(n,r):nD(n)};var K6=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},Z6=(t,e)=>{let r=new Map(e.map(s=>[t0(s),!0])),n=t.filter,i=(s,o)=>{let a=o||tD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(tD.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(t0(s)):s=>i(t0(s))},J6=t=>{let e=nD(t),r=t.file,n=!0,i;try{let s=js.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(js.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(i=js.openSync(r,"r");a<s.size;){let c=js.readSync(i,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}n=!1}finally{if(n&&i)try{js.closeSync(i)}catch{}}},X6=(t,e)=>{let r=new rD(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),js.stat(i,(u,c)=>{if(u)a(u);else{let l=new Y6.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},nD=t=>new rD(t)});var lD=A((fY,cD)=>{"use strict";var Q6=Es(),hl=Kc(),sD=Ms(),oD=ll(),aD=require("path");cD.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 n=Q6(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?e4(n,e):n.file?t4(n,e,r):n.sync?r4(n,e):n4(n,e)};var e4=(t,e)=>{let r=new hl.Sync(t),n=new sD.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),uD(r,e)},t4=(t,e,r)=>{let n=new hl(t),i=new sD.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return r0(n,e),r?s.then(r,r):s},uD=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?oD({file:aD.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},r0=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return oD({file:aD.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>r0(t,e));t.add(r)}t.end()},r4=(t,e)=>{let r=new hl.Sync(t);return uD(r,e),r},n4=(t,e)=>{let r=new hl(t);return r0(r,e),r}});var n0=A((dY,gD)=>{"use strict";var i4=Es(),hD=Kc(),Lt=require("fs"),fD=Ms(),dD=ll(),pD=require("path"),mD=Rs();gD.exports=(t,e,r)=>{let n=i4(t);if(!n.file)throw new TypeError("file is required");if(n.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),n.sync?s4(n,e):a4(n,e,r)};var s4=(t,e)=>{let r=new hD.Sync(t),n=!0,i,s;try{try{i=Lt.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")i=Lt.openSync(t.file,"w+");else throw u}let o=Lt.fstatSync(i),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=Lt.readSync(i,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 mD(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)}n=!1,o4(t,r,s,i,e)}finally{if(n)try{Lt.closeSync(i)}catch{}}},o4=(t,e,r,n,i)=>{let s=new fD.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),u4(e,i)},a4=(t,e,r)=>{e=Array.from(e);let n=new hD(t),i=(o,a,u)=>{let c=(p,y)=>{p?Lt.close(o,m=>u(p)):u(null,y)},l=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(p,y)=>{if(p)return c(p);if(h+=y,h<512&&y)return Lt.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 m=new mD(f);if(!m.cksumValid)return c(null,l);let w=512*Math.ceil(m.size/512);if(l+w+512>a||(l+=w+512,l>=a))return c(null,l);t.mtimeCache&&t.mtimeCache.set(m.path,m.mtime),h=0,Lt.read(o,f,0,512,l,d)};Lt.read(o,f,0,512,l,d)},s=new Promise((o,a)=>{n.on("error",a);let u="r+",c=(l,h)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",Lt.open(t.file,u,c);if(l)return a(l);Lt.fstat(h,(f,d)=>{if(f)return Lt.close(h,()=>a(f));i(h,d.size,(p,y)=>{if(p)return a(p);let m=new fD.WriteStream(t.file,{fd:h,start:y});n.pipe(m),m.on("error",a),m.on("close",o),yD(n,e)})})};Lt.open(t.file,u,c)});return r?s.then(r,r):s},u4=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?dD({file:pD.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},yD=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return dD({file:pD.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>yD(t,e));t.add(r)}t.end()}});var bD=A((pY,_D)=>{"use strict";var c4=Es(),l4=n0();_D.exports=(t,e,r)=>{let n=c4(t);if(!n.file)throw new TypeError("file is required");if(n.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),h4(n),l4(n,e,r)};var h4=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var wD=A((mY,ED)=>{var{promisify:vD}=require("util"),Pn=require("fs"),f4=t=>{if(!t)t={mode:511,fs:Pn};else if(typeof t=="object")t={mode:511,fs:Pn,...t};else if(typeof t=="number")t={mode:t,fs:Pn};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Pn};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Pn.mkdir,t.mkdirAsync=vD(t.mkdir),t.stat=t.stat||t.fs.stat||Pn.stat,t.statAsync=vD(t.stat),t.statSync=t.statSync||t.fs.statSync||Pn.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Pn.mkdirSync,t};ED.exports=f4});var SD=A((yY,xD)=>{var d4=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:p4,parse:m4}=require("path"),y4=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=p4(t),d4==="win32"){let e=/[*|"<>?:]/,{root:r}=m4(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};xD.exports=y4});var kD=A((gY,RD)=>{var{dirname:AD}=require("path"),DD=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?DD(t,AD(e),e):void 0),CD=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?CD(t,AD(e),e):void 0}};RD.exports={findMade:DD,findMadeSync:CD}});var o0=A((_Y,OD)=>{var{dirname:TD}=require("path"),i0=(t,e,r)=>{e.recursive=!1;let n=TD(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return i0(n,e).then(s=>i0(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},s0=(t,e,r)=>{let n=TD(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return s0(t,e,s0(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};OD.exports={mkdirpManual:i0,mkdirpManualSync:s0}});var ID=A((bY,PD)=>{var{dirname:FD}=require("path"),{findMade:g4,findMadeSync:_4}=kD(),{mkdirpManual:b4,mkdirpManualSync:v4}=o0(),E4=(t,e)=>(e.recursive=!0,FD(t)===t?e.mkdirAsync(t,e):g4(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return b4(t,e);throw i}))),w4=(t,e)=>{if(e.recursive=!0,FD(t)===t)return e.mkdirSync(t,e);let n=_4(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return v4(t,e);throw i}};PD.exports={mkdirpNative:E4,mkdirpNativeSync:w4}});var MD=A((vY,ND)=>{var LD=require("fs"),x4=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,a0=x4.replace(/^v/,"").split("."),BD=+a0[0]>10||+a0[0]==10&&+a0[1]>=12,S4=BD?t=>t.mkdir===LD.mkdir:()=>!1,A4=BD?t=>t.mkdirSync===LD.mkdirSync:()=>!1;ND.exports={useNative:S4,useNativeSync:A4}});var GD=A((EY,$D)=>{var qs=wD(),Us=SD(),{mkdirpNative:jD,mkdirpNativeSync:qD}=ID(),{mkdirpManual:UD,mkdirpManualSync:HD}=o0(),{useNative:D4,useNativeSync:C4}=MD(),Hs=(t,e)=>(t=Us(t),e=qs(e),D4(e)?jD(t,e):UD(t,e)),R4=(t,e)=>(t=Us(t),e=qs(e),C4(e)?qD(t,e):HD(t,e));Hs.sync=R4;Hs.native=(t,e)=>jD(Us(t),qs(e));Hs.manual=(t,e)=>UD(Us(t),qs(e));Hs.nativeSync=(t,e)=>qD(Us(t),qs(e));Hs.manualSync=(t,e)=>HD(Us(t),qs(e));$D.exports=Hs});var JD=A((wY,ZD)=>{"use strict";var Kt=require("fs"),mi=require("path"),k4=Kt.lchown?"lchown":"chown",T4=Kt.lchownSync?"lchownSync":"chownSync",WD=Kt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),zD=(t,e,r)=>{try{return Kt[T4](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},O4=(t,e,r)=>{try{return Kt.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},F4=WD?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Kt.chown(t,e,r,n)}:(t,e,r,n)=>n,u0=WD?(t,e,r)=>{try{return zD(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;O4(t,e,r)}}:(t,e,r)=>zD(t,e,r),P4=process.version,VD=(t,e,r)=>Kt.readdir(t,e,r),I4=(t,e)=>Kt.readdirSync(t,e);/^v4\./.test(P4)&&(VD=(t,e,r)=>Kt.readdir(t,r));var fl=(t,e,r,n)=>{Kt[k4](t,e,r,F4(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},YD=(t,e,r,n,i)=>{if(typeof e=="string")return Kt.lstat(mi.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,YD(t,o,r,n,i)});if(e.isDirectory())c0(mi.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=mi.resolve(t,e.name);fl(o,r,n,i)});else{let s=mi.resolve(t,e.name);fl(s,r,n,i)}},c0=(t,e,r,n)=>{VD(t,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return fl(t,e,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return fl(t,e,r,n)}};s.forEach(c=>YD(t,c,e,r,u))})},L4=(t,e,r,n)=>{if(typeof e=="string")try{let i=Kt.lstatSync(mi.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&KD(mi.resolve(t,e.name),r,n),u0(mi.resolve(t,e.name),r,n)},KD=(t,e,r)=>{let n;try{n=I4(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return u0(t,e,r);throw i}return n&&n.length&&n.forEach(i=>L4(t,i,e,r)),u0(t,e,r)};ZD.exports=c0;c0.sync=KD});var tC=A((xY,l0)=>{"use strict";var XD=GD(),Zt=require("fs"),dl=require("path"),QD=JD(),ur=Ds(),pl=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},ml=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},yl=(t,e)=>t.get(ur(e)),ha=(t,e,r)=>t.set(ur(e),r),B4=(t,e)=>{Zt.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new ml(t,r&&r.code||"ENOTDIR")),e(r)})};l0.exports=(t,e,r)=>{t=ur(t);let n=e.umask,i=e.mode|448,s=(i&n)!==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=ur(e.cwd),d=(m,w)=>{m?r(m):(ha(h,t,!0),w&&u?QD(w,o,a,T=>d(T)):s?Zt.chmod(t,i,r):r())};if(h&&yl(h,t)===!0)return d();if(t===f)return B4(t,d);if(c)return XD(t,{mode:i}).then(m=>d(null,m),d);let y=ur(dl.relative(f,t)).split("/");gl(f,y,i,h,l,f,null,d)};var gl=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=ur(dl.resolve(t+"/"+u));if(yl(n,c))return gl(c,e,r,n,i,s,o,a);Zt.mkdir(c,r,eC(c,e,r,n,i,s,o,a))},eC=(t,e,r,n,i,s,o,a)=>u=>{u?Zt.lstat(t,(c,l)=>{if(c)c.path=c.path&&ur(c.path),a(c);else if(l.isDirectory())gl(t,e,r,n,i,s,o,a);else if(i)Zt.unlink(t,h=>{if(h)return a(h);Zt.mkdir(t,r,eC(t,e,r,n,i,s,o,a))});else{if(l.isSymbolicLink())return a(new pl(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,gl(t,e,r,n,i,s,o,a))},N4=t=>{let e=!1,r="ENOTDIR";try{e=Zt.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new ml(t,r)}};l0.exports.sync=(t,e)=>{t=ur(t);let r=e.umask,n=e.mode|448,i=(n&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=ur(e.cwd),f=m=>{ha(l,t,!0),m&&a&&QD.sync(m,s,o),i&&Zt.chmodSync(t,n)};if(l&&yl(l,t)===!0)return f();if(t===h)return N4(h),f();if(u)return f(XD.sync(t,n));let p=ur(dl.relative(h,t)).split("/"),y=null;for(let m=p.shift(),w=h;m&&(w+="/"+m);m=p.shift())if(w=ur(dl.resolve(w)),!yl(l,w))try{Zt.mkdirSync(w,n),y=y||w,ha(l,w,!0)}catch{let F=Zt.lstatSync(w);if(F.isDirectory()){ha(l,w,!0);continue}else if(c){Zt.unlinkSync(w),Zt.mkdirSync(w,n),y=y||w,ha(l,w,!0);continue}else if(F.isSymbolicLink())return new pl(w,w+"/"+p.join("/"))}return f(y)}});var f0=A((SY,rC)=>{var h0=Object.create(null),{hasOwnProperty:M4}=Object.prototype;rC.exports=t=>(M4.call(h0,t)||(h0[t]=t.normalize("NFKD")),h0[t])});var oC=A((AY,sC)=>{var nC=require("assert"),j4=f0(),q4=ks(),{join:iC}=require("path"),U4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,H4=U4==="win32";sC.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=iC(h[h.length-1],f)),h.push(f||"/"),h),[]),n=new Set,i=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}=i(c);return l.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>a(c)),!0),a=c=>{if(!n.has(c))return!1;let{paths:l,dirs:h}=e.get(c),f=new Set;return l.forEach(d=>{let p=t.get(d);nC.equal(p[0],c),p.length===1?t.delete(d):(p.shift(),typeof p[0]=="function"?f.add(p[0]):p[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let p=t.get(d);nC(p[0]instanceof Set),p[0].size===1&&p.length===1?t.delete(d):p[0].size===1?(p.shift(),f.add(p[0])):p[0].delete(c)}),n.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,l)=>{c=H4?["win32 parallelization disabled"]:c.map(f=>j4(q4(iC(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 cC=A((DY,uC)=>{var $4=process.env.__FAKE_PLATFORM__||process.platform,G4=$4==="win32",z4=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:W4,O_TRUNC:V4,O_WRONLY:Y4,UV_FS_O_FILEMAP:aC=0}=z4.constants,K4=G4&&!!aC,Z4=512*1024,J4=aC|V4|W4|Y4;uC.exports=K4?t=>t<Z4?J4:"w":()=>"w"});var E0=A((CY,xC)=>{"use strict";var X4=require("assert"),Q4=cl(),Re=require("fs"),ej=Ms(),en=require("path"),vC=tC(),lC=vm(),tj=oC(),rj=Em(),Bt=Ds(),nj=ks(),ij=f0(),hC=Symbol("onEntry"),m0=Symbol("checkFs"),fC=Symbol("checkFs2"),vl=Symbol("pruneCache"),y0=Symbol("isReusable"),Jt=Symbol("makeFs"),g0=Symbol("file"),_0=Symbol("directory"),El=Symbol("link"),dC=Symbol("symlink"),pC=Symbol("hardlink"),mC=Symbol("unsupported"),yC=Symbol("checkPath"),In=Symbol("mkdir"),dt=Symbol("onError"),_l=Symbol("pending"),gC=Symbol("pend"),$s=Symbol("unpend"),d0=Symbol("ended"),p0=Symbol("maybeClose"),b0=Symbol("skip"),fa=Symbol("doChown"),da=Symbol("uid"),pa=Symbol("gid"),ma=Symbol("checkedCwd"),EC=require("crypto"),wC=cC(),sj=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ya=sj==="win32",oj=(t,e)=>{if(!ya)return Re.unlink(t,e);let r=t+".DELETE."+EC.randomBytes(16).toString("hex");Re.rename(t,r,n=>{if(n)return e(n);Re.unlink(r,e)})},aj=t=>{if(!ya)return Re.unlinkSync(t);let e=t+".DELETE."+EC.randomBytes(16).toString("hex");Re.renameSync(t,e),Re.unlinkSync(e)},_C=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,bC=t=>ij(nj(Bt(t))).toLowerCase(),uj=(t,e)=>{e=bC(e);for(let r of t.keys()){let n=bC(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},cj=t=>{for(let e of t.keys())t.delete(e)},ga=class extends Q4{constructor(e){if(e||(e={}),e.ondone=r=>{this[d0]=!0,this[p0]()},super(e),this[ma]=!1,this.reservations=tj(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[_l]=0,this[d0]=!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||ya,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Bt(en.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[hC](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[p0](){this[d0]&&this[_l]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[yC](e){if(this.strip){let r=Bt(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=Bt(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Bt(e.path),n=r.split("/");if(n.includes("..")||ya&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=rj(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(en.isAbsolute(e.path)?e.absolute=Bt(en.resolve(e.path)):e.absolute=Bt(en.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:Bt(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}=en.win32.parse(e.absolute);e.absolute=r+lC.encode(e.absolute.slice(r.length));let{root:n}=en.win32.parse(e.path);e.path=n+lC.encode(e.path.slice(n.length))}return!0}[hC](e){if(!this[yC](e))return e.resume();switch(X4.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[m0](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[mC](e)}}[dt](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[$s](),r.resume())}[In](e,r,n){vC(Bt(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},n)}[fa](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}[da](e){return _C(this.uid,e.uid,this.processUid)}[pa](e){return _C(this.gid,e.gid,this.processGid)}[g0](e,r){let n=e.mode&4095||this.fmode,i=new ej.WriteStream(e.absolute,{flags:wC(e.size),mode:n,autoClose:!1});i.on("error",u=>{i.fd&&Re.close(i.fd,()=>{}),i.write=()=>!0,this[dt](u,e),r()});let s=1,o=u=>{if(u){i.fd&&Re.close(i.fd,()=>{}),this[dt](u,e),r();return}--s===0&&Re.close(i.fd,c=>{c?this[dt](c,e):this[$s](),r()})};i.on("finish",u=>{let c=e.absolute,l=i.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;Re.futimes(l,h,f,d=>d?Re.utimes(c,h,f,p=>o(p&&d)):o())}if(this[fa](e)){s++;let h=this[da](e),f=this[pa](e);Re.fchown(l,h,f,d=>d?Re.chown(c,h,f,p=>o(p&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[dt](u,e),r()}),e.pipe(a)),a.pipe(i)}[_0](e,r){let n=e.mode&4095||this.dmode;this[In](e.absolute,n,i=>{if(i){this[dt](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[$s](),e.resume())};e.mtime&&!this.noMtime&&(s++,Re.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[fa](e)&&(s++,Re.chown(e.absolute,this[da](e),this[pa](e),o)),o()})}[mC](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[dC](e,r){this[El](e,e.linkpath,"symlink",r)}[pC](e,r){let n=Bt(en.resolve(this.cwd,e.linkpath));this[El](e,n,"link",r)}[gC](){this[_l]++}[$s](){this[_l]--,this[p0]()}[b0](e){this[$s](),e.resume()}[y0](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!ya}[m0](e){this[gC]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[fC](e,n))}[vl](e){e.type==="SymbolicLink"?cj(this.dirCache):e.type!=="Directory"&&uj(this.dirCache,e.absolute)}[fC](e,r){this[vl](e);let n=a=>{this[vl](e),r(a)},i=()=>{this[In](this.cwd,this.dmode,a=>{if(a){this[dt](a,e),n();return}this[ma]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Bt(en.dirname(e.absolute));if(a!==this.cwd)return this[In](a,this.dmode,u=>{if(u){this[dt](u,e),n();return}o()})}o()},o=()=>{Re.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[b0](e),n();return}if(a||this[y0](e,u))return this[Jt](null,e,n);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=h=>this[Jt](h,e,n);return c?Re.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return Re.rmdir(e.absolute,c=>this[Jt](c,e,n))}if(e.absolute===this.cwd)return this[Jt](null,e,n);oj(e.absolute,c=>this[Jt](c,e,n))})};this[ma]?s():i()}[Jt](e,r,n){if(e){this[dt](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[g0](r,n);case"Link":return this[pC](r,n);case"SymbolicLink":return this[dC](r,n);case"Directory":case"GNUDumpDir":return this[_0](r,n)}}[El](e,r,n,i){Re[n](r,e.absolute,s=>{s?this[dt](s,e):(this[$s](),e.resume()),i()})}},bl=t=>{try{return[null,t()]}catch(e){return[e,null]}},v0=class extends ga{[Jt](e,r){return super[Jt](e,r,()=>{})}[m0](e){if(this[vl](e),!this[ma]){let s=this[In](this.cwd,this.dmode);if(s)return this[dt](s,e);this[ma]=!0}if(e.absolute!==this.cwd){let s=Bt(en.dirname(e.absolute));if(s!==this.cwd){let o=this[In](s,this.dmode);if(o)return this[dt](o,e)}}let[r,n]=bl(()=>Re.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[b0](e);if(r||this[y0](e,n))return this[Jt](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?bl(()=>{Re.chmodSync(e.absolute,e.mode)}):[];return this[Jt](a,e)}let[s]=bl(()=>Re.rmdirSync(e.absolute));this[Jt](s,e)}let[i]=e.absolute===this.cwd?[]:bl(()=>aj(e.absolute));this[Jt](i,e)}[g0](e,r){let n=e.mode&4095||this.fmode,i=a=>{let u;try{Re.closeSync(s)}catch(c){u=c}(a||u)&&this[dt](a||u,e),r()},s;try{s=Re.openSync(e.absolute,wC(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[dt](a,e)),e.pipe(o)),o.on("data",a=>{try{Re.writeSync(s,a,0,a.length)}catch(u){i(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{Re.futimesSync(s,c,l)}catch(h){try{Re.utimesSync(e.absolute,c,l)}catch{u=h}}}if(this[fa](e)){let c=this[da](e),l=this[pa](e);try{Re.fchownSync(s,c,l)}catch(h){try{Re.chownSync(e.absolute,c,l)}catch{u=u||h}}}i(u)})}[_0](e,r){let n=e.mode&4095||this.dmode,i=this[In](e.absolute,n);if(i){this[dt](i,e),r();return}if(e.mtime&&!this.noMtime)try{Re.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[fa](e))try{Re.chownSync(e.absolute,this[da](e),this[pa](e))}catch{}r(),e.resume()}[In](e,r){try{return vC.sync(Bt(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(n){return n}}[El](e,r,n,i){try{Re[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[dt](s,e)}}};ga.Sync=v0;xC.exports=ga});var RC=A((RY,CC)=>{"use strict";var lj=Es(),wl=E0(),AC=require("fs"),DC=Ms(),SC=require("path"),w0=ks();CC.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 n=lj(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&hj(n,e),n.file&&n.sync?fj(n):n.file?dj(n,r):n.sync?pj(n):mj(n)};var hj=(t,e)=>{let r=new Map(e.map(s=>[w0(s),!0])),n=t.filter,i=(s,o)=>{let a=o||SC.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(SC.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(w0(s)):s=>i(w0(s))},fj=t=>{let e=new wl.Sync(t),r=t.file,n=AC.statSync(r),i=t.maxReadSize||16*1024*1024;new DC.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},dj=(t,e)=>{let r=new wl(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),AC.stat(i,(u,c)=>{if(u)a(u);else{let l=new DC.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},pj=t=>new wl.Sync(t),mj=t=>new wl(t)});var kC=A(Ve=>{"use strict";Ve.c=Ve.create=lD();Ve.r=Ve.replace=n0();Ve.t=Ve.list=ll();Ve.u=Ve.update=bD();Ve.x=Ve.extract=RC();Ve.Pack=Kc();Ve.Unpack=E0();Ve.Parse=cl();Ve.ReadEntry=Fc();Ve.WriteEntry=Om();Ve.Header=Rs();Ve.Pax=Ic();Ve.types=dm()});var BC=A((PY,LC)=>{function Xt(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))}LC.exports=Xt;Xt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Xt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Xt.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 n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Xt.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)};Xt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Xt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Xt.prototype.start=Xt.prototype.try;Xt.prototype.errors=function(){return this._errors};Xt.prototype.attempts=function(){return this._attempts};Xt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var NC=A(yi=>{var vj=BC();yi.operation=function(t){var e=yi.timeouts(t);return new vj(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};yi.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 n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};yi.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};yi.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(u){var c=yi.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 jC=A((LY,MC)=>{MC.exports=NC()});var UC=A((BY,qC)=>{var Ej=jC();function wj(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Ej.operation(s);function a(l){i(l||new Error("Aborted"))}function u(l,h){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,h):i(o.mainError())}function c(l){var h;try{h=t(a,l)}catch(f){u(f,l);return}Promise.resolve(h).then(n).catch(function(d){u(d,l)})}o.attempt(c)}return new Promise(r)}qC.exports=wj});var i2=A(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});function x9(t){return t&&t.__esModule?t:{default:t}}var e2=Object.defineProperty,XC=Object.getOwnPropertySymbols,S9=Object.prototype.hasOwnProperty,A9=Object.prototype.propertyIsEnumerable,QC=(t,e,r)=>e in t?e2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,D9=(t,e)=>{for(var r in e||(e={}))S9.call(e,r)&&QC(t,r,e[r]);if(XC)for(var r of XC(e))A9.call(e,r)&&QC(t,r,e[r]);return t},C9=(t,e)=>{for(var r in e)e2(t,r,{get:e[r],enumerable:!0})},R9=(t,e,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())}),t2={};C9(t2,{configDir:()=>n2,darwinConfig:()=>q0,getPathForPlatform:()=>H0,getPlatform:()=>j0,linuxConfig:()=>Il,winConfig:()=>U0});var k9=require("fs/promises"),T9=require("path"),r2=x9(T9);function j0(){return process.platform}function Il(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return r2.default.join(process.env.HOME,".config")}function q0(){if(process.env.HOME!==void 0)return r2.default.join(process.env.HOME,"/Library/Application Support")}function U0(){return process.env.APPDATA}function H0({platform:t}){switch(t){case"linux":return Il();case"darwin":return q0();case"win32":return U0();default:return Il()}}function n2(){return R9(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:j0(),n=H0({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield k9.stat.call(void 0,n),n}catch{return}}})}Pr.__spreadValues=D9;Pr.getPlatform=j0;Pr.linuxConfig=Il;Pr.darwinConfig=q0;Pr.winConfig=U0;Pr.getPathForPlatform=H0;Pr.configDir=n2;Pr.config_dir_exports=t2});var s2=A($0=>{"use strict";Object.defineProperty($0,"__esModule",{value:!0});var O9=i2();$0.configDir=O9.configDir});var an=A((on,Ll)=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});var l2=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function q9(t){return l2.includes(t)}var U9=["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",...l2];function H9(t){return U9.includes(t)}var $9=["null","undefined","string","number","bigint","boolean","symbol"];function G9(t){return $9.includes(t)}function no(t){return e=>typeof e===t}var{toString:h2}=Object.prototype,va=t=>{let e=h2.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&O.domElement(t))return"HTMLElement";if(H9(e))return e},Fe=t=>e=>va(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=va(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=no("undefined");O.string=no("string");var z9=no("number");O.number=t=>z9(t)&&!O.nan(t);O.bigint=no("bigint");O.function_=no("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=no("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,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};O.blob=t=>Fe("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=>Fe("Promise")(t);var W9=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)||W9(t);O.generatorFunction=Fe("GeneratorFunction");O.asyncGeneratorFunction=t=>va(t)==="AsyncGeneratorFunction";O.asyncFunction=t=>va(t)==="AsyncFunction";O.boundFunction=t=>O.function_(t)&&!t.hasOwnProperty("prototype");O.regExp=Fe("RegExp");O.date=Fe("Date");O.error=Fe("Error");O.map=t=>Fe("Map")(t);O.set=t=>Fe("Set")(t);O.weakMap=t=>Fe("WeakMap")(t);O.weakSet=t=>Fe("WeakSet")(t);O.int8Array=Fe("Int8Array");O.uint8Array=Fe("Uint8Array");O.uint8ClampedArray=Fe("Uint8ClampedArray");O.int16Array=Fe("Int16Array");O.uint16Array=Fe("Uint16Array");O.int32Array=Fe("Int32Array");O.uint32Array=Fe("Uint32Array");O.float32Array=Fe("Float32Array");O.float64Array=Fe("Float64Array");O.bigInt64Array=Fe("BigInt64Array");O.bigUint64Array=Fe("BigUint64Array");O.arrayBuffer=Fe("ArrayBuffer");O.sharedArrayBuffer=Fe("SharedArrayBuffer");O.dataView=Fe("DataView");O.enumCase=(t,e)=>Object.values(e).includes(t);O.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;O.urlInstance=t=>Fe("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)||G9(typeof t);O.integer=t=>Number.isInteger(t);O.safeInteger=t=>Number.isSafeInteger(t);O.plainObject=t=>{if(h2.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};O.typedArray=t=>q9(va(t));var V9=t=>O.safeInteger(t)&&t>=0;O.arrayLike=t=>!O.nullOrUndefined(t)&&!O.function_(t)&&V9(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 Y9=1,K9=["innerHTML","ownerDocument","style","attributes","nodeValue"];O.domElement=t=>O.object(t)&&t.nodeType===Y9&&O.string(t.nodeName)&&!O.plainObject(t)&&K9.every(e=>e in t);O.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};O.nodeStream=t=>O.object(t)&&O.function_(t.pipe)&&!O.observable(t);O.infinite=t=>t===1/0||t===-1/0;var f2=t=>e=>O.integer(e)&&Math.abs(e%2)===t;O.evenInteger=f2(0);O.oddInteger=f2(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 Z9=t=>O.string(t)&&!/\S/.test(t);O.emptyStringOrWhitespace=t=>O.emptyString(t)||Z9(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=>Fe("FormData")(t);O.urlSearchParams=t=>Fe("URLSearchParams")(t);var d2=(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(n=>d2(Array.prototype.some,n,e));O.all=(t,...e)=>d2(Array.prototype.every,t,e);var se=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`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}.`)}};on.assert={undefined:t=>se(O.undefined(t),"undefined",t),string:t=>se(O.string(t),"string",t),number:t=>se(O.number(t),"number",t),bigint:t=>se(O.bigint(t),"bigint",t),function_:t=>se(O.function_(t),"Function",t),null_:t=>se(O.null_(t),"null",t),class_:t=>se(O.class_(t),"Class",t),boolean:t=>se(O.boolean(t),"boolean",t),symbol:t=>se(O.symbol(t),"symbol",t),numericString:t=>se(O.numericString(t),"string with a number",t),array:(t,e)=>{se(O.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>se(O.buffer(t),"Buffer",t),blob:t=>se(O.blob(t),"Blob",t),nullOrUndefined:t=>se(O.nullOrUndefined(t),"null or undefined",t),object:t=>se(O.object(t),"Object",t),iterable:t=>se(O.iterable(t),"Iterable",t),asyncIterable:t=>se(O.asyncIterable(t),"AsyncIterable",t),generator:t=>se(O.generator(t),"Generator",t),asyncGenerator:t=>se(O.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>se(O.nativePromise(t),"native Promise",t),promise:t=>se(O.promise(t),"Promise",t),generatorFunction:t=>se(O.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>se(O.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>se(O.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>se(O.boundFunction(t),"Function",t),regExp:t=>se(O.regExp(t),"RegExp",t),date:t=>se(O.date(t),"Date",t),error:t=>se(O.error(t),"Error",t),map:t=>se(O.map(t),"Map",t),set:t=>se(O.set(t),"Set",t),weakMap:t=>se(O.weakMap(t),"WeakMap",t),weakSet:t=>se(O.weakSet(t),"WeakSet",t),int8Array:t=>se(O.int8Array(t),"Int8Array",t),uint8Array:t=>se(O.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>se(O.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>se(O.int16Array(t),"Int16Array",t),uint16Array:t=>se(O.uint16Array(t),"Uint16Array",t),int32Array:t=>se(O.int32Array(t),"Int32Array",t),uint32Array:t=>se(O.uint32Array(t),"Uint32Array",t),float32Array:t=>se(O.float32Array(t),"Float32Array",t),float64Array:t=>se(O.float64Array(t),"Float64Array",t),bigInt64Array:t=>se(O.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>se(O.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>se(O.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>se(O.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>se(O.dataView(t),"DataView",t),enumCase:(t,e)=>se(O.enumCase(t,e),"EnumCase",t),urlInstance:t=>se(O.urlInstance(t),"URL",t),urlString:t=>se(O.urlString(t),"string with a URL",t),truthy:t=>se(O.truthy(t),"truthy",t),falsy:t=>se(O.falsy(t),"falsy",t),nan:t=>se(O.nan(t),"NaN",t),primitive:t=>se(O.primitive(t),"primitive",t),integer:t=>se(O.integer(t),"integer",t),safeInteger:t=>se(O.safeInteger(t),"integer",t),plainObject:t=>se(O.plainObject(t),"plain object",t),typedArray:t=>se(O.typedArray(t),"TypedArray",t),arrayLike:t=>se(O.arrayLike(t),"array-like",t),domElement:t=>se(O.domElement(t),"HTMLElement",t),observable:t=>se(O.observable(t),"Observable",t),nodeStream:t=>se(O.nodeStream(t),"Node.js Stream",t),infinite:t=>se(O.infinite(t),"infinite number",t),emptyArray:t=>se(O.emptyArray(t),"empty array",t),nonEmptyArray:t=>se(O.nonEmptyArray(t),"non-empty array",t),emptyString:t=>se(O.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>se(O.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>se(O.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>se(O.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>se(O.emptyObject(t),"empty object",t),nonEmptyObject:t=>se(O.nonEmptyObject(t),"non-empty object",t),emptySet:t=>se(O.emptySet(t),"empty set",t),nonEmptySet:t=>se(O.nonEmptySet(t),"non-empty set",t),emptyMap:t=>se(O.emptyMap(t),"empty map",t),nonEmptyMap:t=>se(O.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>se(O.propertyKey(t),"PropertyKey",t),formData:t=>se(O.formData(t),"FormData",t),urlSearchParams:t=>se(O.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>se(O.evenInteger(t),"even integer",t),oddInteger:t=>se(O.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>se(O.directInstanceOf(t,e),"T",t),inRange:(t,e)=>se(O.inRange(t,e),"in range",t),any:(t,...e)=>se(O.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>se(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(on.assert,{class:{value:on.assert.class_},function:{value:on.assert.function_},null:{value:on.assert.null_}});on.default=O;Ll.exports=O;Ll.exports.default=O;Ll.exports.assert=on.assert});var p2=A((yK,W0)=>{"use strict";var Bl=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},io=class{static fn(e){return(...r)=>new io((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(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(i,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 Bl(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(io.prototype,Promise.prototype);W0.exports=io;W0.exports.CancelError=Bl});var m2=A((Y0,K0)=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});function J9(t){return t.encrypted}var V0=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),J9(t)&&i&&(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)};Y0.default=V0;K0.exports=V0;K0.exports.default=V0});var y2=A((J0,X0)=>{"use strict";Object.defineProperty(J0,"__esModule",{value:!0});var X9=m2(),Q9=require("util"),eq=Number(process.versions.node.split(".")[0]),Z0=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 n=()=>{e.abort=Date.now(),(!e.response||eq>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,Q9.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),X9.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?i(t.socket):t.prependOnceListener("socket",i);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",n)}),e};J0.default=Z0;X0.exports=Z0;X0.exports.default=Z0});var x2=A((gK,ty)=>{"use strict";var{V4MAPPED:tq,ADDRCONFIG:rq,ALL:w2,promises:{Resolver:g2},lookup:nq}=require("dns"),{promisify:Q0}=require("util"),iq=require("os"),so=Symbol("cacheableLookupCreateConnection"),ey=Symbol("cacheableLookupInstance"),_2=Symbol("expires"),sq=typeof w2=="number",b2=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},oq=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},v2=()=>{let t=!1,e=!1;for(let r of Object.values(iq.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},aq=t=>Symbol.iterator in t,E2={ttl:!0},uq={all:!0},Nl=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new g2,lookup:o=nq}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=Q0(o),this._resolver instanceof g2?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Q0(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Q0(this._resolver.resolve6.bind(this._resolver))),this._iface=v2(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*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,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&tq&&(sq&&r.hints&w2||i.length===0)?oq(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&rq){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[n,i]=await Promise.all([this._resolve4(e,E2),this._resolve6(e,E2)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of n)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of i)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],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,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[_2]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}aq(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,uq);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 n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[_2];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(b2(e),so in e)throw new Error("CacheableLookup has been already installed");e[so]=e.createConnection,e[ey]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[so](r,n))}uninstall(e){if(b2(e),e[so]){if(e[ey]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[so],delete e[so],delete e[ey]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=v2(),(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()}};ty.exports=Nl;ty.exports.default=Nl});var D2=A((_K,A2)=>{"use strict";var cq="text/plain",lq="us-ascii",S2=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),hq=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.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(p=>p.trim());return f==="charset"&&(d=d.toLowerCase(),d===lq)?"":`${f}${d?`=${d}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==cq)&&l.unshift(u),`data:${l.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},fq=(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 hq(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 i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];S2(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])S2(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};A2.exports=fq});var k2=A((bK,R2)=>{R2.exports=C2;function C2(t,e){if(t&&e)return C2(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var ny=A((vK,ry)=>{var T2=k2();ry.exports=T2(Ml);ry.exports.strict=T2(O2);Ml.proto=Ml(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Ml(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return O2(this)},configurable:!0})});function Ml(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function O2(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 I2=A((EK,P2)=>{var dq=ny(),pq=function(){},mq=function(t){return t.setHeader&&typeof t.abort=="function"},yq=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},F2=function(t,e,r){if(typeof e=="function")return F2(t,null,e);e||(e={}),r=dq(r||pq);var n=t._writableState,i=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(m){r.call(t,m?new Error("exited with error code: "+m):null)},f=function(m){r.call(t,m)},d=function(){process.nextTick(p)},p=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},y=function(){t.req.on("finish",c)};return mq(t)?(t.on("complete",c),t.on("abort",d),t.req?y():t.on("request",y)):o&&!n&&(t.on("end",u),t.on("close",u)),yq(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)}};P2.exports=F2});var N2=A((wK,B2)=>{var gq=ny(),_q=I2(),iy=require("fs"),Ea=function(){},bq=/^v?\.0/.test(process.version),jl=function(t){return typeof t=="function"},vq=function(t){return!bq||!iy?!1:(t instanceof(iy.ReadStream||Ea)||t instanceof(iy.WriteStream||Ea))&&jl(t.close)},Eq=function(t){return t.setHeader&&jl(t.abort)},wq=function(t,e,r,n){n=gq(n);var i=!1;t.on("close",function(){i=!0}),_q(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,vq(t))return t.close(Ea);if(Eq(t))return t.abort();if(jl(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},L2=function(t){t()},xq=function(t,e){return t.pipe(e)},Sq=function(){var t=Array.prototype.slice.call(arguments),e=jl(t[t.length-1]||Ea)&&t.pop()||Ea;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return wq(i,o,a,function(u){r||(r=u),u&&n.forEach(L2),!o&&(n.forEach(L2),e(r))})});return t.reduce(xq)};B2.exports=Sq});var j2=A((xK,M2)=>{"use strict";var{PassThrough:Aq}=require("stream");M2.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new Aq({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var q2=A((SK,oo)=>{"use strict";var{constants:Dq}=require("buffer"),Cq=N2(),Rq=j2(),ql=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Ul(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=Dq.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=Cq(t,Rq(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new ql)})}),n.getBufferedValue()}oo.exports=Ul;oo.exports.default=Ul;oo.exports.buffer=(t,e)=>Ul(t,{...e,encoding:"buffer"});oo.exports.array=(t,e)=>Ul(t,{...e,array:!0});oo.exports.MaxBufferError=ql});var H2=A((DK,U2)=>{"use strict";var kq=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),Tq=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),Oq=new Set([500,502,503,504]),Fq={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Pq={"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 Iq(t){return t?Oq.has(t.status):!0}function sy(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function Lq(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}U2.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,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=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=sy(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=sy(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":Lq(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())&&Tq.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||kq.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=sy(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 n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)Fq[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.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 n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+ki(this._rescc["stale-if-error"]),n=e+ki(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*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 i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.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()&&Iq(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!Pq[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Hl=A((CK,$2)=>{"use strict";$2.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var z2=A((RK,G2)=>{"use strict";var Bq=require("stream").Readable,Nq=Hl(),oy=class extends Bq{constructor(e,r,n,i){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(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=Nq(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};G2.exports=oy});var V2=A((kK,W2)=>{"use strict";var Mq=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];W2.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(Mq));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var K2=A((TK,Y2)=>{"use strict";var jq=require("stream").PassThrough,qq=V2(),Uq=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new jq;return qq(t,e),t.pipe(e)};Y2.exports=Uq});var Z2=A(ay=>{ay.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="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};ay.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 eR=A((FK,Q2)=>{"use strict";var Hq=require("events"),J2=Z2(),$q=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},X2=["sqlite","postgres","mysql","mongo","redis","tiered"],uy=class extends Hq{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:J2.stringify,deserialize:J2.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=$q(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 i=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=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return X2.includes(this.opts.store.opts.dialect)||X2.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:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.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(()=>i?n.getMany(s):n.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(i){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,n){let i=this._getKeyPrefix(e);typeof n=="undefined"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n: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(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Q2.exports=uy});var nR=A((PK,rR)=>{"use strict";var Gq=require("events"),$l=require("url"),zq=D2(),Wq=q2(),cy=H2(),tR=z2(),Vq=Hl(),Yq=K2(),Kq=eR(),hr=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new Kq({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=ly($l.parse(r)),r={};else if(r instanceof $l.URL)i=ly($l.parse(r.toString())),r={};else{let[h,...f]=(r.path||"").split("?"),d=f.length>0?`?${f.join("?")}`:"";i=ly({...r,pathname:h,search:d})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...Zq(i)},r.headers=Vq(r.headers);let s=new Gq,o=zq($l.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=h=>{c=!0;let f=!1,d,p=new Promise(m=>{d=()=>{f||(f=!0,m())}}),y=m=>{if(u&&!h.forceRefresh){m.status=m.statusCode;let T=cy.fromObject(u.cachePolicy).revalidatedPolicy(h,m);if(!T.modified){let F=T.policy.responseHeaders();m=new tR(u.statusCode,F,u.body,u.url),m.cachePolicy=T.policy,m.fromCache=!0}}m.fromCache||(m.cachePolicy=new cy(h,m,h),m.fromCache=!1);let w;h.cache&&m.cachePolicy.storable()?(w=Yq(m),(async()=>{try{let T=Wq.buffer(m);if(await Promise.race([p,new Promise(M=>m.once("end",M))]),f)return;let F=await T,I={cachePolicy:m.cachePolicy.toObject(),url:m.url,statusCode:m.fromCache?u.statusCode:m.statusCode,body:F},R=h.strictTtl?m.cachePolicy.timeToLive():void 0;h.maxTtl&&(R=R?Math.min(R,h.maxTtl):h.maxTtl),await this.cache.set(a,I,R)}catch(T){s.emit("error",new hr.CacheError(T))}})()):h.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(T){s.emit("error",new hr.CacheError(T))}})(),s.emit("response",w||m),typeof n=="function"&&n(w||m)};try{let m=e(h,y);m.once("error",d),m.once("abort",d),s.emit("request",m)}catch(m){s.emit("error",new hr.RequestError(m))}};return(async()=>{let h=async d=>{await Promise.resolve();let p=d.cache?await this.cache.get(a):void 0;if(typeof p=="undefined")return l(d);let y=cy.fromObject(p.cachePolicy);if(y.satisfiesWithoutRevalidation(d)&&!d.forceRefresh){let m=y.responseHeaders(),w=new tR(p.statusCode,m,p.body,p.url);w.cachePolicy=y,w.fromCache=!0,s.emit("response",w),typeof n=="function"&&n(w)}else u=p,d.headers=y.revalidationHeaders(d),l(d)},f=d=>s.emit("error",new hr.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 hr.CacheError(d))}})(),s}}};function Zq(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function ly(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}hr.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};hr.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};rR.exports=hr});var sR=A((BK,iR)=>{"use strict";var Jq=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];iR.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(Jq)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),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 aR=A((NK,oR)=>{"use strict";var{Transform:Xq,PassThrough:Qq}=require("stream"),hy=require("zlib"),eU=sR();oR.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof hy.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new Xq({transform(a,u,c){n=!1,c(null,a)},flush(a){a()}}),s=new Qq({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?hy.createBrotliDecompress():hy.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),eU(t,s),t.pipe(i).pipe(o).pipe(s),s}});var dy=A((MK,uR)=>{"use strict";var fy=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[n,i]of this.oldCache.entries())this.onEviction(n,i);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)}};uR.exports=fy});var my=A((jK,fR)=>{"use strict";var tU=require("events"),rU=require("tls"),nU=require("http2"),iU=dy(),_t=Symbol("currentStreamsCount"),cR=Symbol("request"),tr=Symbol("cachedOriginSet"),ao=Symbol("gracefullyClosing"),sU=["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"],oU=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},aU=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,py=(t,e)=>{for(let r of t)r[tr].length<e[tr].length&&r[tr].every(n=>e[tr].includes(n))&&r[_t]+e[_t]<=e.remoteSettings.maxConcurrentStreams&&hR(r)},uU=(t,e)=>{for(let r of t)e[tr].length<r[tr].length&&e[tr].every(n=>r[tr].includes(n))&&e[_t]+r[_t]<=r.remoteSettings.maxConcurrentStreams&&hR(e)},lR=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Ir.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},hR=t=>{t[ao]=!0,t[_t]===0&&t.close()},Ir=class extends tU{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new iU({maxSize:i})}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 n of sU)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Ir.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:l}of n)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 p of l){let y=p.remoteSettings.maxConcurrentStreams;if(y<h)break;if(p[tr].includes(a)){let m=p[_t];if(m>=y||p[ao]||p.destroyed)continue;d||(h=y),m>f&&(d=p,f=m)}}if(d){if(n.length!==1){for(let{reject:p}of n){let y=new Error(`Expected the length of listeners to be 1, got ${n.length}.
26
+ Please report this to https://github.com/szmarczak/http2-wrapper/`);p(y)}return}n[0].resolve(d);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),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=nU.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});f[_t]=0,f[ao]=!1;let d=()=>f[_t]<f.remoteSettings.maxConcurrentStreams,p=!0;f.socket.once("session",m=>{this.tlsSessionCache.set(l,m)}),f.once("error",m=>{for(let{reject:w}of n)w(m);this.tlsSessionCache.delete(l)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(h){p&&this._freeSessionsCount--,this._sessionsCount--;let m=this.sessions[o];m.splice(m.indexOf(f),1),m.length===0&&delete this.sessions[o]}else{let m=new Error("Session closed without receiving a SETTINGS frame");m.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:w}of n)w(m);u()}this._tryToCreateNewSession(o,a)});let y=()=>{if(!(!(o in this.queue)||!d())){for(let m of f[tr])if(m in this.queue[o]){let{listeners:w}=this.queue[o][m];for(;w.length!==0&&d();)w.shift().resolve(f);let T=this.queue[o];if(T[m].listeners.length===0&&(delete T[m],Object.keys(T).length===0)){delete this.queue[o];break}if(!d())break}}};f.on("origin",()=>{f[tr]=f.originSet,d()&&(y(),py(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(f.ref(),f.unref(),this._sessionsCount++,c.destroyed){let m=new Error("Agent has been destroyed");for(let w of n)w.reject(m);f.destroy();return}f[tr]=f.originSet;{let m=this.sessions;if(o in m){let w=m[o];w.splice(oU(w,f,aU),0,f)}else m[o]=[f]}this._freeSessionsCount+=1,h=!0,this.emit("session",f),y(),u(),f[_t]===0&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),f.on("remoteSettings",()=>{y(),py(this.sessions[o],f)})}),f[cR]=f.request,f.request=(m,w)=>{if(f[ao])throw new Error("The session is gracefully closing. No new streams are allowed.");let T=f[cR](m,w);return f.ref(),++f[_t],f[_t]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,T.once("close",()=>{if(p=d(),--f[_t],!f.destroyed&&!f.closed&&(uU(this.sessions[o],f),d()&&!f.closed)){p||(this._freeSessionsCount++,p=!0);let F=f[_t]===0;F&&f.unref(),F&&(this._freeSessionsCount>this.maxFreeSessions||f[ao])?f.close():(py(this.sessions[o],f),y())}}),T}}catch(f){for(let d of n)d.reject(f);u()}};c.listeners=n,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(u){o(u)}}}])})}createConnection(e,r){return Ir.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=i),rU.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[_t]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return lR({agent:this,isFree:!0})}get busySessions(){return lR({agent:this,isFree:!1})}};Ir.kCurrentStreamsCount=_t;Ir.kGracefullyClosing=ao;fR.exports={Agent:Ir,globalAgent:new Ir}});var gy=A((qK,dR)=>{"use strict";var{Readable:cU}=require("stream"),yy=class extends cU{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()}};dR.exports=yy});var _y=A((UK,pR)=>{"use strict";pR.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 yR=A((HK,mR)=>{"use strict";mR.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var _R=A(($K,gR)=>{"use strict";gR.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var vR=A((zK,bR)=>{"use strict";var uo=(t,e,r)=>{bR.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};uo(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});uo(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);uo(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);uo(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);uo(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);uo(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var xy=A((WK,CR)=>{"use strict";var lU=require("http2"),{Writable:hU}=require("stream"),{Agent:ER,globalAgent:fU}=my(),dU=gy(),pU=_y(),mU=yR(),yU=_R(),{ERR_INVALID_ARG_TYPE:by,ERR_INVALID_PROTOCOL:gU,ERR_HTTP_HEADERS_SENT:wR,ERR_INVALID_HTTP_TOKEN:_U,ERR_HTTP_INVALID_HEADER_VALUE:bU,ERR_INVALID_CHAR:vU}=vR(),{HTTP2_HEADER_STATUS:xR,HTTP2_HEADER_METHOD:SR,HTTP2_HEADER_PATH:AR,HTTP2_METHOD_CONNECT:EU}=lU.constants,pt=Symbol("headers"),vy=Symbol("origin"),Ey=Symbol("session"),DR=Symbol("options"),Gl=Symbol("flushedHeaders"),wa=Symbol("jobs"),wU=/^[\^`\-\w!#$%&*+.|~]+$/,xU=/[^\t\u0020-\u007E\u0080-\u00FF]/,wy=class extends hU{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=pU(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[Ey]=r.h2session;else if(r.agent===!1)this.agent=new ER({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new ER({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=fU;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new by("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new gU(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[pt]=Object.create(null),this[wa]=[],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[pt])&&(this[pt].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[DR]=r,s===443?(this[vy]=`https://${o}`,":authority"in this[pt]||(this[pt][":authority"]=o)):(this[vy]=`https://${o}:${s}`,":authority"in this[pt]||(this[pt][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[Gl]=!1}get method(){return this[pt][SR]}set method(e){e&&(this[pt][SR]=e.toUpperCase())}get path(){return this[pt][AR]}set path(e){e&&(this[pt][AR]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[wa].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[wa].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[Gl]||this.destroyed)return;this[Gl]=!0;let e=this.method===EU,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||mU(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,u)=>{let c=new dU(this.socket,n.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[xR],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,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",l=>{!c._dumped&&!c.push(l)&&n.pause()}),n.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[xR]}))),n.once("trailers",i((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[wa])o();this.emit("socket",this.socket)};if(this[Ey])try{r(this[Ey].request(this[pt]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[vy],this[DR],this[pt]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new by("name","string",e);return this[pt][e.toLowerCase()]}get headersSent(){return this[Gl]}removeHeader(e){if(typeof e!="string")throw new by("name","string",e);if(this.headersSent)throw new wR("remove");delete this[pt][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new wR("set");if(typeof e!="string"||!wU.test(e)&&!yU(e))throw new _U("Header name",e);if(typeof r=="undefined")throw new bU(r,e);if(xU.test(r))throw new vU("header content",e);this[pt][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[wa].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};CR.exports=wy});var kR=A((VK,RR)=>{"use strict";var SU=require("tls");RR.exports=(t={},e=SU.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",a)}catch(c){n(c)}})()})});var OR=A((YK,TR)=>{"use strict";var AU=require("net");TR.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]),AU.isIP(e)?"":e}});var IR=A((KK,Ay)=>{"use strict";var FR=require("http"),Sy=require("https"),DU=kR(),CU=dy(),RU=xy(),kU=OR(),TU=_y(),zl=new CU({maxSize:100}),xa=new Map,PR=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},OU=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!zl.has(e)){if(xa.has(e))return(await xa.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=DU(t);xa.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(zl.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=Sy,u=Sy.Agent.prototype.createConnection;n?n.createConnection===u?PR(n,s,t):s.destroy():a.createConnection===u?PR(a,s,t):s.destroy()}return xa.delete(e),o}catch(s){throw xa.delete(e),s}}return zl.get(e)};Ay.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=TU(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 n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||kU(e),e.port=e.port||(n?443:80),e._defaultAgent=n?Sy.globalAgent:FR.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await OU(e)==="h2"?(i&&(e.agent=i.http2),new RU(e,r)):FR.request(e,r)};Ay.exports.protocolCache=zl});var BR=A((ZK,LR)=>{"use strict";var FU=require("http2"),PU=my(),Dy=xy(),IU=gy(),LU=IR(),BU=(t,e,r)=>new Dy(t,e,r),NU=(t,e,r)=>{let n=new Dy(t,e,r);return n.end(),n};LR.exports={...FU,ClientRequest:Dy,IncomingMessage:IU,...PU,request:BU,get:NU,auto:LU}});var Ry=A(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var NR=an();Cy.default=t=>NR.default.nodeStream(t)&&NR.default.function_(t.getBoundary)});var UR=A(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var jR=require("fs"),qR=require("util"),MR=an(),MU=Ry(),jU=qR.promisify(jR.stat);ky.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(MR.default.string(t))return Buffer.byteLength(t);if(MR.default.buffer(t))return t.length;if(MU.default(t))return qR.promisify(t.getLength.bind(t))();if(t instanceof jR.ReadStream){let{size:r}=await jU(t.path);return r===0?void 0:r}}});var Oy=A(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});function qU(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}Ty.default=qU});var HR=A(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var GR=A(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.TimeoutError=void 0;var UU=require("net"),HU=HR(),$R=Symbol("reentry"),$U=()=>{},Wl=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Sa.TimeoutError=Wl;Sa.default=(t,e,r)=>{if($R in t)return $U;t[$R]=!0;let n=[],{once:i,unhandleAll:s}=HU.default(),o=(h,f,d)=>{var p;let y=setTimeout(f,h,h,d);(p=y.unref)===null||p===void 0||p.call(y);let m=()=>{clearTimeout(y)};return n.push(m),m},{host:a,hostname:u}=r,c=(h,f)=>{t.destroy(new Wl(h,f))},l=()=>{for(let h of n)h();s()};if(t.once("error",h=>{if(l(),t.listenerCount("error")===0)throw h}),t.once("close",l),i(t,"response",h=>{i(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),n.push(()=>{t.removeListener("timeout",h)})}return i(t,"socket",h=>{var f;let{socketPath:d}=t;if(h.connecting){let p=!!(d!=null?d:UU.isIP((f=u!=null?u:a)!==null&&f!==void 0?f:"")!==0);if(typeof e.lookup!="undefined"&&!p&&typeof h.address().address=="undefined"){let y=o(e.lookup,c,"lookup");i(h,"lookup",y)}if(typeof e.connect!="undefined"){let y=()=>o(e.connect,c,"connect");p?i(h,"connect",y()):i(h,"lookup",m=>{m===null&&i(h,"connect",y())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&i(h,"connect",()=>{let y=o(e.secureConnect,c,"secureConnect");i(h,"secureConnect",y)})}if(typeof e.send!="undefined"){let p=()=>o(e.send,c,"send");h.connecting?i(h,"connect",()=>{i(t,"upload-complete",p())}):i(t,"upload-complete",p())}}),typeof e.response!="undefined"&&i(t,"upload-complete",()=>{let h=o(e.response,c,"response");i(t,"response",h)}),l}});var WR=A(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var zR=an();Py.default=t=>{t=t;let e={protocol:t.protocol,hostname:zR.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 zR.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 VR=A(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var GU=require("url"),zU=["protocol","host","hostname","port","pathname","search"];Iy.default=(t,e)=>{var r,n;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}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new GU.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 zU)e[s]&&(i[s]=e[s].toString());return i}});var YR=A(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var Ly=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)}};By.default=Ly});var My=A(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var WU=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Ny.default=WU});var ZR=A(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.dnsLookupIpVersionToFamily=Ti.isDnsLookupIpVersion=void 0;var KR={auto:0,ipv4:4,ipv6:6};Ti.isDnsLookupIpVersion=t=>t in KR;Ti.dnsLookupIpVersionToFamily=t=>{if(Ti.isDnsLookupIpVersion(t))return KR[t];throw new Error("Invalid DNS lookup IP version")}});var jy=A(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.isResponseOk=void 0;Vl.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var XR=A(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var JR=new Set;qy.default=t=>{JR.has(t)||(JR.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var QR=A(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var Ne=an(),VU=(t,e)=>{if(Ne.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Ne.assert.any([Ne.default.string,Ne.default.undefined],t.encoding),Ne.assert.any([Ne.default.boolean,Ne.default.undefined],t.resolveBodyOnly),Ne.assert.any([Ne.default.boolean,Ne.default.undefined],t.methodRewriting),Ne.assert.any([Ne.default.boolean,Ne.default.undefined],t.isStream),Ne.assert.any([Ne.default.string,Ne.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Ne.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):Ne.default.number(r)&&(t.retry.limit=r),Ne.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(Ne.default.number))),Ne.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!Ne.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Ne.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Ne.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Ne.default.function_(n.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};Uy.default=VU});var ek=A(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.retryAfterStatusCodes=void 0;Aa.retryAfterStatusCodes=new Set([413,429,503]);var YU=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Aa.default=YU});var Ra=A(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.UnsupportedProtocolError=Te.ReadError=Te.TimeoutError=Te.UploadError=Te.CacheError=Te.HTTPError=Te.MaxRedirectsError=Te.RequestError=Te.setNonEnumerableProperties=Te.knownHookEvents=Te.withoutBody=Te.kIsNormalizedAlready=void 0;var tk=require("util"),rk=require("stream"),KU=require("fs"),jn=require("url"),nk=require("http"),Hy=require("http"),ZU=require("https"),JU=y2(),XU=x2(),ik=nR(),QU=aR(),e7=BR(),t7=Hl(),K=an(),r7=UR(),sk=Ry(),n7=Oy(),ok=GR(),i7=WR(),ak=VR(),s7=YR(),o7=My(),uk=ZR(),a7=jy(),qn=XR(),u7=QR(),c7=ek(),$y,it=Symbol("request"),Zl=Symbol("response"),co=Symbol("responseSize"),lo=Symbol("downloadedSize"),ho=Symbol("bodySize"),fo=Symbol("uploadedSize"),Yl=Symbol("serverResponsesPiped"),ck=Symbol("unproxyEvents"),lk=Symbol("isFromCache"),Gy=Symbol("cancelTimeouts"),hk=Symbol("startedReading"),po=Symbol("stopReading"),Kl=Symbol("triggerRead"),Un=Symbol("body"),Da=Symbol("jobs"),fk=Symbol("originalResponse"),dk=Symbol("retryTimeout");Te.kIsNormalizedAlready=Symbol("isNormalizedAlready");var l7=K.default.string(process.versions.brotli);Te.withoutBody=new Set(["GET","HEAD"]);Te.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function h7(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 f7(t){return K.default.object(t)&&!("statusCode"in t)}var zy=new s7.default,d7=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),p7=new Set([300,301,302,303,304,307,308]),m7=["context","body","json","form"];Te.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(n)for(let i of m7)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var Ue=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof nh?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[Zl]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),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(`
27
27
  `).reverse(),u=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
28
28
  `).reverse();for(;u.length!==0&&u[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
29
29
  `)}${u.reverse().join(`
30
- `)}`}}};Te.RequestError=Ue;var Kl=class extends Ue{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};Te.MaxRedirectsError=Kl;var Zl=class extends Ue{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};Te.HTTPError=Zl;var Jl=class extends Ue{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};Te.CacheError=Jl;var Xl=class extends Ue{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};Te.UploadError=Xl;var Ql=class extends Ue{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};Te.TimeoutError=Ql;var Ca=class extends Ue{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}};Te.ReadError=Ca;var eh=class extends Ue{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};Te.UnsupportedProtocolError=eh;var p7=["socket","connect","continue","information","upgrade","timeout"],th=class extends ek.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[lo]=0,this[fo]=0,this.requestInitialized=!1,this[Wl]=new Set,this.redirects=[],this[po]=!1,this[Vl]=!1,this[Da]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",i),c.on("data",s),c.prependListener("end",i),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",i),c.off("data",s),c.off("end",i),c.off("end",s)}),this.on("pipe",c=>{c instanceof jy.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),Te.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(c){K.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof VU.ReadStream&&await h7(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[it])===null||c===void 0||c.destroy();return}for(let h of this[Da])h();this[Da].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Ue){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,n){var i,s,o,a,u;let c=r;if(K.default.object(e)&&!K.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),K.default.urlInstance(r.url)&&(r.url=new jn.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([ok.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===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=QU({...n==null?void 0:n.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!==(n==null?void 0:n.searchParams)){let d;if(K.default.string(r.searchParams)||r.searchParams instanceof jn.URLSearchParams)d=new jn.URLSearchParams(r.searchParams);else{c7(r.searchParams),d=new jn.URLSearchParams;for(let p in r.searchParams){let y=r.searchParams[p];y===null?d.append(p,""):y!==void 0&&d.append(p,y)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((p,y)=>{d.has(y)||d.append(y,p)}),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=n==null?void 0:n.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=sk.default(r.prefixUrl+r.url,r)}else(K.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=sk.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:d}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let m=r.url;if(!m.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${d} to ${y}: ${m.href}`);r.url=new jn.URL(y+m.href.slice(d.length)),d=y},get:()=>d});let{protocol:p}=r.url;if(p==="unix:"&&(p="http:",r.url=new jn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),p!=="http:"&&p!=="https:")throw new eh(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:p}=l;K.assert.function_(d),K.assert.function_(p),d.length===4&&p.length===0&&(d=QR.promisify(d.bind(r.cookieJar)),p=QR.promisify(p.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:p})}let{cache:h}=r;if(h&&(Hy.has(h)||Hy.set(h,new rk((d,p)=>{let y=d[it](d,p);return K.default.promise(y)&&(y.once=(m,w)=>{if(m==="error")y.catch(w);else if(m==="abort")(async()=>{try{(await y).once("abort",w)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${m}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)qy||(qy=new ZU.default),r.dnsCache=qy;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}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let f=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let d of Te.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(n&&!f)for(let d of Te.knownHookEvents)n.hooks[d].length>0&&(r.hooks[d]=[...n.hooks[d],...r.hooks[d]]);if("family"in r&&qn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&qn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&qn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&qn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&qn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&qn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&qn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&qn.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,Te.setNonEnumerableProperties([n,c],r),o7.default(r,n)}_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,n=!K.default.undefined(e.form),i=!K.default.undefined(e.json),s=!K.default.undefined(e.body),o=n||i||s,a=Te.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,n,i].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof ek.Readable)&&!K.default.string(e.body)&&!K.default.buffer(e.body)&&!nk.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!K.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!K.default.string(r["content-type"]);s?(nk.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Un]=e.body):n?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Un]=new jn.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Un]=e.stringifyJson(e.json));let c=await e7.default(this[Un],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[ho]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[lk]=e,r.decompress&&(e=JU(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:tk.STATUS_CODES[i],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[uk]=s.isFromCache,this[co]=Number(e.headers["content-length"])||void 0,this[Yl]=e,e.once("end",()=>{this[co]=this[lo],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Ca(a,this))}),e.once("aborted",()=>{this._beforeError(new Ca({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,n.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&&f7.has(i)){if(e.resume(),this[it]&&(this[Uy](),delete this[it],this[ak]()),(i===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[Un]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Kl(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new jn.URL(u,n),l=c.toString();if(decodeURI(l),!h(n)&&h(c)){this._beforeError(new Ue("Cannot redirect to UNIX socket",{},this));return}c.hostname!==n.hostname||c.port!==n.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&&!s7.isResponseOk(s)){this._beforeError(new Zl(s));return}e.on("readable",()=>{this[Vl]&&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[Wl])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=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;KU.default(e),this[Uy]=ik.default(e,n,i);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 ik.TimeoutError?new Ql(u,this.timings,this):new Ue(u.message,u,this),this._beforeError(u)}),this[ak]=t7.default(e,this,p7),this[it]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Un],a=this.redirects.length===0?this:e;K.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new Xl(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((n,i)=>{Object.assign(r,r7.default(e)),delete r.url;let s,o=Hy.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,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"]=u7?"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 T=await w(o);if(!K.default.undefined(T)){o.request=()=>T;break}}o.body&&this[Un]!==o.body&&(this[Un]=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:T,path:F}=w.groups;Object.assign(o,{socketPath:T,path:F,host:""})}}let f=h.protocol==="https:",d;o.http2?d=XU.auto:d=f?YU.request:tk.request;let p=(e=o.request)!==null&&e!==void 0?e:d,y=o.cache?this._createCacheableRequest:p;u&&!o.http2&&(o.agent=u[f?"https":"http"]),o[it]=p,delete o.request,delete o.timeout;let m=o;if(m.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,m.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,m.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,m.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{m.family=ok.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(m.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(m.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(m.ca=o.https.certificateAuthority),o.https.certificate&&(m.cert=o.https.certificate),o.https.key&&(m.key=o.https.key),o.https.passphrase&&(m.passphrase=o.https.passphrase),o.https.pfx&&(m.pfx=o.https.pfx));try{let w=await y(h,m);K.default.undefined(w)&&(w=d(h,m)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete m.rejectUnauthorized,o.https.checkServerIdentity&&delete m.checkServerIdentity,o.https.certificateAuthority&&delete m.ca,o.https.certificate&&delete m.cert,o.https.key&&delete m.key,o.https.passphrase&&delete m.passphrase,o.https.pfx&&delete m.pfx),l7(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 rk.CacheError?new Jl(w,this):new Ue(w.message,w,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Ue(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[po])return;let{options:r}=this,n=this.retryCount+1;this[po]=!0,e instanceof Ue||(e=new Ue(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await i7.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:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:a7.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Ue(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,i,n)}catch(u){this._error(new Ue(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[hk]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[Vl]=!0;let e=this[Yl];if(e&&!this[po]){e.readableLength&&(this[Vl]=!1);let r;for(;(r=e.read())!==null;){this[lo]+=r.length,this[ck]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[Da].push(i)}_writeRequest(e,r,n){this[it].destroyed||(this._progressCallbacks.push(()=>{this[fo]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[it].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(it in this)){e();return}if(this[it].destroyed){e();return}this[it].end(n=>{n||(this[ho]=this[fo],this.emit("uploadProgress",this.uploadProgress),this[it].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[Da].push(r)}_destroy(e,r){var n;this[po]=!0,clearTimeout(this[hk]),it in this&&(this[Uy](),!((n=this[Yl])===null||n===void 0)&&n.complete||this[it].destroy()),e!==null&&!K.default.undefined(e)&&!(e instanceof Ue)&&(e=new Ue(e.message,e,this)),r(e)}get _isAboutToError(){return this[po]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[it])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[lk])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[it])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[co]?e=this[lo]/this[co]:this[co]===this[lo]?e=1:e=0,{percent:e,transferred:this[lo],total:this[co]}}get uploadProgress(){let e;return this[ho]?e=this[fo]/this[ho]:this[ho]===this[fo]?e=1:e=0,{percent:e,transferred:this[fo],total:this[ho]}}get timings(){var e;return(e=this[it])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[uk]}pipe(e,r){if(this[ck])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof jy.ServerResponse&&this[Wl].add(e),super.pipe(e,r)}unpipe(e){return e instanceof jy.ServerResponse&&this[Wl].delete(e),super.unpipe(e),this}};Te.default=th});var ka=A(fr=>{"use strict";var m7=fr&&fr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),y7=fr&&fr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&m7(e,t,r)};Object.defineProperty(fr,"__esModule",{value:!0});fr.CancelError=fr.ParseError=void 0;var fk=Ra(),$y=class extends fk.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};fr.ParseError=$y;var Gy=class extends fk.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};fr.CancelError=Gy;y7(Ra(),fr)});var pk=A(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});var dk=ka(),g7=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new dk.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new dk.ParseError(s,t)}};zy.default=g7});var Wy=A(Hn=>{"use strict";var _7=Hn&&Hn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),b7=Hn&&Hn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&_7(e,t,r)};Object.defineProperty(Hn,"__esModule",{value:!0});var v7=require("events"),E7=an(),w7=f2(),rh=ka(),mk=pk(),yk=Ra(),x7=Ry(),S7=Ly(),gk=By(),A7=["request","response","redirect","uploadProgress","downloadProgress"];function _k(t){let e,r,n=new v7.EventEmitter,i=new w7((o,a,u)=>{let c=l=>{let h=new yk.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new rh.CancelError(h))),e=h,h.once("response",async p=>{var y;if(p.retryCount=l,p.request.aborted)return;let m;try{m=await S7.default(h),p.rawBody=m}catch{return}if(h._isAboutToError)return;let w=((y=p.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),T=["gzip","deflate","br"].includes(w),{options:F}=h;if(T&&!F.decompress)p.body=m;else try{p.body=mk.default(p,F.responseType,F.parseJson,F.encoding)}catch(I){if(p.body=m.toString(),gk.isResponseOk(p)){h._beforeError(I);return}}try{for(let[I,R]of F.hooks.afterResponse.entries())p=await R(p,async M=>{let x=yk.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},F);x.hooks.afterResponse=x.hooks.afterResponse.slice(0,I);for(let U of x.hooks.beforeRetry)await U(x);let D=_k(x);return u(()=>{D.catch(()=>{}),D.cancel()}),D})}catch(I){h._beforeError(new rh.RequestError(I.message,I,h));return}if(r=p,!gk.isResponseOk(p)){h._beforeError(new rh.HTTPError(p));return}h.destroy(),o(h.options.resolveBodyOnly?p.body:p)});let f=p=>{if(i.isCanceled)return;let{options:y}=h;if(p instanceof rh.HTTPError&&!y.throwHttpErrors){let{response:m}=p;o(h.options.resolveBodyOnly?m.body:m);return}a(p)};h.once("error",f);let d=h.options.body;h.once("retry",(p,y)=>{var m,w;if(d===((m=y.request)===null||m===void 0?void 0:m.options.body)&&E7.default.nodeStream((w=y.request)===null||w===void 0?void 0:w.options.body)){f(y);return}c(p)}),x7.default(h,n,A7)};c(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:u}=r.request;return mk.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}Hn.default=_k;b7(ka(),Hn)});var bk=A(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var D7=ka();function C7(t,...e){let r=(async()=>{if(t instanceof D7.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Vy.default=C7});var wk=A(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var vk=an();function Ek(t){for(let e of Object.values(t))(vk.default.plainObject(e)||vk.default.array(e))&&Ek(e);return Object.freeze(t)}Yy.default=Ek});var Sk=A(xk=>{"use strict";Object.defineProperty(xk,"__esModule",{value:!0})});var Ky=A(nr=>{"use strict";var R7=nr&&nr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),k7=nr&&nr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&R7(e,t,r)};Object.defineProperty(nr,"__esModule",{value:!0});nr.defaultHandler=void 0;var Ak=an(),rr=Wy(),T7=bk(),ih=Ra(),O7=wk(),F7={RequestError:rr.RequestError,CacheError:rr.CacheError,ReadError:rr.ReadError,HTTPError:rr.HTTPError,MaxRedirectsError:rr.MaxRedirectsError,TimeoutError:rr.TimeoutError,ParseError:rr.ParseError,CancelError:rr.CancelError,UnsupportedProtocolError:rr.UnsupportedProtocolError,UploadError:rr.UploadError},P7=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:nh}=ih.default,Dk=(...t)=>{let e;for(let r of t)e=nh(void 0,r,e);return e},I7=t=>t.isStream?new ih.default(void 0,t):rr.default(t),L7=t=>"defaults"in t&&"options"in t.defaults,B7=["get","post","put","patch","head","delete"];nr.defaultHandler=(t,e)=>e(t);var Ck=(t,e)=>{if(t)for(let r of t)r(e)},Rk=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,u=>(o=s(u),o));if(a!==o&&!i.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=(n,i={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?I7:c);if(Ak.default.plainObject(n)){let l={...n,...i};ih.setNonEnumerableProperties([n,i],l),i=l,n=void 0}try{let l;try{Ck(t.options.hooks.init,i),Ck((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(f){l=f}let h=nh(n,i,s!=null?s:t.options);if(h[ih.kIsNormalizedAlready]=!0,l)throw new rr.RequestError(l.message,l,h);return c(h)}catch(l){if(i.isStream)throw l;return T7.default(l,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)L7(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==nr.defaultHandler),s.length===0&&s.push(nr.defaultHandler),Rk({options:Dk(...i),handlers:s,mutableDefaults:!!o})};let r=async function*(n,i){let s=nh(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!Ak.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 P7(o.backoff);let l=await e(void 0,void 0,s),h=await o.transform(l),f=[];for(let p of h)if(o.filter(p,a,f)&&(!o.shouldContinue(p,a,f)||(yield p,o.stackAllItems&&a.push(p),f.push(p),--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=nh(void 0,d,s)),c++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of B7)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,F7),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:O7.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=Dk,e};nr.default=Rk;k7(Sk(),nr)});var Ok=A((un,sh)=>{"use strict";var N7=un&&un.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),kk=un&&un.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&N7(e,t,r)};Object.defineProperty(un,"__esModule",{value:!0});var M7=require("url"),Tk=Ky(),j7={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 n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new M7.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:[Tk.defaultHandler],mutableDefaults:!1},Zy=Tk.default(j7);un.default=Zy;sh.exports=Zy;sh.exports.default=Zy;sh.exports.__esModule=!0;kk(Ky(),un);kk(Wy(),un)});var Pk=A((xZ,H7)=>{H7.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Bk=A(Ut=>{"use strict";var Lk=Pk(),Ye=process.env;Object.defineProperty(Ut,"_vendors",{value:Lk.map(function(t){return t.constant})});Ut.name=null;Ut.isPR=null;Lk.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return Ik(n)});if(Ut[t.constant]=r,!!r)switch(Ut.name=t.name,typeof t.pr){case"string":Ut.isPR=!!Ye[t.pr];break;case"object":"env"in t.pr?Ut.isPR=t.pr.env in Ye&&Ye[t.pr.env]!==t.pr.ne:"any"in t.pr?Ut.isPR=t.pr.any.some(function(n){return!!Ye[n]}):Ut.isPR=Ik(t.pr);break;default:Ut.isPR=null}});Ut.isCI=!!(Ye.CI!=="false"&&(Ye.BUILD_ID||Ye.BUILD_NUMBER||Ye.CI||Ye.CI_APP_ID||Ye.CI_BUILD_ID||Ye.CI_BUILD_NUMBER||Ye.CI_NAME||Ye.CONTINUOUS_INTEGRATION||Ye.RUN_ID||Ut.name));function Ik(t){return typeof t=="string"?!!Ye[t]:"env"in t?Ye[t.env]&&Ye[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Ye[e]}):Object.keys(t).every(function(e){return Ye[e]===t[e]})}});var eg=A((qZ,K7)=>{K7.exports={name:"create-turbo",version:"2.7.2-canary.0",description:"Create a new Turborepo",homepage:"https://turborepo.com",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{commander:"11.0.0","fs-extra":"11.1.1",inquirer:"8.2.4",picocolors:"1.0.1","proxy-agent":"6.5.0",semver:"7.5.0","update-check":"1.5.4"},devDependencies:{"@jest/globals":"29.7.0","@turbo/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.3","@types/node":"18.17.4","@types/semver":"7.3.12",jest:"29.7.0","ts-jest":"29.2.5",tsup:"6.7.0",typescript:"5.5.4"},files:["dist"]}});var JT=oe(require("http")),XT=oe(require("https")),Ag=oe(require("picocolors")),Ga=require("commander");var yO=oe(Fg());function xh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function So(t){return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(t)}function Sh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ah(t,e){if(e&&(So(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sh(t)}function Vn(t){return Vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vn(t)}function Nr(t,e){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nr(t,e)}function Dh(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&&Nr(t,e)}function Ch(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Rh(){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 Rh()?Mi=Reflect.construct.bind():Mi=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&Nr(c,o.prototype),c},Mi.apply(null,arguments)}function Ao(t){var e=typeof Map=="function"?new Map:void 0;return Ao=function(n){if(n===null||!Ch(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Mi(n,arguments,Vn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Nr(i,n)},Ao(t)}var Zg=oe(Kg());var gO=oe(require("fs-extra")),RG=function(t){Dh(e,t);function e(r){var n;return xh(this,e),n=Ah(this,Vn(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(Ao(Error));var _O=oe(require("fs")),bO=oe(require("path"));var B3=oe(require("fs")),N3=oe(require("path"));function f_(t){return typeof t=="undefined"||t===null}function wO(t){return typeof t=="object"&&t!==null}function xO(t){return Array.isArray(t)?t:f_(t)?[]:[t]}function SO(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function AO(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function DO(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var CO=f_,RO=wO,kO=xO,TO=AO,OO=DO,FO=SO,We={isNothing:CO,isObject:RO,toArray:kO,repeat:TO,isNegativeZero:OO,extend:FO};function d_(t,e){var r="",n=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+=`
30
+ `)}`}}};Te.RequestError=Ue;var Jl=class extends Ue{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};Te.MaxRedirectsError=Jl;var Xl=class extends Ue{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};Te.HTTPError=Xl;var Ql=class extends Ue{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};Te.CacheError=Ql;var eh=class extends Ue{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};Te.UploadError=eh;var th=class extends Ue{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};Te.TimeoutError=th;var Ca=class extends Ue{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}};Te.ReadError=Ca;var rh=class extends Ue{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};Te.UnsupportedProtocolError=rh;var y7=["socket","connect","continue","information","upgrade","timeout"],nh=class extends rk.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[lo]=0,this[fo]=0,this.requestInitialized=!1,this[Yl]=new Set,this.redirects=[],this[po]=!1,this[Kl]=!1,this[Da]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",i),c.on("data",s),c.prependListener("end",i),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",i),c.off("data",s),c.off("end",i),c.off("end",s)}),this.on("pipe",c=>{c instanceof Hy.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),Te.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(c){K.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof KU.ReadStream&&await d7(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[it])===null||c===void 0||c.destroy();return}for(let h of this[Da])h();this[Da].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Ue){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,n){var i,s,o,a,u;let c=r;if(K.default.object(e)&&!K.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),K.default.urlInstance(r.url)&&(r.url=new jn.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([uk.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===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=t7({...n==null?void 0:n.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!==(n==null?void 0:n.searchParams)){let d;if(K.default.string(r.searchParams)||r.searchParams instanceof jn.URLSearchParams)d=new jn.URLSearchParams(r.searchParams);else{h7(r.searchParams),d=new jn.URLSearchParams;for(let p in r.searchParams){let y=r.searchParams[p];y===null?d.append(p,""):y!==void 0&&d.append(p,y)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((p,y)=>{d.has(y)||d.append(y,p)}),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=n==null?void 0:n.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=ak.default(r.prefixUrl+r.url,r)}else(K.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=ak.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:d}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let m=r.url;if(!m.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${d} to ${y}: ${m.href}`);r.url=new jn.URL(y+m.href.slice(d.length)),d=y},get:()=>d});let{protocol:p}=r.url;if(p==="unix:"&&(p="http:",r.url=new jn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),p!=="http:"&&p!=="https:")throw new rh(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:p}=l;K.assert.function_(d),K.assert.function_(p),d.length===4&&p.length===0&&(d=tk.promisify(d.bind(r.cookieJar)),p=tk.promisify(p.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:p})}let{cache:h}=r;if(h&&(zy.has(h)||zy.set(h,new ik((d,p)=>{let y=d[it](d,p);return K.default.promise(y)&&(y.once=(m,w)=>{if(m==="error")y.catch(w);else if(m==="abort")(async()=>{try{(await y).once("abort",w)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${m}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)$y||($y=new XU.default),r.dnsCache=$y;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}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let f=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let d of Te.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(n&&!f)for(let d of Te.knownHookEvents)n.hooks[d].length>0&&(r.hooks[d]=[...n.hooks[d],...r.hooks[d]]);if("family"in r&&qn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&qn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&qn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&qn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&qn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&qn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&qn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&qn.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,Te.setNonEnumerableProperties([n,c],r),u7.default(r,n)}_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,n=!K.default.undefined(e.form),i=!K.default.undefined(e.json),s=!K.default.undefined(e.body),o=n||i||s,a=Te.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,n,i].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof rk.Readable)&&!K.default.string(e.body)&&!K.default.buffer(e.body)&&!sk.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!K.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!K.default.string(r["content-type"]);s?(sk.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Un]=e.body):n?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Un]=new jn.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Un]=e.stringifyJson(e.json));let c=await r7.default(this[Un],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[ho]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[fk]=e,r.decompress&&(e=QU(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:nk.STATUS_CODES[i],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[lk]=s.isFromCache,this[co]=Number(e.headers["content-length"])||void 0,this[Zl]=e,e.once("end",()=>{this[co]=this[lo],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Ca(a,this))}),e.once("aborted",()=>{this._beforeError(new Ca({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,n.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&&p7.has(i)){if(e.resume(),this[it]&&(this[Gy](),delete this[it],this[ck]()),(i===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[Un]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Jl(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new jn.URL(u,n),l=c.toString();if(decodeURI(l),!h(n)&&h(c)){this._beforeError(new Ue("Cannot redirect to UNIX socket",{},this));return}c.hostname!==n.hostname||c.port!==n.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&&!a7.isResponseOk(s)){this._beforeError(new Xl(s));return}e.on("readable",()=>{this[Kl]&&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[Yl])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=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;JU.default(e),this[Gy]=ok.default(e,n,i);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 ok.TimeoutError?new th(u,this.timings,this):new Ue(u.message,u,this),this._beforeError(u)}),this[ck]=n7.default(e,this,y7),this[it]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Un],a=this.redirects.length===0?this:e;K.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new eh(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((n,i)=>{Object.assign(r,i7.default(e)),delete r.url;let s,o=zy.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,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"]=l7?"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 T=await w(o);if(!K.default.undefined(T)){o.request=()=>T;break}}o.body&&this[Un]!==o.body&&(this[Un]=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:T,path:F}=w.groups;Object.assign(o,{socketPath:T,path:F,host:""})}}let f=h.protocol==="https:",d;o.http2?d=e7.auto:d=f?ZU.request:nk.request;let p=(e=o.request)!==null&&e!==void 0?e:d,y=o.cache?this._createCacheableRequest:p;u&&!o.http2&&(o.agent=u[f?"https":"http"]),o[it]=p,delete o.request,delete o.timeout;let m=o;if(m.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,m.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,m.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,m.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{m.family=uk.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(m.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(m.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(m.ca=o.https.certificateAuthority),o.https.certificate&&(m.cert=o.https.certificate),o.https.key&&(m.key=o.https.key),o.https.passphrase&&(m.passphrase=o.https.passphrase),o.https.pfx&&(m.pfx=o.https.pfx));try{let w=await y(h,m);K.default.undefined(w)&&(w=d(h,m)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete m.rejectUnauthorized,o.https.checkServerIdentity&&delete m.checkServerIdentity,o.https.certificateAuthority&&delete m.ca,o.https.certificate&&delete m.cert,o.https.key&&delete m.key,o.https.passphrase&&delete m.passphrase,o.https.pfx&&delete m.pfx),f7(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 ik.CacheError?new Ql(w,this):new Ue(w.message,w,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Ue(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[po])return;let{options:r}=this,n=this.retryCount+1;this[po]=!0,e instanceof Ue||(e=new Ue(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await o7.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:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:c7.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Ue(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,i,n)}catch(u){this._error(new Ue(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[dk]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[Kl]=!0;let e=this[Zl];if(e&&!this[po]){e.readableLength&&(this[Kl]=!1);let r;for(;(r=e.read())!==null;){this[lo]+=r.length,this[hk]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[Da].push(i)}_writeRequest(e,r,n){this[it].destroyed||(this._progressCallbacks.push(()=>{this[fo]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[it].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(it in this)){e();return}if(this[it].destroyed){e();return}this[it].end(n=>{n||(this[ho]=this[fo],this.emit("uploadProgress",this.uploadProgress),this[it].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[Da].push(r)}_destroy(e,r){var n;this[po]=!0,clearTimeout(this[dk]),it in this&&(this[Gy](),!((n=this[Zl])===null||n===void 0)&&n.complete||this[it].destroy()),e!==null&&!K.default.undefined(e)&&!(e instanceof Ue)&&(e=new Ue(e.message,e,this)),r(e)}get _isAboutToError(){return this[po]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[it])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[fk])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[it])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[co]?e=this[lo]/this[co]:this[co]===this[lo]?e=1:e=0,{percent:e,transferred:this[lo],total:this[co]}}get uploadProgress(){let e;return this[ho]?e=this[fo]/this[ho]:this[ho]===this[fo]?e=1:e=0,{percent:e,transferred:this[fo],total:this[ho]}}get timings(){var e;return(e=this[it])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[lk]}pipe(e,r){if(this[hk])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof Hy.ServerResponse&&this[Yl].add(e),super.pipe(e,r)}unpipe(e){return e instanceof Hy.ServerResponse&&this[Yl].delete(e),super.unpipe(e),this}};Te.default=nh});var ka=A(fr=>{"use strict";var g7=fr&&fr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),_7=fr&&fr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&g7(e,t,r)};Object.defineProperty(fr,"__esModule",{value:!0});fr.CancelError=fr.ParseError=void 0;var pk=Ra(),Wy=class extends pk.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};fr.ParseError=Wy;var Vy=class extends pk.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};fr.CancelError=Vy;_7(Ra(),fr)});var yk=A(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var mk=ka(),b7=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new mk.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new mk.ParseError(s,t)}};Yy.default=b7});var Ky=A(Hn=>{"use strict";var v7=Hn&&Hn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),E7=Hn&&Hn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&v7(e,t,r)};Object.defineProperty(Hn,"__esModule",{value:!0});var w7=require("events"),x7=an(),S7=p2(),ih=ka(),gk=yk(),_k=Ra(),A7=Oy(),D7=My(),bk=jy(),C7=["request","response","redirect","uploadProgress","downloadProgress"];function vk(t){let e,r,n=new w7.EventEmitter,i=new S7((o,a,u)=>{let c=l=>{let h=new _k.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new ih.CancelError(h))),e=h,h.once("response",async p=>{var y;if(p.retryCount=l,p.request.aborted)return;let m;try{m=await D7.default(h),p.rawBody=m}catch{return}if(h._isAboutToError)return;let w=((y=p.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),T=["gzip","deflate","br"].includes(w),{options:F}=h;if(T&&!F.decompress)p.body=m;else try{p.body=gk.default(p,F.responseType,F.parseJson,F.encoding)}catch(I){if(p.body=m.toString(),bk.isResponseOk(p)){h._beforeError(I);return}}try{for(let[I,R]of F.hooks.afterResponse.entries())p=await R(p,async M=>{let x=_k.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},F);x.hooks.afterResponse=x.hooks.afterResponse.slice(0,I);for(let U of x.hooks.beforeRetry)await U(x);let D=vk(x);return u(()=>{D.catch(()=>{}),D.cancel()}),D})}catch(I){h._beforeError(new ih.RequestError(I.message,I,h));return}if(r=p,!bk.isResponseOk(p)){h._beforeError(new ih.HTTPError(p));return}h.destroy(),o(h.options.resolveBodyOnly?p.body:p)});let f=p=>{if(i.isCanceled)return;let{options:y}=h;if(p instanceof ih.HTTPError&&!y.throwHttpErrors){let{response:m}=p;o(h.options.resolveBodyOnly?m.body:m);return}a(p)};h.once("error",f);let d=h.options.body;h.once("retry",(p,y)=>{var m,w;if(d===((m=y.request)===null||m===void 0?void 0:m.options.body)&&x7.default.nodeStream((w=y.request)===null||w===void 0?void 0:w.options.body)){f(y);return}c(p)}),A7.default(h,n,C7)};c(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:u}=r.request;return gk.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}Hn.default=vk;E7(ka(),Hn)});var Ek=A(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});var R7=ka();function k7(t,...e){let r=(async()=>{if(t instanceof R7.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Zy.default=k7});var Sk=A(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var wk=an();function xk(t){for(let e of Object.values(t))(wk.default.plainObject(e)||wk.default.array(e))&&xk(e);return Object.freeze(t)}Jy.default=xk});var Dk=A(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0})});var Xy=A(nr=>{"use strict";var T7=nr&&nr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),O7=nr&&nr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&T7(e,t,r)};Object.defineProperty(nr,"__esModule",{value:!0});nr.defaultHandler=void 0;var Ck=an(),rr=Ky(),F7=Ek(),oh=Ra(),P7=Sk(),I7={RequestError:rr.RequestError,CacheError:rr.CacheError,ReadError:rr.ReadError,HTTPError:rr.HTTPError,MaxRedirectsError:rr.MaxRedirectsError,TimeoutError:rr.TimeoutError,ParseError:rr.ParseError,CancelError:rr.CancelError,UnsupportedProtocolError:rr.UnsupportedProtocolError,UploadError:rr.UploadError},L7=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:sh}=oh.default,Rk=(...t)=>{let e;for(let r of t)e=sh(void 0,r,e);return e},B7=t=>t.isStream?new oh.default(void 0,t):rr.default(t),N7=t=>"defaults"in t&&"options"in t.defaults,M7=["get","post","put","patch","head","delete"];nr.defaultHandler=(t,e)=>e(t);var kk=(t,e)=>{if(t)for(let r of t)r(e)},Tk=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,u=>(o=s(u),o));if(a!==o&&!i.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=(n,i={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?B7:c);if(Ck.default.plainObject(n)){let l={...n,...i};oh.setNonEnumerableProperties([n,i],l),i=l,n=void 0}try{let l;try{kk(t.options.hooks.init,i),kk((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(f){l=f}let h=sh(n,i,s!=null?s:t.options);if(h[oh.kIsNormalizedAlready]=!0,l)throw new rr.RequestError(l.message,l,h);return c(h)}catch(l){if(i.isStream)throw l;return F7.default(l,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)N7(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==nr.defaultHandler),s.length===0&&s.push(nr.defaultHandler),Tk({options:Rk(...i),handlers:s,mutableDefaults:!!o})};let r=async function*(n,i){let s=sh(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!Ck.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 L7(o.backoff);let l=await e(void 0,void 0,s),h=await o.transform(l),f=[];for(let p of h)if(o.filter(p,a,f)&&(!o.shouldContinue(p,a,f)||(yield p,o.stackAllItems&&a.push(p),f.push(p),--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=sh(void 0,d,s)),c++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of M7)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,I7),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:P7.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=Rk,e};nr.default=Tk;O7(Dk(),nr)});var Pk=A((un,ah)=>{"use strict";var j7=un&&un.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ok=un&&un.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&j7(e,t,r)};Object.defineProperty(un,"__esModule",{value:!0});var q7=require("url"),Fk=Xy(),U7={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 n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new q7.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:[Fk.defaultHandler],mutableDefaults:!1},Qy=Fk.default(U7);un.default=Qy;ah.exports=Qy;ah.exports.default=Qy;ah.exports.__esModule=!0;Ok(Xy(),un);Ok(Ky(),un)});var Lk=A((AZ,G7)=>{G7.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Mk=A(Ut=>{"use strict";var Nk=Lk(),Ye=process.env;Object.defineProperty(Ut,"_vendors",{value:Nk.map(function(t){return t.constant})});Ut.name=null;Ut.isPR=null;Nk.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return Bk(n)});if(Ut[t.constant]=r,!!r)switch(Ut.name=t.name,typeof t.pr){case"string":Ut.isPR=!!Ye[t.pr];break;case"object":"env"in t.pr?Ut.isPR=t.pr.env in Ye&&Ye[t.pr.env]!==t.pr.ne:"any"in t.pr?Ut.isPR=t.pr.any.some(function(n){return!!Ye[n]}):Ut.isPR=Bk(t.pr);break;default:Ut.isPR=null}});Ut.isCI=!!(Ye.CI!=="false"&&(Ye.BUILD_ID||Ye.BUILD_NUMBER||Ye.CI||Ye.CI_APP_ID||Ye.CI_BUILD_ID||Ye.CI_BUILD_NUMBER||Ye.CI_NAME||Ye.CONTINUOUS_INTEGRATION||Ye.RUN_ID||Ut.name));function Bk(t){return typeof t=="string"?!!Ye[t]:"env"in t?Ye[t.env]&&Ye[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Ye[e]}):Object.keys(t).every(function(e){return Ye[e]===t[e]})}});var ng=A((HZ,J7)=>{J7.exports={name:"create-turbo",version:"2.7.2-canary.2",description:"Create a new Turborepo",homepage:"https://turborepo.com",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{commander:"11.0.0","fs-extra":"11.1.1",inquirer:"8.2.4",picocolors:"1.0.1","proxy-agent":"6.5.0",semver:"7.5.0","update-check":"1.5.4"},devDependencies:{"@jest/globals":"29.7.0","@turbo/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.3","@types/node":"18.17.4","@types/semver":"7.3.12",jest:"29.7.0","ts-jest":"29.2.5",tsup:"6.7.0",typescript:"5.5.4"},files:["dist"]}});var QT=oe(require("http")),eO=oe(require("https")),Rg=oe(require("picocolors")),Ga=require("commander");var _O=oe(Lg());function Ah(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function So(t){return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(t)}function Dh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ch(t,e){if(e&&(So(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dh(t)}function Vn(t){return Vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vn(t)}function Nr(t,e){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nr(t,e)}function Rh(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&&Nr(t,e)}function kh(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Th(){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 Th()?Mi=Reflect.construct.bind():Mi=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&Nr(c,o.prototype),c},Mi.apply(null,arguments)}function Ao(t){var e=typeof Map=="function"?new Map:void 0;return Ao=function(n){if(n===null||!kh(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Mi(n,arguments,Vn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Nr(i,n)},Ao(t)}var Qg=oe(Xg());var bO=oe(require("fs-extra")),TG=function(t){Rh(e,t);function e(r){var n;return Ah(this,e),n=Ch(this,Vn(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(Ao(Error));var vO=oe(require("fs")),EO=oe(require("path"));var M3=oe(require("fs")),j3=oe(require("path"));function m_(t){return typeof t=="undefined"||t===null}function SO(t){return typeof t=="object"&&t!==null}function AO(t){return Array.isArray(t)?t:m_(t)?[]:[t]}function DO(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function CO(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function RO(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var kO=m_,TO=SO,OO=AO,FO=CO,PO=RO,IO=DO,We={isNothing:kO,isObject:TO,toArray:OO,repeat:FO,isNegativeZero:PO,extend:IO};function y_(t,e){var r="",n=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+=`
31
31
 
32
- `+t.mark.snippet),n+" "+r):n}function Co(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=d_(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Co.prototype=Object.create(Error.prototype);Co.prototype.constructor=Co;Co.prototype.toString=function(e){return this.name+": "+d_(this,e)};var mt=Co;function Lh(t,e,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-e>a&&(s=" ... ",e=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+s.length}}function Bh(t,e){return We.repeat(" ",e-t.length)+t}function PO(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,n=[0],i=[],s,o=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,l=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+l+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)c=Lh(t.buffer,n[o-u],i[o-u],t.position-(n[o]-n[o-u]),h),a=We.repeat(" ",e.indent)+Bh((t.line-u+1).toString(),l)+" | "+c.str+`
33
- `+a;for(c=Lh(t.buffer,n[o],i[o],t.position,h),a+=We.repeat(" ",e.indent)+Bh((t.line+1).toString(),l)+" | "+c.str+`
32
+ `+t.mark.snippet),n+" "+r):n}function Co(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=y_(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Co.prototype=Object.create(Error.prototype);Co.prototype.constructor=Co;Co.prototype.toString=function(e){return this.name+": "+y_(this,e)};var mt=Co;function Nh(t,e,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-e>a&&(s=" ... ",e=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+s.length}}function Mh(t,e){return We.repeat(" ",e-t.length)+t}function LO(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,n=[0],i=[],s,o=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,l=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+l+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)c=Nh(t.buffer,n[o-u],i[o-u],t.position-(n[o]-n[o-u]),h),a=We.repeat(" ",e.indent)+Mh((t.line-u+1).toString(),l)+" | "+c.str+`
33
+ `+a;for(c=Nh(t.buffer,n[o],i[o],t.position,h),a+=We.repeat(" ",e.indent)+Mh((t.line+1).toString(),l)+" | "+c.str+`
34
34
  `,a+=We.repeat("-",e.indent+l+3+c.pos)+`^
35
- `,u=1;u<=e.linesAfter&&!(o+u>=i.length);u++)c=Lh(t.buffer,n[o+u],i[o+u],t.position-(n[o]-n[o+u]),h),a+=We.repeat(" ",e.indent)+Bh((t.line+u+1).toString(),l)+" | "+c.str+`
36
- `;return a.replace(/\n$/,"")}var IO=PO,LO=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],BO=["scalar","sequence","mapping"];function NO(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function MO(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(LO.indexOf(r)===-1)throw new mt('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=NO(e.styleAliases||null),BO.indexOf(this.kind)===-1)throw new mt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var rt=MO;function Jg(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function jO(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function Mh(t){return this.extend(t)}Mh.prototype.extend=function(e){var r=[],n=[];if(e instanceof rt)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new mt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof rt))throw new mt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new mt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new mt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof rt))throw new mt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Mh.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Jg(i,"implicit"),i.compiledExplicit=Jg(i,"explicit"),i.compiledTypeMap=jO(i.compiledImplicit,i.compiledExplicit),i};var p_=Mh,m_=new rt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),y_=new rt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),g_=new rt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),__=new p_({explicit:[m_,y_,g_]});function qO(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function UO(){return null}function HO(t){return t===null}var b_=new rt("tag:yaml.org,2002:null",{kind:"scalar",resolve:qO,construct:UO,predicate:HO,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function $O(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function GO(t){return t==="true"||t==="True"||t==="TRUE"}function zO(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var v_=new rt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$O,construct:GO,predicate:zO,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function WO(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function VO(t){return 48<=t&&t<=55}function YO(t){return 48<=t&&t<=57}function KO(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!WO(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!VO(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!YO(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function ZO(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function JO(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!We.isNegativeZero(t)}var E_=new rt("tag:yaml.org,2002:int",{kind:"scalar",resolve:KO,construct:ZO,predicate:JO,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),XO=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function QO(t){return!(t===null||!XO.test(t)||t[t.length-1]==="_")}function eF(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var tF=/^[-+]?[0-9]+e/;function rF(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(We.isNegativeZero(t))return"-0.0";return r=t.toString(10),tF.test(r)?r.replace("e",".e"):r}function nF(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||We.isNegativeZero(t))}var w_=new rt("tag:yaml.org,2002:float",{kind:"scalar",resolve:QO,construct:eF,predicate:nF,represent:rF,defaultStyle:"lowercase"}),x_=__.extend({implicit:[b_,v_,E_,w_]}),S_=x_,A_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),D_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function iF(t){return t===null?!1:A_.exec(t)!==null||D_.exec(t)!==null}function sF(t){var e,r,n,i,s,o,a,u=0,c=null,l,h,f;if(e=A_.exec(t),e===null&&(e=D_.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(l=+e[10],h=+(e[11]||0),c=(l*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&f.setTime(f.getTime()-c),f}function oF(t){return t.toISOString()}var C_=new rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:iF,construct:sF,instanceOf:Date,represent:oF});function aF(t){return t==="<<"||t===null}var R_=new rt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:aF}),$h=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
37
- \r`;function uF(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=$h;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function cF(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=$h,o=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(e));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function lF(t){var e="",r=0,n,i,s=t.length,o=$h;for(n=0;n<s;n++)n%3===0&&n&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):i===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):i===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function hF(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var k_=new rt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:uF,construct:cF,predicate:hF,represent:lF}),fF=Object.prototype.hasOwnProperty,dF=Object.prototype.toString;function pF(t){if(t===null)return!0;var e=[],r,n,i,s,o,a=t;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,dF.call(i)!=="[object Object]")return!1;for(s in i)if(fF.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function mF(t){return t!==null?t:[]}var T_=new rt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:pF,construct:mF}),yF=Object.prototype.toString;function gF(t){if(t===null)return!0;var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(n=o[e],yF.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function _F(t){if(t===null)return[];var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)n=o[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}var O_=new rt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:gF,construct:_F}),bF=Object.prototype.hasOwnProperty;function vF(t){if(t===null)return!0;var e,r=t;for(e in r)if(bF.call(r,e)&&r[e]!==null)return!1;return!0}function EF(t){return t!==null?t:{}}var F_=new rt("tag:yaml.org,2002:set",{kind:"mapping",resolve:vF,construct:EF}),Gh=S_.extend({implicit:[C_,R_],explicit:[k_,T_,O_,F_]}),dn=Object.prototype.hasOwnProperty,Ka=1,P_=2,I_=3,Za=4,Nh=1,wF=2,Xg=3,xF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,SF=/[\x85\u2028\u2029]/,AF=/[,\[\]\{\}]/,L_=/^(?:!|!!|![a-z\-]+!)$/i,B_=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Qg(t){return Object.prototype.toString.call(t)}function mr(t){return t===10||t===13}function Kn(t){return t===9||t===32}function bt(t){return t===9||t===32||t===10||t===13}function Ui(t){return t===44||t===91||t===93||t===123||t===125}function DF(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function CF(t){return t===120?2:t===117?4:t===85?8:0}function RF(t){return 48<=t&&t<=57?t-48:-1}function e_(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
38
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function kF(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var N_=new Array(256),M_=new Array(256);for(Yn=0;Yn<256;Yn++)N_[Yn]=e_(Yn)?1:0,M_[Yn]=e_(Yn);var Yn;function TF(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Gh,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function j_(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=IO(r),new mt(e,r)}function pe(t,e){throw j_(t,e)}function Ja(t,e){t.onWarning&&t.onWarning.call(null,j_(t,e))}var t_={YAML:function(e,r,n){var i,s,o;e.version!==null&&pe(e,"duplication of %YAML directive"),n.length!==1&&pe(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&pe(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&pe(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Ja(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,s;n.length!==2&&pe(e,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],L_.test(i)||pe(e,"ill-formed tag handle (first argument) of the TAG directive"),dn.call(e.tagMap,i)&&pe(e,'there is a previously declared suffix for "'+i+'" tag handle'),B_.test(s)||pe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{pe(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function fn(t,e,r,n){var i,s,o,a;if(e<r){if(a=t.input.slice(e,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||pe(t,"expected valid JSON character");else xF.test(a)&&pe(t,"the stream contains non-printable characters");t.result+=a}}function r_(t,e,r,n){var i,s,o,a;for(We.isObject(r)||pe(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],dn.call(e,s)||(e[s]=r[s],n[s]=!0)}function Hi(t,e,r,n,i,s,o,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&pe(t,"nested arrays are not supported inside keys"),typeof i=="object"&&Qg(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Qg(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)r_(t,e,s[c],r);else r_(t,e,s,r);else!t.json&&!dn.call(r,i)&&dn.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=u||t.position,pe(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete r[i];return e}function zh(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):pe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function $e(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Kn(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(mr(i))for(zh(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&Ja(t,"deficient indentation"),n}function eu(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||bt(r)))}function Wh(t,e){e===1?t.result+=" ":e>1&&(t.result+=We.repeat(`
39
- `,e-1))}function OF(t,e,r){var n,i,s,o,a,u,c,l,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),bt(d)||Ui(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=t.input.charCodeAt(t.position+1),bt(i)||r&&Ui(i)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(i=t.input.charCodeAt(t.position+1),bt(i)||r&&Ui(i))break}else if(d===35){if(n=t.input.charCodeAt(t.position-1),bt(n))break}else{if(t.position===t.lineStart&&eu(t)||r&&Ui(d))break;if(mr(d))if(u=t.line,c=t.lineStart,l=t.lineIndent,$e(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=u,t.lineStart=c,t.lineIndent=l;break}}a&&(fn(t,s,o,!1),Wh(t,t.line-u),s=o=t.position,a=!1),Kn(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return fn(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function FF(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(fn(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else mr(r)?(fn(t,n,i,!0),Wh(t,$e(t,!1,e)),n=i=t.position):t.position===t.lineStart&&eu(t)?pe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);pe(t,"unexpected end of the stream within a single quoted scalar")}function PF(t,e){var r,n,i,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return fn(t,r,t.position,!0),t.position++,!0;if(a===92){if(fn(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),mr(a))$e(t,!1,e);else if(a<256&&N_[a])t.result+=M_[a],t.position++;else if((o=CF(a))>0){for(i=o,s=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=DF(a))>=0?s=(s<<4)+o:pe(t,"expected hexadecimal character");t.result+=kF(s),t.position++}else pe(t,"unknown escape sequence");r=n=t.position}else mr(a)?(fn(t,r,n,!0),Wh(t,$e(t,!1,e)),r=n=t.position):t.position===t.lineStart&&eu(t)?pe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}pe(t,"unexpected end of the stream within a double quoted scalar")}function IF(t,e){var r=!0,n,i,s,o=t.tag,a,u=t.anchor,c,l,h,f,d,p=Object.create(null),y,m,w,T;if(T=t.input.charCodeAt(t.position),T===91)l=93,d=!1,a=[];else if(T===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),T=t.input.charCodeAt(++t.position);T!==0;){if($e(t,!0,e),T=t.input.charCodeAt(t.position),T===l)return t.position++,t.tag=o,t.anchor=u,t.kind=d?"mapping":"sequence",t.result=a,!0;r?T===44&&pe(t,"expected the node content, but found ','"):pe(t,"missed comma between flow collection entries"),m=y=w=null,h=f=!1,T===63&&(c=t.input.charCodeAt(t.position+1),bt(c)&&(h=f=!0,t.position++,$e(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,$i(t,e,Ka,!1,!0),m=t.tag,y=t.result,$e(t,!0,e),T=t.input.charCodeAt(t.position),(f||t.line===n)&&T===58&&(h=!0,T=t.input.charCodeAt(++t.position),$e(t,!0,e),$i(t,e,Ka,!1,!0),w=t.result),d?Hi(t,a,p,m,y,w,n,i,s):h?a.push(Hi(t,null,p,m,y,w,n,i,s)):a.push(y),$e(t,!0,e),T=t.input.charCodeAt(t.position),T===44?(r=!0,T=t.input.charCodeAt(++t.position)):r=!1}pe(t,"unexpected end of the stream within a flow collection")}function LF(t,e){var r,n,i=Nh,s=!1,o=!1,a=e,u=0,c=!1,l,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Nh===i?i=h===43?Xg:wF:pe(t,"repeat of a chomping mode identifier");else if((l=RF(h))>=0)l===0?pe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?pe(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(Kn(h)){do h=t.input.charCodeAt(++t.position);while(Kn(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!mr(h)&&h!==0)}for(;h!==0;){for(zh(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),mr(h)){u++;continue}if(t.lineIndent<a){i===Xg?t.result+=We.repeat(`
40
- `,s?1+u:u):i===Nh&&s&&(t.result+=`
35
+ `,u=1;u<=e.linesAfter&&!(o+u>=i.length);u++)c=Nh(t.buffer,n[o+u],i[o+u],t.position-(n[o]-n[o+u]),h),a+=We.repeat(" ",e.indent)+Mh((t.line+u+1).toString(),l)+" | "+c.str+`
36
+ `;return a.replace(/\n$/,"")}var BO=LO,NO=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],MO=["scalar","sequence","mapping"];function jO(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function qO(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(NO.indexOf(r)===-1)throw new mt('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=jO(e.styleAliases||null),MO.indexOf(this.kind)===-1)throw new mt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var rt=qO;function e_(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function UO(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function qh(t){return this.extend(t)}qh.prototype.extend=function(e){var r=[],n=[];if(e instanceof rt)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new mt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof rt))throw new mt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new mt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new mt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof rt))throw new mt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(qh.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=e_(i,"implicit"),i.compiledExplicit=e_(i,"explicit"),i.compiledTypeMap=UO(i.compiledImplicit,i.compiledExplicit),i};var g_=qh,__=new rt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),b_=new rt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),v_=new rt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),E_=new g_({explicit:[__,b_,v_]});function HO(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function $O(){return null}function GO(t){return t===null}var w_=new rt("tag:yaml.org,2002:null",{kind:"scalar",resolve:HO,construct:$O,predicate:GO,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function zO(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function WO(t){return t==="true"||t==="True"||t==="TRUE"}function VO(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var x_=new rt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zO,construct:WO,predicate:VO,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function YO(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function KO(t){return 48<=t&&t<=55}function ZO(t){return 48<=t&&t<=57}function JO(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!YO(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!KO(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!ZO(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function XO(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function QO(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!We.isNegativeZero(t)}var S_=new rt("tag:yaml.org,2002:int",{kind:"scalar",resolve:JO,construct:XO,predicate:QO,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),eF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function tF(t){return!(t===null||!eF.test(t)||t[t.length-1]==="_")}function rF(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var nF=/^[-+]?[0-9]+e/;function iF(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(We.isNegativeZero(t))return"-0.0";return r=t.toString(10),nF.test(r)?r.replace("e",".e"):r}function sF(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||We.isNegativeZero(t))}var A_=new rt("tag:yaml.org,2002:float",{kind:"scalar",resolve:tF,construct:rF,predicate:sF,represent:iF,defaultStyle:"lowercase"}),D_=E_.extend({implicit:[w_,x_,S_,A_]}),C_=D_,R_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),k_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function oF(t){return t===null?!1:R_.exec(t)!==null||k_.exec(t)!==null}function aF(t){var e,r,n,i,s,o,a,u=0,c=null,l,h,f;if(e=R_.exec(t),e===null&&(e=k_.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(l=+e[10],h=+(e[11]||0),c=(l*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&f.setTime(f.getTime()-c),f}function uF(t){return t.toISOString()}var T_=new rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:oF,construct:aF,instanceOf:Date,represent:uF});function cF(t){return t==="<<"||t===null}var O_=new rt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:cF}),zh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
37
+ \r`;function lF(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=zh;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function hF(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=zh,o=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(e));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function fF(t){var e="",r=0,n,i,s=t.length,o=zh;for(n=0;n<s;n++)n%3===0&&n&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):i===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):i===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function dF(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var F_=new rt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:lF,construct:hF,predicate:dF,represent:fF}),pF=Object.prototype.hasOwnProperty,mF=Object.prototype.toString;function yF(t){if(t===null)return!0;var e=[],r,n,i,s,o,a=t;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,mF.call(i)!=="[object Object]")return!1;for(s in i)if(pF.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function gF(t){return t!==null?t:[]}var P_=new rt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:yF,construct:gF}),_F=Object.prototype.toString;function bF(t){if(t===null)return!0;var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(n=o[e],_F.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function vF(t){if(t===null)return[];var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)n=o[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}var I_=new rt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:bF,construct:vF}),EF=Object.prototype.hasOwnProperty;function wF(t){if(t===null)return!0;var e,r=t;for(e in r)if(EF.call(r,e)&&r[e]!==null)return!1;return!0}function xF(t){return t!==null?t:{}}var L_=new rt("tag:yaml.org,2002:set",{kind:"mapping",resolve:wF,construct:xF}),Wh=C_.extend({implicit:[T_,O_],explicit:[F_,P_,I_,L_]}),dn=Object.prototype.hasOwnProperty,Ka=1,B_=2,N_=3,Za=4,jh=1,SF=2,t_=3,AF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,DF=/[\x85\u2028\u2029]/,CF=/[,\[\]\{\}]/,M_=/^(?:!|!!|![a-z\-]+!)$/i,j_=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function r_(t){return Object.prototype.toString.call(t)}function mr(t){return t===10||t===13}function Kn(t){return t===9||t===32}function bt(t){return t===9||t===32||t===10||t===13}function Ui(t){return t===44||t===91||t===93||t===123||t===125}function RF(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function kF(t){return t===120?2:t===117?4:t===85?8:0}function TF(t){return 48<=t&&t<=57?t-48:-1}function n_(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
38
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function OF(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var q_=new Array(256),U_=new Array(256);for(Yn=0;Yn<256;Yn++)q_[Yn]=n_(Yn)?1:0,U_[Yn]=n_(Yn);var Yn;function FF(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Wh,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function H_(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=BO(r),new mt(e,r)}function pe(t,e){throw H_(t,e)}function Ja(t,e){t.onWarning&&t.onWarning.call(null,H_(t,e))}var i_={YAML:function(e,r,n){var i,s,o;e.version!==null&&pe(e,"duplication of %YAML directive"),n.length!==1&&pe(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&pe(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&pe(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Ja(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,s;n.length!==2&&pe(e,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],M_.test(i)||pe(e,"ill-formed tag handle (first argument) of the TAG directive"),dn.call(e.tagMap,i)&&pe(e,'there is a previously declared suffix for "'+i+'" tag handle'),j_.test(s)||pe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{pe(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function fn(t,e,r,n){var i,s,o,a;if(e<r){if(a=t.input.slice(e,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||pe(t,"expected valid JSON character");else AF.test(a)&&pe(t,"the stream contains non-printable characters");t.result+=a}}function s_(t,e,r,n){var i,s,o,a;for(We.isObject(r)||pe(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],dn.call(e,s)||(e[s]=r[s],n[s]=!0)}function Hi(t,e,r,n,i,s,o,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&pe(t,"nested arrays are not supported inside keys"),typeof i=="object"&&r_(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&r_(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)s_(t,e,s[c],r);else s_(t,e,s,r);else!t.json&&!dn.call(r,i)&&dn.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=u||t.position,pe(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete r[i];return e}function Vh(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):pe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function $e(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Kn(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(mr(i))for(Vh(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&Ja(t,"deficient indentation"),n}function eu(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||bt(r)))}function Yh(t,e){e===1?t.result+=" ":e>1&&(t.result+=We.repeat(`
39
+ `,e-1))}function PF(t,e,r){var n,i,s,o,a,u,c,l,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),bt(d)||Ui(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=t.input.charCodeAt(t.position+1),bt(i)||r&&Ui(i)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(i=t.input.charCodeAt(t.position+1),bt(i)||r&&Ui(i))break}else if(d===35){if(n=t.input.charCodeAt(t.position-1),bt(n))break}else{if(t.position===t.lineStart&&eu(t)||r&&Ui(d))break;if(mr(d))if(u=t.line,c=t.lineStart,l=t.lineIndent,$e(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=u,t.lineStart=c,t.lineIndent=l;break}}a&&(fn(t,s,o,!1),Yh(t,t.line-u),s=o=t.position,a=!1),Kn(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return fn(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function IF(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(fn(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else mr(r)?(fn(t,n,i,!0),Yh(t,$e(t,!1,e)),n=i=t.position):t.position===t.lineStart&&eu(t)?pe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);pe(t,"unexpected end of the stream within a single quoted scalar")}function LF(t,e){var r,n,i,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return fn(t,r,t.position,!0),t.position++,!0;if(a===92){if(fn(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),mr(a))$e(t,!1,e);else if(a<256&&q_[a])t.result+=U_[a],t.position++;else if((o=kF(a))>0){for(i=o,s=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=RF(a))>=0?s=(s<<4)+o:pe(t,"expected hexadecimal character");t.result+=OF(s),t.position++}else pe(t,"unknown escape sequence");r=n=t.position}else mr(a)?(fn(t,r,n,!0),Yh(t,$e(t,!1,e)),r=n=t.position):t.position===t.lineStart&&eu(t)?pe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}pe(t,"unexpected end of the stream within a double quoted scalar")}function BF(t,e){var r=!0,n,i,s,o=t.tag,a,u=t.anchor,c,l,h,f,d,p=Object.create(null),y,m,w,T;if(T=t.input.charCodeAt(t.position),T===91)l=93,d=!1,a=[];else if(T===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),T=t.input.charCodeAt(++t.position);T!==0;){if($e(t,!0,e),T=t.input.charCodeAt(t.position),T===l)return t.position++,t.tag=o,t.anchor=u,t.kind=d?"mapping":"sequence",t.result=a,!0;r?T===44&&pe(t,"expected the node content, but found ','"):pe(t,"missed comma between flow collection entries"),m=y=w=null,h=f=!1,T===63&&(c=t.input.charCodeAt(t.position+1),bt(c)&&(h=f=!0,t.position++,$e(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,$i(t,e,Ka,!1,!0),m=t.tag,y=t.result,$e(t,!0,e),T=t.input.charCodeAt(t.position),(f||t.line===n)&&T===58&&(h=!0,T=t.input.charCodeAt(++t.position),$e(t,!0,e),$i(t,e,Ka,!1,!0),w=t.result),d?Hi(t,a,p,m,y,w,n,i,s):h?a.push(Hi(t,null,p,m,y,w,n,i,s)):a.push(y),$e(t,!0,e),T=t.input.charCodeAt(t.position),T===44?(r=!0,T=t.input.charCodeAt(++t.position)):r=!1}pe(t,"unexpected end of the stream within a flow collection")}function NF(t,e){var r,n,i=jh,s=!1,o=!1,a=e,u=0,c=!1,l,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)jh===i?i=h===43?t_:SF:pe(t,"repeat of a chomping mode identifier");else if((l=TF(h))>=0)l===0?pe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?pe(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(Kn(h)){do h=t.input.charCodeAt(++t.position);while(Kn(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!mr(h)&&h!==0)}for(;h!==0;){for(Vh(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),mr(h)){u++;continue}if(t.lineIndent<a){i===t_?t.result+=We.repeat(`
40
+ `,s?1+u:u):i===jh&&s&&(t.result+=`
41
41
  `);break}for(n?Kn(h)?(c=!0,t.result+=We.repeat(`
42
42
  `,s?1+u:u)):c?(c=!1,t.result+=We.repeat(`
43
43
  `,u+1)):u===0?s&&(t.result+=" "):t.result+=We.repeat(`
44
44
  `,u):t.result+=We.repeat(`
45
- `,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!mr(h)&&h!==0;)h=t.input.charCodeAt(++t.position);fn(t,r,t.position,!1)}return!0}function n_(t,e){var r,n=t.tag,i=t.anchor,s=[],o,a=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,pe(t,"tab characters must not be used in indentation")),!(u!==45||(o=t.input.charCodeAt(t.position+1),!bt(o))));){if(a=!0,t.position++,$e(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,$i(t,e,I_,!1,!0),s.push(t.result),$e(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)pe(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function BF(t,e,r){var n,i,s,o,a,u,c=t.tag,l=t.anchor,h={},f=Object.create(null),d=null,p=null,y=null,m=!1,w=!1,T;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),T=t.input.charCodeAt(t.position);T!==0;){if(!m&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,pe(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(T===63||T===58)&&bt(n))T===63?(m&&(Hi(t,h,f,d,p,null,o,a,u),d=p=y=null),w=!0,m=!0,i=!0):m?(m=!1,i=!0):pe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,T=n;else{if(o=t.line,a=t.lineStart,u=t.position,!$i(t,r,P_,!1,!0))break;if(t.line===s){for(T=t.input.charCodeAt(t.position);Kn(T);)T=t.input.charCodeAt(++t.position);if(T===58)T=t.input.charCodeAt(++t.position),bt(T)||pe(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Hi(t,h,f,d,p,null,o,a,u),d=p=y=null),w=!0,m=!1,i=!1,d=t.tag,p=t.result;else if(w)pe(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=l,!0}else if(w)pe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(m&&(o=t.line,a=t.lineStart,u=t.position),$i(t,e,Za,!0,i)&&(m?p=t.result:y=t.result),m||(Hi(t,h,f,d,p,y,o,a,u),d=p=y=null),$e(t,!0,-1),T=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&T!==0)pe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&Hi(t,h,f,d,p,null,o,a,u),w&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=h),w}function NF(t){var e,r=!1,n=!1,i,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&pe(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(n=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):pe(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!bt(o);)o===33&&(n?pe(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),L_.test(i)||pe(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),AF.test(s)&&pe(t,"tag suffix cannot contain flow indicator characters")}s&&!B_.test(s)&&pe(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{pe(t,"tag name is malformed: "+s)}return r?t.tag=s:dn.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:pe(t,'undeclared tag handle "'+i+'"'),!0}function MF(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&pe(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!bt(r)&&!Ui(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&pe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function jF(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!bt(n)&&!Ui(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&pe(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),dn.call(t.anchorMap,r)||pe(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],$e(t,!0,-1),!0}function $i(t,e,r,n,i){var s,o,a,u=1,c=!1,l=!1,h,f,d,p,y,m;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=Za===r||I_===r,n&&$e(t,!0,-1)&&(c=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;NF(t)||MF(t);)$e(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||Za===r)&&(Ka===r||P_===r?y=e:y=e+1,m=t.position-t.lineStart,u===1?a&&(n_(t,m)||BF(t,m,y))||IF(t,y)?l=!0:(o&&LF(t,y)||FF(t,y)||PF(t,y)?l=!0:jF(t)?(l=!0,(t.tag!==null||t.anchor!==null)&&pe(t,"alias node should not have any properties")):OF(t,y,Ka===r)&&(l=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(l=a&&n_(t,m))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&pe(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(p=t.implicitTypes[h],p.resolve(t.result)){t.result=p.construct(t.result),t.tag=p.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(dn.call(t.typeMap[t.kind||"fallback"],t.tag))p=t.typeMap[t.kind||"fallback"][t.tag];else for(p=null,d=t.typeMap.multi[t.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(t.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||pe(t,"unknown tag !<"+t.tag+">"),t.result!==null&&p.kind!==t.kind&&pe(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result,t.tag)?(t.result=p.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):pe(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||l}function qF(t){var e=t.position,r,n,i,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&($e(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!bt(o);)o=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&pe(t,"directive name must not be less than one character in length");o!==0;){for(;Kn(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!mr(o));break}if(mr(o))break;for(r=t.position;o!==0&&!bt(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}o!==0&&zh(t),dn.call(t_,n)?t_[n](t,n,i):Ja(t,'unknown document directive "'+n+'"')}if($e(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,$e(t,!0,-1)):s&&pe(t,"directives end mark is expected"),$i(t,t.lineIndent-1,Za,!1,!0),$e(t,!0,-1),t.checkLineBreaks&&SF.test(t.input.slice(e,t.position))&&Ja(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&eu(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,$e(t,!0,-1));return}if(t.position<t.length-1)pe(t,"end of the stream or a document separator is expected");else return}function q_(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
46
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new TF(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,pe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)qF(r);return r.documents}function UF(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var n=q_(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function HF(t,e){var r=q_(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new mt("expected a single document in the stream, but found more")}}var $F=UF,GF=HF,U_={loadAll:$F,load:GF},H_=Object.prototype.toString,$_=Object.prototype.hasOwnProperty,Vh=65279,zF=9,Ro=10,WF=13,VF=32,YF=33,KF=34,jh=35,ZF=37,JF=38,XF=39,QF=42,G_=44,eP=45,Xa=58,tP=61,rP=62,nP=63,iP=64,z_=91,W_=93,sP=96,V_=123,oP=124,Y_=125,st={};st[0]="\\0";st[7]="\\a";st[8]="\\b";st[9]="\\t";st[10]="\\n";st[11]="\\v";st[12]="\\f";st[13]="\\r";st[27]="\\e";st[34]='\\"';st[92]="\\\\";st[133]="\\N";st[160]="\\_";st[8232]="\\L";st[8233]="\\P";var aP=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],uP=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function cP(t,e){var r,n,i,s,o,a,u;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=t.compiledTypeMap.fallback[o],u&&$_.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function lP(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new mt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+We.repeat("0",n-e.length)+e}var hP=1,ko=2;function fP(t){this.schema=t.schema||Gh,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=We.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=cP(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?ko:hP,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function i_(t,e){for(var r=We.repeat(" ",e),n=0,i=-1,s="",o,a=t.length;n<a;)i=t.indexOf(`
45
+ `,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!mr(h)&&h!==0;)h=t.input.charCodeAt(++t.position);fn(t,r,t.position,!1)}return!0}function o_(t,e){var r,n=t.tag,i=t.anchor,s=[],o,a=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,pe(t,"tab characters must not be used in indentation")),!(u!==45||(o=t.input.charCodeAt(t.position+1),!bt(o))));){if(a=!0,t.position++,$e(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,$i(t,e,N_,!1,!0),s.push(t.result),$e(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)pe(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function MF(t,e,r){var n,i,s,o,a,u,c=t.tag,l=t.anchor,h={},f=Object.create(null),d=null,p=null,y=null,m=!1,w=!1,T;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),T=t.input.charCodeAt(t.position);T!==0;){if(!m&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,pe(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(T===63||T===58)&&bt(n))T===63?(m&&(Hi(t,h,f,d,p,null,o,a,u),d=p=y=null),w=!0,m=!0,i=!0):m?(m=!1,i=!0):pe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,T=n;else{if(o=t.line,a=t.lineStart,u=t.position,!$i(t,r,B_,!1,!0))break;if(t.line===s){for(T=t.input.charCodeAt(t.position);Kn(T);)T=t.input.charCodeAt(++t.position);if(T===58)T=t.input.charCodeAt(++t.position),bt(T)||pe(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Hi(t,h,f,d,p,null,o,a,u),d=p=y=null),w=!0,m=!1,i=!1,d=t.tag,p=t.result;else if(w)pe(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=l,!0}else if(w)pe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(m&&(o=t.line,a=t.lineStart,u=t.position),$i(t,e,Za,!0,i)&&(m?p=t.result:y=t.result),m||(Hi(t,h,f,d,p,y,o,a,u),d=p=y=null),$e(t,!0,-1),T=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&T!==0)pe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&Hi(t,h,f,d,p,null,o,a,u),w&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=h),w}function jF(t){var e,r=!1,n=!1,i,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&pe(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(n=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):pe(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!bt(o);)o===33&&(n?pe(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),M_.test(i)||pe(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),CF.test(s)&&pe(t,"tag suffix cannot contain flow indicator characters")}s&&!j_.test(s)&&pe(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{pe(t,"tag name is malformed: "+s)}return r?t.tag=s:dn.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:pe(t,'undeclared tag handle "'+i+'"'),!0}function qF(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&pe(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!bt(r)&&!Ui(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&pe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function UF(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!bt(n)&&!Ui(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&pe(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),dn.call(t.anchorMap,r)||pe(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],$e(t,!0,-1),!0}function $i(t,e,r,n,i){var s,o,a,u=1,c=!1,l=!1,h,f,d,p,y,m;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=Za===r||N_===r,n&&$e(t,!0,-1)&&(c=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;jF(t)||qF(t);)$e(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||Za===r)&&(Ka===r||B_===r?y=e:y=e+1,m=t.position-t.lineStart,u===1?a&&(o_(t,m)||MF(t,m,y))||BF(t,y)?l=!0:(o&&NF(t,y)||IF(t,y)||LF(t,y)?l=!0:UF(t)?(l=!0,(t.tag!==null||t.anchor!==null)&&pe(t,"alias node should not have any properties")):PF(t,y,Ka===r)&&(l=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(l=a&&o_(t,m))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&pe(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(p=t.implicitTypes[h],p.resolve(t.result)){t.result=p.construct(t.result),t.tag=p.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(dn.call(t.typeMap[t.kind||"fallback"],t.tag))p=t.typeMap[t.kind||"fallback"][t.tag];else for(p=null,d=t.typeMap.multi[t.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(t.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||pe(t,"unknown tag !<"+t.tag+">"),t.result!==null&&p.kind!==t.kind&&pe(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result,t.tag)?(t.result=p.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):pe(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||l}function HF(t){var e=t.position,r,n,i,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&($e(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!bt(o);)o=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&pe(t,"directive name must not be less than one character in length");o!==0;){for(;Kn(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!mr(o));break}if(mr(o))break;for(r=t.position;o!==0&&!bt(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}o!==0&&Vh(t),dn.call(i_,n)?i_[n](t,n,i):Ja(t,'unknown document directive "'+n+'"')}if($e(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,$e(t,!0,-1)):s&&pe(t,"directives end mark is expected"),$i(t,t.lineIndent-1,Za,!1,!0),$e(t,!0,-1),t.checkLineBreaks&&DF.test(t.input.slice(e,t.position))&&Ja(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&eu(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,$e(t,!0,-1));return}if(t.position<t.length-1)pe(t,"end of the stream or a document separator is expected");else return}function $_(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
46
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new FF(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,pe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)HF(r);return r.documents}function $F(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var n=$_(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function GF(t,e){var r=$_(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new mt("expected a single document in the stream, but found more")}}var zF=$F,WF=GF,G_={loadAll:zF,load:WF},z_=Object.prototype.toString,W_=Object.prototype.hasOwnProperty,Kh=65279,VF=9,Ro=10,YF=13,KF=32,ZF=33,JF=34,Uh=35,XF=37,QF=38,eP=39,tP=42,V_=44,rP=45,Xa=58,nP=61,iP=62,sP=63,oP=64,Y_=91,K_=93,aP=96,Z_=123,uP=124,J_=125,st={};st[0]="\\0";st[7]="\\a";st[8]="\\b";st[9]="\\t";st[10]="\\n";st[11]="\\v";st[12]="\\f";st[13]="\\r";st[27]="\\e";st[34]='\\"';st[92]="\\\\";st[133]="\\N";st[160]="\\_";st[8232]="\\L";st[8233]="\\P";var cP=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],lP=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function hP(t,e){var r,n,i,s,o,a,u;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=t.compiledTypeMap.fallback[o],u&&W_.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function fP(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new mt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+We.repeat("0",n-e.length)+e}var dP=1,ko=2;function pP(t){this.schema=t.schema||Wh,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=We.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=hP(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?ko:dP,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function a_(t,e){for(var r=We.repeat(" ",e),n=0,i=-1,s="",o,a=t.length;n<a;)i=t.indexOf(`
47
47
  `,n),i===-1?(o=t.slice(n),n=a):(o=t.slice(n,i+1),n=i+1),o.length&&o!==`
48
- `&&(s+=r),s+=o;return s}function qh(t,e){return`
49
- `+We.repeat(" ",t.indent*e)}function dP(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function Qa(t){return t===VF||t===zF}function To(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Vh||65536<=t&&t<=1114111}function s_(t){return To(t)&&t!==Vh&&t!==WF&&t!==Ro}function o_(t,e,r){var n=s_(t),i=n&&!Qa(t);return(r?n:n&&t!==G_&&t!==z_&&t!==W_&&t!==V_&&t!==Y_)&&t!==jh&&!(e===Xa&&!i)||s_(e)&&!Qa(e)&&t===jh||e===Xa&&i}function pP(t){return To(t)&&t!==Vh&&!Qa(t)&&t!==eP&&t!==nP&&t!==Xa&&t!==G_&&t!==z_&&t!==W_&&t!==V_&&t!==Y_&&t!==jh&&t!==JF&&t!==QF&&t!==YF&&t!==oP&&t!==tP&&t!==rP&&t!==XF&&t!==KF&&t!==ZF&&t!==iP&&t!==sP}function mP(t){return!Qa(t)&&t!==Xa}function Do(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function K_(t){var e=/^\n* /;return e.test(t)}var Z_=1,Uh=2,J_=3,X_=4,qi=5;function yP(t,e,r,n,i,s,o,a){var u,c=0,l=null,h=!1,f=!1,d=n!==-1,p=-1,y=pP(Do(t,0))&&mP(Do(t,t.length-1));if(e||o)for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=Do(t,u),!To(c))return qi;y=y&&o_(c,l,a),l=c}else{for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=Do(t,u),c===Ro)h=!0,d&&(f=f||u-p-1>n&&t[p+1]!==" ",p=u);else if(!To(c))return qi;y=y&&o_(c,l,a),l=c}f=f||d&&u-p-1>n&&t[p+1]!==" "}return!h&&!f?y&&!o&&!i(t)?Z_:s===ko?qi:Uh:r>9&&K_(t)?qi:o?s===ko?qi:Uh:f?X_:J_}function gP(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===ko?'""':"''";if(!t.noCompatMode&&(aP.indexOf(e)!==-1||uP.test(e)))return t.quotingType===ko?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=n||t.flowLevel>-1&&r>=t.flowLevel;function u(c){return dP(t,c)}switch(yP(e,a,t.indent,o,u,t.quotingType,t.forceQuotes&&!n,i)){case Z_:return e;case Uh:return"'"+e.replace(/'/g,"''")+"'";case J_:return"|"+a_(e,t.indent)+u_(i_(e,s));case X_:return">"+a_(e,t.indent)+u_(i_(_P(e,o),s));case qi:return'"'+bP(e)+'"';default:throw new mt("impossible error: invalid scalar style")}}()}function a_(t,e){var r=K_(t)?String(e):"",n=t[t.length-1]===`
48
+ `&&(s+=r),s+=o;return s}function Hh(t,e){return`
49
+ `+We.repeat(" ",t.indent*e)}function mP(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function Qa(t){return t===KF||t===VF}function To(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Kh||65536<=t&&t<=1114111}function u_(t){return To(t)&&t!==Kh&&t!==YF&&t!==Ro}function c_(t,e,r){var n=u_(t),i=n&&!Qa(t);return(r?n:n&&t!==V_&&t!==Y_&&t!==K_&&t!==Z_&&t!==J_)&&t!==Uh&&!(e===Xa&&!i)||u_(e)&&!Qa(e)&&t===Uh||e===Xa&&i}function yP(t){return To(t)&&t!==Kh&&!Qa(t)&&t!==rP&&t!==sP&&t!==Xa&&t!==V_&&t!==Y_&&t!==K_&&t!==Z_&&t!==J_&&t!==Uh&&t!==QF&&t!==tP&&t!==ZF&&t!==uP&&t!==nP&&t!==iP&&t!==eP&&t!==JF&&t!==XF&&t!==oP&&t!==aP}function gP(t){return!Qa(t)&&t!==Xa}function Do(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function X_(t){var e=/^\n* /;return e.test(t)}var Q_=1,$h=2,eb=3,tb=4,qi=5;function _P(t,e,r,n,i,s,o,a){var u,c=0,l=null,h=!1,f=!1,d=n!==-1,p=-1,y=yP(Do(t,0))&&gP(Do(t,t.length-1));if(e||o)for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=Do(t,u),!To(c))return qi;y=y&&c_(c,l,a),l=c}else{for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=Do(t,u),c===Ro)h=!0,d&&(f=f||u-p-1>n&&t[p+1]!==" ",p=u);else if(!To(c))return qi;y=y&&c_(c,l,a),l=c}f=f||d&&u-p-1>n&&t[p+1]!==" "}return!h&&!f?y&&!o&&!i(t)?Q_:s===ko?qi:$h:r>9&&X_(t)?qi:o?s===ko?qi:$h:f?tb:eb}function bP(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===ko?'""':"''";if(!t.noCompatMode&&(cP.indexOf(e)!==-1||lP.test(e)))return t.quotingType===ko?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=n||t.flowLevel>-1&&r>=t.flowLevel;function u(c){return mP(t,c)}switch(_P(e,a,t.indent,o,u,t.quotingType,t.forceQuotes&&!n,i)){case Q_:return e;case $h:return"'"+e.replace(/'/g,"''")+"'";case eb:return"|"+l_(e,t.indent)+h_(a_(e,s));case tb:return">"+l_(e,t.indent)+h_(a_(vP(e,o),s));case qi:return'"'+EP(e)+'"';default:throw new mt("impossible error: invalid scalar style")}}()}function l_(t,e){var r=X_(t)?String(e):"",n=t[t.length-1]===`
50
50
  `,i=n&&(t[t.length-2]===`
51
51
  `||t===`
52
52
  `),s=i?"+":n?"":"-";return r+s+`
53
- `}function u_(t){return t[t.length-1]===`
54
- `?t.slice(0,-1):t}function _P(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=t.indexOf(`
55
- `);return c=c!==-1?c:t.length,r.lastIndex=c,c_(t.slice(0,c),e)}(),i=t[0]===`
53
+ `}function h_(t){return t[t.length-1]===`
54
+ `?t.slice(0,-1):t}function vP(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=t.indexOf(`
55
+ `);return c=c!==-1?c:t.length,r.lastIndex=c,f_(t.slice(0,c),e)}(),i=t[0]===`
56
56
  `||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
57
- `:"")+c_(u,e),i=s}return n}function c_(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(t);)a=n.index,a-i>e&&(s=o>i?o:a,u+=`
57
+ `:"")+f_(u,e),i=s}return n}function f_(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(t);)a=n.index,a-i>e&&(s=o>i?o:a,u+=`
58
58
  `+t.slice(i,s),i=s+1),o=a;return u+=`
59
59
  `,t.length-i>e&&o>i?u+=t.slice(i,o)+`
60
- `+t.slice(o+1):u+=t.slice(i),u.slice(1)}function bP(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=Do(t,i),n=st[r],!n&&To(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||lP(r);return e}function vP(t,e,r){var n="",i=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(Mr(t,e,a,!1,!1)||typeof a=="undefined"&&Mr(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function l_(t,e,r,n){var i="",s=t.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],t.replacer&&(u=t.replacer.call(r,String(o),u)),(Mr(t,e+1,u,!0,!0,!1,!0)||typeof u=="undefined"&&Mr(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=qh(t,e)),t.dump&&Ro===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function EP(t,e,r){var n="",i=t.tag,s=Object.keys(r),o,a,u,c,l;for(o=0,a=s.length;o<a;o+=1)l="",n!==""&&(l+=", "),t.condenseFlow&&(l+='"'),u=s[o],c=r[u],t.replacer&&(c=t.replacer.call(r,u,c)),Mr(t,e,u,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Mr(t,e,c,!1,!1)&&(l+=t.dump,n+=l));t.tag=i,t.dump="{"+n+"}"}function wP(t,e,r,n){var i="",s=t.tag,o=Object.keys(r),a,u,c,l,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new mt("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)f="",(!n||i!=="")&&(f+=qh(t,e)),c=o[a],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),Mr(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&Ro===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=qh(t,e)),Mr(t,e+1,l,!0,h)&&(t.dump&&Ro===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=s,t.dump=i||"{}"}function h_(t,e,r){var n,i,s,o,a,u;for(i=r?t.explicitTypes:t.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(u=t.styleMap[a.tag]||a.defaultStyle,H_.call(a.represent)==="[object Function]")n=a.represent(e,u);else if($_.call(a.represent,u))n=a.represent[u](e,u);else throw new mt("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}function Mr(t,e,r,n,i,s,o){t.tag=null,t.dump=r,h_(t,r,!1)||h_(t,r,!0);var a=H_.call(t.dump),u=n,c;n&&(n=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",h,f;if(l&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(l&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(wP(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(EP(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?l_(t,e-1,t.dump,i):l_(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(vP(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&gP(t,t.dump,e,s,u);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new mt("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function xP(t,e){var r=[],n=[],i,s;for(Hh(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function Hh(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)Hh(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)Hh(t[n[i]],e,r)}function SP(t,e){e=e||{};var r=new fP(e);r.noRefs||xP(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Mr(r,0,n,!0,!0)?r.dump+`
61
- `:""}var AP=SP,DP={dump:AP};function Yh(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var CP=rt,RP=p_,kP=__,TP=x_,OP=S_,FP=Gh,PP=U_.load,IP=U_.loadAll,LP=DP.dump,BP=mt,NP={binary:k_,float:w_,map:g_,null:b_,pairs:O_,set:F_,timestamp:C_,bool:v_,int:E_,merge:R_,omap:T_,seq:y_,str:m_},MP=Yh("safeLoad","load"),jP=Yh("safeLoadAll","loadAll"),qP=Yh("safeDump","dump"),UP={Type:CP,Schema:RP,FAILSAFE_SCHEMA:kP,JSON_SCHEMA:TP,CORE_SCHEMA:OP,DEFAULT_SCHEMA:FP,load:PP,loadAll:IP,dump:LP,YAMLException:BP,types:NP,safeLoad:MP,safeLoadAll:jP,safeDump:qP},Kh=UP;var M3=oe(Tu());var de={};oO(de,{bold:()=>R3,dimmed:()=>T3,error:()=>nt,grey:()=>O3,info:()=>C3,item:()=>F3,log:()=>wt,turboBlue:()=>ps,turboGradient:()=>D3,turboLoader:()=>yp,turboRed:()=>Qw,underline:()=>k3,warn:()=>zo,yellow:()=>ex});var Et=require("picocolors"),Kw=oe(tc()),Zw=oe(uc()),Jw="#0099F7",Xw="#F11712",A3="#FFFF00",mp=t=>{let e=P3(t);return r=>`\x1B[38;5;${e}m${r}${(0,Et.reset)("")}`},D3=(0,Zw.default)(Jw,Xw),ps=mp(Jw),Qw=mp(Xw),ex=mp(A3),yp=t=>(0,Kw.default)({text:t,spinner:{frames:[" ",ps("> "),ps(">> "),ps(">>>")]}}),C3=(...t)=>{wt(ps((0,Et.bold)(">>>")),t.join(" "))},R3=(...t)=>{wt((0,Et.bold)(t.join(" ")))},k3=(...t)=>{wt((0,Et.underline)(t.join(" ")))},T3=(...t)=>{wt((0,Et.dim)(t.join(" ")))},O3=(...t)=>{wt((0,Et.gray)(t.join(" ")))},F3=(...t)=>{wt(ps((0,Et.bold)(" \u2022")),t.join(" "))},wt=(...t)=>{console.log(...t)},zo=(...t)=>{console.error(ex((0,Et.bold)(">>>")),t.join(" "))},nt=(...t)=>{console.error(Qw((0,Et.bold)(">>>")),t.join(" "))};function P3(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,n=Math.floor(e/256)%256,i=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}var CS=oe(require("os")),RS=oe(vs()),O8=5e3;async function yc(t,e=[],r){let n={cwd:CS.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},timeout:O8,...r};try{let{stdout:i}=await(0,RS.default)(t,e,n);return i.trim()}catch{return}}async function Zo(){let[t,e,r,n]=await Promise.all([yc("yarnpkg",["--version"],{cwd:"."}),yc("npm",["--version"]),yc("pnpm",["--version"]),yc("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:n}}var kS=oe(require("fs-extra")),F8=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function Jo(t){let e=kS.default.readdirSync(t).filter(r=>!F8.includes(r)).filter(r=>!r.endsWith(".iml"));return{isEmpty:e.length===0,conflicts:e}}var Pp=oe(require("path")),Ip=oe(require("fs-extra")),Lp=oe(require("picocolors"));function gc(t){let e=Pp.default.resolve(t),r=Pp.default.basename(e),n=Ip.default.existsSync(e),i=Ip.default.lstatSync(e,{throwIfNoEntry:!1});if(i&&!i.isDirectory())return{valid:!1,root:e,projectName:r,error:`${Lp.default.dim(r)} is not a directory - please try a different location`};if(n){let{isEmpty:s,conflicts:o}=Jo(e);if(!s)return{valid:!1,root:e,projectName:r,error:`${Lp.default.dim(r)} (${e}) has ${o.length} conflicting ${o.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:e,projectName:r}}var CC=require("stream"),RC=require("stream/promises"),kC=require("zlib"),kr=require("fs"),Bt=require("path"),xl=require("child_process"),TC=oe(DC());var pj=1e4,mj=12e4;async function OC(t,e={},r=pj){let n=new AbortController,i=setTimeout(()=>{n.abort()},r);try{return await fetch(t,{...e,signal:n.signal})}finally{clearTimeout(i)}}async function Sl(t){try{return(await OC(t,{method:"HEAD"})).ok}catch{return!1}}async function E0(t,e){let[,r,n,i,s,...o]=t.pathname.split("/"),a=e?e.replace(/^\//,""):o.join("/");if(i===void 0||i===""&&s===void 0)try{let c=await OC(`https://api.github.com/repos/${r}/${n}`);if(!c.ok)return;let l=await c.json();return{username:r,name:n,branch:l.default_branch,filePath:a}}catch{return}let u=e?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&n&&u&&i==="tree")return{username:r,name:n,branch:u,filePath:a}}function w0({username:t,name:e,branch:r,filePath:n}){let i=`https://api.github.com/repos/${t}/${e}/contents`,s=`${n?`/${n}`:""}/package.json`;return Sl(`${i+s}?ref=${r}`)}function x0(t){try{let e=new URL(t);return Sl(e.href)}catch{return Sl(`https://api.github.com/repos/vercel/turborepo/contents/examples/${encodeURIComponent(t)}`)}}function yj(t,e,r){if(e.includes("\0"))return!1;let i=e.replace(/\\/g,"/").normalize("NFC"),s=r!=null?r:(0,Bt.resolve)(t),o=(0,Bt.resolve)(s,i);return!(0,Bt.relative)(s,o).startsWith("..")&&(0,Bt.resolve)(o)===o}function gj(t){return t==="SymbolicLink"||t==="Link"}async function FC({url:t,root:e,strip:r,filter:n}){let i=new AbortController,s=setTimeout(()=>{i.abort()},mj),o=[],a=(0,Bt.resolve)(e),u=new Set;try{let c=await fetch(t,{signal:i.signal});if(!c.ok||!c.body)throw new Error(`Failed to download: ${c.status}`);let l=CC.Readable.fromWeb(c.body),h=null,f=[],d=new TC.Parse({filter:p=>{if(h===null){let y=p.split("/");h=y.length?y[0]:null}return n(p,h)},onentry:p=>{let m=p.path.split("/").slice(r).join("/");if(!m){p.resume();return}if(!yj(e,m,a)){nt(`Blocked path traversal attempt: ${p.path}`),p.resume();return}if(p.type&&gj(p.type)){zo(`Blocked symlink: ${p.path}`),p.resume();return}let w=(0,Bt.resolve)(a,m);if(p.type==="Directory")u.has(w)||((0,kr.mkdirSync)(w,{recursive:!0}),u.add(w)),p.resume();else if(p.type==="File"){let T=(0,Bt.dirname)(w);u.has(T)||((0,kr.mkdirSync)(T,{recursive:!0}),u.add(T));let F=(0,kr.createWriteStream)(w);o.push(F),f.push(new Promise((I,R)=>{F.on("finish",I),F.on("error",R)})),p.pipe(F)}else p.resume()}});await(0,RC.pipeline)(l,(0,kC.createGunzip)(),d),await Promise.all(f)}finally{clearTimeout(s);for(let c of o)c.destroy()}}async function S0(t,{username:e,name:r,branch:n,filePath:i}){await FC({url:`https://codeload.github.com/${e}/${r}/tar.gz/${n}`,root:t,strip:i?i.split("/").length+1:1,filter:(s,o)=>s.startsWith(`${o}${i?`/${i}/`:"/"}`)})}async function A0(t,e){let r=(0,Bt.join)(t,".turbo-clone-temp");try{(0,xl.execFileSync)("git",["clone","--filter=blob:none","--no-checkout","--depth","1","--sparse","https://github.com/vercel/turborepo.git",r],{stdio:"pipe"}),(0,xl.execFileSync)("git",["sparse-checkout","set",`examples/${e}`],{cwd:r,stdio:"pipe"}),(0,xl.execFileSync)("git",["checkout"],{cwd:r,stdio:"pipe"});let n=(0,Bt.join)(r,"examples",e);(0,kr.cpSync)(n,t,{recursive:!0})}catch{(0,kr.rmSync)(r,{recursive:!0,force:!0}),zo(`Git is not available. Downloading example via tarball (slower).
62
- For faster downloads, install git: https://git-scm.com/downloads`),await FC({url:"https://codeload.github.com/vercel/turborepo/tar.gz/main",root:t,strip:3,filter:(i,s)=>i.startsWith(`${s}/examples/${e}/`)});return}(0,kr.rmSync)(r,{recursive:!0,force:!0})}var D0=oe(require("fs-extra"));async function C0(t){try{return await D0.default.access(t,D0.default.constants.W_OK),!0}catch{return!1}}var Gs=oe(require("path")),R0=oe(jC()),gi=oe(require("picocolors")),Al=oe(require("fs-extra"));function Ej(t){return typeof t=="object"&&t!==null&&typeof t.message=="string"}var zs=class extends Error{};function wj(t){return t.hostname==="github.com"}async function k0({appPath:t,example:e,isDefaultExample:r,examplePath:n}){let i,s;wt();let o=yp("Downloading files...");o.start();try{if(!r){try{s=new URL(e)}catch(m){m.code!=="ERR_INVALID_URL"&&(o.stop(),nt(m),process.exit(1))}s?(wj(s)||(o.stop(),nt(`Invalid URL: ${gi.default.red(`"${e}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),i=await E0(s,n),i||(o.stop(),nt(`Unable to fetch repository information from: ${gi.default.red(`"${e}"`)}. Please fix the URL and try again.`),process.exit(1)),await w0(i)||(o.stop(),nt(`Could not locate the repository for ${gi.default.red(`"${e}"`)}. Please check that the repository exists and try again.`),process.exit(1))):await x0(e)||(o.stop(),nt(`Could not locate an example named ${gi.default.red(`"${e}"`)}. It could be due to the following:
60
+ `+t.slice(o+1):u+=t.slice(i),u.slice(1)}function EP(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=Do(t,i),n=st[r],!n&&To(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||fP(r);return e}function wP(t,e,r){var n="",i=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(Mr(t,e,a,!1,!1)||typeof a=="undefined"&&Mr(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function d_(t,e,r,n){var i="",s=t.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],t.replacer&&(u=t.replacer.call(r,String(o),u)),(Mr(t,e+1,u,!0,!0,!1,!0)||typeof u=="undefined"&&Mr(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Hh(t,e)),t.dump&&Ro===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function xP(t,e,r){var n="",i=t.tag,s=Object.keys(r),o,a,u,c,l;for(o=0,a=s.length;o<a;o+=1)l="",n!==""&&(l+=", "),t.condenseFlow&&(l+='"'),u=s[o],c=r[u],t.replacer&&(c=t.replacer.call(r,u,c)),Mr(t,e,u,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Mr(t,e,c,!1,!1)&&(l+=t.dump,n+=l));t.tag=i,t.dump="{"+n+"}"}function SP(t,e,r,n){var i="",s=t.tag,o=Object.keys(r),a,u,c,l,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new mt("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)f="",(!n||i!=="")&&(f+=Hh(t,e)),c=o[a],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),Mr(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&Ro===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Hh(t,e)),Mr(t,e+1,l,!0,h)&&(t.dump&&Ro===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=s,t.dump=i||"{}"}function p_(t,e,r){var n,i,s,o,a,u;for(i=r?t.explicitTypes:t.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(u=t.styleMap[a.tag]||a.defaultStyle,z_.call(a.represent)==="[object Function]")n=a.represent(e,u);else if(W_.call(a.represent,u))n=a.represent[u](e,u);else throw new mt("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}function Mr(t,e,r,n,i,s,o){t.tag=null,t.dump=r,p_(t,r,!1)||p_(t,r,!0);var a=z_.call(t.dump),u=n,c;n&&(n=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",h,f;if(l&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(l&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(SP(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(xP(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?d_(t,e-1,t.dump,i):d_(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(wP(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&bP(t,t.dump,e,s,u);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new mt("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function AP(t,e){var r=[],n=[],i,s;for(Gh(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function Gh(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)Gh(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)Gh(t[n[i]],e,r)}function DP(t,e){e=e||{};var r=new pP(e);r.noRefs||AP(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Mr(r,0,n,!0,!0)?r.dump+`
61
+ `:""}var CP=DP,RP={dump:CP};function Zh(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var kP=rt,TP=g_,OP=E_,FP=D_,PP=C_,IP=Wh,LP=G_.load,BP=G_.loadAll,NP=RP.dump,MP=mt,jP={binary:F_,float:A_,map:v_,null:w_,pairs:I_,set:L_,timestamp:T_,bool:x_,int:S_,merge:O_,omap:P_,seq:b_,str:__},qP=Zh("safeLoad","load"),UP=Zh("safeLoadAll","loadAll"),HP=Zh("safeDump","dump"),$P={Type:kP,Schema:TP,FAILSAFE_SCHEMA:OP,JSON_SCHEMA:FP,CORE_SCHEMA:PP,DEFAULT_SCHEMA:IP,load:LP,loadAll:BP,dump:NP,YAMLException:MP,types:jP,safeLoad:qP,safeLoadAll:UP,safeDump:HP},Jh=$P;var q3=oe(Tu());var de={};uO(de,{bold:()=>T3,dimmed:()=>F3,error:()=>nt,grey:()=>P3,info:()=>k3,item:()=>I3,log:()=>wt,turboBlue:()=>ps,turboGradient:()=>R3,turboLoader:()=>_p,turboRed:()=>rx,underline:()=>O3,warn:()=>zo,yellow:()=>nx});var Et=require("picocolors"),Xw=oe(tc()),Qw=oe(uc()),ex="#0099F7",tx="#F11712",C3="#FFFF00",gp=t=>{let e=L3(t);return r=>`\x1B[38;5;${e}m${r}${(0,Et.reset)("")}`},R3=(0,Qw.default)(ex,tx),ps=gp(ex),rx=gp(tx),nx=gp(C3),_p=t=>(0,Xw.default)({text:t,spinner:{frames:[" ",ps("> "),ps(">> "),ps(">>>")]}}),k3=(...t)=>{wt(ps((0,Et.bold)(">>>")),t.join(" "))},T3=(...t)=>{wt((0,Et.bold)(t.join(" ")))},O3=(...t)=>{wt((0,Et.underline)(t.join(" ")))},F3=(...t)=>{wt((0,Et.dim)(t.join(" ")))},P3=(...t)=>{wt((0,Et.gray)(t.join(" ")))},I3=(...t)=>{wt(ps((0,Et.bold)(" \u2022")),t.join(" "))},wt=(...t)=>{console.log(...t)},zo=(...t)=>{console.error(nx((0,Et.bold)(">>>")),t.join(" "))},nt=(...t)=>{console.error(rx((0,Et.bold)(">>>")),t.join(" "))};function L3(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,n=Math.floor(e/256)%256,i=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}var TS=oe(require("os")),OS=oe(vs()),P8=5e3;async function yc(t,e=[],r){let n={cwd:TS.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},timeout:P8,...r};try{let{stdout:i}=await(0,OS.default)(t,e,n);return i.trim()}catch{return}}async function Zo(){let[t,e,r,n]=await Promise.all([yc("yarnpkg",["--version"],{cwd:"."}),yc("npm",["--version"]),yc("pnpm",["--version"]),yc("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:n}}var FS=oe(require("fs-extra")),I8=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function Jo(t){let e=FS.default.readdirSync(t).filter(r=>!I8.includes(r)).filter(r=>!r.endsWith(".iml"));return{isEmpty:e.length===0,conflicts:e}}var Lp=oe(require("path")),Bp=oe(require("fs-extra")),Np=oe(require("picocolors"));function gc(t){let e=Lp.default.resolve(t),r=Lp.default.basename(e),n=Bp.default.existsSync(e),i=Bp.default.lstatSync(e,{throwIfNoEntry:!1});if(i&&!i.isDirectory())return{valid:!1,root:e,projectName:r,error:`${Np.default.dim(r)} is not a directory - please try a different location`};if(n){let{isEmpty:s,conflicts:o}=Jo(e);if(!s)return{valid:!1,root:e,projectName:r,error:`${Np.default.dim(r)} (${e}) has ${o.length} conflicting ${o.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:e,projectName:r}}var TC=require("stream"),OC=require("stream/promises"),FC=require("zlib"),kr=require("fs"),Al=require("fs/promises"),Ct=require("path"),PC=require("os"),xl=require("child_process"),Dl=oe(kC());var yj=1e4,IC=12e4;async function x0(t,e={},r=yj){let n=new AbortController,i=setTimeout(()=>{n.abort()},r);try{return await fetch(t,{...e,signal:n.signal})}finally{clearTimeout(i)}}async function Sl(t){try{return(await x0(t,{method:"HEAD"})).ok}catch{return!1}}async function S0(t,e){let[,r,n,i,s,...o]=t.pathname.split("/"),a=e?e.replace(/^\//,""):o.join("/");if(i===void 0||i===""&&s===void 0)try{let c=await x0(`https://api.github.com/repos/${r}/${n}`);if(!c.ok)return;let l=await c.json();return{username:r,name:n,branch:l.default_branch,filePath:a}}catch{return}let u=e?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&n&&u&&i==="tree")return{username:r,name:n,branch:u,filePath:a}}function A0({username:t,name:e,branch:r,filePath:n}){let i=`https://api.github.com/repos/${t}/${e}/contents`,s=`${n?`/${n}`:""}/package.json`;return Sl(`${i+s}?ref=${r}`)}function D0(t){try{let e=new URL(t);return Sl(e.href)}catch{return Sl(`https://api.github.com/repos/vercel/turborepo/contents/examples/${encodeURIComponent(t)}`)}}function gj(t,e,r){if(e.includes("\0"))return!1;let i=e.replace(/\\/g,"/").normalize("NFC"),s=r!=null?r:(0,Ct.resolve)(t),o=(0,Ct.resolve)(s,i);return!(0,Ct.relative)(s,o).startsWith("..")&&(0,Ct.resolve)(o)===o}function _j(t){return t==="SymbolicLink"||t==="Link"}async function bj({url:t,root:e,strip:r,filter:n}){let i=new AbortController,s=setTimeout(()=>{i.abort()},IC),o=[],a=(0,Ct.resolve)(e),u=new Set;try{let c=await fetch(t,{signal:i.signal});if(!c.ok||!c.body)throw new Error(`Failed to download: ${c.status}`);let l=TC.Readable.fromWeb(c.body),h=null,f=[],d=new Dl.Parse({filter:p=>{if(h===null){let y=p.split("/");h=y.length?y[0]:null}return n(p,h)},onentry:p=>{let m=p.path.split("/").slice(r).join("/");if(!m){p.resume();return}if(!gj(e,m,a)){nt(`Blocked path traversal attempt: ${p.path}`),p.resume();return}if(p.type&&_j(p.type)){zo(`Blocked symlink: ${p.path}`),p.resume();return}let w=(0,Ct.resolve)(a,m);if(p.type==="Directory")u.has(w)||((0,kr.mkdirSync)(w,{recursive:!0}),u.add(w)),p.resume();else if(p.type==="File"){let T=(0,Ct.dirname)(w);u.has(T)||((0,kr.mkdirSync)(T,{recursive:!0}),u.add(T));let F=(0,kr.createWriteStream)(w);o.push(F),f.push(new Promise((I,R)=>{F.on("finish",I),F.on("error",R)})),p.pipe(F)}else p.resume()}});await(0,OC.pipeline)(l,(0,FC.createGunzip)(),d),await Promise.all(f)}finally{clearTimeout(s);for(let c of o)c.destroy()}}async function C0(t,{username:e,name:r,branch:n,filePath:i}){let s=`https://codeload.github.com/${e}/${r}/tar.gz/${n}`,o=(0,Ct.join)((0,PC.tmpdir)(),`turbo-download-${Date.now()}.tar.gz`),a=await x0(s,{},IC);if(!a.ok||!a.body)throw new Error(`Failed to download: ${a.status}`);let u=Buffer.from(await a.arrayBuffer());await(0,Al.writeFile)(o,u);let c=null;try{await(0,Dl.extract)({file:o,cwd:t,strip:i?i.split("/").length+1:1,filter:l=>{if(c===null){let h=l.split("/");c=h.length?h[0]:null}return l.startsWith(`${c}${i?`/${i}/`:"/"}`)}})}finally{await(0,Al.unlink)(o)}}async function R0(t,e){let r=(0,Ct.join)(t,".turbo-clone-temp");try{(0,xl.execFileSync)("git",["clone","--filter=blob:none","--no-checkout","--depth","1","--sparse","https://github.com/vercel/turborepo.git",r],{stdio:"pipe"}),(0,xl.execFileSync)("git",["sparse-checkout","set",`examples/${e}`],{cwd:r,stdio:"pipe"}),(0,xl.execFileSync)("git",["checkout"],{cwd:r,stdio:"pipe"});let n=(0,Ct.join)(r,"examples",e);(0,kr.cpSync)(n,t,{recursive:!0})}catch{(0,kr.rmSync)(r,{recursive:!0,force:!0}),zo(`Git is not available. Downloading example via tarball (slower).
62
+ For faster downloads, install git: https://git-scm.com/downloads`),await bj({url:"https://codeload.github.com/vercel/turborepo/tar.gz/main",root:t,strip:3,filter:(i,s)=>i.startsWith(`${s}/examples/${e}/`)});return}(0,kr.rmSync)(r,{recursive:!0,force:!0})}var k0=oe(require("fs-extra"));async function T0(t){try{return await k0.default.access(t,k0.default.constants.W_OK),!0}catch{return!1}}var Gs=oe(require("path")),O0=oe(UC()),gi=oe(require("picocolors")),Cl=oe(require("fs-extra"));function xj(t){return typeof t=="object"&&t!==null&&typeof t.message=="string"}var zs=class extends Error{};function Sj(t){return t.hostname==="github.com"}async function F0({appPath:t,example:e,isDefaultExample:r,examplePath:n}){let i,s;wt();let o=_p("Downloading files...");o.start();try{if(!r){try{s=new URL(e)}catch(m){m.code!=="ERR_INVALID_URL"&&(o.stop(),nt(m),process.exit(1))}s?(Sj(s)||(o.stop(),nt(`Invalid URL: ${gi.default.red(`"${e}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),i=await S0(s,n),i||(o.stop(),nt(`Unable to fetch repository information from: ${gi.default.red(`"${e}"`)}. Please fix the URL and try again.`),process.exit(1)),await A0(i)||(o.stop(),nt(`Could not locate the repository for ${gi.default.red(`"${e}"`)}. Please check that the repository exists and try again.`),process.exit(1))):(await D0(e)||(o.stop(),nt(`Could not locate an example named ${gi.default.red(`"${e}"`)}. It could be due to the following:
63
63
  `,`1. Your spelling of example ${gi.default.red(`"${e}"`)} might be incorrect.
64
- `,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let a=Gs.default.resolve(t);await C0(Gs.default.dirname(a))||(o.stop(),nt("The application path is not writable, please check folder permissions and try again."),nt("It is likely you do not have write permissions for this folder."),process.exit(1));let u=Gs.default.basename(a);try{await Al.default.mkdir(a,{recursive:!0})}catch(m){o.stop(),nt("Unable to create project directory"),nt(m),process.exit(1)}let{isEmpty:c,conflicts:l}=Jo(a);c||(o.stop(),nt(`${gi.default.dim(a)} has ${l.length} conflicting ${l.length===1?"file":"files"} - please try a different location`),process.exit(1));let h=process.cwd();if(process.chdir(a),!r&&i){let m=i;await(0,R0.default)(()=>S0(a,m),{retries:3})}else await(0,R0.default)(()=>A0(a,e),{retries:3});o.stop();let f=Gs.default.join(a,"package.json"),d=Al.default.existsSync(f),p=[];if(d){let m;try{m=Al.default.readJsonSync(f)}catch{}m&&p.push(...Object.keys(m.scripts||{}))}let y=t;return Gs.default.join(h,u)===t&&(y=u),{cdPath:y,hasPackageJson:d,availableScripts:p,repoInfo:i}}catch(a){throw o.stop(),new zs(Ej(a)?a.message:String(a))}}var Dl=oe(require("picocolors")),qC=oe(require("update-check"));function T0(t){let{packageInfo:e,upgradeCommand:r}=t,n=(0,qC.default)(e).catch(()=>null);return async function(s=0){try{let o=await n;if(o!=null&&o.latest){wt(),wt(Dl.default.yellow(Dl.default.bold(`A new version of \`${e.name}\` is available!`)));let a=typeof r=="function"?await r():r;a&&wt(`You can update by running: ${Dl.default.cyan(a)}`),wt()}process.exit(s)}catch(o){process.env.DEBUG&&nt("Update check failed:",o),process.exit(s)}}}var ro=require("fs"),H0=require("crypto");var a2=oe(require("picocolors"));var ke;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(ke||(ke={}));var F0;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(F0||(F0={}));var ae=ke.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ln=t=>{switch(typeof t){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return isNaN(t)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(t)?ae.array:t===null?ae.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ae.promise:typeof Map!="undefined"&&t instanceof Map?ae.map:typeof Set!="undefined"&&t instanceof Set?ae.set:typeof Date!="undefined"&&t instanceof Date?ae.date:ae.object;default:return ae.unknown}},ie=ke.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),xj=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Mt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,u=0;for(;u<o.path.length;){let c=o.path[u];u===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],u++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,ke.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Mt.create=t=>new Mt(t);var _a=(t,e)=>{let r;switch(t.code){case ie.invalid_type:t.received===ae.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case ie.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,ke.jsonStringifyReplacer)}`;break;case ie.unrecognized_keys:r=`Unrecognized key(s) in object: ${ke.joinValues(t.keys,", ")}`;break;case ie.invalid_union:r="Invalid input";break;case ie.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ke.joinValues(t.options)}`;break;case ie.invalid_enum_value:r=`Invalid enum value. Expected ${ke.joinValues(t.options)}, received '${t.received}'`;break;case ie.invalid_arguments:r="Invalid function arguments";break;case ie.invalid_return_type:r="Invalid function return type";break;case ie.invalid_date:r="Invalid date";break;case ie.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:ke.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case ie.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case ie.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case ie.custom:r="Invalid input";break;case ie.invalid_intersection_types:r="Intersection results could not be merged";break;case ie.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ie.not_finite:r="Number must be finite";break;default:r=e.defaultError,ke.assertNever(t)}return{message:r}},$C=_a;function Sj(t){$C=t}function Rl(){return $C}var kl=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s},a="",u=n.filter(c=>!!c).slice().reverse();for(let c of u)a=c(o,{data:e,defaultError:a}).message;return{...i,path:s,message:i.message||a}},Aj=[];function ue(t,e){let r=kl({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Rl(),_a].filter(n=>!!n)});t.common.issues.push(r)}var et=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return Ee;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return et.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return Ee;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value!="undefined"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},Ee=Object.freeze({status:"aborted"}),GC=t=>({status:"dirty",value:t}),gt=t=>({status:"valid",value:t}),P0=t=>t.status==="aborted",I0=t=>t.status==="dirty",ba=t=>t.status==="valid",Tl=t=>typeof Promise!="undefined"&&t instanceof Promise,ge;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ge||(ge={}));var Qt=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},UC=(t,e)=>{if(ba(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Mt(t.common.issues);return this._error=r,this._error}}};function we(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data=="undefined"?{message:n!=null?n:a.defaultError}:{message:r!=null?r:a.defaultError},description:i}}var xe=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Ln(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Ln(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new et,ctx:{common:e.parent.common,data:e.data,parsedType:Ln(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Tl(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ln(e)},s=this._parseSync({data:e,path:i.path,parent:i});return UC(i,s)}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ln(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(Tl(i)?i:Promise.resolve(i));return UC(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r=="undefined"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:ie.custom,...n(i)});return typeof Promise!="undefined"&&o instanceof Promise?o.then(u=>u?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new qt({schema:this,typeName:be.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return cr.create(this,this._def)}nullable(){return sn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jt.create(this,this._def)}promise(){return Mn.create(this,this._def)}or(e){return Ei.create([this,e],this._def)}and(e){return wi.create(this,e,this._def)}transform(e){return new qt({...we(this._def),schema:this,typeName:be.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Ci({...we(this._def),innerType:this,defaultValue:r,typeName:be.ZodDefault})}brand(){return new Ol({typeName:be.ZodBranded,type:this,...we(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Js({...we(this._def),innerType:this,catchValue:r,typeName:be.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Ri.create(this,e)}readonly(){return Qs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Dj=/^c[^\s-]{8,}$/i,Cj=/^[a-z][a-z0-9]*$/,Rj=/^[0-9A-HJKMNP-TV-Z]{26}$/,kj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Tj=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Oj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",O0,Fj=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Pj=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Ij=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Lj(t,e){return!!((e==="v4"||!e)&&Fj.test(t)||(e==="v6"||!e)&&Pj.test(t))}var Nt=class extends xe{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ae.string){let s=this._getOrReturnCtx(e);return ue(s,{code:ie.invalid_type,expected:ae.string,received:s.parsedType}),Ee}let n=new et,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?ue(i,{code:ie.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&ue(i,{code:ie.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")Tj.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"email",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")O0||(O0=new RegExp(Oj,"u")),O0.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"emoji",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")kj.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"uuid",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")Dj.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"cuid",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")Cj.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"cuid2",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")Rj.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"ulid",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),ue(i,{validation:"url",code:ie.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"regex",code:ie.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?Ij(s).test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?Lj(e.data,s.version)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"ip",code:ie.invalid_string,message:s.message}),n.dirty()):ke.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:ie.invalid_string,...ge.errToObj(n)})}_addCheck(e){return new Nt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ge.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ge.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ge.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ge.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ge.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ge.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ge.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ge.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)=="undefined"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...ge.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ge.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...ge.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ge.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ge.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ge.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ge.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ge.errToObj(r)})}nonempty(e){return this.min(1,ge.errToObj(e))}trim(){return new Nt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Nt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Nt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Nt.create=t=>{var e;return new Nt({checks:[],typeName:be.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...we(t)})};function Bj(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var Tr=class extends xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ae.number){let s=this._getOrReturnCtx(e);return ue(s,{code:ie.invalid_type,expected:ae.number,received:s.parsedType}),Ee}let n,i=new et;for(let s of this._def.checks)s.kind==="int"?ke.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?Bj(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.not_finite,message:s.message}),i.dirty()):ke.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ge.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ge.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ge.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ge.toString(r))}setLimit(e,r,n,i){return new Tr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ge.toString(i)}]})}_addCheck(e){return new Tr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ge.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ge.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ge.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ge.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ge.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ge.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ge.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ge.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ge.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&ke.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Tr.create=t=>new Tr({checks:[],typeName:be.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...we(t)});var Or=class extends xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ae.bigint){let s=this._getOrReturnCtx(e);return ue(s,{code:ie.invalid_type,expected:ae.bigint,received:s.parsedType}),Ee}let n,i=new et;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):ke.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ge.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ge.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ge.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ge.toString(r))}setLimit(e,r,n,i){return new Or({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ge.toString(i)}]})}_addCheck(e){return new Or({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ge.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ge.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ge.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ge.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ge.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Or.create=t=>{var e;return new Or({checks:[],typeName:be.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...we(t)})};var _i=class extends xe{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ae.boolean){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.boolean,received:n.parsedType}),Ee}return gt(e.data)}};_i.create=t=>new _i({typeName:be.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...we(t)});var rn=class extends xe{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ae.date){let s=this._getOrReturnCtx(e);return ue(s,{code:ie.invalid_type,expected:ae.date,received:s.parsedType}),Ee}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return ue(s,{code:ie.invalid_date}),Ee}let n=new et,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):ke.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new rn({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ge.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ge.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};rn.create=t=>new rn({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:be.ZodDate,...we(t)});var Vs=class extends xe{_parse(e){if(this._getType(e)!==ae.symbol){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.symbol,received:n.parsedType}),Ee}return gt(e.data)}};Vs.create=t=>new Vs({typeName:be.ZodSymbol,...we(t)});var bi=class extends xe{_parse(e){if(this._getType(e)!==ae.undefined){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.undefined,received:n.parsedType}),Ee}return gt(e.data)}};bi.create=t=>new bi({typeName:be.ZodUndefined,...we(t)});var vi=class extends xe{_parse(e){if(this._getType(e)!==ae.null){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.null,received:n.parsedType}),Ee}return gt(e.data)}};vi.create=t=>new vi({typeName:be.ZodNull,...we(t)});var Nn=class extends xe{constructor(){super(...arguments),this._any=!0}_parse(e){return gt(e.data)}};Nn.create=t=>new Nn({typeName:be.ZodAny,...we(t)});var tn=class extends xe{constructor(){super(...arguments),this._unknown=!0}_parse(e){return gt(e.data)}};tn.create=t=>new tn({typeName:be.ZodUnknown,...we(t)});var lr=class extends xe{_parse(e){let r=this._getOrReturnCtx(e);return ue(r,{code:ie.invalid_type,expected:ae.never,received:r.parsedType}),Ee}};lr.create=t=>new lr({typeName:be.ZodNever,...we(t)});var Ys=class extends xe{_parse(e){if(this._getType(e)!==ae.undefined){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.void,received:n.parsedType}),Ee}return gt(e.data)}};Ys.create=t=>new Ys({typeName:be.ZodVoid,...we(t)});var jt=class extends xe{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==ae.array)return ue(r,{code:ie.invalid_type,expected:ae.array,received:r.parsedType}),Ee;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(ue(r,{code:o?ie.too_big:ie.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(ue(r,{code:ie.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(ue(r,{code:ie.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new Qt(r,o,r.path,a)))).then(o=>et.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new Qt(r,o,r.path,a)));return et.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new jt({...this._def,minLength:{value:e,message:ge.toString(r)}})}max(e,r){return new jt({...this._def,maxLength:{value:e,message:ge.toString(r)}})}length(e,r){return new jt({...this._def,exactLength:{value:e,message:ge.toString(r)}})}nonempty(e){return this.min(1,e)}};jt.create=(t,e)=>new jt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:be.ZodArray,...we(e)});function Ws(t){if(t instanceof Be){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=cr.create(Ws(n))}return new Be({...t._def,shape:()=>e})}else return t instanceof jt?new jt({...t._def,type:Ws(t.element)}):t instanceof cr?cr.create(Ws(t.unwrap())):t instanceof sn?sn.create(Ws(t.unwrap())):t instanceof er?er.create(t.items.map(e=>Ws(e))):t}var Be=class extends xe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=ke.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==ae.object){let c=this._getOrReturnCtx(e);return ue(c,{code:ie.invalid_type,expected:ae.object,received:c.parsedType}),Ee}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof lr&&this._def.unknownKeys==="strip"))for(let c in i.data)o.includes(c)||a.push(c);let u=[];for(let c of o){let l=s[c],h=i.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Qt(i,h,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof lr){let c=this._def.unknownKeys;if(c==="passthrough")for(let l of a)u.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(c==="strict")a.length>0&&(ue(i,{code:ie.unrecognized_keys,keys:a}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let l of a){let h=i.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Qt(i,h,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let c=[];for(let l of u){let h=await l.key;c.push({key:h,value:await l.value,alwaysSet:l.alwaysSet})}return c}).then(c=>et.mergeObjectSync(n,c)):et.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(e){return ge.errToObj,new Be({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let u=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=ge.errToObj(e).message)!==null&&a!==void 0?a:u}:{message:u}}}:{}})}strip(){return new Be({...this._def,unknownKeys:"strip"})}passthrough(){return new Be({...this._def,unknownKeys:"passthrough"})}extend(e){return new Be({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Be({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:be.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Be({...this._def,catchall:e})}pick(e){let r={};return ke.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new Be({...this._def,shape:()=>r})}omit(e){let r={};return ke.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new Be({...this._def,shape:()=>r})}deepPartial(){return Ws(this)}partial(e){let r={};return ke.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new Be({...this._def,shape:()=>r})}required(e){let r={};return ke.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof cr;)s=s._def.innerType;r[n]=s}}),new Be({...this._def,shape:()=>r})}keyof(){return zC(ke.objectKeys(this.shape))}};Be.create=(t,e)=>new Be({shape:()=>t,unknownKeys:"strip",catchall:lr.create(),typeName:be.ZodObject,...we(e)});Be.strictCreate=(t,e)=>new Be({shape:()=>t,unknownKeys:"strict",catchall:lr.create(),typeName:be.ZodObject,...we(e)});Be.lazycreate=(t,e)=>new Be({shape:t,unknownKeys:"strip",catchall:lr.create(),typeName:be.ZodObject,...we(e)});var Ei=class extends xe{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Mt(a.ctx.common.issues));return ue(r,{code:ie.invalid_union,unionErrors:o}),Ee}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let u of n){let c={...r,common:{...r.common,issues:[]},parent:null},l=u._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(u=>new Mt(u));return ue(r,{code:ie.invalid_union,unionErrors:a}),Ee}}get options(){return this._def.options}};Ei.create=(t,e)=>new Ei({options:t,typeName:be.ZodUnion,...we(e)});var Cl=t=>t instanceof Si?Cl(t.schema):t instanceof qt?Cl(t.innerType()):t instanceof Ai?[t.value]:t instanceof Fr?t.options:t instanceof Di?Object.keys(t.enum):t instanceof Ci?Cl(t._def.innerType):t instanceof bi?[void 0]:t instanceof vi?[null]:null,Ks=class extends xe{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.object)return ue(r,{code:ie.invalid_type,expected:ae.object,received:r.parsedType}),Ee;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(ue(r,{code:ie.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ee)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=Cl(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new Ks({typeName:be.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...we(n)})}};function L0(t,e){let r=Ln(t),n=Ln(e);if(t===e)return{valid:!0,data:t};if(r===ae.object&&n===ae.object){let i=ke.objectKeys(e),s=ke.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let u=L0(t[a],e[a]);if(!u.valid)return{valid:!1};o[a]=u.data}return{valid:!0,data:o}}else if(r===ae.array&&n===ae.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],u=L0(o,a);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return r===ae.date&&n===ae.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var wi=class extends xe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(P0(s)||P0(o))return Ee;let a=L0(s.value,o.value);return a.valid?((I0(s)||I0(o))&&r.dirty(),{status:r.value,value:a.data}):(ue(n,{code:ie.invalid_intersection_types}),Ee)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};wi.create=(t,e,r)=>new wi({left:t,right:e,typeName:be.ZodIntersection,...we(r)});var er=class extends xe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.array)return ue(n,{code:ie.invalid_type,expected:ae.array,received:n.parsedType}),Ee;if(n.data.length<this._def.items.length)return ue(n,{code:ie.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ee;!this._def.rest&&n.data.length>this._def.items.length&&(ue(n,{code:ie.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Qt(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>et.mergeArray(r,o)):et.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new er({...this._def,rest:e})}};er.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new er({items:t,typeName:be.ZodTuple,rest:null,...we(e)})};var xi=class extends xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.object)return ue(n,{code:ie.invalid_type,expected:ae.object,received:n.parsedType}),Ee;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new Qt(n,a,n.path,a)),value:o._parse(new Qt(n,n.data[a],n.path,a))});return n.common.async?et.mergeObjectAsync(r,i):et.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof xe?new xi({keyType:e,valueType:r,typeName:be.ZodRecord,...we(n)}):new xi({keyType:Nt.create(),valueType:e,typeName:be.ZodRecord,...we(r)})}},Zs=class extends xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.map)return ue(n,{code:ie.invalid_type,expected:ae.map,received:n.parsedType}),Ee;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,u],c)=>({key:i._parse(new Qt(n,a,n.path,[c,"key"])),value:s._parse(new Qt(n,u,n.path,[c,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of o){let c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return Ee;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of o){let c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return Ee;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}}}};Zs.create=(t,e,r)=>new Zs({valueType:e,keyType:t,typeName:be.ZodMap,...we(r)});var nn=class extends xe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.set)return ue(n,{code:ie.invalid_type,expected:ae.set,received:n.parsedType}),Ee;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(ue(n,{code:ie.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(ue(n,{code:ie.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(u){let c=new Set;for(let l of u){if(l.status==="aborted")return Ee;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}let a=[...n.data.values()].map((u,c)=>s._parse(new Qt(n,u,n.path,c)));return n.common.async?Promise.all(a).then(u=>o(u)):o(a)}min(e,r){return new nn({...this._def,minSize:{value:e,message:ge.toString(r)}})}max(e,r){return new nn({...this._def,maxSize:{value:e,message:ge.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};nn.create=(t,e)=>new nn({valueType:t,minSize:null,maxSize:null,typeName:be.ZodSet,...we(e)});var Bn=class extends xe{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.function)return ue(r,{code:ie.invalid_type,expected:ae.function,received:r.parsedType}),Ee;function n(a,u){return kl({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Rl(),_a].filter(c=>!!c),issueData:{code:ie.invalid_arguments,argumentsError:u}})}function i(a,u){return kl({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Rl(),_a].filter(c=>!!c),issueData:{code:ie.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Mn){let a=this;return gt(async function(...u){let c=new Mt([]),l=await a._def.args.parseAsync(u,s).catch(d=>{throw c.addIssue(n(u,d)),c}),h=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(h,s).catch(d=>{throw c.addIssue(i(h,d)),c})})}else{let a=this;return gt(function(...u){let c=a._def.args.safeParse(u,s);if(!c.success)throw new Mt([n(u,c.error)]);let l=Reflect.apply(o,this,c.data),h=a._def.returns.safeParse(l,s);if(!h.success)throw new Mt([i(l,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Bn({...this._def,args:er.create(e).rest(tn.create())})}returns(e){return new Bn({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new Bn({args:e||er.create([]).rest(tn.create()),returns:r||tn.create(),typeName:be.ZodFunction,...we(n)})}},Si=class extends xe{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Si.create=(t,e)=>new Si({getter:t,typeName:be.ZodLazy,...we(e)});var Ai=class extends xe{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return ue(r,{received:r.data,code:ie.invalid_literal,expected:this._def.value}),Ee}return{status:"valid",value:e.data}}get value(){return this._def.value}};Ai.create=(t,e)=>new Ai({value:t,typeName:be.ZodLiteral,...we(e)});function zC(t,e){return new Fr({values:t,typeName:be.ZodEnum,...we(e)})}var Fr=class extends xe{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return ue(r,{expected:ke.joinValues(n),received:r.parsedType,code:ie.invalid_type}),Ee}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),n=this._def.values;return ue(r,{received:r.data,code:ie.invalid_enum_value,options:n}),Ee}return gt(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return Fr.create(e)}exclude(e){return Fr.create(this.options.filter(r=>!e.includes(r)))}};Fr.create=zC;var Di=class extends xe{_parse(e){let r=ke.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==ae.string&&n.parsedType!==ae.number){let i=ke.objectValues(r);return ue(n,{expected:ke.joinValues(i),received:n.parsedType,code:ie.invalid_type}),Ee}if(r.indexOf(e.data)===-1){let i=ke.objectValues(r);return ue(n,{received:n.data,code:ie.invalid_enum_value,options:i}),Ee}return gt(e.data)}get enum(){return this._def.values}};Di.create=(t,e)=>new Di({values:t,typeName:be.ZodNativeEnum,...we(e)});var Mn=class extends xe{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.promise&&r.common.async===!1)return ue(r,{code:ie.invalid_type,expected:ae.promise,received:r.parsedType}),Ee;let n=r.parsedType===ae.promise?r.data:Promise.resolve(r.data);return gt(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Mn.create=(t,e)=>new Mn({type:t,typeName:be.ZodPromise,...we(e)});var qt=class extends xe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{ue(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(i.type==="refinement"){let o=a=>{let u=i.refinement(a,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Ee:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Ee:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ba(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ba(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);ke.assertNever(i)}};qt.create=(t,e,r)=>new qt({schema:t,typeName:be.ZodEffects,effect:e,...we(r)});qt.createWithPreprocess=(t,e,r)=>new qt({schema:e,effect:{type:"preprocess",transform:t},typeName:be.ZodEffects,...we(r)});var cr=class extends xe{_parse(e){return this._getType(e)===ae.undefined?gt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};cr.create=(t,e)=>new cr({innerType:t,typeName:be.ZodOptional,...we(e)});var sn=class extends xe{_parse(e){return this._getType(e)===ae.null?gt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};sn.create=(t,e)=>new sn({innerType:t,typeName:be.ZodNullable,...we(e)});var Ci=class extends xe{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===ae.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Ci.create=(t,e)=>new Ci({innerType:t,typeName:be.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...we(e)});var Js=class extends xe{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Tl(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Mt(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Mt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Js.create=(t,e)=>new Js({innerType:t,typeName:be.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...we(e)});var Xs=class extends xe{_parse(e){if(this._getType(e)!==ae.nan){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.nan,received:n.parsedType}),Ee}return{status:"valid",value:e.data}}};Xs.create=t=>new Xs({typeName:be.ZodNaN,...we(t)});var Nj=Symbol("zod_brand"),Ol=class extends xe{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Ri=class extends xe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Ee:s.status==="dirty"?(r.dirty(),GC(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ee:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new Ri({in:e,out:r,typeName:be.ZodPipeline})}},Qs=class extends xe{_parse(e){let r=this._def.innerType._parse(e);return ba(r)&&(r.value=Object.freeze(r.value)),r}};Qs.create=(t,e)=>new Qs({innerType:t,typeName:be.ZodReadonly,...we(e)});var WC=(t,e={},r)=>t?Nn.create().superRefine((n,i)=>{var s,o;if(!t(n)){let a=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,u=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...c,fatal:u})}}):Nn.create(),Mj={object:Be.lazycreate},be;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(be||(be={}));var jj=(t,e={message:`Input not instance of ${t.name}`})=>WC(r=>r instanceof t,e),VC=Nt.create,YC=Tr.create,qj=Xs.create,Uj=Or.create,KC=_i.create,Hj=rn.create,$j=Vs.create,Gj=bi.create,zj=vi.create,Wj=Nn.create,Vj=tn.create,Yj=lr.create,Kj=Ys.create,Zj=jt.create,Jj=Be.create,Xj=Be.strictCreate,Qj=Ei.create,e9=Ks.create,t9=wi.create,r9=er.create,n9=xi.create,i9=Zs.create,s9=nn.create,o9=Bn.create,a9=Si.create,u9=Ai.create,c9=Fr.create,l9=Di.create,h9=Mn.create,HC=qt.create,f9=cr.create,d9=sn.create,p9=qt.createWithPreprocess,m9=Ri.create,y9=()=>VC().optional(),g9=()=>YC().optional(),_9=()=>KC().optional(),b9={string:t=>Nt.create({...t,coerce:!0}),number:t=>Tr.create({...t,coerce:!0}),boolean:t=>_i.create({...t,coerce:!0}),bigint:t=>Or.create({...t,coerce:!0}),date:t=>rn.create({...t,coerce:!0})},v9=Ee,eo=Object.freeze({__proto__:null,defaultErrorMap:_a,setErrorMap:Sj,getErrorMap:Rl,makeIssue:kl,EMPTY_PATH:Aj,addIssueToContext:ue,ParseStatus:et,INVALID:Ee,DIRTY:GC,OK:gt,isAborted:P0,isDirty:I0,isValid:ba,isAsync:Tl,get util(){return ke},get objectUtil(){return F0},ZodParsedType:ae,getParsedType:Ln,ZodType:xe,ZodString:Nt,ZodNumber:Tr,ZodBigInt:Or,ZodBoolean:_i,ZodDate:rn,ZodSymbol:Vs,ZodUndefined:bi,ZodNull:vi,ZodAny:Nn,ZodUnknown:tn,ZodNever:lr,ZodVoid:Ys,ZodArray:jt,ZodObject:Be,ZodUnion:Ei,ZodDiscriminatedUnion:Ks,ZodIntersection:wi,ZodTuple:er,ZodRecord:xi,ZodMap:Zs,ZodSet:nn,ZodFunction:Bn,ZodLazy:Si,ZodLiteral:Ai,ZodEnum:Fr,ZodNativeEnum:Di,ZodPromise:Mn,ZodEffects:qt,ZodTransformer:qt,ZodOptional:cr,ZodNullable:sn,ZodDefault:Ci,ZodCatch:Js,ZodNaN:Xs,BRAND:Nj,ZodBranded:Ol,ZodPipeline:Ri,ZodReadonly:Qs,custom:WC,Schema:xe,ZodSchema:xe,late:Mj,get ZodFirstPartyTypeKind(){return be},coerce:b9,any:Wj,array:Zj,bigint:Uj,boolean:KC,date:Hj,discriminatedUnion:e9,effect:HC,enum:c9,function:o9,instanceof:jj,intersection:t9,lazy:a9,literal:u9,map:i9,nan:qj,nativeEnum:l9,never:Yj,null:zj,nullable:d9,number:YC,object:Jj,oboolean:_9,onumber:g9,optional:f9,ostring:y9,pipeline:m9,preprocess:p9,promise:h9,record:n9,set:s9,strictObject:Xj,string:VC,symbol:$j,transformer:HC,tuple:r9,undefined:Gj,union:Qj,unknown:Vj,void:Kj,NEVER:v9,ZodIssueCode:ie,quotelessJson:xj,ZodError:Mt});var U0=oe(require("os")),i2=oe(require("crypto")),s2=oe(require("path")),o2=oe(n2());function T9(t){let e=process.version,r=U0.default.type(),n=U0.default.arch();return`${t.name} ${t.version} ${e} ${r} ${n}`}async function O9(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,o2.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return s2.default.join(t,"turborepo","telemetry.json")}function F9({input:t,salt:e}){return i2.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var to={buildUserAgent:T9,oneWayHashWithSalt:F9,defaultConfigPath:O9};var P9="TURBO_TELEMETRY_DEBUG",I9="TURBO_TELEMETRY_DISABLED",L9="TURBO_TELEMETRY_MESSAGE_DISABLED",B9="DO_NOT_TRACK",N9=eo.object({telemetry_enabled:eo.boolean(),telemetry_id:eo.string(),telemetry_salt:eo.string(),telemetry_alerted:eo.string().optional()}),Ct=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,ro.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=Ct.validateConfig(n);return new Ct({configPath:e,config:i})}catch{return Ct.tryRemove({configPath:e})?Ct.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await to.defaultConfigPath();return Ct.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return N9.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=(0,H0.randomUUID)(),n=(0,H0.randomUUID)(),i=to.oneWayHashWithSalt({input:r,salt:n}),s=new Ct({configPath:e,config:{telemetry_enabled:!0,telemetry_id:i,telemetry_salt:n}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,ro.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,ro.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[B9]||"0",r=process.env[I9]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[L9]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(de.log(),de.bold("Attention:"),de.grey("Turborepo now collects completely anonymous telemetry regarding usage."),de.grey("This information is used to shape the Turborepo roadmap and prioritize features."),de.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:"),de.underline(a2.default.gray("https://turborepo.com/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return to.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[P9]||"0";return e==="1"||e.toLowerCase()==="true"}};var Jy=require("crypto"),Fk=oe(Ok());var q7=20,U7="/api/turborepo/v1/events",Oi=class{constructor({api:e,packageInfo:r,config:n,opts:i}){this.batchSize=q7;this.timeout=250;this.sessionId=(0,Jy.randomUUID)();this.eventBatches=[];this.events=[];let s=new URL(U7,e);this.api=s.toString(),this.packageInfo=r,this.config=n,i!=null&&i.timeout&&(this.timeout=i.timeout),i!=null&&i.batchSize&&(this.batchSize=i.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(Fk.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":to.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:n,isSensitive:i}){let s={id:(0,Jy.randomUUID)(),key:e,value:i?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:n};return Ct.isDebug()&&(de.log(),de.bold("[telemetry event]"),de.dimmed(JSON.stringify(s,null,2)),de.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})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var Ta=class extends Oi{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:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};var Nk=oe(Bk());var $7=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],Oa=class extends Oi{trackCI(){var e;return this.track({key:"ci",value:(e=Nk.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:$7.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var G7={"create-turbo":Ta,"turbo-ignore":Oa},z7="https://telemetry.vercel.com";async function Xy({packageInfo:t,opts:e}){let r=G7[t.name],n=await Ct.fromDefaultConfig();return n?(n.showAlert(),{telemetry:new r({api:z7,packageInfo:t,config:n,opts:e})}):{telemetry:void 0}}var Fa=oe(require("picocolors"));var Mk=require("commander"),jk="status",W7=["enable","disable",jk];function V7(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();de.log(`Status: ${e?Fa.default.bold(Fa.default.green("Enabled")):Fa.default.bold(Fa.default.red("Disabled"))}`),de.log(),e?de.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):de.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),de.log("Learn more: https://turborepo.com/docs/telemetry")}function Y7(t,e){if(!e.telemetry){de.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),de.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),de.bold("Success!")),de.log(),V7(e)}function Qy(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new Mk.Argument("[action]","Action to perform").choices(W7).default(jk)).action(Y7)}var QT=require("proxy-agent"),bh=oe(eg());var Ha=oe(require("path")),tt=oe(require("picocolors"));var Rt=require("picocolors"),tT=oe(tc(),1),rT=oe(uc(),1),aT=oe(require("os"),1),uT=oe(vs(),1),KH=oe(require("picocolors"),1),ZH=oe(require("update-check"),1),$Z=require("fs-extra");var YZ=oe(Tu(),1),ZZ=require("fs-extra"),XZ=require("fs-extra"),eJ=require("picocolors"),nJ=require("fs-extra"),oJ=require("picocolors"),uJ=require("fs-extra"),Fi=oe(require("path"),1),dr=oe(require("fs-extra"),1),lT=oe(vs(),1),hT=oe(require("path"),1),fT=oe(require("fs-extra"),1),dT=oe(require("picocolors"),1),ln=oe(require("path"),1),pT=oe(vs(),1),$t=require("fs-extra"),mT=oe(Tu(),1);var Ia=oe(require("path"),1),Pi=oe(require("fs-extra"),1),bo=oe(require("path"),1),Ii=oe(require("fs-extra"),1),La=oe(require("path"),1),Bi=oe(require("fs-extra"),1),Ht=oe(require("picocolors"),1),ET=oe(uc(),1),wT=oe(vs(),1),xT=oe(tc(),1),ST=require("semver"),AT=oe(require("picocolors"),1),Z7=Object.create,ng=Object.defineProperty,J7=Object.getOwnPropertyDescriptor,X7=Object.getOwnPropertyNames,Q7=Object.getPrototypeOf,eH=Object.prototype.hasOwnProperty,_e=(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')}),tH=(t,e)=>()=>(t&&(e=t(t=0)),e),me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rH=(t,e)=>{for(var r in e)ng(t,r,{get:e[r],enumerable:!0})},nH=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of X7(e))!eH.call(t,i)&&i!==r&&ng(t,i,{get:()=>e[i],enumerable:!(n=J7(e,i))||n.enumerable});return t},ch=(t,e,r)=>(r=t!=null?Z7(Q7(t)):{},nH(e||!t||!t.__esModule?ng(r,"default",{value:t,enumerable:!0}):r,t)),ee=tH(()=>{}),iH=me((t,e)=>{ee();function r(n){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),sH=me((t,e)=>{ee();var r=iH().default;function n(){"use strict";e.exports=n=function(){return s},e.exports.__esModule=!0,e.exports.default=e.exports;var i,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 p(q,g,_,v){var k=g&&g.prototype instanceof R?g:R,S=Object.create(k.prototype),H=new G(v||[]);return u(S,"_invoke",{value:te(q,_,H)}),S}function y(q,g,_){try{return{type:"normal",arg:q.call(g,_)}}catch(v){return{type:"throw",arg:v}}}s.wrap=p;var m="suspendedStart",w="suspendedYield",T="executing",F="completed",I={};function R(){}function M(){}function x(){}var D={};d(D,l,function(){return this});var U=Object.getPrototypeOf,W=U&&U(U(Z([])));W&&W!==o&&a.call(W,l)&&(D=W);var N=x.prototype=R.prototype=Object.create(D);function V(q){["next","throw","return"].forEach(function(g){d(q,g,function(_){return this._invoke(g,_)})})}function Q(q,g){function _(k,S,H,$){var ne=y(q[k],q,S);if(ne.type!=="throw"){var Y=ne.arg,fe=Y.value;return fe&&r(fe)=="object"&&a.call(fe,"__await")?g.resolve(fe.__await).then(function(J){_("next",J,H,$)},function(J){_("throw",J,H,$)}):g.resolve(fe).then(function(J){Y.value=J,H(Y)},function(J){return _("throw",J,H,$)})}$(ne.arg)}var v;u(this,"_invoke",{value:function(k,S){function H(){return new g(function($,ne){_(k,S,$,ne)})}return v=v?v.then(H,H):H()}})}function te(q,g,_){var v=m;return function(k,S){if(v===T)throw new Error("Generator is already running");if(v===F){if(k==="throw")throw S;return{value:i,done:!0}}for(_.method=k,_.arg=S;;){var H=_.delegate;if(H){var $=j(H,_);if($){if($===I)continue;return $}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(v===m)throw v=F,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);v=T;var ne=y(q,g,_);if(ne.type==="normal"){if(v=_.done?F:w,ne.arg===I)continue;return{value:ne.arg,done:_.done}}ne.type==="throw"&&(v=F,_.method="throw",_.arg=ne.arg)}}}function j(q,g){var _=g.method,v=q.iterator[_];if(v===i)return g.delegate=null,_==="throw"&&q.iterator.return&&(g.method="return",g.arg=i,j(q,g),g.method==="throw")||_!=="return"&&(g.method="throw",g.arg=new TypeError("The iterator does not provide a '"+_+"' method")),I;var k=y(v,q.iterator,g.arg);if(k.type==="throw")return g.method="throw",g.arg=k.arg,g.delegate=null,I;var S=k.arg;return S?S.done?(g[q.resultName]=S.value,g.next=q.nextLoc,g.method!=="return"&&(g.method="next",g.arg=i),g.delegate=null,I):S:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,I)}function P(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 L(q){var g=q.completion||{};g.type="normal",delete g.arg,q.completion=g}function G(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(P,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,v=function k(){for(;++_<q.length;)if(a.call(q,_))return k.value=q[_],k.done=!1,k;return k.value=i,k.done=!0,k};return v.next=v}}throw new TypeError(r(q)+" is not iterable")}return M.prototype=x,u(N,"constructor",{value:x,configurable:!0}),u(x,"constructor",{value:M,configurable:!0}),M.displayName=d(x,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,x):(q.__proto__=x,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,_,v,k){k===void 0&&(k=Promise);var S=new Q(p(q,g,_,v),k);return s.isGeneratorFunction(g)?S:S.next().then(function(H){return H.done?H.value:S.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 v in g)_.push(v);return _.reverse(),function k(){for(;_.length;){var S=_.pop();if(S in g)return k.value=S,k.done=!1,k}return k.done=!0,k}},s.values=Z,G.prototype={constructor:G,reset:function(q){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(L),!q)for(var g in this)g.charAt(0)==="t"&&a.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=i)},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 _(ne,Y){return S.type="throw",S.arg=q,g.next=ne,Y&&(g.method="next",g.arg=i),!!Y}for(var v=this.tryEntries.length-1;v>=0;--v){var k=this.tryEntries[v],S=k.completion;if(k.tryLoc==="root")return _("end");if(k.tryLoc<=this.prev){var H=a.call(k,"catchLoc"),$=a.call(k,"finallyLoc");if(H&&$){if(this.prev<k.catchLoc)return _(k.catchLoc,!0);if(this.prev<k.finallyLoc)return _(k.finallyLoc)}else if(H){if(this.prev<k.catchLoc)return _(k.catchLoc,!0)}else{if(!$)throw new Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return _(k.finallyLoc)}}}},abrupt:function(q,g){for(var _=this.tryEntries.length-1;_>=0;--_){var v=this.tryEntries[_];if(v.tryLoc<=this.prev&&a.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var k=v;break}}k&&(q==="break"||q==="continue")&&k.tryLoc<=g&&g<=k.finallyLoc&&(k=null);var S=k?k.completion:{};return S.type=q,S.arg=g,k?(this.method="next",this.next=k.finallyLoc,I):this.complete(S)},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),I},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),L(_),I}},catch:function(q){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.tryLoc===q){var v=_.completion;if(v.type==="throw"){var k=v.arg;L(_)}return k}}throw new Error("illegal catch attempt")},delegateYield:function(q,g,_){return this.delegate={iterator:Z(q),resultName:g,nextLoc:_},this.method==="next"&&(this.arg=i),I}},s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}),oH=me((t,e)=>{ee();var r=sH()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),aH=me((t,e)=>{"use strict";ee();var r=(n,...i)=>new Promise(s=>{s(n(...i))});e.exports=r,e.exports.default=r}),uH=me((t,e)=>{"use strict";ee();var r=aH(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>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 p=r(h,...d);f(p),p.then(a,a)},c=(h,f,...d)=>{o<i?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=n,e.exports.default=n}),cH=me((t,e)=>{"use strict";ee();var r=uH(),n=class extends Error{constructor(a){super(),this.value=a}},i=async(a,u)=>u(await a),s=async a=>{let u=await Promise.all(a);if(u[1]===!0)throw new n(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(i,d,u)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>f(s,d)))}catch(d){if(d instanceof n)return d.value;throw d}};e.exports=o,e.exports.default=o}),lH=me((t,e)=>{"use strict";ee();var r=_e("path"),n=_e("fs"),{promisify:i}=_e("util"),s=cH(),o=i(n.stat),a=i(n.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 p=>{try{let y=await d(r.resolve(f.cwd,p));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?n.statSync:n.lstatSync;for(let p of h)try{let y=d(r.resolve(f.cwd,p));if(l(f.type,y))return p}catch{}}}),hH=me((t,e)=>{"use strict";ee();var r=_e("fs"),{promisify:n}=_e("util"),i=n(r.access);e.exports=async s=>{try{return await i(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),fH=me((t,e)=>{"use strict";ee();var r=_e("path"),n=lH(),i=hH(),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 n(l,f);let d=await o(f.cwd);return typeof d=="string"?n([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 n.sync(l,f);let d=o(f.cwd);return typeof d=="string"?n.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=i,e.exports.sync.exists=i.sync,e.exports.stop=s}),Ba=me((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=n=>n?Object.keys(n).map(i=>[r.has(i)?r.get(i):i,n[i]]).reduce((i,s)=>(i[s[0]]=s[1],i),Object.create(null)):{}}),ig=me((t,e)=>{"use strict";ee();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=_e("events"),i=_e("stream"),s=_e("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"),p=Symbol("flushChunk"),y=Symbol("encoding"),m=Symbol("decoder"),w=Symbol("flowing"),T=Symbol("paused"),F=Symbol("resume"),I=Symbol("buffer"),R=Symbol("pipes"),M=Symbol("bufferLength"),x=Symbol("bufferPush"),D=Symbol("bufferShift"),U=Symbol("objectMode"),W=Symbol("destroyed"),N=Symbol("emitData"),V=Symbol("emitEnd"),Q=Symbol("emitEnd2"),te=Symbol("async"),j=k=>Promise.resolve().then(k),P=global._MP_NO_ITERATOR_SYMBOLS_!=="1",L=P&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),G=P&&Symbol.iterator||Symbol("iterator not implemented"),Z=k=>k==="end"||k==="finish"||k==="prefinish",q=k=>k instanceof ArrayBuffer||typeof k=="object"&&k.constructor&&k.constructor.name==="ArrayBuffer"&&k.byteLength>=0,g=k=>!Buffer.isBuffer(k)&&ArrayBuffer.isView(k),_=class{constructor(k,S,H){this.src=k,this.dest=S,this.opts=H,this.ondrain=()=>k[F](),S.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},v=class extends _{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(k,S,H){super(k,S,H),this.proxyErrors=$=>S.emit("error",$),k.on("error",this.proxyErrors)}};e.exports=class Hk extends i{constructor(S){super(),this[w]=!1,this[T]=!1,this[R]=[],this[I]=[],this[U]=S&&S.objectMode||!1,this[U]?this[y]=null:this[y]=S&&S.encoding||null,this[y]==="buffer"&&(this[y]=null),this[te]=S&&!!S.async||!1,this[m]=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,S&&S.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[I]}),S&&S.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[R]})}get bufferLength(){return this[M]}get encoding(){return this[y]}set encoding(S){if(this[U])throw new Error("cannot set encoding in objectMode");if(this[y]&&S!==this[y]&&(this[m]&&this[m].lastNeed||this[M]))throw new Error("cannot change encoding");this[y]!==S&&(this[m]=S?new s(S):null,this[I].length&&(this[I]=this[I].map(H=>this[m].write(H)))),this[y]=S}setEncoding(S){this.encoding=S}get objectMode(){return this[U]}set objectMode(S){this[U]=this[U]||!!S}get async(){return this[te]}set async(S){this[te]=this[te]||!!S}write(S,H,$){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 H=="function"&&($=H,H="utf8"),H||(H="utf8");let ne=this[te]?j:Y=>Y();return!this[U]&&!Buffer.isBuffer(S)&&(g(S)?S=Buffer.from(S.buffer,S.byteOffset,S.byteLength):q(S)?S=Buffer.from(S):typeof S!="string"&&(this.objectMode=!0)),this[U]?(this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",S):this[x](S),this[M]!==0&&this.emit("readable"),$&&ne($),this.flowing):S.length?(typeof S=="string"&&!(H===this[y]&&!this[m].lastNeed)&&(S=Buffer.from(S,H)),Buffer.isBuffer(S)&&this[y]&&(S=this[m].write(S)),this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",S):this[x](S),this[M]!==0&&this.emit("readable"),$&&ne($),this.flowing):(this[M]!==0&&this.emit("readable"),$&&ne($),this.flowing)}read(S){if(this[W])return null;if(this[M]===0||S===0||S>this[M])return this[a](),null;this[U]&&(S=null),this[I].length>1&&!this[U]&&(this.encoding?this[I]=[this[I].join("")]:this[I]=[Buffer.concat(this[I],this[M])]);let H=this[f](S||null,this[I][0]);return this[a](),H}[f](S,H){return S===H.length||S===null?this[D]():(this[I][0]=H.slice(S),H=H.slice(0,S),this[M]-=S),this.emit("data",H),!this[I].length&&!this[o]&&this.emit("drain"),H}end(S,H,$){return typeof S=="function"&&($=S,S=null),typeof H=="function"&&($=H,H="utf8"),S&&this.write(S,H),$&&this.once("end",$),this[o]=!0,this.writable=!1,(this.flowing||!this[T])&&this[a](),this}[F](){this[W]||(this[T]=!1,this[w]=!0,this.emit("resume"),this[I].length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[F]()}pause(){this[w]=!1,this[T]=!0}get destroyed(){return this[W]}get flowing(){return this[w]}get paused(){return this[T]}[x](S){this[U]?this[M]+=1:this[M]+=S.length,this[I].push(S)}[D](){return this[I].length&&(this[U]?this[M]-=1:this[M]-=this[I][0].length),this[I].shift()}[d](S){do;while(this[p](this[D]()));!S&&!this[I].length&&!this[o]&&this.emit("drain")}[p](S){return S?(this.emit("data",S),this.flowing):!1}pipe(S,H){if(this[W])return;let $=this[u];return H=H||{},S===r.stdout||S===r.stderr?H.end=!1:H.end=H.end!==!1,H.proxyErrors=!!H.proxyErrors,$?H.end&&S.end():(this[R].push(H.proxyErrors?new v(this,S,H):new _(this,S,H)),this[te]?j(()=>this[F]()):this[F]()),S}unpipe(S){let H=this[R].find($=>$.dest===S);H&&(this[R].splice(this[R].indexOf(H),1),H.unpipe())}addListener(S,H){return this.on(S,H)}on(S,H){let $=super.on(S,H);return S==="data"&&!this[R].length&&!this.flowing?this[F]():S==="readable"&&this[M]!==0?super.emit("readable"):Z(S)&&this[u]?(super.emit(S),this.removeAllListeners(S)):S==="error"&&this[l]&&(this[te]?j(()=>H.call(this,this[l])):H.call(this,this[l])),$}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[W]&&this[I].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(S,H,...$){if(S!=="error"&&S!=="close"&&S!==W&&this[W])return;if(S==="data")return H?this[te]?j(()=>this[N](H)):this[N](H):!1;if(S==="end")return this[V]();if(S==="close"){if(this[h]=!0,!this[u]&&!this[W])return;let Y=super.emit("close");return this.removeAllListeners("close"),Y}else if(S==="error"){this[l]=H;let Y=super.emit("error",H);return this[a](),Y}else if(S==="resume"){let Y=super.emit("resume");return this[a](),Y}else if(S==="finish"||S==="prefinish"){let Y=super.emit(S);return this.removeAllListeners(S),Y}let ne=super.emit(S,H,...$);return this[a](),ne}[N](S){for(let $ of this[R])$.dest.write(S)===!1&&this.pause();let H=super.emit("data",S);return this[a](),H}[V](){this[u]||(this[u]=!0,this.readable=!1,this[te]?j(()=>this[Q]()):this[Q]())}[Q](){if(this[m]){let H=this[m].end();if(H){for(let $ of this[R])$.dest.write(H);super.emit("data",H)}}for(let H of this[R])H.end();let S=super.emit("end");return this.removeAllListeners("end"),S}collect(){let S=[];this[U]||(S.dataLength=0);let H=this.promise();return this.on("data",$=>{S.push($),this[U]||(S.dataLength+=$.length)}),H.then(()=>S)}concat(){return this[U]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(S=>this[U]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?S.join(""):Buffer.concat(S,S.dataLength))}promise(){return new Promise((S,H)=>{this.on(W,()=>H(new Error("stream destroyed"))),this.on("error",$=>H($)),this.on("end",()=>S())})}[L](){return{next:()=>{let S=this.read();if(S!==null)return Promise.resolve({done:!1,value:S});if(this[o])return Promise.resolve({done:!0});let H=null,$=null,ne=E=>{this.removeListener("data",Y),this.removeListener("end",fe),$(E)},Y=E=>{this.removeListener("error",ne),this.removeListener("end",fe),this.pause(),H({value:E,done:!!this[o]})},fe=()=>{this.removeListener("error",ne),this.removeListener("data",Y),H({done:!0})},J=()=>ne(new Error("stream destroyed"));return new Promise((E,B)=>{$=B,H=E,this.once(W,J),this.once("error",ne),this.once("end",fe),this.once("data",Y)})}}}[G](){return{next:()=>{let S=this.read();return{value:S,done:S===null}}}}destroy(S){return this[W]?(S?this.emit("error",S):this.emit(W),this):(this[W]=!0,this[I].length=0,this[M]=0,typeof this.close=="function"&&!this[h]&&this.close(),S?this.emit("error",S):this.emit(W),this)}static isStream(S){return!!S&&(S instanceof Hk||S instanceof i||S instanceof n&&(typeof S.pipe=="function"||typeof S.write=="function"&&typeof S.end=="function"))}}}),dH=me((t,e)=>{ee();var r=_e("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))}),$k=me((t,e)=>{"use strict";ee();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=_e("events"),i=_e("stream"),s=_e("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"),p=Symbol("flushChunk"),y=Symbol("encoding"),m=Symbol("decoder"),w=Symbol("flowing"),T=Symbol("paused"),F=Symbol("resume"),I=Symbol("bufferLength"),R=Symbol("bufferPush"),M=Symbol("bufferShift"),x=Symbol("objectMode"),D=Symbol("destroyed"),U=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"),P=te&&Symbol.iterator||Symbol("iterator not implemented"),L=_=>_==="end"||_==="finish"||_==="prefinish",G=_=>_ instanceof ArrayBuffer||typeof _=="object"&&_.constructor&&_.constructor.name==="ArrayBuffer"&&_.byteLength>=0,Z=_=>!Buffer.isBuffer(_)&&ArrayBuffer.isView(_),q=class{constructor(_,v,k){this.src=_,this.dest=v,this.opts=k,this.ondrain=()=>_[F](),v.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(_,v,k){super(_,v,k),this.proxyErrors=S=>v.emit("error",S),_.on("error",this.proxyErrors)}};e.exports=class Gk extends i{constructor(v){super(),this[w]=!1,this[T]=!1,this.pipes=[],this.buffer=[],this[x]=v&&v.objectMode||!1,this[x]?this[y]=null:this[y]=v&&v.encoding||null,this[y]==="buffer"&&(this[y]=null),this[V]=v&&!!v.async||!1,this[m]=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[I]=0,this[D]=!1}get bufferLength(){return this[I]}get encoding(){return this[y]}set encoding(v){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[y]&&v!==this[y]&&(this[m]&&this[m].lastNeed||this[I]))throw new Error("cannot change encoding");this[y]!==v&&(this[m]=v?new s(v):null,this.buffer.length&&(this.buffer=this.buffer.map(k=>this[m].write(k)))),this[y]=v}setEncoding(v){this.encoding=v}get objectMode(){return this[x]}set objectMode(v){this[x]=this[x]||!!v}get async(){return this[V]}set async(v){this[V]=this[V]||!!v}write(v,k,S){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 k=="function"&&(S=k,k="utf8"),k||(k="utf8");let H=this[V]?Q:$=>$();return!this[x]&&!Buffer.isBuffer(v)&&(Z(v)?v=Buffer.from(v.buffer,v.byteOffset,v.byteLength):G(v)?v=Buffer.from(v):typeof v!="string"&&(this.objectMode=!0)),this[x]?(this.flowing&&this[I]!==0&&this[d](!0),this.flowing?this.emit("data",v):this[R](v),this[I]!==0&&this.emit("readable"),S&&H(S),this.flowing):v.length?(typeof v=="string"&&!(k===this[y]&&!this[m].lastNeed)&&(v=Buffer.from(v,k)),Buffer.isBuffer(v)&&this[y]&&(v=this[m].write(v)),this.flowing&&this[I]!==0&&this[d](!0),this.flowing?this.emit("data",v):this[R](v),this[I]!==0&&this.emit("readable"),S&&H(S),this.flowing):(this[I]!==0&&this.emit("readable"),S&&H(S),this.flowing)}read(v){if(this[D])return null;if(this[I]===0||v===0||v>this[I])return this[a](),null;this[x]&&(v=null),this.buffer.length>1&&!this[x]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[I])]);let k=this[f](v||null,this.buffer[0]);return this[a](),k}[f](v,k){return v===k.length||v===null?this[M]():(this.buffer[0]=k.slice(v),k=k.slice(0,v),this[I]-=v),this.emit("data",k),!this.buffer.length&&!this[o]&&this.emit("drain"),k}end(v,k,S){return typeof v=="function"&&(S=v,v=null),typeof k=="function"&&(S=k,k="utf8"),v&&this.write(v,k),S&&this.once("end",S),this[o]=!0,this.writable=!1,(this.flowing||!this[T])&&this[a](),this}[F](){this[D]||(this[T]=!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[T]=!0}get destroyed(){return this[D]}get flowing(){return this[w]}get paused(){return this[T]}[R](v){this[x]?this[I]+=1:this[I]+=v.length,this.buffer.push(v)}[M](){return this.buffer.length&&(this[x]?this[I]-=1:this[I]-=this.buffer[0].length),this.buffer.shift()}[d](v){do;while(this[p](this[M]()));!v&&!this.buffer.length&&!this[o]&&this.emit("drain")}[p](v){return v?(this.emit("data",v),this.flowing):!1}pipe(v,k){if(this[D])return;let S=this[u];return k=k||{},v===r.stdout||v===r.stderr?k.end=!1:k.end=k.end!==!1,k.proxyErrors=!!k.proxyErrors,S?k.end&&v.end():(this.pipes.push(k.proxyErrors?new g(this,v,k):new q(this,v,k)),this[V]?Q(()=>this[F]()):this[F]()),v}unpipe(v){let k=this.pipes.find(S=>S.dest===v);k&&(this.pipes.splice(this.pipes.indexOf(k),1),k.unpipe())}addListener(v,k){return this.on(v,k)}on(v,k){let S=super.on(v,k);return v==="data"&&!this.pipes.length&&!this.flowing?this[F]():v==="readable"&&this[I]!==0?super.emit("readable"):L(v)&&this[u]?(super.emit(v),this.removeAllListeners(v)):v==="error"&&this[l]&&(this[V]?Q(()=>k.call(this,this[l])):k.call(this,this[l])),S}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(v,k,...S){if(v!=="error"&&v!=="close"&&v!==D&&this[D])return;if(v==="data")return k?this[V]?Q(()=>this[U](k)):this[U](k):!1;if(v==="end")return this[W]();if(v==="close"){if(this[h]=!0,!this[u]&&!this[D])return;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(v==="error"){this[l]=k;let $=super.emit("error",k);return this[a](),$}else if(v==="resume"){let $=super.emit("resume");return this[a](),$}else if(v==="finish"||v==="prefinish"){let $=super.emit(v);return this.removeAllListeners(v),$}let H=super.emit(v,k,...S);return this[a](),H}[U](v){for(let S of this.pipes)S.dest.write(v)===!1&&this.pause();let k=super.emit("data",v);return this[a](),k}[W](){this[u]||(this[u]=!0,this.readable=!1,this[V]?Q(()=>this[N]()):this[N]())}[N](){if(this[m]){let k=this[m].end();if(k){for(let S of this.pipes)S.dest.write(k);super.emit("data",k)}}for(let k of this.pipes)k.end();let v=super.emit("end");return this.removeAllListeners("end"),v}collect(){let v=[];this[x]||(v.dataLength=0);let k=this.promise();return this.on("data",S=>{v.push(S),this[x]||(v.dataLength+=S.length)}),k.then(()=>v)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(v=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?v.join(""):Buffer.concat(v,v.dataLength))}promise(){return new Promise((v,k)=>{this.on(D,()=>k(new Error("stream destroyed"))),this.on("error",S=>k(S)),this.on("end",()=>v())})}[j](){return{next:()=>{let v=this.read();if(v!==null)return Promise.resolve({done:!1,value:v});if(this[o])return Promise.resolve({done:!0});let k=null,S=null,H=fe=>{this.removeListener("data",$),this.removeListener("end",ne),S(fe)},$=fe=>{this.removeListener("error",H),this.removeListener("end",ne),this.pause(),k({value:fe,done:!!this[o]})},ne=()=>{this.removeListener("error",H),this.removeListener("data",$),k({done:!0})},Y=()=>H(new Error("stream destroyed"));return new Promise((fe,J)=>{S=J,k=fe,this.once(D,Y),this.once("error",H),this.once("end",ne),this.once("data",$)})}}}[P](){return{next:()=>{let v=this.read();return{value:v,done:v===null}}}}destroy(v){return this[D]?(v?this.emit("error",v):this.emit(D),this):(this[D]=!0,this.buffer.length=0,this[I]=0,typeof this.close=="function"&&!this[h]&&this.close(),v?this.emit("error",v):this.emit(D),this)}static isStream(v){return!!v&&(v instanceof Gk||v instanceof i||v instanceof n&&(typeof v.pipe=="function"||typeof v.write=="function"&&typeof v.end=="function"))}}}),zk=me(t=>{"use strict";ee();var e=_e("assert"),r=_e("buffer").Buffer,n=_e("zlib"),i=t.constants=dH(),s=$k(),o=r.concat,a=Symbol("_superWrite"),u=class extends Error{constructor(L){super("zlib: "+L.message),this.code=L.code,this.errno=L.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+L.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"),p=Symbol("onError"),y=Symbol("sawError"),m=Symbol("level"),w=Symbol("strategy"),T=Symbol("ended"),F=Symbol("_defaultFullFlush"),I=class extends s{constructor(L,G){if(!L||typeof L!="object")throw new TypeError("invalid options for ZlibBase constructor");super(L),this[y]=!1,this[T]=!1,this[c]=L,this[l]=L.flush,this[h]=L.finishFlush;try{this[d]=new n[G](L)}catch(Z){throw new u(Z)}this[p]=Z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",Z))},this[d].on("error",Z=>this[p](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(L){this.ended||(typeof L!="number"&&(L=this[f]),this.write(Object.assign(r.alloc(0),{[l]:L})))}end(L,G,Z){return L&&this.write(L,G),this.flush(this[h]),this[T]=!0,super.end(null,null,Z)}get ended(){return this[T]}write(L,G,Z){if(typeof G=="function"&&(Z=G,G="utf8"),typeof L=="string"&&(L=r.from(L,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=S=>S;let v;try{let S=typeof L[l]=="number"?L[l]:this[l];v=this[d]._processChunk(L,S),r.concat=o}catch(S){r.concat=o,this[p](new u(S))}finally{this[d]&&(this[d]._handle=q,q.close=g,this[d].close=_,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",S=>this[p](new u(S)));let k;if(v)if(Array.isArray(v)&&v.length>0){k=this[a](r.from(v[0]));for(let S=1;S<v.length;S++)k=this[a](v[S])}else k=this[a](r.from(v));return Z&&Z(),k}[a](L){return super.write(L)}},R=class extends I{constructor(L,G){L=L||{},L.flush=L.flush||i.Z_NO_FLUSH,L.finishFlush=L.finishFlush||i.Z_FINISH,super(L,G),this[f]=i.Z_FULL_FLUSH,this[m]=L.level,this[w]=L.strategy}params(L,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[m]!==L||this[w]!==G){this.flush(i.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(L,G)}finally{this[d].flush=Z}this[d]&&(this[m]=L,this[w]=G)}}}},M=class extends R{constructor(L){super(L,"Deflate")}},x=class extends R{constructor(L){super(L,"Inflate")}},D=Symbol("_portable"),U=class extends R{constructor(L){super(L,"Gzip"),this[D]=L&&!!L.portable}[a](L){return this[D]?(this[D]=!1,L[9]=255,super[a](L)):super[a](L)}},W=class extends R{constructor(L){super(L,"Gunzip")}},N=class extends R{constructor(L){super(L,"DeflateRaw")}},V=class extends R{constructor(L){super(L,"InflateRaw")}},Q=class extends R{constructor(L){super(L,"Unzip")}},te=class extends I{constructor(L,G){L=L||{},L.flush=L.flush||i.BROTLI_OPERATION_PROCESS,L.finishFlush=L.finishFlush||i.BROTLI_OPERATION_FINISH,super(L,G),this[f]=i.BROTLI_OPERATION_FLUSH}},j=class extends te{constructor(L){super(L,"BrotliCompress")}},P=class extends te{constructor(L){super(L,"BrotliDecompress")}};t.Deflate=M,t.Inflate=x,t.Gzip=U,t.Gunzip=W,t.DeflateRaw=N,t.InflateRaw=V,t.Unzip=Q,typeof n.BrotliCompress=="function"?(t.BrotliCompress=j,t.BrotliDecompress=P):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Na=me((t,e)=>{ee();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),sg=me((t,e)=>{"use strict";ee();var r=ig(),n=Na(),i=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=n(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=n(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[i](o),a&&this[i](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))}[i](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?n(s[a]):s[a])}}}),Wk=me(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]]))}),pH=me((t,e)=>{"use strict";ee();var r=(l,h)=>{if(Number.isSafeInteger(l))l<0?i(l,h):n(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(l,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=l&255,l=Math.floor(l/256)},i=(l,h)=>{h[0]=255;var f=!1;l=l*-1;for(var d=h.length;d>1;d--){var p=l&255;l=Math.floor(l/256),f?h[d-1]=u(p):p===0?h[d-1]=0:(f=!0,h[d-1]=c(p))}},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,p=h-1;p>-1;p--){var y=l[p],m;d?m=u(y):y===0?m=y:(d=!0,m=c(y)),m!==0&&(f-=m*Math.pow(256,h-p-1))}return f},a=l=>{for(var h=l.length,f=0,d=h-1;d>-1;d--){var p=l[d];p!==0&&(f+=p*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}}),Ma=me((t,e)=>{"use strict";ee();var r=Wk(),n=_e("path").posix,i=pH(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(x,D,U,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(x)?this.decode(x,D||0,U,W):x&&this.set(x)}decode(x,D,U,W){if(D||(D=0),!x||!(x.length>=D+512))throw new Error("need 512 bytes for header");if(this.path=c(x,D,100),this.mode=f(x,D+100,8),this.uid=f(x,D+108,8),this.gid=f(x,D+116,8),this.size=f(x,D+124,12),this.mtime=l(x,D+136,12),this.cksum=f(x,D+148,12),this[s](U),this[s](W,!0),this[o]=c(x,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(x,D+157,100),x.slice(D+257,D+265).toString()==="ustar\x0000")if(this.uname=c(x,D+265,32),this.gname=c(x,D+297,32),this.devmaj=f(x,D+329,8),this.devmin=f(x,D+337,8),x[D+475]!==0){let V=c(x,D+345,155);this.path=V+"/"+this.path}else{let V=c(x,D+345,130);V&&(this.path=V+"/"+this.path),this.atime=l(x,D+476,12),this.ctime=l(x,D+488,12)}let N=8*32;for(let V=D;V<D+148;V++)N+=x[V];for(let V=D+156;V<D+512;V++)N+=x[V];this.cksumValid=N===this.cksum,this.cksum===null&&N===8*32&&(this.nullBlock=!0)}[s](x,D){for(let U in x)x[U]!==null&&x[U]!==void 0&&!(D&&U==="path")&&(this[U]=x[U])}encode(x,D){if(x||(x=this.block=Buffer.alloc(512),D=0),D||(D=0),!(x.length>=D+512))throw new Error("need 512 bytes for header");let U=this.ctime||this.atime?130:155,W=u(this.path||"",U),N=W[0],V=W[1];this.needPax=W[2],this.needPax=M(x,D,100,N)||this.needPax,this.needPax=m(x,D+100,8,this.mode)||this.needPax,this.needPax=m(x,D+108,8,this.uid)||this.needPax,this.needPax=m(x,D+116,8,this.gid)||this.needPax,this.needPax=m(x,D+124,12,this.size)||this.needPax,this.needPax=I(x,D+136,12,this.mtime)||this.needPax,x[D+156]=this[o].charCodeAt(0),this.needPax=M(x,D+157,100,this.linkpath)||this.needPax,x.write("ustar\x0000",D+257,8),this.needPax=M(x,D+265,32,this.uname)||this.needPax,this.needPax=M(x,D+297,32,this.gname)||this.needPax,this.needPax=m(x,D+329,8,this.devmaj)||this.needPax,this.needPax=m(x,D+337,8,this.devmin)||this.needPax,this.needPax=M(x,D+345,U,V)||this.needPax,x[D+475]!==0?this.needPax=M(x,D+345,155,V)||this.needPax:(this.needPax=M(x,D+345,130,V)||this.needPax,this.needPax=I(x,D+476,12,this.atime)||this.needPax,this.needPax=I(x,D+488,12,this.ctime)||this.needPax);let Q=8*32;for(let te=D;te<D+148;te++)Q+=x[te];for(let te=D+156;te<D+512;te++)Q+=x[te];return this.cksum=Q,m(x,D+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(x){for(let D in x)x[D]!==null&&x[D]!==void 0&&(this[D]=x[D])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(x){r.code.has(x)?this[o]=r.code.get(x):this[o]=x}},u=(x,D)=>{let U=x,W="",N,V=n.parse(x).root||".";if(Buffer.byteLength(U)<100)N=[U,W,!1];else{W=n.dirname(U),U=n.basename(U);do Buffer.byteLength(U)<=100&&Buffer.byteLength(W)<=D?N=[U,W,!1]:Buffer.byteLength(U)>100&&Buffer.byteLength(W)<=D?N=[U.slice(0,100-1),W,!0]:(U=n.join(n.basename(W),U),W=n.dirname(W));while(W!==V&&!N);N||(N=[x.slice(0,100-1),"",!0])}return N},c=(x,D,U)=>x.slice(D,D+U).toString("utf8").replace(/\0.*/,""),l=(x,D,U)=>h(f(x,D,U)),h=x=>x===null?null:new Date(x*1e3),f=(x,D,U)=>x[D]&128?i.parse(x.slice(D,D+U)):p(x,D,U),d=x=>isNaN(x)?null:x,p=(x,D,U)=>d(parseInt(x.slice(D,D+U).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},m=(x,D,U,W)=>W===null?!1:W>y[U]||W<0?(i.encode(W,x.slice(D,D+U)),!0):(w(x,D,U,W),!1),w=(x,D,U,W)=>x.write(T(W,U),D,U,"ascii"),T=(x,D)=>F(Math.floor(x).toString(8),D),F=(x,D)=>(x.length===D-1?x:new Array(D-x.length-1).join("0")+x+" ")+"\0",I=(x,D,U,W)=>W===null?!1:m(x,D,U,W.getTime()/1e3),R=new Array(156).join("\0"),M=(x,D,U,W)=>W===null?!1:(x.write(W+R,D,U,"utf8"),W.length!==Buffer.byteLength(W)||W.length>U);e.exports=a}),og=me((t,e)=>{"use strict";ee();var r=Ma(),n=_e("path"),i=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/"+n.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+`
64
+ `,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1)),i={username:"vercel",name:"turborepo",branch:"main",filePath:`examples/${e}`})}let a=Gs.default.resolve(t);await T0(Gs.default.dirname(a))||(o.stop(),nt("The application path is not writable, please check folder permissions and try again."),nt("It is likely you do not have write permissions for this folder."),process.exit(1));let u=Gs.default.basename(a);try{await Cl.default.mkdir(a,{recursive:!0})}catch(m){o.stop(),nt("Unable to create project directory"),nt(m),process.exit(1)}let{isEmpty:c,conflicts:l}=Jo(a);c||(o.stop(),nt(`${gi.default.dim(a)} has ${l.length} conflicting ${l.length===1?"file":"files"} - please try a different location`),process.exit(1));let h=process.cwd();process.chdir(a),r||i?await(0,O0.default)(()=>C0(a,i!=null?i:{username:"vercel",name:"turborepo",branch:"main",filePath:"examples/basic"}),{retries:3}):await(0,O0.default)(()=>R0(a,e),{retries:3}),o.stop();let f=Gs.default.join(a,"package.json"),d=Cl.default.existsSync(f),p=[];if(d){let m;try{m=Cl.default.readJsonSync(f)}catch{}m&&p.push(...Object.keys(m.scripts||{}))}let y=t;return Gs.default.join(h,u)===t&&(y=u),{cdPath:y,hasPackageJson:d,availableScripts:p,repoInfo:i}}catch(a){throw o.stop(),new zs(xj(a)?a.message:String(a))}}var Rl=oe(require("picocolors")),HC=oe(require("update-check"));function P0(t){let{packageInfo:e,upgradeCommand:r}=t,n=(0,HC.default)(e).catch(()=>null);return async function(s=0){try{let o=await n;if(o!=null&&o.latest){wt(),wt(Rl.default.yellow(Rl.default.bold(`A new version of \`${e.name}\` is available!`)));let a=typeof r=="function"?await r():r;a&&wt(`You can update by running: ${Rl.default.cyan(a)}`),wt()}process.exit(s)}catch(o){process.env.DEBUG&&nt("Update check failed:",o),process.exit(s)}}}var ro=require("fs"),z0=require("crypto");var c2=oe(require("picocolors"));var ke;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(ke||(ke={}));var L0;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(L0||(L0={}));var ae=ke.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ln=t=>{switch(typeof t){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return isNaN(t)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(t)?ae.array:t===null?ae.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ae.promise:typeof Map!="undefined"&&t instanceof Map?ae.map:typeof Set!="undefined"&&t instanceof Set?ae.set:typeof Date!="undefined"&&t instanceof Date?ae.date:ae.object;default:return ae.unknown}},ie=ke.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Aj=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Mt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,u=0;for(;u<o.path.length;){let c=o.path[u];u===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],u++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,ke.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Mt.create=t=>new Mt(t);var _a=(t,e)=>{let r;switch(t.code){case ie.invalid_type:t.received===ae.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case ie.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,ke.jsonStringifyReplacer)}`;break;case ie.unrecognized_keys:r=`Unrecognized key(s) in object: ${ke.joinValues(t.keys,", ")}`;break;case ie.invalid_union:r="Invalid input";break;case ie.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ke.joinValues(t.options)}`;break;case ie.invalid_enum_value:r=`Invalid enum value. Expected ${ke.joinValues(t.options)}, received '${t.received}'`;break;case ie.invalid_arguments:r="Invalid function arguments";break;case ie.invalid_return_type:r="Invalid function return type";break;case ie.invalid_date:r="Invalid date";break;case ie.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:ke.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case ie.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case ie.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case ie.custom:r="Invalid input";break;case ie.invalid_intersection_types:r="Intersection results could not be merged";break;case ie.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ie.not_finite:r="Number must be finite";break;default:r=e.defaultError,ke.assertNever(t)}return{message:r}},zC=_a;function Dj(t){zC=t}function Tl(){return zC}var Ol=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s},a="",u=n.filter(c=>!!c).slice().reverse();for(let c of u)a=c(o,{data:e,defaultError:a}).message;return{...i,path:s,message:i.message||a}},Cj=[];function ue(t,e){let r=Ol({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Tl(),_a].filter(n=>!!n)});t.common.issues.push(r)}var et=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return Ee;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return et.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return Ee;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value!="undefined"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},Ee=Object.freeze({status:"aborted"}),WC=t=>({status:"dirty",value:t}),gt=t=>({status:"valid",value:t}),B0=t=>t.status==="aborted",N0=t=>t.status==="dirty",ba=t=>t.status==="valid",Fl=t=>typeof Promise!="undefined"&&t instanceof Promise,ge;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ge||(ge={}));var Qt=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},$C=(t,e)=>{if(ba(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Mt(t.common.issues);return this._error=r,this._error}}};function we(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data=="undefined"?{message:n!=null?n:a.defaultError}:{message:r!=null?r:a.defaultError},description:i}}var xe=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Ln(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Ln(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new et,ctx:{common:e.parent.common,data:e.data,parsedType:Ln(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Fl(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ln(e)},s=this._parseSync({data:e,path:i.path,parent:i});return $C(i,s)}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ln(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(Fl(i)?i:Promise.resolve(i));return $C(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r=="undefined"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:ie.custom,...n(i)});return typeof Promise!="undefined"&&o instanceof Promise?o.then(u=>u?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new qt({schema:this,typeName:be.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return cr.create(this,this._def)}nullable(){return sn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jt.create(this,this._def)}promise(){return Mn.create(this,this._def)}or(e){return Ei.create([this,e],this._def)}and(e){return wi.create(this,e,this._def)}transform(e){return new qt({...we(this._def),schema:this,typeName:be.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Ci({...we(this._def),innerType:this,defaultValue:r,typeName:be.ZodDefault})}brand(){return new Pl({typeName:be.ZodBranded,type:this,...we(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Js({...we(this._def),innerType:this,catchValue:r,typeName:be.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Ri.create(this,e)}readonly(){return Qs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Rj=/^c[^\s-]{8,}$/i,kj=/^[a-z][a-z0-9]*$/,Tj=/^[0-9A-HJKMNP-TV-Z]{26}$/,Oj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Fj=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Pj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",I0,Ij=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Lj=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Bj=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Nj(t,e){return!!((e==="v4"||!e)&&Ij.test(t)||(e==="v6"||!e)&&Lj.test(t))}var Nt=class extends xe{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ae.string){let s=this._getOrReturnCtx(e);return ue(s,{code:ie.invalid_type,expected:ae.string,received:s.parsedType}),Ee}let n=new et,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?ue(i,{code:ie.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&ue(i,{code:ie.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")Fj.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"email",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")I0||(I0=new RegExp(Pj,"u")),I0.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"emoji",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")Oj.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"uuid",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")Rj.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"cuid",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")kj.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"cuid2",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")Tj.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"ulid",code:ie.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),ue(i,{validation:"url",code:ie.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"regex",code:ie.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?Bj(s).test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?Nj(e.data,s.version)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"ip",code:ie.invalid_string,message:s.message}),n.dirty()):ke.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:ie.invalid_string,...ge.errToObj(n)})}_addCheck(e){return new Nt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ge.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ge.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ge.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ge.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ge.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ge.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ge.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ge.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)=="undefined"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...ge.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ge.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...ge.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ge.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ge.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ge.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ge.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ge.errToObj(r)})}nonempty(e){return this.min(1,ge.errToObj(e))}trim(){return new Nt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Nt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Nt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Nt.create=t=>{var e;return new Nt({checks:[],typeName:be.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...we(t)})};function Mj(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var Tr=class extends xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ae.number){let s=this._getOrReturnCtx(e);return ue(s,{code:ie.invalid_type,expected:ae.number,received:s.parsedType}),Ee}let n,i=new et;for(let s of this._def.checks)s.kind==="int"?ke.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?Mj(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.not_finite,message:s.message}),i.dirty()):ke.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ge.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ge.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ge.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ge.toString(r))}setLimit(e,r,n,i){return new Tr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ge.toString(i)}]})}_addCheck(e){return new Tr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ge.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ge.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ge.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ge.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ge.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ge.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ge.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ge.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ge.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&ke.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Tr.create=t=>new Tr({checks:[],typeName:be.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...we(t)});var Or=class extends xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ae.bigint){let s=this._getOrReturnCtx(e);return ue(s,{code:ie.invalid_type,expected:ae.bigint,received:s.parsedType}),Ee}let n,i=new et;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:ie.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):ke.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ge.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ge.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ge.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ge.toString(r))}setLimit(e,r,n,i){return new Or({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ge.toString(i)}]})}_addCheck(e){return new Or({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ge.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ge.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ge.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ge.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ge.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Or.create=t=>{var e;return new Or({checks:[],typeName:be.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...we(t)})};var _i=class extends xe{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ae.boolean){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.boolean,received:n.parsedType}),Ee}return gt(e.data)}};_i.create=t=>new _i({typeName:be.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...we(t)});var rn=class extends xe{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ae.date){let s=this._getOrReturnCtx(e);return ue(s,{code:ie.invalid_type,expected:ae.date,received:s.parsedType}),Ee}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return ue(s,{code:ie.invalid_date}),Ee}let n=new et,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:ie.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):ke.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new rn({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ge.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ge.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};rn.create=t=>new rn({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:be.ZodDate,...we(t)});var Vs=class extends xe{_parse(e){if(this._getType(e)!==ae.symbol){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.symbol,received:n.parsedType}),Ee}return gt(e.data)}};Vs.create=t=>new Vs({typeName:be.ZodSymbol,...we(t)});var bi=class extends xe{_parse(e){if(this._getType(e)!==ae.undefined){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.undefined,received:n.parsedType}),Ee}return gt(e.data)}};bi.create=t=>new bi({typeName:be.ZodUndefined,...we(t)});var vi=class extends xe{_parse(e){if(this._getType(e)!==ae.null){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.null,received:n.parsedType}),Ee}return gt(e.data)}};vi.create=t=>new vi({typeName:be.ZodNull,...we(t)});var Nn=class extends xe{constructor(){super(...arguments),this._any=!0}_parse(e){return gt(e.data)}};Nn.create=t=>new Nn({typeName:be.ZodAny,...we(t)});var tn=class extends xe{constructor(){super(...arguments),this._unknown=!0}_parse(e){return gt(e.data)}};tn.create=t=>new tn({typeName:be.ZodUnknown,...we(t)});var lr=class extends xe{_parse(e){let r=this._getOrReturnCtx(e);return ue(r,{code:ie.invalid_type,expected:ae.never,received:r.parsedType}),Ee}};lr.create=t=>new lr({typeName:be.ZodNever,...we(t)});var Ys=class extends xe{_parse(e){if(this._getType(e)!==ae.undefined){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.void,received:n.parsedType}),Ee}return gt(e.data)}};Ys.create=t=>new Ys({typeName:be.ZodVoid,...we(t)});var jt=class extends xe{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==ae.array)return ue(r,{code:ie.invalid_type,expected:ae.array,received:r.parsedType}),Ee;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(ue(r,{code:o?ie.too_big:ie.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(ue(r,{code:ie.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(ue(r,{code:ie.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new Qt(r,o,r.path,a)))).then(o=>et.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new Qt(r,o,r.path,a)));return et.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new jt({...this._def,minLength:{value:e,message:ge.toString(r)}})}max(e,r){return new jt({...this._def,maxLength:{value:e,message:ge.toString(r)}})}length(e,r){return new jt({...this._def,exactLength:{value:e,message:ge.toString(r)}})}nonempty(e){return this.min(1,e)}};jt.create=(t,e)=>new jt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:be.ZodArray,...we(e)});function Ws(t){if(t instanceof Be){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=cr.create(Ws(n))}return new Be({...t._def,shape:()=>e})}else return t instanceof jt?new jt({...t._def,type:Ws(t.element)}):t instanceof cr?cr.create(Ws(t.unwrap())):t instanceof sn?sn.create(Ws(t.unwrap())):t instanceof er?er.create(t.items.map(e=>Ws(e))):t}var Be=class extends xe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=ke.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==ae.object){let c=this._getOrReturnCtx(e);return ue(c,{code:ie.invalid_type,expected:ae.object,received:c.parsedType}),Ee}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof lr&&this._def.unknownKeys==="strip"))for(let c in i.data)o.includes(c)||a.push(c);let u=[];for(let c of o){let l=s[c],h=i.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Qt(i,h,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof lr){let c=this._def.unknownKeys;if(c==="passthrough")for(let l of a)u.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(c==="strict")a.length>0&&(ue(i,{code:ie.unrecognized_keys,keys:a}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let l of a){let h=i.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Qt(i,h,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let c=[];for(let l of u){let h=await l.key;c.push({key:h,value:await l.value,alwaysSet:l.alwaysSet})}return c}).then(c=>et.mergeObjectSync(n,c)):et.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(e){return ge.errToObj,new Be({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let u=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=ge.errToObj(e).message)!==null&&a!==void 0?a:u}:{message:u}}}:{}})}strip(){return new Be({...this._def,unknownKeys:"strip"})}passthrough(){return new Be({...this._def,unknownKeys:"passthrough"})}extend(e){return new Be({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Be({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:be.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Be({...this._def,catchall:e})}pick(e){let r={};return ke.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new Be({...this._def,shape:()=>r})}omit(e){let r={};return ke.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new Be({...this._def,shape:()=>r})}deepPartial(){return Ws(this)}partial(e){let r={};return ke.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new Be({...this._def,shape:()=>r})}required(e){let r={};return ke.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof cr;)s=s._def.innerType;r[n]=s}}),new Be({...this._def,shape:()=>r})}keyof(){return VC(ke.objectKeys(this.shape))}};Be.create=(t,e)=>new Be({shape:()=>t,unknownKeys:"strip",catchall:lr.create(),typeName:be.ZodObject,...we(e)});Be.strictCreate=(t,e)=>new Be({shape:()=>t,unknownKeys:"strict",catchall:lr.create(),typeName:be.ZodObject,...we(e)});Be.lazycreate=(t,e)=>new Be({shape:t,unknownKeys:"strip",catchall:lr.create(),typeName:be.ZodObject,...we(e)});var Ei=class extends xe{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Mt(a.ctx.common.issues));return ue(r,{code:ie.invalid_union,unionErrors:o}),Ee}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let u of n){let c={...r,common:{...r.common,issues:[]},parent:null},l=u._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(u=>new Mt(u));return ue(r,{code:ie.invalid_union,unionErrors:a}),Ee}}get options(){return this._def.options}};Ei.create=(t,e)=>new Ei({options:t,typeName:be.ZodUnion,...we(e)});var kl=t=>t instanceof Si?kl(t.schema):t instanceof qt?kl(t.innerType()):t instanceof Ai?[t.value]:t instanceof Fr?t.options:t instanceof Di?Object.keys(t.enum):t instanceof Ci?kl(t._def.innerType):t instanceof bi?[void 0]:t instanceof vi?[null]:null,Ks=class extends xe{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.object)return ue(r,{code:ie.invalid_type,expected:ae.object,received:r.parsedType}),Ee;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(ue(r,{code:ie.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ee)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=kl(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new Ks({typeName:be.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...we(n)})}};function M0(t,e){let r=Ln(t),n=Ln(e);if(t===e)return{valid:!0,data:t};if(r===ae.object&&n===ae.object){let i=ke.objectKeys(e),s=ke.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let u=M0(t[a],e[a]);if(!u.valid)return{valid:!1};o[a]=u.data}return{valid:!0,data:o}}else if(r===ae.array&&n===ae.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],u=M0(o,a);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return r===ae.date&&n===ae.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var wi=class extends xe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(B0(s)||B0(o))return Ee;let a=M0(s.value,o.value);return a.valid?((N0(s)||N0(o))&&r.dirty(),{status:r.value,value:a.data}):(ue(n,{code:ie.invalid_intersection_types}),Ee)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};wi.create=(t,e,r)=>new wi({left:t,right:e,typeName:be.ZodIntersection,...we(r)});var er=class extends xe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.array)return ue(n,{code:ie.invalid_type,expected:ae.array,received:n.parsedType}),Ee;if(n.data.length<this._def.items.length)return ue(n,{code:ie.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ee;!this._def.rest&&n.data.length>this._def.items.length&&(ue(n,{code:ie.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Qt(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>et.mergeArray(r,o)):et.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new er({...this._def,rest:e})}};er.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new er({items:t,typeName:be.ZodTuple,rest:null,...we(e)})};var xi=class extends xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.object)return ue(n,{code:ie.invalid_type,expected:ae.object,received:n.parsedType}),Ee;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new Qt(n,a,n.path,a)),value:o._parse(new Qt(n,n.data[a],n.path,a))});return n.common.async?et.mergeObjectAsync(r,i):et.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof xe?new xi({keyType:e,valueType:r,typeName:be.ZodRecord,...we(n)}):new xi({keyType:Nt.create(),valueType:e,typeName:be.ZodRecord,...we(r)})}},Zs=class extends xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.map)return ue(n,{code:ie.invalid_type,expected:ae.map,received:n.parsedType}),Ee;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,u],c)=>({key:i._parse(new Qt(n,a,n.path,[c,"key"])),value:s._parse(new Qt(n,u,n.path,[c,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of o){let c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return Ee;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of o){let c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return Ee;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}}}};Zs.create=(t,e,r)=>new Zs({valueType:e,keyType:t,typeName:be.ZodMap,...we(r)});var nn=class extends xe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.set)return ue(n,{code:ie.invalid_type,expected:ae.set,received:n.parsedType}),Ee;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(ue(n,{code:ie.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(ue(n,{code:ie.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(u){let c=new Set;for(let l of u){if(l.status==="aborted")return Ee;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}let a=[...n.data.values()].map((u,c)=>s._parse(new Qt(n,u,n.path,c)));return n.common.async?Promise.all(a).then(u=>o(u)):o(a)}min(e,r){return new nn({...this._def,minSize:{value:e,message:ge.toString(r)}})}max(e,r){return new nn({...this._def,maxSize:{value:e,message:ge.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};nn.create=(t,e)=>new nn({valueType:t,minSize:null,maxSize:null,typeName:be.ZodSet,...we(e)});var Bn=class extends xe{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.function)return ue(r,{code:ie.invalid_type,expected:ae.function,received:r.parsedType}),Ee;function n(a,u){return Ol({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Tl(),_a].filter(c=>!!c),issueData:{code:ie.invalid_arguments,argumentsError:u}})}function i(a,u){return Ol({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Tl(),_a].filter(c=>!!c),issueData:{code:ie.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Mn){let a=this;return gt(async function(...u){let c=new Mt([]),l=await a._def.args.parseAsync(u,s).catch(d=>{throw c.addIssue(n(u,d)),c}),h=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(h,s).catch(d=>{throw c.addIssue(i(h,d)),c})})}else{let a=this;return gt(function(...u){let c=a._def.args.safeParse(u,s);if(!c.success)throw new Mt([n(u,c.error)]);let l=Reflect.apply(o,this,c.data),h=a._def.returns.safeParse(l,s);if(!h.success)throw new Mt([i(l,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Bn({...this._def,args:er.create(e).rest(tn.create())})}returns(e){return new Bn({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new Bn({args:e||er.create([]).rest(tn.create()),returns:r||tn.create(),typeName:be.ZodFunction,...we(n)})}},Si=class extends xe{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Si.create=(t,e)=>new Si({getter:t,typeName:be.ZodLazy,...we(e)});var Ai=class extends xe{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return ue(r,{received:r.data,code:ie.invalid_literal,expected:this._def.value}),Ee}return{status:"valid",value:e.data}}get value(){return this._def.value}};Ai.create=(t,e)=>new Ai({value:t,typeName:be.ZodLiteral,...we(e)});function VC(t,e){return new Fr({values:t,typeName:be.ZodEnum,...we(e)})}var Fr=class extends xe{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return ue(r,{expected:ke.joinValues(n),received:r.parsedType,code:ie.invalid_type}),Ee}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),n=this._def.values;return ue(r,{received:r.data,code:ie.invalid_enum_value,options:n}),Ee}return gt(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return Fr.create(e)}exclude(e){return Fr.create(this.options.filter(r=>!e.includes(r)))}};Fr.create=VC;var Di=class extends xe{_parse(e){let r=ke.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==ae.string&&n.parsedType!==ae.number){let i=ke.objectValues(r);return ue(n,{expected:ke.joinValues(i),received:n.parsedType,code:ie.invalid_type}),Ee}if(r.indexOf(e.data)===-1){let i=ke.objectValues(r);return ue(n,{received:n.data,code:ie.invalid_enum_value,options:i}),Ee}return gt(e.data)}get enum(){return this._def.values}};Di.create=(t,e)=>new Di({values:t,typeName:be.ZodNativeEnum,...we(e)});var Mn=class extends xe{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.promise&&r.common.async===!1)return ue(r,{code:ie.invalid_type,expected:ae.promise,received:r.parsedType}),Ee;let n=r.parsedType===ae.promise?r.data:Promise.resolve(r.data);return gt(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Mn.create=(t,e)=>new Mn({type:t,typeName:be.ZodPromise,...we(e)});var qt=class extends xe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{ue(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(i.type==="refinement"){let o=a=>{let u=i.refinement(a,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Ee:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Ee:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ba(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ba(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);ke.assertNever(i)}};qt.create=(t,e,r)=>new qt({schema:t,typeName:be.ZodEffects,effect:e,...we(r)});qt.createWithPreprocess=(t,e,r)=>new qt({schema:e,effect:{type:"preprocess",transform:t},typeName:be.ZodEffects,...we(r)});var cr=class extends xe{_parse(e){return this._getType(e)===ae.undefined?gt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};cr.create=(t,e)=>new cr({innerType:t,typeName:be.ZodOptional,...we(e)});var sn=class extends xe{_parse(e){return this._getType(e)===ae.null?gt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};sn.create=(t,e)=>new sn({innerType:t,typeName:be.ZodNullable,...we(e)});var Ci=class extends xe{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===ae.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Ci.create=(t,e)=>new Ci({innerType:t,typeName:be.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...we(e)});var Js=class extends xe{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Fl(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Mt(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Mt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Js.create=(t,e)=>new Js({innerType:t,typeName:be.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...we(e)});var Xs=class extends xe{_parse(e){if(this._getType(e)!==ae.nan){let n=this._getOrReturnCtx(e);return ue(n,{code:ie.invalid_type,expected:ae.nan,received:n.parsedType}),Ee}return{status:"valid",value:e.data}}};Xs.create=t=>new Xs({typeName:be.ZodNaN,...we(t)});var jj=Symbol("zod_brand"),Pl=class extends xe{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Ri=class extends xe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Ee:s.status==="dirty"?(r.dirty(),WC(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ee:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new Ri({in:e,out:r,typeName:be.ZodPipeline})}},Qs=class extends xe{_parse(e){let r=this._def.innerType._parse(e);return ba(r)&&(r.value=Object.freeze(r.value)),r}};Qs.create=(t,e)=>new Qs({innerType:t,typeName:be.ZodReadonly,...we(e)});var YC=(t,e={},r)=>t?Nn.create().superRefine((n,i)=>{var s,o;if(!t(n)){let a=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,u=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...c,fatal:u})}}):Nn.create(),qj={object:Be.lazycreate},be;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(be||(be={}));var Uj=(t,e={message:`Input not instance of ${t.name}`})=>YC(r=>r instanceof t,e),KC=Nt.create,ZC=Tr.create,Hj=Xs.create,$j=Or.create,JC=_i.create,Gj=rn.create,zj=Vs.create,Wj=bi.create,Vj=vi.create,Yj=Nn.create,Kj=tn.create,Zj=lr.create,Jj=Ys.create,Xj=jt.create,Qj=Be.create,e9=Be.strictCreate,t9=Ei.create,r9=Ks.create,n9=wi.create,i9=er.create,s9=xi.create,o9=Zs.create,a9=nn.create,u9=Bn.create,c9=Si.create,l9=Ai.create,h9=Fr.create,f9=Di.create,d9=Mn.create,GC=qt.create,p9=cr.create,m9=sn.create,y9=qt.createWithPreprocess,g9=Ri.create,_9=()=>KC().optional(),b9=()=>ZC().optional(),v9=()=>JC().optional(),E9={string:t=>Nt.create({...t,coerce:!0}),number:t=>Tr.create({...t,coerce:!0}),boolean:t=>_i.create({...t,coerce:!0}),bigint:t=>Or.create({...t,coerce:!0}),date:t=>rn.create({...t,coerce:!0})},w9=Ee,eo=Object.freeze({__proto__:null,defaultErrorMap:_a,setErrorMap:Dj,getErrorMap:Tl,makeIssue:Ol,EMPTY_PATH:Cj,addIssueToContext:ue,ParseStatus:et,INVALID:Ee,DIRTY:WC,OK:gt,isAborted:B0,isDirty:N0,isValid:ba,isAsync:Fl,get util(){return ke},get objectUtil(){return L0},ZodParsedType:ae,getParsedType:Ln,ZodType:xe,ZodString:Nt,ZodNumber:Tr,ZodBigInt:Or,ZodBoolean:_i,ZodDate:rn,ZodSymbol:Vs,ZodUndefined:bi,ZodNull:vi,ZodAny:Nn,ZodUnknown:tn,ZodNever:lr,ZodVoid:Ys,ZodArray:jt,ZodObject:Be,ZodUnion:Ei,ZodDiscriminatedUnion:Ks,ZodIntersection:wi,ZodTuple:er,ZodRecord:xi,ZodMap:Zs,ZodSet:nn,ZodFunction:Bn,ZodLazy:Si,ZodLiteral:Ai,ZodEnum:Fr,ZodNativeEnum:Di,ZodPromise:Mn,ZodEffects:qt,ZodTransformer:qt,ZodOptional:cr,ZodNullable:sn,ZodDefault:Ci,ZodCatch:Js,ZodNaN:Xs,BRAND:jj,ZodBranded:Pl,ZodPipeline:Ri,ZodReadonly:Qs,custom:YC,Schema:xe,ZodSchema:xe,late:qj,get ZodFirstPartyTypeKind(){return be},coerce:E9,any:Yj,array:Xj,bigint:$j,boolean:JC,date:Gj,discriminatedUnion:r9,effect:GC,enum:h9,function:u9,instanceof:Uj,intersection:n9,lazy:c9,literal:l9,map:o9,nan:Hj,nativeEnum:f9,never:Zj,null:Vj,nullable:m9,number:ZC,object:Qj,oboolean:v9,onumber:b9,optional:p9,ostring:_9,pipeline:g9,preprocess:y9,promise:d9,record:s9,set:a9,strictObject:e9,string:KC,symbol:zj,transformer:GC,tuple:i9,undefined:Wj,union:t9,unknown:Kj,void:Jj,NEVER:w9,ZodIssueCode:ie,quotelessJson:Aj,ZodError:Mt});var G0=oe(require("os")),o2=oe(require("crypto")),a2=oe(require("path")),u2=oe(s2());function F9(t){let e=process.version,r=G0.default.type(),n=G0.default.arch();return`${t.name} ${t.version} ${e} ${r} ${n}`}async function P9(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,u2.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return a2.default.join(t,"turborepo","telemetry.json")}function I9({input:t,salt:e}){return o2.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var to={buildUserAgent:F9,oneWayHashWithSalt:I9,defaultConfigPath:P9};var L9="TURBO_TELEMETRY_DEBUG",B9="TURBO_TELEMETRY_DISABLED",N9="TURBO_TELEMETRY_MESSAGE_DISABLED",M9="DO_NOT_TRACK",j9=eo.object({telemetry_enabled:eo.boolean(),telemetry_id:eo.string(),telemetry_salt:eo.string(),telemetry_alerted:eo.string().optional()}),Rt=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,ro.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=Rt.validateConfig(n);return new Rt({configPath:e,config:i})}catch{return Rt.tryRemove({configPath:e})?Rt.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await to.defaultConfigPath();return Rt.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return j9.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=(0,z0.randomUUID)(),n=(0,z0.randomUUID)(),i=to.oneWayHashWithSalt({input:r,salt:n}),s=new Rt({configPath:e,config:{telemetry_enabled:!0,telemetry_id:i,telemetry_salt:n}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,ro.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,ro.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[M9]||"0",r=process.env[B9]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[N9]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(de.log(),de.bold("Attention:"),de.grey("Turborepo now collects completely anonymous telemetry regarding usage."),de.grey("This information is used to shape the Turborepo roadmap and prioritize features."),de.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:"),de.underline(c2.default.gray("https://turborepo.com/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return to.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[L9]||"0";return e==="1"||e.toLowerCase()==="true"}};var eg=require("crypto"),Ik=oe(Pk());var H7=20,$7="/api/turborepo/v1/events",Oi=class{constructor({api:e,packageInfo:r,config:n,opts:i}){this.batchSize=H7;this.timeout=250;this.sessionId=(0,eg.randomUUID)();this.eventBatches=[];this.events=[];let s=new URL($7,e);this.api=s.toString(),this.packageInfo=r,this.config=n,i!=null&&i.timeout&&(this.timeout=i.timeout),i!=null&&i.batchSize&&(this.batchSize=i.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(Ik.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":to.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:n,isSensitive:i}){let s={id:(0,eg.randomUUID)(),key:e,value:i?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:n};return Rt.isDebug()&&(de.log(),de.bold("[telemetry event]"),de.dimmed(JSON.stringify(s,null,2)),de.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})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var Ta=class extends Oi{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:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};var jk=oe(Mk());var z7=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],Oa=class extends Oi{trackCI(){var e;return this.track({key:"ci",value:(e=jk.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:z7.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var W7={"create-turbo":Ta,"turbo-ignore":Oa},V7="https://telemetry.vercel.com";async function tg({packageInfo:t,opts:e}){let r=W7[t.name],n=await Rt.fromDefaultConfig();return n?(n.showAlert(),{telemetry:new r({api:V7,packageInfo:t,config:n,opts:e})}):{telemetry:void 0}}var Fa=oe(require("picocolors"));var qk=require("commander"),Uk="status",Y7=["enable","disable",Uk];function K7(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();de.log(`Status: ${e?Fa.default.bold(Fa.default.green("Enabled")):Fa.default.bold(Fa.default.red("Disabled"))}`),de.log(),e?de.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):de.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),de.log("Learn more: https://turborepo.com/docs/telemetry")}function Z7(t,e){if(!e.telemetry){de.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),de.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),de.bold("Success!")),de.log(),K7(e)}function rg(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new qk.Argument("[action]","Action to perform").choices(Y7).default(Uk)).action(Z7)}var tO=require("proxy-agent"),Eh=oe(ng());var Ha=oe(require("path")),tt=oe(require("picocolors"));var kt=require("picocolors"),nT=oe(tc(),1),iT=oe(uc(),1),cT=oe(require("os"),1),lT=oe(vs(),1),JH=oe(require("picocolors"),1),XH=oe(require("update-check"),1),zZ=require("fs-extra");var ZZ=oe(Tu(),1),XZ=require("fs-extra"),eJ=require("fs-extra"),rJ=require("picocolors"),sJ=require("fs-extra"),uJ=require("picocolors"),lJ=require("fs-extra"),Fi=oe(require("path"),1),dr=oe(require("fs-extra"),1),fT=oe(vs(),1),dT=oe(require("path"),1),pT=oe(require("fs-extra"),1),mT=oe(require("picocolors"),1),ln=oe(require("path"),1),yT=oe(vs(),1),$t=require("fs-extra"),gT=oe(Tu(),1);var Ia=oe(require("path"),1),Pi=oe(require("fs-extra"),1),bo=oe(require("path"),1),Ii=oe(require("fs-extra"),1),La=oe(require("path"),1),Bi=oe(require("fs-extra"),1),Ht=oe(require("picocolors"),1),xT=oe(uc(),1),ST=oe(vs(),1),AT=oe(tc(),1),DT=require("semver"),CT=oe(require("picocolors"),1),X7=Object.create,og=Object.defineProperty,Q7=Object.getOwnPropertyDescriptor,eH=Object.getOwnPropertyNames,tH=Object.getPrototypeOf,rH=Object.prototype.hasOwnProperty,_e=(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')}),nH=(t,e)=>()=>(t&&(e=t(t=0)),e),me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),iH=(t,e)=>{for(var r in e)og(t,r,{get:e[r],enumerable:!0})},sH=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of eH(e))!rH.call(t,i)&&i!==r&&og(t,i,{get:()=>e[i],enumerable:!(n=Q7(e,i))||n.enumerable});return t},hh=(t,e,r)=>(r=t!=null?X7(tH(t)):{},sH(e||!t||!t.__esModule?og(r,"default",{value:t,enumerable:!0}):r,t)),ee=nH(()=>{}),oH=me((t,e)=>{ee();function r(n){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),aH=me((t,e)=>{ee();var r=oH().default;function n(){"use strict";e.exports=n=function(){return s},e.exports.__esModule=!0,e.exports.default=e.exports;var i,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 p(q,g,_,v){var k=g&&g.prototype instanceof R?g:R,S=Object.create(k.prototype),H=new G(v||[]);return u(S,"_invoke",{value:te(q,_,H)}),S}function y(q,g,_){try{return{type:"normal",arg:q.call(g,_)}}catch(v){return{type:"throw",arg:v}}}s.wrap=p;var m="suspendedStart",w="suspendedYield",T="executing",F="completed",I={};function R(){}function M(){}function x(){}var D={};d(D,l,function(){return this});var U=Object.getPrototypeOf,W=U&&U(U(Z([])));W&&W!==o&&a.call(W,l)&&(D=W);var N=x.prototype=R.prototype=Object.create(D);function V(q){["next","throw","return"].forEach(function(g){d(q,g,function(_){return this._invoke(g,_)})})}function Q(q,g){function _(k,S,H,$){var ne=y(q[k],q,S);if(ne.type!=="throw"){var Y=ne.arg,fe=Y.value;return fe&&r(fe)=="object"&&a.call(fe,"__await")?g.resolve(fe.__await).then(function(J){_("next",J,H,$)},function(J){_("throw",J,H,$)}):g.resolve(fe).then(function(J){Y.value=J,H(Y)},function(J){return _("throw",J,H,$)})}$(ne.arg)}var v;u(this,"_invoke",{value:function(k,S){function H(){return new g(function($,ne){_(k,S,$,ne)})}return v=v?v.then(H,H):H()}})}function te(q,g,_){var v=m;return function(k,S){if(v===T)throw new Error("Generator is already running");if(v===F){if(k==="throw")throw S;return{value:i,done:!0}}for(_.method=k,_.arg=S;;){var H=_.delegate;if(H){var $=j(H,_);if($){if($===I)continue;return $}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(v===m)throw v=F,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);v=T;var ne=y(q,g,_);if(ne.type==="normal"){if(v=_.done?F:w,ne.arg===I)continue;return{value:ne.arg,done:_.done}}ne.type==="throw"&&(v=F,_.method="throw",_.arg=ne.arg)}}}function j(q,g){var _=g.method,v=q.iterator[_];if(v===i)return g.delegate=null,_==="throw"&&q.iterator.return&&(g.method="return",g.arg=i,j(q,g),g.method==="throw")||_!=="return"&&(g.method="throw",g.arg=new TypeError("The iterator does not provide a '"+_+"' method")),I;var k=y(v,q.iterator,g.arg);if(k.type==="throw")return g.method="throw",g.arg=k.arg,g.delegate=null,I;var S=k.arg;return S?S.done?(g[q.resultName]=S.value,g.next=q.nextLoc,g.method!=="return"&&(g.method="next",g.arg=i),g.delegate=null,I):S:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,I)}function P(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 L(q){var g=q.completion||{};g.type="normal",delete g.arg,q.completion=g}function G(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(P,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,v=function k(){for(;++_<q.length;)if(a.call(q,_))return k.value=q[_],k.done=!1,k;return k.value=i,k.done=!0,k};return v.next=v}}throw new TypeError(r(q)+" is not iterable")}return M.prototype=x,u(N,"constructor",{value:x,configurable:!0}),u(x,"constructor",{value:M,configurable:!0}),M.displayName=d(x,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,x):(q.__proto__=x,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,_,v,k){k===void 0&&(k=Promise);var S=new Q(p(q,g,_,v),k);return s.isGeneratorFunction(g)?S:S.next().then(function(H){return H.done?H.value:S.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 v in g)_.push(v);return _.reverse(),function k(){for(;_.length;){var S=_.pop();if(S in g)return k.value=S,k.done=!1,k}return k.done=!0,k}},s.values=Z,G.prototype={constructor:G,reset:function(q){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(L),!q)for(var g in this)g.charAt(0)==="t"&&a.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=i)},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 _(ne,Y){return S.type="throw",S.arg=q,g.next=ne,Y&&(g.method="next",g.arg=i),!!Y}for(var v=this.tryEntries.length-1;v>=0;--v){var k=this.tryEntries[v],S=k.completion;if(k.tryLoc==="root")return _("end");if(k.tryLoc<=this.prev){var H=a.call(k,"catchLoc"),$=a.call(k,"finallyLoc");if(H&&$){if(this.prev<k.catchLoc)return _(k.catchLoc,!0);if(this.prev<k.finallyLoc)return _(k.finallyLoc)}else if(H){if(this.prev<k.catchLoc)return _(k.catchLoc,!0)}else{if(!$)throw new Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return _(k.finallyLoc)}}}},abrupt:function(q,g){for(var _=this.tryEntries.length-1;_>=0;--_){var v=this.tryEntries[_];if(v.tryLoc<=this.prev&&a.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var k=v;break}}k&&(q==="break"||q==="continue")&&k.tryLoc<=g&&g<=k.finallyLoc&&(k=null);var S=k?k.completion:{};return S.type=q,S.arg=g,k?(this.method="next",this.next=k.finallyLoc,I):this.complete(S)},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),I},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),L(_),I}},catch:function(q){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.tryLoc===q){var v=_.completion;if(v.type==="throw"){var k=v.arg;L(_)}return k}}throw new Error("illegal catch attempt")},delegateYield:function(q,g,_){return this.delegate={iterator:Z(q),resultName:g,nextLoc:_},this.method==="next"&&(this.arg=i),I}},s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}),uH=me((t,e)=>{ee();var r=aH()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),cH=me((t,e)=>{"use strict";ee();var r=(n,...i)=>new Promise(s=>{s(n(...i))});e.exports=r,e.exports.default=r}),lH=me((t,e)=>{"use strict";ee();var r=cH(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>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 p=r(h,...d);f(p),p.then(a,a)},c=(h,f,...d)=>{o<i?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=n,e.exports.default=n}),hH=me((t,e)=>{"use strict";ee();var r=lH(),n=class extends Error{constructor(a){super(),this.value=a}},i=async(a,u)=>u(await a),s=async a=>{let u=await Promise.all(a);if(u[1]===!0)throw new n(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(i,d,u)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>f(s,d)))}catch(d){if(d instanceof n)return d.value;throw d}};e.exports=o,e.exports.default=o}),fH=me((t,e)=>{"use strict";ee();var r=_e("path"),n=_e("fs"),{promisify:i}=_e("util"),s=hH(),o=i(n.stat),a=i(n.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 p=>{try{let y=await d(r.resolve(f.cwd,p));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?n.statSync:n.lstatSync;for(let p of h)try{let y=d(r.resolve(f.cwd,p));if(l(f.type,y))return p}catch{}}}),dH=me((t,e)=>{"use strict";ee();var r=_e("fs"),{promisify:n}=_e("util"),i=n(r.access);e.exports=async s=>{try{return await i(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),pH=me((t,e)=>{"use strict";ee();var r=_e("path"),n=fH(),i=dH(),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 n(l,f);let d=await o(f.cwd);return typeof d=="string"?n([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 n.sync(l,f);let d=o(f.cwd);return typeof d=="string"?n.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=i,e.exports.sync.exists=i.sync,e.exports.stop=s}),Ba=me((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=n=>n?Object.keys(n).map(i=>[r.has(i)?r.get(i):i,n[i]]).reduce((i,s)=>(i[s[0]]=s[1],i),Object.create(null)):{}}),ag=me((t,e)=>{"use strict";ee();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=_e("events"),i=_e("stream"),s=_e("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"),p=Symbol("flushChunk"),y=Symbol("encoding"),m=Symbol("decoder"),w=Symbol("flowing"),T=Symbol("paused"),F=Symbol("resume"),I=Symbol("buffer"),R=Symbol("pipes"),M=Symbol("bufferLength"),x=Symbol("bufferPush"),D=Symbol("bufferShift"),U=Symbol("objectMode"),W=Symbol("destroyed"),N=Symbol("emitData"),V=Symbol("emitEnd"),Q=Symbol("emitEnd2"),te=Symbol("async"),j=k=>Promise.resolve().then(k),P=global._MP_NO_ITERATOR_SYMBOLS_!=="1",L=P&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),G=P&&Symbol.iterator||Symbol("iterator not implemented"),Z=k=>k==="end"||k==="finish"||k==="prefinish",q=k=>k instanceof ArrayBuffer||typeof k=="object"&&k.constructor&&k.constructor.name==="ArrayBuffer"&&k.byteLength>=0,g=k=>!Buffer.isBuffer(k)&&ArrayBuffer.isView(k),_=class{constructor(k,S,H){this.src=k,this.dest=S,this.opts=H,this.ondrain=()=>k[F](),S.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},v=class extends _{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(k,S,H){super(k,S,H),this.proxyErrors=$=>S.emit("error",$),k.on("error",this.proxyErrors)}};e.exports=class Gk extends i{constructor(S){super(),this[w]=!1,this[T]=!1,this[R]=[],this[I]=[],this[U]=S&&S.objectMode||!1,this[U]?this[y]=null:this[y]=S&&S.encoding||null,this[y]==="buffer"&&(this[y]=null),this[te]=S&&!!S.async||!1,this[m]=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,S&&S.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[I]}),S&&S.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[R]})}get bufferLength(){return this[M]}get encoding(){return this[y]}set encoding(S){if(this[U])throw new Error("cannot set encoding in objectMode");if(this[y]&&S!==this[y]&&(this[m]&&this[m].lastNeed||this[M]))throw new Error("cannot change encoding");this[y]!==S&&(this[m]=S?new s(S):null,this[I].length&&(this[I]=this[I].map(H=>this[m].write(H)))),this[y]=S}setEncoding(S){this.encoding=S}get objectMode(){return this[U]}set objectMode(S){this[U]=this[U]||!!S}get async(){return this[te]}set async(S){this[te]=this[te]||!!S}write(S,H,$){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 H=="function"&&($=H,H="utf8"),H||(H="utf8");let ne=this[te]?j:Y=>Y();return!this[U]&&!Buffer.isBuffer(S)&&(g(S)?S=Buffer.from(S.buffer,S.byteOffset,S.byteLength):q(S)?S=Buffer.from(S):typeof S!="string"&&(this.objectMode=!0)),this[U]?(this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",S):this[x](S),this[M]!==0&&this.emit("readable"),$&&ne($),this.flowing):S.length?(typeof S=="string"&&!(H===this[y]&&!this[m].lastNeed)&&(S=Buffer.from(S,H)),Buffer.isBuffer(S)&&this[y]&&(S=this[m].write(S)),this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",S):this[x](S),this[M]!==0&&this.emit("readable"),$&&ne($),this.flowing):(this[M]!==0&&this.emit("readable"),$&&ne($),this.flowing)}read(S){if(this[W])return null;if(this[M]===0||S===0||S>this[M])return this[a](),null;this[U]&&(S=null),this[I].length>1&&!this[U]&&(this.encoding?this[I]=[this[I].join("")]:this[I]=[Buffer.concat(this[I],this[M])]);let H=this[f](S||null,this[I][0]);return this[a](),H}[f](S,H){return S===H.length||S===null?this[D]():(this[I][0]=H.slice(S),H=H.slice(0,S),this[M]-=S),this.emit("data",H),!this[I].length&&!this[o]&&this.emit("drain"),H}end(S,H,$){return typeof S=="function"&&($=S,S=null),typeof H=="function"&&($=H,H="utf8"),S&&this.write(S,H),$&&this.once("end",$),this[o]=!0,this.writable=!1,(this.flowing||!this[T])&&this[a](),this}[F](){this[W]||(this[T]=!1,this[w]=!0,this.emit("resume"),this[I].length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[F]()}pause(){this[w]=!1,this[T]=!0}get destroyed(){return this[W]}get flowing(){return this[w]}get paused(){return this[T]}[x](S){this[U]?this[M]+=1:this[M]+=S.length,this[I].push(S)}[D](){return this[I].length&&(this[U]?this[M]-=1:this[M]-=this[I][0].length),this[I].shift()}[d](S){do;while(this[p](this[D]()));!S&&!this[I].length&&!this[o]&&this.emit("drain")}[p](S){return S?(this.emit("data",S),this.flowing):!1}pipe(S,H){if(this[W])return;let $=this[u];return H=H||{},S===r.stdout||S===r.stderr?H.end=!1:H.end=H.end!==!1,H.proxyErrors=!!H.proxyErrors,$?H.end&&S.end():(this[R].push(H.proxyErrors?new v(this,S,H):new _(this,S,H)),this[te]?j(()=>this[F]()):this[F]()),S}unpipe(S){let H=this[R].find($=>$.dest===S);H&&(this[R].splice(this[R].indexOf(H),1),H.unpipe())}addListener(S,H){return this.on(S,H)}on(S,H){let $=super.on(S,H);return S==="data"&&!this[R].length&&!this.flowing?this[F]():S==="readable"&&this[M]!==0?super.emit("readable"):Z(S)&&this[u]?(super.emit(S),this.removeAllListeners(S)):S==="error"&&this[l]&&(this[te]?j(()=>H.call(this,this[l])):H.call(this,this[l])),$}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[W]&&this[I].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(S,H,...$){if(S!=="error"&&S!=="close"&&S!==W&&this[W])return;if(S==="data")return H?this[te]?j(()=>this[N](H)):this[N](H):!1;if(S==="end")return this[V]();if(S==="close"){if(this[h]=!0,!this[u]&&!this[W])return;let Y=super.emit("close");return this.removeAllListeners("close"),Y}else if(S==="error"){this[l]=H;let Y=super.emit("error",H);return this[a](),Y}else if(S==="resume"){let Y=super.emit("resume");return this[a](),Y}else if(S==="finish"||S==="prefinish"){let Y=super.emit(S);return this.removeAllListeners(S),Y}let ne=super.emit(S,H,...$);return this[a](),ne}[N](S){for(let $ of this[R])$.dest.write(S)===!1&&this.pause();let H=super.emit("data",S);return this[a](),H}[V](){this[u]||(this[u]=!0,this.readable=!1,this[te]?j(()=>this[Q]()):this[Q]())}[Q](){if(this[m]){let H=this[m].end();if(H){for(let $ of this[R])$.dest.write(H);super.emit("data",H)}}for(let H of this[R])H.end();let S=super.emit("end");return this.removeAllListeners("end"),S}collect(){let S=[];this[U]||(S.dataLength=0);let H=this.promise();return this.on("data",$=>{S.push($),this[U]||(S.dataLength+=$.length)}),H.then(()=>S)}concat(){return this[U]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(S=>this[U]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?S.join(""):Buffer.concat(S,S.dataLength))}promise(){return new Promise((S,H)=>{this.on(W,()=>H(new Error("stream destroyed"))),this.on("error",$=>H($)),this.on("end",()=>S())})}[L](){return{next:()=>{let S=this.read();if(S!==null)return Promise.resolve({done:!1,value:S});if(this[o])return Promise.resolve({done:!0});let H=null,$=null,ne=E=>{this.removeListener("data",Y),this.removeListener("end",fe),$(E)},Y=E=>{this.removeListener("error",ne),this.removeListener("end",fe),this.pause(),H({value:E,done:!!this[o]})},fe=()=>{this.removeListener("error",ne),this.removeListener("data",Y),H({done:!0})},J=()=>ne(new Error("stream destroyed"));return new Promise((E,B)=>{$=B,H=E,this.once(W,J),this.once("error",ne),this.once("end",fe),this.once("data",Y)})}}}[G](){return{next:()=>{let S=this.read();return{value:S,done:S===null}}}}destroy(S){return this[W]?(S?this.emit("error",S):this.emit(W),this):(this[W]=!0,this[I].length=0,this[M]=0,typeof this.close=="function"&&!this[h]&&this.close(),S?this.emit("error",S):this.emit(W),this)}static isStream(S){return!!S&&(S instanceof Gk||S instanceof i||S instanceof n&&(typeof S.pipe=="function"||typeof S.write=="function"&&typeof S.end=="function"))}}}),mH=me((t,e)=>{ee();var r=_e("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))}),zk=me((t,e)=>{"use strict";ee();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=_e("events"),i=_e("stream"),s=_e("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"),p=Symbol("flushChunk"),y=Symbol("encoding"),m=Symbol("decoder"),w=Symbol("flowing"),T=Symbol("paused"),F=Symbol("resume"),I=Symbol("bufferLength"),R=Symbol("bufferPush"),M=Symbol("bufferShift"),x=Symbol("objectMode"),D=Symbol("destroyed"),U=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"),P=te&&Symbol.iterator||Symbol("iterator not implemented"),L=_=>_==="end"||_==="finish"||_==="prefinish",G=_=>_ instanceof ArrayBuffer||typeof _=="object"&&_.constructor&&_.constructor.name==="ArrayBuffer"&&_.byteLength>=0,Z=_=>!Buffer.isBuffer(_)&&ArrayBuffer.isView(_),q=class{constructor(_,v,k){this.src=_,this.dest=v,this.opts=k,this.ondrain=()=>_[F](),v.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(_,v,k){super(_,v,k),this.proxyErrors=S=>v.emit("error",S),_.on("error",this.proxyErrors)}};e.exports=class Wk extends i{constructor(v){super(),this[w]=!1,this[T]=!1,this.pipes=[],this.buffer=[],this[x]=v&&v.objectMode||!1,this[x]?this[y]=null:this[y]=v&&v.encoding||null,this[y]==="buffer"&&(this[y]=null),this[V]=v&&!!v.async||!1,this[m]=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[I]=0,this[D]=!1}get bufferLength(){return this[I]}get encoding(){return this[y]}set encoding(v){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[y]&&v!==this[y]&&(this[m]&&this[m].lastNeed||this[I]))throw new Error("cannot change encoding");this[y]!==v&&(this[m]=v?new s(v):null,this.buffer.length&&(this.buffer=this.buffer.map(k=>this[m].write(k)))),this[y]=v}setEncoding(v){this.encoding=v}get objectMode(){return this[x]}set objectMode(v){this[x]=this[x]||!!v}get async(){return this[V]}set async(v){this[V]=this[V]||!!v}write(v,k,S){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 k=="function"&&(S=k,k="utf8"),k||(k="utf8");let H=this[V]?Q:$=>$();return!this[x]&&!Buffer.isBuffer(v)&&(Z(v)?v=Buffer.from(v.buffer,v.byteOffset,v.byteLength):G(v)?v=Buffer.from(v):typeof v!="string"&&(this.objectMode=!0)),this[x]?(this.flowing&&this[I]!==0&&this[d](!0),this.flowing?this.emit("data",v):this[R](v),this[I]!==0&&this.emit("readable"),S&&H(S),this.flowing):v.length?(typeof v=="string"&&!(k===this[y]&&!this[m].lastNeed)&&(v=Buffer.from(v,k)),Buffer.isBuffer(v)&&this[y]&&(v=this[m].write(v)),this.flowing&&this[I]!==0&&this[d](!0),this.flowing?this.emit("data",v):this[R](v),this[I]!==0&&this.emit("readable"),S&&H(S),this.flowing):(this[I]!==0&&this.emit("readable"),S&&H(S),this.flowing)}read(v){if(this[D])return null;if(this[I]===0||v===0||v>this[I])return this[a](),null;this[x]&&(v=null),this.buffer.length>1&&!this[x]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[I])]);let k=this[f](v||null,this.buffer[0]);return this[a](),k}[f](v,k){return v===k.length||v===null?this[M]():(this.buffer[0]=k.slice(v),k=k.slice(0,v),this[I]-=v),this.emit("data",k),!this.buffer.length&&!this[o]&&this.emit("drain"),k}end(v,k,S){return typeof v=="function"&&(S=v,v=null),typeof k=="function"&&(S=k,k="utf8"),v&&this.write(v,k),S&&this.once("end",S),this[o]=!0,this.writable=!1,(this.flowing||!this[T])&&this[a](),this}[F](){this[D]||(this[T]=!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[T]=!0}get destroyed(){return this[D]}get flowing(){return this[w]}get paused(){return this[T]}[R](v){this[x]?this[I]+=1:this[I]+=v.length,this.buffer.push(v)}[M](){return this.buffer.length&&(this[x]?this[I]-=1:this[I]-=this.buffer[0].length),this.buffer.shift()}[d](v){do;while(this[p](this[M]()));!v&&!this.buffer.length&&!this[o]&&this.emit("drain")}[p](v){return v?(this.emit("data",v),this.flowing):!1}pipe(v,k){if(this[D])return;let S=this[u];return k=k||{},v===r.stdout||v===r.stderr?k.end=!1:k.end=k.end!==!1,k.proxyErrors=!!k.proxyErrors,S?k.end&&v.end():(this.pipes.push(k.proxyErrors?new g(this,v,k):new q(this,v,k)),this[V]?Q(()=>this[F]()):this[F]()),v}unpipe(v){let k=this.pipes.find(S=>S.dest===v);k&&(this.pipes.splice(this.pipes.indexOf(k),1),k.unpipe())}addListener(v,k){return this.on(v,k)}on(v,k){let S=super.on(v,k);return v==="data"&&!this.pipes.length&&!this.flowing?this[F]():v==="readable"&&this[I]!==0?super.emit("readable"):L(v)&&this[u]?(super.emit(v),this.removeAllListeners(v)):v==="error"&&this[l]&&(this[V]?Q(()=>k.call(this,this[l])):k.call(this,this[l])),S}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(v,k,...S){if(v!=="error"&&v!=="close"&&v!==D&&this[D])return;if(v==="data")return k?this[V]?Q(()=>this[U](k)):this[U](k):!1;if(v==="end")return this[W]();if(v==="close"){if(this[h]=!0,!this[u]&&!this[D])return;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(v==="error"){this[l]=k;let $=super.emit("error",k);return this[a](),$}else if(v==="resume"){let $=super.emit("resume");return this[a](),$}else if(v==="finish"||v==="prefinish"){let $=super.emit(v);return this.removeAllListeners(v),$}let H=super.emit(v,k,...S);return this[a](),H}[U](v){for(let S of this.pipes)S.dest.write(v)===!1&&this.pause();let k=super.emit("data",v);return this[a](),k}[W](){this[u]||(this[u]=!0,this.readable=!1,this[V]?Q(()=>this[N]()):this[N]())}[N](){if(this[m]){let k=this[m].end();if(k){for(let S of this.pipes)S.dest.write(k);super.emit("data",k)}}for(let k of this.pipes)k.end();let v=super.emit("end");return this.removeAllListeners("end"),v}collect(){let v=[];this[x]||(v.dataLength=0);let k=this.promise();return this.on("data",S=>{v.push(S),this[x]||(v.dataLength+=S.length)}),k.then(()=>v)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(v=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?v.join(""):Buffer.concat(v,v.dataLength))}promise(){return new Promise((v,k)=>{this.on(D,()=>k(new Error("stream destroyed"))),this.on("error",S=>k(S)),this.on("end",()=>v())})}[j](){return{next:()=>{let v=this.read();if(v!==null)return Promise.resolve({done:!1,value:v});if(this[o])return Promise.resolve({done:!0});let k=null,S=null,H=fe=>{this.removeListener("data",$),this.removeListener("end",ne),S(fe)},$=fe=>{this.removeListener("error",H),this.removeListener("end",ne),this.pause(),k({value:fe,done:!!this[o]})},ne=()=>{this.removeListener("error",H),this.removeListener("data",$),k({done:!0})},Y=()=>H(new Error("stream destroyed"));return new Promise((fe,J)=>{S=J,k=fe,this.once(D,Y),this.once("error",H),this.once("end",ne),this.once("data",$)})}}}[P](){return{next:()=>{let v=this.read();return{value:v,done:v===null}}}}destroy(v){return this[D]?(v?this.emit("error",v):this.emit(D),this):(this[D]=!0,this.buffer.length=0,this[I]=0,typeof this.close=="function"&&!this[h]&&this.close(),v?this.emit("error",v):this.emit(D),this)}static isStream(v){return!!v&&(v instanceof Wk||v instanceof i||v instanceof n&&(typeof v.pipe=="function"||typeof v.write=="function"&&typeof v.end=="function"))}}}),Vk=me(t=>{"use strict";ee();var e=_e("assert"),r=_e("buffer").Buffer,n=_e("zlib"),i=t.constants=mH(),s=zk(),o=r.concat,a=Symbol("_superWrite"),u=class extends Error{constructor(L){super("zlib: "+L.message),this.code=L.code,this.errno=L.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+L.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"),p=Symbol("onError"),y=Symbol("sawError"),m=Symbol("level"),w=Symbol("strategy"),T=Symbol("ended"),F=Symbol("_defaultFullFlush"),I=class extends s{constructor(L,G){if(!L||typeof L!="object")throw new TypeError("invalid options for ZlibBase constructor");super(L),this[y]=!1,this[T]=!1,this[c]=L,this[l]=L.flush,this[h]=L.finishFlush;try{this[d]=new n[G](L)}catch(Z){throw new u(Z)}this[p]=Z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",Z))},this[d].on("error",Z=>this[p](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(L){this.ended||(typeof L!="number"&&(L=this[f]),this.write(Object.assign(r.alloc(0),{[l]:L})))}end(L,G,Z){return L&&this.write(L,G),this.flush(this[h]),this[T]=!0,super.end(null,null,Z)}get ended(){return this[T]}write(L,G,Z){if(typeof G=="function"&&(Z=G,G="utf8"),typeof L=="string"&&(L=r.from(L,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=S=>S;let v;try{let S=typeof L[l]=="number"?L[l]:this[l];v=this[d]._processChunk(L,S),r.concat=o}catch(S){r.concat=o,this[p](new u(S))}finally{this[d]&&(this[d]._handle=q,q.close=g,this[d].close=_,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",S=>this[p](new u(S)));let k;if(v)if(Array.isArray(v)&&v.length>0){k=this[a](r.from(v[0]));for(let S=1;S<v.length;S++)k=this[a](v[S])}else k=this[a](r.from(v));return Z&&Z(),k}[a](L){return super.write(L)}},R=class extends I{constructor(L,G){L=L||{},L.flush=L.flush||i.Z_NO_FLUSH,L.finishFlush=L.finishFlush||i.Z_FINISH,super(L,G),this[f]=i.Z_FULL_FLUSH,this[m]=L.level,this[w]=L.strategy}params(L,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[m]!==L||this[w]!==G){this.flush(i.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(L,G)}finally{this[d].flush=Z}this[d]&&(this[m]=L,this[w]=G)}}}},M=class extends R{constructor(L){super(L,"Deflate")}},x=class extends R{constructor(L){super(L,"Inflate")}},D=Symbol("_portable"),U=class extends R{constructor(L){super(L,"Gzip"),this[D]=L&&!!L.portable}[a](L){return this[D]?(this[D]=!1,L[9]=255,super[a](L)):super[a](L)}},W=class extends R{constructor(L){super(L,"Gunzip")}},N=class extends R{constructor(L){super(L,"DeflateRaw")}},V=class extends R{constructor(L){super(L,"InflateRaw")}},Q=class extends R{constructor(L){super(L,"Unzip")}},te=class extends I{constructor(L,G){L=L||{},L.flush=L.flush||i.BROTLI_OPERATION_PROCESS,L.finishFlush=L.finishFlush||i.BROTLI_OPERATION_FINISH,super(L,G),this[f]=i.BROTLI_OPERATION_FLUSH}},j=class extends te{constructor(L){super(L,"BrotliCompress")}},P=class extends te{constructor(L){super(L,"BrotliDecompress")}};t.Deflate=M,t.Inflate=x,t.Gzip=U,t.Gunzip=W,t.DeflateRaw=N,t.InflateRaw=V,t.Unzip=Q,typeof n.BrotliCompress=="function"?(t.BrotliCompress=j,t.BrotliDecompress=P):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Na=me((t,e)=>{ee();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),ug=me((t,e)=>{"use strict";ee();var r=ag(),n=Na(),i=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=n(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=n(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[i](o),a&&this[i](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))}[i](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?n(s[a]):s[a])}}}),Yk=me(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]]))}),yH=me((t,e)=>{"use strict";ee();var r=(l,h)=>{if(Number.isSafeInteger(l))l<0?i(l,h):n(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(l,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=l&255,l=Math.floor(l/256)},i=(l,h)=>{h[0]=255;var f=!1;l=l*-1;for(var d=h.length;d>1;d--){var p=l&255;l=Math.floor(l/256),f?h[d-1]=u(p):p===0?h[d-1]=0:(f=!0,h[d-1]=c(p))}},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,p=h-1;p>-1;p--){var y=l[p],m;d?m=u(y):y===0?m=y:(d=!0,m=c(y)),m!==0&&(f-=m*Math.pow(256,h-p-1))}return f},a=l=>{for(var h=l.length,f=0,d=h-1;d>-1;d--){var p=l[d];p!==0&&(f+=p*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}}),Ma=me((t,e)=>{"use strict";ee();var r=Yk(),n=_e("path").posix,i=yH(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(x,D,U,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(x)?this.decode(x,D||0,U,W):x&&this.set(x)}decode(x,D,U,W){if(D||(D=0),!x||!(x.length>=D+512))throw new Error("need 512 bytes for header");if(this.path=c(x,D,100),this.mode=f(x,D+100,8),this.uid=f(x,D+108,8),this.gid=f(x,D+116,8),this.size=f(x,D+124,12),this.mtime=l(x,D+136,12),this.cksum=f(x,D+148,12),this[s](U),this[s](W,!0),this[o]=c(x,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(x,D+157,100),x.slice(D+257,D+265).toString()==="ustar\x0000")if(this.uname=c(x,D+265,32),this.gname=c(x,D+297,32),this.devmaj=f(x,D+329,8),this.devmin=f(x,D+337,8),x[D+475]!==0){let V=c(x,D+345,155);this.path=V+"/"+this.path}else{let V=c(x,D+345,130);V&&(this.path=V+"/"+this.path),this.atime=l(x,D+476,12),this.ctime=l(x,D+488,12)}let N=8*32;for(let V=D;V<D+148;V++)N+=x[V];for(let V=D+156;V<D+512;V++)N+=x[V];this.cksumValid=N===this.cksum,this.cksum===null&&N===8*32&&(this.nullBlock=!0)}[s](x,D){for(let U in x)x[U]!==null&&x[U]!==void 0&&!(D&&U==="path")&&(this[U]=x[U])}encode(x,D){if(x||(x=this.block=Buffer.alloc(512),D=0),D||(D=0),!(x.length>=D+512))throw new Error("need 512 bytes for header");let U=this.ctime||this.atime?130:155,W=u(this.path||"",U),N=W[0],V=W[1];this.needPax=W[2],this.needPax=M(x,D,100,N)||this.needPax,this.needPax=m(x,D+100,8,this.mode)||this.needPax,this.needPax=m(x,D+108,8,this.uid)||this.needPax,this.needPax=m(x,D+116,8,this.gid)||this.needPax,this.needPax=m(x,D+124,12,this.size)||this.needPax,this.needPax=I(x,D+136,12,this.mtime)||this.needPax,x[D+156]=this[o].charCodeAt(0),this.needPax=M(x,D+157,100,this.linkpath)||this.needPax,x.write("ustar\x0000",D+257,8),this.needPax=M(x,D+265,32,this.uname)||this.needPax,this.needPax=M(x,D+297,32,this.gname)||this.needPax,this.needPax=m(x,D+329,8,this.devmaj)||this.needPax,this.needPax=m(x,D+337,8,this.devmin)||this.needPax,this.needPax=M(x,D+345,U,V)||this.needPax,x[D+475]!==0?this.needPax=M(x,D+345,155,V)||this.needPax:(this.needPax=M(x,D+345,130,V)||this.needPax,this.needPax=I(x,D+476,12,this.atime)||this.needPax,this.needPax=I(x,D+488,12,this.ctime)||this.needPax);let Q=8*32;for(let te=D;te<D+148;te++)Q+=x[te];for(let te=D+156;te<D+512;te++)Q+=x[te];return this.cksum=Q,m(x,D+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(x){for(let D in x)x[D]!==null&&x[D]!==void 0&&(this[D]=x[D])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(x){r.code.has(x)?this[o]=r.code.get(x):this[o]=x}},u=(x,D)=>{let U=x,W="",N,V=n.parse(x).root||".";if(Buffer.byteLength(U)<100)N=[U,W,!1];else{W=n.dirname(U),U=n.basename(U);do Buffer.byteLength(U)<=100&&Buffer.byteLength(W)<=D?N=[U,W,!1]:Buffer.byteLength(U)>100&&Buffer.byteLength(W)<=D?N=[U.slice(0,100-1),W,!0]:(U=n.join(n.basename(W),U),W=n.dirname(W));while(W!==V&&!N);N||(N=[x.slice(0,100-1),"",!0])}return N},c=(x,D,U)=>x.slice(D,D+U).toString("utf8").replace(/\0.*/,""),l=(x,D,U)=>h(f(x,D,U)),h=x=>x===null?null:new Date(x*1e3),f=(x,D,U)=>x[D]&128?i.parse(x.slice(D,D+U)):p(x,D,U),d=x=>isNaN(x)?null:x,p=(x,D,U)=>d(parseInt(x.slice(D,D+U).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},m=(x,D,U,W)=>W===null?!1:W>y[U]||W<0?(i.encode(W,x.slice(D,D+U)),!0):(w(x,D,U,W),!1),w=(x,D,U,W)=>x.write(T(W,U),D,U,"ascii"),T=(x,D)=>F(Math.floor(x).toString(8),D),F=(x,D)=>(x.length===D-1?x:new Array(D-x.length-1).join("0")+x+" ")+"\0",I=(x,D,U,W)=>W===null?!1:m(x,D,U,W.getTime()/1e3),R=new Array(156).join("\0"),M=(x,D,U,W)=>W===null?!1:(x.write(W+R,D,U,"utf8"),W.length!==Buffer.byteLength(W)||W.length>U);e.exports=a}),cg=me((t,e)=>{"use strict";ee();var r=Ma(),n=_e("path"),i=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/"+n.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+`
65
65
  `,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}};i.parse=(u,c,l)=>new i(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(`
66
- `).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=i}),ja=me((t,e)=>{ee(),e.exports=r=>{let n=r.length-1,i=-1;for(;n>-1&&r.charAt(n)==="/";)i=n,n--;return i===-1?r:r.slice(0,i)}}),ag=me((t,e)=>{"use strict";ee(),e.exports=r=>class extends r{warn(n,i,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=i instanceof Error&&i.code||n,s.tarCode=n,!this.strict&&s.recoverable!==!1?(i instanceof Error&&(s=Object.assign(i,s),i=i.message),this.emit("warn",s.tarCode,i,s)):i instanceof Error?this.emit("error",Object.assign(i,s)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),s))}}}),Vk=me((t,e)=>{"use strict";ee();var r=["|","<",">","?",":"],n=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),i=new Map(r.map((o,a)=>[o,n[a]])),s=new Map(n.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,u)=>a.split(u).join(i.get(u)),o),decode:o=>n.reduce((a,u)=>a.split(u).join(s.get(u)),o)}}),Yk=me((t,e)=>{ee();var{isAbsolute:r,parse:n}=_e("path").win32;e.exports=i=>{let s="",o=n(i);for(;r(i)||o.root;){let a=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":o.root;i=i.slice(a.length),s+=a,o=n(i)}return[s,i]}}),mH=me((t,e)=>{"use strict";ee(),e.exports=(r,n,i)=>(r&=4095,i&&(r=(r|384)&-19),n&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),Kk=me((t,e)=>{"use strict";ee();var r=ig(),n=og(),i=Ma(),s=_e("fs"),o=_e("path"),a=Na(),u=ja(),c=(_,v)=>v?(_=a(_).replace(/^\.(\/|$)/,""),u(v)+"/"+_):a(_),l=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),m=Symbol("header"),w=Symbol("read"),T=Symbol("lstat"),F=Symbol("onlstat"),I=Symbol("onread"),R=Symbol("onreadlink"),M=Symbol("openfile"),x=Symbol("onopenfile"),D=Symbol("close"),U=Symbol("mode"),W=Symbol("awaitDrain"),N=Symbol("ondrain"),V=Symbol("prefix"),Q=Symbol("hadError"),te=ag(),j=Vk(),P=Yk(),L=mH(),G=te(class extends r{constructor(_,v){if(v=v||{},super(v),typeof _!="string")throw new TypeError("path is required");this.path=a(_),this.portable=!!v.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=v.maxReadSize||l,this.linkCache=v.linkCache||new Map,this.statCache=v.statCache||new Map,this.preservePaths=!!v.preservePaths,this.cwd=a(v.cwd||process.cwd()),this.strict=!!v.strict,this.noPax=!!v.noPax,this.noMtime=!!v.noMtime,this.mtime=v.mtime||null,this.prefix=v.prefix?a(v.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 v.onwarn=="function"&&this.on("warn",v.onwarn);let k=!1;if(!this.preservePaths){let[S,H]=P(this.path);S&&(this.path=H,k=S)}this.win32=!!v.win32||process.platform==="win32",this.win32&&(this.path=j.decode(this.path.replace(/\\/g,"/")),_=_.replace(/\\/g,"/")),this.absolute=a(v.absolute||o.resolve(this.cwd,_)),this.path===""&&(this.path="./"),k&&this.warn("TAR_ENTRY_INFO",`stripping ${k} from absolute path`,{entry:this,path:k+this.path}),this.statCache.has(this.absolute)?this[F](this.statCache.get(this.absolute)):this[T]()}emit(_,...v){return _==="error"&&(this[Q]=!0),super.emit(_,...v)}[T](){s.lstat(this.absolute,(_,v)=>{if(_)return this.emit("error",_);this[F](v)})}[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[p]();default:return this.end()}}[U](_){return L(_,this.type==="Directory",this.portable)}[V](_){return c(_,this.prefix)}[m](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[V](this.path),linkpath:this.type==="Link"?this[V](this.linkpath):this.linkpath,mode:this[U](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 n({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[m](),this.end()}[p](){s.readlink(this.absolute,(_,v)=>{if(_)return this.emit("error",_);this[R](v)})}[R](_){this.linkpath=a(_),this[m](),this.end()}[y](_){this.type="Link",this.linkpath=a(o.relative(this.cwd,_)),this.stat.size=0,this[m](),this.end()}[f](){if(this.stat.nlink>1){let _=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(_)){let v=this.linkCache.get(_);if(v.indexOf(this.cwd)===0)return this[y](v)}this.linkCache.set(_,this.absolute)}if(this[m](),this.stat.size===0)return this.end();this[M]()}[M](){s.open(this.absolute,"r",(_,v)=>{if(_)return this.emit("error",_);this[x](v)})}[x](_){if(this.fd=_,this[Q])return this[D]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let v=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(v),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[w]()}[w](){let{fd:_,buf:v,offset:k,length:S,pos:H}=this;s.read(_,v,k,S,H,($,ne)=>{if($)return this[D](()=>this.emit("error",$));this[I](ne)})}[D](_){s.close(this.fd,_)}[I](_){if(_<=0&&this.remain>0){let k=new Error("encountered unexpected EOF");return k.path=this.absolute,k.syscall="read",k.code="EOF",this[D](()=>this.emit("error",k))}if(_>this.remain){let k=new Error("did not encounter expected EOF");return k.path=this.absolute,k.syscall="read",k.code="EOF",this[D](()=>this.emit("error",k))}if(_===this.remain)for(let k=_;k<this.length&&_<this.blockRemain;k++)this.buf[k+this.offset]=0,_++,this.remain++;let v=this.offset===0&&_===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+_);this.write(v)?this[N]():this[W](()=>this[N]())}[W](_){this.once("drain",_)}write(_){if(this.blockRemain<_.length){let v=new Error("writing more data than expected");return v.path=this.absolute,this.emit("error",v)}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{[T](){this[F](s.lstatSync(this.absolute))}[p](){this[R](s.readlinkSync(this.absolute))}[M](){this[x](s.openSync(this.absolute,"r"))}[w](){let _=!0;try{let{fd:v,buf:k,offset:S,length:H,pos:$}=this,ne=s.readSync(v,k,S,H,$);this[I](ne),_=!1}finally{if(_)try{this[D](()=>{})}catch{}}}[W](_){_()}[D](_){s.closeSync(this.fd),_()}},q=te(class extends r{constructor(_,v){v=v||{},super(v),this.preservePaths=!!v.preservePaths,this.portable=!!v.portable,this.strict=!!v.strict,this.noPax=!!v.noPax,this.noMtime=!!v.noMtime,this.readEntry=_,this.type=_.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=v.prefix||null,this.path=a(_.path),this.mode=this[U](_.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:v.mtime||_.mtime,this.atime=this.portable?null:_.atime,this.ctime=this.portable?null:_.ctime,this.linkpath=a(_.linkpath),typeof v.onwarn=="function"&&this.on("warn",v.onwarn);let k=!1;if(!this.preservePaths){let[S,H]=P(this.path);S&&(this.path=H,k=S)}this.remain=_.size,this.blockRemain=_.startBlockSize,this.header=new i({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}),k&&this.warn("TAR_ENTRY_INFO",`stripping ${k} from absolute path`,{entry:this,path:k+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({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)}[U](_){return L(_,this.type==="Directory",this.portable)}write(_){let v=_.length;if(v>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=v,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}),yH=me((t,e)=>{"use strict";ee(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),Zk=me((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++)i(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=n(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 n(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 i(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{yH()(r)}catch{}}),ug=me((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}},n=ig(),i=zk(),s=sg(),o=Kk(),a=o.Sync,u=o.Tar,c=Zk(),l=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),m=Symbol("processing"),w=Symbol("processJob"),T=Symbol("jobs"),F=Symbol("jobDone"),I=Symbol("addFSEntry"),R=Symbol("addTarEntry"),M=Symbol("stat"),x=Symbol("readdir"),D=Symbol("onreaddir"),U=Symbol("pipe"),W=Symbol("entry"),N=Symbol("entryOpt"),V=Symbol("writeEntryClass"),Q=Symbol("write"),te=Symbol("ondrain"),j=_e("fs"),P=_e("path"),L=ag(),G=Na(),Z=L(class extends n{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 i.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[T]=0,this.jobs=+g.jobs||4,this[m]=!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[R](g):this[I](g),this.flowing}[R](g){let _=G(P.resolve(this.cwd,g.path));if(!this.filter(g.path,g))g.resume();else{let v=new r(g.path,_,!1);v.entry=new u(g,this[N](v)),v.entry.on("end",k=>this[F](v)),this[T]+=1,this[d].push(v)}this[y]()}[I](g){let _=G(P.resolve(this.cwd,g));this[d].push(new r(g,_)),this[y]()}[M](g){g.pending=!0,this[T]+=1;let _=this.follow?"stat":"lstat";j[_](g.absolute,(v,k)=>{g.pending=!1,this[T]-=1,v?this.emit("error",v):this[h](g,k)})}[h](g,_){this.statCache.set(g.absolute,_),g.stat=_,this.filter(g.path,_)||(g.ignore=!0),this[y]()}[x](g){g.pending=!0,this[T]+=1,j.readdir(g.absolute,(_,v)=>{if(g.pending=!1,this[T]-=1,_)return this.emit("error",_);this[D](g,v)})}[D](g,_){this.readdirCache.set(g.absolute,_),g.readdir=_,this[y]()}[y](){if(!this[m]){this[m]=!0;for(let g=this[d].head;g!==null&&this[T]<this.jobs;g=g.next)if(this[w](g.value),g.value.ignore){let _=g.next;this[d].removeNode(g),g.next=_}this[m]=!1,this[f]&&!this[d].length&&this[T]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[F](g){this[d].shift(),this[T]-=1,this[y]()}[w](g){if(!g.pending){if(g.entry){g===this[p]&&!g.piped&&this[U](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[x](g),!g.readdir))){if(g.entry=this[W](g),!g.entry){g.ignore=!0;return}g===this[p]&&!g.piped&&this[U](g)}}}[N](g){return{onwarn:(_,v,k)=>this.warn(_,v,k),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[T]+=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[p]&&this[p].entry&&this[p].entry.resume()}[U](g){g.piped=!0,g.readdir&&g.readdir.forEach(k=>{let S=g.path,H=S==="./"?"":S.replace(/\/*$/,"/");this[I](H+k)});let _=g.entry,v=this.zip;v?_.on("data",k=>{v.write(k)||_.pause()}):_.on("data",k=>{super.write(k)||_.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))}[x](g,_){this[D](g,j.readdirSync(g.absolute))}[U](g){let _=g.entry,v=this.zip;g.readdir&&g.readdir.forEach(k=>{let S=g.path,H=S==="./"?"":S.replace(/\/*$/,"/");this[I](H+k)}),v?_.on("data",k=>{v.write(k)}):_.on("data",k=>{super[Q](k)})}};Z.Sync=q,e.exports=Z}),qa=me(t=>{"use strict";ee();var e=$k(),r=_e("events").EventEmitter,n=_e("fs"),i=n.writev;if(!i){let g=process.binding("fs"),_=g.FSReqWrap||g.FSReqCallback;i=(v,k,S,H)=>{let $=(Y,fe)=>H(Y,fe,k),ne=new _;ne.oncomplete=$,g.writeBuffers(v,k,S,ne)}}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"),p=Symbol("_mode"),y=Symbol("_needDrain"),m=Symbol("_onerror"),w=Symbol("_onopen"),T=Symbol("_onread"),F=Symbol("_onwrite"),I=Symbol("_open"),R=Symbol("_path"),M=Symbol("_pos"),x=Symbol("_queue"),D=Symbol("_read"),U=Symbol("_readSize"),W=Symbol("_reading"),N=Symbol("_remain"),V=Symbol("_size"),Q=Symbol("_write"),te=Symbol("_writing"),j=Symbol("_defaultFlag"),P=Symbol("_errored"),L=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[P]=!1,this[u]=typeof _.fd=="number"?_.fd:null,this[R]=g,this[U]=_.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[D]():this[I]()}get fd(){return this[u]}get path(){return this[R]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[I](){n.open(this[R],"r",(g,_)=>this[w](g,_))}[w](g,_){g?this[m](g):(this[u]=_,this.emit("open",_),this[D]())}[d](){return Buffer.allocUnsafe(Math.min(this[U],this[N]))}[D](){if(!this[W]){this[W]=!0;let g=this[d]();if(g.length===0)return process.nextTick(()=>this[T](null,0,g));n.read(this[u],g,0,g.length,null,(_,v,k)=>this[T](_,v,k))}}[T](g,_,v){this[W]=!1,g?this[m](g):this[f](_,v)&&this[D]()}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,n.close(g,_=>_?this.emit("error",_):this.emit("close"))}}[m](g){this[W]=!0,this[o](),this.emit("error",g)}[f](g,_){let v=!1;return this[N]-=g,g>0&&(v=super.write(g<_.length?_.slice(0,g):_)),(g===0||this[N]<=0)&&(v=!1,this[o](),super.end()),v}emit(g,_){switch(g){case"prefinish":case"finish":break;case"drain":typeof this[u]=="number"&&this[D]();break;case"error":return this[P]?void 0:(this[P]=!0,super.emit(g,_));default:return super.emit(g,_)}}},G=class extends L{[I](){let g=!0;try{this[w](null,n.openSync(this[R],"r")),g=!1}finally{g&&this[o]()}}[D](){let g=!0;try{if(!this[W]){this[W]=!0;do{let _=this[d](),v=_.length===0?0:n.readSync(this[u],_,0,_.length,null);if(!this[f](v,_))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,n.closeSync(g),this.emit("close")}}},Z=class extends r{constructor(g,_){_=_||{},super(_),this.readable=!1,this.writable=!0,this[P]=!1,this[te]=!1,this[a]=!1,this[y]=!1,this[x]=[],this[R]=g,this[u]=typeof _.fd=="number"?_.fd:null,this[p]=_.mode===void 0?438:_.mode,this[M]=typeof _.start=="number"?_.start:null,this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0;let v=this[M]!==null?"r+":"w";this[j]=_.flags===void 0,this[l]=this[j]?v:_.flags,this[u]===null&&this[I]()}emit(g,_){if(g==="error"){if(this[P])return;this[P]=!0}return super.emit(g,_)}get fd(){return this[u]}get path(){return this[R]}[m](g){this[o](),this[te]=!0,this.emit("error",g)}[I](){n.open(this[R],this[l],this[p],(g,_)=>this[w](g,_))}[w](g,_){this[j]&&this[l]==="r+"&&g&&g.code==="ENOENT"?(this[l]="w",this[I]()):g?this[m](g):(this[u]=_,this.emit("open",_),this[h]())}end(g,_){return g&&this.write(g,_),this[a]=!0,!this[te]&&!this[x].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[x].length?(this[x].push(g),this[y]=!0,!1):(this[te]=!0,this[Q](g),!0)}[Q](g){n.write(this[u],g,0,g.length,this[M],(_,v)=>this[F](_,v))}[F](g,_){g?this[m](g):(this[M]!==null&&(this[M]+=_),this[x].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[x].length===0)this[a]&&this[F](null,0);else if(this[x].length===1)this[Q](this[x].pop());else{let g=this[x];this[x]=[],i(this[u],g,this[M],(_,v)=>this[F](_,v))}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,n.close(g,_=>_?this.emit("error",_):this.emit("close"))}}},q=class extends Z{[I](){let g;if(this[j]&&this[l]==="r+")try{g=n.openSync(this[R],this[l],this[p])}catch(_){if(_.code==="ENOENT")return this[l]="w",this[I]();throw _}else g=n.openSync(this[R],this[l],this[p]);this[w](null,g)}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,n.closeSync(g),this.emit("close")}}[Q](g){let _=!0;try{this[F](null,n.writeSync(this[u],g,0,g.length,this[M])),_=!1}finally{if(_)try{this[o]()}catch{}}}};t.ReadStream=L,t.ReadStreamSync=G,t.WriteStream=Z,t.WriteStreamSync=q}),cg=me((t,e)=>{"use strict";ee();var r=ag(),n=Ma(),i=_e("events"),s=Zk(),o=1024*1024,a=sg(),u=og(),c=zk(),{nextTick:l}=_e("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),m=Symbol("processEntry"),w=Symbol("extendedHeader"),T=Symbol("globalExtendedHeader"),F=Symbol("meta"),I=Symbol("emitMeta"),R=Symbol("buffer"),M=Symbol("queue"),x=Symbol("ended"),D=Symbol("emittedEnd"),U=Symbol("emit"),W=Symbol("unzip"),N=Symbol("consumeChunk"),V=Symbol("consumeChunkSub"),Q=Symbol("consumeBody"),te=Symbol("consumeMeta"),j=Symbol("consumeHeader"),P=Symbol("consuming"),L=Symbol("bufferConcat"),G=Symbol("maybeEnd"),Z=Symbol("writing"),q=Symbol("aborted"),g=Symbol("onDone"),_=Symbol("sawValidEntry"),v=Symbol("sawNullBlock"),k=Symbol("sawEOF"),S=Symbol("closeStream"),H=$=>!0;e.exports=r(class extends i{constructor($){$=$||{},super($),this.file=$.file||"",this[_]=null,this.on(g,ne=>{(this[f]==="begin"||this[_]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),$.ondone?this.on(g,$.ondone):this.on(g,ne=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!$.strict,this.maxMetaEntrySize=$.maxMetaEntrySize||o,this.filter=typeof $.filter=="function"?$.filter:H,this.writable=!0,this.readable=!1,this[M]=new s,this[R]=null,this[p]=null,this[d]=null,this[f]="begin",this[F]="",this[w]=null,this[T]=null,this[x]=!1,this[W]=null,this[q]=!1,this[v]=!1,this[k]=!1,this.on("end",()=>this[S]()),typeof $.onwarn=="function"&&this.on("warn",$.onwarn),typeof $.onentry=="function"&&this.on("entry",$.onentry)}[j]($,ne){this[_]===null&&(this[_]=!1);let Y;try{Y=new n($,ne,this[w],this[T])}catch(fe){return this.warn("TAR_ENTRY_INVALID",fe)}if(Y.nullBlock)this[v]?(this[k]=!0,this[f]==="begin"&&(this[f]="header"),this[U]("eof")):(this[v]=!0,this[U]("nullBlock"));else if(this[v]=!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 fe=Y.type;if(/^(Symbolic)?Link$/.test(fe)&&!Y.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:Y});else if(!/^(Symbolic)?Link$/.test(fe)&&Y.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:Y});else{let J=this[d]=new a(Y,this[w],this[T]);if(!this[_])if(J.remain){let E=()=>{J.invalid||(this[_]=!0)};J.on("end",E)}else this[_]=!0;J.meta?J.size>this.maxMetaEntrySize?(J.ignore=!0,this[U]("ignoredEntry",J),this[f]="ignore",J.resume()):J.size>0&&(this[F]="",J.on("data",E=>this[F]+=E),this[f]="meta"):(this[w]=null,J.ignore=J.ignore||!this.filter(J.path,J),J.ignore?(this[U]("ignoredEntry",J),this[f]=J.remain?"ignore":"header",J.resume()):(J.remain?this[f]="body":(this[f]="header",J.end()),this[p]?this[M].push(J):(this[M].push(J),this[y]())))}}}[S](){l(()=>this.emit("close"))}[m]($){let ne=!0;return $?Array.isArray($)?this.emit.apply(this,$):(this[p]=$,this.emit("entry",$),$.emittedEnd||($.on("end",Y=>this[y]()),ne=!1)):(this[p]=null,ne=!1),ne}[y](){do;while(this[m](this[M].shift()));if(!this[M].length){let $=this[p];!$||$.flowing||$.size===$.remain?this[Z]||this.emit("drain"):$.once("drain",ne=>this.emit("drain"))}}[Q]($,ne){let Y=this[d],fe=Y.blockRemain,J=fe>=$.length&&ne===0?$:$.slice(ne,ne+fe);return Y.write(J),Y.blockRemain||(this[f]="header",this[d]=null,Y.end()),J.length}[te]($,ne){let Y=this[d],fe=this[Q]($,ne);return this[d]||this[I](Y),fe}[U]($,ne,Y){!this[M].length&&!this[p]?this.emit($,ne,Y):this[M].push([$,ne,Y])}[I]($){switch(this[U]("meta",this[F]),$.type){case"ExtendedHeader":case"OldExtendedHeader":this[w]=u.parse(this[F],this[w],!1);break;case"GlobalExtendedHeader":this[T]=u.parse(this[F],this[T],!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[R]&&($=Buffer.concat([this[R],$]),this[R]=null),$.length<h.length)return this[R]=$,!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[x];this[x]=!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[x]=!0,this[N]()}),this[Z]=!0;let fe=this[W][Y?"end":"write"]($);return this[Z]=!1,fe}}this[Z]=!0,this[W]?this[W].write($):this[N]($),this[Z]=!1;let ne=this[M].length?!1:this[p]?this[p].flowing:!0;return!ne&&!this[M].length&&this[p].once("drain",Y=>this.emit("drain")),ne}[L]($){$&&!this[q]&&(this[R]=this[R]?Buffer.concat([this[R],$]):$)}[G](){if(this[x]&&!this[D]&&!this[q]&&!this[P]){this[D]=!0;let $=this[d];if($&&$.blockRemain){let ne=this[R]?this[R].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${$.blockRemain} more bytes, only ${ne} available)`,{entry:$}),this[R]&&$.write(this[R]),$.end()}this[U](g)}}[N]($){if(this[P])this[L]($);else if(!$&&!this[R])this[G]();else{if(this[P]=!0,this[R]){this[L]($);let ne=this[R];this[R]=null,this[V](ne)}else this[V]($);for(;this[R]&&this[R].length>=512&&!this[q]&&!this[k];){let ne=this[R];this[R]=null,this[V](ne)}this[P]=!1}(!this[R]||this[x])&&this[G]()}[V]($){let ne=0,Y=$.length;for(;ne+512<=Y&&!this[q]&&!this[k];)switch(this[f]){case"begin":case"header":this[j]($,ne),ne+=512;break;case"ignore":case"body":ne+=this[Q]($,ne);break;case"meta":ne+=this[te]($,ne);break;default:throw new Error("invalid state: "+this[f])}ne<Y&&(this[R]?this[R]=Buffer.concat([$.slice(ne),this[R]]):this[R]=$.slice(ne))}end($){this[q]||(this[W]?this[W].end($):(this[x]=!0,this.write($)))}})}),lg=me((t,e)=>{"use strict";ee();var r=Ba(),n=cg(),i=_e("fs"),s=qa(),o=_e("path"),a=ja();e.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let m=r(d);if(m.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!m.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&c(m,p),m.noResume||u(m),m.file&&m.sync?l(m):m.file?h(m,y):f(m)};var u=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},c=(d,p)=>{let y=new Map(p.map(T=>[a(T),!0])),m=d.filter,w=(T,F)=>{let I=F||o.parse(T).root||".",R=T===I?!1:y.has(T)?y.get(T):w(o.dirname(T),I);return y.set(T,R),R};d.filter=m?(T,F)=>m(T,F)&&w(a(T)):T=>w(a(T))},l=d=>{let p=f(d),y=d.file,m=!0,w;try{let T=i.statSync(y),F=d.maxReadSize||16*1024*1024;if(T.size<F)p.end(i.readFileSync(y));else{let I=0,R=Buffer.allocUnsafe(F);for(w=i.openSync(y,"r");I<T.size;){let M=i.readSync(w,R,0,F,I);I+=M,p.write(R.slice(0,M))}p.end()}m=!1}finally{if(m&&w)try{i.closeSync(w)}catch{}}},h=(d,p)=>{let y=new n(d),m=d.maxReadSize||16*1024*1024,w=d.file,T=new Promise((F,I)=>{y.on("error",I),y.on("end",F),i.stat(w,(R,M)=>{if(R)I(R);else{let x=new s.ReadStream(w,{readSize:m,size:M.size});x.on("error",I),x.pipe(y)}})});return p?T.then(p,p):T},f=d=>new n(d)}),gH=me((t,e)=>{"use strict";ee();var r=Ba(),n=ug(),i=qa(),s=lg(),o=_e("path");e.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let m=r(d);if(m.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!m.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.file&&m.sync?a(m,p):m.file?u(m,p,y):m.sync?h(m,p):f(m,p)};var a=(d,p)=>{let y=new n.Sync(d),m=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(m),c(y,p)},u=(d,p,y)=>{let m=new n(d),w=new i.WriteStream(d.file,{mode:d.mode||438});m.pipe(w);let T=new Promise((F,I)=>{w.on("error",I),w.on("close",F),m.on("error",I)});return l(m,p),y?T.then(y,y):T},c=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:m=>d.add(m)}):d.add(y)}),d.end()},l=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:m=>d.add(m)}).then(m=>l(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return c(y,p),y},f=(d,p)=>{let y=new n(d);return l(y,p),y}}),Jk=me((t,e)=>{"use strict";ee();var r=Ba(),n=ug(),i=_e("fs"),s=qa(),o=lg(),a=_e("path"),u=Ma();e.exports=(p,y,m)=>{let w=r(p);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,m)};var c=(p,y)=>{let m=new n.Sync(p),w=!0,T,F;try{try{T=i.openSync(p.file,"r+")}catch(M){if(M.code==="ENOENT")T=i.openSync(p.file,"w+");else throw M}let I=i.fstatSync(T),R=Buffer.alloc(512);e:for(F=0;F<I.size;F+=512){for(let D=0,U=0;D<512;D+=U){if(U=i.readSync(T,R,D,R.length-D,F+D),F===0&&R[0]===31&&R[1]===139)throw new Error("cannot append to compressed archives");if(!U)break e}let M=new u(R);if(!M.cksumValid)break;let x=512*Math.ceil(M.size/512);if(F+x+512>I.size)break;F+=x,p.mtimeCache&&p.mtimeCache.set(M.path,M.mtime)}w=!1,l(p,m,F,T,y)}finally{if(w)try{i.closeSync(T)}catch{}}},l=(p,y,m,w,T)=>{let F=new s.WriteStreamSync(p.file,{fd:w,start:m});y.pipe(F),f(y,T)},h=(p,y,m)=>{y=Array.from(y);let w=new n(p),T=(I,R,M)=>{let x=(V,Q)=>{V?i.close(I,te=>M(V)):M(null,Q)},D=0;if(R===0)return x(null,0);let U=0,W=Buffer.alloc(512),N=(V,Q)=>{if(V)return x(V);if(U+=Q,U<512&&Q)return i.read(I,W,U,W.length-U,D+U,N);if(D===0&&W[0]===31&&W[1]===139)return x(new Error("cannot append to compressed archives"));if(U<512)return x(null,D);let te=new u(W);if(!te.cksumValid)return x(null,D);let j=512*Math.ceil(te.size/512);if(D+j+512>R||(D+=j+512,D>=R))return x(null,D);p.mtimeCache&&p.mtimeCache.set(te.path,te.mtime),U=0,i.read(I,W,0,512,D,N)};i.read(I,W,0,512,D,N)},F=new Promise((I,R)=>{w.on("error",R);let M="r+",x=(D,U)=>{if(D&&D.code==="ENOENT"&&M==="r+")return M="w+",i.open(p.file,M,x);if(D)return R(D);i.fstat(U,(W,N)=>{if(W)return i.close(U,()=>R(W));T(U,N.size,(V,Q)=>{if(V)return R(V);let te=new s.WriteStream(p.file,{fd:U,start:Q});w.pipe(te),te.on("error",R),te.on("close",I),d(w,y)})})};i.open(p.file,M,x)});return m?F.then(m,m):F},f=(p,y)=>{y.forEach(m=>{m.charAt(0)==="@"?o({file:a.resolve(p.cwd,m.slice(1)),sync:!0,noResume:!0,onentry:w=>p.add(w)}):p.add(m)}),p.end()},d=(p,y)=>{for(;y.length;){let m=y.shift();if(m.charAt(0)==="@")return o({file:a.resolve(p.cwd,m.slice(1)),noResume:!0,onentry:w=>p.add(w)}).then(w=>d(p,y));p.add(m)}p.end()}}),_H=me((t,e)=>{"use strict";ee();var r=Ba(),n=Jk();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),i(u),n(u,o,a)};var i=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)}}),bH=me((t,e)=>{ee();var{promisify:r}=_e("util"),n=_e("fs"),i=s=>{if(!s)s={mode:511,fs:n};else if(typeof s=="object")s={mode:511,fs:n,...s};else if(typeof s=="number")s={mode:s,fs:n};else if(typeof s=="string")s={mode:parseInt(s,8),fs:n};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||n.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||n.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||n.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||n.mkdirSync,s};e.exports=i}),vH=me((t,e)=>{ee();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=_e("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=n(o),r==="win32"){let a=/[*|"<>?:]/,{root:u}=i(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}),EH=me((t,e)=>{ee();var{dirname:r}=_e("path"),n=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(u=>u.isDirectory()?a:void 0,u=>u.code==="ENOENT"?n(s,r(o),o):void 0),i=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(u){return u.code==="ENOENT"?i(s,r(o),o):void 0}};e.exports={findMade:n,findMadeSync:i}}),Xk=me((t,e)=>{ee();var{dirname:r}=_e("path"),n=(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 n(u,o).then(l=>n(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})})},i=(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 i(s,o,i(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:n,mkdirpManualSync:i}}),wH=me((t,e)=>{ee();var{dirname:r}=_e("path"),{findMade:n,findMadeSync:i}=EH(),{mkdirpManual:s,mkdirpManualSync:o}=Xk(),a=(c,l)=>(l.recursive=!0,r(c)===c?l.mkdirAsync(c,l):n(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=i(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}}),xH=me((t,e)=>{ee();var r=_e("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),s=+i[0]>10||+i[0]==10&&+i[1]>=12,o=s?u=>u.mkdir===r.mkdir:()=>!1,a=s?u=>u.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),SH=me((t,e)=>{ee();var r=bH(),n=vH(),{mkdirpNative:i,mkdirpNativeSync:s}=wH(),{mkdirpManual:o,mkdirpManualSync:a}=Xk(),{useNative:u,useNativeSync:c}=xH(),l=(f,d)=>(f=n(f),d=r(d),u(d)?i(f,d):o(f,d)),h=(f,d)=>(f=n(f),d=r(d),c(d)?s(f,d):a(f,d));l.sync=h,l.native=(f,d)=>i(n(f),r(d)),l.manual=(f,d)=>o(n(f),r(d)),l.nativeSync=(f,d)=>s(n(f),r(d)),l.manualSync=(f,d)=>a(n(f),r(d)),e.exports=l}),AH=me((t,e)=>{"use strict";ee();var r=_e("fs"),n=_e("path"),i=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,I,R)=>{try{return r[s](F,I,R)}catch(M){if(M.code!=="ENOENT")throw M}},u=(F,I,R)=>{try{return r.chownSync(F,I,R)}catch(M){if(M.code!=="ENOENT")throw M}},c=o?(F,I,R,M)=>x=>{!x||x.code!=="EISDIR"?M(x):r.chown(F,I,R,M)}:(F,I,R,M)=>M,l=o?(F,I,R)=>{try{return a(F,I,R)}catch(M){if(M.code!=="EISDIR")throw M;u(F,I,R)}}:(F,I,R)=>a(F,I,R),h=process.version,f=(F,I,R)=>r.readdir(F,I,R),d=(F,I)=>r.readdirSync(F,I);/^v4\./.test(h)&&(f=(F,I,R)=>r.readdir(F,R));var p=(F,I,R,M)=>{r[i](F,I,R,c(F,I,R,x=>{M(x&&x.code!=="ENOENT"?x:null)}))},y=(F,I,R,M,x)=>{if(typeof I=="string")return r.lstat(n.resolve(F,I),(D,U)=>{if(D)return x(D.code!=="ENOENT"?D:null);U.name=I,y(F,U,R,M,x)});if(I.isDirectory())m(n.resolve(F,I.name),R,M,D=>{if(D)return x(D);let U=n.resolve(F,I.name);p(U,R,M,x)});else{let D=n.resolve(F,I.name);p(D,R,M,x)}},m=(F,I,R,M)=>{f(F,{withFileTypes:!0},(x,D)=>{if(x){if(x.code==="ENOENT")return M();if(x.code!=="ENOTDIR"&&x.code!=="ENOTSUP")return M(x)}if(x||!D.length)return p(F,I,R,M);let U=D.length,W=null,N=V=>{if(!W){if(V)return M(W=V);if(--U===0)return p(F,I,R,M)}};D.forEach(V=>y(F,V,I,R,N))})},w=(F,I,R,M)=>{if(typeof I=="string")try{let x=r.lstatSync(n.resolve(F,I));x.name=I,I=x}catch(x){if(x.code==="ENOENT")return;throw x}I.isDirectory()&&T(n.resolve(F,I.name),R,M),l(n.resolve(F,I.name),R,M)},T=(F,I,R)=>{let M;try{M=d(F,{withFileTypes:!0})}catch(x){if(x.code==="ENOENT")return;if(x.code==="ENOTDIR"||x.code==="ENOTSUP")return l(F,I,R);throw x}return M&&M.length&&M.forEach(x=>w(F,x,I,R)),l(F,I,R)};e.exports=m,m.sync=T}),DH=me((t,e)=>{"use strict";ee();var r=SH(),n=_e("fs"),i=_e("path"),s=AH(),o=Na(),a=class extends Error{constructor(y,m){super("Cannot extract through symbolic link"),this.path=m,this.symlink=y}get name(){return"SylinkError"}},u=class extends Error{constructor(y,m){super(m+": Cannot cd into '"+y+"'"),this.path=y,this.code=m}get name(){return"CwdError"}},c=(y,m)=>y.get(o(m)),l=(y,m,w)=>y.set(o(m),w),h=(y,m)=>{n.stat(y,(w,T)=>{(w||!T.isDirectory())&&(w=new u(y,w&&w.code||"ENOTDIR")),m(w)})};e.exports=(y,m,w)=>{y=o(y);let T=m.umask,F=m.mode|448,I=(F&T)!==0,R=m.uid,M=m.gid,x=typeof R=="number"&&typeof M=="number"&&(R!==m.processUid||M!==m.processGid),D=m.preserve,U=m.unlink,W=m.cache,N=o(m.cwd),V=(te,j)=>{te?w(te):(l(W,y,!0),j&&x?s(j,R,M,P=>V(P)):I?n.chmod(y,F,w):w())};if(W&&c(W,y)===!0)return V();if(y===N)return h(y,V);if(D)return r(y,{mode:F}).then(te=>V(null,te),V);let Q=o(i.relative(N,y)).split("/");f(N,Q,F,W,U,N,null,V)};var f=(y,m,w,T,F,I,R,M)=>{if(!m.length)return M(null,R);let x=m.shift(),D=o(i.resolve(y+"/"+x));if(c(T,D))return f(D,m,w,T,F,I,R,M);n.mkdir(D,w,d(D,m,w,T,F,I,R,M))},d=(y,m,w,T,F,I,R,M)=>x=>{x?n.lstat(y,(D,U)=>{if(D)D.path=D.path&&o(D.path),M(D);else if(U.isDirectory())f(y,m,w,T,F,I,R,M);else if(F)n.unlink(y,W=>{if(W)return M(W);n.mkdir(y,w,d(y,m,w,T,F,I,R,M))});else{if(U.isSymbolicLink())return M(new a(y,y+"/"+m.join("/")));M(x)}}):(R=R||y,f(y,m,w,T,F,I,R,M))},p=y=>{let m=!1,w="ENOTDIR";try{m=n.statSync(y).isDirectory()}catch(T){w=T.code}finally{if(!m)throw new u(y,w)}};e.exports.sync=(y,m)=>{y=o(y);let w=m.umask,T=m.mode|448,F=(T&w)!==0,I=m.uid,R=m.gid,M=typeof I=="number"&&typeof R=="number"&&(I!==m.processUid||R!==m.processGid),x=m.preserve,D=m.unlink,U=m.cache,W=o(m.cwd),N=te=>{l(U,y,!0),te&&M&&s.sync(te,I,R),F&&n.chmodSync(y,T)};if(U&&c(U,y)===!0)return N();if(y===W)return p(W),N();if(x)return N(r.sync(y,T));let V=o(i.relative(W,y)).split("/"),Q=null;for(let te=V.shift(),j=W;te&&(j+="/"+te);te=V.shift())if(j=o(i.resolve(j)),!c(U,j))try{n.mkdirSync(j,T),Q=Q||j,l(U,j,!0)}catch{let P=n.lstatSync(j);if(P.isDirectory()){l(U,j,!0);continue}else if(D){n.unlinkSync(j),n.mkdirSync(j,T),Q=Q||j,l(U,j,!0);continue}else if(P.isSymbolicLink())return new a(j,j+"/"+V.join("/"))}return N(Q)}}),Qk=me((t,e)=>{ee();var r=Object.create(null),{hasOwnProperty:n}=Object.prototype;e.exports=i=>(n.call(r,i)||(r[i]=i.normalize("NFKD")),r[i])}),CH=me((t,e)=>{ee();var r=_e("assert"),n=Qk(),i=ja(),{join:s}=_e("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let u=new Map,c=new Map,l=m=>m.split("/").slice(0,-1).reduce((w,T)=>(w.length&&(T=s(w[w.length-1],T)),w.push(T||"/"),w),[]),h=new Set,f=m=>{let w=c.get(m);if(!w)throw new Error("function does not have any path reservations");return{paths:w.paths.map(T=>u.get(T)),dirs:[...w.dirs].map(T=>u.get(T))}},d=m=>{let{paths:w,dirs:T}=f(m);return w.every(F=>F[0]===m)&&T.every(F=>F[0]instanceof Set&&F[0].has(m))},p=m=>h.has(m)||!d(m)?!1:(h.add(m),m(()=>y(m)),!0),y=m=>{if(!h.has(m))return!1;let{paths:w,dirs:T}=c.get(m),F=new Set;return w.forEach(I=>{let R=u.get(I);r.equal(R[0],m),R.length===1?u.delete(I):(R.shift(),typeof R[0]=="function"?F.add(R[0]):R[0].forEach(M=>F.add(M)))}),T.forEach(I=>{let R=u.get(I);r(R[0]instanceof Set),R[0].size===1&&R.length===1?u.delete(I):R[0].size===1?(R.shift(),F.add(R[0])):R[0].delete(m)}),h.delete(m),F.forEach(I=>p(I)),!0};return{check:d,reserve:(m,w)=>{m=a?["win32 parallelization disabled"]:m.map(F=>n(i(s(F))).toLowerCase());let T=new Set(m.map(F=>l(F)).reduce((F,I)=>F.concat(I)));return c.set(w,{dirs:T,paths:m}),m.forEach(F=>{let I=u.get(F);I?I.push(w):u.set(F,[w])}),T.forEach(F=>{let I=u.get(F);I?I[I.length-1]instanceof Set?I[I.length-1].add(w):I.push(new Set([w])):u.set(F,[new Set([w])])}),p(w)}}}}),RH=me((t,e)=>{ee();var r=process.env.__FAKE_PLATFORM__||process.platform,n=r==="win32",i=global.__FAKE_TESTING_FS__||_e("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:u=0}=i.constants,c=n&&!!u,l=512*1024,h=u|o|s|a;e.exports=c?f=>f<l?h:"w":()=>"w"}),eT=me((t,e)=>{"use strict";ee();var r=_e("assert"),n=cg(),i=_e("fs"),s=qa(),o=_e("path"),a=DH(),u=Vk(),c=CH(),l=Yk(),h=Na(),f=ja(),d=Qk(),p=Symbol("onEntry"),y=Symbol("checkFs"),m=Symbol("checkFs2"),w=Symbol("pruneCache"),T=Symbol("isReusable"),F=Symbol("makeFs"),I=Symbol("file"),R=Symbol("directory"),M=Symbol("link"),x=Symbol("symlink"),D=Symbol("hardlink"),U=Symbol("unsupported"),W=Symbol("checkPath"),N=Symbol("mkdir"),V=Symbol("onError"),Q=Symbol("pending"),te=Symbol("pend"),j=Symbol("unpend"),P=Symbol("ended"),L=Symbol("maybeClose"),G=Symbol("skip"),Z=Symbol("doChown"),q=Symbol("uid"),g=Symbol("gid"),_=Symbol("checkedCwd"),v=_e("crypto"),k=RH(),S=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,H=S==="win32",$=(b,z)=>{if(!H)return i.unlink(b,z);let re=b+".DELETE."+v.randomBytes(16).toString("hex");i.rename(b,re,ce=>{if(ce)return z(ce);i.unlink(re,z)})},ne=b=>{if(!H)return i.unlinkSync(b);let z=b+".DELETE."+v.randomBytes(16).toString("hex");i.renameSync(b,z),i.unlinkSync(z)},Y=(b,z,re)=>b===b>>>0?b:z===z>>>0?z:re,fe=b=>d(f(h(b))).toLowerCase(),J=(b,z)=>{z=fe(z);for(let re of b.keys()){let ce=fe(re);(ce===z||ce.indexOf(z+"/")===0)&&b.delete(re)}},E=b=>{for(let z of b.keys())b.delete(z)},B=class extends n{constructor(b){if(b||(b={}),b.ondone=z=>{this[P]=!0,this[L]()},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[P]=!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||H,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[p](z))}warn(b,z,re={}){return(b==="TAR_BAD_ARCHIVE"||b==="TAR_ABORT")&&(re.recoverable=!1),super.warn(b,z,re)}[L](){this[P]&&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("..")||H&&/^[a-z]:\.\.$/i.test(re[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:b,path:z}),!1;let[ce,ye]=l(z);ce&&(b.path=ye,this.warn("TAR_ENTRY_INFO",`stripping ${ce} 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}[p](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[U](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)}[I](b,z){let re=b.mode&4095||this.fmode,ce=new s.WriteStream(b.absolute,{flags:k(b.size),mode:re,autoClose:!1});ce.on("error",Se=>{ce.fd&&i.close(ce.fd,()=>{}),ce.write=()=>!0,this[V](Se,b),z()});let ye=1,Ae=Se=>{if(Se){ce.fd&&i.close(ce.fd,()=>{}),this[V](Se,b),z();return}--ye===0&&i.close(ce.fd,ze=>{ze?this[V](ze,b):this[j](),z()})};ce.on("finish",Se=>{let ze=b.absolute,ir=ce.fd;if(b.mtime&&!this.noMtime){ye++;let sr=b.atime||new Date,wo=b.mtime;i.futimes(ir,sr,wo,xo=>xo?i.utimes(ze,sr,wo,vh=>Ae(vh&&xo)):Ae())}if(this[Z](b)){ye++;let sr=this[q](b),wo=this[g](b);i.fchown(ir,sr,wo,xo=>xo?i.chown(ze,sr,wo,vh=>Ae(vh&&xo)):Ae())}Ae()});let De=this.transform&&this.transform(b)||b;De!==b&&(De.on("error",Se=>{this[V](Se,b),z()}),b.pipe(De)),De.pipe(ce)}[R](b,z){let re=b.mode&4095||this.dmode;this[N](b.absolute,re,ce=>{if(ce){this[V](ce,b),z();return}let ye=1,Ae=De=>{--ye===0&&(z(),this[j](),b.resume())};b.mtime&&!this.noMtime&&(ye++,i.utimes(b.absolute,b.atime||new Date,b.mtime,Ae)),this[Z](b)&&(ye++,i.chown(b.absolute,this[q](b),this[g](b),Ae)),Ae()})}[U](b){b.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${b.type}`,{entry:b}),b.resume()}[x](b,z){this[M](b,b.linkpath,"symlink",z)}[D](b,z){let re=h(o.resolve(this.cwd,b.linkpath));this[M](b,re,"link",z)}[te](){this[Q]++}[j](){this[Q]--,this[L]()}[G](b){this[j](),b.resume()}[T](b,z){return b.type==="File"&&!this.unlink&&z.isFile()&&z.nlink<=1&&!H}[y](b){this[te]();let z=[b.path];b.linkpath&&z.push(b.linkpath),this.reservations.reserve(z,re=>this[m](b,re))}[w](b){b.type==="SymbolicLink"?E(this.dirCache):b.type!=="Directory"&&J(this.dirCache,b.absolute)}[m](b,z){this[w](b);let re=De=>{this[w](b),z(De)},ce=()=>{this[N](this.cwd,this.dmode,De=>{if(De){this[V](De,b),re();return}this[_]=!0,ye()})},ye=()=>{if(b.absolute!==this.cwd){let De=h(o.dirname(b.absolute));if(De!==this.cwd)return this[N](De,this.dmode,Se=>{if(Se){this[V](Se,b),re();return}Ae()})}Ae()},Ae=()=>{i.lstat(b.absolute,(De,Se)=>{if(Se&&(this.keep||this.newer&&Se.mtime>b.mtime)){this[G](b),re();return}if(De||this[T](b,Se))return this[F](null,b,re);if(Se.isDirectory()){if(b.type==="Directory"){let ze=!this.noChmod&&b.mode&&(Se.mode&4095)!==b.mode,ir=sr=>this[F](sr,b,re);return ze?i.chmod(b.absolute,b.mode,ir):ir()}if(b.absolute!==this.cwd)return i.rmdir(b.absolute,ze=>this[F](ze,b,re))}if(b.absolute===this.cwd)return this[F](null,b,re);$(b.absolute,ze=>this[F](ze,b,re))})};this[_]?ye():ce()}[F](b,z,re){if(b){this[V](b,z),re();return}switch(z.type){case"File":case"OldFile":case"ContiguousFile":return this[I](z,re);case"Link":return this[D](z,re);case"SymbolicLink":return this[x](z,re);case"Directory":case"GNUDumpDir":return this[R](z,re)}}[M](b,z,re,ce){i[re](z,b.absolute,ye=>{ye?this[V](ye,b):(this[j](),b.resume()),ce()})}},C=b=>{try{return[null,b()]}catch(z){return[z,null]}},X=class extends B{[F](b,z){return super[F](b,z,()=>{})}[y](b){if(this[w](b),!this[_]){let ye=this[N](this.cwd,this.dmode);if(ye)return this[V](ye,b);this[_]=!0}if(b.absolute!==this.cwd){let ye=h(o.dirname(b.absolute));if(ye!==this.cwd){let Ae=this[N](ye,this.dmode);if(Ae)return this[V](Ae,b)}}let[z,re]=C(()=>i.lstatSync(b.absolute));if(re&&(this.keep||this.newer&&re.mtime>b.mtime))return this[G](b);if(z||this[T](b,re))return this[F](null,b);if(re.isDirectory()){if(b.type==="Directory"){let Ae=!this.noChmod&&b.mode&&(re.mode&4095)!==b.mode,[De]=Ae?C(()=>{i.chmodSync(b.absolute,b.mode)}):[];return this[F](De,b)}let[ye]=C(()=>i.rmdirSync(b.absolute));this[F](ye,b)}let[ce]=b.absolute===this.cwd?[]:C(()=>ne(b.absolute));this[F](ce,b)}[I](b,z){let re=b.mode&4095||this.fmode,ce=De=>{let Se;try{i.closeSync(ye)}catch(ze){Se=ze}(De||Se)&&this[V](De||Se,b),z()},ye;try{ye=i.openSync(b.absolute,k(b.size),re)}catch(De){return ce(De)}let Ae=this.transform&&this.transform(b)||b;Ae!==b&&(Ae.on("error",De=>this[V](De,b)),b.pipe(Ae)),Ae.on("data",De=>{try{i.writeSync(ye,De,0,De.length)}catch(Se){ce(Se)}}),Ae.on("end",De=>{let Se=null;if(b.mtime&&!this.noMtime){let ze=b.atime||new Date,ir=b.mtime;try{i.futimesSync(ye,ze,ir)}catch(sr){try{i.utimesSync(b.absolute,ze,ir)}catch{Se=sr}}}if(this[Z](b)){let ze=this[q](b),ir=this[g](b);try{i.fchownSync(ye,ze,ir)}catch(sr){try{i.chownSync(b.absolute,ze,ir)}catch{Se=Se||sr}}}ce(Se)})}[R](b,z){let re=b.mode&4095||this.dmode,ce=this[N](b.absolute,re);if(ce){this[V](ce,b),z();return}if(b.mtime&&!this.noMtime)try{i.utimesSync(b.absolute,b.atime||new Date,b.mtime)}catch{}if(this[Z](b))try{i.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,ce){try{i[re+"Sync"](z,b.absolute),ce(),b.resume()}catch(ye){return this[V](ye,b)}}};B.Sync=X,e.exports=B}),kH=me((t,e)=>{"use strict";ee();var r=Ba(),n=eT(),i=_e("fs"),s=qa(),o=_e("path"),a=ja();e.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let m=r(d);if(m.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!m.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&u(m,p),m.file&&m.sync?c(m):m.file?l(m,y):m.sync?h(m):f(m)};var u=(d,p)=>{let y=new Map(p.map(T=>[a(T),!0])),m=d.filter,w=(T,F)=>{let I=F||o.parse(T).root||".",R=T===I?!1:y.has(T)?y.get(T):w(o.dirname(T),I);return y.set(T,R),R};d.filter=m?(T,F)=>m(T,F)&&w(a(T)):T=>w(a(T))},c=d=>{let p=new n.Sync(d),y=d.file,m=i.statSync(y),w=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:w,size:m.size}).pipe(p)},l=(d,p)=>{let y=new n(d),m=d.maxReadSize||16*1024*1024,w=d.file,T=new Promise((F,I)=>{y.on("error",I),y.on("close",F),i.stat(w,(R,M)=>{if(R)I(R);else{let x=new s.ReadStream(w,{readSize:m,size:M.size});x.on("error",I),x.pipe(y)}})});return p?T.then(p,p):T},h=d=>new n.Sync(d),f=d=>new n(d)}),TH=me(t=>{"use strict";ee(),t.c=t.create=gH(),t.r=t.replace=Jk(),t.t=t.list=lg(),t.u=t.update=_H(),t.x=t.extract=kH(),t.Pack=ug(),t.Unpack=eT(),t.Parse=cg(),t.ReadEntry=sg(),t.WriteEntry=Kk(),t.Header=Ma(),t.Pax=og(),t.types=Wk()}),OH=me((t,e)=>{ee();function r(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.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(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);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(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.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(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},r.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},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 n={},i=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],u=a.message,c=(n[u]||0)+1;n[u]=c,c>=s&&(i=a,s=c)}return i}}),FH=me(t=>{ee();var e=OH();t.operation=function(r){var n=t.timeouts(r);return new e(n,{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 n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in r)n[i]=r[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<n.retries;o++)s.push(this.createTimeout(o,n));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,n)),s.sort(function(a,u){return a-u}),s},t.createTimeout=function(r,n){var i=n.randomize?Math.random()+1:1,s=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,r));return s=Math.min(s,n.maxTimeout),s},t.wrap=function(r,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var s in r)typeof r[s]=="function"&&i.push(s)}for(var o=0;o<i.length;o++){var a=i[o],u=r[a];r[a]=function(c){var l=t.operation(n),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=n}}}),PH=me((t,e)=>{ee(),e.exports=FH()}),IH=me((t,e)=>{ee();var r=PH();function n(i,s){function o(a,u){var c=s||{},l;"randomize"in c||(c.randomize=!0),l=r.operation(c);function h(p){u(p||new Error("Aborted"))}function f(p,y){if(p.bail){h(p);return}l.retry(p)?c.onRetry&&c.onRetry(p,y):u(l.mainError())}function d(p){var y;try{y=i(h,p)}catch(m){f(m,p);return}Promise.resolve(y).then(a).catch(function(m){f(m,p)})}l.attempt(d)}return new Promise(o)}e.exports=n}),LH={};rH(LH,{bold:()=>qH,dimmed:()=>HH,error:()=>WH,grey:()=>$H,info:()=>jH,item:()=>GH,log:()=>Ni,turboBlue:()=>go,turboGradient:()=>NH,turboLoader:()=>MH,turboRed:()=>sT,underline:()=>UH,warn:()=>zH,yellow:()=>oT});ee();var nT="#0099F7",iT="#F11712",BH="#FFFF00",hg=t=>{let e=VH(t);return r=>`\x1B[38;5;${e}m${r}${(0,Rt.reset)("")}`},NH=(0,rT.default)(nT,iT),go=hg(nT),sT=hg(iT),oT=hg(BH),MH=t=>(0,tT.default)({text:t,spinner:{frames:[" ",go("> "),go(">> "),go(">>>")]}}),jH=(...t)=>{Ni(go((0,Rt.bold)(">>>")),t.join(" "))},qH=(...t)=>{Ni((0,Rt.bold)(t.join(" ")))},UH=(...t)=>{Ni((0,Rt.underline)(t.join(" ")))},HH=(...t)=>{Ni((0,Rt.dim)(t.join(" ")))},$H=(...t)=>{Ni((0,Rt.gray)(t.join(" ")))},GH=(...t)=>{Ni(go((0,Rt.bold)(" \u2022")),t.join(" "))},Ni=(...t)=>{console.log(...t)},zH=(...t)=>{console.error(oT((0,Rt.bold)(">>>")),t.join(" "))},WH=(...t)=>{console.error(sT((0,Rt.bold)(">>>")),t.join(" "))};function VH(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,n=Math.floor(e/256)%256,i=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}ee();var YH=5e3;async function oh(t,e=[],r){let n={cwd:aT.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},timeout:YH,...r};try{let{stdout:i}=await(0,uT.default)(t,e,n);return i.trim()}catch{return}}async function cT(){let[t,e,r,n]=await Promise.all([oh("yarnpkg",["--version"],{cwd:"."}),oh("npm",["--version"]),oh("pnpm",["--version"]),oh("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:n}}ee();ee();ee();ee();var UZ=ch(oH());ee();ee();function JH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}ee();ee();function tg(t){return tg=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},tg(t)}ee();function XH(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function QH(t,e){if(e&&(tg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XH(t)}ee();function uh(t){return uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uh(t)}ee();ee();function Pa(t,e){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Pa(t,e)}function e$(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&&Pa(t,e)}ee();ee();function t$(t){return Function.toString.call(t).indexOf("[native code]")!==-1}ee();ee();function r$(){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 ah(t,e,r){return r$()?ah=Reflect.construct.bind():ah=function(n,i,s){var o=[null];o.push.apply(o,i);var a=Function.bind.apply(n,o),u=new a;return s&&Pa(u,s.prototype),u},ah.apply(null,arguments)}function rg(t){var e=typeof Map=="function"?new Map:void 0;return rg=function(r){if(r===null||!t$(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,n)}function n(){return ah(r,arguments,uh(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Pa(n,r)},rg(t)}var HZ=ch(fH()),zZ=function(t){e$(e,t);function e(r){var n;return JH(this,e),n=QH(this,uh(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(rg(Error));ee();ee();ee();ee();ee();ee();var rJ=ch(TH());ee();ee();var sJ=ch(IH());ee();ee();ee();var He=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,He)}};ee();ee();ee();ee();var n$=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function kt({workspaceRoot:t}){let e=ln.default.join(t,"package.json");try{return(0,$t.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new He(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new He(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function lh({workspaceRoot:t}){let{packageManager:e}=kt({workspaceRoot:t});if(e)try{let r=n$.exec(e);if(r){let[n,i]=r;return i}}catch{}}function Ua({workspaceRoot:t}){let e=kt({workspaceRoot:t}),r=ln.default.basename(t),{name:n=r,description:i}=e;return{name:n,description:i}}function qk({workspaceRoot:t}){let e=ln.default.join(t,"pnpm-workspace.yaml");if((0,$t.existsSync)(e))try{let r=Kh.load((0,$t.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new He(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function hh({root:t,lockFile:e,workspaceConfig:r}){let n=s=>ln.default.join(t,s),i={root:t,lockfile:n(e),packageJson:n("package.json"),nodeModules:n("node_modules")};return r&&(i.workspaceConfig=n(r)),i}function fg({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function fh({workspaceRoot:t,workspaceGlobs:e}){if(!e)return[];let r=e.filter(n=>n.startsWith("!")).map(n=>n.slice(1));return e.filter(n=>!n.startsWith("!")).flatMap(n=>{let i=[`${n}/package.json`];return(0,mT.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**",...r]})}).map(n=>{let i=ln.default.dirname(n),{name:s,description:o}=Ua({workspaceRoot:i});return{name:s,description:o,paths:{root:i,packageJson:n,nodeModules:ln.default.join(i,"node_modules")}}})}function i$({directory:t}){let e=ln.default.resolve(process.cwd(),t);return{exists:(0,$t.existsSync)(e),absolute:e}}function zn({packageManager:t,action:e,project:r}){let n=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${n?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function s$({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(n=>r.includes(n)));return t.workspaceData.globs.every(e)}function cn({project:t,options:e}){e!=null&&e.dry||(0,$t.rmSync)(t.paths.lockfile,{force:!0})}async function yT({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,$t.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,pT.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root,preferLocal:!0,shell:process.platform==="win32"});await(0,$t.writeFile)(ln.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,$t.rmSync)(t.paths.lockfile,{force:!0})}}function o$({dependencyList:t,project:e,to:r}){let n=[];return e.workspaceData.workspaces.forEach(i=>{let{name:s}=i;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,n.push(s)}}),{dependencyList:t,updated:n}}function $n({project:t,workspace:e,to:r,logger:n,options:i}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=kt({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:p}=o$({dependencyList:f,project:t,to:r});s[h]=p,o[h]=d}});let u=h=>{let f=o[h].length;if(f>0)return`${dT.default.green(f.toString())} ${h}`},c=a.map(u).filter(Boolean),l=`./${hT.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}, `}),n.workspaceStep(h)}else n.workspaceStep(`no workspace dependencies found in ${l}`);i!=null&&i.dry||fT.default.writeJSONSync(e.paths.packageJson,s,{spaces:2})}var Gn={name:"pnpm",lock:"pnpm-lock.yaml"};async function gT(t){let e=Fi.default.join(t.workspaceRoot,Gn.lock),r=Fi.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),n=lh({workspaceRoot:t.workspaceRoot});return dr.default.existsSync(e)||dr.default.existsSync(r)||n===Gn.name}async function a$(t){if(!await gT(t))throw new He("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=Ua(t);return{name:e,description:r,packageManager:Gn.name,paths:hh({root:t.workspaceRoot,lockFile:Gn.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:qk(t),workspaces:fh({workspaceGlobs:qk(t),...t})}}}async function u$(t){let{project:e,to:r,logger:n,options:i}=t,s=e.workspaceData.globs.length>0;n.mainStep(zn({action:"create",packageManager:Gn.name,project:e}));let o=kt({workspaceRoot:e.paths.root});n.rootHeader(),o.packageManager=`${r.name}@${r.version}`,n.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),i!=null&&i.dry||(dr.default.writeJSONSync(e.paths.packageJson,o,{spaces:2}),s&&(n.rootStep('adding "pnpm-workspace.yaml"'),dr.default.writeFileSync(Fi.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
66
+ `).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=i}),ja=me((t,e)=>{ee(),e.exports=r=>{let n=r.length-1,i=-1;for(;n>-1&&r.charAt(n)==="/";)i=n,n--;return i===-1?r:r.slice(0,i)}}),lg=me((t,e)=>{"use strict";ee(),e.exports=r=>class extends r{warn(n,i,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=i instanceof Error&&i.code||n,s.tarCode=n,!this.strict&&s.recoverable!==!1?(i instanceof Error&&(s=Object.assign(i,s),i=i.message),this.emit("warn",s.tarCode,i,s)):i instanceof Error?this.emit("error",Object.assign(i,s)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),s))}}}),Kk=me((t,e)=>{"use strict";ee();var r=["|","<",">","?",":"],n=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),i=new Map(r.map((o,a)=>[o,n[a]])),s=new Map(n.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,u)=>a.split(u).join(i.get(u)),o),decode:o=>n.reduce((a,u)=>a.split(u).join(s.get(u)),o)}}),Zk=me((t,e)=>{ee();var{isAbsolute:r,parse:n}=_e("path").win32;e.exports=i=>{let s="",o=n(i);for(;r(i)||o.root;){let a=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":o.root;i=i.slice(a.length),s+=a,o=n(i)}return[s,i]}}),gH=me((t,e)=>{"use strict";ee(),e.exports=(r,n,i)=>(r&=4095,i&&(r=(r|384)&-19),n&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),Jk=me((t,e)=>{"use strict";ee();var r=ag(),n=cg(),i=Ma(),s=_e("fs"),o=_e("path"),a=Na(),u=ja(),c=(_,v)=>v?(_=a(_).replace(/^\.(\/|$)/,""),u(v)+"/"+_):a(_),l=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),m=Symbol("header"),w=Symbol("read"),T=Symbol("lstat"),F=Symbol("onlstat"),I=Symbol("onread"),R=Symbol("onreadlink"),M=Symbol("openfile"),x=Symbol("onopenfile"),D=Symbol("close"),U=Symbol("mode"),W=Symbol("awaitDrain"),N=Symbol("ondrain"),V=Symbol("prefix"),Q=Symbol("hadError"),te=lg(),j=Kk(),P=Zk(),L=gH(),G=te(class extends r{constructor(_,v){if(v=v||{},super(v),typeof _!="string")throw new TypeError("path is required");this.path=a(_),this.portable=!!v.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=v.maxReadSize||l,this.linkCache=v.linkCache||new Map,this.statCache=v.statCache||new Map,this.preservePaths=!!v.preservePaths,this.cwd=a(v.cwd||process.cwd()),this.strict=!!v.strict,this.noPax=!!v.noPax,this.noMtime=!!v.noMtime,this.mtime=v.mtime||null,this.prefix=v.prefix?a(v.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 v.onwarn=="function"&&this.on("warn",v.onwarn);let k=!1;if(!this.preservePaths){let[S,H]=P(this.path);S&&(this.path=H,k=S)}this.win32=!!v.win32||process.platform==="win32",this.win32&&(this.path=j.decode(this.path.replace(/\\/g,"/")),_=_.replace(/\\/g,"/")),this.absolute=a(v.absolute||o.resolve(this.cwd,_)),this.path===""&&(this.path="./"),k&&this.warn("TAR_ENTRY_INFO",`stripping ${k} from absolute path`,{entry:this,path:k+this.path}),this.statCache.has(this.absolute)?this[F](this.statCache.get(this.absolute)):this[T]()}emit(_,...v){return _==="error"&&(this[Q]=!0),super.emit(_,...v)}[T](){s.lstat(this.absolute,(_,v)=>{if(_)return this.emit("error",_);this[F](v)})}[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[p]();default:return this.end()}}[U](_){return L(_,this.type==="Directory",this.portable)}[V](_){return c(_,this.prefix)}[m](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[V](this.path),linkpath:this.type==="Link"?this[V](this.linkpath):this.linkpath,mode:this[U](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 n({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[m](),this.end()}[p](){s.readlink(this.absolute,(_,v)=>{if(_)return this.emit("error",_);this[R](v)})}[R](_){this.linkpath=a(_),this[m](),this.end()}[y](_){this.type="Link",this.linkpath=a(o.relative(this.cwd,_)),this.stat.size=0,this[m](),this.end()}[f](){if(this.stat.nlink>1){let _=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(_)){let v=this.linkCache.get(_);if(v.indexOf(this.cwd)===0)return this[y](v)}this.linkCache.set(_,this.absolute)}if(this[m](),this.stat.size===0)return this.end();this[M]()}[M](){s.open(this.absolute,"r",(_,v)=>{if(_)return this.emit("error",_);this[x](v)})}[x](_){if(this.fd=_,this[Q])return this[D]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let v=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(v),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[w]()}[w](){let{fd:_,buf:v,offset:k,length:S,pos:H}=this;s.read(_,v,k,S,H,($,ne)=>{if($)return this[D](()=>this.emit("error",$));this[I](ne)})}[D](_){s.close(this.fd,_)}[I](_){if(_<=0&&this.remain>0){let k=new Error("encountered unexpected EOF");return k.path=this.absolute,k.syscall="read",k.code="EOF",this[D](()=>this.emit("error",k))}if(_>this.remain){let k=new Error("did not encounter expected EOF");return k.path=this.absolute,k.syscall="read",k.code="EOF",this[D](()=>this.emit("error",k))}if(_===this.remain)for(let k=_;k<this.length&&_<this.blockRemain;k++)this.buf[k+this.offset]=0,_++,this.remain++;let v=this.offset===0&&_===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+_);this.write(v)?this[N]():this[W](()=>this[N]())}[W](_){this.once("drain",_)}write(_){if(this.blockRemain<_.length){let v=new Error("writing more data than expected");return v.path=this.absolute,this.emit("error",v)}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{[T](){this[F](s.lstatSync(this.absolute))}[p](){this[R](s.readlinkSync(this.absolute))}[M](){this[x](s.openSync(this.absolute,"r"))}[w](){let _=!0;try{let{fd:v,buf:k,offset:S,length:H,pos:$}=this,ne=s.readSync(v,k,S,H,$);this[I](ne),_=!1}finally{if(_)try{this[D](()=>{})}catch{}}}[W](_){_()}[D](_){s.closeSync(this.fd),_()}},q=te(class extends r{constructor(_,v){v=v||{},super(v),this.preservePaths=!!v.preservePaths,this.portable=!!v.portable,this.strict=!!v.strict,this.noPax=!!v.noPax,this.noMtime=!!v.noMtime,this.readEntry=_,this.type=_.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=v.prefix||null,this.path=a(_.path),this.mode=this[U](_.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:v.mtime||_.mtime,this.atime=this.portable?null:_.atime,this.ctime=this.portable?null:_.ctime,this.linkpath=a(_.linkpath),typeof v.onwarn=="function"&&this.on("warn",v.onwarn);let k=!1;if(!this.preservePaths){let[S,H]=P(this.path);S&&(this.path=H,k=S)}this.remain=_.size,this.blockRemain=_.startBlockSize,this.header=new i({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}),k&&this.warn("TAR_ENTRY_INFO",`stripping ${k} from absolute path`,{entry:this,path:k+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({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)}[U](_){return L(_,this.type==="Directory",this.portable)}write(_){let v=_.length;if(v>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=v,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}),_H=me((t,e)=>{"use strict";ee(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),Xk=me((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++)i(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=n(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 n(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 i(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{_H()(r)}catch{}}),hg=me((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}},n=ag(),i=Vk(),s=ug(),o=Jk(),a=o.Sync,u=o.Tar,c=Xk(),l=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),m=Symbol("processing"),w=Symbol("processJob"),T=Symbol("jobs"),F=Symbol("jobDone"),I=Symbol("addFSEntry"),R=Symbol("addTarEntry"),M=Symbol("stat"),x=Symbol("readdir"),D=Symbol("onreaddir"),U=Symbol("pipe"),W=Symbol("entry"),N=Symbol("entryOpt"),V=Symbol("writeEntryClass"),Q=Symbol("write"),te=Symbol("ondrain"),j=_e("fs"),P=_e("path"),L=lg(),G=Na(),Z=L(class extends n{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 i.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[T]=0,this.jobs=+g.jobs||4,this[m]=!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[R](g):this[I](g),this.flowing}[R](g){let _=G(P.resolve(this.cwd,g.path));if(!this.filter(g.path,g))g.resume();else{let v=new r(g.path,_,!1);v.entry=new u(g,this[N](v)),v.entry.on("end",k=>this[F](v)),this[T]+=1,this[d].push(v)}this[y]()}[I](g){let _=G(P.resolve(this.cwd,g));this[d].push(new r(g,_)),this[y]()}[M](g){g.pending=!0,this[T]+=1;let _=this.follow?"stat":"lstat";j[_](g.absolute,(v,k)=>{g.pending=!1,this[T]-=1,v?this.emit("error",v):this[h](g,k)})}[h](g,_){this.statCache.set(g.absolute,_),g.stat=_,this.filter(g.path,_)||(g.ignore=!0),this[y]()}[x](g){g.pending=!0,this[T]+=1,j.readdir(g.absolute,(_,v)=>{if(g.pending=!1,this[T]-=1,_)return this.emit("error",_);this[D](g,v)})}[D](g,_){this.readdirCache.set(g.absolute,_),g.readdir=_,this[y]()}[y](){if(!this[m]){this[m]=!0;for(let g=this[d].head;g!==null&&this[T]<this.jobs;g=g.next)if(this[w](g.value),g.value.ignore){let _=g.next;this[d].removeNode(g),g.next=_}this[m]=!1,this[f]&&!this[d].length&&this[T]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[F](g){this[d].shift(),this[T]-=1,this[y]()}[w](g){if(!g.pending){if(g.entry){g===this[p]&&!g.piped&&this[U](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[x](g),!g.readdir))){if(g.entry=this[W](g),!g.entry){g.ignore=!0;return}g===this[p]&&!g.piped&&this[U](g)}}}[N](g){return{onwarn:(_,v,k)=>this.warn(_,v,k),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[T]+=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[p]&&this[p].entry&&this[p].entry.resume()}[U](g){g.piped=!0,g.readdir&&g.readdir.forEach(k=>{let S=g.path,H=S==="./"?"":S.replace(/\/*$/,"/");this[I](H+k)});let _=g.entry,v=this.zip;v?_.on("data",k=>{v.write(k)||_.pause()}):_.on("data",k=>{super.write(k)||_.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))}[x](g,_){this[D](g,j.readdirSync(g.absolute))}[U](g){let _=g.entry,v=this.zip;g.readdir&&g.readdir.forEach(k=>{let S=g.path,H=S==="./"?"":S.replace(/\/*$/,"/");this[I](H+k)}),v?_.on("data",k=>{v.write(k)}):_.on("data",k=>{super[Q](k)})}};Z.Sync=q,e.exports=Z}),qa=me(t=>{"use strict";ee();var e=zk(),r=_e("events").EventEmitter,n=_e("fs"),i=n.writev;if(!i){let g=process.binding("fs"),_=g.FSReqWrap||g.FSReqCallback;i=(v,k,S,H)=>{let $=(Y,fe)=>H(Y,fe,k),ne=new _;ne.oncomplete=$,g.writeBuffers(v,k,S,ne)}}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"),p=Symbol("_mode"),y=Symbol("_needDrain"),m=Symbol("_onerror"),w=Symbol("_onopen"),T=Symbol("_onread"),F=Symbol("_onwrite"),I=Symbol("_open"),R=Symbol("_path"),M=Symbol("_pos"),x=Symbol("_queue"),D=Symbol("_read"),U=Symbol("_readSize"),W=Symbol("_reading"),N=Symbol("_remain"),V=Symbol("_size"),Q=Symbol("_write"),te=Symbol("_writing"),j=Symbol("_defaultFlag"),P=Symbol("_errored"),L=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[P]=!1,this[u]=typeof _.fd=="number"?_.fd:null,this[R]=g,this[U]=_.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[D]():this[I]()}get fd(){return this[u]}get path(){return this[R]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[I](){n.open(this[R],"r",(g,_)=>this[w](g,_))}[w](g,_){g?this[m](g):(this[u]=_,this.emit("open",_),this[D]())}[d](){return Buffer.allocUnsafe(Math.min(this[U],this[N]))}[D](){if(!this[W]){this[W]=!0;let g=this[d]();if(g.length===0)return process.nextTick(()=>this[T](null,0,g));n.read(this[u],g,0,g.length,null,(_,v,k)=>this[T](_,v,k))}}[T](g,_,v){this[W]=!1,g?this[m](g):this[f](_,v)&&this[D]()}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,n.close(g,_=>_?this.emit("error",_):this.emit("close"))}}[m](g){this[W]=!0,this[o](),this.emit("error",g)}[f](g,_){let v=!1;return this[N]-=g,g>0&&(v=super.write(g<_.length?_.slice(0,g):_)),(g===0||this[N]<=0)&&(v=!1,this[o](),super.end()),v}emit(g,_){switch(g){case"prefinish":case"finish":break;case"drain":typeof this[u]=="number"&&this[D]();break;case"error":return this[P]?void 0:(this[P]=!0,super.emit(g,_));default:return super.emit(g,_)}}},G=class extends L{[I](){let g=!0;try{this[w](null,n.openSync(this[R],"r")),g=!1}finally{g&&this[o]()}}[D](){let g=!0;try{if(!this[W]){this[W]=!0;do{let _=this[d](),v=_.length===0?0:n.readSync(this[u],_,0,_.length,null);if(!this[f](v,_))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,n.closeSync(g),this.emit("close")}}},Z=class extends r{constructor(g,_){_=_||{},super(_),this.readable=!1,this.writable=!0,this[P]=!1,this[te]=!1,this[a]=!1,this[y]=!1,this[x]=[],this[R]=g,this[u]=typeof _.fd=="number"?_.fd:null,this[p]=_.mode===void 0?438:_.mode,this[M]=typeof _.start=="number"?_.start:null,this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0;let v=this[M]!==null?"r+":"w";this[j]=_.flags===void 0,this[l]=this[j]?v:_.flags,this[u]===null&&this[I]()}emit(g,_){if(g==="error"){if(this[P])return;this[P]=!0}return super.emit(g,_)}get fd(){return this[u]}get path(){return this[R]}[m](g){this[o](),this[te]=!0,this.emit("error",g)}[I](){n.open(this[R],this[l],this[p],(g,_)=>this[w](g,_))}[w](g,_){this[j]&&this[l]==="r+"&&g&&g.code==="ENOENT"?(this[l]="w",this[I]()):g?this[m](g):(this[u]=_,this.emit("open",_),this[h]())}end(g,_){return g&&this.write(g,_),this[a]=!0,!this[te]&&!this[x].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[x].length?(this[x].push(g),this[y]=!0,!1):(this[te]=!0,this[Q](g),!0)}[Q](g){n.write(this[u],g,0,g.length,this[M],(_,v)=>this[F](_,v))}[F](g,_){g?this[m](g):(this[M]!==null&&(this[M]+=_),this[x].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[x].length===0)this[a]&&this[F](null,0);else if(this[x].length===1)this[Q](this[x].pop());else{let g=this[x];this[x]=[],i(this[u],g,this[M],(_,v)=>this[F](_,v))}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,n.close(g,_=>_?this.emit("error",_):this.emit("close"))}}},q=class extends Z{[I](){let g;if(this[j]&&this[l]==="r+")try{g=n.openSync(this[R],this[l],this[p])}catch(_){if(_.code==="ENOENT")return this[l]="w",this[I]();throw _}else g=n.openSync(this[R],this[l],this[p]);this[w](null,g)}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,n.closeSync(g),this.emit("close")}}[Q](g){let _=!0;try{this[F](null,n.writeSync(this[u],g,0,g.length,this[M])),_=!1}finally{if(_)try{this[o]()}catch{}}}};t.ReadStream=L,t.ReadStreamSync=G,t.WriteStream=Z,t.WriteStreamSync=q}),fg=me((t,e)=>{"use strict";ee();var r=lg(),n=Ma(),i=_e("events"),s=Xk(),o=1024*1024,a=ug(),u=cg(),c=Vk(),{nextTick:l}=_e("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),m=Symbol("processEntry"),w=Symbol("extendedHeader"),T=Symbol("globalExtendedHeader"),F=Symbol("meta"),I=Symbol("emitMeta"),R=Symbol("buffer"),M=Symbol("queue"),x=Symbol("ended"),D=Symbol("emittedEnd"),U=Symbol("emit"),W=Symbol("unzip"),N=Symbol("consumeChunk"),V=Symbol("consumeChunkSub"),Q=Symbol("consumeBody"),te=Symbol("consumeMeta"),j=Symbol("consumeHeader"),P=Symbol("consuming"),L=Symbol("bufferConcat"),G=Symbol("maybeEnd"),Z=Symbol("writing"),q=Symbol("aborted"),g=Symbol("onDone"),_=Symbol("sawValidEntry"),v=Symbol("sawNullBlock"),k=Symbol("sawEOF"),S=Symbol("closeStream"),H=$=>!0;e.exports=r(class extends i{constructor($){$=$||{},super($),this.file=$.file||"",this[_]=null,this.on(g,ne=>{(this[f]==="begin"||this[_]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),$.ondone?this.on(g,$.ondone):this.on(g,ne=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!$.strict,this.maxMetaEntrySize=$.maxMetaEntrySize||o,this.filter=typeof $.filter=="function"?$.filter:H,this.writable=!0,this.readable=!1,this[M]=new s,this[R]=null,this[p]=null,this[d]=null,this[f]="begin",this[F]="",this[w]=null,this[T]=null,this[x]=!1,this[W]=null,this[q]=!1,this[v]=!1,this[k]=!1,this.on("end",()=>this[S]()),typeof $.onwarn=="function"&&this.on("warn",$.onwarn),typeof $.onentry=="function"&&this.on("entry",$.onentry)}[j]($,ne){this[_]===null&&(this[_]=!1);let Y;try{Y=new n($,ne,this[w],this[T])}catch(fe){return this.warn("TAR_ENTRY_INVALID",fe)}if(Y.nullBlock)this[v]?(this[k]=!0,this[f]==="begin"&&(this[f]="header"),this[U]("eof")):(this[v]=!0,this[U]("nullBlock"));else if(this[v]=!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 fe=Y.type;if(/^(Symbolic)?Link$/.test(fe)&&!Y.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:Y});else if(!/^(Symbolic)?Link$/.test(fe)&&Y.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:Y});else{let J=this[d]=new a(Y,this[w],this[T]);if(!this[_])if(J.remain){let E=()=>{J.invalid||(this[_]=!0)};J.on("end",E)}else this[_]=!0;J.meta?J.size>this.maxMetaEntrySize?(J.ignore=!0,this[U]("ignoredEntry",J),this[f]="ignore",J.resume()):J.size>0&&(this[F]="",J.on("data",E=>this[F]+=E),this[f]="meta"):(this[w]=null,J.ignore=J.ignore||!this.filter(J.path,J),J.ignore?(this[U]("ignoredEntry",J),this[f]=J.remain?"ignore":"header",J.resume()):(J.remain?this[f]="body":(this[f]="header",J.end()),this[p]?this[M].push(J):(this[M].push(J),this[y]())))}}}[S](){l(()=>this.emit("close"))}[m]($){let ne=!0;return $?Array.isArray($)?this.emit.apply(this,$):(this[p]=$,this.emit("entry",$),$.emittedEnd||($.on("end",Y=>this[y]()),ne=!1)):(this[p]=null,ne=!1),ne}[y](){do;while(this[m](this[M].shift()));if(!this[M].length){let $=this[p];!$||$.flowing||$.size===$.remain?this[Z]||this.emit("drain"):$.once("drain",ne=>this.emit("drain"))}}[Q]($,ne){let Y=this[d],fe=Y.blockRemain,J=fe>=$.length&&ne===0?$:$.slice(ne,ne+fe);return Y.write(J),Y.blockRemain||(this[f]="header",this[d]=null,Y.end()),J.length}[te]($,ne){let Y=this[d],fe=this[Q]($,ne);return this[d]||this[I](Y),fe}[U]($,ne,Y){!this[M].length&&!this[p]?this.emit($,ne,Y):this[M].push([$,ne,Y])}[I]($){switch(this[U]("meta",this[F]),$.type){case"ExtendedHeader":case"OldExtendedHeader":this[w]=u.parse(this[F],this[w],!1);break;case"GlobalExtendedHeader":this[T]=u.parse(this[F],this[T],!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[R]&&($=Buffer.concat([this[R],$]),this[R]=null),$.length<h.length)return this[R]=$,!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[x];this[x]=!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[x]=!0,this[N]()}),this[Z]=!0;let fe=this[W][Y?"end":"write"]($);return this[Z]=!1,fe}}this[Z]=!0,this[W]?this[W].write($):this[N]($),this[Z]=!1;let ne=this[M].length?!1:this[p]?this[p].flowing:!0;return!ne&&!this[M].length&&this[p].once("drain",Y=>this.emit("drain")),ne}[L]($){$&&!this[q]&&(this[R]=this[R]?Buffer.concat([this[R],$]):$)}[G](){if(this[x]&&!this[D]&&!this[q]&&!this[P]){this[D]=!0;let $=this[d];if($&&$.blockRemain){let ne=this[R]?this[R].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${$.blockRemain} more bytes, only ${ne} available)`,{entry:$}),this[R]&&$.write(this[R]),$.end()}this[U](g)}}[N]($){if(this[P])this[L]($);else if(!$&&!this[R])this[G]();else{if(this[P]=!0,this[R]){this[L]($);let ne=this[R];this[R]=null,this[V](ne)}else this[V]($);for(;this[R]&&this[R].length>=512&&!this[q]&&!this[k];){let ne=this[R];this[R]=null,this[V](ne)}this[P]=!1}(!this[R]||this[x])&&this[G]()}[V]($){let ne=0,Y=$.length;for(;ne+512<=Y&&!this[q]&&!this[k];)switch(this[f]){case"begin":case"header":this[j]($,ne),ne+=512;break;case"ignore":case"body":ne+=this[Q]($,ne);break;case"meta":ne+=this[te]($,ne);break;default:throw new Error("invalid state: "+this[f])}ne<Y&&(this[R]?this[R]=Buffer.concat([$.slice(ne),this[R]]):this[R]=$.slice(ne))}end($){this[q]||(this[W]?this[W].end($):(this[x]=!0,this.write($)))}})}),dg=me((t,e)=>{"use strict";ee();var r=Ba(),n=fg(),i=_e("fs"),s=qa(),o=_e("path"),a=ja();e.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let m=r(d);if(m.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!m.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&c(m,p),m.noResume||u(m),m.file&&m.sync?l(m):m.file?h(m,y):f(m)};var u=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},c=(d,p)=>{let y=new Map(p.map(T=>[a(T),!0])),m=d.filter,w=(T,F)=>{let I=F||o.parse(T).root||".",R=T===I?!1:y.has(T)?y.get(T):w(o.dirname(T),I);return y.set(T,R),R};d.filter=m?(T,F)=>m(T,F)&&w(a(T)):T=>w(a(T))},l=d=>{let p=f(d),y=d.file,m=!0,w;try{let T=i.statSync(y),F=d.maxReadSize||16*1024*1024;if(T.size<F)p.end(i.readFileSync(y));else{let I=0,R=Buffer.allocUnsafe(F);for(w=i.openSync(y,"r");I<T.size;){let M=i.readSync(w,R,0,F,I);I+=M,p.write(R.slice(0,M))}p.end()}m=!1}finally{if(m&&w)try{i.closeSync(w)}catch{}}},h=(d,p)=>{let y=new n(d),m=d.maxReadSize||16*1024*1024,w=d.file,T=new Promise((F,I)=>{y.on("error",I),y.on("end",F),i.stat(w,(R,M)=>{if(R)I(R);else{let x=new s.ReadStream(w,{readSize:m,size:M.size});x.on("error",I),x.pipe(y)}})});return p?T.then(p,p):T},f=d=>new n(d)}),bH=me((t,e)=>{"use strict";ee();var r=Ba(),n=hg(),i=qa(),s=dg(),o=_e("path");e.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let m=r(d);if(m.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!m.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.file&&m.sync?a(m,p):m.file?u(m,p,y):m.sync?h(m,p):f(m,p)};var a=(d,p)=>{let y=new n.Sync(d),m=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(m),c(y,p)},u=(d,p,y)=>{let m=new n(d),w=new i.WriteStream(d.file,{mode:d.mode||438});m.pipe(w);let T=new Promise((F,I)=>{w.on("error",I),w.on("close",F),m.on("error",I)});return l(m,p),y?T.then(y,y):T},c=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:m=>d.add(m)}):d.add(y)}),d.end()},l=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:m=>d.add(m)}).then(m=>l(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return c(y,p),y},f=(d,p)=>{let y=new n(d);return l(y,p),y}}),Qk=me((t,e)=>{"use strict";ee();var r=Ba(),n=hg(),i=_e("fs"),s=qa(),o=dg(),a=_e("path"),u=Ma();e.exports=(p,y,m)=>{let w=r(p);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,m)};var c=(p,y)=>{let m=new n.Sync(p),w=!0,T,F;try{try{T=i.openSync(p.file,"r+")}catch(M){if(M.code==="ENOENT")T=i.openSync(p.file,"w+");else throw M}let I=i.fstatSync(T),R=Buffer.alloc(512);e:for(F=0;F<I.size;F+=512){for(let D=0,U=0;D<512;D+=U){if(U=i.readSync(T,R,D,R.length-D,F+D),F===0&&R[0]===31&&R[1]===139)throw new Error("cannot append to compressed archives");if(!U)break e}let M=new u(R);if(!M.cksumValid)break;let x=512*Math.ceil(M.size/512);if(F+x+512>I.size)break;F+=x,p.mtimeCache&&p.mtimeCache.set(M.path,M.mtime)}w=!1,l(p,m,F,T,y)}finally{if(w)try{i.closeSync(T)}catch{}}},l=(p,y,m,w,T)=>{let F=new s.WriteStreamSync(p.file,{fd:w,start:m});y.pipe(F),f(y,T)},h=(p,y,m)=>{y=Array.from(y);let w=new n(p),T=(I,R,M)=>{let x=(V,Q)=>{V?i.close(I,te=>M(V)):M(null,Q)},D=0;if(R===0)return x(null,0);let U=0,W=Buffer.alloc(512),N=(V,Q)=>{if(V)return x(V);if(U+=Q,U<512&&Q)return i.read(I,W,U,W.length-U,D+U,N);if(D===0&&W[0]===31&&W[1]===139)return x(new Error("cannot append to compressed archives"));if(U<512)return x(null,D);let te=new u(W);if(!te.cksumValid)return x(null,D);let j=512*Math.ceil(te.size/512);if(D+j+512>R||(D+=j+512,D>=R))return x(null,D);p.mtimeCache&&p.mtimeCache.set(te.path,te.mtime),U=0,i.read(I,W,0,512,D,N)};i.read(I,W,0,512,D,N)},F=new Promise((I,R)=>{w.on("error",R);let M="r+",x=(D,U)=>{if(D&&D.code==="ENOENT"&&M==="r+")return M="w+",i.open(p.file,M,x);if(D)return R(D);i.fstat(U,(W,N)=>{if(W)return i.close(U,()=>R(W));T(U,N.size,(V,Q)=>{if(V)return R(V);let te=new s.WriteStream(p.file,{fd:U,start:Q});w.pipe(te),te.on("error",R),te.on("close",I),d(w,y)})})};i.open(p.file,M,x)});return m?F.then(m,m):F},f=(p,y)=>{y.forEach(m=>{m.charAt(0)==="@"?o({file:a.resolve(p.cwd,m.slice(1)),sync:!0,noResume:!0,onentry:w=>p.add(w)}):p.add(m)}),p.end()},d=(p,y)=>{for(;y.length;){let m=y.shift();if(m.charAt(0)==="@")return o({file:a.resolve(p.cwd,m.slice(1)),noResume:!0,onentry:w=>p.add(w)}).then(w=>d(p,y));p.add(m)}p.end()}}),vH=me((t,e)=>{"use strict";ee();var r=Ba(),n=Qk();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),i(u),n(u,o,a)};var i=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)}}),EH=me((t,e)=>{ee();var{promisify:r}=_e("util"),n=_e("fs"),i=s=>{if(!s)s={mode:511,fs:n};else if(typeof s=="object")s={mode:511,fs:n,...s};else if(typeof s=="number")s={mode:s,fs:n};else if(typeof s=="string")s={mode:parseInt(s,8),fs:n};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||n.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||n.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||n.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||n.mkdirSync,s};e.exports=i}),wH=me((t,e)=>{ee();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=_e("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=n(o),r==="win32"){let a=/[*|"<>?:]/,{root:u}=i(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}),xH=me((t,e)=>{ee();var{dirname:r}=_e("path"),n=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(u=>u.isDirectory()?a:void 0,u=>u.code==="ENOENT"?n(s,r(o),o):void 0),i=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(u){return u.code==="ENOENT"?i(s,r(o),o):void 0}};e.exports={findMade:n,findMadeSync:i}}),eT=me((t,e)=>{ee();var{dirname:r}=_e("path"),n=(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 n(u,o).then(l=>n(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})})},i=(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 i(s,o,i(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:n,mkdirpManualSync:i}}),SH=me((t,e)=>{ee();var{dirname:r}=_e("path"),{findMade:n,findMadeSync:i}=xH(),{mkdirpManual:s,mkdirpManualSync:o}=eT(),a=(c,l)=>(l.recursive=!0,r(c)===c?l.mkdirAsync(c,l):n(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=i(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}}),AH=me((t,e)=>{ee();var r=_e("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),s=+i[0]>10||+i[0]==10&&+i[1]>=12,o=s?u=>u.mkdir===r.mkdir:()=>!1,a=s?u=>u.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),DH=me((t,e)=>{ee();var r=EH(),n=wH(),{mkdirpNative:i,mkdirpNativeSync:s}=SH(),{mkdirpManual:o,mkdirpManualSync:a}=eT(),{useNative:u,useNativeSync:c}=AH(),l=(f,d)=>(f=n(f),d=r(d),u(d)?i(f,d):o(f,d)),h=(f,d)=>(f=n(f),d=r(d),c(d)?s(f,d):a(f,d));l.sync=h,l.native=(f,d)=>i(n(f),r(d)),l.manual=(f,d)=>o(n(f),r(d)),l.nativeSync=(f,d)=>s(n(f),r(d)),l.manualSync=(f,d)=>a(n(f),r(d)),e.exports=l}),CH=me((t,e)=>{"use strict";ee();var r=_e("fs"),n=_e("path"),i=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,I,R)=>{try{return r[s](F,I,R)}catch(M){if(M.code!=="ENOENT")throw M}},u=(F,I,R)=>{try{return r.chownSync(F,I,R)}catch(M){if(M.code!=="ENOENT")throw M}},c=o?(F,I,R,M)=>x=>{!x||x.code!=="EISDIR"?M(x):r.chown(F,I,R,M)}:(F,I,R,M)=>M,l=o?(F,I,R)=>{try{return a(F,I,R)}catch(M){if(M.code!=="EISDIR")throw M;u(F,I,R)}}:(F,I,R)=>a(F,I,R),h=process.version,f=(F,I,R)=>r.readdir(F,I,R),d=(F,I)=>r.readdirSync(F,I);/^v4\./.test(h)&&(f=(F,I,R)=>r.readdir(F,R));var p=(F,I,R,M)=>{r[i](F,I,R,c(F,I,R,x=>{M(x&&x.code!=="ENOENT"?x:null)}))},y=(F,I,R,M,x)=>{if(typeof I=="string")return r.lstat(n.resolve(F,I),(D,U)=>{if(D)return x(D.code!=="ENOENT"?D:null);U.name=I,y(F,U,R,M,x)});if(I.isDirectory())m(n.resolve(F,I.name),R,M,D=>{if(D)return x(D);let U=n.resolve(F,I.name);p(U,R,M,x)});else{let D=n.resolve(F,I.name);p(D,R,M,x)}},m=(F,I,R,M)=>{f(F,{withFileTypes:!0},(x,D)=>{if(x){if(x.code==="ENOENT")return M();if(x.code!=="ENOTDIR"&&x.code!=="ENOTSUP")return M(x)}if(x||!D.length)return p(F,I,R,M);let U=D.length,W=null,N=V=>{if(!W){if(V)return M(W=V);if(--U===0)return p(F,I,R,M)}};D.forEach(V=>y(F,V,I,R,N))})},w=(F,I,R,M)=>{if(typeof I=="string")try{let x=r.lstatSync(n.resolve(F,I));x.name=I,I=x}catch(x){if(x.code==="ENOENT")return;throw x}I.isDirectory()&&T(n.resolve(F,I.name),R,M),l(n.resolve(F,I.name),R,M)},T=(F,I,R)=>{let M;try{M=d(F,{withFileTypes:!0})}catch(x){if(x.code==="ENOENT")return;if(x.code==="ENOTDIR"||x.code==="ENOTSUP")return l(F,I,R);throw x}return M&&M.length&&M.forEach(x=>w(F,x,I,R)),l(F,I,R)};e.exports=m,m.sync=T}),RH=me((t,e)=>{"use strict";ee();var r=DH(),n=_e("fs"),i=_e("path"),s=CH(),o=Na(),a=class extends Error{constructor(y,m){super("Cannot extract through symbolic link"),this.path=m,this.symlink=y}get name(){return"SylinkError"}},u=class extends Error{constructor(y,m){super(m+": Cannot cd into '"+y+"'"),this.path=y,this.code=m}get name(){return"CwdError"}},c=(y,m)=>y.get(o(m)),l=(y,m,w)=>y.set(o(m),w),h=(y,m)=>{n.stat(y,(w,T)=>{(w||!T.isDirectory())&&(w=new u(y,w&&w.code||"ENOTDIR")),m(w)})};e.exports=(y,m,w)=>{y=o(y);let T=m.umask,F=m.mode|448,I=(F&T)!==0,R=m.uid,M=m.gid,x=typeof R=="number"&&typeof M=="number"&&(R!==m.processUid||M!==m.processGid),D=m.preserve,U=m.unlink,W=m.cache,N=o(m.cwd),V=(te,j)=>{te?w(te):(l(W,y,!0),j&&x?s(j,R,M,P=>V(P)):I?n.chmod(y,F,w):w())};if(W&&c(W,y)===!0)return V();if(y===N)return h(y,V);if(D)return r(y,{mode:F}).then(te=>V(null,te),V);let Q=o(i.relative(N,y)).split("/");f(N,Q,F,W,U,N,null,V)};var f=(y,m,w,T,F,I,R,M)=>{if(!m.length)return M(null,R);let x=m.shift(),D=o(i.resolve(y+"/"+x));if(c(T,D))return f(D,m,w,T,F,I,R,M);n.mkdir(D,w,d(D,m,w,T,F,I,R,M))},d=(y,m,w,T,F,I,R,M)=>x=>{x?n.lstat(y,(D,U)=>{if(D)D.path=D.path&&o(D.path),M(D);else if(U.isDirectory())f(y,m,w,T,F,I,R,M);else if(F)n.unlink(y,W=>{if(W)return M(W);n.mkdir(y,w,d(y,m,w,T,F,I,R,M))});else{if(U.isSymbolicLink())return M(new a(y,y+"/"+m.join("/")));M(x)}}):(R=R||y,f(y,m,w,T,F,I,R,M))},p=y=>{let m=!1,w="ENOTDIR";try{m=n.statSync(y).isDirectory()}catch(T){w=T.code}finally{if(!m)throw new u(y,w)}};e.exports.sync=(y,m)=>{y=o(y);let w=m.umask,T=m.mode|448,F=(T&w)!==0,I=m.uid,R=m.gid,M=typeof I=="number"&&typeof R=="number"&&(I!==m.processUid||R!==m.processGid),x=m.preserve,D=m.unlink,U=m.cache,W=o(m.cwd),N=te=>{l(U,y,!0),te&&M&&s.sync(te,I,R),F&&n.chmodSync(y,T)};if(U&&c(U,y)===!0)return N();if(y===W)return p(W),N();if(x)return N(r.sync(y,T));let V=o(i.relative(W,y)).split("/"),Q=null;for(let te=V.shift(),j=W;te&&(j+="/"+te);te=V.shift())if(j=o(i.resolve(j)),!c(U,j))try{n.mkdirSync(j,T),Q=Q||j,l(U,j,!0)}catch{let P=n.lstatSync(j);if(P.isDirectory()){l(U,j,!0);continue}else if(D){n.unlinkSync(j),n.mkdirSync(j,T),Q=Q||j,l(U,j,!0);continue}else if(P.isSymbolicLink())return new a(j,j+"/"+V.join("/"))}return N(Q)}}),tT=me((t,e)=>{ee();var r=Object.create(null),{hasOwnProperty:n}=Object.prototype;e.exports=i=>(n.call(r,i)||(r[i]=i.normalize("NFKD")),r[i])}),kH=me((t,e)=>{ee();var r=_e("assert"),n=tT(),i=ja(),{join:s}=_e("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let u=new Map,c=new Map,l=m=>m.split("/").slice(0,-1).reduce((w,T)=>(w.length&&(T=s(w[w.length-1],T)),w.push(T||"/"),w),[]),h=new Set,f=m=>{let w=c.get(m);if(!w)throw new Error("function does not have any path reservations");return{paths:w.paths.map(T=>u.get(T)),dirs:[...w.dirs].map(T=>u.get(T))}},d=m=>{let{paths:w,dirs:T}=f(m);return w.every(F=>F[0]===m)&&T.every(F=>F[0]instanceof Set&&F[0].has(m))},p=m=>h.has(m)||!d(m)?!1:(h.add(m),m(()=>y(m)),!0),y=m=>{if(!h.has(m))return!1;let{paths:w,dirs:T}=c.get(m),F=new Set;return w.forEach(I=>{let R=u.get(I);r.equal(R[0],m),R.length===1?u.delete(I):(R.shift(),typeof R[0]=="function"?F.add(R[0]):R[0].forEach(M=>F.add(M)))}),T.forEach(I=>{let R=u.get(I);r(R[0]instanceof Set),R[0].size===1&&R.length===1?u.delete(I):R[0].size===1?(R.shift(),F.add(R[0])):R[0].delete(m)}),h.delete(m),F.forEach(I=>p(I)),!0};return{check:d,reserve:(m,w)=>{m=a?["win32 parallelization disabled"]:m.map(F=>n(i(s(F))).toLowerCase());let T=new Set(m.map(F=>l(F)).reduce((F,I)=>F.concat(I)));return c.set(w,{dirs:T,paths:m}),m.forEach(F=>{let I=u.get(F);I?I.push(w):u.set(F,[w])}),T.forEach(F=>{let I=u.get(F);I?I[I.length-1]instanceof Set?I[I.length-1].add(w):I.push(new Set([w])):u.set(F,[new Set([w])])}),p(w)}}}}),TH=me((t,e)=>{ee();var r=process.env.__FAKE_PLATFORM__||process.platform,n=r==="win32",i=global.__FAKE_TESTING_FS__||_e("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:u=0}=i.constants,c=n&&!!u,l=512*1024,h=u|o|s|a;e.exports=c?f=>f<l?h:"w":()=>"w"}),rT=me((t,e)=>{"use strict";ee();var r=_e("assert"),n=fg(),i=_e("fs"),s=qa(),o=_e("path"),a=RH(),u=Kk(),c=kH(),l=Zk(),h=Na(),f=ja(),d=tT(),p=Symbol("onEntry"),y=Symbol("checkFs"),m=Symbol("checkFs2"),w=Symbol("pruneCache"),T=Symbol("isReusable"),F=Symbol("makeFs"),I=Symbol("file"),R=Symbol("directory"),M=Symbol("link"),x=Symbol("symlink"),D=Symbol("hardlink"),U=Symbol("unsupported"),W=Symbol("checkPath"),N=Symbol("mkdir"),V=Symbol("onError"),Q=Symbol("pending"),te=Symbol("pend"),j=Symbol("unpend"),P=Symbol("ended"),L=Symbol("maybeClose"),G=Symbol("skip"),Z=Symbol("doChown"),q=Symbol("uid"),g=Symbol("gid"),_=Symbol("checkedCwd"),v=_e("crypto"),k=TH(),S=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,H=S==="win32",$=(b,z)=>{if(!H)return i.unlink(b,z);let re=b+".DELETE."+v.randomBytes(16).toString("hex");i.rename(b,re,ce=>{if(ce)return z(ce);i.unlink(re,z)})},ne=b=>{if(!H)return i.unlinkSync(b);let z=b+".DELETE."+v.randomBytes(16).toString("hex");i.renameSync(b,z),i.unlinkSync(z)},Y=(b,z,re)=>b===b>>>0?b:z===z>>>0?z:re,fe=b=>d(f(h(b))).toLowerCase(),J=(b,z)=>{z=fe(z);for(let re of b.keys()){let ce=fe(re);(ce===z||ce.indexOf(z+"/")===0)&&b.delete(re)}},E=b=>{for(let z of b.keys())b.delete(z)},B=class extends n{constructor(b){if(b||(b={}),b.ondone=z=>{this[P]=!0,this[L]()},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[P]=!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||H,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[p](z))}warn(b,z,re={}){return(b==="TAR_BAD_ARCHIVE"||b==="TAR_ABORT")&&(re.recoverable=!1),super.warn(b,z,re)}[L](){this[P]&&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("..")||H&&/^[a-z]:\.\.$/i.test(re[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:b,path:z}),!1;let[ce,ye]=l(z);ce&&(b.path=ye,this.warn("TAR_ENTRY_INFO",`stripping ${ce} 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}[p](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[U](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)}[I](b,z){let re=b.mode&4095||this.fmode,ce=new s.WriteStream(b.absolute,{flags:k(b.size),mode:re,autoClose:!1});ce.on("error",Se=>{ce.fd&&i.close(ce.fd,()=>{}),ce.write=()=>!0,this[V](Se,b),z()});let ye=1,Ae=Se=>{if(Se){ce.fd&&i.close(ce.fd,()=>{}),this[V](Se,b),z();return}--ye===0&&i.close(ce.fd,ze=>{ze?this[V](ze,b):this[j](),z()})};ce.on("finish",Se=>{let ze=b.absolute,ir=ce.fd;if(b.mtime&&!this.noMtime){ye++;let sr=b.atime||new Date,wo=b.mtime;i.futimes(ir,sr,wo,xo=>xo?i.utimes(ze,sr,wo,wh=>Ae(wh&&xo)):Ae())}if(this[Z](b)){ye++;let sr=this[q](b),wo=this[g](b);i.fchown(ir,sr,wo,xo=>xo?i.chown(ze,sr,wo,wh=>Ae(wh&&xo)):Ae())}Ae()});let De=this.transform&&this.transform(b)||b;De!==b&&(De.on("error",Se=>{this[V](Se,b),z()}),b.pipe(De)),De.pipe(ce)}[R](b,z){let re=b.mode&4095||this.dmode;this[N](b.absolute,re,ce=>{if(ce){this[V](ce,b),z();return}let ye=1,Ae=De=>{--ye===0&&(z(),this[j](),b.resume())};b.mtime&&!this.noMtime&&(ye++,i.utimes(b.absolute,b.atime||new Date,b.mtime,Ae)),this[Z](b)&&(ye++,i.chown(b.absolute,this[q](b),this[g](b),Ae)),Ae()})}[U](b){b.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${b.type}`,{entry:b}),b.resume()}[x](b,z){this[M](b,b.linkpath,"symlink",z)}[D](b,z){let re=h(o.resolve(this.cwd,b.linkpath));this[M](b,re,"link",z)}[te](){this[Q]++}[j](){this[Q]--,this[L]()}[G](b){this[j](),b.resume()}[T](b,z){return b.type==="File"&&!this.unlink&&z.isFile()&&z.nlink<=1&&!H}[y](b){this[te]();let z=[b.path];b.linkpath&&z.push(b.linkpath),this.reservations.reserve(z,re=>this[m](b,re))}[w](b){b.type==="SymbolicLink"?E(this.dirCache):b.type!=="Directory"&&J(this.dirCache,b.absolute)}[m](b,z){this[w](b);let re=De=>{this[w](b),z(De)},ce=()=>{this[N](this.cwd,this.dmode,De=>{if(De){this[V](De,b),re();return}this[_]=!0,ye()})},ye=()=>{if(b.absolute!==this.cwd){let De=h(o.dirname(b.absolute));if(De!==this.cwd)return this[N](De,this.dmode,Se=>{if(Se){this[V](Se,b),re();return}Ae()})}Ae()},Ae=()=>{i.lstat(b.absolute,(De,Se)=>{if(Se&&(this.keep||this.newer&&Se.mtime>b.mtime)){this[G](b),re();return}if(De||this[T](b,Se))return this[F](null,b,re);if(Se.isDirectory()){if(b.type==="Directory"){let ze=!this.noChmod&&b.mode&&(Se.mode&4095)!==b.mode,ir=sr=>this[F](sr,b,re);return ze?i.chmod(b.absolute,b.mode,ir):ir()}if(b.absolute!==this.cwd)return i.rmdir(b.absolute,ze=>this[F](ze,b,re))}if(b.absolute===this.cwd)return this[F](null,b,re);$(b.absolute,ze=>this[F](ze,b,re))})};this[_]?ye():ce()}[F](b,z,re){if(b){this[V](b,z),re();return}switch(z.type){case"File":case"OldFile":case"ContiguousFile":return this[I](z,re);case"Link":return this[D](z,re);case"SymbolicLink":return this[x](z,re);case"Directory":case"GNUDumpDir":return this[R](z,re)}}[M](b,z,re,ce){i[re](z,b.absolute,ye=>{ye?this[V](ye,b):(this[j](),b.resume()),ce()})}},C=b=>{try{return[null,b()]}catch(z){return[z,null]}},X=class extends B{[F](b,z){return super[F](b,z,()=>{})}[y](b){if(this[w](b),!this[_]){let ye=this[N](this.cwd,this.dmode);if(ye)return this[V](ye,b);this[_]=!0}if(b.absolute!==this.cwd){let ye=h(o.dirname(b.absolute));if(ye!==this.cwd){let Ae=this[N](ye,this.dmode);if(Ae)return this[V](Ae,b)}}let[z,re]=C(()=>i.lstatSync(b.absolute));if(re&&(this.keep||this.newer&&re.mtime>b.mtime))return this[G](b);if(z||this[T](b,re))return this[F](null,b);if(re.isDirectory()){if(b.type==="Directory"){let Ae=!this.noChmod&&b.mode&&(re.mode&4095)!==b.mode,[De]=Ae?C(()=>{i.chmodSync(b.absolute,b.mode)}):[];return this[F](De,b)}let[ye]=C(()=>i.rmdirSync(b.absolute));this[F](ye,b)}let[ce]=b.absolute===this.cwd?[]:C(()=>ne(b.absolute));this[F](ce,b)}[I](b,z){let re=b.mode&4095||this.fmode,ce=De=>{let Se;try{i.closeSync(ye)}catch(ze){Se=ze}(De||Se)&&this[V](De||Se,b),z()},ye;try{ye=i.openSync(b.absolute,k(b.size),re)}catch(De){return ce(De)}let Ae=this.transform&&this.transform(b)||b;Ae!==b&&(Ae.on("error",De=>this[V](De,b)),b.pipe(Ae)),Ae.on("data",De=>{try{i.writeSync(ye,De,0,De.length)}catch(Se){ce(Se)}}),Ae.on("end",De=>{let Se=null;if(b.mtime&&!this.noMtime){let ze=b.atime||new Date,ir=b.mtime;try{i.futimesSync(ye,ze,ir)}catch(sr){try{i.utimesSync(b.absolute,ze,ir)}catch{Se=sr}}}if(this[Z](b)){let ze=this[q](b),ir=this[g](b);try{i.fchownSync(ye,ze,ir)}catch(sr){try{i.chownSync(b.absolute,ze,ir)}catch{Se=Se||sr}}}ce(Se)})}[R](b,z){let re=b.mode&4095||this.dmode,ce=this[N](b.absolute,re);if(ce){this[V](ce,b),z();return}if(b.mtime&&!this.noMtime)try{i.utimesSync(b.absolute,b.atime||new Date,b.mtime)}catch{}if(this[Z](b))try{i.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,ce){try{i[re+"Sync"](z,b.absolute),ce(),b.resume()}catch(ye){return this[V](ye,b)}}};B.Sync=X,e.exports=B}),OH=me((t,e)=>{"use strict";ee();var r=Ba(),n=rT(),i=_e("fs"),s=qa(),o=_e("path"),a=ja();e.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let m=r(d);if(m.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!m.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&u(m,p),m.file&&m.sync?c(m):m.file?l(m,y):m.sync?h(m):f(m)};var u=(d,p)=>{let y=new Map(p.map(T=>[a(T),!0])),m=d.filter,w=(T,F)=>{let I=F||o.parse(T).root||".",R=T===I?!1:y.has(T)?y.get(T):w(o.dirname(T),I);return y.set(T,R),R};d.filter=m?(T,F)=>m(T,F)&&w(a(T)):T=>w(a(T))},c=d=>{let p=new n.Sync(d),y=d.file,m=i.statSync(y),w=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:w,size:m.size}).pipe(p)},l=(d,p)=>{let y=new n(d),m=d.maxReadSize||16*1024*1024,w=d.file,T=new Promise((F,I)=>{y.on("error",I),y.on("close",F),i.stat(w,(R,M)=>{if(R)I(R);else{let x=new s.ReadStream(w,{readSize:m,size:M.size});x.on("error",I),x.pipe(y)}})});return p?T.then(p,p):T},h=d=>new n.Sync(d),f=d=>new n(d)}),FH=me(t=>{"use strict";ee(),t.c=t.create=bH(),t.r=t.replace=Qk(),t.t=t.list=dg(),t.u=t.update=vH(),t.x=t.extract=OH(),t.Pack=hg(),t.Unpack=rT(),t.Parse=fg(),t.ReadEntry=ug(),t.WriteEntry=Jk(),t.Header=Ma(),t.Pax=cg(),t.types=Yk()}),PH=me((t,e)=>{ee();function r(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.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(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);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(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.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(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},r.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},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 n={},i=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],u=a.message,c=(n[u]||0)+1;n[u]=c,c>=s&&(i=a,s=c)}return i}}),IH=me(t=>{ee();var e=PH();t.operation=function(r){var n=t.timeouts(r);return new e(n,{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 n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in r)n[i]=r[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<n.retries;o++)s.push(this.createTimeout(o,n));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,n)),s.sort(function(a,u){return a-u}),s},t.createTimeout=function(r,n){var i=n.randomize?Math.random()+1:1,s=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,r));return s=Math.min(s,n.maxTimeout),s},t.wrap=function(r,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var s in r)typeof r[s]=="function"&&i.push(s)}for(var o=0;o<i.length;o++){var a=i[o],u=r[a];r[a]=function(c){var l=t.operation(n),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=n}}}),LH=me((t,e)=>{ee(),e.exports=IH()}),BH=me((t,e)=>{ee();var r=LH();function n(i,s){function o(a,u){var c=s||{},l;"randomize"in c||(c.randomize=!0),l=r.operation(c);function h(p){u(p||new Error("Aborted"))}function f(p,y){if(p.bail){h(p);return}l.retry(p)?c.onRetry&&c.onRetry(p,y):u(l.mainError())}function d(p){var y;try{y=i(h,p)}catch(m){f(m,p);return}Promise.resolve(y).then(a).catch(function(m){f(m,p)})}l.attempt(d)}return new Promise(o)}e.exports=n}),NH={};iH(NH,{bold:()=>HH,dimmed:()=>GH,error:()=>YH,grey:()=>zH,info:()=>UH,item:()=>WH,log:()=>Ni,turboBlue:()=>go,turboGradient:()=>jH,turboLoader:()=>qH,turboRed:()=>aT,underline:()=>$H,warn:()=>VH,yellow:()=>uT});ee();var sT="#0099F7",oT="#F11712",MH="#FFFF00",pg=t=>{let e=KH(t);return r=>`\x1B[38;5;${e}m${r}${(0,kt.reset)("")}`},jH=(0,iT.default)(sT,oT),go=pg(sT),aT=pg(oT),uT=pg(MH),qH=t=>(0,nT.default)({text:t,spinner:{frames:[" ",go("> "),go(">> "),go(">>>")]}}),UH=(...t)=>{Ni(go((0,kt.bold)(">>>")),t.join(" "))},HH=(...t)=>{Ni((0,kt.bold)(t.join(" ")))},$H=(...t)=>{Ni((0,kt.underline)(t.join(" ")))},GH=(...t)=>{Ni((0,kt.dim)(t.join(" ")))},zH=(...t)=>{Ni((0,kt.gray)(t.join(" ")))},WH=(...t)=>{Ni(go((0,kt.bold)(" \u2022")),t.join(" "))},Ni=(...t)=>{console.log(...t)},VH=(...t)=>{console.error(uT((0,kt.bold)(">>>")),t.join(" "))},YH=(...t)=>{console.error(aT((0,kt.bold)(">>>")),t.join(" "))};function KH(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,n=Math.floor(e/256)%256,i=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}ee();var ZH=5e3;async function uh(t,e=[],r){let n={cwd:cT.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},timeout:ZH,...r};try{let{stdout:i}=await(0,lT.default)(t,e,n);return i.trim()}catch{return}}async function hT(){let[t,e,r,n]=await Promise.all([uh("yarnpkg",["--version"],{cwd:"."}),uh("npm",["--version"]),uh("pnpm",["--version"]),uh("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:n}}ee();ee();ee();ee();var $Z=hh(uH());ee();ee();function QH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}ee();ee();function ig(t){return ig=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},ig(t)}ee();function e$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function t$(t,e){if(e&&(ig(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e$(t)}ee();function lh(t){return lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lh(t)}ee();ee();function Pa(t,e){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Pa(t,e)}function r$(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&&Pa(t,e)}ee();ee();function n$(t){return Function.toString.call(t).indexOf("[native code]")!==-1}ee();ee();function i$(){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 ch(t,e,r){return i$()?ch=Reflect.construct.bind():ch=function(n,i,s){var o=[null];o.push.apply(o,i);var a=Function.bind.apply(n,o),u=new a;return s&&Pa(u,s.prototype),u},ch.apply(null,arguments)}function sg(t){var e=typeof Map=="function"?new Map:void 0;return sg=function(r){if(r===null||!n$(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,n)}function n(){return ch(r,arguments,lh(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Pa(n,r)},sg(t)}var GZ=hh(pH()),VZ=function(t){r$(e,t);function e(r){var n;return QH(this,e),n=t$(this,lh(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(sg(Error));ee();ee();ee();ee();ee();ee();var iJ=hh(FH());ee();ee();var aJ=hh(BH());ee();ee();ee();var He=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,He)}};ee();ee();ee();ee();var s$=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function Tt({workspaceRoot:t}){let e=ln.default.join(t,"package.json");try{return(0,$t.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new He(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new He(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function fh({workspaceRoot:t}){let{packageManager:e}=Tt({workspaceRoot:t});if(e)try{let r=s$.exec(e);if(r){let[n,i]=r;return i}}catch{}}function Ua({workspaceRoot:t}){let e=Tt({workspaceRoot:t}),r=ln.default.basename(t),{name:n=r,description:i}=e;return{name:n,description:i}}function Hk({workspaceRoot:t}){let e=ln.default.join(t,"pnpm-workspace.yaml");if((0,$t.existsSync)(e))try{let r=Jh.load((0,$t.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new He(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function dh({root:t,lockFile:e,workspaceConfig:r}){let n=s=>ln.default.join(t,s),i={root:t,lockfile:n(e),packageJson:n("package.json"),nodeModules:n("node_modules")};return r&&(i.workspaceConfig=n(r)),i}function mg({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function ph({workspaceRoot:t,workspaceGlobs:e}){if(!e)return[];let r=e.filter(n=>n.startsWith("!")).map(n=>n.slice(1));return e.filter(n=>!n.startsWith("!")).flatMap(n=>{let i=[`${n}/package.json`];return(0,gT.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**",...r]})}).map(n=>{let i=ln.default.dirname(n),{name:s,description:o}=Ua({workspaceRoot:i});return{name:s,description:o,paths:{root:i,packageJson:n,nodeModules:ln.default.join(i,"node_modules")}}})}function o$({directory:t}){let e=ln.default.resolve(process.cwd(),t);return{exists:(0,$t.existsSync)(e),absolute:e}}function zn({packageManager:t,action:e,project:r}){let n=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${n?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function a$({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(n=>r.includes(n)));return t.workspaceData.globs.every(e)}function cn({project:t,options:e}){e!=null&&e.dry||(0,$t.rmSync)(t.paths.lockfile,{force:!0})}async function _T({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,$t.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,yT.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root,preferLocal:!0,shell:process.platform==="win32"});await(0,$t.writeFile)(ln.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,$t.rmSync)(t.paths.lockfile,{force:!0})}}function u$({dependencyList:t,project:e,to:r}){let n=[];return e.workspaceData.workspaces.forEach(i=>{let{name:s}=i;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,n.push(s)}}),{dependencyList:t,updated:n}}function $n({project:t,workspace:e,to:r,logger:n,options:i}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=Tt({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:p}=u$({dependencyList:f,project:t,to:r});s[h]=p,o[h]=d}});let u=h=>{let f=o[h].length;if(f>0)return`${mT.default.green(f.toString())} ${h}`},c=a.map(u).filter(Boolean),l=`./${dT.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}, `}),n.workspaceStep(h)}else n.workspaceStep(`no workspace dependencies found in ${l}`);i!=null&&i.dry||pT.default.writeJSONSync(e.paths.packageJson,s,{spaces:2})}var Gn={name:"pnpm",lock:"pnpm-lock.yaml"};async function bT(t){let e=Fi.default.join(t.workspaceRoot,Gn.lock),r=Fi.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),n=fh({workspaceRoot:t.workspaceRoot});return dr.default.existsSync(e)||dr.default.existsSync(r)||n===Gn.name}async function c$(t){if(!await bT(t))throw new He("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=Ua(t);return{name:e,description:r,packageManager:Gn.name,paths:dh({root:t.workspaceRoot,lockFile:Gn.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:Hk(t),workspaces:ph({workspaceGlobs:Hk(t),...t})}}}async function l$(t){let{project:e,to:r,logger:n,options:i}=t,s=e.workspaceData.globs.length>0;n.mainStep(zn({action:"create",packageManager:Gn.name,project:e}));let o=Tt({workspaceRoot:e.paths.root});n.rootHeader(),o.packageManager=`${r.name}@${r.version}`,n.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),i!=null&&i.dry||(dr.default.writeJSONSync(e.paths.packageJson,o,{spaces:2}),s&&(n.rootStep('adding "pnpm-workspace.yaml"'),dr.default.writeFileSync(Fi.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
67
67
  ${e.workspaceData.globs.map(a=>` - "${a}"`).join(`
68
- `)}`))),s&&($n({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:n,options:i}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{$n({workspace:a,project:e,to:r,logger:n,options:i})}))}async function c$(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(zn({action:"remove",packageManager:Gn.name,project:e}));let s=kt({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&i&&(r.subStep('removing "pnpm-workspace.yaml"'),n!=null&&n.dry||dr.default.rmSync(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(n!=null&&n.dry)){dr.default.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=>dr.default.rm(a,{recursive:!0,force:!0})))}catch{throw new He("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function l$(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${Fi.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||dr.default.rmSync(e.paths.lockfile,{force:!0})}async function h$(t){let{project:e,options:r,logger:n}=t,i=()=>{n.subStep(`converting ${Fi.default.relative(e.paths.root,e.paths.lockfile)} to ${Gn.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&dr.default.existsSync(e.paths.lockfile))try{await(0,lT.default)(Gn.name,["import"],{stdio:"ignore",cwd:e.paths.root,preferLocal:!0,shell:process.platform==="win32"})}catch{}finally{cn({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":i(),await yT({project:e,options:r}),await s(),dr.default.rmSync(Fi.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":i(),await s();break;case"yarn":i(),await s();break}}var f$={detect:gT,read:a$,create:u$,remove:c$,clean:l$,convertLock:h$};ee();var _o={name:"npm",lock:"package-lock.json"};async function _T(t){let e=Ia.default.join(t.workspaceRoot,_o.lock),r=lh({workspaceRoot:t.workspaceRoot});return Pi.default.existsSync(e)||r===_o.name}async function d$(t){if(!await _T(t))throw new He("Not an npm project",{type:"package_manager-unexpected"});let e=kt(t),{name:r,description:n}=Ua(t),i=fg({workspaces:e.workspaces});return{name:r,description:n,packageManager:_o.name,paths:hh({root:t.workspaceRoot,lockFile:_o.lock}),workspaceData:{globs:i,workspaces:fh({workspaceGlobs:i,...t})}}}async function p$(t){let{project:e,options:r,to:n,logger:i}=t,s=e.workspaceData.globs.length>0;i.mainStep(zn({packageManager:_o.name,action:"create",project:e}));let o=kt({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${Ia.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${n.name}@${n.version}`,s?(i.rootStep(`adding "workspaces" field to ${Ia.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||Pi.default.writeJSONSync(e.paths.packageJson,o,{spaces:2}),$n({workspace:{name:"root",paths:e.paths},project:e,to:n,logger:i,options:r}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{$n({workspace:a,project:e,to:n,logger:i,options:r})})):r!=null&&r.dry||Pi.default.writeJSONSync(e.paths.packageJson,o,{spaces:2})}async function m$(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(zn({packageManager:_o.name,action:"remove",project:e}));let s=kt({workspaceRoot:e.paths.root});if(i&&(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,!(n!=null&&n.dry)){Pi.default.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=>Pi.default.rm(a,{recursive:!0,force:!0})))}catch{throw new He("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function y$(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${Ia.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||Pi.default.rmSync(e.paths.lockfile,{force:!0})}async function g$(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":cn({project:e,options:r});break;case"bun":cn({project:e,options:r});break;case"npm":break;case"yarn":cn({project:e,options:r});break}}var _$={detect:_T,read:d$,create:p$,remove:m$,clean:y$,convertLock:g$};ee();var Li={name:"yarn",lock:"yarn.lock"};async function bT(t){let e=bo.default.join(t.workspaceRoot,Li.lock),r=lh({workspaceRoot:t.workspaceRoot});return Ii.default.existsSync(e)||r===Li.name}async function b$(t){if(!await bT(t))throw new He("Not a yarn project",{type:"package_manager-unexpected"});let e=kt(t),{name:r,description:n}=Ua(t),i=fg({workspaces:e.workspaces});return{name:r,description:n,packageManager:Li.name,paths:hh({root:t.workspaceRoot,lockFile:Li.lock}),workspaceData:{globs:i,workspaces:fh({workspaceGlobs:i,...t})}}}async function v$(t){let{project:e,to:r,logger:n,options:i}=t,s=e.workspaceData.globs.length>0;n.mainStep(zn({packageManager:Li.name,action:"create",project:e}));let o=kt({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${bo.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(n.rootStep(`adding "workspaces" field to ${bo.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,i!=null&&i.dry||Ii.default.writeJSONSync(e.paths.packageJson,o,{spaces:2}),$n({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:n,options:i}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{$n({workspace:a,project:e,to:r,logger:n,options:i})})):i!=null&&i.dry||Ii.default.writeJSONSync(e.paths.packageJson,o,{spaces:2})}async function E$(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(zn({packageManager:Li.name,action:"remove",project:e}));let s=kt({workspaceRoot:e.paths.root});if(i&&(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,!(n!=null&&n.dry)){Ii.default.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=>Ii.default.rm(a,{recursive:!0,force:!0})))}catch{throw new He("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function w$(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${bo.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||Ii.default.rmSync(e.paths.lockfile,{force:!0})}async function x$(t){let{project:e,options:r,logger:n}=t,i=()=>{n.subStep(`converting ${bo.default.relative(e.paths.root,e.paths.lockfile)} to ${Li.lock}`)};switch(e.packageManager){case"pnpm":cn({project:e,options:r});break;case"bun":i(),await yT({project:e,options:r});break;case"npm":cn({project:e,options:r});break;case"yarn":break}}var S$={detect:bT,read:b$,create:v$,remove:E$,clean:w$,convertLock:x$};ee();var vo={name:"bun",lock:"bun.lockb"};async function vT(t){let e=La.default.join(t.workspaceRoot,vo.lock),r=lh({workspaceRoot:t.workspaceRoot});return Bi.default.existsSync(e)||r===vo.name}async function A$(t){if(!await vT(t))throw new He("Not a bun project",{type:"package_manager-unexpected"});let e=kt(t),{name:r,description:n}=Ua(t),i=fg({workspaces:e.workspaces});return{name:r,description:n,packageManager:vo.name,paths:hh({root:t.workspaceRoot,lockFile:vo.lock}),workspaceData:{globs:i,workspaces:fh({workspaceGlobs:i,...t})}}}async function D$(t){let{project:e,to:r,logger:n,options:i}=t,s=e.workspaceData.globs.length>0;if(!s$({project:e}))throw new He("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});n.mainStep(zn({packageManager:vo.name,action:"create",project:e}));let o=kt({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${La.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(n.rootStep(`adding "workspaces" field to ${La.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,i!=null&&i.dry||Bi.default.writeJSONSync(e.paths.packageJson,o,{spaces:2}),$n({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:n,options:i}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{$n({workspace:a,project:e,to:r,logger:n,options:i})})):i!=null&&i.dry||Bi.default.writeJSONSync(e.paths.packageJson,o,{spaces:2})}async function C$(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(zn({packageManager:vo.name,action:"remove",project:e}));let s=kt({workspaceRoot:e.paths.root});if(i&&(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,!(n!=null&&n.dry)){Bi.default.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=>Bi.default.rm(a,{recursive:!0,force:!0})))}catch{throw new He("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function R$(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${La.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||Bi.default.rmSync(e.paths.lockfile,{force:!0})}async function k$(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":cn({project:e,options:r});break;case"bun":break;case"npm":cn({project:e,options:r});break;case"yarn":cn({project:e,options:r});break}}var T$={detect:vT,read:A$,create:D$,remove:C$,clean:R$,convertLock:k$},yo={pnpm:f$,yarn:S$,npm:_$,bun:T$};ee();async function dh({root:t}){let{exists:e,absolute:r}=i$({directory:t});if(!e)throw new He(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:n,read:i}of Object.values(yo))if(await n({workspaceRoot:r}))return i({workspaceRoot:r});throw new He("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}ee();var mo=2,dg=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(mo*t),...e)}header(t){this.blankLine(),this.logger(Ht.default.bold(t))}installerFrames(){let t=`${" ".repeat(mo)} - ${this.dry?Ht.default.yellow("SKIPPED | "):Ht.default.green("OK | ")}`;return[`${t} `,`${t}> `,`${t}>> `,`${t}>>>`]}gradient(t){return(0,ET.default)("#0099F7","#F11712")(t.toString())}hero(){this.logger(Ht.default.bold(this.gradient(`
68
+ `)}`))),s&&($n({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:n,options:i}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{$n({workspace:a,project:e,to:r,logger:n,options:i})}))}async function h$(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(zn({action:"remove",packageManager:Gn.name,project:e}));let s=Tt({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&i&&(r.subStep('removing "pnpm-workspace.yaml"'),n!=null&&n.dry||dr.default.rmSync(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(n!=null&&n.dry)){dr.default.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=>dr.default.rm(a,{recursive:!0,force:!0})))}catch{throw new He("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function f$(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${Fi.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||dr.default.rmSync(e.paths.lockfile,{force:!0})}async function d$(t){let{project:e,options:r,logger:n}=t,i=()=>{n.subStep(`converting ${Fi.default.relative(e.paths.root,e.paths.lockfile)} to ${Gn.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&dr.default.existsSync(e.paths.lockfile))try{await(0,fT.default)(Gn.name,["import"],{stdio:"ignore",cwd:e.paths.root,preferLocal:!0,shell:process.platform==="win32"})}catch{}finally{cn({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":i(),await _T({project:e,options:r}),await s(),dr.default.rmSync(Fi.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":i(),await s();break;case"yarn":i(),await s();break}}var p$={detect:bT,read:c$,create:l$,remove:h$,clean:f$,convertLock:d$};ee();var _o={name:"npm",lock:"package-lock.json"};async function vT(t){let e=Ia.default.join(t.workspaceRoot,_o.lock),r=fh({workspaceRoot:t.workspaceRoot});return Pi.default.existsSync(e)||r===_o.name}async function m$(t){if(!await vT(t))throw new He("Not an npm project",{type:"package_manager-unexpected"});let e=Tt(t),{name:r,description:n}=Ua(t),i=mg({workspaces:e.workspaces});return{name:r,description:n,packageManager:_o.name,paths:dh({root:t.workspaceRoot,lockFile:_o.lock}),workspaceData:{globs:i,workspaces:ph({workspaceGlobs:i,...t})}}}async function y$(t){let{project:e,options:r,to:n,logger:i}=t,s=e.workspaceData.globs.length>0;i.mainStep(zn({packageManager:_o.name,action:"create",project:e}));let o=Tt({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${Ia.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${n.name}@${n.version}`,s?(i.rootStep(`adding "workspaces" field to ${Ia.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||Pi.default.writeJSONSync(e.paths.packageJson,o,{spaces:2}),$n({workspace:{name:"root",paths:e.paths},project:e,to:n,logger:i,options:r}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{$n({workspace:a,project:e,to:n,logger:i,options:r})})):r!=null&&r.dry||Pi.default.writeJSONSync(e.paths.packageJson,o,{spaces:2})}async function g$(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(zn({packageManager:_o.name,action:"remove",project:e}));let s=Tt({workspaceRoot:e.paths.root});if(i&&(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,!(n!=null&&n.dry)){Pi.default.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=>Pi.default.rm(a,{recursive:!0,force:!0})))}catch{throw new He("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function _$(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${Ia.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||Pi.default.rmSync(e.paths.lockfile,{force:!0})}async function b$(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":cn({project:e,options:r});break;case"bun":cn({project:e,options:r});break;case"npm":break;case"yarn":cn({project:e,options:r});break}}var v$={detect:vT,read:m$,create:y$,remove:g$,clean:_$,convertLock:b$};ee();var Li={name:"yarn",lock:"yarn.lock"};async function ET(t){let e=bo.default.join(t.workspaceRoot,Li.lock),r=fh({workspaceRoot:t.workspaceRoot});return Ii.default.existsSync(e)||r===Li.name}async function E$(t){if(!await ET(t))throw new He("Not a yarn project",{type:"package_manager-unexpected"});let e=Tt(t),{name:r,description:n}=Ua(t),i=mg({workspaces:e.workspaces});return{name:r,description:n,packageManager:Li.name,paths:dh({root:t.workspaceRoot,lockFile:Li.lock}),workspaceData:{globs:i,workspaces:ph({workspaceGlobs:i,...t})}}}async function w$(t){let{project:e,to:r,logger:n,options:i}=t,s=e.workspaceData.globs.length>0;n.mainStep(zn({packageManager:Li.name,action:"create",project:e}));let o=Tt({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${bo.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(n.rootStep(`adding "workspaces" field to ${bo.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,i!=null&&i.dry||Ii.default.writeJSONSync(e.paths.packageJson,o,{spaces:2}),$n({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:n,options:i}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{$n({workspace:a,project:e,to:r,logger:n,options:i})})):i!=null&&i.dry||Ii.default.writeJSONSync(e.paths.packageJson,o,{spaces:2})}async function x$(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(zn({packageManager:Li.name,action:"remove",project:e}));let s=Tt({workspaceRoot:e.paths.root});if(i&&(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,!(n!=null&&n.dry)){Ii.default.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=>Ii.default.rm(a,{recursive:!0,force:!0})))}catch{throw new He("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function S$(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${bo.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||Ii.default.rmSync(e.paths.lockfile,{force:!0})}async function A$(t){let{project:e,options:r,logger:n}=t,i=()=>{n.subStep(`converting ${bo.default.relative(e.paths.root,e.paths.lockfile)} to ${Li.lock}`)};switch(e.packageManager){case"pnpm":cn({project:e,options:r});break;case"bun":i(),await _T({project:e,options:r});break;case"npm":cn({project:e,options:r});break;case"yarn":break}}var D$={detect:ET,read:E$,create:w$,remove:x$,clean:S$,convertLock:A$};ee();var vo={name:"bun",lock:"bun.lockb"};async function wT(t){let e=La.default.join(t.workspaceRoot,vo.lock),r=fh({workspaceRoot:t.workspaceRoot});return Bi.default.existsSync(e)||r===vo.name}async function C$(t){if(!await wT(t))throw new He("Not a bun project",{type:"package_manager-unexpected"});let e=Tt(t),{name:r,description:n}=Ua(t),i=mg({workspaces:e.workspaces});return{name:r,description:n,packageManager:vo.name,paths:dh({root:t.workspaceRoot,lockFile:vo.lock}),workspaceData:{globs:i,workspaces:ph({workspaceGlobs:i,...t})}}}async function R$(t){let{project:e,to:r,logger:n,options:i}=t,s=e.workspaceData.globs.length>0;if(!a$({project:e}))throw new He("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});n.mainStep(zn({packageManager:vo.name,action:"create",project:e}));let o=Tt({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${La.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(n.rootStep(`adding "workspaces" field to ${La.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,i!=null&&i.dry||Bi.default.writeJSONSync(e.paths.packageJson,o,{spaces:2}),$n({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:n,options:i}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{$n({workspace:a,project:e,to:r,logger:n,options:i})})):i!=null&&i.dry||Bi.default.writeJSONSync(e.paths.packageJson,o,{spaces:2})}async function k$(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(zn({packageManager:vo.name,action:"remove",project:e}));let s=Tt({workspaceRoot:e.paths.root});if(i&&(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,!(n!=null&&n.dry)){Bi.default.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=>Bi.default.rm(a,{recursive:!0,force:!0})))}catch{throw new He("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function T$(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${La.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||Bi.default.rmSync(e.paths.lockfile,{force:!0})}async function O$(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":cn({project:e,options:r});break;case"bun":break;case"npm":cn({project:e,options:r});break;case"yarn":cn({project:e,options:r});break}}var F$={detect:wT,read:C$,create:R$,remove:k$,clean:T$,convertLock:O$},yo={pnpm:p$,yarn:D$,npm:v$,bun:F$};ee();async function mh({root:t}){let{exists:e,absolute:r}=o$({directory:t});if(!e)throw new He(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:n,read:i}of Object.values(yo))if(await n({workspaceRoot:r}))return i({workspaceRoot:r});throw new He("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}ee();var mo=2,yg=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(mo*t),...e)}header(t){this.blankLine(),this.logger(Ht.default.bold(t))}installerFrames(){let t=`${" ".repeat(mo)} - ${this.dry?Ht.default.yellow("SKIPPED | "):Ht.default.green("OK | ")}`;return[`${t} `,`${t}> `,`${t}>> `,`${t}>>>`]}gradient(t){return(0,xT.default)("#0099F7","#F11712")(t.toString())}hero(){this.logger(Ht.default.bold(this.gradient(`
69
69
  >>> TURBOREPO
70
- `)))}info(...t){this.logger(...t)}mainStep(t){this.blankLine(),this.logger(`${this.step}. ${Ht.default.underline(t)}`),this.step+=1}subStep(...t){this.logger(" ".repeat(mo),"-",this.dry?Ht.default.yellow("SKIPPED |"):Ht.default.green("OK |"),...t)}subStepFailure(...t){this.logger(" ".repeat(mo),"-",Ht.default.red("ERROR |"),...t)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...t){this.logger(" ".repeat(mo*3),"-",this.dry?Ht.default.yellow("SKIPPED |"):Ht.default.green("OK |"),...t)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...t){this.logger(" ".repeat(mo*3),"-",this.dry?Ht.default.yellow("SKIPPED |"):Ht.default.green("OK |"),...t)}blankLine(){this.logger()}error(...t){console.error(...t)}};ee();var Uk={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 ph(t){let{version:e,name:r}=t;return e?Uk[r].find(n=>(0,ST.satisfies)(e,n.semver)):Uk[r].find(n=>n.default)}async function mh(t){let{to:e,logger:r,options:n}=t,i=r!=null?r:new dg(n),s=ph(e);if(!s)throw new He("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(i.subStep(`running "${s.command} ${s.installArgs.join(" ")}"`),!(n!=null&&n.dry)){let o;i.interactive&&(o=(0,xT.default)({text:"installing dependencies...",spinner:{frames:i.installerFrames()}}).start());try{await(0,wT.default)(s.command,s.installArgs,{cwd:t.project.paths.root,preferLocal:!0,shell:process.platform==="win32"}),o&&o.stop(),i.subStep("dependencies installed")}catch(a){throw i.subStepFailure("failed to install dependencies"),a}}}ee();async function DT({project:t,convertTo:e,logger:r,options:n}){if(r.header(`Converting project from ${t.packageManager} to ${e.name}.`),!(n!=null&&n.ignoreUnchangedPackageManager)){if(t.packageManager===e.name)throw new He("You are already using this package manager",{type:"package_manager-already_in_use"});if(!e.version)throw new He(`${e.name} is not installed, or could not be located`,{type:"package_manager-could_not_be_found"})}let i=e;n!=null&&n.ignoreUnchangedPackageManager||await yo[t.packageManager].remove({project:t,to:i,logger:r,options:n}),await yo[i.name].create({project:t,to:i,logger:r,options:n}),r.mainStep("Installing dependencies"),n!=null&&n.skipInstall?r.subStep(AT.default.yellow("Skipping install")):(await yo[i.name].convertLock({project:t,to:i,logger:r,options:n}),await mh({project:t,to:i,logger:r,options:n})),r.mainStep(`Cleaning up ${t.packageManager} workspaces`),t.packageManager!==e.name&&await yo[t.packageManager].clean({project:t,logger:r})}ee();async function CT({root:t,to:e,options:r}){let n=new dg({...r,interactive:!1}),[i,s]=await Promise.all([dh({root:t}),cT()]);await DT({project:i,convertTo:{name:e,version:s[e]},logger:n,options:r})}var Wn=require("child_process"),pg=oe(require("path")),mg=require("fs"),RT=`
70
+ `)))}info(...t){this.logger(...t)}mainStep(t){this.blankLine(),this.logger(`${this.step}. ${Ht.default.underline(t)}`),this.step+=1}subStep(...t){this.logger(" ".repeat(mo),"-",this.dry?Ht.default.yellow("SKIPPED |"):Ht.default.green("OK |"),...t)}subStepFailure(...t){this.logger(" ".repeat(mo),"-",Ht.default.red("ERROR |"),...t)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...t){this.logger(" ".repeat(mo*3),"-",this.dry?Ht.default.yellow("SKIPPED |"):Ht.default.green("OK |"),...t)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...t){this.logger(" ".repeat(mo*3),"-",this.dry?Ht.default.yellow("SKIPPED |"):Ht.default.green("OK |"),...t)}blankLine(){this.logger()}error(...t){console.error(...t)}};ee();var $k={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 yh(t){let{version:e,name:r}=t;return e?$k[r].find(n=>(0,DT.satisfies)(e,n.semver)):$k[r].find(n=>n.default)}async function gh(t){let{to:e,logger:r,options:n}=t,i=r!=null?r:new yg(n),s=yh(e);if(!s)throw new He("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(i.subStep(`running "${s.command} ${s.installArgs.join(" ")}"`),!(n!=null&&n.dry)){let o;i.interactive&&(o=(0,AT.default)({text:"installing dependencies...",spinner:{frames:i.installerFrames()}}).start());try{await(0,ST.default)(s.command,s.installArgs,{cwd:t.project.paths.root,preferLocal:!0,shell:process.platform==="win32"}),o&&o.stop(),i.subStep("dependencies installed")}catch(a){throw i.subStepFailure("failed to install dependencies"),a}}}ee();async function RT({project:t,convertTo:e,logger:r,options:n}){if(r.header(`Converting project from ${t.packageManager} to ${e.name}.`),!(n!=null&&n.ignoreUnchangedPackageManager)){if(t.packageManager===e.name)throw new He("You are already using this package manager",{type:"package_manager-already_in_use"});if(!e.version)throw new He(`${e.name} is not installed, or could not be located`,{type:"package_manager-could_not_be_found"})}let i=e;n!=null&&n.ignoreUnchangedPackageManager||await yo[t.packageManager].remove({project:t,to:i,logger:r,options:n}),await yo[i.name].create({project:t,to:i,logger:r,options:n}),r.mainStep("Installing dependencies"),n!=null&&n.skipInstall?r.subStep(CT.default.yellow("Skipping install")):(await yo[i.name].convertLock({project:t,to:i,logger:r,options:n}),await gh({project:t,to:i,logger:r,options:n})),r.mainStep(`Cleaning up ${t.packageManager} workspaces`),t.packageManager!==e.name&&await yo[t.packageManager].clean({project:t,logger:r})}ee();async function kT({root:t,to:e,options:r}){let n=new yg({...r,interactive:!1}),[i,s]=await Promise.all([mh({root:t}),hT()]);await RT({project:i,convertTo:{name:e,version:s[e]},logger:n,options:r})}var Wn=require("child_process"),gg=oe(require("path")),_g=require("fs"),TT=`
71
71
  # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
72
72
 
73
73
  # dependencies
@@ -92,9 +92,9 @@ yarn-error.log*
92
92
 
93
93
  # vercel
94
94
  .vercel
95
- `,O$="git rev-parse --is-inside-work-tree",F$="hg --cwd . root";function P$(){try{return(0,Wn.execSync)(O$,{stdio:"ignore"}),!0}catch{}return!1}function I$(){try{return(0,Wn.execSync)(F$,{stdio:"ignore"}),!0}catch{}return!1}function kT(t,e){let r=!1;try{return P$()||I$()?!1:((0,Wn.execSync)("git init",{stdio:"ignore"}),(0,Wn.execSync)("git add -A",{stdio:"ignore"}),r=!0,(0,Wn.execSync)("git checkout -b main",{stdio:"ignore"}),OT(e),!0)}catch{if(r)try{(0,mg.rmSync)(pg.default.join(t,".git"),{recursive:!0,force:!0})}catch{}return!1}}function yg(t){try{return OT(t),!0}catch{return!1}}function TT(){try{L$()}catch{}}function L$(){(0,Wn.execSync)("git add -A",{stdio:"ignore"})}function OT(t){(0,Wn.execSync)(`git commit --author="Turbobot <turbobot@vercel.com>" -am "${t}"`,{stdio:"ignore"})}function FT(t){try{return(0,mg.rmSync)(pg.default.join(t,".git"),{recursive:!0,force:!0}),!0}catch{return!1}}var LT=require("child_process"),BT=oe(require("dns")),PT=5e3;function B$(){if(process.env.https_proxy)return process.env.https_proxy;try{let t=(0,LT.execSync)("npm config get https-proxy",{timeout:3e3}).toString().trim();return t!=="null"?t:void 0}catch{}}function IT(t,e){return new Promise(r=>{let n=!1,i=setTimeout(()=>{n||(n=!0,r(!1))},e);BT.default.lookup(t,s=>{n||(n=!0,clearTimeout(i),r(s===null))})})}async function NT(){if(await IT("registry.yarnpkg.com",PT))return!0;let e=B$();if(!e)return!1;let r;try{({hostname:r}=new URL(e))}catch{return!1}return r?IT(r,PT):!1}var MT={name:"package-manager"};async function jT(t){let{project:e,prompts:r}=t,{root:n,packageManager:i}=r;if(i&&e.packageManager!==i.name)await CT({root:n,to:i.name,options:{skipInstall:!0}});else return{result:"not-applicable",...MT};return{result:"success",...MT}}var gg=oe(require("path")),Eo=oe(require("fs-extra"));var N$=new Set(["basic","default"]);function yh(t){return N$.has(t)}var pr=class extends Error{constructor(r,n){var i,s;super(r);this.name="TransformError",this.transform=(i=n==null?void 0:n.transform)!=null?i:"unknown",this.fatal=(s=n==null?void 0:n.fatal)!=null?s:!0,Error.captureStackTrace(this,pr)}};var M$=["turbo","turborepo"],gh={name:"official-starter"};async function qT(t){var l;let{prompts:e,example:r,opts:n}=t,i=yh(r.name);if(!(!r.repo||r.repo.username==="vercel"&&M$.includes(r.repo.name)))return{result:"not-applicable",...gh};let o=gg.default.join(e.root,"package.json"),a=gg.default.join(e.root,"meta.json"),u=Eo.default.existsSync(o),c;try{c=Eo.default.readJsonSync(a),Eo.default.rmSync(a,{force:!0})}catch{}if(u){let h;try{h=Eo.default.readJsonSync(o)}catch{throw new pr("Unable to read package.json",{transform:gh.name,fatal:!1})}if(h){if(i&&(h.name=e.projectName),(l=h.devDependencies)!=null&&l.turbo)if(n.turboVersion)h.devDependencies.turbo=n.turboVersion;else{let f=eg().version;h.devDependencies.turbo=`^${f}`}try{Eo.default.writeJsonSync(o,h,{spaces:2})}catch{throw new pr("Unable to write package.json",{transform:gh.name,fatal:!1})}}}return{result:"success",metaJson:c,...gh}}var UT=oe(require("path")),bg=oe(require("fs-extra"));var _g={name:"git-ignore"};async function HT(t){let{prompts:e}=t,r=UT.default.join(e.root,".gitignore");try{if(!bg.default.existsSync(r))bg.default.writeFileSync(r,RT);else return{result:"not-applicable",..._g}}catch{throw new pr("Unable to write .gitignore",{transform:_g.name,fatal:!1})}return{result:"success",..._g}}var vg=oe(require("fs-extra")),$T={name:"pnpm-eslint"},j$={"eslint.workingDirectories":[{mode:"auto"}]};async function GT(t){let{project:e,prompts:r}=t,{packageManager:n}=r;if((n==null?void 0:n.name)==="pnpm")await vg.default.mkdir(`${e.paths.root}/.vscode`,{recursive:!0}),await vg.default.writeJson(`${e.paths.root}/.vscode/settings.json`,j$,{spaces:2});else return{result:"not-applicable",...$T};return{result:"success",...$T}}var zT=[qT,HT,jT,GT];var Eg=oe(require("inquirer"));async function WT({dir:t}){let e=await Eg.default.prompt({type:"input",name:"projectDirectory",message:"Where would you like to create your Turborepo?",when:!t,default:"./my-turborepo",validate:n=>{let{valid:i,error:s}=gc(n);return!i&&s?s:!0},filter:n=>n.trim()}),{projectDirectory:r=t}=e;return gc(r)}async function VT({manager:t,skipTransforms:e}){if(e)return;let r=await Zo(),n=await Eg.default.prompt({name:"packageManagerInput",type:"list",message:"Which package manager do you want to use?",when:!t||!r[t],choices:[{pm:"npm",label:"npm"},{pm:"pnpm",label:"pnpm"},{pm:"yarn",label:"yarn"},{pm:"bun",label:"Bun"}].map(({pm:s,label:o})=>({name:o,value:s,disabled:r[s]?!1:"not installed"}))}),{packageManagerInput:i=t}=n;return{name:i,version:r[i]}}var{turboGradient:YT,turboLoader:U$,info:H$,error:$a,warn:wg}=de;function $$(t){var e,r,n,i,s,o;(e=t.telemetry)==null||e.trackOptionPackageManager(t.packageManager),(r=t.telemetry)==null||r.trackOptionSkipInstall(t.skipInstall),(n=t.telemetry)==null||n.trackOptionSkipTransforms(t.skipTransforms),(i=t.telemetry)==null||i.trackOptionExample(t.example),(s=t.telemetry)==null||s.trackOptionTurboVersion(t.turboVersion),(o=t.telemetry)==null||o.trackOptionExamplePath(t.examplePath)}function xg(t,e){if(e==null||e.trackCommandStatus({command:"create",status:"error"}),t instanceof pr)$a(tt.default.bold(t.transform),tt.default.red(t.message)),t.fatal&&process.exit(1);else if(t instanceof He&&t.type!=="unknown")$a(tt.default.red(t.message)),process.exit(1);else if(t instanceof zs)$a(tt.default.red("Unable to download template from GitHub")),$a(tt.default.red(t.message)),process.exit(1);else throw t}var KT={build:"Build",dev:"Develop",test:"Test",lint:"Lint"};async function Sg(t,e){var D,U,W,N;(D=e.telemetry)==null||D.trackCommandStatus({command:"create",status:"start"}),(U=e.telemetry)==null||U.trackArgumentDirectory(!!t),$$(e);let r=!1,{packageManager:n,skipInstall:i,skipTransforms:s,noGit:o}=e,[a,u]=await Promise.all([NT(),Zo()]);a||($a("You appear to be offline. Please check your network connection and try again."),process.exit(1));let{root:c,projectName:l}=await WT({dir:t}),h=Ha.default.relative(process.cwd(),c),f=h==="",d=await VT({manager:n,skipTransforms:s});n&&e.skipTransforms&&wg("--skip-transforms conflicts with <package-manager>. The package manager argument will be ignored.");let{example:p,examplePath:y}=e,m=p&&p!=="default"?p:"basic",w={};try{w=await k0({appPath:c,example:m,isDefaultExample:yh(m),examplePath:y})}catch(V){xg(V,e.telemetry)}let{hasPackageJson:T,availableScripts:F,repoInfo:I}=w;kT(c,`feat(create-turbo): create ${m}`);let R={};try{R=await dh({root:c})}catch(V){xg(V,e.telemetry)}if(!s)for(let V of zT)try{let Q=await V({example:{repo:I,name:m},project:R,prompts:{projectName:l,root:c,packageManager:d},opts:e});Q.result==="success"&&(TT(),yg(`feat(create-turbo): apply ${Q.name} transform`)),(W=Q.metaJson)!=null&&W.maintainedByCoreTeam&&(r=!0)}catch(Q){xg(Q,e.telemetry)}let M=s||!d?{name:R.packageManager,version:u[R.packageManager]}:d;if(H$("Creating a new Turborepo with:"),de.log(),R.workspaceData.workspaces.length>0){let V=R.workspaceData.workspaces.map(te=>({group:(P=>P==="apps"?"Application packages":P==="packages"?"Library packages":P)(Ha.default.relative(c,te.paths.root).split(Ha.default.sep)[0]||""),title:Ha.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:P},L)=>{(L===0||te!==Q)&&de.log(tt.default.cyan(te)),de.log(` - ${tt.default.bold(j)}${P?`: ${P}`:""}`),Q=te})}else de.log(tt.default.cyan("apps")),de.log(` - ${tt.default.bold(l)}`);if(de.log(),T&&!i){if(e.skipTransforms&&!u[R.packageManager])wg(`Unable to install dependencies - "${m}" uses "${R.packageManager}" which could not be found.`),wg(`Try running without "--skip-transforms" to convert "${m}" to a package manager that is available on your system.`),de.log();else if(M.version){let V=U$("Installing dependencies...").start();await mh({project:R,to:M,options:{interactive:!1}}),yg("feat(create-turbo): install dependencies"),V.stop()}}r||(de.log(tt.default.dim(`Note: This is a community-maintained example.
95
+ `,P$="git rev-parse --is-inside-work-tree",I$="hg --cwd . root";function L$(){try{return(0,Wn.execSync)(P$,{stdio:"ignore"}),!0}catch{}return!1}function B$(){try{return(0,Wn.execSync)(I$,{stdio:"ignore"}),!0}catch{}return!1}function OT(t,e){let r=!1;try{return L$()||B$()?!1:((0,Wn.execSync)("git init",{stdio:"ignore"}),(0,Wn.execSync)("git add -A",{stdio:"ignore"}),r=!0,(0,Wn.execSync)("git checkout -b main",{stdio:"ignore"}),PT(e),!0)}catch{if(r)try{(0,_g.rmSync)(gg.default.join(t,".git"),{recursive:!0,force:!0})}catch{}return!1}}function bg(t){try{return PT(t),!0}catch{return!1}}function FT(){try{N$()}catch{}}function N$(){(0,Wn.execSync)("git add -A",{stdio:"ignore"})}function PT(t){(0,Wn.execSync)(`git commit --author="Turbobot <turbobot@vercel.com>" -am "${t}"`,{stdio:"ignore"})}function IT(t){try{return(0,_g.rmSync)(gg.default.join(t,".git"),{recursive:!0,force:!0}),!0}catch{return!1}}var NT=require("child_process"),MT=oe(require("dns")),LT=5e3;function M$(){if(process.env.https_proxy)return process.env.https_proxy;try{let t=(0,NT.execSync)("npm config get https-proxy",{timeout:3e3}).toString().trim();return t!=="null"?t:void 0}catch{}}function BT(t,e){return new Promise(r=>{let n=!1,i=setTimeout(()=>{n||(n=!0,r(!1))},e);MT.default.lookup(t,s=>{n||(n=!0,clearTimeout(i),r(s===null))})})}async function jT(){if(await BT("registry.yarnpkg.com",LT))return!0;let e=M$();if(!e)return!1;let r;try{({hostname:r}=new URL(e))}catch{return!1}return r?BT(r,LT):!1}var qT={name:"package-manager"};async function UT(t){let{project:e,prompts:r}=t,{root:n,packageManager:i}=r;if(i&&e.packageManager!==i.name)await kT({root:n,to:i.name,options:{skipInstall:!0}});else return{result:"not-applicable",...qT};return{result:"success",...qT}}var vg=oe(require("path")),Eo=oe(require("fs-extra"));var j$=new Set(["basic","default"]);function _h(t){return j$.has(t)}var pr=class extends Error{constructor(r,n){var i,s;super(r);this.name="TransformError",this.transform=(i=n==null?void 0:n.transform)!=null?i:"unknown",this.fatal=(s=n==null?void 0:n.fatal)!=null?s:!0,Error.captureStackTrace(this,pr)}};var q$=["turbo","turborepo"],bh={name:"official-starter"};async function HT(t){var l;let{prompts:e,example:r,opts:n}=t,i=_h(r.name);if(!(!r.repo||r.repo.username==="vercel"&&q$.includes(r.repo.name)))return{result:"not-applicable",...bh};let o=vg.default.join(e.root,"package.json"),a=vg.default.join(e.root,"meta.json"),u=Eo.default.existsSync(o),c;try{c=Eo.default.readJsonSync(a),Eo.default.rmSync(a,{force:!0})}catch{}if(u){let h;try{h=Eo.default.readJsonSync(o)}catch{throw new pr("Unable to read package.json",{transform:bh.name,fatal:!1})}if(h){if(i&&(h.name=e.projectName),(l=h.devDependencies)!=null&&l.turbo)if(n.turboVersion)h.devDependencies.turbo=n.turboVersion;else{let f=ng().version;h.devDependencies.turbo=`^${f}`}try{Eo.default.writeJsonSync(o,h,{spaces:2})}catch{throw new pr("Unable to write package.json",{transform:bh.name,fatal:!1})}}}return{result:"success",metaJson:c,...bh}}var $T=oe(require("path")),wg=oe(require("fs-extra"));var Eg={name:"git-ignore"};async function GT(t){let{prompts:e}=t,r=$T.default.join(e.root,".gitignore");try{if(!wg.default.existsSync(r))wg.default.writeFileSync(r,TT);else return{result:"not-applicable",...Eg}}catch{throw new pr("Unable to write .gitignore",{transform:Eg.name,fatal:!1})}return{result:"success",...Eg}}var xg=oe(require("fs-extra")),zT={name:"pnpm-eslint"},U$={"eslint.workingDirectories":[{mode:"auto"}]};async function WT(t){let{project:e,prompts:r}=t,{packageManager:n}=r;if((n==null?void 0:n.name)==="pnpm")await xg.default.mkdir(`${e.paths.root}/.vscode`,{recursive:!0}),await xg.default.writeJson(`${e.paths.root}/.vscode/settings.json`,U$,{spaces:2});else return{result:"not-applicable",...zT};return{result:"success",...zT}}var VT=[HT,GT,UT,WT];var Sg=oe(require("inquirer"));async function YT({dir:t}){let e=await Sg.default.prompt({type:"input",name:"projectDirectory",message:"Where would you like to create your Turborepo?",when:!t,default:"./my-turborepo",validate:n=>{let{valid:i,error:s}=gc(n);return!i&&s?s:!0},filter:n=>n.trim()}),{projectDirectory:r=t}=e;return gc(r)}async function KT({manager:t,skipTransforms:e}){if(e)return;let r=await Zo(),n=await Sg.default.prompt({name:"packageManagerInput",type:"list",message:"Which package manager do you want to use?",when:!t||!r[t],choices:[{pm:"npm",label:"npm"},{pm:"pnpm",label:"pnpm"},{pm:"yarn",label:"yarn"},{pm:"bun",label:"Bun"}].map(({pm:s,label:o})=>({name:o,value:s,disabled:r[s]?!1:"not installed"}))}),{packageManagerInput:i=t}=n;return{name:i,version:r[i]}}var{turboGradient:ZT,turboLoader:$$,info:G$,error:$a,warn:Ag}=de;function z$(t){var e,r,n,i,s,o;(e=t.telemetry)==null||e.trackOptionPackageManager(t.packageManager),(r=t.telemetry)==null||r.trackOptionSkipInstall(t.skipInstall),(n=t.telemetry)==null||n.trackOptionSkipTransforms(t.skipTransforms),(i=t.telemetry)==null||i.trackOptionExample(t.example),(s=t.telemetry)==null||s.trackOptionTurboVersion(t.turboVersion),(o=t.telemetry)==null||o.trackOptionExamplePath(t.examplePath)}function Dg(t,e){if(e==null||e.trackCommandStatus({command:"create",status:"error"}),t instanceof pr)$a(tt.default.bold(t.transform),tt.default.red(t.message)),t.fatal&&process.exit(1);else if(t instanceof He&&t.type!=="unknown")$a(tt.default.red(t.message)),process.exit(1);else if(t instanceof zs)$a(tt.default.red("Unable to download template from GitHub")),$a(tt.default.red(t.message)),process.exit(1);else throw t}var JT={build:"Build",dev:"Develop",test:"Test",lint:"Lint"};async function Cg(t,e){var D,U,W,N;(D=e.telemetry)==null||D.trackCommandStatus({command:"create",status:"start"}),(U=e.telemetry)==null||U.trackArgumentDirectory(!!t),z$(e);let r=!1,{packageManager:n,skipInstall:i,skipTransforms:s,noGit:o}=e,[a,u]=await Promise.all([jT(),Zo()]);a||($a("You appear to be offline. Please check your network connection and try again."),process.exit(1));let{root:c,projectName:l}=await YT({dir:t}),h=Ha.default.relative(process.cwd(),c),f=h==="",d=await KT({manager:n,skipTransforms:s});n&&e.skipTransforms&&Ag("--skip-transforms conflicts with <package-manager>. The package manager argument will be ignored.");let{example:p,examplePath:y}=e,m=p&&p!=="default"?p:"basic",w={};try{w=await F0({appPath:c,example:m,isDefaultExample:_h(m),examplePath:y})}catch(V){Dg(V,e.telemetry)}let{hasPackageJson:T,availableScripts:F,repoInfo:I}=w;OT(c,`feat(create-turbo): create ${m}`);let R={};try{R=await mh({root:c})}catch(V){Dg(V,e.telemetry)}if(!s)for(let V of VT)try{let Q=await V({example:{repo:I,name:m},project:R,prompts:{projectName:l,root:c,packageManager:d},opts:e});Q.result==="success"&&(FT(),bg(`feat(create-turbo): apply ${Q.name} transform`)),(W=Q.metaJson)!=null&&W.maintainedByCoreTeam&&(r=!0)}catch(Q){Dg(Q,e.telemetry)}let M=s||!d?{name:R.packageManager,version:u[R.packageManager]}:d;if(G$("Creating a new Turborepo with:"),de.log(),R.workspaceData.workspaces.length>0){let V=R.workspaceData.workspaces.map(te=>({group:(P=>P==="apps"?"Application packages":P==="packages"?"Library packages":P)(Ha.default.relative(c,te.paths.root).split(Ha.default.sep)[0]||""),title:Ha.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:P},L)=>{(L===0||te!==Q)&&de.log(tt.default.cyan(te)),de.log(` - ${tt.default.bold(j)}${P?`: ${P}`:""}`),Q=te})}else de.log(tt.default.cyan("apps")),de.log(` - ${tt.default.bold(l)}`);if(de.log(),T&&!i){if(e.skipTransforms&&!u[R.packageManager])Ag(`Unable to install dependencies - "${m}" uses "${R.packageManager}" which could not be found.`),Ag(`Try running without "--skip-transforms" to convert "${m}" to a package manager that is available on your system.`),de.log();else if(M.version){let V=$$("Installing dependencies...").start();await gh({project:R,to:M,options:{interactive:!1}}),bg("feat(create-turbo): install dependencies"),V.stop()}}r||(de.log(tt.default.dim(`Note: This is a community-maintained example.
96
96
  If you experience a problem, please submit a pull request with a fix.
97
- GitHub Issues will be closed.`)),de.log()),f?de.log(`${tt.default.bold(YT(">>> Success!"))} Your new Turborepo is ready.`):de.log(`${tt.default.bold(YT(">>> Success!"))} Created your Turborepo at ${tt.default.green(h)}`);let x=ph(M);x&&T&&(de.log(),de.log(tt.default.bold("To get started:")),f||de.log(`- Change to the directory: ${tt.default.cyan(`cd ${h}`)}`),de.log(`- Enable Remote Caching (recommended): ${tt.default.cyan(`${x.executable} turbo login`)}`),de.log(" - Learn more: https://turborepo.com/remote-cache"),de.log(),de.log("- Run commands with Turborepo:"),F.filter(V=>KT[V]).forEach(V=>{de.log(` - ${tt.default.cyan(`${x.command} run ${V}`)}: ${KT[V]} all apps and packages`)}),de.log("- Run a command twice to hit cache")),o&&(FT(c)||de.warn("Failed to remove '.git' directory")),(N=e.telemetry)==null||N.trackCommandStatus({command:"create",status:"end"})}var ZT=T0({packageInfo:bh.default}),_h,eO=new QT.ProxyAgent;JT.default.globalAgent=eO;XT.default.globalAgent=eO;var Dg=new Ga.Command;Dg.name(Ag.default.bold(de.turboGradient("create-turbo"))).description("Create a new Turborepo").usage(`${Ag.default.bold("<project-directory>")} [options]`).hook("preAction",async(t,e)=>{let{telemetry:r}=await Xy({packageInfo:{name:"create-turbo",version:bh.default.version}});e.addOption(new Ga.Option("--telemetry").default(r).hideHelp()),_h=r}).hook("postAction",async()=>{await(_h==null?void 0:_h.close())}).argument("[project-directory]").addOption(new Ga.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>",`
97
+ GitHub Issues will be closed.`)),de.log()),f?de.log(`${tt.default.bold(ZT(">>> Success!"))} Your new Turborepo is ready.`):de.log(`${tt.default.bold(ZT(">>> Success!"))} Created your Turborepo at ${tt.default.green(h)}`);let x=yh(M);x&&T&&(de.log(),de.log(tt.default.bold("To get started:")),f||de.log(`- Change to the directory: ${tt.default.cyan(`cd ${h}`)}`),de.log(`- Enable Remote Caching (recommended): ${tt.default.cyan(`${x.executable} turbo login`)}`),de.log(" - Learn more: https://turborepo.com/remote-cache"),de.log(),de.log("- Run commands with Turborepo:"),F.filter(V=>JT[V]).forEach(V=>{de.log(` - ${tt.default.cyan(`${x.command} run ${V}`)}: ${JT[V]} all apps and packages`)}),de.log("- Run a command twice to hit cache")),o&&(IT(c)||de.warn("Failed to remove '.git' directory")),(N=e.telemetry)==null||N.trackCommandStatus({command:"create",status:"end"})}var XT=P0({packageInfo:Eh.default}),vh,rO=new tO.ProxyAgent;QT.default.globalAgent=rO;eO.default.globalAgent=rO;var kg=new Ga.Command;kg.name(Rg.default.bold(de.turboGradient("create-turbo"))).description("Create a new Turborepo").usage(`${Rg.default.bold("<project-directory>")} [options]`).hook("preAction",async(t,e)=>{let{telemetry:r}=await tg({packageInfo:{name:"create-turbo",version:Eh.default.version}});e.addOption(new Ga.Option("--telemetry").default(r).hideHelp()),vh=r}).hook("postAction",async()=>{await(vh==null?void 0:vh.close())}).argument("[project-directory]").addOption(new Ga.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>",`
98
98
  An example to bootstrap the app with. You can use an example name
99
99
  from the official Turborepo repo or a GitHub URL. The URL can use
100
100
  any branch and/or subdirectory
@@ -103,7 +103,7 @@ GitHub Issues will be closed.`)),de.log()),f?de.log(`${tt.default.bold(YT(">>> S
103
103
  a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
104
104
  In this case, you must specify the path to the example separately:
105
105
  --example-path foo/bar
106
- `).option("--no-git","Remove the .git directory after creating the project",!1).version(bh.default.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").action(Sg);Qy(Dg);Dg.parseAsync().then(()=>ZT()).catch(async t=>{de.log(),de.error("Unexpected error. Please report it as a bug:"),de.log(t),de.log(),await ZT(1)});
106
+ `).option("--no-git","Remove the .git directory after creating the project",!1).version(Eh.default.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").action(Cg);rg(kg);kg.parseAsync().then(()=>XT()).catch(async t=>{de.log(),de.error("Unexpected error. Please report it as a bug:"),de.log(t),de.log(),await XT(1)});
107
107
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
108
108
  /*! Bundled license information:
109
109