@raycast/api
Version:
Build extensions for Raycast with React and Node.js.
6 lines • 4.53 MB
JavaScript
"use strict";var Eir=Object.create;var qle=Object.defineProperty;var wir=Object.getOwnPropertyDescriptor;var kir=Object.getOwnPropertyNames;var Air=Object.getPrototypeOf,Pir=Object.prototype.hasOwnProperty;var gt=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports),Nir=(i,s)=>{for(var c in s)qle(i,c,{get:s[c],enumerable:!0})},Tat=(i,s,c,p)=>{if(s&&typeof s=="object"||typeof s=="function")for(let y of kir(s))!Pir.call(i,y)&&y!==c&&qle(i,y,{get:()=>s[y],enumerable:!(p=wir(s,y))||p.enumerable});return i};var xa=(i,s,c)=>(c=i!=null?Eir(Air(i)):{},Tat(s||!i||!i.__esModule?qle(c,"default",{value:i,enumerable:!0}):c,i)),Iir=i=>Tat(qle({},"__esModule",{value:!0}),i);var RPe=gt((M7r,Dat)=>{"use strict";var xat=require("fs"),OPe;function Fir(){try{return xat.statSync("/.dockerenv"),!0}catch{return!1}}function Oir(){try{return xat.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}Dat.exports=()=>(OPe===void 0&&(OPe=Fir()||Oir()),OPe)});var MPe=gt((j7r,LPe)=>{"use strict";var Rir=require("os"),Lir=require("fs"),Cat=RPe(),Eat=()=>{if(process.platform!=="linux")return!1;if(Rir.release().toLowerCase().includes("microsoft"))return!Cat();try{return Lir.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Cat():!1}catch{return!1}};process.env.__IS_WSL_TEST__?LPe.exports=Eat:LPe.exports=Eat()});var kat=gt((B7r,wat)=>{"use strict";wat.exports=function(i){try{return i()}catch{}}});var Fat=gt((q7r,Iat)=>{Iat.exports=Nat;Nat.sync=jir;var Aat=require("fs");function Mir(i,s){var c=s.pathExt!==void 0?s.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var y=c[p].toLowerCase();if(y&&i.substr(-y.length).toLowerCase()===y)return!0}return!1}function Pat(i,s,c){return!i.isSymbolicLink()&&!i.isFile()?!1:Mir(s,c)}function Nat(i,s,c){Aat.stat(i,function(p,y){c(p,p?!1:Pat(y,i,s))})}function jir(i,s){return Pat(Aat.statSync(i),i,s)}});var jat=gt((J7r,Mat)=>{Mat.exports=Rat;Rat.sync=Bir;var Oat=require("fs");function Rat(i,s,c){Oat.stat(i,function(p,y){c(p,p?!1:Lat(y,s))})}function Bir(i,s){return Lat(Oat.statSync(i),s)}function Lat(i,s){return i.isFile()&&qir(i,s)}function qir(i,s){var c=i.mode,p=i.uid,y=i.gid,x=s.uid!==void 0?s.uid:process.getuid&&process.getuid(),w=s.gid!==void 0?s.gid:process.getgid&&process.getgid(),L=parseInt("100",8),$=parseInt("010",8),ne=parseInt("001",8),_e=L|$,Ce=c&ne||c&$&&y===w||c&L&&p===x||c&_e&&x===0;return Ce}});var BPe=gt((W7r,Bat)=>{var U7r=require("fs"),Jle;process.platform==="win32"||global.TESTING_WINDOWS?Jle=Fat():Jle=jat();Bat.exports=jPe;jPe.sync=Jir;function jPe(i,s,c){if(typeof s=="function"&&(c=s,s={}),!c){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(p,y){jPe(i,s||{},function(x,w){x?y(x):p(w)})})}Jle(i,s||{},function(p,y){p&&(p.code==="EACCES"||s&&s.ignoreErrors)&&(p=null,y=!1),c(p,y)})}function Jir(i,s){try{return Jle.sync(i,s||{})}catch(c){if(s&&s.ignoreErrors||c.code==="EACCES")return!1;throw c}}});var Vat=gt((z7r,$at)=>{$at.exports=zat;zat.sync=Wir;var qPe=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",qat=require("path"),Uir=qPe?";":":",Jat=BPe();function Uat(i){var s=new Error("not found: "+i);return s.code="ENOENT",s}function Wat(i,s){var c=s.colon||Uir,p=s.path||process.env.PATH||"",y=[""];p=p.split(c);var x="";return qPe&&(p.unshift(process.cwd()),x=s.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM",y=x.split(c),i.indexOf(".")!==-1&&y[0]!==""&&y.unshift("")),(i.match(/\//)||qPe&&i.match(/\\/))&&(p=[""]),{env:p,ext:y,extExe:x}}function zat(i,s,c){typeof s=="function"&&(c=s,s={});var p=Wat(i,s),y=p.env,x=p.ext,w=p.extExe,L=[];(function $(ne,_e){if(ne===_e)return s.all&&L.length?c(null,L):c(Uat(i));var Ce=y[ne];Ce.charAt(0)==='"'&&Ce.slice(-1)==='"'&&(Ce=Ce.slice(1,-1));var X=qat.join(Ce,i);!Ce&&/^\.[\\\/]/.test(i)&&(X=i.slice(0,2)+X),function Je(Ae,he){if(Ae===he)return $(ne+1,_e);var ct=x[Ae];Jat(X+ct,{pathExt:w},function(Ze,dr){if(!Ze&&dr)if(s.all)L.push(X+ct);else return c(null,X+ct);return Je(Ae+1,he)})}(0,x.length)})(0,y.length)}function Wir(i,s){s=s||{};for(var c=Wat(i,s),p=c.env,y=c.ext,x=c.extExe,w=[],L=0,$=p.length;L<$;L++){var ne=p[L];ne.charAt(0)==='"'&&ne.slice(-1)==='"'&&(ne=ne.slice(1,-1));var _e=qat.join(ne,i);!ne&&/^\.[\\\/]/.test(i)&&(_e=i.slice(0,2)+_e);for(var Ce=0,X=y.length;Ce<X;Ce++){var Je=_e+y[Ce],Ae;try{if(Ae=Jat.sync(Je,{pathExt:x}),Ae)if(s.all)w.push(Je);else return Je}catch{}}}if(s.all&&w.length)return w;if(s.nothrow)return null;throw Uat(i)}});var JPe=gt(($7r,Gat)=>{"use strict";Gat.exports=i=>{i=i||{};let s=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(s).find(p=>p.toUpperCase()==="PATH")||"Path"}});var Kat=gt((V7r,Qat)=>{"use strict";var Hat=require("path"),zir=Vat(),$ir=JPe()();function Yat(i,s){let c=process.cwd(),p=i.options.cwd!=null;if(p)try{process.chdir(i.options.cwd)}catch{}let y;try{y=zir.sync(i.command,{path:(i.options.env||process.env)[$ir],pathExt:s?Hat.delimiter:void 0})}catch{}finally{process.chdir(c)}return y&&(y=Hat.resolve(p?i.options.cwd:"",y)),y}function Vir(i){return Yat(i)||Yat(i,!0)}Qat.exports=Vir});var Xat=gt((G7r,WPe)=>{"use strict";var UPe=/([()\][%!^"`<>&|;, *?])/g;function Gir(i){return i=i.replace(UPe,"^$1"),i}function Hir(i,s){return i=`${i}`,i=i.replace(/(\\*)"/g,'$1$1\\"'),i=i.replace(/(\\*)$/,"$1$1"),i=`"${i}"`,i=i.replace(UPe,"^$1"),s&&(i=i.replace(UPe,"^$1")),i}WPe.exports.command=Gir;WPe.exports.argument=Hir});var eot=gt((H7r,Zat)=>{"use strict";Zat.exports=/^#!.*/});var rot=gt((Y7r,tot)=>{"use strict";var Yir=eot();tot.exports=function(i){var s=i.match(Yir);if(!s)return null;var c=s[0].replace(/#! ?/,"").split(" "),p=c[0].split("/").pop(),y=c[1];return p==="env"?y:p+(y?" "+y:"")}});var iot=gt((Q7r,not)=>{"use strict";var zPe=require("fs"),Qir=rot();function Kir(i){let c;Buffer.alloc?c=Buffer.alloc(150):(c=new Buffer(150),c.fill(0));let p;try{p=zPe.openSync(i,"r"),zPe.readSync(p,c,0,150,0),zPe.closeSync(p)}catch{}return Qir(c.toString())}not.exports=Kir});var Sot=gt((cl,bot)=>{cl=bot.exports=sf;var z_;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?z_=function(){var i=Array.prototype.slice.call(arguments,0);i.unshift("SEMVER"),console.log.apply(console,i)}:z_=function(){};cl.SEMVER_SPEC_VERSION="2.0.0";var GH=256,Ule=Number.MAX_SAFE_INTEGER||9007199254740991,$Pe=16,Xir=GH-6,HH=cl.re=[],Xp=cl.safeRe=[],Ps=cl.src=[],Qu=0,QPe="[a-zA-Z0-9-]",VPe=[["\\s",1],["\\d",GH],[QPe,Xir]];function Hle(i){for(var s=0;s<VPe.length;s++){var c=VPe[s][0],p=VPe[s][1];i=i.split(c+"*").join(c+"{0,"+p+"}").split(c+"+").join(c+"{1,"+p+"}")}return i}var Yj=Qu++;Ps[Yj]="0|[1-9]\\d*";var Qj=Qu++;Ps[Qj]="\\d+";var KPe=Qu++;Ps[KPe]="\\d*[a-zA-Z-]"+QPe+"*";var aot=Qu++;Ps[aot]="("+Ps[Yj]+")\\.("+Ps[Yj]+")\\.("+Ps[Yj]+")";var oot=Qu++;Ps[oot]="("+Ps[Qj]+")\\.("+Ps[Qj]+")\\.("+Ps[Qj]+")";var GPe=Qu++;Ps[GPe]="(?:"+Ps[Yj]+"|"+Ps[KPe]+")";var HPe=Qu++;Ps[HPe]="(?:"+Ps[Qj]+"|"+Ps[KPe]+")";var XPe=Qu++;Ps[XPe]="(?:-("+Ps[GPe]+"(?:\\."+Ps[GPe]+")*))";var ZPe=Qu++;Ps[ZPe]="(?:-?("+Ps[HPe]+"(?:\\."+Ps[HPe]+")*))";var YPe=Qu++;Ps[YPe]=QPe+"+";var QH=Qu++;Ps[QH]="(?:\\+("+Ps[YPe]+"(?:\\."+Ps[YPe]+")*))";var eNe=Qu++,cot="v?"+Ps[aot]+Ps[XPe]+"?"+Ps[QH]+"?";Ps[eNe]="^"+cot+"$";var tNe="[v=\\s]*"+Ps[oot]+Ps[ZPe]+"?"+Ps[QH]+"?",rNe=Qu++;Ps[rNe]="^"+tNe+"$";var tB=Qu++;Ps[tB]="((?:<|>)?=?)";var Wle=Qu++;Ps[Wle]=Ps[Qj]+"|x|X|\\*";var zle=Qu++;Ps[zle]=Ps[Yj]+"|x|X|\\*";var T7=Qu++;Ps[T7]="[v=\\s]*("+Ps[zle]+")(?:\\.("+Ps[zle]+")(?:\\.("+Ps[zle]+")(?:"+Ps[XPe]+")?"+Ps[QH]+"?)?)?";var Xj=Qu++;Ps[Xj]="[v=\\s]*("+Ps[Wle]+")(?:\\.("+Ps[Wle]+")(?:\\.("+Ps[Wle]+")(?:"+Ps[ZPe]+")?"+Ps[QH]+"?)?)?";var lot=Qu++;Ps[lot]="^"+Ps[tB]+"\\s*"+Ps[T7]+"$";var uot=Qu++;Ps[uot]="^"+Ps[tB]+"\\s*"+Ps[Xj]+"$";var fot=Qu++;Ps[fot]="(?:^|[^\\d])(\\d{1,"+$Pe+"})(?:\\.(\\d{1,"+$Pe+"}))?(?:\\.(\\d{1,"+$Pe+"}))?(?:$|[^\\d])";var Yle=Qu++;Ps[Yle]="(?:~>?)";var Zj=Qu++;Ps[Zj]="(\\s*)"+Ps[Yle]+"\\s+";HH[Zj]=new RegExp(Ps[Zj],"g");Xp[Zj]=new RegExp(Hle(Ps[Zj]),"g");var Zir="$1~",_ot=Qu++;Ps[_ot]="^"+Ps[Yle]+Ps[T7]+"$";var pot=Qu++;Ps[pot]="^"+Ps[Yle]+Ps[Xj]+"$";var Qle=Qu++;Ps[Qle]="(?:\\^)";var eB=Qu++;Ps[eB]="(\\s*)"+Ps[Qle]+"\\s+";HH[eB]=new RegExp(Ps[eB],"g");Xp[eB]=new RegExp(Hle(Ps[eB]),"g");var esr="$1^",dot=Qu++;Ps[dot]="^"+Ps[Qle]+Ps[T7]+"$";var mot=Qu++;Ps[mot]="^"+Ps[Qle]+Ps[Xj]+"$";var nNe=Qu++;Ps[nNe]="^"+Ps[tB]+"\\s*("+tNe+")$|^$";var iNe=Qu++;Ps[iNe]="^"+Ps[tB]+"\\s*("+cot+")$|^$";var x7=Qu++;Ps[x7]="(\\s*)"+Ps[tB]+"\\s*("+tNe+"|"+Ps[T7]+")";HH[x7]=new RegExp(Ps[x7],"g");Xp[x7]=new RegExp(Hle(Ps[x7]),"g");var tsr="$1$2$3",hot=Qu++;Ps[hot]="^\\s*("+Ps[T7]+")\\s+-\\s+("+Ps[T7]+")\\s*$";var got=Qu++;Ps[got]="^\\s*("+Ps[Xj]+")\\s+-\\s+("+Ps[Xj]+")\\s*$";var yot=Qu++;Ps[yot]="(<|>)?=?\\s*\\*";for(xk=0;xk<Qu;xk++)z_(xk,Ps[xk]),HH[xk]||(HH[xk]=new RegExp(Ps[xk]),Xp[xk]=new RegExp(Hle(Ps[xk])));var xk;cl.parse=D7;function D7(i,s){if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),i instanceof sf)return i;if(typeof i!="string"||i.length>GH)return null;var c=s.loose?Xp[rNe]:Xp[eNe];if(!c.test(i))return null;try{return new sf(i,s)}catch{return null}}cl.valid=rsr;function rsr(i,s){var c=D7(i,s);return c?c.version:null}cl.clean=nsr;function nsr(i,s){var c=D7(i.trim().replace(/^[=v]+/,""),s);return c?c.version:null}cl.SemVer=sf;function sf(i,s){if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),i instanceof sf){if(i.loose===s.loose)return i;i=i.version}else if(typeof i!="string")throw new TypeError("Invalid Version: "+i);if(i.length>GH)throw new TypeError("version is longer than "+GH+" characters");if(!(this instanceof sf))return new sf(i,s);z_("SemVer",i,s),this.options=s,this.loose=!!s.loose;var c=i.trim().match(s.loose?Xp[rNe]:Xp[eNe]);if(!c)throw new TypeError("Invalid Version: "+i);if(this.raw=i,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>Ule||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ule||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ule||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(function(p){if(/^[0-9]+$/.test(p)){var y=+p;if(y>=0&&y<Ule)return y}return p}):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}sf.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version};sf.prototype.toString=function(){return this.version};sf.prototype.compare=function(i){return z_("SemVer.compare",this.version,this.options,i),i instanceof sf||(i=new sf(i,this.options)),this.compareMain(i)||this.comparePre(i)};sf.prototype.compareMain=function(i){return i instanceof sf||(i=new sf(i,this.options)),Kj(this.major,i.major)||Kj(this.minor,i.minor)||Kj(this.patch,i.patch)};sf.prototype.comparePre=function(i){if(i instanceof sf||(i=new sf(i,this.options)),this.prerelease.length&&!i.prerelease.length)return-1;if(!this.prerelease.length&&i.prerelease.length)return 1;if(!this.prerelease.length&&!i.prerelease.length)return 0;var s=0;do{var c=this.prerelease[s],p=i.prerelease[s];if(z_("prerelease compare",s,c,p),c===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(c===void 0)return-1;if(c===p)continue;return Kj(c,p)}while(++s)};sf.prototype.inc=function(i,s){switch(i){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var c=this.prerelease.length;--c>=0;)typeof this.prerelease[c]=="number"&&(this.prerelease[c]++,c=-2);c===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error("invalid increment argument: "+i)}return this.format(),this.raw=this.version,this};cl.inc=isr;function isr(i,s,c,p){typeof c=="string"&&(p=c,c=void 0);try{return new sf(i,c).inc(s,p).version}catch{return null}}cl.diff=ssr;function ssr(i,s){if(sNe(i,s))return null;var c=D7(i),p=D7(s),y="";if(c.prerelease.length||p.prerelease.length){y="pre";var x="prerelease"}for(var w in c)if((w==="major"||w==="minor"||w==="patch")&&c[w]!==p[w])return y+w;return x}cl.compareIdentifiers=Kj;var sot=/^[0-9]+$/;function Kj(i,s){var c=sot.test(i),p=sot.test(s);return c&&p&&(i=+i,s=+s),i===s?0:c&&!p?-1:p&&!c?1:i<s?-1:1}cl.rcompareIdentifiers=asr;function asr(i,s){return Kj(s,i)}cl.major=osr;function osr(i,s){return new sf(i,s).major}cl.minor=csr;function csr(i,s){return new sf(i,s).minor}cl.patch=lsr;function lsr(i,s){return new sf(i,s).patch}cl.compare=NP;function NP(i,s,c){return new sf(i,c).compare(new sf(s,c))}cl.compareLoose=usr;function usr(i,s){return NP(i,s,!0)}cl.rcompare=fsr;function fsr(i,s,c){return NP(s,i,c)}cl.sort=_sr;function _sr(i,s){return i.sort(function(c,p){return cl.compare(c,p,s)})}cl.rsort=psr;function psr(i,s){return i.sort(function(c,p){return cl.rcompare(c,p,s)})}cl.gt=YH;function YH(i,s,c){return NP(i,s,c)>0}cl.lt=$le;function $le(i,s,c){return NP(i,s,c)<0}cl.eq=sNe;function sNe(i,s,c){return NP(i,s,c)===0}cl.neq=vot;function vot(i,s,c){return NP(i,s,c)!==0}cl.gte=aNe;function aNe(i,s,c){return NP(i,s,c)>=0}cl.lte=oNe;function oNe(i,s,c){return NP(i,s,c)<=0}cl.cmp=Vle;function Vle(i,s,c,p){switch(s){case"===":return typeof i=="object"&&(i=i.version),typeof c=="object"&&(c=c.version),i===c;case"!==":return typeof i=="object"&&(i=i.version),typeof c=="object"&&(c=c.version),i!==c;case"":case"=":case"==":return sNe(i,c,p);case"!=":return vot(i,c,p);case">":return YH(i,c,p);case">=":return aNe(i,c,p);case"<":return $le(i,c,p);case"<=":return oNe(i,c,p);default:throw new TypeError("Invalid operator: "+s)}}cl.Comparator=Jx;function Jx(i,s){if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),i instanceof Jx){if(i.loose===!!s.loose)return i;i=i.value}if(!(this instanceof Jx))return new Jx(i,s);i=i.trim().split(/\s+/).join(" "),z_("comparator",i,s),this.options=s,this.loose=!!s.loose,this.parse(i),this.semver===KH?this.value="":this.value=this.operator+this.semver.version,z_("comp",this)}var KH={};Jx.prototype.parse=function(i){var s=this.options.loose?Xp[nNe]:Xp[iNe],c=i.match(s);if(!c)throw new TypeError("Invalid comparator: "+i);this.operator=c[1],this.operator==="="&&(this.operator=""),c[2]?this.semver=new sf(c[2],this.options.loose):this.semver=KH};Jx.prototype.toString=function(){return this.value};Jx.prototype.test=function(i){return z_("Comparator.test",i,this.options.loose),this.semver===KH?!0:(typeof i=="string"&&(i=new sf(i,this.options)),Vle(i,this.operator,this.semver,this.options))};Jx.prototype.intersects=function(i,s){if(!(i instanceof Jx))throw new TypeError("a Comparator is required");(!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1});var c;if(this.operator==="")return c=new xm(i.value,s),Gle(this.value,c,s);if(i.operator==="")return c=new xm(this.value,s),Gle(i.semver,c,s);var p=(this.operator===">="||this.operator===">")&&(i.operator===">="||i.operator===">"),y=(this.operator==="<="||this.operator==="<")&&(i.operator==="<="||i.operator==="<"),x=this.semver.version===i.semver.version,w=(this.operator===">="||this.operator==="<=")&&(i.operator===">="||i.operator==="<="),L=Vle(this.semver,"<",i.semver,s)&&(this.operator===">="||this.operator===">")&&(i.operator==="<="||i.operator==="<"),$=Vle(this.semver,">",i.semver,s)&&(this.operator==="<="||this.operator==="<")&&(i.operator===">="||i.operator===">");return p||y||x&&w||L||$};cl.Range=xm;function xm(i,s){if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),i instanceof xm)return i.loose===!!s.loose&&i.includePrerelease===!!s.includePrerelease?i:new xm(i.raw,s);if(i instanceof Jx)return new xm(i.value,s);if(!(this instanceof xm))return new xm(i,s);if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=i.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(c){return this.parseRange(c.trim())},this).filter(function(c){return c.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}xm.prototype.format=function(){return this.range=this.set.map(function(i){return i.join(" ").trim()}).join("||").trim(),this.range};xm.prototype.toString=function(){return this.range};xm.prototype.parseRange=function(i){var s=this.options.loose,c=s?Xp[got]:Xp[hot];i=i.replace(c,xsr),z_("hyphen replace",i),i=i.replace(Xp[x7],tsr),z_("comparator trim",i,Xp[x7]),i=i.replace(Xp[Zj],Zir),i=i.replace(Xp[eB],esr);var p=s?Xp[nNe]:Xp[iNe],y=i.split(" ").map(function(x){return msr(x,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(y=y.filter(function(x){return!!x.match(p)})),y=y.map(function(x){return new Jx(x,this.options)},this),y};xm.prototype.intersects=function(i,s){if(!(i instanceof xm))throw new TypeError("a Range is required");return this.set.some(function(c){return c.every(function(p){return i.set.some(function(y){return y.every(function(x){return p.intersects(x,s)})})})})};cl.toComparators=dsr;function dsr(i,s){return new xm(i,s).set.map(function(c){return c.map(function(p){return p.value}).join(" ").trim().split(" ")})}function msr(i,s){return z_("comp",i,s),i=ysr(i,s),z_("caret",i),i=hsr(i,s),z_("tildes",i),i=bsr(i,s),z_("xrange",i),i=Tsr(i,s),z_("stars",i),i}function ab(i){return!i||i.toLowerCase()==="x"||i==="*"}function hsr(i,s){return i.trim().split(/\s+/).map(function(c){return gsr(c,s)}).join(" ")}function gsr(i,s){var c=s.loose?Xp[pot]:Xp[_ot];return i.replace(c,function(p,y,x,w,L){z_("tilde",i,p,y,x,w,L);var $;return ab(y)?$="":ab(x)?$=">="+y+".0.0 <"+(+y+1)+".0.0":ab(w)?$=">="+y+"."+x+".0 <"+y+"."+(+x+1)+".0":L?(z_("replaceTilde pr",L),$=">="+y+"."+x+"."+w+"-"+L+" <"+y+"."+(+x+1)+".0"):$=">="+y+"."+x+"."+w+" <"+y+"."+(+x+1)+".0",z_("tilde return",$),$})}function ysr(i,s){return i.trim().split(/\s+/).map(function(c){return vsr(c,s)}).join(" ")}function vsr(i,s){z_("caret",i,s);var c=s.loose?Xp[mot]:Xp[dot];return i.replace(c,function(p,y,x,w,L){z_("caret",i,p,y,x,w,L);var $;return ab(y)?$="":ab(x)?$=">="+y+".0.0 <"+(+y+1)+".0.0":ab(w)?y==="0"?$=">="+y+"."+x+".0 <"+y+"."+(+x+1)+".0":$=">="+y+"."+x+".0 <"+(+y+1)+".0.0":L?(z_("replaceCaret pr",L),y==="0"?x==="0"?$=">="+y+"."+x+"."+w+"-"+L+" <"+y+"."+x+"."+(+w+1):$=">="+y+"."+x+"."+w+"-"+L+" <"+y+"."+(+x+1)+".0":$=">="+y+"."+x+"."+w+"-"+L+" <"+(+y+1)+".0.0"):(z_("no pr"),y==="0"?x==="0"?$=">="+y+"."+x+"."+w+" <"+y+"."+x+"."+(+w+1):$=">="+y+"."+x+"."+w+" <"+y+"."+(+x+1)+".0":$=">="+y+"."+x+"."+w+" <"+(+y+1)+".0.0"),z_("caret return",$),$})}function bsr(i,s){return z_("replaceXRanges",i,s),i.split(/\s+/).map(function(c){return Ssr(c,s)}).join(" ")}function Ssr(i,s){i=i.trim();var c=s.loose?Xp[uot]:Xp[lot];return i.replace(c,function(p,y,x,w,L,$){z_("xRange",i,p,y,x,w,L,$);var ne=ab(x),_e=ne||ab(w),Ce=_e||ab(L),X=Ce;return y==="="&&X&&(y=""),ne?y===">"||y==="<"?p="<0.0.0":p="*":y&&X?(_e&&(w=0),L=0,y===">"?(y=">=",_e?(x=+x+1,w=0,L=0):(w=+w+1,L=0)):y==="<="&&(y="<",_e?x=+x+1:w=+w+1),p=y+x+"."+w+"."+L):_e?p=">="+x+".0.0 <"+(+x+1)+".0.0":Ce&&(p=">="+x+"."+w+".0 <"+x+"."+(+w+1)+".0"),z_("xRange return",p),p})}function Tsr(i,s){return z_("replaceStars",i,s),i.trim().replace(Xp[yot],"")}function xsr(i,s,c,p,y,x,w,L,$,ne,_e,Ce,X){return ab(c)?s="":ab(p)?s=">="+c+".0.0":ab(y)?s=">="+c+"."+p+".0":s=">="+s,ab($)?L="":ab(ne)?L="<"+(+$+1)+".0.0":ab(_e)?L="<"+$+"."+(+ne+1)+".0":Ce?L="<="+$+"."+ne+"."+_e+"-"+Ce:L="<="+L,(s+" "+L).trim()}xm.prototype.test=function(i){if(!i)return!1;typeof i=="string"&&(i=new sf(i,this.options));for(var s=0;s<this.set.length;s++)if(Dsr(this.set[s],i,this.options))return!0;return!1};function Dsr(i,s,c){for(var p=0;p<i.length;p++)if(!i[p].test(s))return!1;if(s.prerelease.length&&!c.includePrerelease){for(p=0;p<i.length;p++)if(z_(i[p].semver),i[p].semver!==KH&&i[p].semver.prerelease.length>0){var y=i[p].semver;if(y.major===s.major&&y.minor===s.minor&&y.patch===s.patch)return!0}return!1}return!0}cl.satisfies=Gle;function Gle(i,s,c){try{s=new xm(s,c)}catch{return!1}return s.test(i)}cl.maxSatisfying=Csr;function Csr(i,s,c){var p=null,y=null;try{var x=new xm(s,c)}catch{return null}return i.forEach(function(w){x.test(w)&&(!p||y.compare(w)===-1)&&(p=w,y=new sf(p,c))}),p}cl.minSatisfying=Esr;function Esr(i,s,c){var p=null,y=null;try{var x=new xm(s,c)}catch{return null}return i.forEach(function(w){x.test(w)&&(!p||y.compare(w)===1)&&(p=w,y=new sf(p,c))}),p}cl.minVersion=wsr;function wsr(i,s){i=new xm(i,s);var c=new sf("0.0.0");if(i.test(c)||(c=new sf("0.0.0-0"),i.test(c)))return c;c=null;for(var p=0;p<i.set.length;++p){var y=i.set[p];y.forEach(function(x){var w=new sf(x.semver.version);switch(x.operator){case">":w.prerelease.length===0?w.patch++:w.prerelease.push(0),w.raw=w.format();case"":case">=":(!c||YH(c,w))&&(c=w);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+x.operator)}})}return c&&i.test(c)?c:null}cl.validRange=ksr;function ksr(i,s){try{return new xm(i,s).range||"*"}catch{return null}}cl.ltr=Asr;function Asr(i,s,c){return cNe(i,s,"<",c)}cl.gtr=Psr;function Psr(i,s,c){return cNe(i,s,">",c)}cl.outside=cNe;function cNe(i,s,c,p){i=new sf(i,p),s=new xm(s,p);var y,x,w,L,$;switch(c){case">":y=YH,x=oNe,w=$le,L=">",$=">=";break;case"<":y=$le,x=aNe,w=YH,L="<",$="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Gle(i,s,p))return!1;for(var ne=0;ne<s.set.length;++ne){var _e=s.set[ne],Ce=null,X=null;if(_e.forEach(function(Je){Je.semver===KH&&(Je=new Jx(">=0.0.0")),Ce=Ce||Je,X=X||Je,y(Je.semver,Ce.semver,p)?Ce=Je:w(Je.semver,X.semver,p)&&(X=Je)}),Ce.operator===L||Ce.operator===$||(!X.operator||X.operator===L)&&x(i,X.semver))return!1;if(X.operator===$&&w(i,X.semver))return!1}return!0}cl.prerelease=Nsr;function Nsr(i,s){var c=D7(i,s);return c&&c.prerelease.length?c.prerelease:null}cl.intersects=Isr;function Isr(i,s,c){return i=new xm(i,c),s=new xm(s,c),i.intersects(s)}cl.coerce=Fsr;function Fsr(i){if(i instanceof sf)return i;if(typeof i!="string")return null;var s=i.match(Xp[fot]);return s==null?null:D7(s[1]+"."+(s[2]||"0")+"."+(s[3]||"0"))}});var Eot=gt((K7r,Cot)=>{"use strict";var Osr=require("path"),Rsr=kat(),Tot=Kat(),xot=Xat(),Lsr=iot(),Msr=Sot(),Dot=process.platform==="win32",jsr=/\.(?:com|exe)$/i,Bsr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i,qsr=Rsr(()=>Msr.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0))||!1;function Jsr(i){i.file=Tot(i);let s=i.file&&Lsr(i.file);return s?(i.args.unshift(i.file),i.command=s,Tot(i)):i.file}function Usr(i){if(!Dot)return i;let s=Jsr(i),c=!jsr.test(s);if(i.options.forceShell||c){let p=Bsr.test(s);i.command=Osr.normalize(i.command),i.command=xot.command(i.command),i.args=i.args.map(x=>xot.argument(x,p));let y=[i.command].concat(i.args).join(" ");i.args=["/d","/s","/c",`"${y}"`],i.command=process.env.comspec||"cmd.exe",i.options.windowsVerbatimArguments=!0}return i}function Wsr(i){if(qsr)return i;let s=[i.command].concat(i.args).join(" ");return Dot?(i.command=typeof i.options.shell=="string"?i.options.shell:process.env.comspec||"cmd.exe",i.args=["/d","/s","/c",`"${s}"`],i.options.windowsVerbatimArguments=!0):(typeof i.options.shell=="string"?i.command=i.options.shell:process.platform==="android"?i.command="/system/bin/sh":i.command="/bin/sh",i.args=["-c",s]),i}function zsr(i,s,c){s&&!Array.isArray(s)&&(c=s,s=null),s=s?s.slice(0):[],c=Object.assign({},c);let p={command:i,args:s,options:c,file:void 0,original:{command:i,args:s}};return c.shell?Wsr(p):Usr(p)}Cot.exports=zsr});var Aot=gt((X7r,kot)=>{"use strict";var lNe=process.platform==="win32";function uNe(i,s){return Object.assign(new Error(`${s} ${i.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${s} ${i.command}`,path:i.command,spawnargs:i.args})}function $sr(i,s){if(!lNe)return;let c=i.emit;i.emit=function(p,y){if(p==="exit"){let x=wot(y,s,"spawn");if(x)return c.call(i,"error",x)}return c.apply(i,arguments)}}function wot(i,s){return lNe&&i===1&&!s.file?uNe(s.original,"spawn"):null}function Vsr(i,s){return lNe&&i===1&&!s.file?uNe(s.original,"spawnSync"):null}kot.exports={hookChildProcess:$sr,verifyENOENT:wot,verifyENOENTSync:Vsr,notFoundError:uNe}});var Iot=gt((Z7r,rB)=>{"use strict";var Pot=require("child_process"),fNe=Eot(),_Ne=Aot();function Not(i,s,c){let p=fNe(i,s,c),y=Pot.spawn(p.command,p.args,p.options);return _Ne.hookChildProcess(y,p),y}function Gsr(i,s,c){let p=fNe(i,s,c),y=Pot.spawnSync(p.command,p.args,p.options);return y.error=y.error||_Ne.verifyENOENTSync(y.status,p),y}rB.exports=Not;rB.exports.spawn=Not;rB.exports.sync=Gsr;rB.exports._parse=fNe;rB.exports._enoent=_Ne});var Oot=gt((e5r,Fot)=>{"use strict";Fot.exports=function(i){var s=typeof i=="string"?`
`:10,c=typeof i=="string"?"\r":13;return i[i.length-1]===s&&(i=i.slice(0,i.length-1)),i[i.length-1]===c&&(i=i.slice(0,i.length-1)),i}});var Lot=gt((t5r,Kle)=>{"use strict";var XH=require("path"),Rot=JPe();Kle.exports=i=>{i=Object.assign({cwd:process.cwd(),path:process.env[Rot()]},i);let s,c=XH.resolve(i.cwd),p=[];for(;s!==c;)p.push(XH.join(c,"node_modules/.bin")),s=c,c=XH.resolve(c,"..");return p.push(XH.dirname(process.execPath)),p.concat(i.path).join(XH.delimiter)};Kle.exports.env=i=>{i=Object.assign({env:process.env},i);let s=Object.assign({},i.env),c=Rot({env:s});return i.path=s[c],s[c]=Kle.exports(i),s}});var jot=gt((r5r,Mot)=>{"use strict";var IP=Mot.exports=function(i){return i!==null&&typeof i=="object"&&typeof i.pipe=="function"};IP.writable=function(i){return IP(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object"};IP.readable=function(i){return IP(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object"};IP.duplex=function(i){return IP.writable(i)&&IP.readable(i)};IP.transform=function(i){return IP.duplex(i)&&typeof i._transform=="function"&&typeof i._transformState=="object"}});var Jot=gt((n5r,qot)=>{qot.exports=Bot;function Bot(i,s){if(i&&s)return Bot(i)(s);if(typeof i!="function")throw new TypeError("need wrapper function");return Object.keys(i).forEach(function(p){c[p]=i[p]}),c;function c(){for(var p=new Array(arguments.length),y=0;y<p.length;y++)p[y]=arguments[y];var x=i.apply(this,p),w=p[p.length-1];return typeof x=="function"&&x!==w&&Object.keys(w).forEach(function(L){x[L]=w[L]}),x}}});var dNe=gt((i5r,pNe)=>{var Uot=Jot();pNe.exports=Uot(Xle);pNe.exports.strict=Uot(Wot);Xle.proto=Xle(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Xle(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Wot(this)},configurable:!0})});function Xle(i){var s=function(){return s.called?s.value:(s.called=!0,s.value=i.apply(this,arguments))};return s.called=!1,s}function Wot(i){var s=function(){if(s.called)throw new Error(s.onceError);return s.called=!0,s.value=i.apply(this,arguments)},c=i.name||"Function wrapped with `once`";return s.onceError=c+" shouldn't be called more than once",s.called=!1,s}});var Vot=gt((s5r,$ot)=>{var Hsr=dNe(),Ysr=function(){},Qsr=function(i){return i.setHeader&&typeof i.abort=="function"},Ksr=function(i){return i.stdio&&Array.isArray(i.stdio)&&i.stdio.length===3},zot=function(i,s,c){if(typeof s=="function")return zot(i,null,s);s||(s={}),c=Hsr(c||Ysr);var p=i._writableState,y=i._readableState,x=s.readable||s.readable!==!1&&i.readable,w=s.writable||s.writable!==!1&&i.writable,L=!1,$=function(){i.writable||ne()},ne=function(){w=!1,x||c.call(i)},_e=function(){x=!1,w||c.call(i)},Ce=function(ct){c.call(i,ct?new Error("exited with error code: "+ct):null)},X=function(ct){c.call(i,ct)},Je=function(){process.nextTick(Ae)},Ae=function(){if(!L){if(x&&!(y&&y.ended&&!y.destroyed))return c.call(i,new Error("premature close"));if(w&&!(p&&p.ended&&!p.destroyed))return c.call(i,new Error("premature close"))}},he=function(){i.req.on("finish",ne)};return Qsr(i)?(i.on("complete",ne),i.on("abort",Je),i.req?he():i.on("request",he)):w&&!p&&(i.on("end",$),i.on("close",$)),Ksr(i)&&i.on("exit",Ce),i.on("end",_e),i.on("finish",ne),s.error!==!1&&i.on("error",X),i.on("close",Je),function(){L=!0,i.removeListener("complete",ne),i.removeListener("abort",Je),i.removeListener("request",he),i.req&&i.req.removeListener("finish",ne),i.removeListener("end",$),i.removeListener("close",$),i.removeListener("finish",ne),i.removeListener("exit",Ce),i.removeListener("end",_e),i.removeListener("error",X),i.removeListener("close",Je)}};$ot.exports=zot});var Yot=gt((a5r,Hot)=>{var Xsr=dNe(),Zsr=Vot(),Zle;try{Zle=require("fs")}catch{}var ZH=function(){},ear=/^v?\.0/.test(process.version),eue=function(i){return typeof i=="function"},tar=function(i){return!ear||!Zle?!1:(i instanceof(Zle.ReadStream||ZH)||i instanceof(Zle.WriteStream||ZH))&&eue(i.close)},rar=function(i){return i.setHeader&&eue(i.abort)},nar=function(i,s,c,p){p=Xsr(p);var y=!1;i.on("close",function(){y=!0}),Zsr(i,{readable:s,writable:c},function(w){if(w)return p(w);y=!0,p()});var x=!1;return function(w){if(!y&&!x){if(x=!0,tar(i))return i.close(ZH);if(rar(i))return i.abort();if(eue(i.destroy))return i.destroy();p(w||new Error("stream was destroyed"))}}},Got=function(i){i()},iar=function(i,s){return i.pipe(s)},sar=function(){var i=Array.prototype.slice.call(arguments),s=eue(i[i.length-1]||ZH)&&i.pop()||ZH;if(Array.isArray(i[0])&&(i=i[0]),i.length<2)throw new Error("pump requires two streams per minimum");var c,p=i.map(function(y,x){var w=x<i.length-1,L=x>0;return nar(y,w,L,function($){c||(c=$),$&&p.forEach(Got),!w&&(p.forEach(Got),s(c))})});return i.reduce(iar)};Hot.exports=sar});var Kot=gt((o5r,Qot)=>{"use strict";var{PassThrough:aar}=require("stream");Qot.exports=i=>{i=Object.assign({},i);let{array:s}=i,{encoding:c}=i,p=c==="buffer",y=!1;s?y=!(c||p):c=c||"utf8",p&&(c=null);let x=0,w=[],L=new aar({objectMode:y});return c&&L.setEncoding(c),L.on("data",$=>{w.push($),y?x=w.length:x+=$.length}),L.getBufferedValue=()=>s?w:p?Buffer.concat(w,x):w.join(""),L.getBufferedLength=()=>x,L}});var Xot=gt((c5r,eY)=>{"use strict";var oar=Yot(),car=Kot(),tue=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};function mNe(i,s){if(!i)return Promise.reject(new Error("Expected a stream"));s=Object.assign({maxBuffer:1/0},s);let{maxBuffer:c}=s,p;return new Promise((y,x)=>{let w=L=>{L&&(L.bufferedData=p.getBufferedValue()),x(L)};p=oar(i,car(s),L=>{if(L){w(L);return}y()}),p.on("data",()=>{p.getBufferedLength()>c&&w(new tue)})}).then(()=>p.getBufferedValue())}eY.exports=mNe;eY.exports.buffer=(i,s)=>mNe(i,Object.assign({},s,{encoding:"buffer"}));eY.exports.array=(i,s)=>mNe(i,Object.assign({},s,{array:!0}));eY.exports.MaxBufferError=tue});var ect=gt((l5r,Zot)=>{"use strict";Zot.exports=(i,s)=>(s=s||(()=>{}),i.then(c=>new Promise(p=>{p(s())}).then(()=>c),c=>new Promise(p=>{p(s())}).then(()=>{throw c})))});var tct=gt((u5r,rue)=>{rue.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&rue.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&rue.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var act=gt((f5r,sB)=>{var Yd=global.process,C7=function(i){return i&&typeof i=="object"&&typeof i.removeListener=="function"&&typeof i.emit=="function"&&typeof i.reallyExit=="function"&&typeof i.listeners=="function"&&typeof i.kill=="function"&&typeof i.pid=="number"&&typeof i.on=="function"};C7(Yd)?(rct=require("assert"),nB=tct(),nct=/^win/i.test(Yd.platform),tY=require("events"),typeof tY!="function"&&(tY=tY.EventEmitter),Yd.__signal_exit_emitter__?Qy=Yd.__signal_exit_emitter__:(Qy=Yd.__signal_exit_emitter__=new tY,Qy.count=0,Qy.emitted={}),Qy.infinite||(Qy.setMaxListeners(1/0),Qy.infinite=!0),sB.exports=function(i,s){if(!C7(global.process))return function(){};rct.equal(typeof i,"function","a callback must be provided for exit handler"),iB===!1&&hNe();var c="exit";s&&s.alwaysLast&&(c="afterexit");var p=function(){Qy.removeListener(c,i),Qy.listeners("exit").length===0&&Qy.listeners("afterexit").length===0&&nue()};return Qy.on(c,i),p},nue=function(){!iB||!C7(global.process)||(iB=!1,nB.forEach(function(s){try{Yd.removeListener(s,iue[s])}catch{}}),Yd.emit=sue,Yd.reallyExit=gNe,Qy.count-=1)},sB.exports.unload=nue,E7=function(s,c,p){Qy.emitted[s]||(Qy.emitted[s]=!0,Qy.emit(s,c,p))},iue={},nB.forEach(function(i){iue[i]=function(){if(C7(global.process)){var c=Yd.listeners(i);c.length===Qy.count&&(nue(),E7("exit",null,i),E7("afterexit",null,i),nct&&i==="SIGHUP"&&(i="SIGINT"),Yd.kill(Yd.pid,i))}}}),sB.exports.signals=function(){return nB},iB=!1,hNe=function(){iB||!C7(global.process)||(iB=!0,Qy.count+=1,nB=nB.filter(function(s){try{return Yd.on(s,iue[s]),!0}catch{return!1}}),Yd.emit=sct,Yd.reallyExit=ict)},sB.exports.load=hNe,gNe=Yd.reallyExit,ict=function(s){C7(global.process)&&(Yd.exitCode=s||0,E7("exit",Yd.exitCode,null),E7("afterexit",Yd.exitCode,null),gNe.call(Yd,Yd.exitCode))},sue=Yd.emit,sct=function(s,c){if(s==="exit"&&C7(global.process)){c!==void 0&&(Yd.exitCode=c);var p=sue.apply(this,arguments);return E7("exit",Yd.exitCode,null),E7("afterexit",Yd.exitCode,null),p}else return sue.apply(this,arguments)}):sB.exports=function(){return function(){}};var rct,nB,nct,tY,Qy,nue,E7,iue,iB,hNe,gNe,ict,sue,sct});var lct=gt((_5r,oue)=>{"use strict";var oct=require("util"),aue;if(typeof oct.getSystemErrorName=="function")oue.exports=oct.getSystemErrorName;else{try{if(aue=process.binding("uv"),typeof aue.errname!="function")throw new TypeError("uv.errname is not a function")}catch(i){console.error("execa/lib/errname: unable to establish process.binding('uv')",i),aue=null}oue.exports=i=>cct(aue,i)}oue.exports.__test__=cct;function cct(i,s){if(i)return i.errname(s);if(!(s<0))throw new Error("err >= 0");return`Unknown system error ${s}`}});var fct=gt((p5r,uct)=>{"use strict";var rY=["stdin","stdout","stderr"],lar=i=>rY.some(s=>!!i[s]);uct.exports=i=>{if(!i)return null;if(i.stdio&&lar(i))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${rY.map(y=>`\`${y}\``).join(", ")}`);if(typeof i.stdio=="string")return i.stdio;let s=i.stdio||[];if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let c=[],p=Math.max(s.length,rY.length);for(let y=0;y<p;y++){let x=null;s[y]!==void 0?x=s[y]:i[rY[y]]!==void 0&&(x=i[rY[y]]),c[y]=x}return c}});var nY=gt((d5r,QC)=>{"use strict";var uar=require("path"),dct=require("child_process"),mct=Iot(),far=Oot(),_ar=Lot(),hct=jot(),_ct=Xot(),par=ect(),dar=act(),mar=lct(),har=fct(),gar=1e3*1e3*10;function gct(i,s,c){let p;return c=Object.assign({extendEnv:!0,env:{}},c),c.extendEnv&&(c.env=Object.assign({},process.env,c.env)),c.__winShell===!0?(delete c.__winShell,p={command:i,args:s,options:c,file:i,original:{cmd:i,args:s}}):p=mct._parse(i,s,c),c=Object.assign({maxBuffer:gar,buffer:!0,stripEof:!0,preferLocal:!0,localDir:p.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},p.options),c.stdio=har(c),c.preferLocal&&(c.env=_ar.env(Object.assign({},c,{cwd:c.localDir}))),c.detached&&(c.cleanup=!1),process.platform==="win32"&&uar.basename(p.command)==="cmd.exe"&&p.args.unshift("/q"),{cmd:p.command,args:p.args,opts:c,parsed:p}}function yar(i,s){s!=null&&(hct(s)?s.pipe(i.stdin):i.stdin.end(s))}function cue(i,s){return s&&i.stripEof&&(s=far(s)),s}function yct(i,s,c){let p="/bin/sh",y=["-c",s];return c=Object.assign({},c),process.platform==="win32"&&(c.__winShell=!0,p=process.env.comspec||"cmd.exe",y=["/s","/c",`"${s}"`],c.windowsVerbatimArguments=!0),c.shell&&(p=c.shell,delete c.shell),i(p,y,c)}function pct(i,s,{encoding:c,buffer:p,maxBuffer:y}){if(!i[s])return null;let x;return p?c?x=_ct(i[s],{encoding:c,maxBuffer:y}):x=_ct.buffer(i[s],{maxBuffer:y}):x=new Promise((w,L)=>{i[s].once("end",w).once("error",L)}),x.catch(w=>{throw w.stream=s,w.message=`${s} ${w.message}`,w})}function vct(i,s){let{stdout:c,stderr:p}=i,y=i.error,{code:x,signal:w}=i,{parsed:L,joinedCmd:$}=s,ne=s.timedOut||!1;if(!y){let _e="";Array.isArray(L.opts.stdio)?(L.opts.stdio[2]!=="inherit"&&(_e+=_e.length>0?p:`
${p}`),L.opts.stdio[1]!=="inherit"&&(_e+=`
${c}`)):L.opts.stdio!=="inherit"&&(_e=`
${p}${c}`),y=new Error(`Command failed: ${$}${_e}`),y.code=x<0?mar(x):x}return y.stdout=c,y.stderr=p,y.failed=!0,y.signal=w||null,y.cmd=$,y.timedOut=ne,y}function bct(i,s){let c=i;return Array.isArray(s)&&s.length>0&&(c+=" "+s.join(" ")),c}QC.exports=(i,s,c)=>{let p=gct(i,s,c),{encoding:y,buffer:x,maxBuffer:w}=p.opts,L=bct(i,s),$;try{$=dct.spawn(p.cmd,p.args,p.opts)}catch(ct){return Promise.reject(ct)}let ne;p.opts.cleanup&&(ne=dar(()=>{$.kill()}));let _e=null,Ce=!1,X=()=>{_e&&(clearTimeout(_e),_e=null),ne&&ne()};p.opts.timeout>0&&(_e=setTimeout(()=>{_e=null,Ce=!0,$.kill(p.opts.killSignal)},p.opts.timeout));let Je=new Promise(ct=>{$.on("exit",(Ze,dr)=>{X(),ct({code:Ze,signal:dr})}),$.on("error",Ze=>{X(),ct({error:Ze})}),$.stdin&&$.stdin.on("error",Ze=>{X(),ct({error:Ze})})});function Ae(){$.stdout&&$.stdout.destroy(),$.stderr&&$.stderr.destroy()}let he=()=>par(Promise.all([Je,pct($,"stdout",{encoding:y,buffer:x,maxBuffer:w}),pct($,"stderr",{encoding:y,buffer:x,maxBuffer:w})]).then(ct=>{let Ze=ct[0];if(Ze.stdout=ct[1],Ze.stderr=ct[2],Ze.error||Ze.code!==0||Ze.signal!==null){let dr=vct(Ze,{joinedCmd:L,parsed:p,timedOut:Ce});if(dr.killed=dr.killed||$.killed,!p.opts.reject)return dr;throw dr}return{stdout:cue(p.opts,Ze.stdout),stderr:cue(p.opts,Ze.stderr),code:0,failed:!1,killed:!1,signal:null,cmd:L,timedOut:!1}}),Ae);return mct._enoent.hookChildProcess($,p.parsed),yar($,p.opts.input),$.then=(ct,Ze)=>he().then(ct,Ze),$.catch=ct=>he().catch(ct),$};QC.exports.stdout=(...i)=>QC.exports(...i).then(s=>s.stdout);QC.exports.stderr=(...i)=>QC.exports(...i).then(s=>s.stderr);QC.exports.shell=(i,s)=>yct(QC.exports,i,s);QC.exports.sync=(i,s,c)=>{let p=gct(i,s,c),y=bct(i,s);if(hct(p.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");let x=dct.spawnSync(p.cmd,p.args,p.opts);if(x.code=x.status,x.error||x.status!==0||x.signal!==null){let w=vct(x,{joinedCmd:y,parsed:p});if(!p.opts.reject)return w;throw w}return{stdout:cue(p.opts,x.stdout),stderr:cue(p.opts,x.stderr),code:0,failed:!1,signal:null,cmd:y,timedOut:!1}};QC.exports.shellSync=(i,s)=>yct(QC.exports.sync,i,s)});var Tct=gt((m5r,Sct)=>{"use strict";var lue=nY(),uue=i=>{throw i.code==="ENOENT"?new Error("Couldn't find the termux-api scripts. You can install them with: apt install termux-api"):i};Sct.exports={copy:async i=>{try{await lue("termux-clipboard-set",i)}catch(s){uue(s)}},paste:async i=>{try{return await lue.stdout("termux-clipboard-get",i)}catch(s){uue(s)}},copySync:i=>{try{lue.sync("termux-clipboard-set",i)}catch(s){uue(s)}},pasteSync:i=>{try{return lue.sync("termux-clipboard-get",i)}catch(s){uue(s)}}}});var Nct=gt((h5r,Pct)=>{"use strict";var bar=require("path"),fue=nY(),wct="xsel",kct=bar.join(__dirname,"../fallbacks/linux/xsel"),xct=["--clipboard","--input"],Dct=["--clipboard","--output"],Act=(i,s)=>{let c;return i.code==="ENOENT"?c=new Error("Couldn't find the `xsel` binary and fallback didn't work. On Debian/Ubuntu you can install xsel with: sudo apt install xsel"):(c=new Error("Both xsel and fallback failed"),c.xselError=i),c.fallbackError=s,c},Cct=async(i,s)=>{try{return await fue.stdout(wct,i,s)}catch(c){try{return await fue.stdout(kct,i,s)}catch(p){throw Act(c,p)}}},Ect=(i,s)=>{try{return fue.sync(wct,i,s)}catch(c){try{return fue.sync(kct,i,s)}catch(p){throw Act(c,p)}}};Pct.exports={copy:async i=>{await Cct(xct,i)},copySync:i=>{Ect(xct,i)},paste:i=>Cct(Dct,i),pasteSync:i=>Ect(Dct,i)}});var Fct=gt((g5r,Ict)=>{"use strict";var _ue=nY(),pue={...process.env,LC_CTYPE:"UTF-8"};Ict.exports={copy:async i=>_ue("pbcopy",{...i,env:pue}),paste:async i=>_ue.stdout("pbpaste",{...i,env:pue}),copySync:i=>_ue.sync("pbcopy",{...i,env:pue}),pasteSync:i=>_ue.sync("pbpaste",{...i,env:pue})}});var Lct=gt((y5r,Rct)=>{var Sar=require("child_process"),Oct=require("fs"),Tar=require("path");Rct.exports=function(){if(process.arch==="x64"||process.platform==="darwin")return"x64";if(process.platform==="win32"){var s=!1;try{s=!!(process.env.SYSTEMROOT&&Oct.statSync(process.env.SYSTEMROOT))}catch{}var c=s?process.env.SYSTEMROOT:"C:\\Windows",p=!1;try{p=!!Oct.statSync(Tar.join(c,"sysnative"))}catch{}return p?"x64":"x86"}if(process.platform==="linux"){var y=Sar.execSync("getconf LONG_BIT",{encoding:"utf8"});return y===`64
`?"x64":"x86"}return"x86"}});var Bct=gt((v5r,jct)=>{"use strict";var Mct=require("path"),due=nY(),xar=Lct(),mue=xar()==="x64"?Mct.join(__dirname,"../fallbacks/windows/clipboard_x86_64.exe"):Mct.join(__dirname,"../fallbacks/windows/clipboard_i686.exe");jct.exports={copy:async i=>due(mue,["--copy"],i),paste:async i=>due.stdout(mue,["--paste"],i),copySync:i=>due.sync(mue,["--copy"],i),pasteSync:i=>due.sync(mue,["--paste"],i)}});var Jct=gt(iY=>{"use strict";var Dar=MPe(),Car=Tct(),Ear=Nct(),war=Fct(),qct=Bct(),hue=(()=>{switch(process.platform){case"darwin":return war;case"win32":return qct;case"android":if(process.env.PREFIX!=="/data/data/com.termux/files/usr")throw new Error("You need to install Termux for this module to work on Android: https://termux.com");return Car;default:return Dar?qct:Ear}})();iY.write=async i=>{if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);await hue.copy({input:i})};iY.read=async()=>hue.paste({stripEof:!1});iY.writeSync=i=>{if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);hue.copySync({input:i})};iY.readSync=()=>hue.pasteSync({stripEof:!1}).stdout});var cY=gt((D5r,Yct)=>{var Par=require("node:tty"),Nar=Par?.WriteStream?.prototype?.hasColors?.()??!1,jl=(i,s)=>{if(!Nar)return y=>y;let c=`\x1B[${i}m`,p=`\x1B[${s}m`;return y=>{let x=y+"",w=x.indexOf(p);if(w===-1)return c+x+p;let L=c,$=0;for(;w!==-1;)L+=x.slice($,w)+c,$=w+p.length,w=x.indexOf(p,$);return L+=x.slice($)+p,L}},Cl={};Cl.reset=jl(0,0);Cl.bold=jl(1,22);Cl.dim=jl(2,22);Cl.italic=jl(3,23);Cl.underline=jl(4,24);Cl.overline=jl(53,55);Cl.inverse=jl(7,27);Cl.hidden=jl(8,28);Cl.strikethrough=jl(9,29);Cl.black=jl(30,39);Cl.red=jl(31,39);Cl.green=jl(32,39);Cl.yellow=jl(33,39);Cl.blue=jl(34,39);Cl.magenta=jl(35,39);Cl.cyan=jl(36,39);Cl.white=jl(37,39);Cl.gray=jl(90,39);Cl.bgBlack=jl(40,49);Cl.bgRed=jl(41,49);Cl.bgGreen=jl(42,49);Cl.bgYellow=jl(43,49);Cl.bgBlue=jl(44,49);Cl.bgMagenta=jl(45,49);Cl.bgCyan=jl(46,49);Cl.bgWhite=jl(47,49);Cl.bgGray=jl(100,49);Cl.redBright=jl(91,39);Cl.greenBright=jl(92,39);Cl.yellowBright=jl(93,39);Cl.blueBright=jl(94,39);Cl.magentaBright=jl(95,39);Cl.cyanBright=jl(96,39);Cl.whiteBright=jl(97,39);Cl.bgRedBright=jl(101,49);Cl.bgGreenBright=jl(102,49);Cl.bgYellowBright=jl(103,49);Cl.bgBlueBright=jl(104,49);Cl.bgMagentaBright=jl(105,49);Cl.bgCyanBright=jl(106,49);Cl.bgWhiteBright=jl(107,49);Yct.exports=Cl});var _lt=gt((H5r,ror)=>{ror.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","\x