@canva/cli
Version:
The official Canva CLI.
11 lines • 3.18 MB
JavaScript
#!/usr/bin/env node
// Copyright 2024 Canva Inc. All Rights Reserved.
import { createRequire } from 'module';const require = createRequire(import.meta.url);
var M4=Object.create;var Em=Object.defineProperty;var k4=Object.getOwnPropertyDescriptor;var dSe=Object.getOwnPropertyNames;var fSe=Object.getPrototypeOf,mSe=Object.prototype.hasOwnProperty;var F4=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Sm=e=>{throw TypeError(e)};var B4=(e,t,r)=>t in e?Em(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var P4=(e,t)=>Em(e,"name",{value:t,configurable:!0}),he=(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 hSe=(e,t)=>()=>(e&&(t=e(e=0)),t);var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),L0=(e,t)=>{for(var r in t)Em(e,r,{get:t[r],enumerable:!0})},_Se=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dSe(t))!mSe.call(e,i)&&i!==r&&Em(e,i,{get:()=>t[i],enumerable:!(n=k4(t,i))||n.enumerable});return e};var Er=(e,t,r)=>(r=e!=null?M4(fSe(e)):{},_Se(t||!e||!e.__esModule?Em(r,"default",{value:e,enumerable:!0}):r,e));var Zo=e=>[,,,M4(e?.[F4("metadata")]??null)],U4=["class","method","getter","setter","accessor","field","value","get","set"],Cg=e=>e!==void 0&&typeof e!="function"?Sm("Function expected"):e,gSe=(e,t,r,n,i)=>({kind:U4[e],name:t,metadata:n,addInitializer:s=>r._?Sm("Already initialized"):i.push(Cg(s||null))}),po=(e,t)=>B4(t,F4("metadata"),e[3]),Gt=(e,t,r,n)=>{for(var i=0,s=e[t>>1],a=s&&s.length;i<a;i++)t&1?s[i].call(r):n=s[i].call(r,n);return n},tr=(e,t,r,n,i,s)=>{var a,o,l,c,u,p=t&7,d=!!(t&8),f=!!(t&16),m=p>3?e.length+1:p?d?1:2:0,_=U4[p+5],E=p>3&&(e[m-1]=[]),h=e[m]||(e[m]=[]),g=p&&(!f&&!d&&(i=i.prototype),p<5&&(p>3||!f)&&k4(p<4?i:{get[r](){return w4(this,s)},set[r](T){return L4(this,s,T)}},r));p?f&&p<4&&P4(s,(p>2?"set ":p>1?"get ":"")+r):P4(i,r);for(var S=n.length-1;S>=0;S--)c=gSe(p,r,l={},e[3],h),p&&(c.static=d,c.private=f,u=c.access={has:f?T=>ESe(i,T):T=>r in T},p^3&&(u.get=f?T=>(p^1?w4:SSe)(T,i,p^4?s:g.get):T=>T[r]),p>2&&(u.set=f?(T,v)=>L4(T,i,v,p^4?s:g.set):(T,v)=>T[r]=v)),o=(0,n[S])(p?p<4?f?s:g[_]:p>4?void 0:{get:g.get,set:g.set}:i,c),l._=1,p^4||o===void 0?Cg(o)&&(p>4?E.unshift(o):p?f?s=o:g[_]=o:i=o):typeof o!="object"||o===null?Sm("Object expected"):(Cg(a=o.get)&&(g.get=a),Cg(a=o.set)&&(g.set=a),Cg(a=o.init)&&E.unshift(a));return p||po(e,i),g&&Em(i,r,g),f?p^4?s:g:i},od=(e,t,r)=>B4(e,typeof t!="symbol"?t+"":t,r),rO=(e,t,r)=>t.has(e)||Sm("Cannot "+r),ESe=(e,t)=>Object(t)!==t?Sm('Cannot use the "in" operator on this value'):e.has(t),w4=(e,t,r)=>(rO(e,t,"read from private field"),r?r.call(e):t.get(e)),Wi=(e,t,r)=>t.has(e)?Sm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),L4=(e,t,r,n)=>(rO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),SSe=(e,t,r)=>(rO(e,t,"access private method"),r);var zB=y((SNt,$B)=>{$B.exports=KB;KB.sync=b0e;var jB=he("fs");function T0e(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 WB(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:T0e(t,r)}function KB(e,t,r){jB.stat(e,function(n,i){r(n,n?!1:WB(i,e,t))})}function b0e(e,t){return WB(jB.statSync(e),e,t)}});var e8=y((yNt,ZB)=>{ZB.exports=XB;XB.sync=C0e;var QB=he("fs");function XB(e,t,r){QB.stat(e,function(n,i){r(n,n?!1:JB(i,t))})}function C0e(e,t){return JB(QB.statSync(e),t)}function JB(e,t){return e.isFile()&&A0e(e,t)}function A0e(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),a=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),o=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),u=o|l,p=r&c||r&l&&i===a||r&o&&n===s||r&u&&s===0;return p}});var r8=y((bNt,t8)=>{var TNt=he("fs"),J0;process.platform==="win32"||global.TESTING_WINDOWS?J0=zB():J0=e8();t8.exports=LO;LO.sync=v0e;function LO(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){LO(e,t||{},function(s,a){s?i(s):n(a)})})}J0(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function v0e(e,t){try{return J0.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var c8=y((CNt,l8)=>{var vm=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n8=he("path"),x0e=vm?";":":",i8=r8(),s8=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),a8=(e,t)=>{let r=t.colon||x0e,n=e.match(/\//)||vm&&e.match(/\\/)?[""]:[...vm?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=vm?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=vm?i.split(r):[""];return vm&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},o8=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=a8(e,t),a=[],o=c=>new Promise((u,p)=>{if(c===n.length)return t.all&&a.length?u(a):p(s8(e));let d=n[c],f=/^".*"$/.test(d)?d.slice(1,-1):d,m=n8.join(f,e),_=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+m:m;u(l(_,c,0))}),l=(c,u,p)=>new Promise((d,f)=>{if(p===i.length)return d(o(u+1));let m=i[p];i8(c+m,{pathExt:s},(_,E)=>{if(!_&&E)if(t.all)a.push(c+m);else return d(c+m);return d(l(c,u,p+1))})});return r?o(0).then(c=>r(null,c),r):o(0)},D0e=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=a8(e,t),s=[];for(let a=0;a<r.length;a++){let o=r[a],l=/^".*"$/.test(o)?o.slice(1,-1):o,c=n8.join(l,e),u=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let p=0;p<n.length;p++){let d=u+n[p];try{if(i8.sync(d,{pathExt:i}))if(t.all)s.push(d);else return d}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw s8(e)};l8.exports=o8;o8.sync=D0e});var p8=y((ANt,MO)=>{"use strict";var u8=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};MO.exports=u8;MO.exports.default=u8});var h8=y((vNt,m8)=>{"use strict";var d8=he("path"),O0e=c8(),I0e=p8();function f8(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let a;try{a=O0e.sync(e.command,{path:r[I0e({env:r})],pathExt:t?d8.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return a&&(a=d8.resolve(i?e.options.cwd:"",a)),a}function N0e(e){return f8(e)||f8(e,!0)}m8.exports=N0e});var _8=y((xNt,FO)=>{"use strict";var kO=/([()\][%!^"`<>&|;, *?])/g;function R0e(e){return e=e.replace(kO,"^$1"),e}function P0e(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(kO,"^$1"),t&&(e=e.replace(kO,"^$1")),e}FO.exports.command=R0e;FO.exports.argument=P0e});var E8=y((DNt,g8)=>{"use strict";g8.exports=/^#!(.*)/});var y8=y((ONt,S8)=>{"use strict";var w0e=E8();S8.exports=(e="")=>{let t=e.match(w0e);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var b8=y((INt,T8)=>{"use strict";var BO=he("fs"),L0e=y8();function M0e(e){let r=Buffer.alloc(150),n;try{n=BO.openSync(e,"r"),BO.readSync(n,r,0,150,0),BO.closeSync(n)}catch{}return L0e(r.toString())}T8.exports=M0e});var x8=y((NNt,v8)=>{"use strict";var k0e=he("path"),C8=h8(),A8=_8(),F0e=b8(),B0e=process.platform==="win32",U0e=/\.(?:com|exe)$/i,G0e=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function V0e(e){e.file=C8(e);let t=e.file&&F0e(e.file);return t?(e.args.unshift(e.file),e.command=t,C8(e)):e.file}function H0e(e){if(!B0e)return e;let t=V0e(e),r=!U0e.test(t);if(e.options.forceShell||r){let n=G0e.test(t);e.command=k0e.normalize(e.command),e.command=A8.command(e.command),e.args=e.args.map(s=>A8.argument(s,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 Y0e(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:H0e(n)}v8.exports=Y0e});var I8=y((RNt,O8)=>{"use strict";var UO=process.platform==="win32";function GO(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 q0e(e,t){if(!UO)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=D8(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function D8(e,t){return UO&&e===1&&!t.file?GO(t.original,"spawn"):null}function j0e(e,t){return UO&&e===1&&!t.file?GO(t.original,"spawnSync"):null}O8.exports={hookChildProcess:q0e,verifyENOENT:D8,verifyENOENTSync:j0e,notFoundError:GO}});var P8=y((PNt,xm)=>{"use strict";var N8=he("child_process"),VO=x8(),HO=I8();function R8(e,t,r){let n=VO(e,t,r),i=N8.spawn(n.command,n.args,n.options);return HO.hookChildProcess(i,n),i}function W0e(e,t,r){let n=VO(e,t,r),i=N8.spawnSync(n.command,n.args,n.options);return i.error=i.error||HO.verifyENOENTSync(i.status,n),i}xm.exports=R8;xm.exports.spawn=R8;xm.exports.sync=W0e;xm.exports._parse=VO;xm.exports._enoent=HO});var a6=y((kRt,s6)=>{"use strict";var{PassThrough:qye}=he("stream");s6.exports=function(){var e=[],t=new qye({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(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(a){return a!==s}),!e.length&&t.readable&&t.end()}}});var U6=y((HPt,B6)=>{var du=he("constants"),vTe=process.cwd,gy=null,xTe=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return gy||(gy=vTe.call(process)),gy};try{process.cwd()}catch{}typeof process.chdir=="function"&&(hI=process.chdir,process.chdir=function(e){gy=null,hI.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,hI));var hI;B6.exports=DTe;function DTe(e){du.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(u,p,d){d&&process.nextTick(d)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(u,p,d,f){f&&process.nextTick(f)},e.lchownSync=function(){}),xTe==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(u){function p(d,f,m){var _=Date.now(),E=0;u(d,f,function h(g){if(g&&(g.code==="EACCES"||g.code==="EPERM"||g.code==="EBUSY")&&Date.now()-_<6e4){setTimeout(function(){e.stat(f,function(S,T){S&&S.code==="ENOENT"?u(d,f,h):m(g)})},E),E<100&&(E+=10);return}m&&m(g)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,u),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(u){function p(d,f,m,_,E,h){var g;if(h&&typeof h=="function"){var S=0;g=function(T,v,Y){if(T&&T.code==="EAGAIN"&&S<10)return S++,u.call(e,d,f,m,_,E,g);h.apply(this,arguments)}}return u.call(e,d,f,m,_,E,g)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,u),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(u){return function(p,d,f,m,_){for(var E=0;;)try{return u.call(e,p,d,f,m,_)}catch(h){if(h.code==="EAGAIN"&&E<10){E++;continue}throw h}}}(e.readSync);function t(u){u.lchmod=function(p,d,f){u.open(p,du.O_WRONLY|du.O_SYMLINK,d,function(m,_){if(m){f&&f(m);return}u.fchmod(_,d,function(E){u.close(_,function(h){f&&f(E||h)})})})},u.lchmodSync=function(p,d){var f=u.openSync(p,du.O_WRONLY|du.O_SYMLINK,d),m=!0,_;try{_=u.fchmodSync(f,d),m=!1}finally{if(m)try{u.closeSync(f)}catch{}else u.closeSync(f)}return _}}function r(u){du.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(p,d,f,m){u.open(p,du.O_SYMLINK,function(_,E){if(_){m&&m(_);return}u.futimes(E,d,f,function(h){u.close(E,function(g){m&&m(h||g)})})})},u.lutimesSync=function(p,d,f){var m=u.openSync(p,du.O_SYMLINK),_,E=!0;try{_=u.futimesSync(m,d,f),E=!1}finally{if(E)try{u.closeSync(m)}catch{}else u.closeSync(m)}return _}):u.futimes&&(u.lutimes=function(p,d,f,m){m&&process.nextTick(m)},u.lutimesSync=function(){})}function n(u){return u&&function(p,d,f){return u.call(e,p,d,function(m){c(m)&&(m=null),f&&f.apply(this,arguments)})}}function i(u){return u&&function(p,d){try{return u.call(e,p,d)}catch(f){if(!c(f))throw f}}}function s(u){return u&&function(p,d,f,m){return u.call(e,p,d,f,function(_){c(_)&&(_=null),m&&m.apply(this,arguments)})}}function a(u){return u&&function(p,d,f){try{return u.call(e,p,d,f)}catch(m){if(!c(m))throw m}}}function o(u){return u&&function(p,d,f){typeof d=="function"&&(f=d,d=null);function m(_,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),f&&f.apply(this,arguments)}return d?u.call(e,p,d,m):u.call(e,p,m)}}function l(u){return u&&function(p,d){var f=d?u.call(e,p,d):u.call(e,p);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function c(u){if(!u||u.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var H6=y((YPt,V6)=>{var G6=he("stream").Stream;V6.exports=OTe;function OTe(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);G6.call(this);var s=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 a=Object.keys(i),o=0,l=a.length;o<l;o++){var c=a[o];this[c]=i[c]}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(){s._read()});return}e.open(this.path,this.flags,this.mode,function(u,p){if(u){s.emit("error",u),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);G6.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 s=Object.keys(i),a=0,o=s.length;a<o;a++){var l=s[a];this[l]=i[l]}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 q6=y((qPt,Y6)=>{"use strict";Y6.exports=NTe;var ITe=Object.getPrototypeOf||function(e){return e.__proto__};function NTe(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:ITe(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var $6=y((jPt,EI)=>{var dn=he("fs"),RTe=U6(),PTe=H6(),wTe=q6(),Ey=he("util"),di,yy;typeof Symbol=="function"&&typeof Symbol.for=="function"?(di=Symbol.for("graceful-fs.queue"),yy=Symbol.for("graceful-fs.previous")):(di="___graceful-fs.queue",yy="___graceful-fs.previous");function LTe(){}function K6(e,t){Object.defineProperty(e,di,{get:function(){return t}})}var bd=LTe;Ey.debuglog?bd=Ey.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(bd=function(){var e=Ey.format.apply(Ey,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});dn[di]||(j6=global[di]||[],K6(dn,j6),dn.close=function(e){function t(r,n){return e.call(dn,r,function(i){i||W6(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,yy,{value:e}),t}(dn.close),dn.closeSync=function(e){function t(r){e.apply(dn,arguments),W6()}return Object.defineProperty(t,yy,{value:e}),t}(dn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){bd(dn[di]),he("assert").equal(dn[di].length,0)}));var j6;global[di]||K6(global,dn[di]);EI.exports=_I(wTe(dn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!dn.__patched&&(EI.exports=_I(dn),dn.__patched=!0);function _I(e){RTe(e),e.gracefulify=_I,e.createReadStream=v,e.createWriteStream=Y;var t=e.readFile;e.readFile=r;function r(O,B,I){return typeof B=="function"&&(I=B,B=null),K(O,B,I);function K(Q,ae,ee,me){return t(Q,ae,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Dm([K,[Q,ae,ee],se,me||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(O,B,I,K){return typeof I=="function"&&(K=I,I=null),Q(O,B,I,K);function Q(ae,ee,me,se,_e){return n(ae,ee,me,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Dm([Q,[ae,ee,me,se],Ee,_e||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=a);function a(O,B,I,K){return typeof I=="function"&&(K=I,I=null),Q(O,B,I,K);function Q(ae,ee,me,se,_e){return s(ae,ee,me,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Dm([Q,[ae,ee,me,se],Ee,_e||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=l);function l(O,B,I,K){return typeof I=="function"&&(K=I,I=0),Q(O,B,I,K);function Q(ae,ee,me,se,_e){return o(ae,ee,me,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Dm([Q,[ae,ee,me,se],Ee,_e||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}}var c=e.readdir;e.readdir=p;var u=/^v[0-5]\./;function p(O,B,I){typeof B=="function"&&(I=B,B=null);var K=u.test(process.version)?function(ee,me,se,_e){return c(ee,Q(ee,me,se,_e))}:function(ee,me,se,_e){return c(ee,me,Q(ee,me,se,_e))};return K(O,B,I);function Q(ae,ee,me,se){return function(_e,Ee){_e&&(_e.code==="EMFILE"||_e.code==="ENFILE")?Dm([K,[ae,ee,me],_e,se||Date.now(),Date.now()]):(Ee&&Ee.sort&&Ee.sort(),typeof me=="function"&&me.call(this,_e,Ee))}}}if(process.version.substr(0,4)==="v0.8"){var d=PTe(e);h=d.ReadStream,S=d.WriteStream}var f=e.ReadStream;f&&(h.prototype=Object.create(f.prototype),h.prototype.open=g);var m=e.WriteStream;m&&(S.prototype=Object.create(m.prototype),S.prototype.open=T),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(O){h=O},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return S},set:function(O){S=O},enumerable:!0,configurable:!0});var _=h;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(O){_=O},enumerable:!0,configurable:!0});var E=S;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(O){E=O},enumerable:!0,configurable:!0});function h(O,B){return this instanceof h?(f.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function g(){var O=this;ie(O.path,O.flags,O.mode,function(B,I){B?(O.autoClose&&O.destroy(),O.emit("error",B)):(O.fd=I,O.emit("open",I),O.read())})}function S(O,B){return this instanceof S?(m.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function T(){var O=this;ie(O.path,O.flags,O.mode,function(B,I){B?(O.destroy(),O.emit("error",B)):(O.fd=I,O.emit("open",I))})}function v(O,B){return new e.ReadStream(O,B)}function Y(O,B){return new e.WriteStream(O,B)}var V=e.open;e.open=ie;function ie(O,B,I,K){return typeof I=="function"&&(K=I,I=null),Q(O,B,I,K);function Q(ae,ee,me,se,_e){return V(ae,ee,me,function(Ee,Oe){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Dm([Q,[ae,ee,me,se],Ee,_e||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}}return e}function Dm(e){bd("ENQUEUE",e[0].name,e[1]),dn[di].push(e),gI()}var Sy;function W6(){for(var e=Date.now(),t=0;t<dn[di].length;++t)dn[di][t].length>2&&(dn[di][t][3]=e,dn[di][t][4]=e);gI()}function gI(){if(clearTimeout(Sy),Sy=void 0,dn[di].length!==0){var e=dn[di].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)bd("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){bd("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var o=Date.now()-s,l=Math.max(s-i,1),c=Math.min(l*1.2,100);o>=c?(bd("RETRY",t.name,r),t.apply(null,r.concat([i]))):dn[di].push(e)}Sy===void 0&&(Sy=setTimeout(gI,0))}}});var Hg=y((dLt,RU)=>{"use strict";var obe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};RU.exports=obe});var Yg=y((fLt,PU)=>{"use strict";var lbe="2.0.0",cbe=Number.MAX_SAFE_INTEGER||9007199254740991,ube=16,pbe=250,dbe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];PU.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ube,MAX_SAFE_BUILD_LENGTH:pbe,MAX_SAFE_INTEGER:cbe,RELEASE_TYPES:dbe,SEMVER_SPEC_VERSION:lbe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Pm=y((nl,wU)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:wI,MAX_SAFE_BUILD_LENGTH:fbe,MAX_LENGTH:mbe}=Yg(),hbe=Hg();nl=wU.exports={};var _be=nl.re=[],gbe=nl.safeRe=[],Xe=nl.src=[],Ebe=nl.safeSrc=[],Je=nl.t={},Sbe=0,LI="[a-zA-Z0-9-]",ybe=[["\\s",1],["\\d",mbe],[LI,fbe]],Tbe=e=>{for(let[t,r]of ybe)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Ft=(e,t,r)=>{let n=Tbe(t),i=Sbe++;hbe(e,i,t),Je[e]=i,Xe[i]=t,Ebe[i]=n,_be[i]=new RegExp(t,r?"g":void 0),gbe[i]=new RegExp(n,r?"g":void 0)};Ft("NUMERICIDENTIFIER","0|[1-9]\\d*");Ft("NUMERICIDENTIFIERLOOSE","\\d+");Ft("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${LI}*`);Ft("MAINVERSION",`(${Xe[Je.NUMERICIDENTIFIER]})\\.(${Xe[Je.NUMERICIDENTIFIER]})\\.(${Xe[Je.NUMERICIDENTIFIER]})`);Ft("MAINVERSIONLOOSE",`(${Xe[Je.NUMERICIDENTIFIERLOOSE]})\\.(${Xe[Je.NUMERICIDENTIFIERLOOSE]})\\.(${Xe[Je.NUMERICIDENTIFIERLOOSE]})`);Ft("PRERELEASEIDENTIFIER",`(?:${Xe[Je.NONNUMERICIDENTIFIER]}|${Xe[Je.NUMERICIDENTIFIER]})`);Ft("PRERELEASEIDENTIFIERLOOSE",`(?:${Xe[Je.NONNUMERICIDENTIFIER]}|${Xe[Je.NUMERICIDENTIFIERLOOSE]})`);Ft("PRERELEASE",`(?:-(${Xe[Je.PRERELEASEIDENTIFIER]}(?:\\.${Xe[Je.PRERELEASEIDENTIFIER]})*))`);Ft("PRERELEASELOOSE",`(?:-?(${Xe[Je.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Xe[Je.PRERELEASEIDENTIFIERLOOSE]})*))`);Ft("BUILDIDENTIFIER",`${LI}+`);Ft("BUILD",`(?:\\+(${Xe[Je.BUILDIDENTIFIER]}(?:\\.${Xe[Je.BUILDIDENTIFIER]})*))`);Ft("FULLPLAIN",`v?${Xe[Je.MAINVERSION]}${Xe[Je.PRERELEASE]}?${Xe[Je.BUILD]}?`);Ft("FULL",`^${Xe[Je.FULLPLAIN]}$`);Ft("LOOSEPLAIN",`[v=\\s]*${Xe[Je.MAINVERSIONLOOSE]}${Xe[Je.PRERELEASELOOSE]}?${Xe[Je.BUILD]}?`);Ft("LOOSE",`^${Xe[Je.LOOSEPLAIN]}$`);Ft("GTLT","((?:<|>)?=?)");Ft("XRANGEIDENTIFIERLOOSE",`${Xe[Je.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ft("XRANGEIDENTIFIER",`${Xe[Je.NUMERICIDENTIFIER]}|x|X|\\*`);Ft("XRANGEPLAIN",`[v=\\s]*(${Xe[Je.XRANGEIDENTIFIER]})(?:\\.(${Xe[Je.XRANGEIDENTIFIER]})(?:\\.(${Xe[Je.XRANGEIDENTIFIER]})(?:${Xe[Je.PRERELEASE]})?${Xe[Je.BUILD]}?)?)?`);Ft("XRANGEPLAINLOOSE",`[v=\\s]*(${Xe[Je.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Xe[Je.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Xe[Je.XRANGEIDENTIFIERLOOSE]})(?:${Xe[Je.PRERELEASELOOSE]})?${Xe[Je.BUILD]}?)?)?`);Ft("XRANGE",`^${Xe[Je.GTLT]}\\s*${Xe[Je.XRANGEPLAIN]}$`);Ft("XRANGELOOSE",`^${Xe[Je.GTLT]}\\s*${Xe[Je.XRANGEPLAINLOOSE]}$`);Ft("COERCEPLAIN",`(^|[^\\d])(\\d{1,${wI}})(?:\\.(\\d{1,${wI}}))?(?:\\.(\\d{1,${wI}}))?`);Ft("COERCE",`${Xe[Je.COERCEPLAIN]}(?:$|[^\\d])`);Ft("COERCEFULL",Xe[Je.COERCEPLAIN]+`(?:${Xe[Je.PRERELEASE]})?(?:${Xe[Je.BUILD]})?(?:$|[^\\d])`);Ft("COERCERTL",Xe[Je.COERCE],!0);Ft("COERCERTLFULL",Xe[Je.COERCEFULL],!0);Ft("LONETILDE","(?:~>?)");Ft("TILDETRIM",`(\\s*)${Xe[Je.LONETILDE]}\\s+`,!0);nl.tildeTrimReplace="$1~";Ft("TILDE",`^${Xe[Je.LONETILDE]}${Xe[Je.XRANGEPLAIN]}$`);Ft("TILDELOOSE",`^${Xe[Je.LONETILDE]}${Xe[Je.XRANGEPLAINLOOSE]}$`);Ft("LONECARET","(?:\\^)");Ft("CARETTRIM",`(\\s*)${Xe[Je.LONECARET]}\\s+`,!0);nl.caretTrimReplace="$1^";Ft("CARET",`^${Xe[Je.LONECARET]}${Xe[Je.XRANGEPLAIN]}$`);Ft("CARETLOOSE",`^${Xe[Je.LONECARET]}${Xe[Je.XRANGEPLAINLOOSE]}$`);Ft("COMPARATORLOOSE",`^${Xe[Je.GTLT]}\\s*(${Xe[Je.LOOSEPLAIN]})$|^$`);Ft("COMPARATOR",`^${Xe[Je.GTLT]}\\s*(${Xe[Je.FULLPLAIN]})$|^$`);Ft("COMPARATORTRIM",`(\\s*)${Xe[Je.GTLT]}\\s*(${Xe[Je.LOOSEPLAIN]}|${Xe[Je.XRANGEPLAIN]})`,!0);nl.comparatorTrimReplace="$1$2$3";Ft("HYPHENRANGE",`^\\s*(${Xe[Je.XRANGEPLAIN]})\\s+-\\s+(${Xe[Je.XRANGEPLAIN]})\\s*$`);Ft("HYPHENRANGELOOSE",`^\\s*(${Xe[Je.XRANGEPLAINLOOSE]})\\s+-\\s+(${Xe[Je.XRANGEPLAINLOOSE]})\\s*$`);Ft("STAR","(<|>)?=?\\s*\\*");Ft("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ft("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Oy=y((mLt,LU)=>{"use strict";var bbe=Object.freeze({loose:!0}),Cbe=Object.freeze({}),Abe=e=>e?typeof e!="object"?bbe:e:Cbe;LU.exports=Abe});var MI=y((hLt,FU)=>{"use strict";var MU=/^[0-9]+$/,kU=(e,t)=>{let r=MU.test(e),n=MU.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},vbe=(e,t)=>kU(t,e);FU.exports={compareIdentifiers:kU,rcompareIdentifiers:vbe}});var Oi=y((_Lt,UU)=>{"use strict";var Iy=Hg(),{MAX_LENGTH:BU,MAX_SAFE_INTEGER:Ny}=Yg(),{safeRe:Ry,t:Py}=Pm(),xbe=Oy(),{compareIdentifiers:wm}=MI(),kI=class e{constructor(t,r){if(r=xbe(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>BU)throw new TypeError(`version is longer than ${BU} characters`);Iy("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Ry[Py.LOOSE]:Ry[Py.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>Ny||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ny||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ny||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Ny)return s}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(Iy("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)),wm(this.major,t.major)||wm(this.minor,t.minor)||wm(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(Iy("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 wm(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(Iy("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 wm(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?Ry[Py.PRERELEASELOOSE]:Ry[Py.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 s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),wm(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};UU.exports=kI});var vd=y((gLt,VU)=>{"use strict";var GU=Oi(),Dbe=(e,t,r=!1)=>{if(e instanceof GU)return e;try{return new GU(e,t)}catch(n){if(!r)return null;throw n}};VU.exports=Dbe});var FI=y((ELt,YU)=>{"use strict";var HU=vd(),Obe=(e,t)=>{let r=HU(e,null,!0),n=HU(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,o=s?n:r,l=!!a.prerelease.length;if(!!o.prerelease.length&&!l){if(!o.patch&&!o.minor)return"major";if(o.compareMain(a)===0)return o.minor&&!o.patch?"minor":"patch"}let u=l?"pre":"";return r.major!==n.major?u+"major":r.minor!==n.minor?u+"minor":r.patch!==n.patch?u+"patch":"prerelease"};YU.exports=Obe});var ba=y((SLt,jU)=>{"use strict";var qU=Oi(),Ibe=(e,t,r)=>new qU(e,r).compare(new qU(t,r));jU.exports=Ibe});var Lm=y((yLt,WU)=>{"use strict";var Nbe=ba(),Rbe=(e,t,r)=>Nbe(e,t,r)>0;WU.exports=Rbe});var l7=y(xd=>{xd.parse=xd.decode=Fbe;xd.stringify=xd.encode=s7;xd.safe=Fm;xd.unsafe=Fy;var qI=typeof process<"u"&&process.platform==="win32"?`\r
`:`
`;function s7(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(s,a,o){var l=e[s];l&&Array.isArray(l)?l.forEach(function(c){n+=Fm(s+"[]")+i+Fm(c)+`
`}):l&&typeof l=="object"?r.push(s):n+=Fm(s)+i+Fm(l)+qI}),t.section&&n.length&&(n="["+Fm(t.section)+"]"+qI+n),r.forEach(function(s,a,o){var l=a7(s).join("\\."),c=(t.section?t.section+".":"")+l,u=s7(e[s],{section:c,whitespace:t.whitespace});n.length&&u.length&&(n+=qI),n+=u}),n}function a7(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 Fbe(e){var t={},r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);return s.forEach(function(a,o,l){if(!(!a||a.match(/^\s*[;#]/))){var c=a.match(i);if(c){if(c[1]!==void 0){if(n=Fy(c[1]),n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var u=Fy(c[2]);if(u!=="__proto__"){var p=c[3]?Fy(c[4]):!0;switch(p){case"true":case"false":case"null":p=JSON.parse(p)}if(u.length>2&&u.slice(-2)==="[]"){if(u=u.substring(0,u.length-2),u==="__proto__")return;r[u]?Array.isArray(r[u])||(r[u]=[r[u]]):r[u]=[]}Array.isArray(r[u])?r[u].push(p):r[u]=p}}}}),Object.keys(t).filter(function(a,o,l){if(!t[a]||typeof t[a]!="object"||Array.isArray(t[a]))return!1;var c=a7(a),u=t,p=c.pop(),d=p.replace(/\\\./g,".");return c.forEach(function(f,m,_){f!=="__proto__"&&((!u[f]||typeof u[f]!="object")&&(u[f]={}),u=u[f])}),u===t&&d===p?!1:(u[d]=t[a],!0)}).forEach(function(a,o,l){delete t[a]}),t}function o7(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function Fm(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&o7(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function Fy(e,t){if(e=(e||"").trim(),o7(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,s=e.length;i<s;i++){var a=e.charAt(i);if(r)"\\;#".indexOf(a)!==-1?n+=a:n+="\\"+a,r=!1;else{if(";#".indexOf(a)!==-1)break;a==="\\"?r=!0:n+=a}}return r&&(n+="\\"),n.trim()}return e}});var p7=y(($Lt,u7)=>{"use strict";var jI=1,c7=2;function Bbe(){return""}function Ube(e,t,r){return e.slice(t,r).replace(/\S/g," ")}u7.exports=function(e,t){t=t||{};for(var r,n,i=!1,s=!1,a=0,o="",l=t.whitespace===!1?Bbe:Ube,c=0;c<e.length;c++){if(r=e[c],n=e[c+1],!s&&r==='"'){var u=e[c-1]==="\\"&&e[c-2]!=="\\";u||(i=!i)}if(!i){if(!s&&r+n==="//")o+=e.slice(a,c),a=c,s=jI,c++;else if(s===jI&&r+n===`\r
`){c++,s=!1,o+=l(e,a,c),a=c;continue}else if(s===jI&&r===`
`)s=!1,o+=l(e,a,c),a=c;else if(!s&&r+n==="/*"){o+=e.slice(a,c),a=c,s=c7,c++;continue}else if(s===c7&&r+n==="*/"){c++,s=!1,o+=l(e,a,c+1),a=c+1;continue}}}return o+(s?l(e.substr(a)):e.substr(a))}});var f7=y(Bm=>{"use strict";var d7=he("fs"),Gbe=l7(),Kg=he("path"),Vbe=p7(),Hbe=Bm.parse=function(e){return/^\s*{/.test(e)?JSON.parse(Vbe(e)):Gbe.parse(e)},Ybe=Bm.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=Kg.join.apply(null,e),n;try{return d7.readFileSync(r,"utf-8")}catch{return}},zLt=Bm.json=function(){var e=Ybe.apply(null,arguments);return e?Hbe(e):null},QLt=Bm.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 s=i.substring(n).split("__"),a;(a=s.indexOf(""))>-1;)s.splice(a,1);var o=r;s.forEach(function(c,u){!c||typeof o!="object"||(u===s.length-1&&(o[c]=t[i]),o[c]===void 0&&(o[c]={}),o=o[c])})}return r},XLt=Bm.find=function(){var e=Kg.join.apply(null,[].slice.call(arguments));function t(r,n){var i=Kg.join(r,n);try{return d7.statSync(i),i}catch{if(Kg.dirname(r)!==r)return t(Kg.dirname(r),n)}}return t(process.cwd(),e)}});var S7=y((ZLt,E7)=>{"use strict";function h7(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp}function _7(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 g7(e){var t=[];return e.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?t[n]=g7(r):h7(r)?t[n]=_7(r):t[n]=WI({},r):t[n]=r}),t}function m7(e,t){return t==="__proto__"?void 0:e[t]}var WI=E7.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(s){typeof s!="object"||s===null||Array.isArray(s)||Object.keys(s).forEach(function(a){if(n=m7(e,a),r=m7(s,a),r!==e)if(typeof r!="object"||r===null){e[a]=r;return}else if(Array.isArray(r)){e[a]=g7(r);return}else if(h7(r)){e[a]=_7(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[a]=WI({},r);return}else{e[a]=WI(n,r);return}})}),e}});var C7=y((e2t,b7)=>{"use strict";function qbe(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 y7(e){return typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function T7(e,t){return t==="constructor"&&typeof e[t]=="function"||t==="__proto__"}b7.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(T){r.bools[T]=!0});var n={};function i(T){return n[T].some(function(v){return r.bools[v]})}Object.keys(t.alias||{}).forEach(function(T){n[T]=[].concat(t.alias[T]),n[T].forEach(function(v){n[v]=[T].concat(n[T].filter(function(Y){return v!==Y}))})}),[].concat(t.string).filter(Boolean).forEach(function(T){r.strings[T]=!0,n[T]&&[].concat(n[T]).forEach(function(v){r.strings[v]=!0})});var s=t.default||{},a={_:[]};function o(T,v){return r.allBools&&/^--[^=]+$/.test(v)||r.strings[T]||r.bools[T]||n[T]}function l(T,v,Y){for(var V=T,ie=0;ie<v.length-1;ie++){var O=v[ie];if(T7(V,O))return;V[O]===void 0&&(V[O]={}),(V[O]===Object.prototype||V[O]===Number.prototype||V[O]===String.prototype)&&(V[O]={}),V[O]===Array.prototype&&(V[O]=[]),V=V[O]}var B=v[v.length-1];T7(V,B)||((V===Object.prototype||V===Number.prototype||V===String.prototype)&&(V={}),V===Array.prototype&&(V=[]),V[B]===void 0||r.bools[B]||typeof V[B]=="boolean"?V[B]=Y:Array.isArray(V[B])?V[B].push(Y):V[B]=[V[B],Y])}function c(T,v,Y){if(!(Y&&r.unknownFn&&!o(T,Y)&&r.unknownFn(Y)===!1)){var V=!r.strings[T]&&y7(v)?Number(v):v;l(a,T.split("."),V),(n[T]||[]).forEach(function(ie){l(a,ie.split("."),V)})}}Object.keys(r.bools).forEach(function(T){c(T,s[T]===void 0?!1:s[T])});var u=[];e.indexOf("--")!==-1&&(u=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var p=0;p<e.length;p++){var d=e[p],f,m;if(/^--.+=/.test(d)){var _=d.match(/^--([^=]+)=([\s\S]*)$/);f=_[1];var E=_[2];r.bools[f]&&(E=E!=="false"),c(f,E,d)}else if(/^--no-.+/.test(d))f=d.match(/^--no-(.+)/)[1],c(f,!1,d);else if(/^--.+/.test(d))f=d.match(/^--(.+)/)[1],m=e[p+1],m!==void 0&&!/^(-|--)[^-]/.test(m)&&!r.bools[f]&&!r.allBools&&(!n[f]||!i(f))?(c(f,m,d),p+=1):/^(true|false)$/.test(m)?(c(f,m==="true",d),p+=1):c(f,r.strings[f]?"":!0,d);else if(/^-[^-]+/.test(d)){for(var h=d.slice(1,-1).split(""),g=!1,S=0;S<h.length;S++){if(m=d.slice(S+2),m==="-"){c(h[S],m,d);continue}if(/[A-Za-z]/.test(h[S])&&m[0]==="="){c(h[S],m.slice(1),d),g=!0;break}if(/[A-Za-z]/.test(h[S])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(m)){c(h[S],m,d),g=!0;break}if(h[S+1]&&h[S+1].match(/\W/)){c(h[S],d.slice(S+2),d),g=!0;break}else c(h[S],r.strings[h[S]]?"":!0,d)}f=d.slice(-1)[0],!g&&f!=="-"&&(e[p+1]&&!/^(-|--)[^-]/.test(e[p+1])&&!r.bools[f]&&(!n[f]||!i(f))?(c(f,e[p+1],d),p+=1):e[p+1]&&/^(true|false)$/.test(e[p+1])?(c(f,e[p+1]==="true",d),p+=1):c(f,r.strings[f]?"":!0,d))}else if((!r.unknownFn||r.unknownFn(d)!==!1)&&a._.push(r.strings._||!y7(d)?d:Number(d)),t.stopEarly){a._.push.apply(a._,e.slice(p+1));break}}return Object.keys(s).forEach(function(T){qbe(a,T.split("."))||(l(a,T.split("."),s[T]),(n[T]||[]).forEach(function(v){l(a,v.split("."),s[T])}))}),t["--"]?a["--"]=u.slice():u.forEach(function(T){a._.push(T)}),a}});var D7=y((t2t,x7)=>{var $g=f7(),Um=he("path").join,jbe=S7(),A7="/etc",v7=process.platform==="win32",zg=v7?process.env.USERPROFILE:process.env.HOME;x7.exports=function(e,t,r,n){if(typeof e!="string")throw new Error("rc(name): name *must* be string");r||(r=C7()(process.argv.slice(2))),t=(typeof t=="string"?$g.json(t):t)||{},n=n||$g.parse;var i=$g.env(e+"_"),s=[t],a=[];function o(l){if(!(a.indexOf(l)>=0)){var c=$g.file(l);c&&(s.push(n(c)),a.push(l))}}return v7||[Um(A7,e,"config"),Um(A7,e+"rc")].forEach(o),zg&&[Um(zg,".config",e,"config"),Um(zg,".config",e),Um(zg,"."+e,"config"),Um(zg,"."+e+"rc")].forEach(o),o($g.find("."+e+"rc")),i.config&&o(i.config),r.config&&o(r.config),jbe.apply(null,s.concat([i,r,a.length?{configs:a,config:a[a.length-1]}:void 0]))}});var N7=y((n2t,I7)=>{var mu=he("constants"),Wbe=process.cwd,By=null,Kbe=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return By||(By=Wbe.call(process)),By};try{process.cwd()}catch{}typeof process.chdir=="function"&&($I=process.chdir,process.chdir=function(e){By=null,$I.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,$I));var $I;I7.exports=$be;function $be(e){mu.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(u,p,d){d&&process.nextTick(d)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(u,p,d,f){f&&process.nextTick(f)},e.lchownSync=function(){}),Kbe==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(u){function p(d,f,m){var _=Date.now(),E=0;u(d,f,function h(g){if(g&&(g.code==="EACCES"||g.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(f,function(S,T){S&&S.code==="ENOENT"?u(d,f,h):m(g)})},E),E<100&&(E+=10);return}m&&m(g)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,u),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(u){function p(d,f,m,_,E,h){var g;if(h&&typeof h=="function"){var S=0;g=function(T,v,Y){if(T&&T.code==="EAGAIN"&&S<10)return S++,u.call(e,d,f,m,_,E,g);h.apply(this,arguments)}}return u.call(e,d,f,m,_,E,g)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,u),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(u){return function(p,d,f,m,_){for(var E=0;;)try{return u.call(e,p,d,f,m,_)}catch(h){if(h.code==="EAGAIN"&&E<10){E++;continue}throw h}}}(e.readSync);function t(u){u.lchmod=function(p,d,f){u.open(p,mu.O_WRONLY|mu.O_SYMLINK,d,function(m,_){if(m){f&&f(m);return}u.fchmod(_,d,function(E){u.close(_,function(h){f&&f(E||h)})})})},u.lchmodSync=function(p,d){var f=u.openSync(p,mu.O_WRONLY|mu.O_SYMLINK,d),m=!0,_;try{_=u.fchmodSync(f,d),m=!1}finally{if(m)try{u.closeSync(f)}catch{}else u.closeSync(f)}return _}}function r(u){mu.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(p,d,f,m){u.open(p,mu.O_SYMLINK,function(_,E){if(_){m&&m(_);return}u.futimes(E,d,f,function(h){u.close(E,function(g){m&&m(h||g)})})})},u.lutimesSync=function(p,d,f){var m=u.openSync(p,mu.O_SYMLINK),_,E=!0;try{_=u.futimesSync(m,d,f),E=!1}finally{if(E)try{u.closeSync(m)}catch{}else u.closeSync(m)}return _}):u.futimes&&(u.lutimes=function(p,d,f,m){m&&process.nextTick(m)},u.lutimesSync=function(){})}function n(u){return u&&function(p,d,f){return u.call(e,p,d,function(m){c(m)&&(m=null),f&&f.apply(this,arguments)})}}function i(u){return u&&function(p,d){try{return u.call(e,p,d)}catch(f){if(!c(f))throw f}}}function s(u){return u&&function(p,d,f,m){return u.call(e,p,d,f,function(_){c(_)&&(_=null),m&&m.apply(this,arguments)})}}function a(u){return u&&function(p,d,f){try{return u.call(e,p,d,f)}catch(m){if(!c(m))throw m}}}function o(u){return u&&function(p,d,f){typeof d=="function"&&(f=d,d=null);function m(_,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),f&&f.apply(this,arguments)}return d?u.call(e,p,d,m):u.call(e,p,m)}}function l(u){return u&&function(p,d){var f=d?u.call(e,p,d):u.call(e,p);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function c(u){if(!u||u.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var w7=y((i2t,P7)=>{var R7=he("stream").Stream;P7.exports=zbe;function zbe(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);R7.call(this);var s=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 a=Object.keys(i),o=0,l=a.length;o<l;o++){var c=a[o];this[c]=i[c]}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(){s._read()});return}e.open(this.path,this.flags,this.mode,function(u,p){if(u){s.emit("error",u),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);R7.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 s=Object.keys(i),a=0,o=s.length;a<o;a++){var l=s[a];this[l]=i[l]}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 M7=y((s2t,L7)=>{"use strict";L7.exports=Xbe;var Qbe=Object.getPrototypeOf||function(e){return e.__proto__};function Xbe(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Qbe(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var U7=y((a2t,XI)=>{var mn=he("fs"),Jbe=N7(),Zbe=w7(),eCe=M7(),Uy=he("util"),fi,Vy;typeof Symbol=="function"&&typeof Symbol.for=="function"?(fi=Symbol.for("graceful-fs.queue"),Vy=Symbol.for("graceful-fs.previous")):(fi="___graceful-fs.queue",Vy="___graceful-fs.previous");function tCe(){}function B7(e,t){Object.defineProperty(e,fi,{get:function(){return t}})}var Dd=tCe;Uy.debuglog?Dd=Uy.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Dd=function(){var e=Uy.format.apply(Uy,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});mn[fi]||(k7=global[fi]||[],B7(mn,k7),mn.close=function(e){function t(r,n){return e.call(mn,r,function(i){i||F7(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Vy,{value:e}),t}(mn.close),mn.closeSync=function(e){function t(r){e.apply(mn,arguments),F7()}return Object.defineProperty(t,Vy,{value:e}),t}(mn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Dd(mn[fi]),he("assert").equal(mn[fi].length,0)}));var k7;global[fi]||B7(global,mn[fi]);XI.exports=zI(eCe(mn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!mn.__patched&&(XI.exports=zI(mn),mn.__patched=!0);function zI(e){Jbe(e),e.gracefulify=zI,e.createReadStream=v,e.createWriteStream=Y;var t=e.readFile;e.readFile=r;function r(O,B,I){return typeof B=="function"&&(I=B,B=null),K(O,B,I);function K(Q,ae,ee,me){return t(Q,ae,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Gm([K,[Q,ae,ee],se,me||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(O,B,I,K){return typeof I=="function"&&(K=I,I=null),Q(O,B,I,K);function Q(ae,ee,me,se,_e){return n(ae,ee,me,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Gm([Q,[ae,ee,me,se],Ee,_e||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=a);function a(O,B,I,K){return typeof I=="function"&&(K=I,I=null),Q(O,B,I,K);function Q(ae,ee,me,se,_e){return s(ae,ee,me,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Gm([Q,[ae,ee,me,se],Ee,_e||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=l);function l(O,B,I,K){return typeof I=="function"&&(K=I,I=0),Q(O,B,I,K);function Q(ae,ee,me,se,_e){return o(ae,ee,me,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Gm([Q,[ae,ee,me,se],Ee,_e||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}}var c=e.readdir;e.readdir=p;var u=/^v[0-5]\./;function p(O,B,I){typeof B=="function"&&(I=B,B=null);var K=u.test(process.version)?function(ee,me,se,_e){return c(ee,Q(ee,me,se,_e))}:function(ee,me,se,_e){return c(ee,me,Q(ee,me,se,_e))};return K(O,B,I);function Q(ae,ee,me,se){return function(_e,Ee){_e&&(_e.code==="EMFILE"||_e.code==="ENFILE")?Gm([K,[ae,ee,me],_e,se||Date.now(),Date.now()]):(Ee&&Ee.sort&&Ee.sort(),typeof me=="function"&&me.call(this,_e,Ee))}}}if(process.version.substr(0,4)==="v0.8"){var d=Zbe(e);h=d.ReadStream,S=d.WriteStream}var f=e.ReadStream;f&&(h.prototype=Object.create(f.prototype),h.prototype.open=g);var m=e.WriteStream;m&&(S.prototype=Object.create(m.prototype),S.prototype.open=T),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(O){h=O},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return S},set:function(O){S=O},enumerable:!0,configurable:!0});var _=h;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(O){_=O},enumerable:!0,configurable:!0});var E=S;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(O){E=O},enumerable:!0,configurable:!0});function h(O,B){return this instanceof h?(f.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function g(){var O=this;ie(O.path,O.flags,O.mode,function(B,I){B?(O.autoClose&&O.destroy(),O.emit("error",B)):(O.fd=I,O.emit("open",I),O.read())})}function S(O,B){return this instanceof S?(m.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function T(){var O=this;ie(O.path,O.flags,O.mode,function(B,I){B?(O.destroy(),O.emit("error",B)):(O.fd=I,O.emit("open",I))})}function v(O,B){return new e.ReadStream(O,B)}function Y(O,B){return new e.WriteStream(O,B)}var V=e.open;e.open=ie;function ie(O,B,I,K){return typeof I=="function"&&(K=I,I=null),Q(O,B,I,K);function Q(ae,ee,me,se,_e){return V(ae,ee,me,function(Ee,Oe){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Gm([Q