@angular/fire
Version:
Angular + Firebase = ❤️
7 lines (5 loc) • 914 kB
JavaScript
var TF=Object.create;var In=Object.defineProperty,BF=Object.defineProperties,RF=Object.getOwnPropertyDescriptor,IF=Object.getOwnPropertyDescriptors,LF=Object.getOwnPropertyNames,Sx=Object.getOwnPropertySymbols,PF=Object.getPrototypeOf,qx=Object.prototype.hasOwnProperty,MF=Object.prototype.propertyIsEnumerable;var Ax=(e,t,r)=>t in e?In(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ie=(e,t)=>{for(var r in t||(t={}))qx.call(t,r)&&Ax(e,r,t[r]);if(Sx)for(var r of Sx(t))MF.call(t,r)&&Ax(e,r,t[r]);return e},tt=(e,t)=>BF(e,IF(t));var c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),NF=(e,t)=>{for(var r in t)In(e,r,{get:t[r],enumerable:!0})},Ox=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of LF(t))!qx.call(e,i)&&i!==r&&In(e,i,{get:()=>t[i],enumerable:!(n=RF(t,i))||n.enumerable});return e};var qr=(e,t,r)=>(r=e!=null?TF(PF(e)):{},Ox(t||!e||!e.__esModule?In(r,"default",{value:e,enumerable:!0}):r,e)),jF=e=>Ox(In({},"__esModule",{value:!0}),e);var Ue=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{o(r.next(u))}catch(l){i(l)}},a=u=>{try{o(r.throw(u))}catch(l){i(l)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(e,t)).next())});var Te=c(xo=>{"use strict";xo.fromCallback=function(e){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")e.apply(this,arguments);else return new Promise((t,r)=>{arguments[arguments.length]=(n,i)=>{if(n)return r(n);t(i)},arguments.length++,e.apply(this,arguments)})},"name",{value:e.name})};xo.fromPromise=function(e){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return e.apply(this,arguments);e.apply(this,arguments).then(r=>t(null,r),t)},"name",{value:e.name})}});var Bx=c((aX,Tx)=>{var Rt=require("constants"),kF=process.cwd,gs=null,$F=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return gs||(gs=kF.call(process)),gs};try{process.cwd()}catch(e){}typeof process.chdir=="function"&&(ho=process.chdir,process.chdir=function(e){gs=null,ho.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ho));var ho;Tx.exports=UF;function UF(e){Rt.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=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,x,h){h&&process.nextTick(h)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,x,h,p){p&&process.nextTick(p)},e.lchownSync=function(){}),$F==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function x(h,p,d){var g=Date.now(),y=0;f(h,p,function m(F){if(F&&(F.code==="EACCES"||F.code==="EPERM"||F.code==="EBUSY")&&Date.now()-g<6e4){setTimeout(function(){e.stat(p,function(D,S){D&&D.code==="ENOENT"?f(h,p,m):d(F)})},y),y<100&&(y+=10);return}d&&d(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(x,f),x}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function x(h,p,d,g,y,m){var F;if(m&&typeof m=="function"){var D=0;F=function(S,B,U){if(S&&S.code==="EAGAIN"&&D<10)return D++,f.call(e,h,p,d,g,y,F);m.apply(this,arguments)}}return f.call(e,h,p,d,g,y,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(x,f),x}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(x,h,p,d,g){for(var y=0;;)try{return f.call(e,x,h,p,d,g)}catch(m){if(m.code==="EAGAIN"&&y<10){y++;continue}throw m}}}(e.readSync);function t(f){f.lchmod=function(x,h,p){f.open(x,Rt.O_WRONLY|Rt.O_SYMLINK,h,function(d,g){if(d){p&&p(d);return}f.fchmod(g,h,function(y){f.close(g,function(m){p&&p(y||m)})})})},f.lchmodSync=function(x,h){var p=f.openSync(x,Rt.O_WRONLY|Rt.O_SYMLINK,h),d=!0,g;try{g=f.fchmodSync(p,h),d=!1}finally{if(d)try{f.closeSync(p)}catch(y){}else f.closeSync(p)}return g}}function r(f){Rt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(x,h,p,d){f.open(x,Rt.O_SYMLINK,function(g,y){if(g){d&&d(g);return}f.futimes(y,h,p,function(m){f.close(y,function(F){d&&d(m||F)})})})},f.lutimesSync=function(x,h,p){var d=f.openSync(x,Rt.O_SYMLINK),g,y=!0;try{g=f.futimesSync(d,h,p),y=!1}finally{if(y)try{f.closeSync(d)}catch(m){}else f.closeSync(d)}return g}):f.futimes&&(f.lutimes=function(x,h,p,d){d&&process.nextTick(d)},f.lutimesSync=function(){})}function n(f){return f&&function(x,h,p){return f.call(e,x,h,function(d){l(d)&&(d=null),p&&p.apply(this,arguments)})}}function i(f){return f&&function(x,h){try{return f.call(e,x,h)}catch(p){if(!l(p))throw p}}}function s(f){return f&&function(x,h,p,d){return f.call(e,x,h,p,function(g){l(g)&&(g=null),d&&d.apply(this,arguments)})}}function a(f){return f&&function(x,h,p){try{return f.call(e,x,h,p)}catch(d){if(!l(d))throw d}}}function o(f){return f&&function(x,h,p){typeof h=="function"&&(p=h,h=null);function d(g,y){y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),p&&p.apply(this,arguments)}return h?f.call(e,x,h,d):f.call(e,x,d)}}function u(f){return f&&function(x,h){var p=h?f.call(e,x,h):f.call(e,x);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}function l(f){if(!f||f.code==="ENOSYS")return!0;var x=!process.getuid||process.getuid()!==0;return!!(x&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Lx=c((oX,Ix)=>{var Rx=require("stream").Stream;Ix.exports=GF;function GF(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Rx.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,u=a.length;o<u;o++){var l=a[o];this[l]=i[l]}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(f,x){if(f){s.emit("error",f),s.readable=!1;return}s.fd=x,s.emit("open",x),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Rx.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 u=s[a];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 Mx=c((uX,Px)=>{"use strict";Px.exports=HF;var WF=Object.getPrototypeOf||function(e){return e.__proto__};function HF(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:WF(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var fe=c((cX,Eo)=>{var se=require("fs"),VF=Bx(),KF=Lx(),zF=Mx(),Es=require("util"),Ee,ys;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Ee=Symbol.for("graceful-fs.queue"),ys=Symbol.for("graceful-fs.previous")):(Ee="___graceful-fs.queue",ys="___graceful-fs.previous");function YF(){}function kx(e,t){Object.defineProperty(e,Ee,{get:function(){return t}})}var Qt=YF;Es.debuglog?Qt=Es.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qt=function(){var e=Es.format.apply(Es,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});se[Ee]||(Nx=global[Ee]||[],kx(se,Nx),se.close=function(e){function t(r,n){return e.call(se,r,function(i){i||jx(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,ys,{value:e}),t}(se.close),se.closeSync=function(e){function t(r){e.apply(se,arguments),jx()}return Object.defineProperty(t,ys,{value:e}),t}(se.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qt(se[Ee]),require("assert").equal(se[Ee].length,0)}));var Nx;global[Ee]||kx(global,se[Ee]);Eo.exports=po(zF(se));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!se.__patched&&(Eo.exports=po(se),se.__patched=!0);function po(e){VF(e),e.gracefulify=po,e.createReadStream=B,e.createWriteStream=U;var t=e.readFile;e.readFile=r;function r(v,O,w){return typeof O=="function"&&(w=O,O=null),L(v,O,w);function L(N,j,V,E){return t(N,j,function(b){b&&(b.code==="EMFILE"||b.code==="ENFILE")?Or([L,[N,j,V],b,E||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(v,O,w,L){return typeof w=="function"&&(L=w,w=null),N(v,O,w,L);function N(j,V,E,b,R){return n(j,V,E,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?Or([N,[j,V,E,b],P,R||Date.now(),Date.now()]):typeof b=="function"&&b.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=a);function a(v,O,w,L){return typeof w=="function"&&(L=w,w=null),N(v,O,w,L);function N(j,V,E,b,R){return s(j,V,E,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?Or([N,[j,V,E,b],P,R||Date.now(),Date.now()]):typeof b=="function"&&b.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=u);function u(v,O,w,L){return typeof w=="function"&&(L=w,w=0),N(v,O,w,L);function N(j,V,E,b,R){return o(j,V,E,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?Or([N,[j,V,E,b],P,R||Date.now(),Date.now()]):typeof b=="function"&&b.apply(this,arguments)})}}var l=e.readdir;e.readdir=x;var f=/^v[0-5]\./;function x(v,O,w){typeof O=="function"&&(w=O,O=null);var L=f.test(process.version)?function(V,E,b,R){return l(V,N(V,E,b,R))}:function(V,E,b,R){return l(V,E,N(V,E,b,R))};return L(v,O,w);function N(j,V,E,b){return function(R,P){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Or([L,[j,V,E],R,b||Date.now(),Date.now()]):(P&&P.sort&&P.sort(),typeof E=="function"&&E.call(this,R,P))}}}if(process.version.substr(0,4)==="v0.8"){var h=KF(e);m=h.ReadStream,D=h.WriteStream}var p=e.ReadStream;p&&(m.prototype=Object.create(p.prototype),m.prototype.open=F);var d=e.WriteStream;d&&(D.prototype=Object.create(d.prototype),D.prototype.open=S),Object.defineProperty(e,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return D},set:function(v){D=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(e,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var y=D;Object.defineProperty(e,"FileWriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});function m(v,O){return this instanceof m?(p.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function F(){var v=this;H(v.path,v.flags,v.mode,function(O,w){O?(v.autoClose&&v.destroy(),v.emit("error",O)):(v.fd=w,v.emit("open",w),v.read())})}function D(v,O){return this instanceof D?(d.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function S(){var v=this;H(v.path,v.flags,v.mode,function(O,w){O?(v.destroy(),v.emit("error",O)):(v.fd=w,v.emit("open",w))})}function B(v,O){return new e.ReadStream(v,O)}function U(v,O){return new e.WriteStream(v,O)}var $=e.open;e.open=H;function H(v,O,w,L){return typeof w=="function"&&(L=w,w=null),N(v,O,w,L);function N(j,V,E,b,R){return $(j,V,E,function(P,T){P&&(P.code==="EMFILE"||P.code==="ENFILE")?Or([N,[j,V,E,b],P,R||Date.now(),Date.now()]):typeof b=="function"&&b.apply(this,arguments)})}}return e}function Or(e){Qt("ENQUEUE",e[0].name,e[1]),se[Ee].push(e),go()}var ms;function jx(){for(var e=Date.now(),t=0;t<se[Ee].length;++t)se[Ee][t].length>2&&(se[Ee][t][3]=e,se[Ee][t][4]=e);go()}function go(){if(clearTimeout(ms),ms=void 0,se[Ee].length!==0){var e=se[Ee].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)Qt("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Qt("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var o=Date.now()-s,u=Math.max(s-i,1),l=Math.min(u*1.2,100);o>=l?(Qt("RETRY",t.name,r),t.apply(null,r.concat([i]))):se[Ee].push(e)}ms===void 0&&(ms=setTimeout(go,0))}}});var mo=c(Zt=>{"use strict";var $x=Te().fromCallback,Ge=fe(),XF=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof Ge[e]=="function");Object.keys(Ge).forEach(e=>{e!=="promises"&&(Zt[e]=Ge[e])});XF.forEach(e=>{Zt[e]=$x(Ge[e])});Zt.exists=function(e,t){return typeof t=="function"?Ge.exists(e,t):new Promise(r=>Ge.exists(e,r))};Zt.read=function(e,t,r,n,i,s){return typeof s=="function"?Ge.read(e,t,r,n,i,s):new Promise((a,o)=>{Ge.read(e,t,r,n,i,(u,l,f)=>{if(u)return o(u);a({bytesRead:l,buffer:f})})})};Zt.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Ge.write(e,t,...r):new Promise((n,i)=>{Ge.write(e,t,...r,(s,a,o)=>{if(s)return i(s);n({bytesWritten:a,buffer:o})})})};typeof Ge.realpath.native=="function"&&(Zt.realpath.native=$x(Ge.realpath.native))});var Do=c((fX,Gx)=>{"use strict";var yo=require("path");function Ux(e){return e=yo.normalize(yo.resolve(e)).split(yo.sep),e.length>0?e[0]:null}var JF=/[<>:"|?*]/;function QF(e){let t=Ux(e);return e=e.replace(t,""),JF.test(e)}Gx.exports={getRootPath:Ux,invalidWin32Path:QF}});var Hx=c((xX,Wx)=>{"use strict";var ZF=fe(),bo=require("path"),e_=Do().invalidWin32Path,t_=parseInt("0777",8);function vo(e,t,r,n){if(typeof t=="function"?(r=t,t={}):(!t||typeof t!="object")&&(t={mode:t}),process.platform==="win32"&&e_(e)){let a=new Error(e+" contains invalid WIN32 path characters.");return a.code="EINVAL",r(a)}let i=t.mode,s=t.fs||ZF;i===void 0&&(i=t_&~process.umask()),n||(n=null),r=r||function(){},e=bo.resolve(e),s.mkdir(e,i,a=>{if(!a)return n=n||e,r(null,n);switch(a.code){case"ENOENT":if(bo.dirname(e)===e)return r(a);vo(bo.dirname(e),t,(o,u)=>{o?r(o,u):vo(e,t,r,u)});break;default:s.stat(e,(o,u)=>{o||!u.isDirectory()?r(a,n):r(null,n)});break}})}Wx.exports=vo});var Kx=c((hX,Vx)=>{"use strict";var r_=fe(),wo=require("path"),n_=Do().invalidWin32Path,i_=parseInt("0777",8);function Fo(e,t,r){(!t||typeof t!="object")&&(t={mode:t});let n=t.mode,i=t.fs||r_;if(process.platform==="win32"&&n_(e)){let s=new Error(e+" contains invalid WIN32 path characters.");throw s.code="EINVAL",s}n===void 0&&(n=i_&~process.umask()),r||(r=null),e=wo.resolve(e);try{i.mkdirSync(e,n),r=r||e}catch(s){if(s.code==="ENOENT"){if(wo.dirname(e)===e)throw s;r=Fo(wo.dirname(e),t,r),Fo(e,t,r)}else{let a;try{a=i.statSync(e)}catch(o){throw s}if(!a.isDirectory())throw s}}return r}Vx.exports=Fo});var je=c((dX,zx)=>{"use strict";var s_=Te().fromCallback,_o=s_(Hx()),Co=Kx();zx.exports={mkdirs:_o,mkdirsSync:Co,mkdirp:_o,mkdirpSync:Co,ensureDir:_o,ensureDirSync:Co}});var So=c((pX,Xx)=>{"use strict";var we=fe(),Yx=require("os"),Ds=require("path");function a_(){let e=Ds.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));e=Ds.join(Yx.tmpdir(),e);let t=new Date(1435410243862);we.writeFileSync(e,"https://github.com/jprichardson/node-fs-extra/pull/141");let r=we.openSync(e,"r+");return we.futimesSync(r,t,t),we.closeSync(r),we.statSync(e).mtime>1435410243e3}function o_(e){let t=Ds.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));t=Ds.join(Yx.tmpdir(),t);let r=new Date(1435410243862);we.writeFile(t,"https://github.com/jprichardson/node-fs-extra/pull/141",n=>{if(n)return e(n);we.open(t,"r+",(i,s)=>{if(i)return e(i);we.futimes(s,r,r,a=>{if(a)return e(a);we.close(s,o=>{if(o)return e(o);we.stat(t,(u,l)=>{if(u)return e(u);e(null,l.mtime>1435410243e3)})})})})})}function u_(e){if(typeof e=="number")return Math.floor(e/1e3)*1e3;if(e instanceof Date)return new Date(Math.floor(e.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function c_(e,t,r,n){we.open(e,"r+",(i,s)=>{if(i)return n(i);we.futimes(s,t,r,a=>{we.close(s,o=>{n&&n(a||o)})})})}function l_(e,t,r){let n=we.openSync(e,"r+");return we.futimesSync(n,t,r),we.closeSync(n)}Xx.exports={hasMillisRes:o_,hasMillisResSync:a_,timeRemoveMillis:u_,utimesMillis:c_,utimesMillisSync:l_}});var Mn=c((gX,rh)=>{"use strict";var We=fe(),Be=require("path"),Jx=10,Qx=5,f_=0,qo=process.versions.node.split("."),Zx=Number.parseInt(qo[0],10),eh=Number.parseInt(qo[1],10),x_=Number.parseInt(qo[2],10);function Ln(){if(Zx>Jx)return!0;if(Zx===Jx){if(eh>Qx)return!0;if(eh===Qx&&x_>=f_)return!0}return!1}function h_(e,t,r){Ln()?We.stat(e,{bigint:!0},(n,i)=>{if(n)return r(n);We.stat(t,{bigint:!0},(s,a)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:a}))}):We.stat(e,(n,i)=>{if(n)return r(n);We.stat(t,(s,a)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:a}))})}function d_(e,t){let r,n;Ln()?r=We.statSync(e,{bigint:!0}):r=We.statSync(e);try{Ln()?n=We.statSync(t,{bigint:!0}):n=We.statSync(t)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function p_(e,t,r,n){h_(e,t,(i,s)=>{if(i)return n(i);let{srcStat:a,destStat:o}=s;return o&&o.ino&&o.dev&&o.ino===a.ino&&o.dev===a.dev?n(new Error("Source and destination must not be the same.")):a.isDirectory()&&Oo(e,t)?n(new Error(Pn(e,t,r))):n(null,{srcStat:a,destStat:o})})}function g_(e,t,r){let{srcStat:n,destStat:i}=d_(e,t);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Oo(e,t))throw new Error(Pn(e,t,r));return{srcStat:n,destStat:i}}function Ao(e,t,r,n,i){let s=Be.resolve(Be.dirname(e)),a=Be.resolve(Be.dirname(r));if(a===s||a===Be.parse(a).root)return i();Ln()?We.stat(a,{bigint:!0},(o,u)=>o?o.code==="ENOENT"?i():i(o):u.ino&&u.dev&&u.ino===t.ino&&u.dev===t.dev?i(new Error(Pn(e,r,n))):Ao(e,t,a,n,i)):We.stat(a,(o,u)=>o?o.code==="ENOENT"?i():i(o):u.ino&&u.dev&&u.ino===t.ino&&u.dev===t.dev?i(new Error(Pn(e,r,n))):Ao(e,t,a,n,i))}function th(e,t,r,n){let i=Be.resolve(Be.dirname(e)),s=Be.resolve(Be.dirname(r));if(s===i||s===Be.parse(s).root)return;let a;try{Ln()?a=We.statSync(s,{bigint:!0}):a=We.statSync(s)}catch(o){if(o.code==="ENOENT")return;throw o}if(a.ino&&a.dev&&a.ino===t.ino&&a.dev===t.dev)throw new Error(Pn(e,r,n));return th(e,t,s,n)}function Oo(e,t){let r=Be.resolve(e).split(Be.sep).filter(i=>i),n=Be.resolve(t).split(Be.sep).filter(i=>i);return r.reduce((i,s,a)=>i&&n[a]===s,!0)}function Pn(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}rh.exports={checkPaths:p_,checkPathsSync:g_,checkParentPaths:Ao,checkParentPathsSync:th,isSrcSubdir:Oo}});var ih=c((EX,nh)=>{"use strict";nh.exports=function(e){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(e)}catch(t){return new Buffer(e)}return new Buffer(e)}});var ch=c((mX,uh)=>{"use strict";var re=fe(),Nn=require("path"),E_=je().mkdirsSync,m_=So().utimesMillisSync,jn=Mn();function y_(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=jn.checkPathsSync(e,t,"copy");return jn.checkParentPathsSync(e,n,t,"copy"),D_(i,e,t,r)}function D_(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=Nn.dirname(r);return re.existsSync(i)||E_(i),sh(e,t,r,n)}function sh(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return b_(e,t,r,n)}function b_(e,t,r,n){let s=(n.dereference?re.statSync:re.lstatSync)(t);if(s.isDirectory())return __(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return v_(s,e,t,r,n);if(s.isSymbolicLink())return A_(e,t,r,n)}function v_(e,t,r,n,i){return t?w_(e,r,n,i):ah(e,r,n,i)}function w_(e,t,r,n){if(n.overwrite)return re.unlinkSync(r),ah(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function ah(e,t,r,n){return typeof re.copyFileSync=="function"?(re.copyFileSync(t,r),re.chmodSync(r,e.mode),n.preserveTimestamps?m_(r,e.atime,e.mtime):void 0):F_(e,t,r,n)}function F_(e,t,r,n){let s=ih()(65536),a=re.openSync(t,"r"),o=re.openSync(r,"w",e.mode),u=0;for(;u<e.size;){let l=re.readSync(a,s,0,65536,u);re.writeSync(o,s,0,l),u+=l}n.preserveTimestamps&&re.futimesSync(o,e.atime,e.mtime),re.closeSync(a),re.closeSync(o)}function __(e,t,r,n,i){if(!t)return C_(e,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return oh(r,n,i)}function C_(e,t,r,n){return re.mkdirSync(r),oh(t,r,n),re.chmodSync(r,e.mode)}function oh(e,t,r){re.readdirSync(e).forEach(n=>S_(n,e,t,r))}function S_(e,t,r,n){let i=Nn.join(t,e),s=Nn.join(r,e),{destStat:a}=jn.checkPathsSync(i,s,"copy");return sh(a,i,s,n)}function A_(e,t,r,n){let i=re.readlinkSync(t);if(n.dereference&&(i=Nn.resolve(process.cwd(),i)),e){let s;try{s=re.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return re.symlinkSync(i,r);throw a}if(n.dereference&&(s=Nn.resolve(process.cwd(),s)),jn.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(re.statSync(r).isDirectory()&&jn.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return q_(i,r)}else return re.symlinkSync(i,r)}function q_(e,t){return re.unlinkSync(t),re.symlinkSync(e,t)}uh.exports=y_});var To=c((yX,lh)=>{"use strict";lh.exports={copySync:ch()}});var ft=c((DX,xh)=>{"use strict";var O_=Te().fromPromise,fh=mo();function T_(e){return fh.access(e).then(()=>!0).catch(()=>!1)}xh.exports={pathExists:O_(T_),pathExistsSync:fh.existsSync}});var bh=c((bX,Dh)=>{"use strict";var me=fe(),kn=require("path"),B_=je().mkdirs,R_=ft().pathExists,I_=So().utimesMillis,$n=Mn();function L_(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`),$n.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);let{srcStat:a,destStat:o}=s;$n.checkParentPaths(e,a,t,"copy",u=>u?n(u):r.filter?ph(hh,o,e,t,r,n):hh(o,e,t,r,n))})}function hh(e,t,r,n,i){let s=kn.dirname(r);R_(s,(a,o)=>{if(a)return i(a);if(o)return Bo(e,t,r,n,i);B_(s,u=>u?i(u):Bo(e,t,r,n,i))})}function ph(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(a=>a?e(t,r,n,i,s):s(),a=>s(a))}function Bo(e,t,r,n,i){return n.filter?ph(dh,e,t,r,n,i):dh(e,t,r,n,i)}function dh(e,t,r,n,i){(n.dereference?me.stat:me.lstat)(t,(a,o)=>{if(a)return i(a);if(o.isDirectory())return j_(o,e,t,r,n,i);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return P_(o,e,t,r,n,i);if(o.isSymbolicLink())return U_(e,t,r,n,i)})}function P_(e,t,r,n,i,s){return t?M_(e,r,n,i,s):gh(e,r,n,i,s)}function M_(e,t,r,n,i){if(n.overwrite)me.unlink(r,s=>s?i(s):gh(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function gh(e,t,r,n,i){return typeof me.copyFile=="function"?me.copyFile(t,r,s=>s?i(s):Eh(e,r,n,i)):N_(e,t,r,n,i)}function N_(e,t,r,n,i){let s=me.createReadStream(t);s.on("error",a=>i(a)).once("open",()=>{let a=me.createWriteStream(r,{mode:e.mode});a.on("error",o=>i(o)).on("open",()=>s.pipe(a)).once("close",()=>Eh(e,r,n,i))})}function Eh(e,t,r,n){me.chmod(t,e.mode,i=>i?n(i):r.preserveTimestamps?I_(t,e.atime,e.mtime,n):n())}function j_(e,t,r,n,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):mh(r,n,i,s):k_(e,r,n,i,s)}function k_(e,t,r,n,i){me.mkdir(r,s=>{if(s)return i(s);mh(t,r,n,a=>a?i(a):me.chmod(r,e.mode,i))})}function mh(e,t,r,n){me.readdir(e,(i,s)=>i?n(i):yh(s,e,t,r,n))}function yh(e,t,r,n,i){let s=e.pop();return s?$_(e,s,t,r,n,i):i()}function $_(e,t,r,n,i,s){let a=kn.join(r,t),o=kn.join(n,t);$n.checkPaths(a,o,"copy",(u,l)=>{if(u)return s(u);let{destStat:f}=l;Bo(f,a,o,i,x=>x?s(x):yh(e,r,n,i,s))})}function U_(e,t,r,n,i){me.readlink(t,(s,a)=>{if(s)return i(s);if(n.dereference&&(a=kn.resolve(process.cwd(),a)),e)me.readlink(r,(o,u)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?me.symlink(a,r,i):i(o):(n.dereference&&(u=kn.resolve(process.cwd(),u)),$n.isSrcSubdir(a,u)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&$n.isSrcSubdir(u,a)?i(new Error(`Cannot overwrite '${u}' with '${a}'.`)):G_(a,r,i)));else return me.symlink(a,r,i)})}function G_(e,t,r){me.unlink(t,n=>n?r(n):me.symlink(e,t,r))}Dh.exports=L_});var Ro=c((vX,vh)=>{"use strict";var W_=Te().fromCallback;vh.exports={copy:W_(bh())}});var Th=c((wX,Oh)=>{"use strict";var wh=fe(),Sh=require("path"),K=require("assert"),Un=process.platform==="win32";function Ah(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||wh[r],r=r+"Sync",e[r]=e[r]||wh[r]}),e.maxBusyTries=e.maxBusyTries||3}function Io(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),K(e,"rimraf: missing path"),K.strictEqual(typeof e,"string","rimraf: path should be a string"),K.strictEqual(typeof r,"function","rimraf: callback function required"),K(t,"rimraf: invalid options argument provided"),K.strictEqual(typeof t,"object","rimraf: options should be object"),Ah(t),Fh(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let a=n*100;return setTimeout(()=>Fh(e,t,i),a)}s.code==="ENOENT"&&(s=null)}r(s)})}function Fh(e,t,r){K(e),K(t),K(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Un)return _h(e,t,n,r);if(i&&i.isDirectory())return bs(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Un?_h(e,t,s,r):bs(e,t,s,r);if(s.code==="EISDIR")return bs(e,t,s,r)}return r(s)})})}function _h(e,t,r,n){K(e),K(t),K(typeof n=="function"),r&&K(r instanceof Error),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,a)=>{s?n(s.code==="ENOENT"?null:r):a.isDirectory()?bs(e,t,r,n):t.unlink(e,n)})})}function Ch(e,t,r){let n;K(e),K(t),r&&K(r instanceof Error);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?vs(e,t,r):t.unlinkSync(e)}function bs(e,t,r,n){K(e),K(t),r&&K(r instanceof Error),K(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?H_(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function H_(e,t,r){K(e),K(t),K(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,a;if(s===0)return t.rmdir(e,r);i.forEach(o=>{Io(Sh.join(e,o),t,u=>{if(!a){if(u)return r(a=u);--s===0&&t.rmdir(e,r)}})})})}function qh(e,t){let r;t=t||{},Ah(t),K(e,"rimraf: missing path"),K.strictEqual(typeof e,"string","rimraf: path should be a string"),K(t,"rimraf: missing options"),K.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Un&&Ch(e,t,n)}try{r&&r.isDirectory()?vs(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Un?Ch(e,t,n):vs(e,t,n);if(n.code!=="EISDIR")throw n;vs(e,t,n)}}function vs(e,t,r){K(e),K(t),r&&K(r instanceof Error);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")V_(e,t);else if(n.code!=="ENOENT")throw n}}function V_(e,t){if(K(e),K(t),t.readdirSync(e).forEach(r=>qh(Sh.join(e,r),t)),Un){let r=Date.now();do try{return t.rmdirSync(e,t)}catch(n){}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Oh.exports=Io;Io.sync=qh});var Gn=c((FX,Rh)=>{"use strict";var K_=Te().fromCallback,Bh=Th();Rh.exports={remove:K_(Bh),removeSync:Bh.sync}});var $h=c((_X,kh)=>{"use strict";var z_=Te().fromCallback,Ph=fe(),Mh=require("path"),Nh=je(),jh=Gn(),Ih=z_(function(t,r){r=r||function(){},Ph.readdir(t,(n,i)=>{if(n)return Nh.mkdirs(t,r);i=i.map(a=>Mh.join(t,a)),s();function s(){let a=i.pop();if(!a)return r();jh.remove(a,o=>{if(o)return r(o);s()})}})});function Lh(e){let t;try{t=Ph.readdirSync(e)}catch(r){return Nh.mkdirsSync(e)}t.forEach(r=>{r=Mh.join(e,r),jh.removeSync(r)})}kh.exports={emptyDirSync:Lh,emptydirSync:Lh,emptyDir:Ih,emptydir:Ih}});var Hh=c((CX,Wh)=>{"use strict";var Y_=Te().fromCallback,Uh=require("path"),Wn=fe(),Gh=je(),X_=ft().pathExists;function J_(e,t){function r(){Wn.writeFile(e,"",n=>{if(n)return t(n);t()})}Wn.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=Uh.dirname(e);X_(s,(a,o)=>{if(a)return t(a);if(o)return r();Gh.mkdirs(s,u=>{if(u)return t(u);r()})})})}function Q_(e){let t;try{t=Wn.statSync(e)}catch(n){}if(t&&t.isFile())return;let r=Uh.dirname(e);Wn.existsSync(r)||Gh.mkdirsSync(r),Wn.writeFileSync(e,"")}Wh.exports={createFile:Y_(J_),createFileSync:Q_}});var Xh=c((SX,Yh)=>{"use strict";var Z_=Te().fromCallback,Kh=require("path"),er=fe(),zh=je(),Vh=ft().pathExists;function eC(e,t,r){function n(i,s){er.link(i,s,a=>{if(a)return r(a);r(null)})}Vh(t,(i,s)=>{if(i)return r(i);if(s)return r(null);er.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);let o=Kh.dirname(t);Vh(o,(u,l)=>{if(u)return r(u);if(l)return n(e,t);zh.mkdirs(o,f=>{if(f)return r(f);n(e,t)})})})})}function tC(e,t){if(er.existsSync(t))return;try{er.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Kh.dirname(t);return er.existsSync(n)||zh.mkdirsSync(n),er.linkSync(e,t)}Yh.exports={createLink:Z_(eC),createLinkSync:tC}});var Qh=c((AX,Jh)=>{"use strict";var It=require("path"),Hn=fe(),rC=ft().pathExists;function nC(e,t,r){if(It.isAbsolute(e))return Hn.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=It.dirname(t),i=It.join(n,e);return rC(i,(s,a)=>s?r(s):a?r(null,{toCwd:i,toDst:e}):Hn.lstat(e,o=>o?(o.message=o.message.replace("lstat","ensureSymlink"),r(o)):r(null,{toCwd:e,toDst:It.relative(n,e)})))}}function iC(e,t){let r;if(It.isAbsolute(e)){if(r=Hn.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=It.dirname(t),i=It.join(n,e);if(r=Hn.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Hn.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:It.relative(n,e)}}}Jh.exports={symlinkPaths:nC,symlinkPathsSync:iC}});var t2=c((qX,e2)=>{"use strict";var Zh=fe();function sC(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);Zh.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function aC(e,t){let r;if(t)return t;try{r=Zh.lstatSync(e)}catch(n){return"file"}return r&&r.isDirectory()?"dir":"file"}e2.exports={symlinkType:sC,symlinkTypeSync:aC}});var u2=c((OX,o2)=>{"use strict";var oC=Te().fromCallback,n2=require("path"),Tr=fe(),i2=je(),uC=i2.mkdirs,cC=i2.mkdirsSync,s2=Qh(),lC=s2.symlinkPaths,fC=s2.symlinkPathsSync,a2=t2(),xC=a2.symlinkType,hC=a2.symlinkTypeSync,r2=ft().pathExists;function dC(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,r2(t,(i,s)=>{if(i)return n(i);if(s)return n(null);lC(e,t,(a,o)=>{if(a)return n(a);e=o.toDst,xC(o.toCwd,r,(u,l)=>{if(u)return n(u);let f=n2.dirname(t);r2(f,(x,h)=>{if(x)return n(x);if(h)return Tr.symlink(e,t,l,n);uC(f,p=>{if(p)return n(p);Tr.symlink(e,t,l,n)})})})})})}function pC(e,t,r){if(Tr.existsSync(t))return;let i=fC(e,t);e=i.toDst,r=hC(i.toCwd,r);let s=n2.dirname(t);return Tr.existsSync(s)||cC(s),Tr.symlinkSync(e,t,r)}o2.exports={createSymlink:oC(dC),createSymlinkSync:pC}});var l2=c((TX,c2)=>{"use strict";var ws=Hh(),Fs=Xh(),_s=u2();c2.exports={createFile:ws.createFile,createFileSync:ws.createFileSync,ensureFile:ws.createFile,ensureFileSync:ws.createFileSync,createLink:Fs.createLink,createLinkSync:Fs.createLinkSync,ensureLink:Fs.createLink,ensureLinkSync:Fs.createLinkSync,createSymlink:_s.createSymlink,createSymlinkSync:_s.createSymlinkSync,ensureSymlink:_s.createSymlink,ensureSymlinkSync:_s.createSymlinkSync}});var d2=c((BX,h2)=>{var Br;try{Br=fe()}catch(e){Br=require("fs")}function gC(e,t,r){r==null&&(r=t,t={}),typeof t=="string"&&(t={encoding:t}),t=t||{};var n=t.fs||Br,i=!0;"throws"in t&&(i=t.throws),n.readFile(e,t,function(s,a){if(s)return r(s);a=x2(a);var o;try{o=JSON.parse(a,t?t.reviver:null)}catch(u){return i?(u.message=e+": "+u.message,r(u)):r(null,null)}r(null,o)})}function EC(e,t){t=t||{},typeof t=="string"&&(t={encoding:t});var r=t.fs||Br,n=!0;"throws"in t&&(n=t.throws);try{var i=r.readFileSync(e,t);return i=x2(i),JSON.parse(i,t.reviver)}catch(s){if(n)throw s.message=e+": "+s.message,s;return null}}function f2(e,t){var r,n=`
`;typeof t=="object"&&t!==null&&(t.spaces&&(r=t.spaces),t.EOL&&(n=t.EOL));var i=JSON.stringify(e,t?t.replacer:null,r);return i.replace(/\n/g,n)+n}function mC(e,t,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||Br,s="";try{s=f2(t,r)}catch(a){n&&n(a,null);return}i.writeFile(e,s,r,n)}function yC(e,t,r){r=r||{};var n=r.fs||Br,i=f2(t,r);return n.writeFileSync(e,i,r)}function x2(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e=e.replace(/^\uFEFF/,""),e}var DC={readFile:gC,readFileSync:EC,writeFile:mC,writeFileSync:yC};h2.exports=DC});var Ss=c((RX,g2)=>{"use strict";var p2=Te().fromCallback,Cs=d2();g2.exports={readJson:p2(Cs.readFile),readJsonSync:Cs.readFileSync,writeJson:p2(Cs.writeFile),writeJsonSync:Cs.writeFileSync}});var y2=c((IX,m2)=>{"use strict";var bC=require("path"),vC=je(),wC=ft().pathExists,E2=Ss();function FC(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=bC.dirname(e);wC(i,(s,a)=>{if(s)return n(s);if(a)return E2.writeJson(e,t,r,n);vC.mkdirs(i,o=>{if(o)return n(o);E2.writeJson(e,t,r,n)})})}m2.exports=FC});var b2=c((LX,D2)=>{"use strict";var _C=fe(),CC=require("path"),SC=je(),AC=Ss();function qC(e,t,r){let n=CC.dirname(e);_C.existsSync(n)||SC.mkdirsSync(n),AC.writeJsonSync(e,t,r)}D2.exports=qC});var w2=c((PX,v2)=>{"use strict";var OC=Te().fromCallback,Ce=Ss();Ce.outputJson=OC(y2());Ce.outputJsonSync=b2();Ce.outputJSON=Ce.outputJson;Ce.outputJSONSync=Ce.outputJsonSync;Ce.writeJSON=Ce.writeJson;Ce.writeJSONSync=Ce.writeJsonSync;Ce.readJSON=Ce.readJson;Ce.readJSONSync=Ce.readJsonSync;v2.exports=Ce});var q2=c((MX,A2)=>{"use strict";var C2=fe(),TC=require("path"),BC=To().copySync,S2=Gn().removeSync,RC=je().mkdirpSync,F2=Mn();function IC(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=F2.checkPathsSync(e,t,"move");return F2.checkParentPathsSync(e,i,t,"move"),RC(TC.dirname(t)),LC(e,t,n)}function LC(e,t,r){if(r)return S2(t),_2(e,t,r);if(C2.existsSync(t))throw new Error("dest already exists.");return _2(e,t,r)}function _2(e,t,r){try{C2.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return PC(e,t,r)}}function PC(e,t,r){return BC(e,t,{overwrite:r,errorOnExist:!0}),S2(e)}A2.exports=IC});var T2=c((NX,O2)=>{"use strict";O2.exports={moveSync:q2()}});var P2=c((jX,L2)=>{"use strict";var MC=fe(),NC=require("path"),jC=Ro().copy,I2=Gn().remove,kC=je().mkdirp,$C=ft().pathExists,B2=Mn();function UC(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;B2.checkPaths(e,t,"move",(s,a)=>{if(s)return n(s);let{srcStat:o}=a;B2.checkParentPaths(e,o,t,"move",u=>{if(u)return n(u);kC(NC.dirname(t),l=>l?n(l):GC(e,t,i,n))})})}function GC(e,t,r,n){if(r)return I2(t,i=>i?n(i):R2(e,t,r,n));$C(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):R2(e,t,r,n))}function R2(e,t,r,n){MC.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):WC(e,t,r,n):n())}function WC(e,t,r,n){jC(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):I2(e,n))}L2.exports=UC});var N2=c((kX,M2)=>{"use strict";var HC=Te().fromCallback;M2.exports={move:HC(P2())}});var U2=c(($X,$2)=>{"use strict";var VC=Te().fromCallback,Vn=fe(),j2=require("path"),k2=je(),KC=ft().pathExists;function zC(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=j2.dirname(e);KC(i,(s,a)=>{if(s)return n(s);if(a)return Vn.writeFile(e,t,r,n);k2.mkdirs(i,o=>{if(o)return n(o);Vn.writeFile(e,t,r,n)})})}function YC(e,...t){let r=j2.dirname(e);if(Vn.existsSync(r))return Vn.writeFileSync(e,...t);k2.mkdirsSync(r),Vn.writeFileSync(e,...t)}$2.exports={outputFile:VC(zC),outputFileSync:YC}});var W2=c((UX,Lo)=>{"use strict";Lo.exports=Object.assign({},mo(),To(),Ro(),$h(),l2(),w2(),je(),T2(),N2(),U2(),ft(),Gn());var G2=require("fs");Object.getOwnPropertyDescriptor(G2,"promises")&&Object.defineProperty(Lo.exports,"promises",{get(){return G2.promises}})});var Po=c((GX,H2)=>{"use strict";H2.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Mo=c((WX,K2)=>{var Kn=Po(),V2={};for(let e of Object.keys(Kn))V2[Kn[e]]=e;var A={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};K2.exports=A;for(let e of Object.keys(A)){if(!("channels"in A[e]))throw new Error("missing channels property: "+e);if(!("labels"in A[e]))throw new Error("missing channel labels property: "+e);if(A[e].labels.length!==A[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=A[e];delete A[e].channels,delete A[e].labels,Object.defineProperty(A[e],"channels",{value:t}),Object.defineProperty(A[e],"labels",{value:r})}A.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),a=s-i,o,u;s===i?o=0:t===s?o=(r-n)/a:r===s?o=2+(n-t)/a:n===s&&(o=4+(t-r)/a),o=Math.min(o*60,360),o<0&&(o+=360);let l=(i+s)/2;return s===i?u=0:l<=.5?u=a/(s+i):u=a/(2-s-i),[o,u*100,l*100]};A.rgb.hsv=function(e){let t,r,n,i,s,a=e[0]/255,o=e[1]/255,u=e[2]/255,l=Math.max(a,o,u),f=l-Math.min(a,o,u),x=function(h){return(l-h)/6/f+1/2};return f===0?(i=0,s=0):(s=f/l,t=x(a),r=x(o),n=x(u),a===l?i=n-r:o===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};A.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=A.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};A.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,a=(1-r-i)/(1-i)||0,o=(1-n-i)/(1-i)||0;return[s*100,a*100,o*100,i*100]};function XC(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}A.rgb.keyword=function(e){let t=V2[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(Kn)){let s=Kn[i],a=XC(e,s);a<r&&(r=a,n=i)}return n};A.keyword.rgb=function(e){return Kn[e]};A.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return[i*100,s*100,a*100]};A.rgb.lab=function(e){let t=A.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,a=500*(r-n),o=200*(n-i);return[s,a,o]};A.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,a;if(r===0)return a=n*255,[a,a,a];n<.5?i=n*(1+r):i=n+r-n*r;let o=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)s=t+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?a=o+(i-o)*6*s:2*s<1?a=i:3*s<2?a=o+(i-o)*(2/3-s)*6:a=o,u[l]=a*255;return u};A.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r);return[t,o*100,a*100]};A.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),a=255*n*(1-r),o=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,a];case 1:return[o,n,a];case 2:return[a,n,u];case 3:return[a,o,n];case 4:return[u,a,n];case 5:return[n,a,o]}};A.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,a;a=(2-r)*n;let o=(2-r)*i;return s=r*i,s/=o<=1?o:2-o,s=s||0,a/=2,[t,s*100,a*100]};A.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let a=Math.floor(6*t),o=1-n;s=6*t-a,a&1&&(s=1-s);let u=r+s*(o-r),l,f,x;switch(a){default:case 6:case 0:l=o,f=u,x=r;break;case 1:l=u,f=o,x=r;break;case 2:l=r,f=o,x=u;break;case 3:l=r,f=u,x=o;break;case 4:l=u,f=r,x=o;break;case 5:l=o,f=r,x=u;break}return[l*255,f*255,x*255]};A.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,n*(1-i)+i);return[s*255,a*255,o*255]};A.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,a;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),[i*255,s*255,a*255]};A.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),a=200*(r-n);return[i,s,a]};A.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,a;s=(t+16)/116,i=r/500+s,a=s-n/200;let o=s**3,u=i**3,l=a**3;return s=o>.008856?o:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,s*=100,a*=108.883,[i,s,a]};A.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let a=Math.sqrt(r*r+n*n);return[t,a,i]};A.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),a=r*Math.sin(i);return[t,s,a]};A.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?A.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(a+=60),a};A.hsv.ansi16=function(e){return A.rgb.ansi16(A.hsv.rgb(e),e[2])};A.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};A.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};A.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};A.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};A.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(o=>o+o).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,a=n&255;return[i,s,a]};A.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),a=i-s,o,u;return a<1?o=s/(1-a):o=0,a<=0?u=0:i===t?u=(r-n)/a%6:i===r?u=2+(n-t)/a:u=4+(t-r)/a,u/=6,u%=1,[u*360,a*100,o*100]};A.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};A.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};A.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,a=s%1,o=1-a,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};A.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};A.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};A.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};A.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};A.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};A.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};A.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};A.gray.hsl=function(e){return[0,0,e[0]]};A.gray.hsv=A.gray.hsl;A.gray.hwb=function(e){return[0,100,e[0]]};A.gray.cmyk=function(e){return[0,0,0,e[0]]};A.gray.lab=function(e){return[e[0],0,0]};A.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};A.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Y2=c((HX,z2)=>{var As=Mo();function JC(){let e={},t=Object.keys(As);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function QC(e){let t=JC(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(As[n]);for(let s=i.length,a=0;a<s;a++){let o=i[a],u=t[o];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(o))}}return t}function ZC(e,t){return function(r){return t(e(r))}}function e9(e,t){let r=[t[e].parent,e],n=As[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=ZC(As[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}z2.exports=function(e){let t=QC(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let a=n[s];t[a].parent!==null&&(r[a]=e9(a,t))}return r}});var J2=c((VX,X2)=>{var No=Mo(),t9=Y2(),Rr={},r9=Object.keys(No);function n9(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function i9(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let