@canva/cli
Version:
The official Canva CLI.
12 lines • 4.86 MB
JavaScript
#!/usr/bin/env node
// Copyright 2024 Canva Inc. All Rights Reserved.
import { createRequire } from 'module';const require = createRequire(import.meta.url);
/*! @canva/cli v2.2.0 | SEE LICENSE IN LICENSE.md */
var h6e=Object.create;var vN=Object.defineProperty;var m6e=Object.getOwnPropertyDescriptor;var oxr=Object.getOwnPropertyNames;var cxr=Object.getPrototypeOf,lxr=Object.prototype.hasOwnProperty;var g6e=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ik=e=>{throw TypeError(e)};var _6e=(e,t,r)=>t in e?vN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var f6e=(e,t)=>vN(e,"name",{value:t,configurable:!0}),ar=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Zc=(e,t)=>()=>(e&&(t=e(e=0)),t);var V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sk=(e,t)=>{for(var r in t)vN(e,r,{get:t[r],enumerable:!0})},y6e=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oxr(t))!lxr.call(e,i)&&i!==r&&vN(e,i,{get:()=>t[i],enumerable:!(n=m6e(t,i))||n.enumerable});return e};var Ss=(e,t,r)=>(r=e!=null?h6e(cxr(e)):{},y6e(t||!e||!e.__esModule?vN(r,"default",{value:e,enumerable:!0}):r,e)),ks=e=>y6e(vN({},"__esModule",{value:!0}),e);var nh=e=>[,,,h6e(e?.[g6e("metadata")]??null)],E6e=["class","method","getter","setter","accessor","field","value","get","set"],rF=e=>e!==void 0&&typeof e!="function"?ik("Function expected"):e,uxr=(e,t,r,n,i)=>({kind:E6e[e],name:t,metadata:n,addInitializer:a=>r._?ik("Already initialized"):i.push(rF(a||null))}),Jd=(e,t)=>_6e(t,g6e("metadata"),e[3]),Di=(e,t,r,n)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(r):n=a[i].call(r,n);return n},Ui=(e,t,r,n,i,a)=>{var o,c,u,p,d,x=t&7,g=!!(t&8),h=!!(t&16),y=x>3?e.length+1:x?g?1:2:0,S=E6e[x+5],T=x>3&&(e[y-1]=[]),C=e[y]||(e[y]=[]),I=x&&(!h&&!g&&(i=i.prototype),x<5&&(x>3||!h)&&m6e(x<4?i:{get[r](){return d6e(this,a)},set[r](R){return x6e(this,a,R)}},r));x?h&&x<4&&f6e(a,(x>2?"set ":x>1?"get ":"")+r):f6e(i,r);for(var k=n.length-1;k>=0;k--)p=uxr(x,r,u={},e[3],C),x&&(p.static=g,p.private=h,d=p.access={has:h?R=>pxr(i,R):R=>r in R},x^3&&(d.get=h?R=>(x^1?d6e:fxr)(R,i,x^4?a:I.get):R=>R[r]),x>2&&(d.set=h?(R,U)=>x6e(R,i,U,x^4?a:I.set):(R,U)=>R[r]=U)),c=(0,n[k])(x?x<4?h?a:I[S]:x>4?void 0:{get:I.get,set:I.set}:i,p),u._=1,x^4||c===void 0?rF(c)&&(x>4?T.unshift(c):x?h?a=c:I[S]=c:i=c):typeof c!="object"||c===null?ik("Object expected"):(rF(o=c.get)&&(I.get=o),rF(o=c.set)&&(I.set=o),rF(o=c.init)&&T.unshift(o));return x||Jd(e,i),I&&vN(i,r,I),h?x^4?a:I:i},Ym=(e,t,r)=>_6e(e,typeof t!="symbol"?t+"":t,r),ume=(e,t,r)=>t.has(e)||ik("Cannot "+r),pxr=(e,t)=>Object(t)!==t?ik('Cannot use the "in" operator on this value'):e.has(t),d6e=(e,t,r)=>(ume(e,t,"read from private field"),r?r.call(e):t.get(e)),el=(e,t,r)=>t.has(e)?ik("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),x6e=(e,t,r,n)=>(ume(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),fxr=(e,t,r)=>(ume(e,t,"access private method"),r);var OBe=V((SFn,IBe)=>{IBe.exports=DBe;DBe.sync=dhr;var CBe=ar("fs");function fhr(e,t){var r=t.pathExt!==void 0?t.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&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function ABe(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:fhr(t,r)}function DBe(e,t,r){CBe.stat(e,function(n,i){r(n,n?!1:ABe(i,e,t))})}function dhr(e,t){return ABe(CBe.statSync(e),e,t)}});var kBe=V((vFn,RBe)=>{RBe.exports=wBe;wBe.sync=xhr;var NBe=ar("fs");function wBe(e,t,r){NBe.stat(e,function(n,i){r(n,n?!1:PBe(i,t))})}function xhr(e,t){return PBe(NBe.statSync(e),t)}function PBe(e,t){return e.isFile()&&hhr(e,t)}function hhr(e,t){var r=e.mode,n=e.uid,i=e.gid,a=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),c=parseInt("100",8),u=parseInt("010",8),p=parseInt("001",8),d=c|u,x=r&p||r&u&&i===o||r&c&&n===a||r&d&&a===0;return x}});var MBe=V((bFn,LBe)=>{var TFn=ar("fs"),_Y;process.platform==="win32"||global.TESTING_WINDOWS?_Y=OBe():_Y=kBe();LBe.exports=qme;qme.sync=mhr;function qme(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){qme(e,t||{},function(a,o){a?i(a):n(o)})})}_Y(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function mhr(e,t){try{return _Y.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var qBe=V((CFn,jBe)=>{var pk=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",FBe=ar("path"),ghr=pk?";":":",BBe=MBe(),UBe=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),VBe=(e,t)=>{let r=t.colon||ghr,n=e.match(/\//)||pk&&e.match(/\\/)?[""]:[...pk?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=pk?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=pk?i.split(r):[""];return pk&&e.indexOf(".")!==-1&&a[0]!==""&&a.unshift(""),{pathEnv:n,pathExt:a,pathExtExe:i}},GBe=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:a}=VBe(e,t),o=[],c=p=>new Promise((d,x)=>{if(p===n.length)return t.all&&o.length?d(o):x(UBe(e));let g=n[p],h=/^".*"$/.test(g)?g.slice(1,-1):g,y=FBe.join(h,e),S=!h&&/^\.[\\\/]/.test(e)?e.slice(0,2)+y:y;d(u(S,p,0))}),u=(p,d,x)=>new Promise((g,h)=>{if(x===i.length)return g(c(d+1));let y=i[x];BBe(p+y,{pathExt:a},(S,T)=>{if(!S&&T)if(t.all)o.push(p+y);else return g(p+y);return g(u(p,d,x+1))})});return r?c(0).then(p=>r(null,p),r):c(0)},_hr=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=VBe(e,t),a=[];for(let o=0;o<r.length;o++){let c=r[o],u=/^".*"$/.test(c)?c.slice(1,-1):c,p=FBe.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let x=0;x<n.length;x++){let g=d+n[x];try{if(BBe.sync(g,{pathExt:i}))if(t.all)a.push(g);else return g}catch{}}}if(t.all&&a.length)return a;if(t.nothrow)return null;throw UBe(e)};jBe.exports=GBe;GBe.sync=_hr});var $Be=V((AFn,Hme)=>{"use strict";var HBe=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Hme.exports=HBe;Hme.exports.default=HBe});var zBe=V((DFn,WBe)=>{"use strict";var YBe=ar("path"),yhr=qBe(),Ehr=$Be();function KBe(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,a=i&&process.chdir!==void 0&&!process.chdir.disabled;if(a)try{process.chdir(e.options.cwd)}catch{}let o;try{o=yhr.sync(e.command,{path:r[Ehr({env:r})],pathExt:t?YBe.delimiter:void 0})}catch{}finally{a&&process.chdir(n)}return o&&(o=YBe.resolve(i?e.options.cwd:"",o)),o}function Shr(e){return KBe(e)||KBe(e,!0)}WBe.exports=Shr});var XBe=V((IFn,Yme)=>{"use strict";var $me=/([()\][%!^"`<>&|;, *?])/g;function vhr(e){return e=e.replace($me,"^$1"),e}function Thr(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace($me,"^$1"),t&&(e=e.replace($me,"^$1")),e}Yme.exports.command=vhr;Yme.exports.argument=Thr});var QBe=V((OFn,JBe)=>{"use strict";JBe.exports=/^#!(.*)/});var eUe=V((NFn,ZBe)=>{"use strict";var bhr=QBe();ZBe.exports=(e="")=>{let t=e.match(bhr);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var rUe=V((wFn,tUe)=>{"use strict";var Kme=ar("fs"),Chr=eUe();function Ahr(e){let r=Buffer.alloc(150),n;try{n=Kme.openSync(e,"r"),Kme.readSync(n,r,0,150,0),Kme.closeSync(n)}catch{}return Chr(r.toString())}tUe.exports=Ahr});var aUe=V((PFn,sUe)=>{"use strict";var Dhr=ar("path"),nUe=zBe(),iUe=XBe(),Ihr=rUe(),Ohr=process.platform==="win32",Nhr=/\.(?:com|exe)$/i,whr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Phr(e){e.file=nUe(e);let t=e.file&&Ihr(e.file);return t?(e.args.unshift(e.file),e.command=t,nUe(e)):e.file}function Rhr(e){if(!Ohr)return e;let t=Phr(e),r=!Nhr.test(t);if(e.options.forceShell||r){let n=whr.test(t);e.command=Dhr.normalize(e.command),e.command=iUe.command(e.command),e.args=e.args.map(a=>iUe.argument(a,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function khr(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:Rhr(n)}sUe.exports=khr});var lUe=V((RFn,cUe)=>{"use strict";var Wme=process.platform==="win32";function zme(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Lhr(e,t){if(!Wme)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let a=oUe(i,t);if(a)return r.call(e,"error",a)}return r.apply(e,arguments)}}function oUe(e,t){return Wme&&e===1&&!t.file?zme(t.original,"spawn"):null}function Mhr(e,t){return Wme&&e===1&&!t.file?zme(t.original,"spawnSync"):null}cUe.exports={hookChildProcess:Lhr,verifyENOENT:oUe,verifyENOENTSync:Mhr,notFoundError:zme}});var fUe=V((kFn,fk)=>{"use strict";var uUe=ar("child_process"),Xme=aUe(),Jme=lUe();function pUe(e,t,r){let n=Xme(e,t,r),i=uUe.spawn(n.command,n.args,n.options);return Jme.hookChildProcess(i,n),i}function Fhr(e,t,r){let n=Xme(e,t,r),i=uUe.spawnSync(n.command,n.args,n.options);return i.error=i.error||Jme.verifyENOENTSync(i.status,n),i}fk.exports=pUe;fk.exports.spawn=pUe;fk.exports.sync=Fhr;fk.exports._parse=Xme;fk.exports._enoent=Jme});var VUe=V((B9n,UUe)=>{"use strict";var{PassThrough:Lmr}=ar("stream");UUe.exports=function(){var e=[],t=new Lmr({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(a){return Array.isArray(a)?(a.forEach(r),this):(e.push(a),a.once("end",i.bind(null,a)),a.once("error",t.emit.bind(t,"error")),a.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(a){e=e.filter(function(o){return o!==a}),!e.length&&t.readable&&t.end()}}});var yVe=V((H8n,_Ve)=>{var BA=ar("constants"),m1r=process.cwd,FY=null,g1r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return FY||(FY=m1r.call(process)),FY};try{process.cwd()}catch{}typeof process.chdir=="function"&&(b1e=process.chdir,process.chdir=function(e){FY=null,b1e.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,b1e));var b1e;_Ve.exports=_1r;function _1r(e){BA.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(d,x,g){g&&process.nextTick(g)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(d,x,g,h){h&&process.nextTick(h)},e.lchownSync=function(){}),g1r==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(d){function x(g,h,y){var S=Date.now(),T=0;d(g,h,function C(I){if(I&&(I.code==="EACCES"||I.code==="EPERM"||I.code==="EBUSY")&&Date.now()-S<6e4){setTimeout(function(){e.stat(h,function(k,R){k&&k.code==="ENOENT"?d(g,h,C):y(I)})},T),T<100&&(T+=10);return}y&&y(I)})}return Object.setPrototypeOf&&Object.setPrototypeOf(x,d),x})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(d){function x(g,h,y,S,T,C){var I;if(C&&typeof C=="function"){var k=0;I=function(R,U,ee){if(R&&R.code==="EAGAIN"&&k<10)return k++,d.call(e,g,h,y,S,T,I);C.apply(this,arguments)}}return d.call(e,g,h,y,S,T,I)}return Object.setPrototypeOf&&Object.setPrototypeOf(x,d),x})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(d){return function(x,g,h,y,S){for(var T=0;;)try{return d.call(e,x,g,h,y,S)}catch(C){if(C.code==="EAGAIN"&&T<10){T++;continue}throw C}}})(e.readSync);function t(d){d.lchmod=function(x,g,h){d.open(x,BA.O_WRONLY|BA.O_SYMLINK,g,function(y,S){if(y){h&&h(y);return}d.fchmod(S,g,function(T){d.close(S,function(C){h&&h(T||C)})})})},d.lchmodSync=function(x,g){var h=d.openSync(x,BA.O_WRONLY|BA.O_SYMLINK,g),y=!0,S;try{S=d.fchmodSync(h,g),y=!1}finally{if(y)try{d.closeSync(h)}catch{}else d.closeSync(h)}return S}}function r(d){BA.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(x,g,h,y){d.open(x,BA.O_SYMLINK,function(S,T){if(S){y&&y(S);return}d.futimes(T,g,h,function(C){d.close(T,function(I){y&&y(C||I)})})})},d.lutimesSync=function(x,g,h){var y=d.openSync(x,BA.O_SYMLINK),S,T=!0;try{S=d.futimesSync(y,g,h),T=!1}finally{if(T)try{d.closeSync(y)}catch{}else d.closeSync(y)}return S}):d.futimes&&(d.lutimes=function(x,g,h,y){y&&process.nextTick(y)},d.lutimesSync=function(){})}function n(d){return d&&function(x,g,h){return d.call(e,x,g,function(y){p(y)&&(y=null),h&&h.apply(this,arguments)})}}function i(d){return d&&function(x,g){try{return d.call(e,x,g)}catch(h){if(!p(h))throw h}}}function a(d){return d&&function(x,g,h,y){return d.call(e,x,g,h,function(S){p(S)&&(S=null),y&&y.apply(this,arguments)})}}function o(d){return d&&function(x,g,h){try{return d.call(e,x,g,h)}catch(y){if(!p(y))throw y}}}function c(d){return d&&function(x,g,h){typeof g=="function"&&(h=g,g=null);function y(S,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),h&&h.apply(this,arguments)}return g?d.call(e,x,g,y):d.call(e,x,y)}}function u(d){return d&&function(x,g){var h=g?d.call(e,x,g):d.call(e,x);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function p(d){if(!d||d.code==="ENOSYS")return!0;var x=!process.getuid||process.getuid()!==0;return!!(x&&(d.code==="EINVAL"||d.code==="EPERM"))}}});var vVe=V(($8n,SVe)=>{var EVe=ar("stream").Stream;SVe.exports=y1r;function y1r(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);EVe.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),c=0,u=o.length;c<u;c++){var p=o[c];this[p]=i[p]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(d,x){if(d){a.emit("error",d),a.readable=!1;return}a.fd=x,a.emit("open",x),a._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);EVe.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var a=Object.keys(i),o=0,c=a.length;o<c;o++){var u=a[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var bVe=V((Y8n,TVe)=>{"use strict";TVe.exports=S1r;var E1r=Object.getPrototypeOf||function(e){return e.__proto__};function S1r(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:E1r(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var IVe=V((K8n,D1e)=>{var tl=ar("fs"),v1r=yVe(),T1r=vVe(),b1r=bVe(),BY=ar("util"),w0,VY;typeof Symbol=="function"&&typeof Symbol.for=="function"?(w0=Symbol.for("graceful-fs.queue"),VY=Symbol.for("graceful-fs.previous")):(w0="___graceful-fs.queue",VY="___graceful-fs.previous");function C1r(){}function DVe(e,t){Object.defineProperty(e,w0,{get:function(){return t}})}var BN=C1r;BY.debuglog?BN=BY.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(BN=function(){var e=BY.format.apply(BY,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});tl[w0]||(CVe=global[w0]||[],DVe(tl,CVe),tl.close=(function(e){function t(r,n){return e.call(tl,r,function(i){i||AVe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,VY,{value:e}),t})(tl.close),tl.closeSync=(function(e){function t(r){e.apply(tl,arguments),AVe()}return Object.defineProperty(t,VY,{value:e}),t})(tl.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){BN(tl[w0]),ar("assert").equal(tl[w0].length,0)}));var CVe;global[w0]||DVe(global,tl[w0]);D1e.exports=C1e(b1r(tl));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!tl.__patched&&(D1e.exports=C1e(tl),tl.__patched=!0);function C1e(e){v1r(e),e.gracefulify=C1e,e.createReadStream=U,e.createWriteStream=ee;var t=e.readFile;e.readFile=r;function r(xe,st,lt){return typeof st=="function"&&(lt=st,st=null),Dt(xe,st,lt);function Dt(Et,jt,_t,pr){return t(Et,jt,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?dk([Dt,[Et,jt,_t],it,pr||Date.now(),Date.now()]):typeof _t=="function"&&_t.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(xe,st,lt,Dt){return typeof lt=="function"&&(Dt=lt,lt=null),Et(xe,st,lt,Dt);function Et(jt,_t,pr,it,gt){return n(jt,_t,pr,function(qe){qe&&(qe.code==="EMFILE"||qe.code==="ENFILE")?dk([Et,[jt,_t,pr,it],qe,gt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=e.appendFile;a&&(e.appendFile=o);function o(xe,st,lt,Dt){return typeof lt=="function"&&(Dt=lt,lt=null),Et(xe,st,lt,Dt);function Et(jt,_t,pr,it,gt){return a(jt,_t,pr,function(qe){qe&&(qe.code==="EMFILE"||qe.code==="ENFILE")?dk([Et,[jt,_t,pr,it],qe,gt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=u);function u(xe,st,lt,Dt){return typeof lt=="function"&&(Dt=lt,lt=0),Et(xe,st,lt,Dt);function Et(jt,_t,pr,it,gt){return c(jt,_t,pr,function(qe){qe&&(qe.code==="EMFILE"||qe.code==="ENFILE")?dk([Et,[jt,_t,pr,it],qe,gt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var p=e.readdir;e.readdir=x;var d=/^v[0-5]\./;function x(xe,st,lt){typeof st=="function"&&(lt=st,st=null);var Dt=d.test(process.version)?function(_t,pr,it,gt){return p(_t,Et(_t,pr,it,gt))}:function(_t,pr,it,gt){return p(_t,pr,Et(_t,pr,it,gt))};return Dt(xe,st,lt);function Et(jt,_t,pr,it){return function(gt,qe){gt&&(gt.code==="EMFILE"||gt.code==="ENFILE")?dk([Dt,[jt,_t,pr],gt,it||Date.now(),Date.now()]):(qe&&qe.sort&&qe.sort(),typeof pr=="function"&&pr.call(this,gt,qe))}}}if(process.version.substr(0,4)==="v0.8"){var g=T1r(e);C=g.ReadStream,k=g.WriteStream}var h=e.ReadStream;h&&(C.prototype=Object.create(h.prototype),C.prototype.open=I);var y=e.WriteStream;y&&(k.prototype=Object.create(y.prototype),k.prototype.open=R),Object.defineProperty(e,"ReadStream",{get:function(){return C},set:function(xe){C=xe},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return k},set:function(xe){k=xe},enumerable:!0,configurable:!0});var S=C;Object.defineProperty(e,"FileReadStream",{get:function(){return S},set:function(xe){S=xe},enumerable:!0,configurable:!0});var T=k;Object.defineProperty(e,"FileWriteStream",{get:function(){return T},set:function(xe){T=xe},enumerable:!0,configurable:!0});function C(xe,st){return this instanceof C?(h.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function I(){var xe=this;$e(xe.path,xe.flags,xe.mode,function(st,lt){st?(xe.autoClose&&xe.destroy(),xe.emit("error",st)):(xe.fd=lt,xe.emit("open",lt),xe.read())})}function k(xe,st){return this instanceof k?(y.apply(this,arguments),this):k.apply(Object.create(k.prototype),arguments)}function R(){var xe=this;$e(xe.path,xe.flags,xe.mode,function(st,lt){st?(xe.destroy(),xe.emit("error",st)):(xe.fd=lt,xe.emit("open",lt))})}function U(xe,st){return new e.ReadStream(xe,st)}function ee(xe,st){return new e.WriteStream(xe,st)}var ce=e.open;e.open=$e;function $e(xe,st,lt,Dt){return typeof lt=="function"&&(Dt=lt,lt=null),Et(xe,st,lt,Dt);function Et(jt,_t,pr,it,gt){return ce(jt,_t,pr,function(qe,Re){qe&&(qe.code==="EMFILE"||qe.code==="ENFILE")?dk([Et,[jt,_t,pr,it],qe,gt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}return e}function dk(e){BN("ENQUEUE",e[0].name,e[1]),tl[w0].push(e),A1e()}var UY;function AVe(){for(var e=Date.now(),t=0;t<tl[w0].length;++t)tl[w0][t].length>2&&(tl[w0][t][3]=e,tl[w0][t][4]=e);A1e()}function A1e(){if(clearTimeout(UY),UY=void 0,tl[w0].length!==0){var e=tl[w0].shift(),t=e[0],r=e[1],n=e[2],i=e[3],a=e[4];if(i===void 0)BN("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){BN("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var c=Date.now()-a,u=Math.max(a-i,1),p=Math.min(u*1.2,100);c>=p?(BN("RETRY",t.name,r),t.apply(null,r.concat([i]))):tl[w0].push(e)}UY===void 0&&(UY=setTimeout(A1e,0))}}});var vF=V((EBn,cGe)=>{"use strict";var igr=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};cGe.exports=igr});var TF=V((SBn,lGe)=>{"use strict";var sgr="2.0.0",agr=Number.MAX_SAFE_INTEGER||9007199254740991,ogr=16,cgr=250,lgr=["major","premajor","minor","preminor","patch","prepatch","prerelease"];lGe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ogr,MAX_SAFE_BUILD_LENGTH:cgr,MAX_SAFE_INTEGER:agr,RELEASE_TYPES:lgr,SEMVER_SPEC_VERSION:sgr,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var _k=V((KS,uGe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:G1e,MAX_SAFE_BUILD_LENGTH:ugr,MAX_LENGTH:pgr}=TF(),fgr=vF();KS=uGe.exports={};var dgr=KS.re=[],xgr=KS.safeRe=[],jn=KS.src=[],hgr=KS.safeSrc=[],qn=KS.t={},mgr=0,j1e="[a-zA-Z0-9-]",ggr=[["\\s",1],["\\d",pgr],[j1e,ugr]],_gr=e=>{for(let[t,r]of ggr)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},vs=(e,t,r)=>{let n=_gr(t),i=mgr++;fgr(e,i,t),qn[e]=i,jn[i]=t,hgr[i]=n,dgr[i]=new RegExp(t,r?"g":void 0),xgr[i]=new RegExp(n,r?"g":void 0)};vs("NUMERICIDENTIFIER","0|[1-9]\\d*");vs("NUMERICIDENTIFIERLOOSE","\\d+");vs("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${j1e}*`);vs("MAINVERSION",`(${jn[qn.NUMERICIDENTIFIER]})\\.(${jn[qn.NUMERICIDENTIFIER]})\\.(${jn[qn.NUMERICIDENTIFIER]})`);vs("MAINVERSIONLOOSE",`(${jn[qn.NUMERICIDENTIFIERLOOSE]})\\.(${jn[qn.NUMERICIDENTIFIERLOOSE]})\\.(${jn[qn.NUMERICIDENTIFIERLOOSE]})`);vs("PRERELEASEIDENTIFIER",`(?:${jn[qn.NONNUMERICIDENTIFIER]}|${jn[qn.NUMERICIDENTIFIER]})`);vs("PRERELEASEIDENTIFIERLOOSE",`(?:${jn[qn.NONNUMERICIDENTIFIER]}|${jn[qn.NUMERICIDENTIFIERLOOSE]})`);vs("PRERELEASE",`(?:-(${jn[qn.PRERELEASEIDENTIFIER]}(?:\\.${jn[qn.PRERELEASEIDENTIFIER]})*))`);vs("PRERELEASELOOSE",`(?:-?(${jn[qn.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${jn[qn.PRERELEASEIDENTIFIERLOOSE]})*))`);vs("BUILDIDENTIFIER",`${j1e}+`);vs("BUILD",`(?:\\+(${jn[qn.BUILDIDENTIFIER]}(?:\\.${jn[qn.BUILDIDENTIFIER]})*))`);vs("FULLPLAIN",`v?${jn[qn.MAINVERSION]}${jn[qn.PRERELEASE]}?${jn[qn.BUILD]}?`);vs("FULL",`^${jn[qn.FULLPLAIN]}$`);vs("LOOSEPLAIN",`[v=\\s]*${jn[qn.MAINVERSIONLOOSE]}${jn[qn.PRERELEASELOOSE]}?${jn[qn.BUILD]}?`);vs("LOOSE",`^${jn[qn.LOOSEPLAIN]}$`);vs("GTLT","((?:<|>)?=?)");vs("XRANGEIDENTIFIERLOOSE",`${jn[qn.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);vs("XRANGEIDENTIFIER",`${jn[qn.NUMERICIDENTIFIER]}|x|X|\\*`);vs("XRANGEPLAIN",`[v=\\s]*(${jn[qn.XRANGEIDENTIFIER]})(?:\\.(${jn[qn.XRANGEIDENTIFIER]})(?:\\.(${jn[qn.XRANGEIDENTIFIER]})(?:${jn[qn.PRERELEASE]})?${jn[qn.BUILD]}?)?)?`);vs("XRANGEPLAINLOOSE",`[v=\\s]*(${jn[qn.XRANGEIDENTIFIERLOOSE]})(?:\\.(${jn[qn.XRANGEIDENTIFIERLOOSE]})(?:\\.(${jn[qn.XRANGEIDENTIFIERLOOSE]})(?:${jn[qn.PRERELEASELOOSE]})?${jn[qn.BUILD]}?)?)?`);vs("XRANGE",`^${jn[qn.GTLT]}\\s*${jn[qn.XRANGEPLAIN]}$`);vs("XRANGELOOSE",`^${jn[qn.GTLT]}\\s*${jn[qn.XRANGEPLAINLOOSE]}$`);vs("COERCEPLAIN",`(^|[^\\d])(\\d{1,${G1e}})(?:\\.(\\d{1,${G1e}}))?(?:\\.(\\d{1,${G1e}}))?`);vs("COERCE",`${jn[qn.COERCEPLAIN]}(?:$|[^\\d])`);vs("COERCEFULL",jn[qn.COERCEPLAIN]+`(?:${jn[qn.PRERELEASE]})?(?:${jn[qn.BUILD]})?(?:$|[^\\d])`);vs("COERCERTL",jn[qn.COERCE],!0);vs("COERCERTLFULL",jn[qn.COERCEFULL],!0);vs("LONETILDE","(?:~>?)");vs("TILDETRIM",`(\\s*)${jn[qn.LONETILDE]}\\s+`,!0);KS.tildeTrimReplace="$1~";vs("TILDE",`^${jn[qn.LONETILDE]}${jn[qn.XRANGEPLAIN]}$`);vs("TILDELOOSE",`^${jn[qn.LONETILDE]}${jn[qn.XRANGEPLAINLOOSE]}$`);vs("LONECARET","(?:\\^)");vs("CARETTRIM",`(\\s*)${jn[qn.LONECARET]}\\s+`,!0);KS.caretTrimReplace="$1^";vs("CARET",`^${jn[qn.LONECARET]}${jn[qn.XRANGEPLAIN]}$`);vs("CARETLOOSE",`^${jn[qn.LONECARET]}${jn[qn.XRANGEPLAINLOOSE]}$`);vs("COMPARATORLOOSE",`^${jn[qn.GTLT]}\\s*(${jn[qn.LOOSEPLAIN]})$|^$`);vs("COMPARATOR",`^${jn[qn.GTLT]}\\s*(${jn[qn.FULLPLAIN]})$|^$`);vs("COMPARATORTRIM",`(\\s*)${jn[qn.GTLT]}\\s*(${jn[qn.LOOSEPLAIN]}|${jn[qn.XRANGEPLAIN]})`,!0);KS.comparatorTrimReplace="$1$2$3";vs("HYPHENRANGE",`^\\s*(${jn[qn.XRANGEPLAIN]})\\s+-\\s+(${jn[qn.XRANGEPLAIN]})\\s*$`);vs("HYPHENRANGELOOSE",`^\\s*(${jn[qn.XRANGEPLAINLOOSE]})\\s+-\\s+(${jn[qn.XRANGEPLAINLOOSE]})\\s*$`);vs("STAR","(<|>)?=?\\s*\\*");vs("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");vs("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var WY=V((vBn,pGe)=>{"use strict";var ygr=Object.freeze({loose:!0}),Egr=Object.freeze({}),Sgr=e=>e?typeof e!="object"?ygr:e:Egr;pGe.exports=Sgr});var q1e=V((TBn,xGe)=>{"use strict";var fGe=/^[0-9]+$/,dGe=(e,t)=>{let r=fGe.test(e),n=fGe.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},vgr=(e,t)=>dGe(t,e);xGe.exports={compareIdentifiers:dGe,rcompareIdentifiers:vgr}});var gp=V((bBn,mGe)=>{"use strict";var zY=vF(),{MAX_LENGTH:hGe,MAX_SAFE_INTEGER:XY}=TF(),{safeRe:JY,t:QY}=_k(),Tgr=WY(),{compareIdentifiers:yk}=q1e(),H1e=class e{constructor(t,r){if(r=Tgr(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>hGe)throw new TypeError(`version is longer than ${hGe} characters`);zY("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?JY[QY.LOOSE]:JY[QY.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>XY||this.major<0)throw new TypeError("Invalid major version");if(this.minor>XY||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>XY||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let a=+i;if(a>=0&&a<XY)return a}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(zY("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),yk(this.major,t.major)||yk(this.minor,t.minor)||yk(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(zY("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return yk(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(zY("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return yk(n,i)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?JY[QY.PRERELEASELOOSE]:JY[QY.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let a=[r,i];n===!1&&(a=[r]),yk(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};mGe.exports=H1e});var jN=V((CBn,_Ge)=>{"use strict";var gGe=gp(),bgr=(e,t,r=!1)=>{if(e instanceof gGe)return e;try{return new gGe(e,t)}catch(n){if(!r)return null;throw n}};_Ge.exports=bgr});var $1e=V((ABn,EGe)=>{"use strict";var yGe=jN(),Cgr=(e,t)=>{let r=yGe(e,null,!0),n=yGe(t,null,!0),i=r.compare(n);if(i===0)return null;let a=i>0,o=a?r:n,c=a?n:r,u=!!o.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(o)===0)return c.minor&&!c.patch?"minor":"patch"}let d=u?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"};EGe.exports=Cgr});var uh=V((DBn,vGe)=>{"use strict";var SGe=gp(),Agr=(e,t,r)=>new SGe(e,r).compare(new SGe(t,r));vGe.exports=Agr});var Ek=V((IBn,TGe)=>{"use strict";var Dgr=uh(),Igr=(e,t,r)=>Dgr(e,t,r)>0;TGe.exports=Igr});var KGe=V($N=>{$N.parse=$N.decode=Mgr;$N.stringify=$N.encode=HGe;$N.safe=Tk;$N.unsafe=iK;var Z1e=typeof process<"u"&&process.platform==="win32"?`\r
`:`
`;function HGe(e,t){var r=[],n="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||{},t.whitespace=t.whitespace===!0);var i=t.whitespace?" = ":"=";return Object.keys(e).forEach(function(a,o,c){var u=e[a];u&&Array.isArray(u)?u.forEach(function(p){n+=Tk(a+"[]")+i+Tk(p)+`
`}):u&&typeof u=="object"?r.push(a):n+=Tk(a)+i+Tk(u)+Z1e}),t.section&&n.length&&(n="["+Tk(t.section)+"]"+Z1e+n),r.forEach(function(a,o,c){var u=$Ge(a).join("\\."),p=(t.section?t.section+".":"")+u,d=HGe(e[a],{section:p,whitespace:t.whitespace});n.length&&d.length&&(n+=Z1e),n+=d}),n}function $Ge(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function Mgr(e){var t={},r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,a=e.split(/[\r\n]+/g);return a.forEach(function(o,c,u){if(!(!o||o.match(/^\s*[;#]/))){var p=o.match(i);if(p){if(p[1]!==void 0){if(n=iK(p[1]),n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var d=iK(p[2]);if(d!=="__proto__"){var x=p[3]?iK(p[4]):!0;switch(x){case"true":case"false":case"null":x=JSON.parse(x)}if(d.length>2&&d.slice(-2)==="[]"){if(d=d.substring(0,d.length-2),d==="__proto__")return;r[d]?Array.isArray(r[d])||(r[d]=[r[d]]):r[d]=[]}Array.isArray(r[d])?r[d].push(x):r[d]=x}}}}),Object.keys(t).filter(function(o,c,u){if(!t[o]||typeof t[o]!="object"||Array.isArray(t[o]))return!1;var p=$Ge(o),d=t,x=p.pop(),g=x.replace(/\\\./g,".");return p.forEach(function(h,y,S){h!=="__proto__"&&((!d[h]||typeof d[h]!="object")&&(d[h]={}),d=d[h])}),d===t&&g===x?!1:(d[g]=t[o],!0)}).forEach(function(o,c,u){delete t[o]}),t}function YGe(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function Tk(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&YGe(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function iK(e,t){if(e=(e||"").trim(),YGe(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var r=!1,n="",i=0,a=e.length;i<a;i++){var o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e}});var XGe=V((xUn,zGe)=>{"use strict";var ege=1,WGe=2;function Fgr(){return""}function Bgr(e,t,r){return e.slice(t,r).replace(/\S/g," ")}zGe.exports=function(e,t){t=t||{};for(var r,n,i=!1,a=!1,o=0,c="",u=t.whitespace===!1?Fgr:Bgr,p=0;p<e.length;p++){if(r=e[p],n=e[p+1],!a&&r==='"'){var d=e[p-1]==="\\"&&e[p-2]!=="\\";d||(i=!i)}if(!i){if(!a&&r+n==="//")c+=e.slice(o,p),o=p,a=ege,p++;else if(a===ege&&r+n===`\r
`){p++,a=!1,c+=u(e,o,p),o=p;continue}else if(a===ege&&r===`
`)a=!1,c+=u(e,o,p),o=p;else if(!a&&r+n==="/*"){c+=e.slice(o,p),o=p,a=WGe,p++;continue}else if(a===WGe&&r+n==="*/"){p++,a=!1,c+=u(e,o,p+1),o=p+1;continue}}}return c+(a?u(e.substr(o)):e.substr(o))}});var QGe=V(bk=>{"use strict";var JGe=ar("fs"),Ugr=KGe(),DF=ar("path"),Vgr=XGe(),Ggr=bk.parse=function(e){return/^\s*{/.test(e)?JSON.parse(Vgr(e)):Ugr.parse(e)},jgr=bk.file=function(){var e=[].slice.call(arguments).filter(function(i){return i!=null});for(var t in e)if(typeof e[t]!="string")return;var r=DF.join.apply(null,e),n;try{return JGe.readFileSync(r,"utf-8")}catch{return}},hUn=bk.json=function(){var e=jgr.apply(null,arguments);return e?Ggr(e):null},mUn=bk.env=function(e,t){t=t||process.env;var r={},n=e.length;for(var i in t)if(i.toLowerCase().indexOf(e.toLowerCase())===0){for(var a=i.substring(n).split("__"),o;(o=a.indexOf(""))>-1;)a.splice(o,1);var c=r;a.forEach(function(p,d){!p||typeof c!="object"||(d===a.length-1&&(c[p]=t[i]),c[p]===void 0&&(c[p]={}),c=c[p])})}return r},gUn=bk.find=function(){var e=DF.join.apply(null,[].slice.call(arguments));function t(r,n){var i=DF.join(r,n);try{return JGe.statSync(i),i}catch{if(DF.dirname(r)!==r)return t(DF.dirname(r),n)}}return t(process.cwd(),e)}});var ije=V((yUn,nje)=>{"use strict";function eje(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp}function tje(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function rje(e){var t=[];return e.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?t[n]=rje(r):eje(r)?t[n]=tje(r):t[n]=tge({},r):t[n]=r}),t}function ZGe(e,t){return t==="__proto__"?void 0:e[t]}var tge=nje.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var e=arguments[0],t=Array.prototype.slice.call(arguments,1),r,n,i;return t.forEach(function(a){typeof a!="object"||a===null||Array.isArray(a)||Object.keys(a).forEach(function(o){if(n=ZGe(e,o),r=ZGe(a,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=rje(r);return}else if(eje(r)){e[o]=tje(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[o]=tge({},r);return}else{e[o]=tge(n,r);return}})}),e}});var cje=V((EUn,oje)=>{"use strict";function qgr(e,t){var r=e;t.slice(0,-1).forEach(function(i){r=r[i]||{}});var n=t[t.length-1];return n in r}function sje(e){return typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function aje(e,t){return t==="constructor"&&typeof e[t]=="function"||t==="__proto__"}oje.exports=function(e,t){t||(t={});var r={bools:{},strings:{},unknownFn:null};typeof t.unknown=="function"&&(r.unknownFn=t.unknown),typeof t.boolean=="boolean"&&t.boolean?r.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(R){r.bools[R]=!0});var n={};function i(R){return n[R].some(function(U){return r.bools[U]})}Object.keys(t.alias||{}).forEach(function(R){n[R]=[].concat(t.alias[R]),n[R].forEach(function(U){n[U]=[R].concat(n[R].filter(function(ee){return U!==ee}))})}),[].concat(t.string).filter(Boolean).forEach(function(R){r.strings[R]=!0,n[R]&&[].concat(n[R]).forEach(function(U){r.strings[U]=!0})});var a=t.default||{},o={_:[]};function c(R,U){return r.allBools&&/^--[^=]+$/.test(U)||r.strings[R]||r.bools[R]||n[R]}function u(R,U,ee){for(var ce=R,$e=0;$e<U.length-1;$e++){var xe=U[$e];if(aje(ce,xe))return;ce[xe]===void 0&&(ce[xe]={}),(ce[xe]===Object.prototype||ce[xe]===Number.prototype||ce[xe]===String.prototype)&&(ce[xe]={}),ce[xe]===Array.prototype&&(ce[xe]=[]),ce=ce[xe]}var st=U[U.length-1];aje(ce,st)||((ce===Object.prototype||ce===Number.prototype||ce===String.prototype)&&(ce={}),ce===Array.prototype&&(ce=[]),ce[st]===void 0||r.bools[st]||typeof ce[st]=="boolean"?ce[st]=ee:Array.isArray(ce[st])?ce[st].push(ee):ce[st]=[ce[st],ee])}function p(R,U,ee){if(!(ee&&r.unknownFn&&!c(R,ee)&&r.unknownFn(ee)===!1)){var ce=!r.strings[R]&&sje(U)?Number(U):U;u(o,R.split("."),ce),(n[R]||[]).forEach(function($e){u(o,$e.split("."),ce)})}}Object.keys(r.bools).forEach(function(R){p(R,a[R]===void 0?!1:a[R])});var d=[];e.indexOf("--")!==-1&&(d=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var x=0;x<e.length;x++){var g=e[x],h,y;if(/^--.+=/.test(g)){var S=g.match(/^--([^=]+)=([\s\S]*)$/);h=S[1];var T=S[2];r.bools[h]&&(T=T!=="false"),p(h,T,g)}else if(/^--no-.+/.test(g))h=g.match(/^--no-(.+)/)[1],p(h,!1,g);else if(/^--.+/.test(g))h=g.match(/^--(.+)/)[1],y=e[x+1],y!==void 0&&!/^(-|--)[^-]/.test(y)&&!r.bools[h]&&!r.allBools&&(!n[h]||!i(h))?(p(h,y,g),x+=1):/^(true|false)$/.test(y)?(p(h,y==="true",g),x+=1):p(h,r.strings[h]?"":!0,g);else if(/^-[^-]+/.test(g)){for(var C=g.slice(1,-1).split(""),I=!1,k=0;k<C.length;k++){if(y=g.slice(k+2),y==="-"){p(C[k],y,g);continue}if(/[A-Za-z]/.test(C[k])&&y[0]==="="){p(C[k],y.slice(1),g),I=!0;break}if(/[A-Za-z]/.test(C[k])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(y)){p(C[k],y,g),I=!0;break}if(C[k+1]&&C[k+1].match(/\W/)){p(C[k],g.slice(k+2),g),I=!0;break}else p(C[k],r.strings[C[k]]?"":!0,g)}h=g.slice(-1)[0],!I&&h!=="-"&&(e[x+1]&&!/^(-|--)[^-]/.test(e[x+1])&&!r.bools[h]&&(!n[h]||!i(h))?(p(h,e[x+1],g),x+=1):e[x+1]&&/^(true|false)$/.test(e[x+1])?(p(h,e[x+1]==="true",g),x+=1):p(h,r.strings[h]?"":!0,g))}else if((!r.unknownFn||r.unknownFn(g)!==!1)&&o._.push(r.strings._||!sje(g)?g:Number(g)),t.stopEarly){o._.push.apply(o._,e.slice(x+1));break}}return Object.keys(a).forEach(function(R){qgr(o,R.split("."))||(u(o,R.split("."),a[R]),(n[R]||[]).forEach(function(U){u(o,U.split("."),a[R])}))}),t["--"]?o["--"]=d.slice():d.forEach(function(R){o._.push(R)}),o}});var fje=V((SUn,pje)=>{var IF=QGe(),Ck=ar("path").join,Hgr=ije(),lje="/etc",uje=process.platform==="win32",OF=uje?process.env.USERPROFILE:process.env.HOME;pje.exports=function(e,t,r,n){if(typeof e!="string")throw new Error("rc(name): name *must* be string");r||(r=cje()(process.argv.slice(2))),t=(typeof t=="string"?IF.json(t):t)||{},n=n||IF.parse;var i=IF.env(e+"_"),a=[t],o=[];function c(u){if(!(o.indexOf(u)>=0)){var p=IF.file(u);p&&(a.push(n(p)),o.push(u))}}return uje||[Ck(lje,e,"config"),Ck(lje,e+"rc")].forEach(c),OF&&[Ck(OF,".config",e,"config"),Ck(OF,".config",e),Ck(OF,"."+e,"config"),Ck(OF,"."+e+"rc")].forEach(c),c(IF.find("."+e+"rc")),i.config&&c(i.config),r.config&&c(r.config),Hgr.apply(null,a.concat([i,r,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var hje=V((TUn,xje)=>{var GA=ar("constants"),$gr=process.cwd,sK=null,Ygr=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return sK||(sK=$gr.call(process)),sK};try{process.cwd()}catch{}typeof process.chdir=="function"&&(nge=process.chdir,process.chdir=function(e){sK=null,nge.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,nge));var nge;xje.exports=Kgr;function Kgr(e){GA.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(d,x,g){g&&process.nextTick(g)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(d,x,g,h){h&&process.nextTick(h)},e.lchownSync=function(){}),Ygr==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(d){function x(g,h,y){var S=Date.now(),T=0;d(g,h,function C(I){if(I&&(I.code==="EACCES"||I.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){e.stat(h,function(k,R){k&&k.code==="ENOENT"?d(g,h,C):y(I)})},T),T<100&&(T+=10);return}y&&y(I)})}return Object.setPrototypeOf&&Object.setPrototypeOf(x,d),x})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(d){function x(g,h,y,S,T,C){var I;if(C&&typeof C=="function"){var k=0;I=function(R,U,ee){if(R&&R.code==="EAGAIN"&&k<10)return k++,d.call(e,g,h,y,S,T,I);C.apply(this,arguments)}}return d.call(e,g,h,y,S,T,I)}return Object.setPrototypeOf&&Object.setPrototypeOf(x,d),x})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(d){return function(x,g,h,y,S){for(var T=0;;)try{return d.call(e,x,g,h,y,S)}catch(C){if(C.code==="EAGAIN"&&T<10){T++;continue}throw C}}})(e.readSync);function t(d){d.lchmod=function(x,g,h){d.open(x,GA.O_WRONLY|GA.O_SYMLINK,g,function(y,S){if(y){h&&h(y);return}d.fchmod(S,g,function(T){d.close(S,function(C){h&&h(T||C)})})})},d.lchmodSync=function(x,g){var h=d.openSync(x,GA.O_WRONLY|GA.O_SYMLINK,g),y=!0,S;try{S=d.fchmodSync(h,g),y=!1}finally{if(y)try{d.closeSync(h)}catch{}else d.closeSync(h)}return S}}function r(d){GA.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(x,g,h,y){d.open(x,GA.O_SYMLINK,function(S,T){if(S){y&&y(S);return}d.futimes(T,g,h,function(C){d.close(T,function(I){y&&y(C||I)})})})},d.lutimesSync=function(x,g,h){var y=d.openSync(x,GA.O_SYMLINK),S,T=!0;try{S=d.futimesSync(y,g,h),T=!1}finally{if(T)try{d.closeSync(y)}catch{}else d.closeSync(y)}return S}):d.futimes&&(d.lutimes=function(x,g,h,y){y&&process.nextTick(y)},d.lutimesSync=function(){})}function n(d){return d&&function(x,g,h){return d.call(e,x,g,function(y){p(y)&&(y=null),h&&h.apply(this,arguments)})}}function i(d){return d&&function(x,g){try{return d.call(e,x,g)}catch(h){if(!p(h))throw h}}}function a(d){return d&&function(x,g,h,y){return d.call(e,x,g,h,function(S){p(S)&&(S=null),y&&y.apply(this,arguments)})}}function o(d){return d&&function(x,g,h){try{return d.call(e,x,g,h)}catch(y){if(!p(y))throw y}}}function c(d){return d&&function(x,g,h){typeof g=="function"&&(h=g,g=null);function y(S,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),h&&h.apply(this,arguments)}return g?d.call(e,x,g,y):d.call(e,x,y)}}function u(d){return d&&function(x,g){var h=g?d.call(e,x,g):d.call(e,x);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function p(d){if(!d||d.code==="ENOSYS")return!0;var x=!process.getuid||process.getuid()!==0;return!!(x&&(d.code==="EINVAL"||d.code==="EPERM"))}}});var _je=V((bUn,gje)=>{var mje=ar("stream").Stream;gje.exports=Wgr;function Wgr(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);mje.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),c=0,u=o.length;c<u;c++){var p=o[c];this[p]=i[p]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(d,x){if(d){a.emit("error",d),a.readable=!1;return}a.fd=x,a.emit("open",x),a._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);mje.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var a=Object.keys(i),o=0,c=a.length;o<c;o++){var u=a[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Eje=V((CUn,yje)=>{"use strict";yje.exports=Xgr;var zgr=Object.getPrototypeOf||function(e){return e.__proto__};function Xgr(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:zgr(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var bje=V((AUn,age)=>{var rl=ar("fs"),Jgr=hje(),Qgr=_je(),Zgr=Eje(),aK=ar("util"),R0,cK;typeof Symbol=="function"&&typeof Symbol.for=="function"?(R0=Symbol.for("graceful-fs.queue"),cK=Symbol.for("graceful-fs.previous")):(R0="___graceful-fs.queue",cK="___graceful-fs.previous");function e2r(){}function Tje(e,t){Object.defineProperty(e,R0,{get:function(){return t}})}var YN=e2r;aK.debuglog?YN=aK.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(YN=function(){var e=aK.format.apply(aK,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});rl[R0]||(Sje=global[R0]||[],Tje(rl,Sje),rl.close=(function(e){function t(r,n){return e.call(rl,r,function(i){i||vje(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,cK,{value:e}),t})(rl.close),rl.closeSync=(function(e){function t(r){e.apply(rl,arguments),vje()}return Object.defineProperty(t,cK,{value:e}),t})(rl.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){YN(rl[R0]),ar("assert").equal(rl[R0].length,0)}));var Sje;global[R0]||Tje(global,rl[R0]);age.exports=ige(Zgr(rl));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!rl.__patched&&(age.exports=ige(rl),rl.__patched=!0);function ige(e){Jgr(e),e.gracefulify=ige,e.createReadStream=U,e.createWriteStream=ee;var t=e.readFile;e.readFile=r;function r(xe,st,lt){return typeof st=="function"&&(lt=st,st=null),Dt(xe,st,lt);function Dt(Et,jt,_t,pr){return t(Et,jt,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?Ak([Dt,[Et,jt,_t],it,pr||Date.now(),Date.now()]):typeof _t=="function"&&_t.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(xe,st,lt,Dt){return typeof lt=="function"&&(Dt=lt,lt=null),Et(xe,st,lt,Dt);function Et(jt,_t,pr,it,gt){return n(jt,_t,pr,function(qe){qe&&(qe.code==="EMFILE"||qe.code==="ENFILE")?Ak([Et,[jt,_t,pr,it],qe,gt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=e.appendFile;a&&(e.appendFile=o);function o(xe,st,lt,Dt){return typeof lt=="function"&&(Dt=lt,lt=null),Et(xe,st,lt,Dt);function Et(jt,_t,pr,it,gt){return a(jt,_t,pr,function(qe){qe&&(qe.code==="EMFILE"||qe.code==="ENFILE")?Ak([Et,[jt,_t,pr,it],qe,gt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=u);function u(xe,st,lt,Dt){return typeof lt=="function"&&(Dt=lt,lt=0),Et(xe,st,lt,Dt);function Et(jt,_t,pr,it,gt){return c(jt,_t,pr,function(qe){qe&&(qe.code==="EMFILE"||qe.code==="ENFILE")?Ak([Et,[jt,_t,pr,it],qe,gt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var p=e.readdir;e.readdir=x;var d=/^v[0-5]\./;function x(xe,st,lt){typeof st=="function"&&(lt=st,st=null);var Dt=d.test(process.version)?function(_t,pr,it,gt){return p(_t,Et(_t,pr,it,gt))}:function(_t,pr,it,gt){return p(_t,pr,Et(_t,pr,it,gt))};return Dt(xe,st,lt);function Et(jt,_t,pr,it){return function(gt,qe){gt&&(gt.code==="EMFILE"||gt.code==="ENFILE")?Ak([Dt,[jt,_t,pr],gt,it||Date.now(),Date.now()]):(qe&&qe.sort&&qe.sort(),typeof pr=="function"&&pr.call(this,gt,qe))}}}if(process.version.substr(0,4)==="v0.8"){var g=Qgr(e);C=g.ReadStream,k=g.WriteStream}var h=e.ReadStream;h&&(C.prototype=Object.create(h.prototype),C.prototype.open=I);var y=e.WriteStream;y&&(k.prototype=Object.create(y.prototype),k.prototype.open=R),Object.defineProperty(e,"ReadStream",{get:function(){return C},set:function(xe){C=xe},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return k},set:function(xe){k=xe},enumerable:!0,configurable:!0});var S=C;Object.defineProperty(e,"FileReadStream",{get:function(){return S},set:function(xe){S=xe},enumerable:!0,configurable:!0});var T=k;Object.defineProperty(e,"FileWriteStream",{get:function(){return T},set:function(xe){T=xe},enumerable:!0,configurable:!0});function C(xe,st){return this inst