import{f as e,m as t,p as n}from"./github-DTObde6f.js";import r from"fs";import i from"path";import a from"util";var o=e(((e,t)=>{let n=(e,t)=>function(...n){let r=t.promiseModule;return new r((r,i)=>{t.multiArgs?n.push((...e)=>{t.errorFirst?e[0]?i(e):(e.shift(),r(e)):r(e)}):t.errorFirst?n.push((e,t)=>{e?i(e):r(t)}):n.push(r),e.apply(this,n)})};t.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=typeof e;if(!(e!==null&&(r===`object`||r===`function`)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?`null`:r}\``);let i=e=>{let n=t=>typeof t==`string`?e===t:t.test(e);return t.include?t.include.some(n):!t.exclude.some(n)},a;a=r===`function`?function(...r){return t.excludeMain?e(...r):n(e,t).apply(this,r)}:Object.create(Object.getPrototypeOf(e));for(let r in e){let o=e[r];a[r]=typeof o==`function`&&i(r)?n(o,t):o}return a}})),s=e(((e,t)=>{function n(e){return Array.isArray(e)?e:[e]}let r=/^\s+$/,i=/(?:[^\\]|^)\\$/,a=/^\\!/,o=/^\\#/,s=/\r?\n/g,c=/^\.*\/|^\.+$/,l=`node-ignore`;typeof Symbol<`u`&&(l=Symbol.for(`node-ignore`));let u=l,d=(e,t,n)=>Object.defineProperty(e,t,{value:n}),f=/([0-z])-([0-z])/g,p=()=>!1,m=e=>e.replace(f,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:``),h=e=>{let{length:t}=e;return e.slice(0,t-t%2)},g=[[/^\uFEFF/,()=>``],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(n.indexOf(`\\`)===0?` `:``)],[/(\\+?)\s/g,(e,t)=>{let{length:n}=t;return t.slice(0,n-n%2)+` `}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>`[^/]`],[/^\//,()=>`^`],[/\//g,()=>`\\/`],[/^\^*\\\*\\\*\\\//,()=>`^(?:.*\\/)?`],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?`^`:`(?:^|\\/)`}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6t+n.replace(/\\\*/g,`[^\\/]*`)],[/\\\\\\(?=[$.|*+(){^])/g,()=>`\\`],[/\\\\/g,()=>`\\`],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===`\\`?`\\[${n}${h(r)}${i}`:i===`]`&&r.length%2==0?`[${m(n)}${r}]`:`[]`],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:`[^/]*`}(?=$|\\/$)`]],_=Object.create(null),v=(e,t)=>{let n=_[e];return n||(n=g.reduce((t,[n,r])=>t.replace(n,r.bind(e)),e),_[e]=n),t?new RegExp(n,`i`):new RegExp(n)},y=e=>typeof e==`string`,b=e=>e&&y(e)&&!r.test(e)&&!i.test(e)&&e.indexOf(`#`)!==0,x=e=>e.split(s);var S=class{constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}};let C=(e,t)=>{let n=e,r=!1;e.indexOf(`!`)===0&&(r=!0,e=e.substr(1)),e=e.replace(a,`!`).replace(o,`#`);let i=v(e,t);return new S(n,e,r,i)},w=(e,t)=>{throw new t(e)},T=(e,t,n)=>y(e)?e?T.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:n(`path must not be empty`,TypeError):n(`path must be a string, but got \`${t}\``,TypeError),E=e=>c.test(e);T.isNotRelative=E,T.convert=e=>e;var D=class{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){d(this,u,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[u]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(b(e)){let t=C(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,n(y(e)?x(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(i=>{let{negative:a}=i;r===a&&n!==r||a&&!n&&!r&&!t||i.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){let i=e&&T.convert(e);return T(i,e,this._allowRelativePaths?p:w),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||=e.split(`/`),r.pop(),!r.length)return t[e]=this._testOne(e,n);let i=this._t(r.join(`/`)+`/`,t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return n(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}};let O=e=>new D(e);if(O.isPathValid=e=>T(e&&T.convert(e),e,p),O.default=O,t.exports=O,typeof process<`u`&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform===`win32`)){T.convert=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,`/`);let e=/^[a-z]:\//i;T.isNotRelative=t=>e.test(t)||E(t)}})),c=e((e=>{e.fromCallback=function(e){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]==`function`)e.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(e,r)=>{if(e)return n(e);t(r)},arguments.length++,e.apply(this,arguments)})},`name`,{value:e.name})},e.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(e=>t(null,e),t)},`name`,{value:e.name})}})),l=e(((e,t)=>{var r=n(`constants`),i=process.cwd,a=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return a||=i.call(process),a};try{process.cwd()}catch{}if(typeof process.chdir==`function`){var s=process.chdir;process.chdir=function(e){a=null,s.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s)}t.exports=c;function c(e){r.hasOwnProperty(`O_SYMLINK`)&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),o===`win32`&&(e.rename=typeof e.rename==`function`?(function(t){function n(n,r,i){var a=Date.now(),o=0;t(n,r,function s(c){if(c&&(c.code===`EACCES`||c.code===`EPERM`||c.code===`EBUSY`)&&Date.now()-a<6e4){setTimeout(function(){e.stat(r,function(e,a){e&&e.code===`ENOENT`?t(n,r,s):i(c)})},o),o<100&&(o+=10);return}i&&i(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.rename):e.rename),e.read=typeof e.read==`function`?(function(t){function n(n,r,i,a,o,s){var c;if(s&&typeof s==`function`){var l=0;c=function(u,d,f){if(u&&u.code===`EAGAIN`&&l<10)return l++,t.call(e,n,r,i,a,o,c);s.apply(this,arguments)}}return t.call(e,n,r,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.read):e.read,e.readSync=typeof e.readSync==`function`?(function(t){return function(n,r,i,a,o){for(var s=0;;)try{return t.call(e,n,r,i,a,o)}catch(e){if(e.code===`EAGAIN`&&s<10){s++;continue}throw e}}})(e.readSync):e.readSync;function t(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,function(t,r){if(t){i&&i(t);return}e.fchmod(r,n,function(t){e.close(r,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,n){var i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),a=!0,o;try{o=e.fchmodSync(i,n),a=!1}finally{if(a)try{e.closeSync(i)}catch{}else e.closeSync(i)}return o}}function n(e){r.hasOwnProperty(`O_SYMLINK`)&&e.futimes?(e.lutimes=function(t,n,i,a){e.open(t,r.O_SYMLINK,function(t,r){if(t){a&&a(t);return}e.futimes(r,n,i,function(t){e.close(r,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,n,i){var a=e.openSync(t,r.O_SYMLINK),o,s=!0;try{o=e.futimesSync(a,n,i),s=!1}finally{if(s)try{e.closeSync(a)}catch{}else e.closeSync(a)}return o}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}function i(t){return t&&function(n,r,i){return t.call(e,n,r,function(e){d(e)&&(e=null),i&&i.apply(this,arguments)})}}function a(t){return t&&function(n,r){try{return t.call(e,n,r)}catch(e){if(!d(e))throw e}}}function s(t){return t&&function(n,r,i,a){return t.call(e,n,r,i,function(e){d(e)&&(e=null),a&&a.apply(this,arguments)})}}function c(t){return t&&function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!d(e))throw e}}}function l(t){return t&&function(n,r,i){typeof r==`function`&&(i=r,r=null);function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return r?t.call(e,n,r,a):t.call(e,n,a)}}function u(t){return t&&function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}}function d(e){return!e||e.code===`ENOSYS`||(!process.getuid||process.getuid()!==0)&&(e.code===`EINVAL`||e.code===`EPERM`)}}})),u=e(((e,t)=>{var r=n(`stream`).Stream;t.exports=i;function i(e){return{ReadStream:t,WriteStream:n};function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags=`r`,this.mode=438,this.bufferSize=64*1024,i||={};for(var o=Object.keys(i),s=0,c=o.length;sthis.end)throw Error(`start must be <= end`);this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){a.emit(`error`,e),a.readable=!1;return}a.fd=t,a.emit(`open`,t),a._read()})}function n(t,i){if(!(this instanceof n))return new n(t,i);r.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags=`w`,this.encoding=`binary`,this.mode=438,this.bytesWritten=0,i||={};for(var a=Object.keys(i),o=0,s=a.length;o= 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())}}})),d=e(((e,t)=>{t.exports=r;var n=Object.getPrototypeOf||function(e){return e.__proto__};function r(e){if(typeof e!=`object`||!e)return e;if(e instanceof Object)var t={__proto__:n(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}})),f=e(((e,t)=>{var r=n(`fs`),i=l(),a=u(),o=d(),s=n(`util`),c,f;typeof Symbol==`function`&&typeof Symbol.for==`function`?(c=Symbol.for(`graceful-fs.queue`),f=Symbol.for(`graceful-fs.previous`)):(c=`___graceful-fs.queue`,f=`___graceful-fs.previous`);function p(){}function m(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var h=p;s.debuglog?h=s.debuglog(`gfs4`):/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&(h=function(){var e=s.format.apply(s,arguments);e=`GFS4: `+e.split(/\n/).join(` GFS4: `),console.error(e)}),r[c]||(m(r,global[c]||[]),r.close=(function(e){function t(t,n){return e.call(r,t,function(e){e||y(),typeof n==`function`&&n.apply(this,arguments)})}return Object.defineProperty(t,f,{value:e}),t})(r.close),r.closeSync=(function(e){function t(t){e.apply(r,arguments),y()}return Object.defineProperty(t,f,{value:e}),t})(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&process.on(`exit`,function(){h(r[c]),n(`assert`).equal(r[c].length,0)})),global[c]||m(global,r[c]),t.exports=g(o(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=g(r),r.__patched=!0);function g(e){i(e),e.gracefulify=g,e.createReadStream=T,e.createWriteStream=E;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?_([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=o;function o(e,t,n,i){return typeof n==`function`&&(i=n,n=null),a(e,t,n,i);function a(e,t,n,i,o){return r(e,t,n,function(r){r&&(r.code===`EMFILE`||r.code===`ENFILE`)?_([a,[e,t,n,i],r,o||Date.now(),Date.now()]):typeof i==`function`&&i.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=c);function c(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return s(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(e,t,n){typeof t==`function`&&(n=t,t=null);var r=f.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?_([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var m=a(e);x=m.ReadStream,C=m.WriteStream}var h=e.ReadStream;h&&(x.prototype=Object.create(h.prototype),x.prototype.open=S);var v=e.WriteStream;v&&(C.prototype=Object.create(v.prototype),C.prototype.open=w),Object.defineProperty(e,`ReadStream`,{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,`WriteStream`,{get:function(){return C},set:function(e){C=e},enumerable:!0,configurable:!0});var y=x;Object.defineProperty(e,`FileReadStream`,{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var b=C;Object.defineProperty(e,`FileWriteStream`,{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});function x(e,t){return this instanceof x?(h.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function S(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function C(e,t){return this instanceof C?(v.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function w(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function T(t,n){return new e.ReadStream(t,n)}function E(t,n){return new e.WriteStream(t,n)}var D=e.open;e.open=O;function O(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return D(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function _(e){h(`ENQUEUE`,e[0].name,e[1]),r[c].push(e),b()}var v;function y(){for(var e=Date.now(),t=0;t2&&(r[c][t][3]=e,r[c][t][4]=e);b()}function b(){if(clearTimeout(v),v=void 0,r[c].length!==0){var e=r[c].shift(),t=e[0],n=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)h(`RETRY`,t.name,n),t.apply(null,n);else if(Date.now()-a>=6e4){h(`TIMEOUT`,t.name,n);var s=n.pop();typeof s==`function`&&s.call(null,i)}else{var l=Date.now()-o,u=Math.max(o-a,1);l>=Math.min(u*1.2,100)?(h(`RETRY`,t.name,n),t.apply(null,n.concat([a]))):r[c].push(e)}v===void 0&&(v=setTimeout(b,0))}}})),p=e((e=>{let t=c().fromCallback,n=f(),r=`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`.split(`.`).filter(e=>typeof n[e]==`function`);Object.keys(n).forEach(t=>{t!==`promises`&&(e[t]=n[t])}),r.forEach(r=>{e[r]=t(n[r])}),e.exists=function(e,t){return typeof t==`function`?n.exists(e,t):new Promise(t=>n.exists(e,t))},e.read=function(e,t,r,i,a,o){return typeof o==`function`?n.read(e,t,r,i,a,o):new Promise((o,s)=>{n.read(e,t,r,i,a,(e,t,n)=>{if(e)return s(e);o({bytesRead:t,buffer:n})})})},e.write=function(e,t,...r){return typeof r[r.length-1]==`function`?n.write(e,t,...r):new Promise((i,a)=>{n.write(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffer:n})})})}})),m=e(((e,t)=>{let r=n(`path`);function i(e){return e=r.normalize(r.resolve(e)).split(r.sep),e.length>0?e[0]:null}let a=/[<>:"|?*]/;function o(e){let t=i(e);return e=e.replace(t,``),a.test(e)}t.exports={getRootPath:i,invalidWin32Path:o}})),h=e(((e,t)=>{let r=f(),i=n(`path`),a=m().invalidWin32Path;function o(e,t,n,s){if(typeof t==`function`?(n=t,t={}):(!t||typeof t!=`object`)&&(t={mode:t}),process.platform===`win32`&&a(e)){let t=Error(e+` contains invalid WIN32 path characters.`);return t.code=`EINVAL`,n(t)}let c=t.mode,l=t.fs||r;c===void 0&&(c=511&~process.umask()),s||=null,n||=function(){},e=i.resolve(e),l.mkdir(e,c,r=>{if(!r)return s||=e,n(null,s);switch(r.code){case`ENOENT`:if(i.dirname(e)===e)return n(r);o(i.dirname(e),t,(r,i)=>{r?n(r,i):o(e,t,n,i)});break;default:l.stat(e,(e,t)=>{e||!t.isDirectory()?n(r,s):n(null,s)});break}})}t.exports=o})),g=e(((e,t)=>{let r=f(),i=n(`path`),a=m().invalidWin32Path;function o(e,t,n){(!t||typeof t!=`object`)&&(t={mode:t});let s=t.mode,c=t.fs||r;if(process.platform===`win32`&&a(e)){let t=Error(e+` contains invalid WIN32 path characters.`);throw t.code=`EINVAL`,t}s===void 0&&(s=511&~process.umask()),n||=null,e=i.resolve(e);try{c.mkdirSync(e,s),n||=e}catch(r){if(r.code===`ENOENT`){if(i.dirname(e)===e)throw r;n=o(i.dirname(e),t,n),o(e,t,n)}else{let t;try{t=c.statSync(e)}catch{throw r}if(!t.isDirectory())throw r}}return n}t.exports=o})),_=e(((e,t)=>{let n=c().fromCallback,r=n(h()),i=g();t.exports={mkdirs:r,mkdirsSync:i,mkdirp:r,mkdirpSync:i,ensureDir:r,ensureDirSync:i}})),v=e(((e,t)=>{let r=f(),i=n(`os`),a=n(`path`);function o(){let e=a.join(`millis-test-sync`+Date.now().toString()+Math.random().toString().slice(2));e=a.join(i.tmpdir(),e);let t=new Date(1435410243862);r.writeFileSync(e,`https://github.com/jprichardson/node-fs-extra/pull/141`);let n=r.openSync(e,`r+`);return r.futimesSync(n,t,t),r.closeSync(n),r.statSync(e).mtime>1435410243e3}function s(e){let t=a.join(`millis-test`+Date.now().toString()+Math.random().toString().slice(2));t=a.join(i.tmpdir(),t);let n=new Date(1435410243862);r.writeFile(t,`https://github.com/jprichardson/node-fs-extra/pull/141`,i=>{if(i)return e(i);r.open(t,`r+`,(i,a)=>{if(i)return e(i);r.futimes(a,n,n,n=>{if(n)return e(n);r.close(a,n=>{if(n)return e(n);r.stat(t,(t,n)=>{if(t)return e(t);e(null,n.mtime>1435410243e3)})})})})})}function c(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 Error(`fs-extra: timeRemoveMillis() unknown parameter type`)}function l(e,t,n,i){r.open(e,`r+`,(e,a)=>{if(e)return i(e);r.futimes(a,t,n,e=>{r.close(a,t=>{i&&i(e||t)})})})}function u(e,t,n){let i=r.openSync(e,`r+`);return r.futimesSync(i,t,n),r.closeSync(i)}t.exports={hasMillisRes:s,hasMillisResSync:o,timeRemoveMillis:c,utimesMillis:l,utimesMillisSync:u}})),y=e(((e,t)=>{t.exports=function(e){if(typeof Buffer.allocUnsafe==`function`)try{return Buffer.allocUnsafe(e)}catch{return new Buffer(e)}return new Buffer(e)}})),b=e(((e,t)=>{let r=f(),i=n(`path`),a=_().mkdirsSync,o=v().utimesMillisSync,s=Symbol(`notExist`);function c(e,t,n){typeof n==`function`&&(n={filter:n}),n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.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 o=D(e,t);if(n.filter&&!n.filter(e,t))return;let s=i.dirname(t);return r.existsSync(s)||a(s),l(o,e,t,n)}function l(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return u(e,t,n,r)}function u(e,t,n,i){let a=(i.dereference?r.statSync:r.lstatSync)(t);if(a.isDirectory())return g(a,e,t,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return d(a,e,t,n,i);if(a.isSymbolicLink())return C(e,t,n,i)}function d(e,t,n,r,i){return t===s?m(e,n,r,i):p(e,n,r,i)}function p(e,t,n,i){if(i.overwrite)return r.unlinkSync(n),m(e,t,n,i);if(i.errorOnExist)throw Error(`'${n}' already exists`)}function m(e,t,n,i){return typeof r.copyFileSync==`function`?(r.copyFileSync(t,n),r.chmodSync(n,e.mode),i.preserveTimestamps?o(n,e.atime,e.mtime):void 0):h(e,t,n,i)}function h(e,t,n,i){let a=64*1024,o=y()(a),s=r.openSync(t,`r`),c=r.openSync(n,`w`,e.mode),l=0;for(;lS(r,e,t,n))}function S(e,t,n,r){let a=i.join(t,e),o=i.join(n,e);return l(D(a,o),a,o,r)}function C(e,t,n,a){let o=r.readlinkSync(t);if(a.dereference&&(o=i.resolve(process.cwd(),o)),e===s)return r.symlinkSync(o,n);{let e;try{e=r.readlinkSync(n)}catch(e){if(e.code===`EINVAL`||e.code===`UNKNOWN`)return r.symlinkSync(o,n);throw e}if(a.dereference&&(e=i.resolve(process.cwd(),e)),T(o,e))throw Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(r.statSync(n).isDirectory()&&T(e,o))throw Error(`Cannot overwrite '${e}' with '${o}'.`);return w(o,n)}}function w(e,t){return r.unlinkSync(t),r.symlinkSync(e,t)}function T(e,t){let n=i.resolve(e).split(i.sep),r=i.resolve(t).split(i.sep);return n.reduce((e,t,n)=>e&&r[n]===t,!0)}function E(e,t){let n=r.statSync(e),i;try{i=r.statSync(t)}catch(e){if(e.code===`ENOENT`)return{srcStat:n,destStat:s};throw e}return{srcStat:n,destStat:i}}function D(e,t){let{srcStat:n,destStat:r}=E(e,t);if(r.ino&&r.ino===n.ino)throw Error(`Source and destination must not be the same.`);if(n.isDirectory()&&T(e,t))throw Error(`Cannot copy '${e}' to a subdirectory of itself, '${t}'.`);return r}t.exports=c})),x=e(((e,t)=>{t.exports={copySync:b()}})),S=e(((e,t)=>{let n=c().fromPromise,r=p();function i(e){return r.access(e).then(()=>!0).catch(()=>!1)}t.exports={pathExists:n(i),pathExistsSync:r.existsSync}})),C=e(((e,t)=>{let r=f(),i=n(`path`),a=_().mkdirs,o=S().pathExists,s=v().utimesMillis,c=Symbol(`notExist`);function l(e,t,n,r){typeof n==`function`&&!r?(r=n,n={}):typeof n==`function`&&(n={filter:n}),r||=function(){},n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.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`),j(e,t,(i,a)=>i?r(i):n.filter?d(u,a,e,t,n,r):u(a,e,t,n,r))}function u(e,t,n,r,s){let c=i.dirname(n);o(c,(i,o)=>{if(i)return s(i);if(o)return p(e,t,n,r,s);a(c,i=>i?s(i):p(e,t,n,r,s))})}function d(e,t,n,r,i,a){Promise.resolve(i.filter(n,r)).then(o=>o?t?e(t,n,r,i,a):e(n,r,i,a):a(),e=>a(e))}function p(e,t,n,r,i){return r.filter?d(m,e,t,n,r,i):m(e,t,n,r,i)}function m(e,t,n,i,a){(i.dereference?r.stat:r.lstat)(t,(r,o)=>{if(r)return a(r);if(o.isDirectory())return C(o,e,t,n,i,a);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return h(o,e,t,n,i,a);if(o.isSymbolicLink())return O(e,t,n,i,a)})}function h(e,t,n,r,i,a){return t===c?y(e,n,r,i,a):g(e,n,r,i,a)}function g(e,t,n,i,a){if(i.overwrite)r.unlink(n,r=>r?a(r):y(e,t,n,i,a));else if(i.errorOnExist)return a(Error(`'${n}' already exists`));else return a()}function y(e,t,n,i,a){return typeof r.copyFile==`function`?r.copyFile(t,n,t=>t?a(t):x(e,n,i,a)):b(e,t,n,i,a)}function b(e,t,n,i,a){let o=r.createReadStream(t);o.on(`error`,e=>a(e)).once(`open`,()=>{let t=r.createWriteStream(n,{mode:e.mode});t.on(`error`,e=>a(e)).on(`open`,()=>o.pipe(t)).once(`close`,()=>x(e,n,i,a))})}function x(e,t,n,i){r.chmod(t,e.mode,r=>r?i(r):n.preserveTimestamps?s(t,e.atime,e.mtime,i):i())}function C(e,t,n,r,i,a){return t===c?w(e,n,r,i,a):t&&!t.isDirectory()?a(Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):T(n,r,i,a)}function w(e,t,n,i,a){r.mkdir(n,o=>{if(o)return a(o);T(t,n,i,t=>t?a(t):r.chmod(n,e.mode,a))})}function T(e,t,n,i){r.readdir(e,(r,a)=>r?i(r):E(a,e,t,n,i))}function E(e,t,n,r,i){let a=e.pop();return a?D(e,a,t,n,r,i):i()}function D(e,t,n,r,a,o){let s=i.join(n,t),c=i.join(r,t);j(s,c,(t,i)=>{if(t)return o(t);p(i,s,c,a,t=>t?o(t):E(e,n,r,a,o))})}function O(e,t,n,a,o){r.readlink(t,(t,s)=>{if(t)return o(t);if(a.dereference&&(s=i.resolve(process.cwd(),s)),e===c)return r.symlink(s,n,o);r.readlink(n,(t,c)=>t?t.code===`EINVAL`||t.code===`UNKNOWN`?r.symlink(s,n,o):o(t):(a.dereference&&(c=i.resolve(process.cwd(),c)),A(s,c)?o(Error(`Cannot copy '${s}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&A(c,s)?o(Error(`Cannot overwrite '${c}' with '${s}'.`)):k(s,n,o)))})}function k(e,t,n){r.unlink(t,i=>i?n(i):r.symlink(e,t,n))}function A(e,t){let n=i.resolve(e).split(i.sep),r=i.resolve(t).split(i.sep);return n.reduce((e,t,n)=>e&&r[n]===t,!0)}function ee(e,t,n){r.stat(e,(e,i)=>{if(e)return n(e);r.stat(t,(e,t)=>e?e.code===`ENOENT`?n(null,{srcStat:i,destStat:c}):n(e):n(null,{srcStat:i,destStat:t}))})}function j(e,t,n){ee(e,t,(r,i)=>{if(r)return n(r);let{srcStat:a,destStat:o}=i;return o.ino&&o.ino===a.ino?n(Error(`Source and destination must not be the same.`)):a.isDirectory()&&A(e,t)?n(Error(`Cannot copy '${e}' to a subdirectory of itself, '${t}'.`)):n(null,o)})}t.exports=l})),w=e(((e,t)=>{let n=c().fromCallback;t.exports={copy:n(C())}})),T=e(((e,t)=>{let r=f(),i=n(`path`),a=n(`assert`),o=process.platform===`win32`;function s(e){[`unlink`,`chmod`,`stat`,`lstat`,`rmdir`,`readdir`].forEach(t=>{e[t]=e[t]||r[t],t+=`Sync`,e[t]=e[t]||r[t]}),e.maxBusyTries=e.maxBusyTries||3}function c(e,t,n){let r=0;typeof t==`function`&&(n=t,t={}),a(e,`rimraf: missing path`),a.strictEqual(typeof e,`string`,`rimraf: path should be a string`),a.strictEqual(typeof n,`function`,`rimraf: callback function required`),a(t,`rimraf: invalid options argument provided`),a.strictEqual(typeof t,`object`,`rimraf: options should be object`),s(t),l(e,t,function i(a){if(a){if((a.code===`EBUSY`||a.code===`ENOTEMPTY`||a.code===`EPERM`)&&rl(e,t,i),n)}a.code===`ENOENT`&&(a=null)}n(a)})}function l(e,t,n){a(e),a(t),a(typeof n==`function`),t.lstat(e,(r,i)=>{if(r&&r.code===`ENOENT`)return n(null);if(r&&r.code===`EPERM`&&o)return u(e,t,r,n);if(i&&i.isDirectory())return p(e,t,r,n);t.unlink(e,r=>{if(r){if(r.code===`ENOENT`)return n(null);if(r.code===`EPERM`)return o?u(e,t,r,n):p(e,t,r,n);if(r.code===`EISDIR`)return p(e,t,r,n)}return n(r)})})}function u(e,t,n,r){a(e),a(t),a(typeof r==`function`),n&&a(n instanceof Error),t.chmod(e,438,i=>{i?r(i.code===`ENOENT`?null:n):t.stat(e,(i,a)=>{i?r(i.code===`ENOENT`?null:n):a.isDirectory()?p(e,t,n,r):t.unlink(e,r)})})}function d(e,t,n){let r;a(e),a(t),n&&a(n instanceof Error);try{t.chmodSync(e,438)}catch(e){if(e.code===`ENOENT`)return;throw n}try{r=t.statSync(e)}catch(e){if(e.code===`ENOENT`)return;throw n}r.isDirectory()?g(e,t,n):t.unlinkSync(e)}function p(e,t,n,r){a(e),a(t),n&&a(n instanceof Error),a(typeof r==`function`),t.rmdir(e,i=>{i&&(i.code===`ENOTEMPTY`||i.code===`EEXIST`||i.code===`EPERM`)?m(e,t,r):i&&i.code===`ENOTDIR`?r(n):r(i)})}function m(e,t,n){a(e),a(t),a(typeof n==`function`),t.readdir(e,(r,a)=>{if(r)return n(r);let o=a.length,s;if(o===0)return t.rmdir(e,n);a.forEach(r=>{c(i.join(e,r),t,r=>{if(!s){if(r)return n(s=r);--o===0&&t.rmdir(e,n)}})})})}function h(e,t){let n;t||={},s(t),a(e,`rimraf: missing path`),a.strictEqual(typeof e,`string`,`rimraf: path should be a string`),a(t,`rimraf: missing options`),a.strictEqual(typeof t,`object`,`rimraf: options should be object`);try{n=t.lstatSync(e)}catch(n){if(n.code===`ENOENT`)return;n.code===`EPERM`&&o&&d(e,t,n)}try{n&&n.isDirectory()?g(e,t,null):t.unlinkSync(e)}catch(n){if(n.code===`ENOENT`)return;if(n.code===`EPERM`)return o?d(e,t,n):g(e,t,n);if(n.code!==`EISDIR`)throw n;g(e,t,n)}}function g(e,t,n){a(e),a(t),n&&a(n instanceof Error);try{t.rmdirSync(e)}catch(r){if(r.code===`ENOTDIR`)throw n;if(r.code===`ENOTEMPTY`||r.code===`EEXIST`||r.code===`EPERM`)_(e,t);else if(r.code!==`ENOENT`)throw r}}function _(e,t){if(a(e),a(t),t.readdirSync(e).forEach(n=>h(i.join(e,n),t)),o){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}t.exports=c,c.sync=h})),E=e(((e,t)=>{let n=c().fromCallback,r=T();t.exports={remove:n(r),removeSync:r.sync}})),D=e(((e,t)=>{let r=c().fromCallback,i=n(`fs`),a=n(`path`),o=_(),s=E(),l=r(function(e,t){t||=function(){},i.readdir(e,(n,r)=>{if(n)return o.mkdirs(e,t);r=r.map(t=>a.join(e,t)),i();function i(){let e=r.pop();if(!e)return t();s.remove(e,e=>{if(e)return t(e);i()})}})});function u(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach(t=>{t=a.join(e,t),s.removeSync(t)})}t.exports={emptyDirSync:u,emptydirSync:u,emptyDir:l,emptydir:l}})),O=e(((e,t)=>{let r=c().fromCallback,i=n(`path`),a=f(),o=_(),s=S().pathExists;function l(e,t){function n(){a.writeFile(e,``,e=>{if(e)return t(e);t()})}a.stat(e,(r,a)=>{if(!r&&a.isFile())return t();let c=i.dirname(e);s(c,(e,r)=>{if(e)return t(e);if(r)return n();o.mkdirs(c,e=>{if(e)return t(e);n()})})})}function u(e){let t;try{t=a.statSync(e)}catch{}if(t&&t.isFile())return;let n=i.dirname(e);a.existsSync(n)||o.mkdirsSync(n),a.writeFileSync(e,``)}t.exports={createFile:r(l),createFileSync:u}})),k=e(((e,t)=>{let r=c().fromCallback,i=n(`path`),a=f(),o=_(),s=S().pathExists;function l(e,t,n){function r(e,t){a.link(e,t,e=>{if(e)return n(e);n(null)})}s(t,(c,l)=>{if(c)return n(c);if(l)return n(null);a.lstat(e,a=>{if(a)return a.message=a.message.replace(`lstat`,`ensureLink`),n(a);let c=i.dirname(t);s(c,(i,a)=>{if(i)return n(i);if(a)return r(e,t);o.mkdirs(c,i=>{if(i)return n(i);r(e,t)})})})})}function u(e,t){if(a.existsSync(t))return;try{a.lstatSync(e)}catch(e){throw e.message=e.message.replace(`lstat`,`ensureLink`),e}let n=i.dirname(t);return a.existsSync(n)||o.mkdirsSync(n),a.linkSync(e,t)}t.exports={createLink:r(l),createLinkSync:u}})),A=e(((e,t)=>{let r=n(`path`),i=f(),a=S().pathExists;function o(e,t,n){if(r.isAbsolute(e))return i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:e}));{let o=r.dirname(t),s=r.join(o,e);return a(s,(t,a)=>t?n(t):a?n(null,{toCwd:s,toDst:e}):i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:r.relative(o,e)})))}}function s(e,t){let n;if(r.isAbsolute(e)){if(n=i.existsSync(e),!n)throw Error(`absolute srcpath does not exist`);return{toCwd:e,toDst:e}}else{let a=r.dirname(t),o=r.join(a,e);if(n=i.existsSync(o),n)return{toCwd:o,toDst:e};if(n=i.existsSync(e),!n)throw Error(`relative srcpath does not exist`);return{toCwd:e,toDst:r.relative(a,e)}}}t.exports={symlinkPaths:o,symlinkPathsSync:s}})),ee=e(((e,t)=>{let n=f();function r(e,t,r){if(r=typeof t==`function`?t:r,t=typeof t==`function`?!1:t,t)return r(null,t);n.lstat(e,(e,n)=>{if(e)return r(null,`file`);t=n&&n.isDirectory()?`dir`:`file`,r(null,t)})}function i(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return`file`}return r&&r.isDirectory()?`dir`:`file`}t.exports={symlinkType:r,symlinkTypeSync:i}})),j=e(((e,t)=>{let r=c().fromCallback,i=n(`path`),a=f(),o=_(),s=o.mkdirs,l=o.mkdirsSync,u=A(),d=u.symlinkPaths,p=u.symlinkPathsSync,m=ee(),h=m.symlinkType,g=m.symlinkTypeSync,v=S().pathExists;function y(e,t,n,r){r=typeof n==`function`?n:r,n=typeof n==`function`?!1:n,v(t,(o,c)=>{if(o)return r(o);if(c)return r(null);d(e,t,(o,c)=>{if(o)return r(o);e=c.toDst,h(c.toCwd,n,(n,o)=>{if(n)return r(n);let c=i.dirname(t);v(c,(n,i)=>{if(n)return r(n);if(i)return a.symlink(e,t,o,r);s(c,n=>{if(n)return r(n);a.symlink(e,t,o,r)})})})})})}function b(e,t,n){if(a.existsSync(t))return;let r=p(e,t);e=r.toDst,n=g(r.toCwd,n);let o=i.dirname(t);return a.existsSync(o)||l(o),a.symlinkSync(e,t,n)}t.exports={createSymlink:r(y),createSymlinkSync:b}})),te=e(((e,t)=>{let n=O(),r=k(),i=j();t.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:r.createLink,createLinkSync:r.createLinkSync,ensureLink:r.createLink,ensureLinkSync:r.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}})),ne=e(((e,t)=>{var r;try{r=f()}catch{r=n(`fs`)}function i(e,t,n){n??(n=t,t={}),typeof t==`string`&&(t={encoding:t}),t||={};var i=t.fs||r,a=!0;`throws`in t&&(a=t.throws),i.readFile(e,t,function(r,i){if(r)return n(r);i=l(i);var o;try{o=JSON.parse(i,t?t.reviver:null)}catch(t){return a?(t.message=e+`: `+t.message,n(t)):n(null,null)}n(null,o)})}function a(e,t){t||={},typeof t==`string`&&(t={encoding:t});var n=t.fs||r,i=!0;`throws`in t&&(i=t.throws);try{var a=n.readFileSync(e,t);return a=l(a),JSON.parse(a,t.reviver)}catch(t){if(i)throw t.message=e+`: `+t.message,t;return null}}function o(e,t){var n,r=` `;return typeof t==`object`&&t&&(t.spaces&&(n=t.spaces),t.EOL&&(r=t.EOL)),JSON.stringify(e,t?t.replacer:null,n).replace(/\n/g,r)+r}function s(e,t,n,i){i??(i=n,n={}),n||={};var a=n.fs||r,s=``;try{s=o(t,n)}catch(e){i&&i(e,null);return}a.writeFile(e,s,n,i)}function c(e,t,n){n||={};var i=n.fs||r,a=o(t,n);return i.writeFileSync(e,a,n)}function l(e){return Buffer.isBuffer(e)&&(e=e.toString(`utf8`)),e=e.replace(/^\uFEFF/,``),e}t.exports={readFile:i,readFileSync:a,writeFile:s,writeFileSync:c}})),M=e(((e,t)=>{let n=c().fromCallback,r=ne();t.exports={readJson:n(r.readFile),readJsonSync:r.readFileSync,writeJson:n(r.writeFile),writeJsonSync:r.writeFileSync}})),N=e(((e,t)=>{let r=n(`path`),i=_(),a=S().pathExists,o=M();function s(e,t,n,s){typeof n==`function`&&(s=n,n={});let c=r.dirname(e);a(c,(r,a)=>{if(r)return s(r);if(a)return o.writeJson(e,t,n,s);i.mkdirs(c,r=>{if(r)return s(r);o.writeJson(e,t,n,s)})})}t.exports=s})),P=e(((e,t)=>{let r=f(),i=n(`path`),a=_(),o=M();function s(e,t,n){let s=i.dirname(e);r.existsSync(s)||a.mkdirsSync(s),o.writeJsonSync(e,t,n)}t.exports=s})),F=e(((e,t)=>{let n=c().fromCallback,r=M();r.outputJson=n(N()),r.outputJsonSync=P(),r.outputJSON=r.outputJson,r.outputJSONSync=r.outputJsonSync,r.writeJSON=r.writeJson,r.writeJSONSync=r.writeJsonSync,r.readJSON=r.readJson,r.readJSONSync=r.readJsonSync,t.exports=r})),I=e(((e,t)=>{let r=f(),i=n(`path`),a=x().copySync,o=E().removeSync,s=_().mkdirsSync,c=y();function l(e,t,n){n||={};let a=n.overwrite||n.clobber||!1;if(e=i.resolve(e),t=i.resolve(t),e===t)return r.accessSync(e);if(m(e,t))throw Error(`Cannot move '${e}' into itself '${t}'.`);s(i.dirname(t)),c();function c(){if(a)try{return r.renameSync(e,t)}catch(r){if(r.code===`ENOTEMPTY`||r.code===`EEXIST`||r.code===`EPERM`)return o(t),n.overwrite=!1,l(e,t,n);if(r.code!==`EXDEV`)throw r;return u(e,t,a)}else try{return r.linkSync(e,t),r.unlinkSync(e)}catch(n){if(n.code===`EXDEV`||n.code===`EISDIR`||n.code===`EPERM`||n.code===`ENOTSUP`)return u(e,t,a);throw n}}}function u(e,t,n){return r.statSync(e).isDirectory()?p(e,t,n):d(e,t,n)}function d(e,t,n){let i=64*1024,a=c(i),o=n?`w`:`wx`,s=r.openSync(e,`r`),l=r.fstatSync(s),u=r.openSync(t,o,l.mode),d=0;for(;d-1&&t.split(i.dirname(e)+i.sep)[1].split(i.sep)[0]===i.basename(e)}catch{return!1}}t.exports={moveSync:l}})),L=e(((e,t)=>{let r=c().fromCallback,i=f(),a=n(`path`),o=w().copy,s=E().remove,l=_().mkdirp,u=S().pathExists;function d(e,t,n,r){typeof n==`function`&&(r=n,n={});let o=n.overwrite||n.clobber||!1;if(e=a.resolve(e),t=a.resolve(t),e===t)return i.access(e,r);i.stat(e,(n,i)=>{if(n)return r(n);if(i.isDirectory()&&g(e,t))return r(Error(`Cannot move '${e}' to a subdirectory of itself, '${t}'.`));l(a.dirname(t),n=>n?r(n):p(e,t,o,r))})}function p(e,t,n,r){if(n)return s(t,i=>i?r(i):m(e,t,n,r));u(t,(i,a)=>i?r(i):a?r(Error(`dest already exists.`)):m(e,t,n,r))}function m(e,t,n,r){i.rename(e,t,i=>i?i.code===`EXDEV`?h(e,t,n,r):r(i):r())}function h(e,t,n,r){o(e,t,{overwrite:n,errorOnExist:!0},t=>t?r(t):s(e,r))}function g(e,t){let n=e.split(a.sep),r=t.split(a.sep);return n.reduce((e,t,n)=>e&&r[n]===t,!0)}t.exports={move:r(d)}})),R=e(((e,t)=>{let r=c().fromCallback,i=f(),a=n(`path`),o=_(),s=S().pathExists;function l(e,t,n,r){typeof n==`function`&&(r=n,n=`utf8`);let c=a.dirname(e);s(c,(a,s)=>{if(a)return r(a);if(s)return i.writeFile(e,t,n,r);o.mkdirs(c,a=>{if(a)return r(a);i.writeFile(e,t,n,r)})})}function u(e,...t){let n=a.dirname(e);if(i.existsSync(n))return i.writeFileSync(e,...t);o.mkdirsSync(n),i.writeFileSync(e,...t)}t.exports={outputFile:r(l),outputFileSync:u}})),z=e(((e,t)=>{t.exports=Object.assign({},p(),x(),w(),D(),te(),F(),_(),I(),L(),R(),S(),E());let r=n(`fs`);Object.getOwnPropertyDescriptor(r,`promises`)&&Object.defineProperty(t.exports,`promises`,{get(){return r.promises}})})),B=e(((e,t)=>{function n(e,t){this.v=e,this.k=t}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),V=e(((e,t)=>{function n(e,r,i,a){var o=Object.defineProperty;try{o({},``,{})}catch{o=0}t.exports=n=function(e,t,r,i){function a(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r:(a(`next`,0),a(`throw`,1),a(`return`,2))},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r,i,a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),H=e(((e,t)=>{var n=V();function r(){var e,i,a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.toStringTag||`@@toStringTag`;function c(t,r,a,o){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return n(c,`_invoke`,function(t,n,r){var a,o,s,c=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,o=0,s=e,f.n=n,l}};function p(t,n){for(o=t,s=n,i=0;!d&&c&&!r&&i3?(r=m===n)&&(s=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=p&&((r=t<2&&pn||n>m)&&(a[4]=t,a[5]=n,f.n=m,o=0))}if(r||t>1)return l;throw d=!0,n}return function(r,u,m){if(c>1)throw TypeError(`Generator is already running`);for(d&&u===1&&p(u,m),o=u,s=m;(i=o<2?e:s)||!d;){a||(o?o<3?(o>1&&(f.n=-1),p(o,s)):f.n=s:f.v=s);try{if(c=2,a){if(o||(r=`next`),i=a[r]){if(!(i=i.call(a,s)))throw TypeError(`iterator result is not an object`);if(!i.done)return i;s=i.value,o<2&&(o=0)}else o===1&&(i=a.return)&&i.call(a),o<2&&(s=TypeError(`The iterator does not provide a '`+r+`' method`),o=1);a=e}else if((i=(d=f.n<0)?s:t.call(n,f))!==l)break}catch(t){a=e,o=1,s=t}finally{c=1}}return{value:i,done:d}}}(t,a,o),!0),c}var l={};function u(){}function d(){}function f(){}i=Object.getPrototypeOf;var p=[][o]?i(i([][o]())):(n(i={},o,function(){return this}),i),m=f.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,s,`GeneratorFunction`)),e.prototype=Object.create(m),e}return d.prototype=f,n(m,`constructor`,f),n(f,`constructor`,d),d.displayName=`GeneratorFunction`,n(f,s,`GeneratorFunction`),n(m),n(m,s,`Generator`),n(m,o,function(){return this}),n(m,`toString`,function(){return`[object Generator]`}),(t.exports=r=function(){return{w:c,m:h}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),U=e(((e,t)=>{var n=B(),r=V();function i(e,t){function a(r,i,o,s){try{var c=e[r](i),l=c.value;return l instanceof n?t.resolve(l.v).then(function(e){a(`next`,e,o,s)},function(e){a(`throw`,e,o,s)}):t.resolve(l).then(function(e){c.value=e,o(c)},function(e){return a(`throw`,e,o,s)})}catch(e){s(e)}}var o;this.next||(r(i.prototype),r(i.prototype,typeof Symbol==`function`&&Symbol.asyncIterator||`@asyncIterator`,function(){return this})),r(this,`_invoke`,function(e,n,r){function i(){return new t(function(t,n){a(e,r,t,n)})}return o=o?o.then(i,i):i()},!0)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),W=e(((e,t)=>{var n=H(),r=U();function i(e,t,i,a,o){return new r(n().w(e,t,i,a),o||Promise)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),G=e(((e,t)=>{var n=W();function r(e,t,r,i,a){var o=n(e,t,r,i,a);return o.next().then(function(e){return e.done?e.value:o.next()})}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),re=e(((e,t)=>{function n(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),K=e(((e,t)=>{function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),ie=e(((e,t)=>{var n=K().default;function r(e){if(e!=null){var t=e[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],r=0;if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(n(e)+` is not iterable`)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),ae=e(((e,t)=>{var n=B(),r=H(),i=G(),a=W(),o=U(),s=re(),c=ie();function l(){var e=r(),u=e.m(l),d=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function f(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===d||(t.displayName||t.name)===`GeneratorFunction`)}var p={throw:1,return:2,break:3,continue:3};function m(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,i,a){return t.resultName=i,n(r.d,c(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,i){return e.w(m(t),n,r,i&&i.reverse())},isGeneratorFunction:f,mark:e.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:o,async:function(e,t,n,r,o){return(f(t)?a:i)(m(e),t,n,r,o)},keys:s,values:c}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports})),q=e(((e,t)=>{var n=ae()();t.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis==`object`?globalThis.regeneratorRuntime=n:Function(`r`,`regeneratorRuntime = r`)(n)}})),oe=e(((e,t)=>{function n(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function r(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,c,`next`,e)}function c(e){n(o,i,a,s,c,`throw`,e)}s(void 0)})}}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),se=e(((e,t)=>{function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),ce=e(((e,t)=>{function n(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),le=e(((e,t)=>{var n=K().default,r=ce();function i(e,t){if(t&&(n(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return r(e)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),ue=e(((e,t)=>{function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),de=e(((e,t)=>{function n(e,r){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),fe=e(((e,t)=>{var n=de();function r(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&n(e,t)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),pe=e(((e,t)=>{function n(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),me=e(((e,t)=>{function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t.exports=n=function(){return!!e},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),he=e(((e,t)=>{var n=me(),r=de();function i(e,t,i){if(n())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var o=new(e.bind.apply(e,a));return i&&r(o,i.prototype),o}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),ge=e(((e,t)=>{var n=ue(),r=de(),i=pe(),a=he();function o(e){var s=typeof Map==`function`?new Map:void 0;return t.exports=o=function(e){if(e===null||!i(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(s!==void 0){if(s.has(e))return s.get(e);s.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports})),_e=e((e=>{let t=c().fromCallback,n=f(),r=`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`.split(`.`).filter(e=>typeof n[e]==`function`);Object.keys(n).forEach(t=>{t!==`promises`&&(e[t]=n[t])}),r.forEach(r=>{e[r]=t(n[r])}),e.exists=function(e,t){return typeof t==`function`?n.exists(e,t):new Promise(t=>n.exists(e,t))},e.read=function(e,t,r,i,a,o){return typeof o==`function`?n.read(e,t,r,i,a,o):new Promise((o,s)=>{n.read(e,t,r,i,a,(e,t,n)=>{if(e)return s(e);o({bytesRead:t,buffer:n})})})},e.write=function(e,t,...r){return typeof r[r.length-1]==`function`?n.write(e,t,...r):new Promise((i,a)=>{n.write(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffer:n})})})},typeof n.realpath.native==`function`&&(e.realpath.native=t(n.realpath.native))})),ve=e(((e,t)=>{let r=n(`path`);function i(e){return e=r.normalize(r.resolve(e)).split(r.sep),e.length>0?e[0]:null}let a=/[<>:"|?*]/;function o(e){let t=i(e);return e=e.replace(t,``),a.test(e)}t.exports={getRootPath:i,invalidWin32Path:o}})),ye=e(((e,t)=>{let r=f(),i=n(`path`),a=ve().invalidWin32Path;function o(e,t,n,s){if(typeof t==`function`?(n=t,t={}):(!t||typeof t!=`object`)&&(t={mode:t}),process.platform===`win32`&&a(e)){let t=Error(e+` contains invalid WIN32 path characters.`);return t.code=`EINVAL`,n(t)}let c=t.mode,l=t.fs||r;c===void 0&&(c=511&~process.umask()),s||=null,n||=function(){},e=i.resolve(e),l.mkdir(e,c,r=>{if(!r)return s||=e,n(null,s);switch(r.code){case`ENOENT`:if(i.dirname(e)===e)return n(r);o(i.dirname(e),t,(r,i)=>{r?n(r,i):o(e,t,n,i)});break;default:l.stat(e,(e,t)=>{e||!t.isDirectory()?n(r,s):n(null,s)});break}})}t.exports=o})),be=e(((e,t)=>{let r=f(),i=n(`path`),a=ve().invalidWin32Path;function o(e,t,n){(!t||typeof t!=`object`)&&(t={mode:t});let s=t.mode,c=t.fs||r;if(process.platform===`win32`&&a(e)){let t=Error(e+` contains invalid WIN32 path characters.`);throw t.code=`EINVAL`,t}s===void 0&&(s=511&~process.umask()),n||=null,e=i.resolve(e);try{c.mkdirSync(e,s),n||=e}catch(r){if(r.code===`ENOENT`){if(i.dirname(e)===e)throw r;n=o(i.dirname(e),t,n),o(e,t,n)}else{let t;try{t=c.statSync(e)}catch{throw r}if(!t.isDirectory())throw r}}return n}t.exports=o})),xe=e(((e,t)=>{let n=c().fromCallback,r=n(ye()),i=be();t.exports={mkdirs:r,mkdirsSync:i,mkdirp:r,mkdirpSync:i,ensureDir:r,ensureDirSync:i}})),Se=e(((e,t)=>{let r=f(),i=n(`os`),a=n(`path`);function o(){let e=a.join(`millis-test-sync`+Date.now().toString()+Math.random().toString().slice(2));e=a.join(i.tmpdir(),e);let t=new Date(1435410243862);r.writeFileSync(e,`https://github.com/jprichardson/node-fs-extra/pull/141`);let n=r.openSync(e,`r+`);return r.futimesSync(n,t,t),r.closeSync(n),r.statSync(e).mtime>1435410243e3}function s(e){let t=a.join(`millis-test`+Date.now().toString()+Math.random().toString().slice(2));t=a.join(i.tmpdir(),t);let n=new Date(1435410243862);r.writeFile(t,`https://github.com/jprichardson/node-fs-extra/pull/141`,i=>{if(i)return e(i);r.open(t,`r+`,(i,a)=>{if(i)return e(i);r.futimes(a,n,n,n=>{if(n)return e(n);r.close(a,n=>{if(n)return e(n);r.stat(t,(t,n)=>{if(t)return e(t);e(null,n.mtime>1435410243e3)})})})})})}function c(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 Error(`fs-extra: timeRemoveMillis() unknown parameter type`)}function l(e,t,n,i){r.open(e,`r+`,(e,a)=>{if(e)return i(e);r.futimes(a,t,n,e=>{r.close(a,t=>{i&&i(e||t)})})})}function u(e,t,n){let i=r.openSync(e,`r+`);return r.futimesSync(i,t,n),r.closeSync(i)}t.exports={hasMillisRes:s,hasMillisResSync:o,timeRemoveMillis:c,utimesMillis:l,utimesMillisSync:u}})),Ce=e(((e,t)=>{let r=f(),i=n(`path`),a=process.versions.node.split(`.`),o=Number.parseInt(a[0],10),s=Number.parseInt(a[1],10),c=Number.parseInt(a[2],10);function l(){return o>10||o===10&&(s>5||s===5&&c>=0)}function u(e,t,n){l()?r.stat(e,{bigint:!0},(e,i)=>{if(e)return n(e);r.stat(t,{bigint:!0},(e,t)=>e?e.code===`ENOENT`?n(null,{srcStat:i,destStat:null}):n(e):n(null,{srcStat:i,destStat:t}))}):r.stat(e,(e,i)=>{if(e)return n(e);r.stat(t,(e,t)=>e?e.code===`ENOENT`?n(null,{srcStat:i,destStat:null}):n(e):n(null,{srcStat:i,destStat:t}))})}function d(e,t){let n,i;n=l()?r.statSync(e,{bigint:!0}):r.statSync(e);try{i=l()?r.statSync(t,{bigint:!0}):r.statSync(t)}catch(e){if(e.code===`ENOENT`)return{srcStat:n,destStat:null};throw e}return{srcStat:n,destStat:i}}function p(e,t,n,r){u(e,t,(i,a)=>{if(i)return r(i);let{srcStat:o,destStat:s}=a;return s&&s.ino&&s.dev&&s.ino===o.ino&&s.dev===o.dev?r(Error(`Source and destination must not be the same.`)):o.isDirectory()&&_(e,t)?r(Error(v(e,t,n))):r(null,{srcStat:o,destStat:s})})}function m(e,t,n){let{srcStat:r,destStat:i}=d(e,t);if(i&&i.ino&&i.dev&&i.ino===r.ino&&i.dev===r.dev)throw Error(`Source and destination must not be the same.`);if(r.isDirectory()&&_(e,t))throw Error(v(e,t,n));return{srcStat:r,destStat:i}}function h(e,t,n,a,o){let s=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(n));if(c===s||c===i.parse(c).root)return o();l()?r.stat(c,{bigint:!0},(r,i)=>r?r.code===`ENOENT`?o():o(r):i.ino&&i.dev&&i.ino===t.ino&&i.dev===t.dev?o(Error(v(e,n,a))):h(e,t,c,a,o)):r.stat(c,(r,i)=>r?r.code===`ENOENT`?o():o(r):i.ino&&i.dev&&i.ino===t.ino&&i.dev===t.dev?o(Error(v(e,n,a))):h(e,t,c,a,o))}function g(e,t,n,a){let o=i.resolve(i.dirname(e)),s=i.resolve(i.dirname(n));if(s===o||s===i.parse(s).root)return;let c;try{c=l()?r.statSync(s,{bigint:!0}):r.statSync(s)}catch(e){if(e.code===`ENOENT`)return;throw e}if(c.ino&&c.dev&&c.ino===t.ino&&c.dev===t.dev)throw Error(v(e,n,a));return g(e,t,s,a)}function _(e,t){let n=i.resolve(e).split(i.sep).filter(e=>e),r=i.resolve(t).split(i.sep).filter(e=>e);return n.reduce((e,t,n)=>e&&r[n]===t,!0)}function v(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}t.exports={checkPaths:p,checkPathsSync:m,checkParentPaths:h,checkParentPathsSync:g,isSrcSubdir:_}})),we=e(((e,t)=>{t.exports=function(e){if(typeof Buffer.allocUnsafe==`function`)try{return Buffer.allocUnsafe(e)}catch{return new Buffer(e)}return new Buffer(e)}})),Te=e(((e,t)=>{let r=f(),i=n(`path`),a=xe().mkdirsSync,o=Se().utimesMillisSync,s=Ce();function c(e,t,n){typeof n==`function`&&(n={filter:n}),n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.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:r,destStat:i}=s.checkPathsSync(e,t,`copy`);return s.checkParentPathsSync(e,r,t,`copy`),l(i,e,t,n)}function l(e,t,n,o){if(o.filter&&!o.filter(t,n))return;let s=i.dirname(n);return r.existsSync(s)||a(s),u(e,t,n,o)}function u(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return d(e,t,n,r)}function d(e,t,n,i){let a=(i.dereference?r.statSync:r.lstatSync)(t);if(a.isDirectory())return _(a,e,t,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return p(a,e,t,n,i);if(a.isSymbolicLink())return x(e,t,n,i)}function p(e,t,n,r,i){return t?m(e,n,r,i):h(e,n,r,i)}function m(e,t,n,i){if(i.overwrite)return r.unlinkSync(n),h(e,t,n,i);if(i.errorOnExist)throw Error(`'${n}' already exists`)}function h(e,t,n,i){return typeof r.copyFileSync==`function`?(r.copyFileSync(t,n),r.chmodSync(n,e.mode),i.preserveTimestamps?o(n,e.atime,e.mtime):void 0):g(e,t,n,i)}function g(e,t,n,i){let a=64*1024,o=we()(a),s=r.openSync(t,`r`),c=r.openSync(n,`w`,e.mode),l=0;for(;lb(r,e,t,n))}function b(e,t,n,r){let a=i.join(t,e),o=i.join(n,e),{destStat:c}=s.checkPathsSync(a,o,`copy`);return u(c,a,o,r)}function x(e,t,n,a){let o=r.readlinkSync(t);if(a.dereference&&(o=i.resolve(process.cwd(),o)),e){let e;try{e=r.readlinkSync(n)}catch(e){if(e.code===`EINVAL`||e.code===`UNKNOWN`)return r.symlinkSync(o,n);throw e}if(a.dereference&&(e=i.resolve(process.cwd(),e)),s.isSrcSubdir(o,e))throw Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(r.statSync(n).isDirectory()&&s.isSrcSubdir(e,o))throw Error(`Cannot overwrite '${e}' with '${o}'.`);return S(o,n)}else return r.symlinkSync(o,n)}function S(e,t){return r.unlinkSync(t),r.symlinkSync(e,t)}t.exports=c})),Ee=e(((e,t)=>{t.exports={copySync:Te()}})),De=e(((e,t)=>{let n=c().fromPromise,r=_e();function i(e){return r.access(e).then(()=>!0).catch(()=>!1)}t.exports={pathExists:n(i),pathExistsSync:r.existsSync}})),Oe=e(((e,t)=>{let r=f(),i=n(`path`),a=xe().mkdirs,o=De().pathExists,s=Se().utimesMillis,c=Ce();function l(e,t,n,r){typeof n==`function`&&!r?(r=n,n={}):typeof n==`function`&&(n={filter:n}),r||=function(){},n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.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`),c.checkPaths(e,t,`copy`,(i,a)=>{if(i)return r(i);let{srcStat:o,destStat:s}=a;c.checkParentPaths(e,o,t,`copy`,i=>i?r(i):n.filter?d(u,s,e,t,n,r):u(s,e,t,n,r))})}function u(e,t,n,r,s){let c=i.dirname(n);o(c,(i,o)=>{if(i)return s(i);if(o)return p(e,t,n,r,s);a(c,i=>i?s(i):p(e,t,n,r,s))})}function d(e,t,n,r,i,a){Promise.resolve(i.filter(n,r)).then(o=>o?e(t,n,r,i,a):a(),e=>a(e))}function p(e,t,n,r,i){return r.filter?d(m,e,t,n,r,i):m(e,t,n,r,i)}function m(e,t,n,i,a){(i.dereference?r.stat:r.lstat)(t,(r,o)=>{if(r)return a(r);if(o.isDirectory())return b(o,e,t,n,i,a);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return h(o,e,t,n,i,a);if(o.isSymbolicLink())return T(e,t,n,i,a)})}function h(e,t,n,r,i,a){return t?g(e,n,r,i,a):_(e,n,r,i,a)}function g(e,t,n,i,a){if(i.overwrite)r.unlink(n,r=>r?a(r):_(e,t,n,i,a));else if(i.errorOnExist)return a(Error(`'${n}' already exists`));else return a()}function _(e,t,n,i,a){return typeof r.copyFile==`function`?r.copyFile(t,n,t=>t?a(t):y(e,n,i,a)):v(e,t,n,i,a)}function v(e,t,n,i,a){let o=r.createReadStream(t);o.on(`error`,e=>a(e)).once(`open`,()=>{let t=r.createWriteStream(n,{mode:e.mode});t.on(`error`,e=>a(e)).on(`open`,()=>o.pipe(t)).once(`close`,()=>y(e,n,i,a))})}function y(e,t,n,i){r.chmod(t,e.mode,r=>r?i(r):n.preserveTimestamps?s(t,e.atime,e.mtime,i):i())}function b(e,t,n,r,i,a){return t?t&&!t.isDirectory()?a(Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):S(n,r,i,a):x(e,n,r,i,a)}function x(e,t,n,i,a){r.mkdir(n,o=>{if(o)return a(o);S(t,n,i,t=>t?a(t):r.chmod(n,e.mode,a))})}function S(e,t,n,i){r.readdir(e,(r,a)=>r?i(r):C(a,e,t,n,i))}function C(e,t,n,r,i){let a=e.pop();return a?w(e,a,t,n,r,i):i()}function w(e,t,n,r,a,o){let s=i.join(n,t),l=i.join(r,t);c.checkPaths(s,l,`copy`,(t,i)=>{if(t)return o(t);let{destStat:c}=i;p(c,s,l,a,t=>t?o(t):C(e,n,r,a,o))})}function T(e,t,n,a,o){r.readlink(t,(t,s)=>{if(t)return o(t);if(a.dereference&&(s=i.resolve(process.cwd(),s)),e)r.readlink(n,(t,l)=>t?t.code===`EINVAL`||t.code===`UNKNOWN`?r.symlink(s,n,o):o(t):(a.dereference&&(l=i.resolve(process.cwd(),l)),c.isSrcSubdir(s,l)?o(Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&c.isSrcSubdir(l,s)?o(Error(`Cannot overwrite '${l}' with '${s}'.`)):E(s,n,o)));else return r.symlink(s,n,o)})}function E(e,t,n){r.unlink(t,i=>i?n(i):r.symlink(e,t,n))}t.exports=l})),ke=e(((e,t)=>{let n=c().fromCallback;t.exports={copy:n(Oe())}})),Ae=e(((e,t)=>{let r=f(),i=n(`path`),a=n(`assert`),o=process.platform===`win32`;function s(e){[`unlink`,`chmod`,`stat`,`lstat`,`rmdir`,`readdir`].forEach(t=>{e[t]=e[t]||r[t],t+=`Sync`,e[t]=e[t]||r[t]}),e.maxBusyTries=e.maxBusyTries||3}function c(e,t,n){let r=0;typeof t==`function`&&(n=t,t={}),a(e,`rimraf: missing path`),a.strictEqual(typeof e,`string`,`rimraf: path should be a string`),a.strictEqual(typeof n,`function`,`rimraf: callback function required`),a(t,`rimraf: invalid options argument provided`),a.strictEqual(typeof t,`object`,`rimraf: options should be object`),s(t),l(e,t,function i(a){if(a){if((a.code===`EBUSY`||a.code===`ENOTEMPTY`||a.code===`EPERM`)&&rl(e,t,i),n)}a.code===`ENOENT`&&(a=null)}n(a)})}function l(e,t,n){a(e),a(t),a(typeof n==`function`),t.lstat(e,(r,i)=>{if(r&&r.code===`ENOENT`)return n(null);if(r&&r.code===`EPERM`&&o)return u(e,t,r,n);if(i&&i.isDirectory())return p(e,t,r,n);t.unlink(e,r=>{if(r){if(r.code===`ENOENT`)return n(null);if(r.code===`EPERM`)return o?u(e,t,r,n):p(e,t,r,n);if(r.code===`EISDIR`)return p(e,t,r,n)}return n(r)})})}function u(e,t,n,r){a(e),a(t),a(typeof r==`function`),n&&a(n instanceof Error),t.chmod(e,438,i=>{i?r(i.code===`ENOENT`?null:n):t.stat(e,(i,a)=>{i?r(i.code===`ENOENT`?null:n):a.isDirectory()?p(e,t,n,r):t.unlink(e,r)})})}function d(e,t,n){let r;a(e),a(t),n&&a(n instanceof Error);try{t.chmodSync(e,438)}catch(e){if(e.code===`ENOENT`)return;throw n}try{r=t.statSync(e)}catch(e){if(e.code===`ENOENT`)return;throw n}r.isDirectory()?g(e,t,n):t.unlinkSync(e)}function p(e,t,n,r){a(e),a(t),n&&a(n instanceof Error),a(typeof r==`function`),t.rmdir(e,i=>{i&&(i.code===`ENOTEMPTY`||i.code===`EEXIST`||i.code===`EPERM`)?m(e,t,r):i&&i.code===`ENOTDIR`?r(n):r(i)})}function m(e,t,n){a(e),a(t),a(typeof n==`function`),t.readdir(e,(r,a)=>{if(r)return n(r);let o=a.length,s;if(o===0)return t.rmdir(e,n);a.forEach(r=>{c(i.join(e,r),t,r=>{if(!s){if(r)return n(s=r);--o===0&&t.rmdir(e,n)}})})})}function h(e,t){let n;t||={},s(t),a(e,`rimraf: missing path`),a.strictEqual(typeof e,`string`,`rimraf: path should be a string`),a(t,`rimraf: missing options`),a.strictEqual(typeof t,`object`,`rimraf: options should be object`);try{n=t.lstatSync(e)}catch(n){if(n.code===`ENOENT`)return;n.code===`EPERM`&&o&&d(e,t,n)}try{n&&n.isDirectory()?g(e,t,null):t.unlinkSync(e)}catch(n){if(n.code===`ENOENT`)return;if(n.code===`EPERM`)return o?d(e,t,n):g(e,t,n);if(n.code!==`EISDIR`)throw n;g(e,t,n)}}function g(e,t,n){a(e),a(t),n&&a(n instanceof Error);try{t.rmdirSync(e)}catch(r){if(r.code===`ENOTDIR`)throw n;if(r.code===`ENOTEMPTY`||r.code===`EEXIST`||r.code===`EPERM`)_(e,t);else if(r.code!==`ENOENT`)throw r}}function _(e,t){if(a(e),a(t),t.readdirSync(e).forEach(n=>h(i.join(e,n),t)),o){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}t.exports=c,c.sync=h})),je=e(((e,t)=>{let n=c().fromCallback,r=Ae();t.exports={remove:n(r),removeSync:r.sync}})),Me=e(((e,t)=>{let r=c().fromCallback,i=f(),a=n(`path`),o=xe(),s=je(),l=r(function(e,t){t||=function(){},i.readdir(e,(n,r)=>{if(n)return o.mkdirs(e,t);r=r.map(t=>a.join(e,t)),i();function i(){let e=r.pop();if(!e)return t();s.remove(e,e=>{if(e)return t(e);i()})}})});function u(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach(t=>{t=a.join(e,t),s.removeSync(t)})}t.exports={emptyDirSync:u,emptydirSync:u,emptyDir:l,emptydir:l}})),Ne=e(((e,t)=>{let r=c().fromCallback,i=n(`path`),a=f(),o=xe(),s=De().pathExists;function l(e,t){function n(){a.writeFile(e,``,e=>{if(e)return t(e);t()})}a.stat(e,(r,a)=>{if(!r&&a.isFile())return t();let c=i.dirname(e);s(c,(e,r)=>{if(e)return t(e);if(r)return n();o.mkdirs(c,e=>{if(e)return t(e);n()})})})}function u(e){let t;try{t=a.statSync(e)}catch{}if(t&&t.isFile())return;let n=i.dirname(e);a.existsSync(n)||o.mkdirsSync(n),a.writeFileSync(e,``)}t.exports={createFile:r(l),createFileSync:u}})),Pe=e(((e,t)=>{let r=c().fromCallback,i=n(`path`),a=f(),o=xe(),s=De().pathExists;function l(e,t,n){function r(e,t){a.link(e,t,e=>{if(e)return n(e);n(null)})}s(t,(c,l)=>{if(c)return n(c);if(l)return n(null);a.lstat(e,a=>{if(a)return a.message=a.message.replace(`lstat`,`ensureLink`),n(a);let c=i.dirname(t);s(c,(i,a)=>{if(i)return n(i);if(a)return r(e,t);o.mkdirs(c,i=>{if(i)return n(i);r(e,t)})})})})}function u(e,t){if(a.existsSync(t))return;try{a.lstatSync(e)}catch(e){throw e.message=e.message.replace(`lstat`,`ensureLink`),e}let n=i.dirname(t);return a.existsSync(n)||o.mkdirsSync(n),a.linkSync(e,t)}t.exports={createLink:r(l),createLinkSync:u}})),Fe=e(((e,t)=>{let r=n(`path`),i=f(),a=De().pathExists;function o(e,t,n){if(r.isAbsolute(e))return i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:e}));{let o=r.dirname(t),s=r.join(o,e);return a(s,(t,a)=>t?n(t):a?n(null,{toCwd:s,toDst:e}):i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:r.relative(o,e)})))}}function s(e,t){let n;if(r.isAbsolute(e)){if(n=i.existsSync(e),!n)throw Error(`absolute srcpath does not exist`);return{toCwd:e,toDst:e}}else{let a=r.dirname(t),o=r.join(a,e);if(n=i.existsSync(o),n)return{toCwd:o,toDst:e};if(n=i.existsSync(e),!n)throw Error(`relative srcpath does not exist`);return{toCwd:e,toDst:r.relative(a,e)}}}t.exports={symlinkPaths:o,symlinkPathsSync:s}})),Ie=e(((e,t)=>{let n=f();function r(e,t,r){if(r=typeof t==`function`?t:r,t=typeof t==`function`?!1:t,t)return r(null,t);n.lstat(e,(e,n)=>{if(e)return r(null,`file`);t=n&&n.isDirectory()?`dir`:`file`,r(null,t)})}function i(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return`file`}return r&&r.isDirectory()?`dir`:`file`}t.exports={symlinkType:r,symlinkTypeSync:i}})),Le=e(((e,t)=>{let r=c().fromCallback,i=n(`path`),a=f(),o=xe(),s=o.mkdirs,l=o.mkdirsSync,u=Fe(),d=u.symlinkPaths,p=u.symlinkPathsSync,m=Ie(),h=m.symlinkType,g=m.symlinkTypeSync,_=De().pathExists;function v(e,t,n,r){r=typeof n==`function`?n:r,n=typeof n==`function`?!1:n,_(t,(o,c)=>{if(o)return r(o);if(c)return r(null);d(e,t,(o,c)=>{if(o)return r(o);e=c.toDst,h(c.toCwd,n,(n,o)=>{if(n)return r(n);let c=i.dirname(t);_(c,(n,i)=>{if(n)return r(n);if(i)return a.symlink(e,t,o,r);s(c,n=>{if(n)return r(n);a.symlink(e,t,o,r)})})})})})}function y(e,t,n){if(a.existsSync(t))return;let r=p(e,t);e=r.toDst,n=g(r.toCwd,n);let o=i.dirname(t);return a.existsSync(o)||l(o),a.symlinkSync(e,t,n)}t.exports={createSymlink:r(v),createSymlinkSync:y}})),Re=e(((e,t)=>{let n=Ne(),r=Pe(),i=Le();t.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:r.createLink,createLinkSync:r.createLinkSync,ensureLink:r.createLink,ensureLinkSync:r.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}})),ze=e(((e,t)=>{let n=c().fromCallback,r=ne();t.exports={readJson:n(r.readFile),readJsonSync:r.readFileSync,writeJson:n(r.writeFile),writeJsonSync:r.writeFileSync}})),Be=e(((e,t)=>{let r=n(`path`),i=xe(),a=De().pathExists,o=ze();function s(e,t,n,s){typeof n==`function`&&(s=n,n={});let c=r.dirname(e);a(c,(r,a)=>{if(r)return s(r);if(a)return o.writeJson(e,t,n,s);i.mkdirs(c,r=>{if(r)return s(r);o.writeJson(e,t,n,s)})})}t.exports=s})),Ve=e(((e,t)=>{let r=f(),i=n(`path`),a=xe(),o=ze();function s(e,t,n){let s=i.dirname(e);r.existsSync(s)||a.mkdirsSync(s),o.writeJsonSync(e,t,n)}t.exports=s})),He=e(((e,t)=>{let n=c().fromCallback,r=ze();r.outputJson=n(Be()),r.outputJsonSync=Ve(),r.outputJSON=r.outputJson,r.outputJSONSync=r.outputJsonSync,r.writeJSON=r.writeJson,r.writeJSONSync=r.writeJsonSync,r.readJSON=r.readJson,r.readJSONSync=r.readJsonSync,t.exports=r})),Ue=e(((e,t)=>{let r=f(),i=n(`path`),a=Ee().copySync,o=je().removeSync,s=xe().mkdirpSync,c=Ce();function l(e,t,n){n||={};let r=n.overwrite||n.clobber||!1,{srcStat:a}=c.checkPathsSync(e,t,`move`);return c.checkParentPathsSync(e,a,t,`move`),s(i.dirname(t)),u(e,t,r)}function u(e,t,n){if(n)return o(t),d(e,t,n);if(r.existsSync(t))throw Error(`dest already exists.`);return d(e,t,n)}function d(e,t,n){try{r.renameSync(e,t)}catch(r){if(r.code!==`EXDEV`)throw r;return p(e,t,n)}}function p(e,t,n){return a(e,t,{overwrite:n,errorOnExist:!0}),o(e)}t.exports=l})),We=e(((e,t)=>{t.exports={moveSync:Ue()}})),Ge=e(((e,t)=>{let r=f(),i=n(`path`),a=ke().copy,o=je().remove,s=xe().mkdirp,c=De().pathExists,l=Ce();function u(e,t,n,r){typeof n==`function`&&(r=n,n={});let a=n.overwrite||n.clobber||!1;l.checkPaths(e,t,`move`,(n,o)=>{if(n)return r(n);let{srcStat:c}=o;l.checkParentPaths(e,c,t,`move`,n=>{if(n)return r(n);s(i.dirname(t),n=>n?r(n):d(e,t,a,r))})})}function d(e,t,n,r){if(n)return o(t,i=>i?r(i):p(e,t,n,r));c(t,(i,a)=>i?r(i):a?r(Error(`dest already exists.`)):p(e,t,n,r))}function p(e,t,n,i){r.rename(e,t,r=>r?r.code===`EXDEV`?m(e,t,n,i):i(r):i())}function m(e,t,n,r){a(e,t,{overwrite:n,errorOnExist:!0},t=>t?r(t):o(e,r))}t.exports=u})),Ke=e(((e,t)=>{let n=c().fromCallback;t.exports={move:n(Ge())}})),qe=e(((e,t)=>{let r=c().fromCallback,i=f(),a=n(`path`),o=xe(),s=De().pathExists;function l(e,t,n,r){typeof n==`function`&&(r=n,n=`utf8`);let c=a.dirname(e);s(c,(a,s)=>{if(a)return r(a);if(s)return i.writeFile(e,t,n,r);o.mkdirs(c,a=>{if(a)return r(a);i.writeFile(e,t,n,r)})})}function u(e,...t){let n=a.dirname(e);if(i.existsSync(n))return i.writeFileSync(e,...t);o.mkdirsSync(n),i.writeFileSync(e,...t)}t.exports={outputFile:r(l),outputFileSync:u}})),Je=e(((e,t)=>{t.exports=Object.assign({},_e(),Ee(),ke(),Me(),Re(),He(),xe(),We(),Ke(),qe(),De(),je());let r=n(`fs`);Object.getOwnPropertyDescriptor(r,`promises`)&&Object.defineProperty(t.exports,`promises`,{get(){return r.promises}})})),Ye=e(((e,t)=>{t.exports=(...e)=>[...new Set([].concat(...e))]})),Xe=e(((e,t)=>{let r=n(`stream`).PassThrough,i=Array.prototype.slice;t.exports=a;function a(){let e=[],t=i.call(arguments),n=!1,a=t[t.length-1];a&&!Array.isArray(a)&&a.pipe==null?t.pop():a={};let s=a.end!==!1,c=a.pipeError===!0;a.objectMode??=!0,a.highWaterMark??=64*1024;let l=r(a);function u(){for(let t=0,n=arguments.length;t0||(n=!1,d())}function a(e){function t(){e.removeListener(`merge2UnpipeEnd`,t),e.removeListener(`end`,t),c&&e.removeListener(`error`,n),i()}function n(e){l.emit(`error`,e)}if(e._readableState.endEmitted)return i();e.on(`merge2UnpipeEnd`,t),e.on(`end`,t),c&&e.on(`error`,n),e.pipe(l,{end:!1}),e.resume()}for(let e=0;e{Object.defineProperty(e,`__esModule`,{value:!0}),e.splitWhen=e.flatten=void 0;function t(e){return e.reduce((e,t)=>[].concat(e,t),[])}e.flatten=t;function n(e,t){let n=[[]],r=0;for(let i of e)t(i)?(r++,n[r]=[]):n[r].push(i);return n}e.splitWhen=n})),Qe=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isEnoentCodeError=void 0;function t(e){return e.code===`ENOENT`}e.isEnoentCodeError=t})),$e=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function n(e,n){return new t(e,n)}e.createDirentFromStats=n})),et=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;let t=n(`os`),r=n(`path`),i=t.platform()===`win32`,a=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,o=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,s=/^\\\\([.?])/,c=/\\(?![!()+@[\]{}])/g;function l(e){return e.replace(/\\/g,`/`)}e.unixify=l;function u(e,t){return r.resolve(e,t)}e.makeAbsolute=u;function d(e){if(e.charAt(0)===`.`){let t=e.charAt(1);if(t===`/`||t===`\\`)return e.slice(2)}return e}e.removeLeadingDotSegment=d,e.escape=i?f:p;function f(e){return e.replace(o,`\\$2`)}e.escapeWindowsPath=f;function p(e){return e.replace(a,`\\$2`)}e.escapePosixPath=p,e.convertPathToPattern=i?m:h;function m(e){return f(e).replace(s,`//$1`).replace(c,`/`)}e.convertWindowsPathToPattern=m;function h(e){return p(e)}e.convertPosixPathToPattern=h})),tt=e(((e,t)=>{t.exports=function(e){if(typeof e!=`string`||e===``)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}})),nt=e(((e,t)=>{var n=tt(),r={"{":`}`,"(":`)`,"[":`]`},i=function(e){if(e[0]===`!`)return!0;for(var t=0,n=-2,i=-2,a=-2,o=-2,s=-2;tt&&(s===-1||s>i||(s=e.indexOf(`\\`,t),s===-1||s>i)))||a!==-1&&e[t]===`{`&&e[t+1]!==`}`&&(a=e.indexOf(`}`,t),a>t&&(s=e.indexOf(`\\`,t),s===-1||s>a))||o!==-1&&e[t]===`(`&&e[t+1]===`?`&&/[:!=]/.test(e[t+2])&&e[t+3]!==`)`&&(o=e.indexOf(`)`,t),o>t&&(s=e.indexOf(`\\`,t),s===-1||s>o))||n!==-1&&e[t]===`(`&&e[t+1]!==`|`&&(nn&&(s=e.indexOf(`\\`,n),s===-1||s>o))))return!0;if(e[t]===`\\`){var c=e[t+1];t+=2;var l=r[c];if(l){var u=e.indexOf(l,t);u!==-1&&(t=u+1)}if(e[t]===`!`)return!0}else t++}return!1},a=function(e){if(e[0]===`!`)return!0;for(var t=0;t{var r=nt(),i=n(`path`).posix.dirname,a=n(`os`).platform()===`win32`,o=`/`,s=/\\/g,c=/[\{\[].*[\}\]]$/,l=/(^|[^\\])([\{\[]|\([^\)]+$)/,u=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&a&&e.indexOf(o)<0&&(e=e.replace(s,o)),c.test(e)&&(e+=o),e+=`a`;do e=i(e);while(r(e)||l.test(e));return e.replace(u,`$1`)}})),it=e((e=>{e.isInteger=e=>typeof e==`number`?Number.isInteger(e):typeof e==`string`&&e.trim()!==``?Number.isInteger(Number(e)):!1,e.find=(e,t)=>e.nodes.find(e=>e.type===t),e.exceedsLimit=(t,n,r=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(n)?!1:(Number(n)-Number(t))/Number(r)>=i,e.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||r.type===`open`||r.type===`close`)&&r.escaped!==!0&&(r.value=`\\`+r.value,r.escaped=!0)},e.encloseBrace=e=>e.type===`brace`?e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0):!1,e.isInvalidBrace=e=>e.type===`brace`?e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1:!1,e.isOpenOrClose=e=>e.type===`open`||e.type===`close`?!0:e.open===!0||e.close===!0,e.reduce=e=>e.reduce((e,t)=>(t.type===`text`&&e.push(t.value),t.type===`range`&&(t.type=`text`),e),[]),e.flatten=(...e)=>{let t=[],n=e=>{for(let r=0;r{let n=it();t.exports=(e,t={})=>{let r=(e,i={})=>{let a=t.escapeInvalid&&n.isInvalidBrace(i),o=e.invalid===!0&&t.escapeInvalid===!0,s=``;if(e.value)return(a||o)&&n.isOpenOrClose(e)?`\\`+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)s+=r(t);return s};return r(e)}})),ot=e(((e,t)=>{t.exports=function(e){return typeof e==`number`?e-e===0:typeof e==`string`&&e.trim()!==``?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}})),st=e(((e,t)=>{let n=ot(),r=(e,t,a)=>{if(n(e)===!1)throw TypeError(`toRegexRange: expected the first argument to be a number`);if(t===void 0||e===t)return String(e);if(n(t)===!1)throw TypeError(`toRegexRange: expected the second argument to be a number.`);let o={relaxZeros:!0,...a};typeof o.strictZeros==`boolean`&&(o.relaxZeros=o.strictZeros===!1);let c=String(o.relaxZeros),l=String(o.shorthand),u=String(o.capture),d=String(o.wrap),f=e+`:`+t+`=`+c+l+u+d;if(r.cache.hasOwnProperty(f))return r.cache[f].result;let p=Math.min(e,t),m=Math.max(e,t);if(Math.abs(p-m)===1){let n=e+`|`+t;return o.capture?`(${n})`:o.wrap===!1?n:`(?:${n})`}let h=g(e)||g(t),_={min:e,max:t,a:p,b:m},v=[],y=[];return h&&(_.isPadded=h,_.maxLen=String(_.max).length),p<0&&(y=s(m<0?Math.abs(m):1,Math.abs(p),_,o),p=_.a=0),m>=0&&(v=s(p,m,_,o)),_.negatives=y,_.positives=v,_.result=i(y,v,o),o.capture===!0?_.result=`(${_.result})`:o.wrap!==!1&&v.length+y.length>1&&(_.result=`(?:${_.result})`),r.cache[f]=_,_.result};function i(e,t,n){let r=c(e,t,`-`,!1,n)||[],i=c(t,e,``,!1,n)||[],a=c(e,t,`-?`,!0,n)||[];return r.concat(a).concat(i).join(`|`)}function a(e,t){let n=1,r=1,i=f(e,n),a=new Set([t]);for(;e<=i&&i<=t;)a.add(i),n+=1,i=f(e,n);for(i=p(t+1,r)-1;e1&&l.count.pop(),l.count.push(a.count[0]),l.string=l.pattern+m(l.count),c=t+1;continue}n.isPadded&&(u=_(t,n,r)),a.string=u+a.pattern+m(a.count),s.push(a),c=t+1,l=a}return s}function c(e,t,n,r,i){let a=[];for(let i of e){let{string:e}=i;!r&&!d(t,`string`,e)&&a.push(n+e),r&&d(t,`string`,e)&&a.push(n+e)}return a}function l(e,t){let n=[];for(let r=0;rt?1:t>e?-1:0}function d(e,t,n){return e.some(e=>e[t]===n)}function f(e,t){return Number(String(e).slice(0,-t)+`9`.repeat(t))}function p(e,t){return e-e%10**t}function m(e){let[t=0,n=``]=e;return n||t>1?`{${t+(n?`,`+n:``)}}`:``}function h(e,t,n){return`[${e}${t-e===1?``:`-`}${t}]`}function g(e){return/^-?(0+)\d/.test(e)}function _(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=n.relaxZeros!==!1;switch(r){case 0:return``;case 1:return i?`0?`:`0`;case 2:return i?`0{0,2}`:`00`;default:return i?`0{0,${r}}`:`0{${r}}`}}r.cache={},r.clearCache=()=>r.cache={},t.exports=r})),ct=e(((e,t)=>{let r=n(`util`),i=st(),a=e=>typeof e==`object`&&!!e&&!Array.isArray(e),o=e=>t=>e===!0?Number(t):String(t),s=e=>typeof e==`number`||typeof e==`string`&&e!==``,c=e=>Number.isInteger(+e),l=e=>{let t=`${e}`,n=-1;if(t[0]===`-`&&(t=t.slice(1)),t===`0`)return!1;for(;t[++n]===`0`;);return n>0},u=(e,t,n)=>typeof e==`string`||typeof t==`string`?!0:n.stringify===!0,d=(e,t,n)=>{if(t>0){let n=e[0]===`-`?`-`:``;n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,`0`)}return n===!1?String(e):e},f=(e,t)=>{let n=e[0]===`-`?`-`:``;for(n&&(e=e.slice(1),t--);e.length{e.negatives.sort((e,t)=>et)),e.positives.sort((e,t)=>et));let r=t.capture?``:`?:`,i=``,a=``,o;return e.positives.length&&(i=e.positives.map(e=>f(String(e),n)).join(`|`)),e.negatives.length&&(a=`-(${r}${e.negatives.map(e=>f(String(e),n)).join(`|`)})`),o=i&&a?`${i}|${a}`:i||a,t.wrap?`(${r}${o})`:o},m=(e,t,n,r)=>{if(n)return i(e,t,{wrap:!1,...r});let a=String.fromCharCode(e);return e===t?a:`[${a}-${String.fromCharCode(t)}]`},h=(e,t,n)=>{if(Array.isArray(e)){let t=n.wrap===!0,r=n.capture?``:`?:`;return t?`(${r}${e.join(`|`)})`:e.join(`|`)}return i(e,t,n)},g=(...e)=>RangeError(`Invalid range arguments: `+r.inspect(...e)),_=(e,t,n)=>{if(n.strictRanges===!0)throw g([e,t]);return[]},v=(e,t)=>{if(t.strictRanges===!0)throw TypeError(`Expected step "${e}" to be a number`);return[]},y=(e,t,n=1,r={})=>{let i=Number(e),a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(r.strictRanges===!0)throw g([e,t]);return[]}i===0&&(i=0),a===0&&(a=0);let s=i>a,c=String(e),_=String(t),v=String(n);n=Math.max(Math.abs(n),1);let y=l(c)||l(_)||l(v),b=y?Math.max(c.length,_.length,v.length):0,x=y===!1&&u(e,t,r)===!1,S=r.transform||o(x);if(r.toRegex&&n===1)return m(f(e,b),f(t,b),!0,r);let C={negatives:[],positives:[]},w=e=>C[e<0?`negatives`:`positives`].push(Math.abs(e)),T=[],E=0;for(;s?i>=a:i<=a;)r.toRegex===!0&&n>1?w(i):T.push(d(S(i,E),b,x)),i=s?i-n:i+n,E++;return r.toRegex===!0?n>1?p(C,r,b):h(T,null,{wrap:!1,...r}):T},b=(e,t,n=1,r={})=>{if(!c(e)&&e.length>1||!c(t)&&t.length>1)return _(e,t,r);let i=r.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),s=a>o,l=Math.min(a,o),u=Math.max(a,o);if(r.toRegex&&n===1)return m(l,u,!1,r);let d=[],f=0;for(;s?a>=o:a<=o;)d.push(i(a,f)),a=s?a-n:a+n,f++;return r.toRegex===!0?h(d,null,{wrap:!1,options:r}):d},x=(e,t,n,r={})=>{if(t==null&&s(e))return[e];if(!s(e)||!s(t))return _(e,t,r);if(typeof n==`function`)return x(e,t,1,{transform:n});if(a(n))return x(e,t,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,c(n)?c(e)&&c(t)?y(e,t,n,i):b(e,t,Math.max(Math.abs(n),1),i):n!=null&&!a(n)?v(n,i):x(e,t,1,n)};t.exports=x})),lt=e(((e,t)=>{let n=ct(),r=it();t.exports=(e,t={})=>{let i=(e,a={})=>{let o=r.isInvalidBrace(a),s=e.invalid===!0&&t.escapeInvalid===!0,c=o===!0||s===!0,l=t.escapeInvalid===!0?`\\`:``,u=``;if(e.isOpen===!0)return l+e.value;if(e.isClose===!0)return console.log(`node.isClose`,l,e.value),l+e.value;if(e.type===`open`)return c?l+e.value:`(`;if(e.type===`close`)return c?l+e.value:`)`;if(e.type===`comma`)return e.prev.type===`comma`?``:c?e.value:`|`;if(e.value)return e.value;if(e.nodes&&e.ranges>0){let i=r.reduce(e.nodes),a=n(...i,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(a.length!==0)return i.length>1&&a.length>1?`(${a})`:a}if(e.nodes)for(let t of e.nodes)u+=i(t,e);return u};return i(e)}})),ut=e(((e,t)=>{let n=ct(),r=at(),i=it(),a=(e=``,t=``,n=!1)=>{let r=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return n?i.flatten(t).map(e=>`{${e}}`):t;for(let i of e)if(Array.isArray(i))for(let e of i)r.push(a(e,t,n));else for(let e of t)n===!0&&typeof e==`string`&&(e=`{${e}}`),r.push(Array.isArray(e)?a(i,e,n):i+e);return i.flatten(r)};t.exports=(e,t={})=>{let o=t.rangeLimit===void 0?1e3:t.rangeLimit,s=(e,c={})=>{e.queue=[];let l=c,u=c.queue;for(;l.type!==`brace`&&l.type!==`root`&&l.parent;)l=l.parent,u=l.queue;if(e.invalid||e.dollar){u.push(a(u.pop(),r(e,t)));return}if(e.type===`brace`&&e.invalid!==!0&&e.nodes.length===2){u.push(a(u.pop(),[`{}`]));return}if(e.nodes&&e.ranges>0){let s=i.reduce(e.nodes);if(i.exceedsLimit(...s,t.step,o))throw RangeError(`expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.`);let c=n(...s,t);c.length===0&&(c=r(e,t)),u.push(a(u.pop(),c)),e.nodes=[];return}let d=i.encloseBrace(e),f=e.queue,p=e;for(;p.type!==`brace`&&p.type!==`root`&&p.parent;)p=p.parent,f=p.queue;for(let t=0;t{t.exports={MAX_LENGTH:1e4,CHAR_0:`0`,CHAR_9:`9`,CHAR_UPPERCASE_A:`A`,CHAR_LOWERCASE_A:`a`,CHAR_UPPERCASE_Z:`Z`,CHAR_LOWERCASE_Z:`z`,CHAR_LEFT_PARENTHESES:`(`,CHAR_RIGHT_PARENTHESES:`)`,CHAR_ASTERISK:`*`,CHAR_AMPERSAND:`&`,CHAR_AT:`@`,CHAR_BACKSLASH:`\\`,CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:`\r`,CHAR_CIRCUMFLEX_ACCENT:`^`,CHAR_COLON:`:`,CHAR_COMMA:`,`,CHAR_DOLLAR:`$`,CHAR_DOT:`.`,CHAR_DOUBLE_QUOTE:`"`,CHAR_EQUAL:`=`,CHAR_EXCLAMATION_MARK:`!`,CHAR_FORM_FEED:`\f`,CHAR_FORWARD_SLASH:`/`,CHAR_HASH:`#`,CHAR_HYPHEN_MINUS:`-`,CHAR_LEFT_ANGLE_BRACKET:`<`,CHAR_LEFT_CURLY_BRACE:`{`,CHAR_LEFT_SQUARE_BRACKET:`[`,CHAR_LINE_FEED:` `,CHAR_NO_BREAK_SPACE:`\xA0`,CHAR_PERCENT:`%`,CHAR_PLUS:`+`,CHAR_QUESTION_MARK:`?`,CHAR_RIGHT_ANGLE_BRACKET:`>`,CHAR_RIGHT_CURLY_BRACE:`}`,CHAR_RIGHT_SQUARE_BRACKET:`]`,CHAR_SEMICOLON:`;`,CHAR_SINGLE_QUOTE:`'`,CHAR_SPACE:` `,CHAR_TAB:` `,CHAR_UNDERSCORE:`_`,CHAR_VERTICAL_LINE:`|`,CHAR_ZERO_WIDTH_NOBREAK_SPACE:``}})),ft=e(((e,t)=>{let n=at(),{MAX_LENGTH:r,CHAR_BACKSLASH:i,CHAR_BACKTICK:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:p,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:h,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=dt();t.exports=(e,t={})=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let v=t||{},y=typeof v.maxLength==`number`?Math.min(r,v.maxLength):r;if(e.length>y)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${y})`);let b={type:`root`,input:e,nodes:[]},x=[b],S=b,C=b,w=0,T=e.length,E=0,D=0,O,k=()=>e[E++],A=e=>{if(e.type===`text`&&C.type===`dot`&&(C.type=`text`),C&&C.type===`text`&&e.type===`text`){C.value+=e.value;return}return S.nodes.push(e),e.parent=S,e.prev=C,C=e,e};for(A({type:`bos`});E0){if(S.ranges>0){S.ranges=0;let e=S.nodes.shift();S.nodes=[e,{type:`text`,value:n(S)}]}A({type:`comma`,value:O}),S.commas++;continue}if(O===s&&D>0&&S.commas===0){let e=S.nodes;if(D===0||e.length===0){A({type:`text`,value:O});continue}if(C.type===`dot`){if(S.range=[],C.value+=O,C.type=`range`,S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,C.type=`text`;continue}S.ranges++,S.args=[];continue}if(C.type===`range`){e.pop();let t=e[e.length-1];t.value+=C.value+O,C=t,S.ranges--;continue}A({type:`dot`,value:O});continue}A({type:`text`,value:O})}do if(S=x.pop(),S.type!==`root`){S.nodes.forEach(e=>{e.nodes||(e.type===`open`&&(e.isOpen=!0),e.type===`close`&&(e.isClose=!0),e.nodes||(e.type=`text`),e.invalid=!0)});let e=x[x.length-1],t=e.nodes.indexOf(S);e.nodes.splice(t,1,...S.nodes)}while(x.length>0);return A({type:`eos`}),b}})),pt=e(((e,t)=>{let n=at(),r=lt(),i=ut(),a=ft(),o=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=o.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(o.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};o.parse=(e,t={})=>a(e,t),o.stringify=(e,t={})=>n(typeof e==`string`?o.parse(e,t):e,t),o.compile=(e,t={})=>(typeof e==`string`&&(e=o.parse(e,t)),r(e,t)),o.expand=(e,t={})=>{typeof e==`string`&&(e=o.parse(e,t));let n=i(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n},o.create=(e,t={})=>e===``||e.length<3?[e]:t.expand===!0?o.expand(e,t):o.compile(e,t),t.exports=o})),mt=e(((e,t)=>{let r=n(`path`),i=`[^\\\\/]`,a=`[^/]`,o=`(?:\\/|$)`,s=`(?:^|\\/)`,c=`\\.{1,2}${o}`,l={DOT_LITERAL:`\\.`,PLUS_LITERAL:`\\+`,QMARK_LITERAL:`\\?`,SLASH_LITERAL:`\\/`,ONE_CHAR:`(?=.)`,QMARK:a,END_ANCHOR:o,DOTS_SLASH:c,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!${s}${c})`,NO_DOT_SLASH:`(?!\\.{0,1}${o})`,NO_DOTS_SLASH:`(?!${c})`,QMARK_NO_DOT:`[^.\\/]`,STAR:`${a}*?`,START_ANCHOR:s},u={...l,SLASH_LITERAL:`[\\\\/]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`\\.{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!\\.{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!\\.{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:`[^.\\\\/]`,START_ANCHOR:`(?:^|[\\\\/])`,END_ANCHOR:`(?:[\\\\/]|$)`};t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:{__proto__:null,alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?u:l}}})),ht=e((e=>{let t=n(`path`),r=process.platform===`win32`,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:a,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:s}=mt();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>o.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(s,`\\$1`),e.toPosixSlashes=e=>e.replace(i,`/`),e.removeBackslashes=e=>e.replace(a,e=>e===`\\`?``:e),e.supportsLookbehinds=()=>{let e=process.version.slice(1).split(`.`).map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10},e.isWindows=e=>e&&typeof e.windows==`boolean`?e.windows:r===!0||t.sep===`\\`,e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r}})),gt=e(((e,t)=>{let n=ht(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=mt(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,ee=!1,j=!1,te=!1,ne=!1,M=!1,N=!1,P=!1,F=!1,I=!1,L=0,R,z,B={value:``,depth:0,isGlob:!1},V=()=>D>=x,H=()=>E.charCodeAt(D+1),U=()=>(R=z,E.charCodeAt(++D));for(;D0&&(G=E.slice(0,O),E=E.slice(O),k-=O),W&&j===!0&&k>0?(W=E.slice(0,k),re=E.slice(k)):j===!0?(W=``,re=E):W=E,W&&W!==``&&W!==`/`&&W!==E&&v(W.charCodeAt(W.length-1))&&(W=W.slice(0,-1)),b.unescape===!0&&(re&&=n.removeBackslashes(re),W&&N===!0&&(W=n.removeBackslashes(W)));let K={prefix:G,input:e,start:O,base:W,glob:re,isBrace:A,isBracket:ee,isGlob:j,isExtglob:te,isGlobstar:ne,negated:P,negatedExtglob:F};if(b.tokens===!0&&(K.maxDepth=0,v(z)||w.push(B),K.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n{let n=mt(),r=ht(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch{return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=e=>{let t=[],n=0,r=0,i=0,a=``,o=!1;for(let s of e){if(o===!0){a+=s,o=!1;continue}if(s===`\\`){a+=s,o=!0;continue}if(s===`"`){i=i===1?0:1,a+=s;continue}if(i===0){if(s===`[`)n++;else if(s===`]`&&n>0)n--;else if(n===0){if(s===`(`)r++;else if(s===`)`&&r>0)r--;else if(s===`|`&&r===0){t.push(a),a=``;continue}}}a+=s}return t.push(a),t},f=e=>{let t=!1;for(let n of e){if(t===!0){t=!1;continue}if(n===`\\`){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},p=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(f(t))return t.replace(/\\(.)/g,`$1`)},m=e=>{let t=e.map(p).filter(Boolean);for(let e=0;e{if(e[0]!==`+`&&e[0]!==`*`||e[1]!==`(`)return;let n=0,r=0,i=0,a=!1;for(let o=1;o0){n--;continue}if(!(n>0)){if(s===`(`){r++;continue}if(s===`)`&&(r--,r===0))return t===!0&&o!==e.length-1?void 0:{type:e[0],body:e.slice(2,o),end:o}}}}},g=e=>{let t=0,n=[];for(;te.trim());if(i.length!==1)return;let a=p(i[0]);if(!a||a.length!==1)return;n.push(a),t+=r.end+1}if(!(n.length<1))return`${n.length===1?r.escapeRegex(n[0]):`[${n.map(e=>r.escapeRegex(e)).join(``)}]`}*`},_=e=>{let t=0,n=e.trim(),r=h(n);for(;r;)t++,n=r.body.trim(),r=h(n);return t},v=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==`number`?t.maxExtglobRecursion:n.DEFAULT_MAX_EXTGLOB_RECURSION,i=d(e).map(e=>e.trim());if(i.length>1&&(i.some(e=>e===``)||i.some(e=>/^[*?]+$/.test(e))||m(i)))return{risky:!0};for(let e of i){let t=g(e);if(t)return{risky:!0,safeOutput:t};if(_(e)>r)return{risky:!0}}return{risky:!1}},y=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let d={...t},f=typeof d.maxLength==`number`?Math.min(i,d.maxLength):i,p=e.length;if(p>f)throw SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`);let m={type:`bos`,value:``,output:d.prepend||``},h=[m],g=d.capture?``:`?:`,_=r.isWindows(t),b=n.globChars(_),x=n.extglobChars(b),{DOT_LITERAL:S,PLUS_LITERAL:C,SLASH_LITERAL:w,ONE_CHAR:T,DOTS_SLASH:E,NO_DOT:D,NO_DOT_SLASH:O,NO_DOTS_SLASH:k,QMARK:A,QMARK_NO_DOT:ee,STAR:j,START_ANCHOR:te}=b,ne=e=>`(${g}(?:(?!${te}${e.dot?E:S}).)*?)`,M=d.dot?``:D,N=d.dot?A:ee,P=d.bash===!0?ne(d):j;d.capture&&(P=`(${P})`),typeof d.noext==`boolean`&&(d.noextglob=d.noext);let F={input:e,index:-1,start:0,dot:d.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};e=r.removePrefix(e,F),p=e.length;let I=[],L=[],R=[],z=m,B,V=()=>F.index===p-1,H=F.peek=(t=1)=>e[F.index+t],U=F.advance=()=>e[++F.index]||``,W=()=>e.slice(F.index+1),G=(e=``,t=0)=>{F.consumed+=e,F.index+=t},re=e=>{F.output+=e.output==null?e.value:e.output,G(e.value)},K=()=>{let e=1;for(;H()===`!`&&(H(2)!==`(`||H(3)===`?`);)U(),F.start++,e++;return e%2==0?!1:(F.negated=!0,F.start++,!0)},ie=e=>{F[e]++,R.push(e)},ae=e=>{F[e]--,R.pop()},q=e=>{if(z.type===`globstar`){let t=F.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||I.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(F.output=F.output.slice(0,-z.output.length),z.type=`star`,z.value=`*`,z.output=P,F.output+=z.output)}if(I.length&&e.type!==`paren`&&(I[I.length-1].inner+=e.value),(e.value||e.output)&&re(e),z&&z.type===`text`&&e.type===`text`){z.value+=e.value,z.output=(z.output||``)+e.value;return}e.prev=z,h.push(e),z=e},oe=(e,t)=>{let n={...x[t],conditions:1,inner:``};n.prev=z,n.parens=F.parens,n.output=F.output,n.startIndex=F.index,n.tokensIndex=h.length;let r=(d.capture?`(`:``)+n.open;ie(`parens`),q({type:e,value:t,output:F.output?``:T}),q({type:`paren`,extglob:!0,value:U(),output:r}),I.push(n)},se=n=>{let i=e.slice(n.startIndex,F.index+1),a=v(e.slice(n.startIndex+2,F.index),d);if((n.type===`plus`||n.type===`star`)&&a.risky){let e=a.safeOutput?(n.output?``:T)+(d.capture?`(${a.safeOutput})`:a.safeOutput):void 0,t=h[n.tokensIndex];t.type=`text`,t.value=i,t.output=e||r.escapeRegex(i);for(let e=n.tokensIndex+1;e1&&n.inner.includes(`/`)&&(e=ne(d)),(e!==P||V()||/^\)+$/.test(W()))&&(o=n.close=`)$))${e}`),n.inner.includes(`*`)&&(s=W())&&/^\.[^\\/.]+$/.test(s)&&(o=n.close=`)${y(s,{...t,fastpaths:!1}).output})${e})`),n.prev.type===`bos`&&(F.negatedExtglob=!0)}q({type:`paren`,extglob:!0,value:B,output:o}),ae(`parens`)};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?A.repeat(a.length):``):o===0?N+(a?A.repeat(a.length):``):A.repeat(r.length):i===`.`?S.repeat(r.length):i===`*`?t?t+i+(a?P:``):P:t?e:`\\${e}`);return n===!0&&(i=d.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&d.contains===!0?(F.output=e,F):(F.output=r.wrapOutput(i,F,t),F)}for(;!V();){if(B=U(),B===`\0`)continue;if(B===`\\`){let e=H();if(e===`/`&&d.bash!==!0||e===`.`||e===`;`)continue;if(!e){B+=`\\`,q({type:`text`,value:B});continue}let t=/^\\+/.exec(W()),n=0;if(t&&t[0].length>2&&(n=t[0].length,F.index+=n,n%2!=0&&(B+=`\\`)),d.unescape===!0?B=U():B+=U(),F.brackets===0){q({type:`text`,value:B});continue}}if(F.brackets>0&&(B!==`]`||z.value===`[`||z.value===`[^`)){if(d.posix!==!1&&B===`:`){let e=z.value.slice(1);if(e.includes(`[`)&&(z.posix=!0,e.includes(`:`))){let e=z.value.lastIndexOf(`[`),t=z.value.slice(0,e),n=a[z.value.slice(e+2)];if(n){z.value=t+n,F.backtrack=!0,U(),!m.output&&h.indexOf(z)===1&&(m.output=T);continue}}}(B===`[`&&H()!==`:`||B===`-`&&H()===`]`)&&(B=`\\${B}`),B===`]`&&(z.value===`[`||z.value===`[^`)&&(B=`\\${B}`),d.posix===!0&&B===`!`&&z.value===`[`&&(B=`^`),z.value+=B,re({value:B});continue}if(F.quotes===1&&B!==`"`){B=r.escapeRegex(B),z.value+=B,re({value:B});continue}if(B===`"`){F.quotes=F.quotes===1?0:1,d.keepQuotes===!0&&q({type:`text`,value:B});continue}if(B===`(`){ie(`parens`),q({type:`paren`,value:B});continue}if(B===`)`){if(F.parens===0&&d.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=I[I.length-1];if(e&&F.parens===e.parens+1){se(I.pop());continue}q({type:`paren`,value:B,output:F.parens?`)`:`\\)`}),ae(`parens`);continue}if(B===`[`){if(d.nobracket===!0||!W().includes(`]`)){if(d.nobracket!==!0&&d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));B=`\\${B}`}else ie(`brackets`);q({type:`bracket`,value:B});continue}if(B===`]`){if(d.nobracket===!0||z&&z.type===`bracket`&&z.value.length===1){q({type:`text`,value:B,output:`\\${B}`});continue}if(F.brackets===0){if(d.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));q({type:`text`,value:B,output:`\\${B}`});continue}ae(`brackets`);let e=z.value.slice(1);if(z.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(B=`/${B}`),z.value+=B,re({value:B}),d.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(z.value);if(F.output=F.output.slice(0,-z.value.length),d.literalBrackets===!0){F.output+=t,z.value=t;continue}z.value=`(${g}${t}|${z.value})`,F.output+=z.value;continue}if(B===`{`&&d.nobrace!==!0){ie(`braces`);let e={type:`brace`,value:B,output:`(`,outputIndex:F.output.length,tokensIndex:F.tokens.length};L.push(e),q(e);continue}if(B===`}`){let e=L[L.length-1];if(d.nobrace===!0||!e){q({type:`text`,value:B,output:B});continue}let t=`)`;if(e.dots===!0){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,d),F.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=F.output.slice(0,e.outputIndex),r=F.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,B=t=`\\}`,F.output=n;for(let e of r)F.output+=e.output||e.value}q({type:`brace`,value:B,output:t}),ae(`braces`),L.pop();continue}if(B===`|`){I.length>0&&I[I.length-1].conditions++,q({type:`text`,value:B});continue}if(B===`,`){let e=B,t=L[L.length-1];t&&R[R.length-1]===`braces`&&(t.comma=!0,e=`|`),q({type:`comma`,value:B,output:e});continue}if(B===`/`){if(z.type===`dot`&&F.index===F.start+1){F.start=F.index+1,F.consumed=``,F.output=``,h.pop(),z=m;continue}q({type:`slash`,value:B,output:w});continue}if(B===`.`){if(F.braces>0&&z.type===`dot`){z.value===`.`&&(z.output=S);let e=L[L.length-1];z.type=`dots`,z.output+=B,z.value+=B,e.dots=!0;continue}if(F.braces+F.parens===0&&z.type!==`bos`&&z.type!==`slash`){q({type:`text`,value:B,output:S});continue}q({type:`dot`,value:B,output:S});continue}if(B===`?`){if(!(z&&z.value===`(`)&&d.noextglob!==!0&&H()===`(`&&H(2)!==`?`){oe(`qmark`,B);continue}if(z&&z.type===`paren`){let e=H(),t=B;if(e===`<`&&!r.supportsLookbehinds())throw Error(`Node.js v10 or higher is required for regex lookbehinds`);(z.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(W()))&&(t=`\\${B}`),q({type:`text`,value:B,output:t});continue}if(d.dot!==!0&&(z.type===`slash`||z.type===`bos`)){q({type:`qmark`,value:B,output:ee});continue}q({type:`qmark`,value:B,output:A});continue}if(B===`!`){if(d.noextglob!==!0&&H()===`(`&&(H(2)!==`?`||!/[!=<:]/.test(H(3)))){oe(`negate`,B);continue}if(d.nonegate!==!0&&F.index===0){K();continue}}if(B===`+`){if(d.noextglob!==!0&&H()===`(`&&H(2)!==`?`){oe(`plus`,B);continue}if(z&&z.value===`(`||d.regex===!1){q({type:`plus`,value:B,output:C});continue}if(z&&(z.type===`bracket`||z.type===`paren`||z.type===`brace`)||F.parens>0){q({type:`plus`,value:B});continue}q({type:`plus`,value:C});continue}if(B===`@`){if(d.noextglob!==!0&&H()===`(`&&H(2)!==`?`){q({type:`at`,extglob:!0,value:B,output:``});continue}q({type:`text`,value:B});continue}if(B!==`*`){(B===`$`||B===`^`)&&(B=`\\${B}`);let e=o.exec(W());e&&(B+=e[0],F.index+=e[0].length),q({type:`text`,value:B});continue}if(z&&(z.type===`globstar`||z.star===!0)){z.type=`star`,z.star=!0,z.value+=B,z.output=P,F.backtrack=!0,F.globstar=!0,G(B);continue}let t=W();if(d.noextglob!==!0&&/^\([^?]/.test(t)){oe(`star`,B);continue}if(z.type===`star`){if(d.noglobstar===!0){G(B);continue}let n=z.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(d.bash===!0&&(!i||t[0]&&t[0]!==`/`)){q({type:`star`,value:B,output:``});continue}let o=F.braces>0&&(n.type===`comma`||n.type===`brace`),s=I.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){q({type:`star`,value:B,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[F.index+4];if(n&&n!==`/`)break;t=t.slice(3),G(`/**`,3)}if(n.type===`bos`&&V()){z.type=`globstar`,z.value+=B,z.output=ne(d),F.output=z.output,F.globstar=!0,G(B);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&V()){F.output=F.output.slice(0,-(n.output+z.output).length),n.output=`(?:${n.output}`,z.type=`globstar`,z.output=ne(d)+(d.strictSlashes?`)`:`|$)`),z.value+=B,F.globstar=!0,F.output+=n.output+z.output,G(B);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;F.output=F.output.slice(0,-(n.output+z.output).length),n.output=`(?:${n.output}`,z.type=`globstar`,z.output=`${ne(d)}${w}|${w}${e})`,z.value+=B,F.output+=n.output+z.output,F.globstar=!0,G(B+U()),q({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){z.type=`globstar`,z.value+=B,z.output=`(?:^|${w}|${ne(d)}${w})`,F.output=z.output,F.globstar=!0,G(B+U()),q({type:`slash`,value:`/`,output:``});continue}F.output=F.output.slice(0,-z.output.length),z.type=`globstar`,z.output=ne(d),z.value+=B,F.output+=z.output,F.globstar=!0,G(B);continue}let n={type:`star`,value:B,output:P};if(d.bash===!0){n.output=`.*?`,(z.type===`bos`||z.type===`slash`)&&(n.output=M+n.output),q(n);continue}if(z&&(z.type===`bracket`||z.type===`paren`)&&d.regex===!0){n.output=B,q(n);continue}(F.index===F.start||z.type===`slash`||z.type===`dot`)&&(z.type===`dot`?(F.output+=O,z.output+=O):d.dot===!0?(F.output+=k,z.output+=k):(F.output+=M,z.output+=M),H()!==`*`&&(F.output+=T,z.output+=T)),q(n)}for(;F.brackets>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));F.output=r.escapeLast(F.output,`[`),ae(`brackets`)}for(;F.parens>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));F.output=r.escapeLast(F.output,`(`),ae(`parens`)}for(;F.braces>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));F.output=r.escapeLast(F.output,`{`),ae(`braces`)}if(d.strictSlashes!==!0&&(z.type===`star`||z.type===`bracket`)&&q({type:`maybe_slash`,value:``,output:`${w}?`}),F.backtrack===!0){F.output=``;for(let e of F.tokens)F.output+=e.output==null?e.value:e.output,e.suffix&&(F.output+=e.suffix)}return F};y.fastpaths=(e,t)=>{let a={...t},o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let l=r.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:m,NO_DOTS:h,NO_DOTS_SLASH:g,STAR:_,START_ANCHOR:v}=n.globChars(l),y=a.dot?h:m,b=a.dot?g:m,x=a.capture?``:`?:`,S={negated:!1,prefix:``},C=a.bash===!0?`.*?`:_;a.capture&&(C=`(${C})`);let w=e=>e.noglobstar===!0?C:`(${x}(?:(?!${v}${e.dot?p:u}).)*?)`,T=e=>{switch(e){case`*`:return`${y}${f}${C}`;case`.*`:return`${u}${f}${C}`;case`*.*`:return`${y}${C}${u}${f}${C}`;case`*/*`:return`${y}${C}${d}${f}${b}${C}`;case`**`:return y+w(a);case`**/*`:return`(?:${y}${w(a)}${d})?${b}${f}${C}`;case`**/*.*`:return`(?:${y}${w(a)}${d})?${b}${C}${u}${f}${C}`;case`**/.*`:return`(?:${y}${w(a)}${d})?${u}${f}${C}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=T(t[1]);return n?n+u+t[2]:void 0}}},E=T(r.removePrefix(e,S));return E&&a.strictSlashes!==!0&&(E+=`${d}?`),E},t.exports=y})),vt=e(((e,t)=>{let r=n(`path`),i=gt(),a=_t(),o=ht(),s=mt(),c=e=>e&&typeof e==`object`&&!Array.isArray(e),l=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>l(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=c(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=o.isWindows(t),s=r?l.compileRe(e,t):l.makeRe(e,t,!1,!0),u=s.state;delete s.state;let d=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};d=l(i.ignore,e,n)}let f=(n,r=!1)=>{let{isMatch:o,match:c,output:f}=l.test(n,s,t,{glob:e,posix:a}),p={glob:e,state:u,regex:s,posix:a,input:n,output:f,match:c,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):d(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),r?p:!0)};return n&&(f.state=u),f};l.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let a=n||{},s=a.format||(i?o.toPosixSlashes:null),c=e===r,u=c&&s?s(e):e;return c===!1&&(u=s?s(e):e,c=u===r),(c===!1||a.capture===!0)&&(c=a.matchBase===!0||a.basename===!0?l.matchBase(e,t,n,i):t.exec(u)),{isMatch:!!c,match:c,output:u}},l.matchBase=(e,t,n,i=o.isWindows(n))=>(t instanceof RegExp?t:l.makeRe(t,n)).test(r.basename(e)),l.isMatch=(e,t,n)=>l(t,n)(e),l.parse=(e,t)=>Array.isArray(e)?e.map(e=>l.parse(e,t)):a(e,{...t,fastpaths:!1}),l.scan=(e,t)=>i(e,t),l.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,s=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let c=l.toRegex(s,t);return r===!0&&(c.state=e),c},l.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(i.output=a.fastpaths(e,t)),i.output||(i=a(e,t)),l.compileRe(i,t,n,r)},l.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},l.constants=s,t.exports=l})),yt=e(((e,t)=>{t.exports=vt()})),bt=e(((e,t)=>{let r=n(`util`),i=pt(),a=yt(),o=ht(),s=e=>e===``||e===`./`,c=e=>{let t=e.indexOf(`{`);return t>-1&&e.indexOf(`}`,t)>-1},l=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,i=new Set,o=new Set,s=0,c=e=>{o.add(e.output),n&&n.onResult&&n.onResult(e)};for(let o=0;o!r.has(e));if(n&&l.length===0){if(n.failglob===!0)throw Error(`No matches found for "${t.join(`, `)}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?t.map(e=>e.replace(/\\/g,``)):t}return l};l.match=l,l.matcher=(e,t)=>a(e,t),l.isMatch=(e,t,n)=>a(t,n)(e),l.any=l.isMatch,l.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],a=e=>{n.onResult&&n.onResult(e),i.push(e.output)},o=new Set(l(e,t,{...n,onResult:a}));for(let e of i)o.has(e)||r.add(e);return[...r]},l.contains=(e,t,n)=>{if(typeof e!=`string`)throw TypeError(`Expected a string: "${r.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>l.contains(e,t,n));if(typeof t==`string`){if(s(e)||s(t))return!1;if(e.includes(t)||e.startsWith(`./`)&&e.slice(2).includes(t))return!0}return l.isMatch(e,t,{...n,contains:!0})},l.matchKeys=(e,t,n)=>{if(!o.isObject(e))throw TypeError(`Expected the first argument to be an object`);let r=l(Object.keys(e),t,n),i={};for(let t of r)i[t]=e[t];return i},l.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),n);if(r.some(e=>t(e)))return!0}return!1},l.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),n);if(!r.every(e=>t(e)))return!1}return!0},l.all=(e,t,n)=>{if(typeof e!=`string`)throw TypeError(`Expected a string: "${r.inspect(e)}"`);return[].concat(t).every(t=>a(t,n)(e))},l.capture=(e,t,n)=>{let r=o.isWindows(n),i=a.makeRe(String(e),{...n,capture:!0}).exec(r?o.toPosixSlashes(t):t);if(i)return i.slice(1).map(e=>e===void 0?``:e)},l.makeRe=(...e)=>a.makeRe(...e),l.scan=(...e)=>a.scan(...e),l.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let e of i(String(r),t))n.push(a.parse(e,t));return n},l.braces=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return t&&t.nobrace===!0||!c(e)?[e]:i(e,t)},l.braceExpand=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return l.braces(e,{...t,expand:!0})},l.hasBraces=c,t.exports=l})),xt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;let t=n(`path`),r=rt(),i=bt(),a=/[*?]|^!/,o=/\[[^[]*]/,s=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,l=/,|\.\./,u=/(?!^)\/{2,}/g;function d(e,t={}){return!f(e,t)}e.isStaticPattern=d;function f(e,t={}){return e===``?!1:!!(t.caseSensitiveMatch===!1||e.includes(`\\`)||a.test(e)||o.test(e)||s.test(e)||t.extglob!==!1&&c.test(e)||t.braceExpansion!==!1&&p(e))}e.isDynamicPattern=f;function p(e){let t=e.indexOf(`{`);if(t===-1)return!1;let n=e.indexOf(`}`,t+1);if(n===-1)return!1;let r=e.slice(t,n);return l.test(r)}function m(e){return g(e)?e.slice(1):e}e.convertToPositivePattern=m;function h(e){return`!`+e}e.convertToNegativePattern=h;function g(e){return e.startsWith(`!`)&&e[1]!==`(`}e.isNegativePattern=g;function _(e){return!g(e)}e.isPositivePattern=_;function v(e){return e.filter(g)}e.getNegativePatterns=v;function y(e){return e.filter(_)}e.getPositivePatterns=y;function b(e){return e.filter(e=>!S(e))}e.getPatternsInsideCurrentDirectory=b;function x(e){return e.filter(S)}e.getPatternsOutsideCurrentDirectory=x;function S(e){return e.startsWith(`..`)||e.startsWith(`./..`)}e.isPatternRelatedToParentDirectory=S;function C(e){return r(e,{flipBackslashes:!1})}e.getBaseDirectory=C;function w(e){return e.includes(`**`)}e.hasGlobStar=w;function T(e){return e.endsWith(`/**`)}e.endsWithSlashGlobStar=T;function E(e){let n=t.basename(e);return T(e)||d(n)}e.isAffectDepthOfReadingPattern=E;function D(e){return e.reduce((e,t)=>e.concat(O(t)),[])}e.expandPatternsWithBraceExpansion=D;function O(e){let t=i.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((e,t)=>e.length-t.length),t.filter(e=>e!==``)}e.expandBraceExpansion=O;function k(e,t){let{parts:n}=i.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return n.length===0&&(n=[e]),n[0].startsWith(`/`)&&(n[0]=n[0].slice(1),n.unshift(``)),n}e.getPatternParts=k;function A(e,t){return i.makeRe(e,t)}e.makeRe=A;function ee(e,t){return e.map(e=>A(e,t))}e.convertPatternsToRe=ee;function j(e,t){return t.some(t=>t.test(e))}e.matchAny=j;function te(e){return e.replace(u,`/`)}e.removeDuplicateSlashes=te;function ne(e){let t=[],n=[];for(let r of e)M(r)?t.push(r):n.push(r);return[t,n]}e.partitionAbsoluteAndRelative=ne;function M(e){return t.isAbsolute(e)}e.isAbsolute=M})),St=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;let t=Xe();function n(e){let n=t(e);return e.forEach(e=>{e.once(`error`,e=>n.emit(`error`,e))}),n.once(`close`,()=>r(e)),n.once(`end`,()=>r(e)),n}e.merge=n;function r(e){e.forEach(e=>e.emit(`close`))}})),Ct=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isEmpty=e.isString=void 0;function t(e){return typeof e==`string`}e.isString=t;function n(e){return e===``}e.isEmpty=n})),wt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0,e.array=Ze(),e.errno=Qe(),e.fs=$e(),e.path=et(),e.pattern=xt(),e.stream=St(),e.string=Ct()})),Tt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;let t=wt();function n(e,n){let s=r(e,n),c=r(n.ignore,n),l=a(s),u=o(s,c),d=l.filter(e=>t.pattern.isStaticPattern(e,n)),f=l.filter(e=>t.pattern.isDynamicPattern(e,n)),p=i(d,u,!1),m=i(f,u,!0);return p.concat(m)}e.generate=n;function r(e,n){let r=e;return n.braceExpansion&&(r=t.pattern.expandPatternsWithBraceExpansion(r)),n.baseNameMatch&&(r=r.map(e=>e.includes(`/`)?e:`**/${e}`)),r.map(e=>t.pattern.removeDuplicateSlashes(e))}function i(e,n,r){let i=[],a=t.pattern.getPatternsOutsideCurrentDirectory(e),o=t.pattern.getPatternsInsideCurrentDirectory(e),u=s(a),d=s(o);return i.push(...c(u,n,r)),`.`in d?i.push(l(`.`,o,n,r)):i.push(...c(d,n,r)),i}e.convertPatternsToTasks=i;function a(e){return t.pattern.getPositivePatterns(e)}e.getPositivePatterns=a;function o(e,n){return t.pattern.getNegativePatterns(e).concat(n).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=o;function s(e){return e.reduce((e,n)=>{let r=t.pattern.getBaseDirectory(n);return r in e?e[r].push(n):e[r]=[n],e},{})}e.groupPatternsByBaseDirectory=s;function c(e,t,n){return Object.keys(e).map(r=>l(r,e[r],t,n))}e.convertPatternGroupsToTasks=c;function l(e,n,r,i){return{dynamic:i,positive:n,negative:r,base:e,patterns:[].concat(n,r.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=l})),Et=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.read=void 0;function t(e,t,i){t.fs.lstat(e,(a,o)=>{if(a!==null){n(i,a);return}if(!o.isSymbolicLink()||!t.followSymbolicLink){r(i,o);return}t.fs.stat(e,(e,a)=>{if(e!==null){if(t.throwErrorOnBrokenSymbolicLink){n(i,e);return}r(i,o);return}t.markSymbolicLink&&(a.isSymbolicLink=()=>!0),r(i,a)})})}e.read=t;function n(e,t){e(t)}function r(e,t){e(null,t)}})),Dt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.read=void 0;function t(e,t){let n=t.fs.lstatSync(e);if(!n.isSymbolicLink()||!t.followSymbolicLink)return n;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(e){if(!t.throwErrorOnBrokenSymbolicLink)return n;throw e}}e.read=t})),Ot=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;let t=n(`fs`);e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(t){return t===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=r})),kt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Ot();e.default=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return e??t}}})),At=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.statSync=e.stat=e.Settings=void 0;let t=Et(),n=Dt(),r=kt();e.Settings=r.default;function i(e,n,r){if(typeof n==`function`){t.read(e,o(),n);return}t.read(e,o(n),r)}e.stat=i;function a(e,t){let r=o(t);return n.read(e,r)}e.statSync=a;function o(e={}){return e instanceof r.default?e:new r.default(e)}})),jt=e(((e,t)=>{let n;t.exports=typeof queueMicrotask==`function`?queueMicrotask.bind(typeof window<`u`?window:global):e=>(n||=Promise.resolve()).then(e).catch(e=>setTimeout(()=>{throw e},0))})),Mt=e(((e,t)=>{t.exports=r;let n=jt();function r(e,t){let r,i,a,o=!0;Array.isArray(e)?(r=[],i=e.length):(a=Object.keys(e),r={},i=a.length);function s(e){function i(){t&&t(e,r),t=null}o?n(i):i()}function c(e,t,n){r[e]=n,(--i===0||t)&&s(t)}i?a?a.forEach(function(t){e[t](function(e,n){c(t,e,n)})}):e.forEach(function(e,t){e(function(e,n){c(t,e,n)})}):s(null),o=!1}})),Nt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;let t=process.versions.node.split(`.`);if(t[0]===void 0||t[1]===void 0)throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);let n=Number.parseInt(t[0],10),r=Number.parseInt(t[1],10);e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=n>10||n===10&&r>=10})),Pt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function n(e,n){return new t(e,n)}e.createDirentFromStats=n})),Ft=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fs=void 0,e.fs=Pt()})),It=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.joinPathSegments=void 0;function t(e,t,n){return e.endsWith(n)?e+t:e+n+t}e.joinPathSegments=t})),Lt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;let t=At(),n=Mt(),r=Nt(),i=Ft(),a=It();function o(e,t,n){if(!t.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES){s(e,t,n);return}l(e,t,n)}e.read=o;function s(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(i,o)=>{if(i!==null){u(r,i);return}let s=o.map(n=>({dirent:n,name:n.name,path:a.joinPathSegments(e,n.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){d(r,s);return}n(s.map(e=>c(e,t)),(e,t)=>{if(e!==null){u(r,e);return}d(r,t)})})}e.readdirWithFileTypes=s;function c(e,t){return n=>{if(!e.dirent.isSymbolicLink()){n(null,e);return}t.fs.stat(e.path,(r,a)=>{if(r!==null){if(t.throwErrorOnBrokenSymbolicLink){n(r);return}n(null,e);return}e.dirent=i.fs.createDirentFromStats(e.name,a),n(null,e)})}}function l(e,r,o){r.fs.readdir(e,(s,c)=>{if(s!==null){u(o,s);return}n(c.map(n=>{let o=a.joinPathSegments(e,n,r.pathSegmentSeparator);return e=>{t.stat(o,r.fsStatSettings,(t,a)=>{if(t!==null){e(t);return}let s={name:n,path:o,dirent:i.fs.createDirentFromStats(n,a)};r.stats&&(s.stats=a),e(null,s)})}}),(e,t)=>{if(e!==null){u(o,e);return}d(o,t)})})}e.readdir=l;function u(e,t){e(t)}function d(e,t){e(null,t)}})),Rt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;let t=At(),n=Nt(),r=Ft(),i=It();function a(e,t){return!t.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?o(e,t):s(e,t)}e.read=a;function o(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let a={dirent:n,name:n.name,path:i.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(a.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let e=t.fs.statSync(a.path);a.dirent=r.fs.createDirentFromStats(a.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink)throw e}return a})}e.readdirWithFileTypes=o;function s(e,n){return n.fs.readdirSync(e).map(a=>{let o=i.joinPathSegments(e,a,n.pathSegmentSeparator),s=t.statSync(o,n.fsStatSettings),c={name:a,path:o,dirent:r.fs.createDirentFromStats(a,s)};return n.stats&&(c.stats=s),c})}e.readdir=s})),zt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;let t=n(`fs`);e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(t){return t===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=r})),Bt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=n(`path`),r=At(),i=zt();e.default=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e??t}}})),Vt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;let t=Lt(),n=Rt(),r=Bt();e.Settings=r.default;function i(e,n,r){if(typeof n==`function`){t.read(e,o(),n);return}t.read(e,o(n),r)}e.scandir=i;function a(e,t){let r=o(t);return n.read(e,r)}e.scandirSync=a;function o(e={}){return e instanceof r.default?e:new r.default(e)}})),Ht=e(((e,t)=>{function n(e){var t=new e,n=t;function r(){var r=t;return r.next?t=r.next:(t=new e,n=t),r.next=null,r}function i(e){n.next=e,n=e}return{get:r,release:i}}t.exports=n})),Ut=e(((e,t)=>{var n=Ht();function r(e,t,r){if(typeof e==`function`&&(r=t,t=e,e=null),!(r>=1))throw Error(`fastqueue concurrency must be equal to or greater than 1`);var o=n(a),s=null,c=null,l=0,u=null,d={push:v,drain:i,saturated:i,pause:p,paused:!1,get concurrency(){return r},set concurrency(e){if(!(e>=1))throw Error(`fastqueue concurrency must be equal to or greater than 1`);if(r=e,!d.paused)for(;s&&l=r||d.paused?c?(c.next=f,c=f):(s=f,c=f,d.saturated()):(l++,t.call(e,f.value,f.worked))}function y(n,a){var f=o.get();f.context=e,f.release=b,f.value=n,f.callback=a||i,f.errorHandler=u,l>=r||d.paused?s?(f.next=s,s=f):(s=f,c=f,d.saturated()):(l++,t.call(e,f.value,f.worked))}function b(n){n&&o.release(n);var i=s;i&&l<=r?d.paused?l--:(c===s&&(c=null),s=i.next,i.next=null,t.call(e,i.value,i.worked),c===null&&d.empty()):--l===0&&d.drain()}function x(){s=null,c=null,d.drain=i}function S(){s=null,c=null,d.drain(),d.drain=i}function C(){var e=s;for(s=null,c=null;e;){var t=e.next,n=e.callback,r=e.errorHandler,a=e.value,o=e.context;e.value=null,e.callback=i,e.errorHandler=null,r&&r(Error(`abort`),a),n.call(o,Error(`abort`)),e.release(e),e=t}d.drain=i}function w(e){u=e}}function i(){}function a(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var r=e.callback,a=e.errorHandler,o=e.value;e.value=null,e.callback=i,e.errorHandler&&a(t,o),r.call(e.context,t,n),e.release(e)}}function o(e,t,n){typeof e==`function`&&(n=t,t=e,e=null);function a(e,n){t.call(this,e).then(function(e){n(null,e)},n)}var o=r(e,a,n),s=o.push,c=o.unshift;return o.push=l,o.unshift=u,o.drained=d,o;function l(e){var t=new Promise(function(t,n){s(e,function(e,r){if(e){n(e);return}t(r)})});return t.catch(i),t}function u(e){var t=new Promise(function(t,n){c(e,function(e,r){if(e){n(e);return}t(r)})});return t.catch(i),t}function d(){return new Promise(function(e){process.nextTick(function(){if(o.idle())e();else{var t=o.drain;o.drain=function(){typeof t==`function`&&t(),e(),o.drain=t}}})})}}t.exports=r,t.exports.promise=o})),Wt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}e.isFatalError=t;function n(e,t){return e===null||e(t)}e.isAppliedFilter=n;function r(e,t){return e.split(/[/\\]/).join(t)}e.replacePathSegmentSeparator=r;function i(e,t,n){return e===``?t:e.endsWith(n)?e+t:e+n+t}e.joinPathSegments=i})),Gt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Wt();e.default=class{constructor(e,n){this._root=e,this._settings=n,this._root=t.replacePathSegmentSeparator(e,n.pathSegmentSeparator)}}})),Kt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=n(`events`),r=Vt(),i=Ut(),a=Wt(),o=Gt();e.default=class extends o.default{constructor(e,n){super(e,n),this._settings=n,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit(`end`)}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error(`The reader is already destroyed`);this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on(`entry`,e)}onError(e){this._emitter.once(`error`,e)}onEnd(e){this._emitter.once(`end`,e)}_pushToQueue(e,t){let n={directory:e,base:t};this._queue.push(n,e=>{e!==null&&this._handleError(e)})}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,(n,r)=>{if(n!==null){t(n,void 0);return}for(let t of r)this._handleEntry(t,e.base);t(null,void 0)})}_handleError(e){this._isDestroyed||!a.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit(`error`,e))}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;let n=e.path;t!==void 0&&(e.path=a.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),a.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&a.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,t===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit(`entry`,e)}}})),qt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Kt();e.default=class{constructor(e,n){this._root=e,this._settings=n,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(t=>{n(e,t)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{r(e,this._storage)}),this._reader.read()}};function n(e,t){e(t)}function r(e,t){e(null,t)}})),Jt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=n(`stream`),r=Kt();e.default=class{constructor(e,n){this._root=e,this._settings=n,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit(`error`,e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}})),Yt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Vt(),n=Wt(),r=Gt();e.default=class extends r.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let e of n)this._handleEntry(e,t)}catch(e){this._handleError(e)}}_handleError(e){if(n.isFatalError(this._settings,e))throw e}_handleEntry(e,t){let r=e.path;t!==void 0&&(e.path=n.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,t===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}})),Xt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Yt();e.default=class{constructor(e,n){this._root=e,this._settings=n,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}}})),Zt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=n(`path`),r=Vt();e.default=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,1/0),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e??t}}})),Qt=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;let t=qt(),n=Jt(),r=Xt(),i=Zt();e.Settings=i.default;function a(e,n,r){if(typeof n==`function`){new t.default(e,c()).read(n);return}new t.default(e,c(n)).read(r)}e.walk=a;function o(e,t){let n=c(t);return new r.default(e,n).read()}e.walkSync=o;function s(e,t){let r=c(t);return new n.default(e,r).read()}e.walkStream=s;function c(e={}){return e instanceof i.default?e:new i.default(e)}})),$t=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=n(`path`),r=At(),i=wt();e.default=class{constructor(e){this._settings=e,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return t.resolve(this._settings.cwd,e)}_makeEntry(e,t){let n={name:t,path:t,dirent:i.fs.createDirentFromStats(t,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!i.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}})),en=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=n(`stream`),r=At(),i=Qt(),a=$t();e.default=class extends a.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,n){let r=e.map(this._getFullEntryPath,this),i=new t.PassThrough({objectMode:!0});i._write=(t,a,o)=>this._getEntry(r[t],e[t],n).then(e=>{e!==null&&n.entryFilter(e)&&i.push(e),t===r.length-1&&i.end(),o()}).catch(o);for(let e=0;ethis._makeEntry(e,t)).catch(e=>{if(n.errorFilter(e))return null;throw e})}_getStat(e){return new Promise((t,n)=>{this._stat(e,this._fsStatSettings,(e,r)=>e===null?t(r):n(e))})}}})),tn=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Qt(),n=$t(),r=en();e.default=class extends n.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new r.default(this._settings)}dynamic(e,t){return new Promise((n,r)=>{this._walkAsync(e,t,(e,t)=>{e===null?n(t):r(e)})})}async static(e,t){let n=[],r=this._readerStream.static(e,t);return new Promise((e,t)=>{r.once(`error`,t),r.on(`data`,e=>n.push(e)),r.once(`end`,()=>e(n))})}}})),nn=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=wt();e.default=class{constructor(e,t,n){this._patterns=e,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let t=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(t);this._storage.push({complete:n.length<=1,pattern:e,segments:t,sections:n})}}_getPatternSegments(e){return t.pattern.getPatternParts(e,this._micromatchOptions).map(e=>t.pattern.isDynamicPattern(e,this._settings)?{dynamic:!0,pattern:e,patternRe:t.pattern.makeRe(e,this._micromatchOptions)}:{dynamic:!1,pattern:e})}_splitSegmentsIntoSections(e){return t.array.splitWhen(e,e=>e.dynamic&&t.pattern.hasGlobStar(e.pattern))}}})),rn=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=nn();e.default=class extends t.default{match(e){let t=e.split(`/`),n=t.length,r=this._storage.filter(e=>!e.complete||e.segments.length>n);for(let e of r){let r=e.sections[0];if(!e.complete&&n>r.length||t.every((t,n)=>{let r=e.segments[n];return!!(r.dynamic&&r.patternRe.test(t)||!r.dynamic&&r.pattern===t)}))return!0}return!1}}})),an=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=wt(),n=rn();e.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,n){let r=this._getMatcher(t),i=this._getNegativePatternsRe(n);return t=>this._filter(e,t,r,i)}_getMatcher(e){return new n.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let n=e.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(e,n,r,i){if(this._isSkippedByDeep(e,n.path)||this._isSkippedSymbolicLink(n))return!1;let a=t.path.removeLeadingDotSegment(n.path);return this._isSkippedByPositivePatterns(a,r)?!1:this._isSkippedByNegativePatterns(a,i)}_isSkippedByDeep(e,t){return this._settings.deep===1/0?!1:this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){let n=t.split(`/`).length;return e===``?n:n-e.split(`/`).length}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,n){return!t.pattern.matchAny(e,n)}}})),on=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=wt();e.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(e,n){let[r,i]=t.pattern.partitionAbsoluteAndRelative(n),a={positive:{all:t.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:t.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:t.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return e=>this._filter(e,a)}_filter(e,n){let r=t.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let i=this._isMatchToPatternsSet(r,n,e.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(r),i}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,t,n){return!(!this._isMatchToPatterns(e,t.positive.all,n)||this._isMatchToPatterns(e,t.negative.relative,n)||this._isMatchToAbsoluteNegative(e,t.negative.absolute,n))}_isMatchToAbsoluteNegative(e,n,r){if(n.length===0)return!1;let i=t.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(i,n,r)}_isMatchToPatterns(e,n,r){if(n.length===0)return!1;let i=t.pattern.matchAny(e,n);return!i&&r?t.pattern.matchAny(e+`/`,n):i}}})),sn=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=wt();e.default=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return t.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}})),cn=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=wt();e.default=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let n=e.path;return this._settings.absolute&&(n=t.path.makeAbsolute(this._settings.cwd,n),n=t.path.unixify(n)),this._settings.markDirectories&&e.dirent.isDirectory()&&(n+=`/`),this._settings.objectMode?Object.assign(Object.assign({},e),{path:n}):n}}})),ln=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=n(`path`),r=an(),i=on(),a=sn(),o=cn();e.default=class{constructor(e){this._settings=e,this.errorFilter=new a.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new o.default(this._settings)}_getRootDirectory(e){return t.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let t=e.base===`.`?``:e.base;return{basePath:t,pathSegmentSeparator:`/`,concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}})),un=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=tn(),n=ln();e.default=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(e){let t=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(t,e,n)).map(e=>n.transform(e))}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}})),dn=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=n(`stream`),r=en(),i=ln();e.default=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(e){let n=this._getRootDirectory(e),r=this._getReaderOptions(e),i=this.api(n,e,r),a=new t.Readable({objectMode:!0,read:()=>{}});return i.once(`error`,e=>a.emit(`error`,e)).on(`data`,e=>a.emit(`data`,r.transform(e))).once(`end`,()=>a.emit(`end`)),a.once(`close`,()=>i.destroy()),a}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}})),fn=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=At(),n=Qt(),r=$t();e.default=class extends r.default{constructor(){super(...arguments),this._walkSync=n.walkSync,this._statSync=t.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){let n=[];for(let r of e){let e=this._getFullEntryPath(r),i=this._getEntry(e,r,t);i===null||!t.entryFilter(i)||n.push(i)}return n}_getEntry(e,t,n){try{let n=this._getStat(e);return this._makeEntry(n,t)}catch(e){if(n.errorFilter(e))return null;throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}})),pn=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=fn(),n=ln();e.default=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(e){let t=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(t,e,n).map(n.transform)}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}})),mn=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;let t=n(`fs`),r=n(`os`),i=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync},e.default=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,t){return e===void 0?t:e}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),t)}}})),hn=e(((e,t)=>{let n=Tt(),r=un(),i=dn(),a=pn(),o=mn(),s=wt();async function c(e,t){u(e);let n=l(e,r.default,t),i=await Promise.all(n);return s.array.flatten(i)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(e,t){u(e);let n=l(e,a.default,t);return s.array.flatten(n)}e.sync=t;function r(e,t){u(e);let n=l(e,i.default,t);return s.stream.merge(n)}e.stream=r;function c(e,t){u(e);let r=[].concat(e),i=new o.default(t);return n.generate(r,i)}e.generateTasks=c;function d(e,t){u(e);let n=new o.default(t);return s.pattern.isDynamicPattern(e,n)}e.isDynamicPattern=d;function f(e){return u(e),s.path.escape(e)}e.escapePath=f;function p(e){return u(e),s.path.convertPathToPattern(e)}e.convertPathToPattern=p,(function(e){function t(e){return u(e),s.path.escapePosixPath(e)}e.escapePath=t;function n(e){return u(e),s.path.convertPosixPathToPattern(e)}e.convertPathToPattern=n})(e.posix||={}),(function(e){function t(e){return u(e),s.path.escapeWindowsPath(e)}e.escapePath=t;function n(e){return u(e),s.path.convertWindowsPathToPattern(e)}e.convertPathToPattern=n})(e.win32||={})})(c||={});function l(e,t,r){let i=[].concat(e),a=new o.default(r),s=n.generate(i,a),c=new t(a);return s.map(c.read,c)}function u(e){if(![].concat(e).every(e=>s.string.isString(e)&&!s.string.isEmpty(e)))throw TypeError(`Patterns must be a string (non empty) or an array of strings`)}t.exports=c})),gn=e((e=>{let{promisify:t}=n(`util`),r=n(`fs`);async function i(e,n,i){if(typeof i!=`string`)throw TypeError(`Expected a string, got ${typeof i}`);try{return(await t(r[e])(i))[n]()}catch(e){if(e.code===`ENOENT`)return!1;throw e}}function a(e,t,n){if(typeof n!=`string`)throw TypeError(`Expected a string, got ${typeof n}`);try{return r[e](n)[t]()}catch(e){if(e.code===`ENOENT`)return!1;throw e}}e.isFile=i.bind(null,`stat`,`isFile`),e.isDirectory=i.bind(null,`stat`,`isDirectory`),e.isSymlink=i.bind(null,`lstat`,`isSymbolicLink`),e.isFileSync=a.bind(null,`statSync`,`isFile`),e.isDirectorySync=a.bind(null,`statSync`,`isDirectory`),e.isSymlinkSync=a.bind(null,`lstatSync`,`isSymbolicLink`)})),_n=e(((e,t)=>{let r=n(`path`),i=gn(),a=e=>e.length>1?`{${e.join(`,`)}}`:e[0],o=(e,t)=>{let n=e[0]===`!`?e.slice(1):e;return r.isAbsolute(n)?n:r.join(t,n)},s=(e,t)=>r.extname(e)?`**/${e}`:`**/${e}.${a(t)}`,c=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map(n=>r.posix.join(e,s(n,t.extensions))):t.files?t.files.map(t=>r.posix.join(e,`**/${t}`)):t.extensions?[r.posix.join(e,`**/*.${a(t.extensions)}`)]:[r.posix.join(e,`**`)]};t.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!=`string`)throw TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let n=await Promise.all([].concat(e).map(async e=>await i.isDirectory(o(e,t.cwd))?c(e,t):e));return[].concat.apply([],n)},t.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!=`string`)throw TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let n=[].concat(e).map(e=>i.isDirectorySync(o(e,t.cwd))?c(e,t):e);return[].concat.apply([],n)}})),vn=e(((e,t)=>{t.exports=e=>{let t=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return t||n?e:e.replace(/\\/g,`/`)}})),yn=e(((e,t)=>{let{promisify:r}=n(`util`),i=n(`fs`),a=n(`path`),o=hn(),c=s(),l=vn(),u=[`**/node_modules/**`,`**/flow-typed/**`,`**/coverage/**`,`**/.git`],d=r(i.readFile),f=e=>t=>t.startsWith(`!`)?`!`+a.posix.join(e,t.slice(1)):a.posix.join(e,t),p=(e,t)=>{let n=l(a.relative(t.cwd,a.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(e=>!e.startsWith(`#`)).map(f(n))},m=e=>{let t=c();for(let n of e)t.add(p(n.content,{cwd:n.cwd,fileName:n.filePath}));return t},h=(e,t)=>{if(e=l(e),a.isAbsolute(t)){if(l(t).startsWith(e))return t;throw Error(`Path ${t} is not in cwd ${e}`)}return a.join(e,t)},g=(e,t)=>n=>e.ignores(l(a.relative(t,h(t,n.path||n)))),_=async(e,t)=>{let n=a.join(t,e);return{cwd:t,filePath:n,content:await d(n,`utf8`)}},v=(e,t)=>{let n=a.join(t,e);return{cwd:t,filePath:n,content:i.readFileSync(n,`utf8`)}},y=({ignore:e=[],cwd:t=l(process.cwd())}={})=>({ignore:e,cwd:t});t.exports=async e=>{e=y(e);let t=await o(`**/.gitignore`,{ignore:u.concat(e.ignore),cwd:e.cwd});return g(m(await Promise.all(t.map(t=>_(t,e.cwd)))),e.cwd)},t.exports.sync=e=>(e=y(e),g(m(o.sync(`**/.gitignore`,{ignore:u.concat(e.ignore),cwd:e.cwd}).map(t=>v(t,e.cwd))),e.cwd))})),bn=e(((e,t)=>{let{Transform:r}=n(`stream`);var i=class extends r{constructor(){super({objectMode:!0})}};t.exports={FilterStream:class extends i{constructor(e){super(),this._filter=e}_transform(e,t,n){this._filter(e)&&this.push(e),n()}},UniqueStream:class extends i{constructor(){super(),this._pushed=new Set}_transform(e,t,n){this._pushed.has(e)||(this.push(e),this._pushed.add(e)),n()}}}})),xn=e(((e,t)=>{let r=n(`fs`),i=Ye(),a=Xe(),o=hn(),s=_n(),c=yn(),{FilterStream:l,UniqueStream:u}=bn(),d=()=>!1,f=e=>e[0]===`!`,p=e=>{if(!e.every(e=>typeof e==`string`))throw TypeError(`Patterns must be a string or an array of strings`)},m=(e={})=>{if(!e.cwd)return;let t;try{t=r.statSync(e.cwd)}catch{return}if(!t.isDirectory())throw Error("The `cwd` option must be a path to a directory")},h=e=>e.stats instanceof r.Stats?e.path:e,g=(e,t)=>{e=i([].concat(e)),p(e),m(t);let n=[];t={ignore:[],expandDirectories:!0,...t};for(let[r,i]of e.entries()){if(f(i))continue;let a=e.slice(r).filter(e=>f(e)).map(e=>e.slice(1)),o={...t,ignore:t.ignore.concat(a)};n.push({pattern:i,options:o})}return n},_=(e,t)=>{let n={};return e.options.cwd&&(n.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?n={...n,files:e.options.expandDirectories}:typeof e.options.expandDirectories==`object`&&(n={...n,...e.options.expandDirectories}),t(e.pattern,n)},v=(e,t)=>e.options.expandDirectories?_(e,t):[e.pattern],y=e=>e&&e.gitignore?c.sync({cwd:e.cwd,ignore:e.ignore}):d,b=e=>t=>{let{options:n}=e;return n.ignore&&Array.isArray(n.ignore)&&n.expandDirectories&&(n.ignore=s.sync(n.ignore)),{pattern:t,options:n}};t.exports=async(e,t)=>{let n=g(e,t),[r,a]=await Promise.all([(async()=>t&&t.gitignore?c({cwd:t.cwd,ignore:t.ignore}):d)(),(async()=>i(...await Promise.all(n.map(async e=>{let t=await v(e,s);return Promise.all(t.map(b(e)))}))))()]);return i(...await Promise.all(a.map(e=>o(e.pattern,e.options)))).filter(e=>!r(h(e)))},t.exports.sync=(e,t)=>{let n=g(e,t),r=[];for(let e of n){let t=v(e,s.sync).map(b(e));r.push(...t)}let a=y(t),c=[];for(let e of r)c=i(c,o.sync(e.pattern,e.options));return c.filter(e=>!a(e))},t.exports.stream=(e,t)=>{let n=g(e,t),r=[];for(let e of n){let t=v(e,s.sync).map(b(e));r.push(...t)}let i=y(t),c=new l(e=>!i(e)),d=new u;return a(r.map(e=>o.stream(e.pattern,e.options))).pipe(c).pipe(d)},t.exports.generateGlobTasks=g,t.exports.hasMagic=(e,t)=>[].concat(e).some(e=>o.isDynamicPattern(e,t)),t.exports.gitignore=c})),Sn=e(((e,t)=>{t.exports=e=>{if(typeof e!=`string`)throw TypeError(`Expected a string, got `+typeof e);return e.charCodeAt(0)===65279?e.slice(1):e}})),Cn=e(((e,t)=>{function n(e){return e==null}function r(e){return typeof e==`object`&&!!e}function i(e){return Array.isArray(e)?e:n(e)?[]:[e]}function a(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n{function n(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=(this.reason||`(unknown reason)`)+(this.mark?` `+this.mark.toString():``),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(e){var t=this.name+`: `;return t+=this.reason||`(unknown reason)`,!e&&this.mark&&(t+=` `+this.mark.toString()),t},t.exports=n})),Tn=e(((e,t)=>{var n=Cn();function r(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}r.prototype.getSnippet=function(e,t){var r,i,a,o,s;if(!this.buffer)return null;for(e||=4,t||=75,r=``,i=this.position;i>0&&`\0\r …\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(--i,this.position-i>t/2-1){r=` ... `,i+=5;break}for(a=``,o=this.position;ot/2-1){a=` ... `,o-=5;break}return s=this.buffer.slice(i,o),n.repeat(` `,e)+r+s+a+` `+n.repeat(` `,e+this.position-i+r.length)+`^`},r.prototype.toString=function(e){var t,n=``;return this.name&&(n+=`in "`+this.name+`" `),n+=`at line `+(this.line+1)+`, column `+(this.column+1),e||(t=this.getSnippet(),t&&(n+=`: `+t)),n},t.exports=r})),J=e(((e,t)=>{var n=wn(),r=[`kind`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`defaultStyle`,`styleAliases`],i=[`scalar`,`sequence`,`mapping`];function a(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function o(e,t){if(t||={},Object.keys(t).forEach(function(t){if(r.indexOf(t)===-1)throw new n(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=a(t.styleAliases||null),i.indexOf(this.kind)===-1)throw new n(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}t.exports=o})),En=e(((e,t)=>{var n=Cn(),r=wn(),i=J();function a(e,t,n){var r=[];return e.include.forEach(function(e){n=a(e,t,n)}),e[t].forEach(function(e){n.forEach(function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)}),n.push(e)}),n.filter(function(e,t){return r.indexOf(t)===-1})}function o(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,n;function r(t){e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t{t.exports=new(J())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}})})),On=e(((e,t)=>{t.exports=new(J())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}})})),kn=e(((e,t)=>{t.exports=new(J())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}})})),An=e(((e,t)=>{t.exports=new(En())({explicit:[Dn(),On(),kn()]})})),jn=e(((e,t)=>{var n=J();function r(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function i(){return null}function a(e){return e===null}t.exports=new n(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:r,construct:i,predicate:a,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`}},defaultStyle:`lowercase`})})),Mn=e(((e,t)=>{var n=J();function r(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function i(e){return e===`true`||e===`True`||e===`TRUE`}function a(e){return Object.prototype.toString.call(e)===`[object Boolean]`}t.exports=new n(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:r,construct:i,predicate:a,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`})})),Nn=e(((e,t)=>{var n=Cn(),r=J();function i(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function a(e){return 48<=e&&e<=55}function o(e){return 48<=e&&e<=57}function s(e){if(e===null)return!1;var t=e.length,n=0,r=!1,s;if(!t)return!1;if(s=e[n],(s===`-`||s===`+`)&&(s=e[++n]),s===`0`){if(n+1===t)return!0;if(s=e[++n],s===`b`){for(n++;n=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0`+e.toString(8):`-0`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}})})),Pn=e(((e,t)=>{var n=Cn(),r=J(),i=RegExp(`^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function a(e){return!(e===null||!i.test(e)||e[e.length-1]===`_`)}function o(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1,r,i=[];return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:t.indexOf(`:`)>=0?(t.split(`:`).forEach(function(e){i.unshift(parseFloat(e,10))}),t=0,r=1,i.forEach(function(e){t+=e*r,r*=60}),n*t):n*parseFloat(t,10)}var s=/^[-+]?[0-9]+e/;function c(e,t){var r;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(n.isNegativeZero(e))return`-0.0`;return r=e.toString(10),s.test(r)?r.replace(`e`,`.e`):r}function l(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||n.isNegativeZero(e))}t.exports=new r(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:a,construct:o,predicate:l,represent:c,defaultStyle:`lowercase`})})),Fn=e(((e,t)=>{t.exports=new(En())({include:[An()],implicit:[jn(),Mn(),Nn(),Pn()]})})),In=e(((e,t)=>{t.exports=new(En())({include:[Fn()]})})),Ln=e(((e,t)=>{var n=J(),r=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),i=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function a(e){return e===null?!1:r.exec(e)!==null||i.exec(e)!==null}function o(e){var t,n,a,o,s,c,l,u=0,d=null,f,p,m;if(t=r.exec(e),t===null&&(t=i.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],a=t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,a,o));if(s=+t[4],c=+t[5],l=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+=`0`;u=+u}return t[9]&&(f=+t[10],p=+(t[11]||0),d=(f*60+p)*6e4,t[9]===`-`&&(d=-d)),m=new Date(Date.UTC(n,a,o,s,c,l,u)),d&&m.setTime(m.getTime()-d),m}function s(e){return e.toISOString()}t.exports=new n(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:a,construct:o,instanceOf:Date,represent:s})})),Rn=e(((e,t)=>{var n=J();function r(e){return e===`<<`||e===null}t.exports=new n(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:r})})),zn=e(((e,t)=>{var r;try{r=n(`buffer`).Buffer}catch{}var i=J(),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function o(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=a;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0}function s(e){var t,n,i=e.replace(/[\r\n=]/g,``),o=i.length,s=a,c=0,l=[];for(t=0;t>16&255),l.push(c>>8&255),l.push(c&255)),c=c<<6|s.indexOf(i.charAt(t));return n=o%4*6,n===0?(l.push(c>>16&255),l.push(c>>8&255),l.push(c&255)):n===18?(l.push(c>>10&255),l.push(c>>2&255)):n===12&&l.push(c>>4&255),r?r.from?r.from(l):new r(l):l}function c(e){var t=``,n=0,r,i,o=e.length,s=a;for(r=0;r>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function l(e){return r&&r.isBuffer(e)}t.exports=new i(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:o,construct:s,predicate:l,represent:c})})),Bn=e(((e,t)=>{var n=J(),r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;function a(e){if(e===null)return!0;var t=[],n,a,o,s,c,l=e;for(n=0,a=l.length;n{var n=J(),r=Object.prototype.toString;function i(e){if(e===null)return!0;var t,n,i,a,o,s=e;for(o=Array(s.length),t=0,n=s.length;t{var n=J(),r=Object.prototype.hasOwnProperty;function i(e){if(e===null)return!0;var t,n=e;for(t in n)if(r.call(n,t)&&n[t]!==null)return!1;return!0}function a(e){return e===null?{}:e}t.exports=new n(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:i,construct:a})})),Un=e(((e,t)=>{t.exports=new(En())({include:[In()],implicit:[Ln(),Rn()],explicit:[zn(),Bn(),Vn(),Hn()]})})),Wn=e(((e,t)=>{var n=J();function r(){return!0}function i(){}function a(){return``}function o(e){return e===void 0}t.exports=new n(`tag:yaml.org,2002:js/undefined`,{kind:`scalar`,resolve:r,construct:i,predicate:o,represent:a})})),Gn=e(((e,t)=>{var n=J();function r(e){if(e===null||e.length===0)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r=``;return!(t[0]===`/`&&(n&&(r=n[1]),r.length>3||t[t.length-r.length-1]!==`/`))}function i(e){var t=e,n=/\/([gim]*)$/.exec(e),r=``;return t[0]===`/`&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)}function a(e){var t=`/`+e.source+`/`;return e.global&&(t+=`g`),e.multiline&&(t+=`m`),e.ignoreCase&&(t+=`i`),t}function o(e){return Object.prototype.toString.call(e)===`[object RegExp]`}t.exports=new n(`tag:yaml.org,2002:js/regexp`,{kind:`scalar`,resolve:r,construct:i,predicate:o,represent:a})})),Kn=e(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.esprima=r():n.esprima=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p=``,n(0)})([function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(1),i=n(3),a=n(8),o=n(15);function s(e,t,n){var o=null,s=function(e,t){n&&n(e,t),o&&o.visit(e,t)},c=typeof n==`function`?s:null,l=!1;if(t){l=typeof t.comment==`boolean`&&t.comment;var u=typeof t.attachComment==`boolean`&&t.attachComment;(l||u)&&(o=new r.CommentHandler,o.attach=u,t.comment=!0,c=s)}var d=!1;t&&typeof t.sourceType==`string`&&(d=t.sourceType===`module`);var f=t&&typeof t.jsx==`boolean`&&t.jsx?new i.JSXParser(e,t,c):new a.Parser(e,t,c),p=d?f.parseModule():f.parseScript();return l&&o&&(p.comments=o.comments),f.config.tokens&&(p.tokens=f.tokens),f.config.tolerant&&(p.errors=f.errorHandler.errors),p}t.parse=s;function c(e,t,n){var r=t||{};return r.sourceType=`module`,s(e,r,n)}t.parseModule=c;function l(e,t,n){var r=t||{};return r.sourceType=`script`,s(e,r,n)}t.parseScript=l;function u(e,t,n){var r=new o.Tokenizer(e,t),i=[];try{for(;;){var a=r.getNextToken();if(!a)break;n&&(a=n(a)),i.push(a)}}catch(e){r.errorHandler.tolerate(e)}return r.errorHandler.tolerant&&(i.errors=r.errors()),i}t.tokenize=u,t.Syntax=n(2).Syntax,t.version=`4.0.1`},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(2);t.CommentHandler=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===r.Syntax.BlockStatement&&e.body.length===0){for(var n=[],i=this.leading.length-1;i>=0;--i){var a=this.leading[i];t.end.offset>=a.start&&(n.unshift(a.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var r=this.trailing[n];r.start>=e.end.offset&&t.unshift(r.comment)}return this.trailing.length=0,t}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var a=i.node.trailingComments[0];a&&a.range[0]>=e.end.offset&&(t=i.node.trailingComments,delete i.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t=[],n;this.stack.length>0;){var r=this.stack[this.stack.length-1];if(r&&r.start>=e.start.offset)n=r.node,this.stack.pop();else break}if(n){for(var i=(n.leadingComments?n.leadingComments.length:0)-1;i>=0;--i){var a=n.leadingComments[i];a.range[1]<=e.start.offset&&(t.unshift(a),n.leadingComments.splice(i,1))}return n.leadingComments&&n.leadingComments.length===0&&delete n.leadingComments,t}for(var i=this.leading.length-1;i>=0;--i){var r=this.leading[i];r.start<=e.start.offset&&(t.unshift(r.comment),this.leading.splice(i,1))}return t},e.prototype.visitNode=function(e,t){if(!(e.type===r.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),i=this.findLeadingComments(t);i.length>0&&(e.leadingComments=i),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n=e.type[0]===`L`?`Line`:`Block`,r={type:n,value:e.value};if(e.range&&(r.range=e.range),e.loc&&(r.loc=e.loc),this.comments.push(r),this.attach){var i={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(i.comment.loc=e.loc),e.type=n,this.leading.push(i),this.trailing.push(i)}},e.prototype.visit=function(e,t){e.type===`LineComment`||e.type===`BlockComment`?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.Syntax={AssignmentExpression:`AssignmentExpression`,AssignmentPattern:`AssignmentPattern`,ArrayExpression:`ArrayExpression`,ArrayPattern:`ArrayPattern`,ArrowFunctionExpression:`ArrowFunctionExpression`,AwaitExpression:`AwaitExpression`,BlockStatement:`BlockStatement`,BinaryExpression:`BinaryExpression`,BreakStatement:`BreakStatement`,CallExpression:`CallExpression`,CatchClause:`CatchClause`,ClassBody:`ClassBody`,ClassDeclaration:`ClassDeclaration`,ClassExpression:`ClassExpression`,ConditionalExpression:`ConditionalExpression`,ContinueStatement:`ContinueStatement`,DoWhileStatement:`DoWhileStatement`,DebuggerStatement:`DebuggerStatement`,EmptyStatement:`EmptyStatement`,ExportAllDeclaration:`ExportAllDeclaration`,ExportDefaultDeclaration:`ExportDefaultDeclaration`,ExportNamedDeclaration:`ExportNamedDeclaration`,ExportSpecifier:`ExportSpecifier`,ExpressionStatement:`ExpressionStatement`,ForStatement:`ForStatement`,ForOfStatement:`ForOfStatement`,ForInStatement:`ForInStatement`,FunctionDeclaration:`FunctionDeclaration`,FunctionExpression:`FunctionExpression`,Identifier:`Identifier`,IfStatement:`IfStatement`,ImportDeclaration:`ImportDeclaration`,ImportDefaultSpecifier:`ImportDefaultSpecifier`,ImportNamespaceSpecifier:`ImportNamespaceSpecifier`,ImportSpecifier:`ImportSpecifier`,Literal:`Literal`,LabeledStatement:`LabeledStatement`,LogicalExpression:`LogicalExpression`,MemberExpression:`MemberExpression`,MetaProperty:`MetaProperty`,MethodDefinition:`MethodDefinition`,NewExpression:`NewExpression`,ObjectExpression:`ObjectExpression`,ObjectPattern:`ObjectPattern`,Program:`Program`,Property:`Property`,RestElement:`RestElement`,ReturnStatement:`ReturnStatement`,SequenceExpression:`SequenceExpression`,SpreadElement:`SpreadElement`,Super:`Super`,SwitchCase:`SwitchCase`,SwitchStatement:`SwitchStatement`,TaggedTemplateExpression:`TaggedTemplateExpression`,TemplateElement:`TemplateElement`,TemplateLiteral:`TemplateLiteral`,ThisExpression:`ThisExpression`,ThrowStatement:`ThrowStatement`,TryStatement:`TryStatement`,UnaryExpression:`UnaryExpression`,UpdateExpression:`UpdateExpression`,VariableDeclaration:`VariableDeclaration`,VariableDeclarator:`VariableDeclarator`,WhileStatement:`WhileStatement`,WithStatement:`WithStatement`,YieldExpression:`YieldExpression`}},function(e,t,n){var r=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(t,`__esModule`,{value:!0});var i=n(4),a=n(5),o=n(6),s=n(7),c=n(8),l=n(13),u=n(14);l.TokenName[100]=`JSXIdentifier`,l.TokenName[101]=`JSXText`;function d(e){var t;switch(e.type){case o.JSXSyntax.JSXIdentifier:t=e.name;break;case o.JSXSyntax.JSXNamespacedName:var n=e;t=d(n.namespace)+`:`+d(n.name);break;case o.JSXSyntax.JSXMemberExpression:var r=e;t=d(r.object)+`.`+d(r.property);break;default:break}return t}t.JSXParser=function(e){r(t,e);function t(t,n,r){return e.call(this,t,n,r)||this}return t.prototype.parsePrimaryExpression=function(){return this.match(`<`)?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX(`}`),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t=`&`,n=!0,r=!1,a=!1,o=!1;!this.scanner.eof()&&n&&!r;){var s=this.scanner.source[this.scanner.index];if(s===e)break;if(r=s===`;`,t+=s,++this.scanner.index,!r)switch(t.length){case 2:a=s===`#`;break;case 3:a&&(o=s===`x`,n=o||i.Character.isDecimalDigit(s.charCodeAt(0)),a&&=!o);break;default:n&&=!(a&&!i.Character.isDecimalDigit(s.charCodeAt(0))),n&&=!(o&&!i.Character.isHexDigit(s.charCodeAt(0)));break}}if(n&&r&&t.length>2){var c=t.substr(1,t.length-2);a&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):o&&c.length>2?t=String.fromCharCode(parseInt(`0`+c.substr(1),16)):!a&&!o&&u.XHTMLEntities[c]&&(t=u.XHTMLEntities[c])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(e===60||e===62||e===47||e===58||e===61||e===123||e===125){var t=this.scanner.source[this.scanner.index++];return{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(e===34||e===39){for(var n=this.scanner.index,r=this.scanner.source[this.scanner.index++],a=``;!this.scanner.eof();){var o=this.scanner.source[this.scanner.index++];if(o===r)break;o===`&`?a+=this.scanXHTMLEntity(r):a+=o}return{type:8,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(e===46){var s=this.scanner.source.charCodeAt(this.scanner.index+1),c=this.scanner.source.charCodeAt(this.scanner.index+2),t=s===46&&c===46?`...`:`.`,n=this.scanner.index;return this.scanner.index+=t.length,{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(e===96)return{type:10,value:``,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(e)&&e!==92){var n=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var o=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(o)&&o!==92)++this.scanner.index;else if(o===45)++this.scanner.index;else break}return{type:100,value:this.scanner.source.slice(n,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t=``;!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if(n===`{`||n===`<`)break;++this.scanner.index,t+=n,i.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,n===`\r`&&this.scanner.source[this.scanner.index]===` `&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var r={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(r)),r},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();(t.type!==7||t.value!==e)&&this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return t.type===7&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return t.type!==100&&this.throwUnexpectedToken(t),this.finalize(e,new a.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(`:`)){var n=t;this.expectJSX(`:`);var r=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(n,r))}else if(this.matchJSX(`.`))for(;this.matchJSX(`.`);){var i=t;this.expectJSX(`.`);var o=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(i,o))}return t},t.prototype.parseJSXAttributeName=function(){var e=this.createJSXNode(),t,n=this.parseJSXIdentifier();if(this.matchJSX(`:`)){var r=n;this.expectJSX(`:`);var i=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(r,i))}else t=n;return t},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();t.type!==8&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new s.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX(`{`),this.finishJSX(),this.match(`}`)&&this.tolerateError(`JSX attributes must only be assigned a non-empty expression`);var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX(`{`)?this.parseJSXExpressionAttribute():this.matchJSX(`<`)?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX(`=`)&&(this.expectJSX(`=`),n=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX(`{`),this.expectJSX(`...`),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX(`/`)&&!this.matchJSX(`>`);){var t=this.matchJSX(`{`)?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX(`<`);var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),r=this.matchJSX(`/`);return r&&this.expectJSX(`/`),this.expectJSX(`>`),this.finalize(e,new a.JSXOpeningElement(t,r,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX(`<`),this.matchJSX(`/`)){this.expectJSX(`/`);var t=this.parseJSXElementName();return this.expectJSX(`>`),this.finalize(e,new a.JSXClosingElement(t))}var n=this.parseJSXElementName(),r=this.parseJSXAttributes(),i=this.matchJSX(`/`);return i&&this.expectJSX(`/`),this.expectJSX(`>`),this.finalize(e,new a.JSXOpeningElement(n,i,r))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new a.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e=this.createJSXNode();this.expectJSX(`{`);var t;return this.matchJSX(`}`)?(t=this.parseJSXEmptyExpression(),this.expectJSX(`}`)):(this.finishJSX(),t=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start0){var s=this.finalize(e.node,new a.JSXElement(e.opening,e.children,e.closing));e=t[t.length-1],e.children.push(s),t.pop()}else break}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],r=null;if(!t.selfClosing){var i=this.parseComplexJSXElement({node:e,opening:t,closing:r,children:n});n=i.children,r=i.closing}return this.finalize(e,new a.JSXElement(t,n,r))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match(`<`)},t}(c.Parser)},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return e===10||e===13||e===8232||e===8233},isIdentifierStart:function(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e===92||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===92||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(6);t.JSXClosingElement=function(){function e(e){this.type=r.JSXSyntax.JSXClosingElement,this.name=e}return e}(),t.JSXElement=function(){function e(e,t,n){this.type=r.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n}return e}(),t.JSXEmptyExpression=function(){function e(){this.type=r.JSXSyntax.JSXEmptyExpression}return e}(),t.JSXExpressionContainer=function(){function e(e){this.type=r.JSXSyntax.JSXExpressionContainer,this.expression=e}return e}(),t.JSXIdentifier=function(){function e(e){this.type=r.JSXSyntax.JSXIdentifier,this.name=e}return e}(),t.JSXMemberExpression=function(){function e(e,t){this.type=r.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t}return e}(),t.JSXAttribute=function(){function e(e,t){this.type=r.JSXSyntax.JSXAttribute,this.name=e,this.value=t}return e}(),t.JSXNamespacedName=function(){function e(e,t){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t}return e}(),t.JSXOpeningElement=function(){function e(e,t,n){this.type=r.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n}return e}(),t.JSXSpreadAttribute=function(){function e(e){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=e}return e}(),t.JSXText=function(){function e(e,t){this.type=r.JSXSyntax.JSXText,this.value=e,this.raw=t}return e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.JSXSyntax={JSXAttribute:`JSXAttribute`,JSXClosingElement:`JSXClosingElement`,JSXElement:`JSXElement`,JSXEmptyExpression:`JSXEmptyExpression`,JSXExpressionContainer:`JSXExpressionContainer`,JSXIdentifier:`JSXIdentifier`,JSXMemberExpression:`JSXMemberExpression`,JSXNamespacedName:`JSXNamespacedName`,JSXOpeningElement:`JSXOpeningElement`,JSXSpreadAttribute:`JSXSpreadAttribute`,JSXText:`JSXText`}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(2);t.ArrayExpression=function(){function e(e){this.type=r.Syntax.ArrayExpression,this.elements=e}return e}(),t.ArrayPattern=function(){function e(e){this.type=r.Syntax.ArrayPattern,this.elements=e}return e}(),t.ArrowFunctionExpression=function(){function e(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1}return e}(),t.AssignmentExpression=function(){function e(e,t,n){this.type=r.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n}return e}(),t.AssignmentPattern=function(){function e(e,t){this.type=r.Syntax.AssignmentPattern,this.left=e,this.right=t}return e}(),t.AsyncArrowFunctionExpression=function(){function e(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0}return e}(),t.AsyncFunctionDeclaration=function(){function e(e,t,n){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0}return e}(),t.AsyncFunctionExpression=function(){function e(e,t,n){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0}return e}(),t.AwaitExpression=function(){function e(e){this.type=r.Syntax.AwaitExpression,this.argument=e}return e}(),t.BinaryExpression=function(){function e(e,t,n){var i=e===`||`||e===`&&`;this.type=i?r.Syntax.LogicalExpression:r.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n}return e}(),t.BlockStatement=function(){function e(e){this.type=r.Syntax.BlockStatement,this.body=e}return e}(),t.BreakStatement=function(){function e(e){this.type=r.Syntax.BreakStatement,this.label=e}return e}(),t.CallExpression=function(){function e(e,t){this.type=r.Syntax.CallExpression,this.callee=e,this.arguments=t}return e}(),t.CatchClause=function(){function e(e,t){this.type=r.Syntax.CatchClause,this.param=e,this.body=t}return e}(),t.ClassBody=function(){function e(e){this.type=r.Syntax.ClassBody,this.body=e}return e}(),t.ClassDeclaration=function(){function e(e,t,n){this.type=r.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n}return e}(),t.ClassExpression=function(){function e(e,t,n){this.type=r.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n}return e}(),t.ComputedMemberExpression=function(){function e(e,t){this.type=r.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t}return e}(),t.ConditionalExpression=function(){function e(e,t,n){this.type=r.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n}return e}(),t.ContinueStatement=function(){function e(e){this.type=r.Syntax.ContinueStatement,this.label=e}return e}(),t.DebuggerStatement=function(){function e(){this.type=r.Syntax.DebuggerStatement}return e}(),t.Directive=function(){function e(e,t){this.type=r.Syntax.ExpressionStatement,this.expression=e,this.directive=t}return e}(),t.DoWhileStatement=function(){function e(e,t){this.type=r.Syntax.DoWhileStatement,this.body=e,this.test=t}return e}(),t.EmptyStatement=function(){function e(){this.type=r.Syntax.EmptyStatement}return e}(),t.ExportAllDeclaration=function(){function e(e){this.type=r.Syntax.ExportAllDeclaration,this.source=e}return e}(),t.ExportDefaultDeclaration=function(){function e(e){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=e}return e}(),t.ExportNamedDeclaration=function(){function e(e,t,n){this.type=r.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n}return e}(),t.ExportSpecifier=function(){function e(e,t){this.type=r.Syntax.ExportSpecifier,this.exported=t,this.local=e}return e}(),t.ExpressionStatement=function(){function e(e){this.type=r.Syntax.ExpressionStatement,this.expression=e}return e}(),t.ForInStatement=function(){function e(e,t,n){this.type=r.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1}return e}(),t.ForOfStatement=function(){function e(e,t,n){this.type=r.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n}return e}(),t.ForStatement=function(){function e(e,t,n,i){this.type=r.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=i}return e}(),t.FunctionDeclaration=function(){function e(e,t,n,i){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=i,this.expression=!1,this.async=!1}return e}(),t.FunctionExpression=function(){function e(e,t,n,i){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=i,this.expression=!1,this.async=!1}return e}(),t.Identifier=function(){function e(e){this.type=r.Syntax.Identifier,this.name=e}return e}(),t.IfStatement=function(){function e(e,t,n){this.type=r.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n}return e}(),t.ImportDeclaration=function(){function e(e,t){this.type=r.Syntax.ImportDeclaration,this.specifiers=e,this.source=t}return e}(),t.ImportDefaultSpecifier=function(){function e(e){this.type=r.Syntax.ImportDefaultSpecifier,this.local=e}return e}(),t.ImportNamespaceSpecifier=function(){function e(e){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=e}return e}(),t.ImportSpecifier=function(){function e(e,t){this.type=r.Syntax.ImportSpecifier,this.local=e,this.imported=t}return e}(),t.LabeledStatement=function(){function e(e,t){this.type=r.Syntax.LabeledStatement,this.label=e,this.body=t}return e}(),t.Literal=function(){function e(e,t){this.type=r.Syntax.Literal,this.value=e,this.raw=t}return e}(),t.MetaProperty=function(){function e(e,t){this.type=r.Syntax.MetaProperty,this.meta=e,this.property=t}return e}(),t.MethodDefinition=function(){function e(e,t,n,i,a){this.type=r.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=i,this.static=a}return e}(),t.Module=function(){function e(e){this.type=r.Syntax.Program,this.body=e,this.sourceType=`module`}return e}(),t.NewExpression=function(){function e(e,t){this.type=r.Syntax.NewExpression,this.callee=e,this.arguments=t}return e}(),t.ObjectExpression=function(){function e(e){this.type=r.Syntax.ObjectExpression,this.properties=e}return e}(),t.ObjectPattern=function(){function e(e){this.type=r.Syntax.ObjectPattern,this.properties=e}return e}(),t.Property=function(){function e(e,t,n,i,a,o){this.type=r.Syntax.Property,this.key=t,this.computed=n,this.value=i,this.kind=e,this.method=a,this.shorthand=o}return e}(),t.RegexLiteral=function(){function e(e,t,n,i){this.type=r.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:i}}return e}(),t.RestElement=function(){function e(e){this.type=r.Syntax.RestElement,this.argument=e}return e}(),t.ReturnStatement=function(){function e(e){this.type=r.Syntax.ReturnStatement,this.argument=e}return e}(),t.Script=function(){function e(e){this.type=r.Syntax.Program,this.body=e,this.sourceType=`script`}return e}(),t.SequenceExpression=function(){function e(e){this.type=r.Syntax.SequenceExpression,this.expressions=e}return e}(),t.SpreadElement=function(){function e(e){this.type=r.Syntax.SpreadElement,this.argument=e}return e}(),t.StaticMemberExpression=function(){function e(e,t){this.type=r.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t}return e}(),t.Super=function(){function e(){this.type=r.Syntax.Super}return e}(),t.SwitchCase=function(){function e(e,t){this.type=r.Syntax.SwitchCase,this.test=e,this.consequent=t}return e}(),t.SwitchStatement=function(){function e(e,t){this.type=r.Syntax.SwitchStatement,this.discriminant=e,this.cases=t}return e}(),t.TaggedTemplateExpression=function(){function e(e,t){this.type=r.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t}return e}(),t.TemplateElement=function(){function e(e,t){this.type=r.Syntax.TemplateElement,this.value=e,this.tail=t}return e}(),t.TemplateLiteral=function(){function e(e,t){this.type=r.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t}return e}(),t.ThisExpression=function(){function e(){this.type=r.Syntax.ThisExpression}return e}(),t.ThrowStatement=function(){function e(e){this.type=r.Syntax.ThrowStatement,this.argument=e}return e}(),t.TryStatement=function(){function e(e,t,n){this.type=r.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n}return e}(),t.UnaryExpression=function(){function e(e,t){this.type=r.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0}return e}(),t.UpdateExpression=function(){function e(e,t,n){this.type=r.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n}return e}(),t.VariableDeclaration=function(){function e(e,t){this.type=r.Syntax.VariableDeclaration,this.declarations=e,this.kind=t}return e}(),t.VariableDeclarator=function(){function e(e,t){this.type=r.Syntax.VariableDeclarator,this.id=e,this.init=t}return e}(),t.WhileStatement=function(){function e(e,t){this.type=r.Syntax.WhileStatement,this.test=e,this.body=t}return e}(),t.WithStatement=function(){function e(e,t){this.type=r.Syntax.WithStatement,this.object=e,this.body=t}return e}(),t.YieldExpression=function(){function e(e,t){this.type=r.Syntax.YieldExpression,this.argument=e,this.delegate=t}return e}()},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(9),i=n(10),a=n(11),o=n(7),s=n(12),c=n(2),l=n(13),u=`ArrowParameterPlaceHolder`;t.Parser=function(){function e(e,t,n){t===void 0&&(t={}),this.config={range:typeof t.range==`boolean`&&t.range,loc:typeof t.loc==`boolean`&&t.loc,source:null,tokens:typeof t.tokens==`boolean`&&t.tokens,comment:typeof t.comment==`boolean`&&t.comment,tolerant:typeof t.tolerant==`boolean`&&t.tolerant},this.config.loc&&t.source&&t.source!==null&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new s.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:``,lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){var t=Array.prototype.slice.call(arguments,1),n=e.replace(/%(\d)/g,function(e,n){return r.assert(n0&&this.delegate)for(var t=0;t>=`||e===`>>>=`||e===`&=`||e===`^=`||e===`|=`},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=r,i},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,i},e.prototype.consumeSemicolon=function(){this.match(`;`)?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match(`}`)&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e=this.createNode(),t,n,r;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value===`await`&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(e,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,a.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),r=this.getTokenRaw(n),t=this.finalize(e,new o.Literal(n.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),r=this.getTokenRaw(n),t=this.finalize(e,new o.Literal(n.value===`true`,r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),r=this.getTokenRaw(n),t=this.finalize(e,new o.Literal(null,r));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case`(`:this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case`[`:t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case`{`:t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case`/`:case`/=`:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,n=this.nextRegexToken(),r=this.getTokenRaw(n),t=this.finalize(e,new o.RegexLiteral(n.regex,r,n.pattern,n.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword(`yield`)?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword(`let`)?t=this.finalize(e,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword(`function`)?t=this.parseFunctionExpression():this.matchKeyword(`this`)?(this.nextToken(),t=this.finalize(e,new o.ThisExpression)):t=this.matchKeyword(`class`)?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect(`...`);var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new o.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect(`[`);!this.match(`]`);)if(this.match(`,`))this.nextToken(),t.push(null);else if(this.match(`...`)){var n=this.parseSpreadElement();this.match(`]`)||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(`,`)),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match(`]`)||this.expect(`,`);return this.expect(`]`),this.finalize(e,new o.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var r=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,r},e.prototype.parsePropertyMethodFunction=function(){var e=!1,t=this.createNode(),n=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(t,new o.FunctionExpression(null,r.params,i,e))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new o.AsyncFunctionExpression(null,r.params,i))},e.prototype.parseObjectPropertyKey=function(){var e=this.createNode(),t=this.nextToken(),n;switch(t.type){case 8:case 6:this.context.strict&&t.octal&&this.tolerateUnexpectedToken(t,a.Messages.StrictOctalLiteral);var r=this.getTokenRaw(t);n=this.finalize(e,new o.Literal(t.value,r));break;case 3:case 1:case 5:case 4:n=this.finalize(e,new o.Identifier(t.value));break;case 7:t.value===`[`?(n=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect(`]`)):n=this.throwUnexpectedToken(t);break;default:n=this.throwUnexpectedToken(t)}return n},e.prototype.isPropertyKey=function(e,t){return e.type===c.Syntax.Identifier&&e.name===t||e.type===c.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t=this.createNode(),n=this.lookahead,r,i=null,s=null,c=!1,l=!1,u=!1,d=!1;if(n.type===3){var f=n.value;this.nextToken(),c=this.match(`[`),d=!this.hasLineTerminator&&f===`async`&&!this.match(`:`)&&!this.match(`(`)&&!this.match(`*`)&&!this.match(`,`),i=d?this.parseObjectPropertyKey():this.finalize(t,new o.Identifier(f))}else this.match(`*`)?this.nextToken():(c=this.match(`[`),i=this.parseObjectPropertyKey());var p=this.qualifiedPropertyName(this.lookahead);if(n.type===3&&!d&&n.value===`get`&&p)r=`get`,c=this.match(`[`),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod();else if(n.type===3&&!d&&n.value===`set`&&p)r=`set`,c=this.match(`[`),i=this.parseObjectPropertyKey(),s=this.parseSetterMethod();else if(n.type===7&&n.value===`*`&&p)r=`init`,c=this.match(`[`),i=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),l=!0;else if(i||this.throwUnexpectedToken(this.lookahead),r=`init`,this.match(`:`)&&!d)!c&&this.isPropertyKey(i,`__proto__`)&&(e.value&&this.tolerateError(a.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),s=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match(`(`))s=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0;else if(n.type===3){var f=this.finalize(t,new o.Identifier(n.value));if(this.match(`=`)){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),u=!0;var m=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(t,new o.AssignmentPattern(f,m))}else u=!0,s=f}else this.throwUnexpectedToken(this.nextToken());return this.finalize(t,new o.Property(r,i,c,s,l,u))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect(`{`);for(var t=[],n={value:!1};!this.match(`}`);)t.push(this.parseObjectProperty(n)),this.match(`}`)||this.expectCommaSeparator();return this.expect(`}`),this.finalize(e,new o.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){r.assert(this.lookahead.head,`Template literal must start with a template head`);var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new o.TemplateElement({raw:n,cooked:i},t.tail))},e.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],r=this.parseTemplateHead();for(n.push(r);!r.tail;)t.push(this.parseExpression()),r=this.parseTemplateElement(),n.push(r);return this.finalize(e,new o.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case c.Syntax.Identifier:case c.Syntax.MemberExpression:case c.Syntax.RestElement:case c.Syntax.AssignmentPattern:break;case c.Syntax.SpreadElement:e.type=c.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case c.Syntax.ArrayExpression:e.type=c.Syntax.ArrayPattern;for(var t=0;t`)||this.expect(`=>`),e={type:u,params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match(`...`))e=this.parseRestElement(n),this.expect(`)`),this.match(`=>`)||this.expect(`=>`),e={type:u,params:[e],async:!1};else{var r=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(`,`)){var i=[];for(this.context.isAssignmentTarget=!1,i.push(e);this.lookahead.type!==2&&this.match(`,`);){if(this.nextToken(),this.match(`)`)){this.nextToken();for(var a=0;a`)||this.expect(`=>`),this.context.isBindingElement=!1;for(var a=0;a`)&&(e.type===c.Syntax.Identifier&&e.name===`yield`&&(r=!0,e={type:u,params:[e],async:!1}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===c.Syntax.SequenceExpression)for(var a=0;a`)){for(var c=0;c0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[e,this.lookahead],a=t,s=this.isolateCoverGrammar(this.parseExponentiationExpression),c=[a,n.value,s],l=[r];r=this.binaryPrecedence(this.lookahead),!(r<=0);){for(;c.length>2&&r<=l[l.length-1];){s=c.pop();var u=c.pop();l.pop(),a=c.pop(),i.pop();var d=this.startNode(i[i.length-1]);c.push(this.finalize(d,new o.BinaryExpression(u,a,s)))}c.push(this.nextToken().value),l.push(r),i.push(this.lookahead),c.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var f=c.length-1;t=c[f];for(var p=i.pop();f>1;){var m=i.pop(),h=p&&p.lineStart,d=this.startNode(m,h),u=c[f-1];t=this.finalize(d,new o.BinaryExpression(u,c[f-2],t)),f-=2,p=m}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match(`?`)){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(`:`);var i=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.ConditionalExpression(t,r,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case c.Syntax.Identifier:this.validateParam(e,t,t.name);break;case c.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case c.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case c.Syntax.ArrayPattern:for(var n=0;n`)){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=e.async,s=this.reinterpretAsCoverFormalsList(e);if(s){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var l=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=s.simple;var f=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=i;var m=this.startNode(t);this.expect(`=>`);var h=void 0;if(this.match(`{`)){var g=this.context.allowIn;this.context.allowIn=!0,h=this.parseFunctionSourceElements(),this.context.allowIn=g}else h=this.isolateCoverGrammar(this.parseAssignmentExpression);var _=h.type!==c.Syntax.BlockStatement;this.context.strict&&s.firstRestricted&&this.throwUnexpectedToken(s.firstRestricted,s.message),this.context.strict&&s.stricted&&this.tolerateUnexpectedToken(s.stricted,s.message),e=i?this.finalize(m,new o.AsyncArrowFunctionExpression(s.params,h,_)):this.finalize(m,new o.ArrowFunctionExpression(s.params,h,_)),this.context.strict=l,this.context.allowStrictDirective=d,this.context.allowYield=f,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(a.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===c.Syntax.Identifier){var v=e;this.scanner.isRestrictedWord(v.name)&&this.tolerateUnexpectedToken(n,a.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(v.name)&&this.tolerateUnexpectedToken(n,a.Messages.StrictReservedWord)}this.match(`=`)?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),n=this.nextToken();var y=n.value,b=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.AssignmentExpression(y,e,b)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(`,`)){var n=[];for(n.push(t);this.lookahead.type!==2&&this.match(`,`);)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new o.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case`export`:this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,a.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case`import`:this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,a.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case`const`:e=this.parseLexicalDeclaration({inFor:!1});break;case`function`:e=this.parseFunctionDeclaration();break;case`class`:e=this.parseClassDeclaration();break;case`let`:e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement();break}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect(`{`);for(var t=[];!this.match(`}`);)t.push(this.parseStatementListItem());return this.expect(`}`),this.finalize(e,new o.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),r=this.parsePattern([],e);this.context.strict&&r.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(a.Messages.StrictVarName);var i=null;return e===`const`?!this.matchKeyword(`in`)&&!this.matchContextualKeyword(`of`)&&(this.match(`=`)?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(a.Messages.DeclarationMissingInitializer,`const`)):(!t.inFor&&r.type!==c.Syntax.Identifier||this.match(`=`))&&(this.expect(`=`),i=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new o.VariableDeclarator(r,i))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(`,`);)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),t.type===3||t.type===7&&t.value===`[`||t.type===7&&t.value===`{`||t.type===4&&t.value===`let`||t.type===4&&t.value===`yield`},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;r.assert(n===`let`||n===`const`,`Lexical declaration must be either let or const`);var i=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(i,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect(`...`);var r=this.parsePattern(e,t);return this.finalize(n,new o.RestElement(r))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect(`[`);for(var r=[];!this.match(`]`);)if(this.match(`,`))this.nextToken(),r.push(null);else{if(this.match(`...`)){r.push(this.parseBindingRestElement(e,t));break}else r.push(this.parsePatternWithDefault(e,t));this.match(`]`)||this.expect(`,`)}return this.expect(`]`),this.finalize(n,new o.ArrayPattern(r))},e.prototype.parsePropertyPattern=function(e,t){var n=this.createNode(),r=!1,i=!1,a=!1,s,c;if(this.lookahead.type===3){var l=this.lookahead;s=this.parseVariableIdentifier();var u=this.finalize(n,new o.Identifier(l.value));if(this.match(`=`)){e.push(l),i=!0,this.nextToken();var d=this.parseAssignmentExpression();c=this.finalize(this.startNode(l),new o.AssignmentPattern(u,d))}else this.match(`:`)?(this.expect(`:`),c=this.parsePatternWithDefault(e,t)):(e.push(l),i=!0,c=u)}else r=this.match(`[`),s=this.parseObjectPropertyKey(),this.expect(`:`),c=this.parsePatternWithDefault(e,t);return this.finalize(n,new o.Property(`init`,s,r,c,a,i))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),r=[];for(this.expect(`{`);!this.match(`}`);)r.push(this.parsePropertyPattern(e,t)),this.match(`}`)||this.expect(`,`);return this.expect(`}`),this.finalize(n,new o.ObjectPattern(r))},e.prototype.parsePattern=function(e,t){var n;return this.match(`[`)?n=this.parseArrayPattern(e,t):this.match(`{`)?n=this.parseObjectPattern(e,t):(this.matchKeyword(`let`)&&(t===`const`||t===`let`)&&this.tolerateUnexpectedToken(this.lookahead,a.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,r=this.parsePattern(e,t);if(this.match(`=`)){this.nextToken();var i=this.context.allowYield;this.context.allowYield=!0;var a=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=i,r=this.finalize(this.startNode(n),new o.AssignmentPattern(r,a))}return r},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return n.type===4&&n.value===`yield`?this.context.strict?this.tolerateUnexpectedToken(n,a.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):n.type===3?(this.context.isModule||this.context.await)&&n.type===3&&n.value===`await`&&this.tolerateUnexpectedToken(n):this.context.strict&&n.type===4&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,a.Messages.StrictReservedWord):(this.context.strict||n.value!==`let`||e!==`var`)&&this.throwUnexpectedToken(n),this.finalize(t,new o.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],`var`);this.context.strict&&n.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(a.Messages.StrictVarName);var r=null;return this.match(`=`)?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type!==c.Syntax.Identifier&&!e.inFor&&this.expect(`=`),this.finalize(t,new o.VariableDeclarator(n,r))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(`,`);)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword(`var`);var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(t,`var`))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(`;`),this.finalize(e,new o.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword(`function`)&&this.tolerateError(a.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e=this.createNode(),t,n=null;this.expectKeyword(`if`),this.expect(`(`);var r=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(`)`),t=this.parseIfClause(),this.matchKeyword(`else`)&&(this.nextToken(),n=this.parseIfClause())),this.finalize(e,new o.IfStatement(r,t,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword(`do`);var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword(`while`),this.expect(`(`);var r=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(`)`),this.match(`;`)&&this.nextToken()),this.finalize(e,new o.DoWhileStatement(n,r))},e.prototype.parseWhileStatement=function(){var e=this.createNode(),t;this.expectKeyword(`while`),this.expect(`(`);var n=this.parseExpression();if(!this.match(`)`)&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(`)`);var r=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=r}return this.finalize(e,new o.WhileStatement(n,t))},e.prototype.parseForStatement=function(){var e=null,t=null,n=null,r=!0,i,s,l=this.createNode();if(this.expectKeyword(`for`),this.expect(`(`),this.match(`;`))this.nextToken();else if(this.matchKeyword(`var`)){e=this.createNode(),this.nextToken();var u=this.context.allowIn;this.context.allowIn=!1;var d=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=u,d.length===1&&this.matchKeyword(`in`)){var f=d[0];f.init&&(f.id.type===c.Syntax.ArrayPattern||f.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(a.Messages.ForInOfLoopInitializer,`for-in`),e=this.finalize(e,new o.VariableDeclaration(d,`var`)),this.nextToken(),i=e,s=this.parseExpression(),e=null}else d.length===1&&d[0].init===null&&this.matchContextualKeyword(`of`)?(e=this.finalize(e,new o.VariableDeclaration(d,`var`)),this.nextToken(),i=e,s=this.parseAssignmentExpression(),e=null,r=!1):(e=this.finalize(e,new o.VariableDeclaration(d,`var`)),this.expect(`;`))}else if(this.matchKeyword(`const`)||this.matchKeyword(`let`)){e=this.createNode();var p=this.nextToken().value;if(!this.context.strict&&this.lookahead.value===`in`)e=this.finalize(e,new o.Identifier(p)),this.nextToken(),i=e,s=this.parseExpression(),e=null;else{var u=this.context.allowIn;this.context.allowIn=!1;var d=this.parseBindingList(p,{inFor:!0});this.context.allowIn=u,d.length===1&&d[0].init===null&&this.matchKeyword(`in`)?(e=this.finalize(e,new o.VariableDeclaration(d,p)),this.nextToken(),i=e,s=this.parseExpression(),e=null):d.length===1&&d[0].init===null&&this.matchContextualKeyword(`of`)?(e=this.finalize(e,new o.VariableDeclaration(d,p)),this.nextToken(),i=e,s=this.parseAssignmentExpression(),e=null,r=!1):(this.consumeSemicolon(),e=this.finalize(e,new o.VariableDeclaration(d,p)))}}else{var m=this.lookahead,u=this.context.allowIn;if(this.context.allowIn=!1,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=u,this.matchKeyword(`in`))(!this.context.isAssignmentTarget||e.type===c.Syntax.AssignmentExpression)&&this.tolerateError(a.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(e),i=e,s=this.parseExpression(),e=null;else if(this.matchContextualKeyword(`of`))(!this.context.isAssignmentTarget||e.type===c.Syntax.AssignmentExpression)&&this.tolerateError(a.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(e),i=e,s=this.parseAssignmentExpression(),e=null,r=!1;else{if(this.match(`,`)){for(var h=[e];this.match(`,`);)this.nextToken(),h.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(m),new o.SequenceExpression(h))}this.expect(`;`)}}i===void 0&&(this.match(`;`)||(t=this.parseExpression()),this.expect(`;`),this.match(`)`)||(n=this.parseExpression()));var g;if(!this.match(`)`)&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),g=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(`)`);var _=this.context.inIteration;this.context.inIteration=!0,g=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=_}return i===void 0?this.finalize(l,new o.ForStatement(e,t,n,g)):r?this.finalize(l,new o.ForInStatement(i,s,g)):this.finalize(l,new o.ForOfStatement(i,s,g))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword(`continue`);var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var r=`$`+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(a.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&this.throwError(a.Messages.IllegalContinue),this.finalize(e,new o.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword(`break`);var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),r=`$`+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(a.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(a.Messages.IllegalBreak),this.finalize(e,new o.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(a.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword(`return`);var t=!this.match(`;`)&&!this.match(`}`)&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(e,new o.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(a.Messages.StrictModeWith);var e=this.createNode(),t;this.expectKeyword(`with`),this.expect(`(`);var n=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(`)`),t=this.parseStatement()),this.finalize(e,new o.WithStatement(n,t))},e.prototype.parseSwitchCase=function(){var e=this.createNode(),t;this.matchKeyword(`default`)?(this.nextToken(),t=null):(this.expectKeyword(`case`),t=this.parseExpression()),this.expect(`:`);for(var n=[];!(this.match(`}`)||this.matchKeyword(`default`)||this.matchKeyword(`case`));)n.push(this.parseStatementListItem());return this.finalize(e,new o.SwitchCase(t,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword(`switch`),this.expect(`(`);var t=this.parseExpression();this.expect(`)`);var n=this.context.inSwitch;this.context.inSwitch=!0;var r=[],i=!1;for(this.expect(`{`);!this.match(`}`);){var s=this.parseSwitchCase();s.test===null&&(i&&this.throwError(a.Messages.MultipleDefaultsInSwitch),i=!0),r.push(s)}return this.expect(`}`),this.context.inSwitch=n,this.finalize(e,new o.SwitchStatement(t,r))},e.prototype.parseLabelledStatement=function(){var e=this.createNode(),t=this.parseExpression(),n;if(t.type===c.Syntax.Identifier&&this.match(`:`)){this.nextToken();var r=t,i=`$`+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)&&this.throwError(a.Messages.Redeclaration,`Label`,r.name),this.context.labelSet[i]=!0;var s=void 0;if(this.matchKeyword(`class`))this.tolerateUnexpectedToken(this.lookahead),s=this.parseClassDeclaration();else if(this.matchKeyword(`function`)){var l=this.lookahead,u=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(l,a.Messages.StrictFunction):u.generator&&this.tolerateUnexpectedToken(l,a.Messages.GeneratorInLegacyContext),s=u}else s=this.parseStatement();delete this.context.labelSet[i],n=new o.LabeledStatement(r,s)}else this.consumeSemicolon(),n=new o.ExpressionStatement(t);return this.finalize(e,n)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword(`throw`),this.hasLineTerminator&&this.throwError(a.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword(`catch`),this.expect(`(`),this.match(`)`)&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),r={},i=0;i0&&this.tolerateError(a.Messages.BadGetterArity);var i=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(e,new o.FunctionExpression(null,r.params,i,t))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=!1,n=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length===1?r.params[0]instanceof o.RestElement&&this.tolerateError(a.Messages.BadSetterRestParameter):this.tolerateError(a.Messages.BadSetterArity);var i=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(e,new o.FunctionExpression(null,r.params,i,t))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=!0,n=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var i=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(e,new o.FunctionExpression(null,r.params,i,t))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e=t===`[`||t===`(`||t===`{`||t===`+`||t===`-`||t===`!`||t===`~`||t===`++`||t===`--`||t===`/`||t===`/=`;break;case 4:e=t===`class`||t===`delete`||t===`function`||t===`let`||t===`new`||t===`super`||t===`this`||t===`typeof`||t===`void`||t===`yield`;break;default:break}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword(`yield`);var t=null,n=!1;if(!this.hasLineTerminator){var r=this.context.allowYield;this.context.allowYield=!1,n=this.match(`*`),n?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=r}return this.finalize(e,new o.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),r=``,i=null,s=null,c=!1,l=!1,u=!1,d=!1;if(this.match(`*`))this.nextToken();else if(c=this.match(`[`),i=this.parseObjectPropertyKey(),i.name===`static`&&(this.qualifiedPropertyName(this.lookahead)||this.match(`*`))&&(t=this.lookahead,u=!0,c=this.match(`[`),this.match(`*`)?this.nextToken():i=this.parseObjectPropertyKey()),t.type===3&&!this.hasLineTerminator&&t.value===`async`){var f=this.lookahead.value;f!==`:`&&f!==`(`&&f!==`*`&&(d=!0,t=this.lookahead,i=this.parseObjectPropertyKey(),t.type===3&&t.value===`constructor`&&this.tolerateUnexpectedToken(t,a.Messages.ConstructorIsAsync))}var p=this.qualifiedPropertyName(this.lookahead);return t.type===3?t.value===`get`&&p?(r=`get`,c=this.match(`[`),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod()):t.value===`set`&&p&&(r=`set`,c=this.match(`[`),i=this.parseObjectPropertyKey(),s=this.parseSetterMethod()):t.type===7&&t.value===`*`&&p&&(r=`init`,c=this.match(`[`),i=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),l=!0),!r&&i&&this.match(`(`)&&(r=`init`,s=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0),r||this.throwUnexpectedToken(this.lookahead),r===`init`&&(r=`method`),c||(u&&this.isPropertyKey(i,`prototype`)&&this.throwUnexpectedToken(t,a.Messages.StaticPrototype),!u&&this.isPropertyKey(i,`constructor`)&&((r!==`method`||!l||s&&s.generator)&&this.throwUnexpectedToken(t,a.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,a.Messages.DuplicateConstructor):e.value=!0,r=`constructor`)),this.finalize(n,new o.MethodDefinition(i,c,s,r,u))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect(`{`);!this.match(`}`);)this.match(`;`)?this.nextToken():e.push(this.parseClassElement(t));return this.expect(`}`),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new o.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword(`class`);var r=e&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),i=null;this.matchKeyword(`extends`)&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var a=this.parseClassBody();return this.context.strict=n,this.finalize(t,new o.ClassDeclaration(r,i,a))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword(`class`);var n=this.lookahead.type===3?this.parseVariableIdentifier():null,r=null;this.matchKeyword(`extends`)&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=t,this.finalize(e,new o.ClassExpression(n,r,i))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();this.lookahead.type!==8&&this.throwError(a.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e=this.createNode(),t,n;return this.lookahead.type===3?(t=this.parseVariableIdentifier(),n=t,this.matchContextualKeyword(`as`)&&(this.nextToken(),n=this.parseVariableIdentifier())):(t=this.parseIdentifierName(),n=t,this.matchContextualKeyword(`as`)?(this.nextToken(),n=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(e,new o.ImportSpecifier(n,t))},e.prototype.parseNamedImports=function(){this.expect(`{`);for(var e=[];!this.match(`}`);)e.push(this.parseImportSpecifier()),this.match(`}`)||this.expect(`,`);return this.expect(`}`),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new o.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect(`*`),this.matchContextualKeyword(`as`)||this.throwError(a.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new o.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(a.Messages.IllegalImportDeclaration);var e=this.createNode();this.expectKeyword(`import`);var t,n=[];if(this.lookahead.type===8)t=this.parseModuleSpecifier();else{if(this.match(`{`)?n=n.concat(this.parseNamedImports()):this.match(`*`)?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword(`default`)?(n.push(this.parseImportDefaultSpecifier()),this.match(`,`)&&(this.nextToken(),this.match(`*`)?n.push(this.parseImportNamespaceSpecifier()):this.match(`{`)?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword(`from`)){var r=this.lookahead.value?a.Messages.UnexpectedToken:a.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(e,new o.ImportDeclaration(n,t))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword(`as`)&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new o.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(a.Messages.IllegalExportDeclaration);var e=this.createNode();this.expectKeyword(`export`);var t;if(this.matchKeyword(`default`))if(this.nextToken(),this.matchKeyword(`function`)){var n=this.parseFunctionDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(n))}else if(this.matchKeyword(`class`)){var n=this.parseClassDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(n))}else if(this.matchContextualKeyword(`async`)){var n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();t=this.finalize(e,new o.ExportDefaultDeclaration(n))}else{this.matchContextualKeyword(`from`)&&this.throwError(a.Messages.UnexpectedToken,this.lookahead.value);var n=this.match(`{`)?this.parseObjectInitializer():this.match(`[`)?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),t=this.finalize(e,new o.ExportDefaultDeclaration(n))}else if(this.match(`*`)){if(this.nextToken(),!this.matchContextualKeyword(`from`)){var r=this.lookahead.value?a.Messages.UnexpectedToken:a.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken();var i=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(e,new o.ExportAllDeclaration(i))}else if(this.lookahead.type===4){var n=void 0;switch(this.lookahead.value){case`let`:case`const`:n=this.parseLexicalDeclaration({inFor:!1});break;case`var`:case`class`:case`function`:n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(e,new o.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction()){var n=this.parseFunctionDeclaration();t=this.finalize(e,new o.ExportNamedDeclaration(n,[],null))}else{var s=[],c=null,l=!1;for(this.expect(`{`);!this.match(`}`);)l||=this.matchKeyword(`default`),s.push(this.parseExportSpecifier()),this.match(`}`)||this.expect(`,`);if(this.expect(`}`),this.matchContextualKeyword(`from`))this.nextToken(),c=this.parseModuleSpecifier(),this.consumeSemicolon();else if(l){var r=this.lookahead.value?a.Messages.UnexpectedToken:a.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}else this.consumeSemicolon();t=this.finalize(e,new o.ExportNamedDeclaration(null,s,c))}return t},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0});function n(e,t){if(!e)throw Error(`ASSERT: `+t)}t.assert=n},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.ErrorHandler=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(this.tolerant)this.recordError(e);else throw e},e.prototype.constructError=function(e,t){var n=Error(e);try{throw n}catch(e){Object.create&&Object.defineProperty&&(n=Object.create(e),Object.defineProperty(n,`column`,{value:t}))}return n},e.prototype.createError=function(e,t,n,r){var i=`Line `+t+`: `+r,a=this.constructError(i,n);return a.index=e,a.lineNumber=t,a.description=r,a},e.prototype.throwError=function(e,t,n,r){throw this.createError(e,t,n,r)},e.prototype.tolerateError=function(e,t,n,r){var i=this.createError(e,t,n,r);if(this.tolerant)this.recordError(i);else throw i},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.Messages={BadGetterArity:`Getter must not have any formal parameters`,BadSetterArity:`Setter must have exactly one formal parameter`,BadSetterRestParameter:`Setter function argument must not be a rest parameter`,ConstructorIsAsync:`Class constructor may not be an async method`,ConstructorSpecialMethod:`Class constructor may not be an accessor`,DeclarationMissingInitializer:`Missing initializer in %0 declaration`,DefaultRestParameter:`Unexpected token =`,DuplicateBinding:`Duplicate binding %0`,DuplicateConstructor:`A class may only have one constructor`,DuplicateProtoProperty:`Duplicate __proto__ fields are not allowed in object literals`,ForInOfLoopInitializer:`%0 loop variable declaration may not have an initializer`,GeneratorInLegacyContext:`Generator declarations are not allowed in legacy contexts`,IllegalBreak:`Illegal break statement`,IllegalContinue:`Illegal continue statement`,IllegalExportDeclaration:`Unexpected token`,IllegalImportDeclaration:`Unexpected token`,IllegalLanguageModeDirective:`Illegal 'use strict' directive in function with non-simple parameter list`,IllegalReturn:`Illegal return statement`,InvalidEscapedReservedWord:`Keyword must not contain escaped characters`,InvalidHexEscapeSequence:`Invalid hexadecimal escape sequence`,InvalidLHSInAssignment:`Invalid left-hand side in assignment`,InvalidLHSInForIn:`Invalid left-hand side in for-in`,InvalidLHSInForLoop:`Invalid left-hand side in for-loop`,InvalidModuleSpecifier:`Unexpected token`,InvalidRegExp:`Invalid regular expression`,LetInLexicalBinding:`let is disallowed as a lexically bound name`,MissingFromClause:`Unexpected token`,MultipleDefaultsInSwitch:`More than one default clause in switch statement`,NewlineAfterThrow:`Illegal newline after throw`,NoAsAfterImportNamespace:`Unexpected token`,NoCatchOrFinally:`Missing catch or finally after try`,ParameterAfterRestParameter:`Rest parameter must be last formal parameter`,Redeclaration:`%0 '%1' has already been declared`,StaticPrototype:`Classes may not have static property named prototype`,StrictCatchVariable:`Catch variable may not be eval or arguments in strict mode`,StrictDelete:`Delete of an unqualified identifier in strict mode.`,StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block`,StrictFunctionName:`Function name may not be eval or arguments in strict mode`,StrictLHSAssignment:`Assignment to eval or arguments is not allowed in strict mode`,StrictLHSPostfix:`Postfix increment/decrement may not have eval or arguments operand in strict mode`,StrictLHSPrefix:`Prefix increment/decrement may not have eval or arguments operand in strict mode`,StrictModeWith:`Strict mode code may not include a with statement`,StrictOctalLiteral:`Octal literals are not allowed in strict mode.`,StrictParamDupe:`Strict mode function may not have duplicate parameter names`,StrictParamName:`Parameter name eval or arguments is not allowed in strict mode`,StrictReservedWord:`Use of future reserved word in strict mode`,StrictVarName:`Variable name may not be eval or arguments in strict mode`,TemplateOctalLiteral:`Octal literals are not allowed in template strings.`,UnexpectedEOS:`Unexpected end of input`,UnexpectedIdentifier:`Unexpected identifier`,UnexpectedNumber:`Unexpected number`,UnexpectedReserved:`Unexpected reserved word`,UnexpectedString:`Unexpected string`,UnexpectedTemplate:`Unexpected quasi %0`,UnexpectedToken:`Unexpected token %0`,UnexpectedTokenIllegal:`Unexpected token ILLEGAL`,UnknownLabel:`Undefined label '%0'`,UnterminatedRegExp:`Invalid regular expression: missing /`}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(9),i=n(4),a=n(11);function o(e){return`0123456789abcdef`.indexOf(e.toLowerCase())}function s(e){return`01234567`.indexOf(e)}t.Scanner=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=+(e.length>0),this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return e===void 0&&(e=a.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){e===void 0&&(e=a.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t=[],n,r;for(this.trackComment&&(t=[],n=this.index-e,r={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var a=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(a)){if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart-1};var o={multiLine:!1,slice:[n+e,this.index-1],range:[n,this.index-1],loc:r};t.push(o)}return a===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,t}}if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!1,slice:[n+e,this.index],range:[n,this.index],loc:r};t.push(o)}return t},e.prototype.skipMultiLineComment=function(){var e=[],t,n;for(this.trackComment&&(e=[],t=this.index-2,n={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var r=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(r))r===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(r===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var a={multiLine:!0,slice:[t+2,this.index-2],range:[t,this.index],loc:n};e.push(a)}return e}++this.index}else ++this.index}if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var a={multiLine:!0,slice:[t+2,this.index],range:[t,this.index],loc:n};e.push(a)}return this.tolerateUnexpectedToken(),e},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=this.index===0;!this.eof();){var n=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(n))++this.index;else if(i.Character.isLineTerminator(n))++this.index,n===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(n===47)if(n=this.source.charCodeAt(this.index+1),n===47){this.index+=2;var r=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(r)),t=!0}else if(n===42){this.index+=2;var r=this.skipMultiLineComment();this.trackComment&&(e=e.concat(r))}else break;else if(t&&n===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var r=this.skipSingleLineComment(3);this.trackComment&&(e=e.concat(r))}else break;else if(n===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)===`!--`){this.index+=4;var r=this.skipSingleLineComment(4);this.trackComment&&(e=e.concat(r))}else break;else break}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case`enum`:case`export`:case`import`:case`super`:return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case`implements`:case`interface`:case`package`:case`private`:case`protected`:case`public`:case`static`:case`yield`:case`let`:return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return e===`eval`||e===`arguments`},e.prototype.isKeyword=function(e){switch(e.length){case 2:return e===`if`||e===`in`||e===`do`;case 3:return e===`var`||e===`for`||e===`new`||e===`try`||e===`let`;case 4:return e===`this`||e===`else`||e===`case`||e===`void`||e===`with`||e===`enum`;case 5:return e===`while`||e===`break`||e===`catch`||e===`throw`||e===`const`||e===`yield`||e===`class`||e===`super`;case 6:return e===`return`||e===`typeof`||e===`delete`||e===`switch`||e===`export`||e===`import`;case 7:return e===`default`||e===`finally`||e===`extends`;case 8:return e===`function`||e===`continue`||e===`debugger`;case 10:return e===`instanceof`;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=(t-55296)*1024+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t=e===`u`?4:2,n=0,r=0;r1114111||e!==`}`)&&this.throwUnexpectedToken(),i.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(t===92||t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(i.Character.isIdentifierPart(t))++this.index;else break}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e=this.codePointAt(this.index),t=i.Character.fromCodePoint(e);this.index+=t.length;var n;for(e===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]===`{`?(++this.index,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape(`u`),(n===null||n===`\\`||!i.Character.isIdentifierStart(n.charCodeAt(0)))&&this.throwUnexpectedToken()),t=n);!this.eof()&&(e=this.codePointAt(this.index),i.Character.isIdentifierPart(e));)n=i.Character.fromCodePoint(e),t+=n,this.index+=n.length,e===92&&(t=t.substr(0,t.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]===`{`?(++this.index,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape(`u`),(n===null||n===`\\`||!i.Character.isIdentifierPart(n.charCodeAt(0)))&&this.throwUnexpectedToken()),t+=n);return t},e.prototype.octalToDecimal=function(e){var t=e!==`0`,n=s(e);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=n*8+s(this.source[this.index++]),`0123`.indexOf(e)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=n*8+s(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=this.source.charCodeAt(t)===92?this.getComplexIdentifier():this.getIdentifier();if(e=n.length===1?3:this.isKeyword(n)?4:n===`null`?5:n===`true`||n===`false`?1:3,e!==3&&t+n.length!==this.index){var r=this.index;this.index=t,this.tolerateUnexpectedToken(a.Messages.InvalidEscapedReservedWord),this.index=r}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case`(`:case`{`:t===`{`&&this.curlyStack.push(`{`),++this.index;break;case`.`:++this.index,this.source[this.index]===`.`&&this.source[this.index+1]===`.`&&(this.index+=2,t=`...`);break;case`}`:++this.index,this.curlyStack.pop();break;case`)`:case`;`:case`,`:case`[`:case`]`:case`:`:case`?`:case`~`:++this.index;break;default:t=this.source.substr(this.index,4),t===`>>>=`?this.index+=4:(t=t.substr(0,3),t===`===`||t===`!==`||t===`>>>`||t===`<<=`||t===`>>=`||t===`**=`?this.index+=3:(t=t.substr(0,2),t===`&&`||t===`||`||t===`==`||t===`!=`||t===`+=`||t===`-=`||t===`*=`||t===`/=`||t===`++`||t===`--`||t===`<<`||t===`>>`||t===`&=`||t===`|=`||t===`^=`||t===`%=`||t===`<=`||t===`>=`||t===`=>`||t===`**`?this.index+=2:(t=this.source[this.index],`<>=!+-*%&|^/`.indexOf(t)>=0&&++this.index)))}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t=``;!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return t.length===0&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt(`0x`+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t=``,n;!this.eof()&&(n=this.source[this.index],!(n!==`0`&&n!==`1`));)t+=this.source[this.index++];return t.length===0&&this.throwUnexpectedToken(),this.eof()||(n=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(n)||i.Character.isDecimalDigit(n))&&this.throwUnexpectedToken()),{type:6,value:parseInt(t,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n=``,r=!1;for(i.Character.isOctalDigit(e.charCodeAt(0))?(r=!0,n=`0`+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return!r&&n.length===0&&this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(e,t,r){var o=parseInt(t||r,16);return o>1114111&&i.throwUnexpectedToken(a.Messages.InvalidRegExp),o<=65535?String.fromCharCode(o):n}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n));try{RegExp(r)}catch{this.throwUnexpectedToken(a.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch{return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];r.assert(e===`/`,`Regular expression literal must start with a slash`);for(var t=this.source[this.index++],n=!1,o=!1;!this.eof();)if(e=this.source[this.index++],t+=e,e===`\\`)e=this.source[this.index++],i.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),t+=e;else if(i.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(a.Messages.UnterminatedRegExp);else if(n)e===`]`&&(n=!1);else if(e===`/`){o=!0;break}else e===`[`&&(n=!0);return o||this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e=``,t=``;!this.eof();){var n=this.source[this.index];if(!i.Character.isIdentifierPart(n.charCodeAt(0)))break;if(++this.index,n===`\\`&&!this.eof())if(n=this.source[this.index],n===`u`){++this.index;var r=this.index,a=this.scanHexEscape(`u`);if(a!==null)for(t+=a,e+=`\\u`;r=55296&&e<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.TokenName={},t.TokenName[1]=`Boolean`,t.TokenName[2]=``,t.TokenName[3]=`Identifier`,t.TokenName[4]=`Keyword`,t.TokenName[5]=`Null`,t.TokenName[6]=`Numeric`,t.TokenName[7]=`Punctuator`,t.TokenName[8]=`String`,t.TokenName[9]=`RegularExpression`,t.TokenName[10]=`Template`},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.XHTMLEntities={quot:`"`,amp:`&`,apos:`'`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,lang:`⟨`,rang:`⟩`}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(10),i=n(12),a=n(13),o=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return`(.{.[.in.typeof.instanceof.new.return.case.delete.throw.void.=.+=.-=.*=.**=./=.%=.<<=.>>=.>>>=.&=.|=.^=.,.+.-.*.**./.%.++.--.<<.>>.>>>.&.|.^.!.~.&&.||.?.:.===.==.>=.<=.<.>.!=.!==`.split(`.`).indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=e!==null;switch(e){case`this`:case`]`:t=!1;break;case`)`:var n=this.values[this.paren-1];t=n===`if`||n===`while`||n===`for`||n===`with`;break;case`}`:if(t=!1,this.values[this.curly-3]===`function`){var r=this.values[this.curly-4];t=r?!this.beforeFunctionExpression(r):!1}else if(this.values[this.curly-4]===`function`){var r=this.values[this.curly-5];t=r?!this.beforeFunctionExpression(r):!0}break;default:break}return t},e.prototype.push=function(e){e.type===7||e.type===4?(e.value===`{`?this.curly=this.values.length:e.value===`(`&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}();t.Tokenizer=function(){function e(e,t){this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=t?typeof t.tolerant==`boolean`&&t.tolerant:!1,this.scanner=new i.Scanner(e,this.errorHandler),this.scanner.trackComment=t?typeof t.comment==`boolean`&&t.comment:!1,this.trackRange=t?typeof t.range==`boolean`&&t.range:!1,this.trackLoc=t?typeof t.loc==`boolean`&&t.loc:!1,this.buffer=[],this.reader=new o}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(this.buffer.length===0){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t{var n;try{n=Kn()}catch{typeof window<`u`&&(n=window.esprima)}var r=J();function i(e){if(e===null)return!1;try{var t=`(`+e+`)`,r=n.parse(t,{range:!0});return!(r.type!==`Program`||r.body.length!==1||r.body[0].type!==`ExpressionStatement`||r.body[0].expression.type!==`ArrowFunctionExpression`&&r.body[0].expression.type!==`FunctionExpression`)}catch{return!1}}function a(e){var t=`(`+e+`)`,r=n.parse(t,{range:!0}),i=[],a;if(r.type!==`Program`||r.body.length!==1||r.body[0].type!==`ExpressionStatement`||r.body[0].expression.type!==`ArrowFunctionExpression`&&r.body[0].expression.type!==`FunctionExpression`)throw Error(`Failed to resolve function`);return r.body[0].expression.params.forEach(function(e){i.push(e.name)}),a=r.body[0].expression.body.range,r.body[0].expression.body.type===`BlockStatement`?Function(i,t.slice(a[0]+1,a[1]-1)):Function(i,`return `+t.slice(a[0],a[1]))}function o(e){return e.toString()}function s(e){return Object.prototype.toString.call(e)===`[object Function]`}t.exports=new r(`tag:yaml.org,2002:js/function`,{kind:`scalar`,resolve:i,construct:a,predicate:s,represent:o})})),Jn=e(((e,t)=>{var n=En();t.exports=n.DEFAULT=new n({include:[Un()],explicit:[Wn(),Gn(),qn()]})})),Yn=e(((e,t)=>{var n=Cn(),r=wn(),i=Tn(),a=Un(),o=Jn(),s=Object.prototype.hasOwnProperty,c=1,l=2,u=3,d=4,f=1,p=2,m=3,h=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,_=/[,\[\]\{\}]/,v=/^(?:!|!!|![a-z\-]+!)$/i,y=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function b(e){return Object.prototype.toString.call(e)}function x(e){return e===10||e===13}function S(e){return e===9||e===32}function C(e){return e===9||e===32||e===10||e===13}function w(e){return e===44||e===91||e===93||e===123||e===125}function T(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function E(e){return e===120?2:e===117?4:e===85?8:0}function D(e){return 48<=e&&e<=57?e-48:-1}function O(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?` `:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`…`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function k(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function A(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var ee=Array(256),j=Array(256),te=0;te<256;te++)ee[te]=+!!O(te),j[te]=O(te);function ne(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||o,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function M(e,t){return new r(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function N(e,t){throw M(e,t)}function P(e,t){e.onWarning&&e.onWarning.call(null,M(e,t))}var F={YAML:function(e,t,n){var r,i,a;e.version!==null&&N(e,`duplication of %YAML directive`),n.length!==1&&N(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&N(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&N(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&P(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&N(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],v.test(r)||N(e,`ill-formed tag handle (first argument) of the TAG directive`),s.call(e.tagMap,r)&&N(e,`there is a previously declared suffix for "`+r+`" tag handle`),y.test(i)||N(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagMap[r]=i}};function I(e,t,n,r){var i,a,o,s;if(t1&&(e.result+=n.repeat(` `,t-1))}function U(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(C(p)||w(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),C(i)||n&&w(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),C(i)||n&&w(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),C(r))break}else if(e.position===e.lineStart&&V(e)||n&&w(p))break;else if(x(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,B(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(I(e,a,o,!1),H(e,e.line-c),a=o=e.position,!1),S(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return I(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function W(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(I(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else x(n)?(I(e,r,i,!0),H(e,B(e,!1,t)),r=i=e.position):e.position===e.lineStart&&V(e)?N(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);N(e,`unexpected end of the stream within a single quoted scalar`)}function G(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return I(e,n,e.position,!0),e.position++,!0;else if(s===92){if(I(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),x(s))B(e,!1,t);else if(s<256&&ee[s])e.result+=j[s],e.position++;else if((o=E(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=T(s))>=0?a=(a<<4)+o:N(e,`expected hexadecimal character`);e.result+=k(a),e.position++}else N(e,`unknown escape sequence`);n=r=e.position}else x(s)?(I(e,n,r,!0),H(e,B(e,!1,t)),n=r=e.position):e.position===e.lineStart&&V(e)?N(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);N(e,`unexpected end of the stream within a double quoted scalar`)}function re(e,t){var n=!0,r,i=e.tag,a,o=e.anchor,s,l,u,d,f,p={},m,h,g,_=e.input.charCodeAt(e.position);if(_===91)l=93,f=!1,a=[];else if(_===123)l=125,f=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),_=e.input.charCodeAt(++e.position);_!==0;){if(B(e,!0,t),_=e.input.charCodeAt(e.position),_===l)return e.position++,e.tag=i,e.anchor=o,e.kind=f?`mapping`:`sequence`,e.result=a,!0;n||N(e,`missed comma between flow collection entries`),h=m=g=null,u=d=!1,_===63&&(s=e.input.charCodeAt(e.position+1),C(s)&&(u=d=!0,e.position++,B(e,!0,t))),r=e.line,ce(e,t,c,!1,!0),h=e.tag,m=e.result,B(e,!0,t),_=e.input.charCodeAt(e.position),(d||e.line===r)&&_===58&&(u=!0,_=e.input.charCodeAt(++e.position),B(e,!0,t),ce(e,t,c,!1,!0),g=e.result),f?R(e,a,p,h,m,g):u?a.push(R(e,null,p,h,m,g)):a.push(m),B(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(n=!0,_=e.input.charCodeAt(++e.position)):n=!1}N(e,`unexpected end of the stream within a flow collection`)}function K(e,t){var r,i,a=f,o=!1,s=!1,c=t,l=0,u=!1,d,h=e.input.charCodeAt(e.position);if(h===124)i=!1;else if(h===62)i=!0;else return!1;for(e.kind=`scalar`,e.result=``;h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)f===a?a=h===43?m:p:N(e,`repeat of a chomping mode identifier`);else if((d=D(h))>=0)d===0?N(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):s?N(e,`repeat of an indentation width identifier`):(c=t+d-1,s=!0);else break;if(S(h)){do h=e.input.charCodeAt(++e.position);while(S(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!x(h)&&h!==0)}for(;h!==0;){for(z(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!s||e.lineIndentc&&(c=e.lineIndent),x(h)){l++;continue}if(e.lineIndentt)&&c!==0)N(e,`bad indentation of a sequence entry`);else if(e.lineIndentt)&&(ce(e,t,d,!0,i)&&(g?m=e.result:h=e.result),g||(R(e,u,f,p,m,h,a,o),p=m=h=null),B(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)N(e,`bad indentation of a mapping entry`);else if(e.lineIndentt?p=1:e.lineIndent===t?p=0:e.lineIndentt?p=1:e.lineIndent===t?p=0:e.lineIndent tag; it should be "scalar", not "`+e.kind+`"`),g=0,_=e.implicitTypes.length;g<_;g+=1)if(v=e.implicitTypes[g],v.resolve(e.result)){e.result=v.construct(e.result),e.tag=v.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else s.call(e.typeMap[e.kind||`fallback`],e.tag)?(v=e.typeMap[e.kind||`fallback`][e.tag],e.result!==null&&v.kind!==e.kind&&N(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+v.kind+`", not "`+e.kind+`"`),v.resolve(e.result)?(e.result=v.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):N(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)):N(e,`unknown tag !<`+e.tag+`>`);return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||h}function le(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(o=e.input.charCodeAt(e.position))!==0&&(B(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!C(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&N(e,`directive name must not be less than one character in length`);o!==0;){for(;S(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!x(o));break}if(x(o))break;for(n=e.position;o!==0&&!C(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&z(e),s.call(F,r)?F[r](e,r,i):P(e,`unknown document directive "`+r+`"`)}if(B(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,B(e,!0,-1)):a&&N(e,`directives end mark is expected`),ce(e,e.lineIndent-1,d,!1,!0),B(e,!0,-1),e.checkLineBreaks&&g.test(e.input.slice(t,e.position))&&P(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&V(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,B(e,!0,-1));return}if(e.position{var n=Cn(),r=wn(),i=Jn(),a=Un(),o=Object.prototype.toString,s=Object.prototype.hasOwnProperty,c=9,l=10,u=13,d=32,f=33,p=34,m=35,h=37,g=38,_=39,v=42,y=44,b=45,x=58,S=61,C=62,w=63,T=64,E=91,D=93,O=96,k=123,A=124,ee=125,j={};j[0]=`\\0`,j[7]=`\\a`,j[8]=`\\b`,j[9]=`\\t`,j[10]=`\\n`,j[11]=`\\v`,j[12]=`\\f`,j[13]=`\\r`,j[27]=`\\e`,j[34]=`\\"`,j[92]=`\\\\`,j[133]=`\\N`,j[160]=`\\_`,j[8232]=`\\L`,j[8233]=`\\P`;var te=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`];function ne(e,t){var n,r,i,a,o,c,l;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i0?e.charCodeAt(a-1):null,p&&=B(o,s)}else{for(a=0;ar&&e[f+1]!==` `,f=a);else if(!R(o))return K;s=a>0?e.charCodeAt(a-1):null,p&&=B(o,s)}u||=d&&a-f-1>r&&e[f+1]!==` `}return!c&&!u?p&&!i(e)?U:W:n>9&&H(e)?K:u?re:G}function ae(e,t,n,i){e.dump=function(){if(t.length===0)return`''`;if(!e.noCompatMode&&te.indexOf(t)!==-1)return`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=i||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return I(e,t)}switch(ie(t,s,e.indent,o,c)){case U:return t;case W:return`'`+t.replace(/'/g,`''`)+`'`;case G:return`|`+q(t,e.indent)+oe(P(t,a));case re:return`>`+q(t,e.indent)+oe(P(se(t,o),a));case K:return`"`+le(t,o)+`"`;default:throw new r(`impossible error: invalid scalar style`)}}()}function q(e,t){var n=H(e)?String(t):``,r=e[e.length-1]===` `;return n+(r&&(e[e.length-2]===` `||e===` `)?`+`:r?``:`-`)+` `}function oe(e){return e[e.length-1]===` `?e.slice(0,-1):e}function se(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(` `);return r=r===-1?e.length:r,n.lastIndex=r,ce(e.slice(0,r),t)}(),i=e[0]===` `||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?` `:``)+ce(c,t),i=a}return r}function ce(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=` `+e.slice(i,a),i=a+1),o=s;return c+=` `,e.length-i>t&&o>i?c+=e.slice(i,o)+` `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function le(e){for(var t=``,n,r,i,a=0;a=55296&&n<=56319&&(r=e.charCodeAt(a+1),r>=56320&&r<=57343)){t+=M((n-55296)*1024+r-56320+65536),a++;continue}i=j[n],t+=!i&&R(n)?e[a]:i||M(n)}return t}function ue(e,t,n){var r=``,i=e.tag,a,o;for(a=0,o=n.length;a1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),he(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function pe(e,t,n,i){var a=``,o=e.tag,s=Object.keys(n),c,u,d,f,p,m;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new r(`sortKeys must be a boolean or a function`);for(c=0,u=s.length;c1024,p&&(e.dump&&l===e.dump.charCodeAt(0)?m+=`?`:m+=`? `),m+=e.dump,p&&(m+=F(e,t)),he(e,t+1,f,!0,p)&&(e.dump&&l===e.dump.charCodeAt(0)?m+=`:`:m+=`: `,m+=e.dump,a+=m));e.tag=o,e.dump=a||`{}`}function me(e,t,n){var i,a=n?e.explicitTypes:e.implicitTypes,c,l,u,d;for(c=0,l=a.length;c tag resolver accepts not "`+d+`" style`);e.dump=i}return!0}return!1}function he(e,t,n,i,a,s){e.tag=null,e.dump=n,me(e,n,!1)||me(e,n,!0);var c=o.call(e.dump);i&&=e.flowLevel<0||e.flowLevel>t;var l=c===`[object Object]`||c===`[object Array]`,u,d;if(l&&(u=e.duplicates.indexOf(n),d=u!==-1),(e.tag!==null&&e.tag!==`?`||d||e.indent!==2&&t>0)&&(a=!1),d&&e.usedDuplicates[u])e.dump=`*ref_`+u;else{if(l&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),c===`[object Object]`)i&&Object.keys(e.dump).length!==0?(pe(e,t,e.dump,a),d&&(e.dump=`&ref_`+u+e.dump)):(fe(e,t,e.dump),d&&(e.dump=`&ref_`+u+` `+e.dump));else if(c===`[object Array]`){var f=e.noArrayIndent&&t>0?t-1:t;i&&e.dump.length!==0?(de(e,f,e.dump,a),d&&(e.dump=`&ref_`+u+e.dump)):(ue(e,f,e.dump),d&&(e.dump=`&ref_`+u+` `+e.dump))}else if(c===`[object String]`)e.tag!==`?`&&ae(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new r(`unacceptable kind of an object to dump `+c)}e.tag!==null&&e.tag!==`?`&&(e.dump=`!<`+e.tag+`> `+e.dump)}return!0}function ge(e,t){var n=[],r=[],i,a;for(_e(e,n,r),i=0,a=r.length;i{var n=Yn(),r=Xn();function i(e){return function(){throw Error(`Function `+e+` is deprecated and cannot be used.`)}}t.exports.Type=J(),t.exports.Schema=En(),t.exports.FAILSAFE_SCHEMA=An(),t.exports.JSON_SCHEMA=Fn(),t.exports.CORE_SCHEMA=In(),t.exports.DEFAULT_SAFE_SCHEMA=Un(),t.exports.DEFAULT_FULL_SCHEMA=Jn(),t.exports.load=n.load,t.exports.loadAll=n.loadAll,t.exports.safeLoad=n.safeLoad,t.exports.safeLoadAll=n.safeLoadAll,t.exports.dump=r.dump,t.exports.safeDump=r.safeDump,t.exports.YAMLException=wn(),t.exports.MINIMAL_SCHEMA=An(),t.exports.SAFE_SCHEMA=Un(),t.exports.DEFAULT_SCHEMA=Jn(),t.exports.scan=i(`scan`),t.exports.parse=i(`parse`),t.exports.compose=i(`compose`),t.exports.addConstructor=i(`addConstructor`)})),Qn=e(((e,t)=>{t.exports=Zn()})),$n=e(((e,t)=>{let n=f(),r=o(),i=Sn(),a=Qn(),s=e=>a.safeLoad(i(e)),c=e=>r(n.readFile)(e,`utf8`).then(e=>s(e));t.exports=c,t.exports.default=c,t.exports.sync=e=>s(n.readFileSync(e,`utf8`))})),er=e(((e,t)=>{let n=(e,...t)=>new Promise(n=>{n(e(...t))});t.exports=n,t.exports.default=n})),tr=e(((e,t)=>{let n=er(),r=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,i=()=>{r--,t.length>0&&t.shift()()},a=(e,t,...a)=>{r++;let o=n(e,...a);t(o),o.then(i,i)},o=(n,i,...o)=>{rnew Promise(n=>o(e,n,...t));return Object.defineProperties(s,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),s};t.exports=r,t.exports.default=r})),nr=e(((e,t)=>{let n=tr();var r=class extends Error{constructor(e){super(),this.value=e}};let i=async(e,t)=>t(await e),a=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new r(t[0]);return!1},o=async(e,t,o)=>{o={concurrency:1/0,preserveOrder:!0,...o};let s=n(o.concurrency),c=[...e].map(e=>[e,s(i,e,t)]),l=n(o.preserveOrder?1:1/0);try{await Promise.all(c.map(e=>l(a,e)))}catch(e){if(e instanceof r)return e.value;throw e}};t.exports=o,t.exports.default=o})),rr=e(((e,t)=>{let r=n(`path`),i=n(`fs`),{promisify:a}=n(`util`),o=nr(),s=a(i.stat),c=a(i.lstat),l={directory:`isDirectory`,file:`isFile`};function u({type:e}){if(!(e in l))throw Error(`Invalid type specified: ${e}`)}let d=(e,t)=>e===void 0||t[l[e]]();t.exports=async(e,t)=>{t={cwd:process.cwd(),type:`file`,allowSymlinks:!0,...t},u(t);let n=t.allowSymlinks?s:c;return o(e,async e=>{try{let i=await n(r.resolve(t.cwd,e));return d(t.type,i)}catch{return!1}},t)},t.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:`file`,...t},u(t);let n=t.allowSymlinks?i.statSync:i.lstatSync;for(let i of e)try{let e=n(r.resolve(t.cwd,i));if(d(t.type,e))return i}catch{}}})),ir=e(((e,t)=>{let r=n(`fs`),{promisify:i}=n(`util`),a=i(r.access);t.exports=async e=>{try{return await a(e),!0}catch{return!1}},t.exports.sync=e=>{try{return r.accessSync(e),!0}catch{return!1}}})),ar=e(((e,t)=>{let r=n(`path`),i=rr(),a=ir(),o=Symbol(`findUp.stop`);t.exports=async(e,t={})=>{let n=r.resolve(t.cwd||``),{root:a}=r.parse(n),s=[].concat(e),c=async t=>{if(typeof e!=`function`)return i(s,t);let n=await e(t.cwd);return typeof n==`string`?i([n],t):n};for(;;){let e=await c({...t,cwd:n});if(e===o)return;if(e)return r.resolve(n,e);if(n===a)return;n=r.dirname(n)}},t.exports.sync=(e,t={})=>{let n=r.resolve(t.cwd||``),{root:a}=r.parse(n),s=[].concat(e),c=t=>{if(typeof e!=`function`)return i.sync(s,t);let n=e(t.cwd);return typeof n==`string`?i.sync([n],t):n};for(;;){let e=c({...t,cwd:n});if(e===o)return;if(e)return r.resolve(n,e);if(n===a)return;n=r.dirname(n)}},t.exports.exists=a,t.exports.sync.exists=a.sync,t.exports.stop=o})),or=e((e=>{function t(e){return e&&typeof e==`object`&&`default`in e?e.default:e}Object.defineProperty(e,`__esModule`,{value:!0});var r=t(q()),i=t(oe()),a=t(se()),o=t(le()),s=t(ue()),c=t(fe()),l=t(ge()),u=ar(),d=t(u),f=t(n(`path`)),p=t(Je()),m=function(e){function t(e){var n;return a(this,t),(n=o(this,s(t).call(this,`No package.json could be found upwards from the directory ${e}`))).directory=e,n}return c(t,e),t}(l(Error));function h(e,t){return g.apply(this,arguments)}function g(){return(g=i(r.mark(function e(t,n){var i;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.readJson(f.join(t,`package.json`));case 3:if(i=e.sent,n.current===void 0&&(n.current=t),!i.workspaces&&!i.bolt){e.next=7;break}return e.abrupt(`return`,t);case 7:e.next=13;break;case 9:if(e.prev=9,e.t0=e.catch(0),e.t0.code===`ENOENT`){e.next=13;break}throw e.t0;case 13:case`end`:return e.stop()}},e,null,[[0,9]])}))).apply(this,arguments)}function _(e){return v.apply(this,arguments)}function v(){return(v=i(r.mark(function e(t){return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.readJson(f.join(t,`lerna.json`));case 3:if(!0===e.sent.useWorkspaces){e.next=6;break}return e.abrupt(`return`,t);case 6:e.next=12;break;case 8:if(e.prev=8,e.t0=e.catch(0),e.t0.code===`ENOENT`){e.next=12;break}throw e.t0;case 12:case`end`:return e.stop()}},e,null,[[0,8]])}))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=i(r.mark(function e(t){return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.exists(f.join(t,`pnpm-workspace.yaml`));case 2:if(!e.sent){e.next=5;break}return e.abrupt(`return`,t);case 5:case`end`:return e.stop()}},e)}))).apply(this,arguments)}function x(e){return S.apply(this,arguments)}function S(){return(S=i(r.mark(function e(t){var n,i;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={current:void 0},e.next=3,d(function(e){return Promise.all([_(e),h(e,n),y(e)]).then(function(e){return e.find(function(e){return e})})},{cwd:t,type:`directory`});case 3:if(i=e.sent,n.current!==void 0){e.next=6;break}throw new m(t);case 6:if(i!==void 0){e.next=8;break}return e.abrupt(`return`,n.current);case 8:return e.abrupt(`return`,i);case 9:case`end`:return e.stop()}},e)}))).apply(this,arguments)}function C(e,t){try{var n=p.readJsonSync(f.join(e,`package.json`));if(t.current===void 0&&(t.current=e),n.workspaces||n.bolt)return e}catch(e){if(e.code!==`ENOENT`)throw e}}function w(e){try{if(!0!==p.readJsonSync(f.join(e,`lerna.json`)).useWorkspaces)return e}catch(e){if(e.code!==`ENOENT`)throw e}}function T(e){if(p.existsSync(f.join(e,`pnpm-workspace.yaml`)))return e}function E(e){var t={current:void 0},n=u.sync(function(e){return[w(e),C(e,t),T(e)].find(function(e){return e})},{cwd:e,type:`directory`});if(t.current===void 0)throw new m(e);return n===void 0?t.current:n}e.NoPkgJsonFound=m,e.findRoot=x,e.findRootSync=E})),sr=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return e&&typeof e==`object`&&`default`in e?e.default:e}var r=t(q()),i=t(oe()),a=t(se()),o=t(le()),s=t(ue()),c=t(fe()),l=t(ge()),u=ar(),d=t(u),f=t(n(`path`)),p=t(Je()),m=function(e){c(t,e);function t(e){var n;return a(this,t),n=o(this,s(t).call(this,`No package.json could be found upwards from the directory ${e}`)),n.directory=e,n}return t}(l(Error));function h(e,t){return g.apply(this,arguments)}function g(){return g=i(r.mark(function e(t,n){var i;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.readJson(f.join(t,`package.json`));case 3:if(i=e.sent,n.current===void 0&&(n.current=t),!(i.workspaces||i.bolt)){e.next=7;break}return e.abrupt(`return`,t);case 7:e.next=13;break;case 9:if(e.prev=9,e.t0=e.catch(0),e.t0.code===`ENOENT`){e.next=13;break}throw e.t0;case 13:case`end`:return e.stop()}},e,null,[[0,9]])})),g.apply(this,arguments)}function _(e){return v.apply(this,arguments)}function v(){return v=i(r.mark(function e(t){var n;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.readJson(f.join(t,`lerna.json`));case 3:if(n=e.sent,n.useWorkspaces===!0){e.next=6;break}return e.abrupt(`return`,t);case 6:e.next=12;break;case 8:if(e.prev=8,e.t0=e.catch(0),e.t0.code===`ENOENT`){e.next=12;break}throw e.t0;case 12:case`end`:return e.stop()}},e,null,[[0,8]])})),v.apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return b=i(r.mark(function e(t){var n;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.exists(f.join(t,`pnpm-workspace.yaml`));case 2:if(n=e.sent,!n){e.next=5;break}return e.abrupt(`return`,t);case 5:case`end`:return e.stop()}},e)})),b.apply(this,arguments)}function x(e){return S.apply(this,arguments)}function S(){return S=i(r.mark(function e(t){var n,i;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={current:void 0},e.next=3,d(function(e){return Promise.all([_(e),h(e,n),y(e)]).then(function(e){return e.find(function(e){return e})})},{cwd:t,type:`directory`});case 3:if(i=e.sent,n.current!==void 0){e.next=6;break}throw new m(t);case 6:if(i!==void 0){e.next=8;break}return e.abrupt(`return`,n.current);case 8:return e.abrupt(`return`,i);case 9:case`end`:return e.stop()}},e)})),S.apply(this,arguments)}function C(e,t){try{var n=p.readJsonSync(f.join(e,`package.json`));if(t.current===void 0&&(t.current=e),n.workspaces||n.bolt)return e}catch(e){if(e.code!==`ENOENT`)throw e}}function w(e){try{if(p.readJsonSync(f.join(e,`lerna.json`)).useWorkspaces!==!0)return e}catch(e){if(e.code!==`ENOENT`)throw e}}function T(e){if(p.existsSync(f.join(e,`pnpm-workspace.yaml`)))return e}function E(e){var t={current:void 0},n=u.sync(function(e){return[w(e),C(e,t),T(e)].find(function(e){return e})},{cwd:e,type:`directory`});if(t.current===void 0)throw new m(e);return n===void 0?t.current:n}e.NoPkgJsonFound=m,e.findRoot=x,e.findRootSync=E})),cr=e(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=or():t.exports=sr()})),lr=e((e=>{function t(e){return e&&typeof e==`object`&&`default`in e?e.default:e}Object.defineProperty(e,`__esModule`,{value:!0});var r=t(q()),i=t(oe()),a=t(se()),o=t(le()),s=t(ue()),c=t(fe()),l=t(ge()),u=t(Je()),d=t(n(`path`)),f=xn(),p=t(f),m=$n(),h=t(m),g=cr(),_=function(e){function t(e){var n;return a(this,t),(n=o(this,s(t).call(this,`The following package.jsons are missing the "name" field: ${e.join(` `)}`))).directories=e,n}return c(t,e),t}(l(Error));function v(e){return y.apply(this,arguments)}function y(){return(y=i(r.mark(function e(t){var n,i,a,o,s,c,l,f,m,v;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.findRoot(t);case 2:return n=e.sent,e.next=5,u.readJson(d.join(n,`package.json`));case 5:if(!(i=e.sent).workspaces){e.next=10;break}Array.isArray(i.workspaces)?a={type:`yarn`,packageGlobs:i.workspaces}:i.workspaces.packages&&(a={type:`yarn`,packageGlobs:i.workspaces.packages}),e.next=37;break;case 10:if(!i.bolt||!i.bolt.workspaces){e.next=14;break}a={type:`bolt`,packageGlobs:i.bolt.workspaces},e.next=37;break;case 14:return e.prev=14,e.next=17,h(d.join(n,`pnpm-workspace.yaml`));case 17:(o=e.sent)&&o.packages&&(a={type:`pnpm`,packageGlobs:o.packages}),e.next=25;break;case 21:if(e.prev=21,e.t0=e.catch(14),e.t0.code===`ENOENT`){e.next=25;break}throw e.t0;case 25:if(a){e.next=37;break}return e.prev=26,e.next=29,u.readJson(d.join(n,`lerna.json`));case 29:(s=e.sent)&&(a={type:`lerna`,packageGlobs:s.packages||[`packages/*`]}),e.next=37;break;case 33:if(e.prev=33,e.t1=e.catch(26),e.t1.code===`ENOENT`){e.next=37;break}throw e.t1;case 37:if(a){e.next=42;break}if(c={dir:n,packageJson:i},i.name){e.next=41;break}throw new _([`package.json`]);case 41:return e.abrupt(`return`,{tool:`root`,root:c,packages:[c]});case 42:return e.next=44,p(a.packageGlobs,{cwd:n,onlyDirectories:!0,expandDirectories:!1,ignore:[`**/node_modules`]});case 44:return l=e.sent,f=l.map(function(e){return d.resolve(n,e)}),m=[],e.next=49,Promise.all(f.sort().map(function(e){return u.readJson(d.join(e,`package.json`)).then(function(t){return t.name||m.push(d.relative(n,d.join(e,`package.json`))),{packageJson:t,dir:e}}).catch(function(e){if(e.code===`ENOENT`)return null;throw e})}));case 49:if(e.t2=function(e){return e},v=e.sent.filter(e.t2),m.length===0){e.next=54;break}throw m.sort(),new _(m);case 54:return e.abrupt(`return`,{tool:a.type,root:{dir:n,packageJson:i},packages:v});case 55:case`end`:return e.stop()}},e,null,[[14,21],[26,33]])}))).apply(this,arguments)}function b(e){var t,n=g.findRootSync(e),r=u.readJsonSync(d.join(n,`package.json`));if(r.workspaces)Array.isArray(r.workspaces)?t={type:`yarn`,packageGlobs:r.workspaces}:r.workspaces.packages&&(t={type:`yarn`,packageGlobs:r.workspaces.packages});else if(r.bolt&&r.bolt.workspaces)t={type:`bolt`,packageGlobs:r.bolt.workspaces};else{try{var i=m.sync(d.join(n,`pnpm-workspace.yaml`));i&&i.packages&&(t={type:`pnpm`,packageGlobs:i.packages})}catch(e){if(e.code!==`ENOENT`)throw e}if(!t)try{var a=u.readJsonSync(d.join(n,`lerna.json`));a&&(t={type:`lerna`,packageGlobs:a.packages||[`packages/*`]})}catch(e){if(e.code!==`ENOENT`)throw e}}if(!t){var o={dir:n,packageJson:r};if(!r.name)throw new _([`package.json`]);return{tool:`root`,root:o,packages:[o]}}var s=f.sync(t.packageGlobs,{cwd:n,onlyDirectories:!0,expandDirectories:!1,ignore:[`**/node_modules`]}).map(function(e){return d.resolve(n,e)}),c=[],l=s.sort().map(function(e){try{var t=u.readJsonSync(d.join(e,`package.json`));return t.name||c.push(d.relative(n,d.join(e,`package.json`))),{packageJson:t,dir:e}}catch(e){if(e.code===`ENOENT`)return null;throw e}}).filter(function(e){return e});if(c.length!==0)throw c.sort(),new _(c);return{tool:t.type,root:{dir:n,packageJson:r},packages:l}}e.PackageJsonMissingNameError=_,e.getPackages=v,e.getPackagesSync=b})),ur=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return e&&typeof e==`object`&&`default`in e?e.default:e}var r=t(q()),i=t(oe()),a=t(se()),o=t(le()),s=t(ue()),c=t(fe()),l=t(ge()),u=t(Je()),d=t(n(`path`)),f=xn(),p=t(f),m=$n(),h=t(m),g=cr(),_=function(e){c(t,e);function t(e){var n;return a(this,t),n=o(this,s(t).call(this,`The following package.jsons are missing the "name" field: ${e.join(` `)}`)),n.directories=e,n}return t}(l(Error));function v(e){return y.apply(this,arguments)}function y(){return y=i(r.mark(function e(t){var n,i,a,o,s,c,l,f,m,v;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.findRoot(t);case 2:return n=e.sent,e.next=5,u.readJson(d.join(n,`package.json`));case 5:if(i=e.sent,!i.workspaces){e.next=10;break}Array.isArray(i.workspaces)?a={type:`yarn`,packageGlobs:i.workspaces}:i.workspaces.packages&&(a={type:`yarn`,packageGlobs:i.workspaces.packages}),e.next=37;break;case 10:if(!(i.bolt&&i.bolt.workspaces)){e.next=14;break}a={type:`bolt`,packageGlobs:i.bolt.workspaces},e.next=37;break;case 14:return e.prev=14,e.next=17,h(d.join(n,`pnpm-workspace.yaml`));case 17:o=e.sent,o&&o.packages&&(a={type:`pnpm`,packageGlobs:o.packages}),e.next=25;break;case 21:if(e.prev=21,e.t0=e.catch(14),e.t0.code===`ENOENT`){e.next=25;break}throw e.t0;case 25:if(a){e.next=37;break}return e.prev=26,e.next=29,u.readJson(d.join(n,`lerna.json`));case 29:s=e.sent,s&&(a={type:`lerna`,packageGlobs:s.packages||[`packages/*`]}),e.next=37;break;case 33:if(e.prev=33,e.t1=e.catch(26),e.t1.code===`ENOENT`){e.next=37;break}throw e.t1;case 37:if(a){e.next=42;break}if(c={dir:n,packageJson:i},i.name){e.next=41;break}throw new _([`package.json`]);case 41:return e.abrupt(`return`,{tool:`root`,root:c,packages:[c]});case 42:return e.next=44,p(a.packageGlobs,{cwd:n,onlyDirectories:!0,expandDirectories:!1,ignore:[`**/node_modules`]});case 44:return l=e.sent,f=l.map(function(e){return d.resolve(n,e)}),m=[],e.next=49,Promise.all(f.sort().map(function(e){return u.readJson(d.join(e,`package.json`)).then(function(t){return t.name||m.push(d.relative(n,d.join(e,`package.json`))),{packageJson:t,dir:e}}).catch(function(e){if(e.code===`ENOENT`)return null;throw e})}));case 49:if(e.t2=function(e){return e},v=e.sent.filter(e.t2),m.length===0){e.next=54;break}throw m.sort(),new _(m);case 54:return e.abrupt(`return`,{tool:a.type,root:{dir:n,packageJson:i},packages:v});case 55:case`end`:return e.stop()}},e,null,[[14,21],[26,33]])})),y.apply(this,arguments)}function b(e){var t=g.findRootSync(e),n=u.readJsonSync(d.join(t,`package.json`)),r;if(n.workspaces)Array.isArray(n.workspaces)?r={type:`yarn`,packageGlobs:n.workspaces}:n.workspaces.packages&&(r={type:`yarn`,packageGlobs:n.workspaces.packages});else if(n.bolt&&n.bolt.workspaces)r={type:`bolt`,packageGlobs:n.bolt.workspaces};else{try{var i=m.sync(d.join(t,`pnpm-workspace.yaml`));i&&i.packages&&(r={type:`pnpm`,packageGlobs:i.packages})}catch(e){if(e.code!==`ENOENT`)throw e}if(!r)try{var a=u.readJsonSync(d.join(t,`lerna.json`));a&&(r={type:`lerna`,packageGlobs:a.packages||[`packages/*`]})}catch(e){if(e.code!==`ENOENT`)throw e}}if(!r){var o={dir:t,packageJson:n};if(!n.name)throw new _([`package.json`]);return{tool:`root`,root:o,packages:[o]}}var s=f.sync(r.packageGlobs,{cwd:t,onlyDirectories:!0,expandDirectories:!1,ignore:[`**/node_modules`]}).map(function(e){return d.resolve(t,e)}),c=[],l=s.sort().map(function(e){try{var n=u.readJsonSync(d.join(e,`package.json`));return n.name||c.push(d.relative(t,d.join(e,`package.json`))),{packageJson:n,dir:e}}catch(e){if(e.code===`ENOENT`)return null;throw e}}).filter(function(e){return e});if(c.length!==0)throw c.sort(),new _(c);return{tool:r.type,root:{dir:t,packageJson:n},packages:l}}e.PackageJsonMissingNameError=_,e.getPackages=v,e.getPackagesSync=b})),dr=e(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=lr():t.exports=ur()})),fr=e((e=>{var t=e&&e.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=function(e){t(n,e);function n(t){var n=this.constructor;t===void 0&&(t=``);var r=e.call(this,t)||this;return r.message=t,Object.setPrototypeOf(r,n.prototype),delete r.stack,r.name=n.name,r._error=Error(),r}return Object.defineProperty(n.prototype,`stack`,{get:function(){if(this._stack)return this._stack;var e=Object.getPrototypeOf(this),t=1;loop:for(;e;){switch(e){case n.prototype:break loop;case Object.prototype:t=1;break loop;default:t++;break}e=Object.getPrototypeOf(e)}var r=(this._error.stack||``).match(/.+/g)||[],i=this.name;return this.message&&(i+=`: `+this.message),r.splice(0,t+1,i),this._stack=r.join(` `)},enumerable:!0,configurable:!0}),n}(Error);e.ExtendableError=n,e.default=n})),pr=t(z()),mr=dr(),hr=t(fr()),gr=class extends hr.default{constructor(e,t){super(`${t}, exit code: ${e}`),this.code=e}},_r=class extends hr.default{},vr=class extends hr.default{constructor(e){super(e)}};async function yr(e){let t=i.resolve(e,`.changeset`,`pre.json`),n;try{let e=await pr.readFile(t,`utf8`);try{n=JSON.parse(e)}catch(t){throw t instanceof SyntaxError&&console.error(`error parsing json:`,e),t}}catch(e){if(e.code!==`ENOENT`)throw e}return n}function br(e){return e==null}function xr(e){return typeof e==`object`&&!!e}function Sr(e){return Array.isArray(e)?e:br(e)?[]:[e]}function Cr(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;ns&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function Ar(e,t){return Y.repeat(` `,t-e.length)+e}function jr(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=kr(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=Y.repeat(` `,t.indent)+Ar((e.line-c+1).toString(),u)+` | `+l.str+` `+s;for(l=kr(e.buffer,r[o],i[o],e.position,d),s+=Y.repeat(` `,t.indent)+Ar((e.line+1).toString(),u)+` | `+l.str+` `,s+=Y.repeat(`-`,t.indent+u+3+l.pos)+`^ `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=kr(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=Y.repeat(` `,t.indent)+Ar((e.line+c+1).toString(),u)+` | `+l.str+` `;return s.replace(/\n$/,``)}var Mr=jr,Nr=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],Pr=[`scalar`,`sequence`,`mapping`];function Fr(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function Ir(e,t){if(t||={},Object.keys(t).forEach(function(t){if(Nr.indexOf(t)===-1)throw new Or(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Fr(t.styleAliases||null),Pr.indexOf(this.kind)===-1)throw new Or(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var X=Ir;function Lr(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function Rr(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),oi=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function si(e){return!(e===null||!oi.test(e)||e[e.length-1]===`_`)}function ci(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var li=/^[-+]?[0-9]+e/;function ui(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(Y.isNegativeZero(e))return`-0.0`;return n=e.toString(10),li.test(n)?n.replace(`e`,`.e`):n}function di(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||Y.isNegativeZero(e))}var fi=new X(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:si,construct:ci,predicate:di,represent:ui,defaultStyle:`lowercase`}),pi=Wr.extend({implicit:[Jr,Qr,ai,fi]}),mi=pi,hi=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),gi=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function _i(e){return e===null?!1:hi.exec(e)!==null||gi.exec(e)!==null}function vi(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=hi.exec(e),t===null&&(t=gi.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}function yi(e){return e.toISOString()}var bi=new X(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:_i,construct:vi,instanceOf:Date,represent:yi});function xi(e){return e===`<<`||e===null}var Si=new X(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:xi}),Ci=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function wi(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=Ci;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0}function Ti(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=Ci,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function Ei(e){var t=``,n=0,r,i,a=e.length,o=Ci;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Di(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var Oi=new X(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:wi,construct:Ti,predicate:Di,represent:Ei}),ki=Object.prototype.hasOwnProperty,Ai=Object.prototype.toString;function ji(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}function fa(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var pa=Array(256),ma=Array(256),ha=0;ha<256;ha++)pa[ha]=+!!ua(ha),ma[ha]=ua(ha);function ga(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Hi,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function _a(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Mr(n),new Or(t,n)}function Z(e,t){throw _a(e,t)}function va(e,t){e.onWarning&&e.onWarning.call(null,_a(e,t))}var ya={YAML:function(e,t,n){var r,i,a;e.version!==null&&Z(e,`duplication of %YAML directive`),n.length!==1&&Z(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&Z(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&Z(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&va(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&Z(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],ea.test(r)||Z(e,`ill-formed tag handle (first argument) of the TAG directive`),Ui.call(e.tagMap,r)&&Z(e,`there is a previously declared suffix for "`+r+`" tag handle`),ta.test(i)||Z(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{Z(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function ba(e,t,n,r){var i,a,o,s;if(t1&&(e.result+=Y.repeat(` `,t-1))}function Ea(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(aa(p)||oa(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),aa(i)||n&&oa(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),aa(i)||n&&oa(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),aa(r))break}else if(e.position===e.lineStart&&wa(e)||n&&oa(p))break;else if(ra(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,Q(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(ba(e,a,o,!1),Ta(e,e.line-c),a=o=e.position,!1),ia(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return ba(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function Da(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(ba(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else ra(n)?(ba(e,r,i,!0),Ta(e,Q(e,!1,t)),r=i=e.position):e.position===e.lineStart&&wa(e)?Z(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);Z(e,`unexpected end of the stream within a single quoted scalar`)}function Oa(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return ba(e,n,e.position,!0),e.position++,!0;else if(s===92){if(ba(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ra(s))Q(e,!1,t);else if(s<256&&pa[s])e.result+=ma[s],e.position++;else if((o=ca(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=sa(s))>=0?a=(a<<4)+o:Z(e,`expected hexadecimal character`);e.result+=da(a),e.position++}else Z(e,`unknown escape sequence`);n=r=e.position}else ra(s)?(ba(e,n,r,!0),Ta(e,Q(e,!1,t)),n=r=e.position):e.position===e.lineStart&&wa(e)?Z(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);Z(e,`unexpected end of the stream within a double quoted scalar`)}function ka(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(Q(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&Z(e,`expected the node content, but found ','`):Z(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),aa(l)&&(d=f=!0,e.position++,Q(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,Ia(e,t,Wi,!1,!0),g=e.tag,h=e.result,Q(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),Q(e,!0,t),Ia(e,t,Wi,!1,!0),_=e.result),p?Sa(e,s,m,g,h,_,r,i,a):d?s.push(Sa(e,null,m,g,h,_,r,i,a)):s.push(h),Q(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}Z(e,`unexpected end of the stream within a flow collection`)}function Aa(e,t){var n,r,i=Ji,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Ji===i?i=d===43?Xi:Yi:Z(e,`repeat of a chomping mode identifier`);else if((u=la(d))>=0)u===0?Z(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?Z(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(ia(d)){do d=e.input.charCodeAt(++e.position);while(ia(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ra(d)&&d!==0)}for(;d!==0;){for(Ca(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),ra(d)){c++;continue}if(e.lineIndentt)&&c!==0)Z(e,`bad indentation of a sequence entry`);else if(e.lineIndentt)&&(g&&(o=e.line,s=e.lineStart,c=e.position),Ia(e,t,qi,!0,i)&&(g?m=e.result:h=e.result),g||(Sa(e,d,f,p,m,h,o,s,c),p=m=h=null),Q(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)Z(e,`bad indentation of a mapping entry`);else if(e.lineIndentt?c=1:e.lineIndent===t?c=0:e.lineIndentt?c=1:e.lineIndent===t?c=0:e.lineIndent tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d`),e.result!==null&&m.kind!==e.kind&&Z(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Z(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}function La(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Q(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!aa(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&Z(e,`directive name must not be less than one character in length`);o!==0;){for(;ia(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ra(o));break}if(ra(o))break;for(n=e.position;o!==0&&!aa(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&Ca(e),Ui.call(ya,r)?ya[r](e,r,i):va(e,`unknown document directive "`+r+`"`)}if(Q(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Q(e,!0,-1)):a&&Z(e,`directives end mark is expected`),Ia(e,e.lineIndent-1,qi,!1,!0),Q(e,!0,-1),e.checkLineBreaks&&Qi.test(e.input.slice(t,e.position))&&va(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&wa(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Q(e,!0,-1));return}if(e.position=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function No(e){return/^\n* /.test(e)}var Po=1,Fo=2,Io=3,Lo=4,Ro=5;function zo(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=Ao(Mo(e,0))&&jo(Mo(e,e.length-1));if(t||o)for(c=0;c=65536?c+=2:c++){if(l=Mo(e,c),!Do(l))return Ro;h&&=ko(l,u,s),u=l}else{for(c=0;c=65536?c+=2:c++){if(l=Mo(e,c),l===Ka)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!Do(l))return Ro;h&&=ko(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?Po:a===xo?Ro:Fo:n>9&&No(e)?Ro:o?a===xo?Ro:Fo:f?Lo:Io}function Bo(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===xo?`""`:`''`;if(!e.noCompatMode&&(go.indexOf(t)!==-1||_o.test(t)))return e.quotingType===xo?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return To(e,t)}switch(zo(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case Po:return t;case Fo:return`'`+t.replace(/'/g,`''`)+`'`;case Io:return`|`+Vo(t,e.indent)+Ho(Co(t,a));case Lo:return`>`+Vo(t,e.indent)+Ho(Co(Uo(t,o),a));case Ro:return`"`+Go(t)+`"`;default:throw new Or(`impossible error: invalid scalar style`)}}()}function Vo(e,t){var n=No(e)?String(t):``,r=e[e.length-1]===` `;return n+(r&&(e[e.length-2]===` `||e===` `)?`+`:r?``:`-`)+` `}function Ho(e){return e[e.length-1]===` `?e.slice(0,-1):e}function Uo(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(` `);return r=r===-1?e.length:r,n.lastIndex=r,Wo(e.slice(0,r),t)}(),i=e[0]===` `||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?` `:``)+Wo(c,t),i=a}return r}function Wo(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=` `+e.slice(i,a),i=a+1),o=s;return c+=` `,e.length-i>t&&o>i?c+=e.slice(i,o)+` `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Go(e){for(var t=``,n=0,r,i=0;i=65536?i+=2:i++)n=Mo(e,i),r=$[n],!r&&Do(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||yo(n);return t}function Ko(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),Zo(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function Yo(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,u,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new Or(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s1024,d&&(e.dump&&Ka===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=wo(e,t)),Zo(e,t+1,u,!0,d)&&(e.dump&&Ka===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}function Xo(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}function Zo(e,t,n,r,i,a,o){e.tag=null,e.dump=n,Xo(e,n,!1)||Xo(e,n,!0);var s=Ha.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var u=s===`[object Object]`||s===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(Yo(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(Jo(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?qo(e,t-1,e.dump,i):qo(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(Ko(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&Bo(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new Or(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}function Qo(e,t){var n=[],r=[],i,a;for($o(e,n,r),i=0,a=r.length;it?e.slice(0,t)+`...`:e}function cs(e,t){for(let n of e){if(typeof n.name!=`string`||n.name.trim()===``)throw Error(`could not parse changeset - invalid package name in frontmatter.\nExpected a non-empty string for package name, but got: ${JSON.stringify(n.name)}\nChangeset contents:\n${ss(t)}`);if(typeof n.type!=`string`)throw Error(`could not parse changeset - invalid release type for package "${n.name}".\nExpected a string for release type, but got: ${typeof n.type}\nChangeset contents:\n${ss(t)}`);if(!os.includes(n.type))throw Error(`could not parse changeset - invalid version type ${JSON.stringify(n.type)} for package "${n.name}".\nValid version types are: ${os.join(`, `)}\nChangeset contents:\n${ss(t)}`)}}function ls(e){let t=e.trim();if(!t)throw Error(`could not parse changeset - file is empty. Changesets must have frontmatter with package names and version types. Example:\n${as}\n\nYour changeset summary here.`);let n=is.exec(e);if(!n)throw Error(`could not parse changeset - missing or invalid frontmatter. Changesets must start with frontmatter delimited by "---". Example:\n${as}\n\nYour changeset summary here.\nReceived content:\n${ss(t)}`);let[,r,i]=n,a=i.trim(),o,s;try{s=rs.load(r)}catch(e){throw Error(`could not parse changeset - invalid YAML in frontmatter. The frontmatter between the "---" delimiters must be valid YAML. YAML error: ${e instanceof Error?e.message:String(e)}\nFrontmatter content:\n${r}`)}if(s){if(typeof s!=`object`||Array.isArray(s))throw Error(`could not parse changeset - frontmatter must be an object mapping package names to version types.\nExpected format:\n${as}\nReceived:\n${r}`);o=Object.entries(s).map(([e,t])=>({name:e,type:t}))}else o=[];return cs(o,e),{releases:o,summary:a}}var us=e(((e,t)=>{t.exports=o,o.sync=s;var r=n(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r{t.exports=i,i.sync=a;var r=n(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!1:o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),fs=e(((e,t)=>{n(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?us():ds();t.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),ps=e(((e,t)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=n(`path`),a=r?`;`:`:`,o=fs(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};t.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),hs=e(((e,t)=>{let r=n(`path`),i=ps(),a=ms();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}t.exports=s})),gs=e(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),_s=e(((e,t)=>{t.exports=/^#!(.*)/})),vs=e(((e,t)=>{let n=_s();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),ys=e(((e,t)=>{let r=n(`fs`),i=vs();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}t.exports=a})),bs=e(((e,t)=>{let r=n(`path`),i=hs(),a=gs(),o=ys(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}t.exports=f})),xs=e(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),Ss=e(((e,t)=>{let r=n(`child_process`),i=bs(),a=xs();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}t.exports=o,t.exports.spawn=o,t.exports.sync=s,t.exports._parse=i,t.exports._enoent=a})),Cs=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.signals=void 0,e.signals=[],e.signals.push(`SIGHUP`,`SIGINT`,`SIGTERM`),process.platform!==`win32`&&e.signals.push(`SIGALRM`,`SIGABRT`,`SIGVTALRM`,`SIGXCPU`,`SIGXFSZ`,`SIGUSR2`,`SIGTRAP`,`SIGSYS`,`SIGQUIT`,`SIGIOT`),process.platform===`linux`&&e.signals.push(`SIGIO`,`SIGPOLL`,`SIGPWR`,`SIGSTKFLT`)})),ws=e((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.unload=e.load=e.onExit=e.signals=void 0;let n=Cs();Object.defineProperty(e,`signals`,{enumerable:!0,get:function(){return n.signals}});let r=e=>!!e&&typeof e==`object`&&typeof e.removeListener==`function`&&typeof e.emit==`function`&&typeof e.reallyExit==`function`&&typeof e.listeners==`function`&&typeof e.kill==`function`&&typeof e.pid==`number`&&typeof e.on==`function`,i=Symbol.for(`signal-exit emitter`),a=globalThis,o=Object.defineProperty.bind(Object);var s=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(a[i])return a[i];o(a,i,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let n=this.listeners[e],r=n.indexOf(t);r!==-1&&(r===0&&n.length===1?n.length=0:n.splice(r,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(let i of this.listeners[e])r=i(t,n)===!0||r;return e===`exit`&&(r=this.emit(`afterExit`,t,n)||r),r}},c=class{};let l=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}});var u=class extends c{onExit(){return()=>{}}load(){}unload(){}},d=class extends c{#e=f.platform===`win32`?`SIGINT`:`SIGHUP`;#t=new s;#n;#r;#i;#a={};#o=!1;constructor(e){super(),this.#n=e,this.#a={};for(let t of n.signals)this.#a[t]=()=>{let n=this.#n.listeners(t),{count:r}=this.#t,i=e;if(typeof i.__signal_exit_emitter__==`object`&&typeof i.__signal_exit_emitter__.count==`number`&&(r+=i.__signal_exit_emitter__.count),n.length===r){this.unload();let n=this.#t.emit(`exit`,null,t),r=t===`SIGHUP`?this.#e:t;n||e.kill(e.pid,r)}};this.#i=e.reallyExit,this.#r=e.emit}onExit(e,t){if(!r(this.#n))return()=>{};this.#o===!1&&this.load();let n=t?.alwaysLast?`afterExit`:`exit`;return this.#t.on(n,e),()=>{this.#t.removeListener(n,e),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#o){this.#o=!0,this.#t.count+=1;for(let e of n.signals)try{let t=this.#a[e];t&&this.#n.on(e,t)}catch{}this.#n.emit=(e,...t)=>this.#c(e,...t),this.#n.reallyExit=e=>this.#s(e)}}unload(){this.#o&&(this.#o=!1,n.signals.forEach(e=>{let t=this.#a[e];if(!t)throw Error(`Listener not defined for signal: `+e);try{this.#n.removeListener(e,t)}catch{}}),this.#n.emit=this.#r,this.#n.reallyExit=this.#i,--this.#t.count)}#s(e){return r(this.#n)?(this.#n.exitCode=e||0,this.#t.emit(`exit`,this.#n.exitCode,null),this.#i.call(this.#n,this.#n.exitCode)):0}#c(e,...t){let n=this.#r;if(e===`exit`&&r(this.#n)){typeof t[0]==`number`&&(this.#n.exitCode=t[0]);let r=n.call(this.#n,e,...t);return this.#t.emit(`exit`,this.#n.exitCode,null),r}else return n.call(this.#n,e,...t)}};let f=globalThis.process;t=l(r(f)?new d(f):new u),e.onExit=t.onExit,e.load=t.load,e.unload=t.unload})),Ts=e(((e,t)=>{let r=n(`events`);var i=class extends Promise{constructor(e){let t,n;super((e,r)=>{t=e,n=r}),e(t,n,this)}};Object.assign(i.prototype,r.prototype),t.exports=i})),Es=e(((e,t)=>{let r=Ss(),{onExit:i}=ws();n(`events`);let a=Ts(),o=new Set;i(()=>{for(let e of o)e.kill(`SIGTERM`)});function s(e,t,n){return new a((i,a,s)=>{let c=r(e,t,n),l=Buffer.from(``),u=Buffer.from(``);o.add(c),c.stdout&&c.stdout.on(`data`,e=>{l=Buffer.concat([l,e]),s.emit(`stdout`,e)}),c.stderr&&c.stderr.on(`data`,e=>{u=Buffer.concat([u,e]),s.emit(`stderr`,e)}),c.on(`error`,e=>{o.delete(c),a(e)}),c.on(`close`,e=>{o.delete(c),i({code:e,stdout:l,stderr:u})})})}t.exports=s,t.exports.ChildProcessPromise=a})),Ds=e(((e,t)=>{(function(n){e&&typeof e==`object`&&t!==void 0?t.exports=n():typeof define==`function`&&define.amd?define([],n):typeof window<`u`?window.isWindows=n():typeof global<`u`?global.isWindows=n():typeof self<`u`?self.isWindows=n():this.isWindows=n()})(function(){return function(){return process&&(process.platform===`win32`||/^(msys|cygwin)$/.test(process.env.OSTYPE))}})})),Os=e(((e,t)=>{let r=n(`path`);t.exports=Ds()()?i:r.resolve;function i(e){if(arguments.length===0)return r.resolve();if(typeof e!=`string`)return r.resolve(e);if(e[1]===`:`){let t=e[0].charCodeAt();(t<65||t>90)&&(e=`${e[0].toUpperCase()}${e.substr(1)}`)}return e.endsWith(`:`)?e:r.resolve(e)}})),ks=e(((e,t)=>{let r=Os(),i=n(`path`);function a(e,t){let n=`${r(e)}${i.sep}`;return`${r(t)}${i.sep}`.startsWith(n)}a.strict=function(e,t){let n=`${r(e)}${i.sep}`,a=`${r(t)}${i.sep}`;return a!==n&&a.startsWith(n)},t.exports=a})),As=t(Es()),js=t(ks()),Ms=t(bt());async function Ns(e,t){let n=await(0,As.default)(`git`,[`merge-base`,t,`HEAD`],{cwd:e});if(n.code!==0)throw Error(`Failed to find where HEAD diverged from "${t}". Does "${t}" exist and it's synced with remote?`);return n.stdout.toString().trim()}async function Ps({cwd:e}){let t=(await(0,As.default)(`git`,[`rev-parse`,`--is-shallow-repository`],{cwd:e})).stdout.toString().trim();if(t===`--is-shallow-repository`){let t=(await(0,As.default)(`git`,[`rev-parse`,`--git-dir`],{cwd:e})).stdout.toString().trim(),n=i.resolve(e,t);return r.existsSync(i.join(n,`shallow`))}else return t===`true`}async function Fs({cwd:e}){let{stdout:t,code:n,stderr:r}=await(0,As.default)(`git`,[`rev-parse`,`--show-toplevel`],{cwd:e});if(n!==0)throw Error(r.toString());return t.toString().trim().replace(/\n|\r/g,``)}async function Is({cwd:e,ref:t,fullPath:n=!1}){let r=await Ns(e,t),a=await(0,As.default)(`git`,[`diff`,`--name-only`,`--no-relative`,r],{cwd:e});if(a.code!==0)throw Error(`Failed to diff against ${r}. Is ${r} a valid ref?`);let o=a.stdout.toString().trim().split(` `).filter(e=>e);if(!n)return o;let s=await Fs({cwd:e});return o.map(e=>i.resolve(s,e))}async function Ls({cwd:e,ref:t}){try{let n=await(0,As.default)(`git`,[`diff`,`--name-only`,`--diff-filter=d`,`--no-relative`,await Ns(e,t)],{cwd:e}),r=/.changeset\/[^/]+\.md$/;return n.stdout.toString().trim().split(` `).filter(e=>r.test(e))}catch(e){if(e instanceof gr)return[];throw e}}async function Rs({cwd:e,ref:t,changedFilePatterns:n=[`**`]}){let r=await Is({ref:t,cwd:e,fullPath:!0});return[...(await(0,mr.getPackages)(e)).packages].sort((e,t)=>t.dir.length-e.dir.length).filter(e=>{let t=[];for(let n=r.length-1;n>=0;n--){let i=r[n];if((0,js.default)(e.dir,i)){r.splice(n,1);let a=i.slice(e.dir.length+1);t.push(a)}}return t.length>0&&(0,Ms.default)(t,n).length>0})}var zs=e(((e,t)=>{let n=process||{},r=n.argv||[],i=n.env||{},a=!(i.NO_COLOR||r.includes(`--no-color`))&&(!!i.FORCE_COLOR||r.includes(`--color`)||n.platform===`win32`||(n.stdout||{}).isTTY&&i.TERM!==`dumb`||!!i.CI),o=(e,t,n=e)=>r=>{let i=``+r,a=i.indexOf(t,e.length);return~a?e+s(i,t,n,a)+t:e+i+t},s=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},c=(e=a)=>{let t=e?o:()=>String;return{isColorSupported:e,reset:t(`\x1B[0m`,`\x1B[0m`),bold:t(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:t(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:t(`\x1B[3m`,`\x1B[23m`),underline:t(`\x1B[4m`,`\x1B[24m`),inverse:t(`\x1B[7m`,`\x1B[27m`),hidden:t(`\x1B[8m`,`\x1B[28m`),strikethrough:t(`\x1B[9m`,`\x1B[29m`),black:t(`\x1B[30m`,`\x1B[39m`),red:t(`\x1B[31m`,`\x1B[39m`),green:t(`\x1B[32m`,`\x1B[39m`),yellow:t(`\x1B[33m`,`\x1B[39m`),blue:t(`\x1B[34m`,`\x1B[39m`),magenta:t(`\x1B[35m`,`\x1B[39m`),cyan:t(`\x1B[36m`,`\x1B[39m`),white:t(`\x1B[37m`,`\x1B[39m`),gray:t(`\x1B[90m`,`\x1B[39m`),bgBlack:t(`\x1B[40m`,`\x1B[49m`),bgRed:t(`\x1B[41m`,`\x1B[49m`),bgGreen:t(`\x1B[42m`,`\x1B[49m`),bgYellow:t(`\x1B[43m`,`\x1B[49m`),bgBlue:t(`\x1B[44m`,`\x1B[49m`),bgMagenta:t(`\x1B[45m`,`\x1B[49m`),bgCyan:t(`\x1B[46m`,`\x1B[49m`),bgWhite:t(`\x1B[47m`,`\x1B[49m`),blackBright:t(`\x1B[90m`,`\x1B[39m`),redBright:t(`\x1B[91m`,`\x1B[39m`),greenBright:t(`\x1B[92m`,`\x1B[39m`),yellowBright:t(`\x1B[93m`,`\x1B[39m`),blueBright:t(`\x1B[94m`,`\x1B[39m`),magentaBright:t(`\x1B[95m`,`\x1B[39m`),cyanBright:t(`\x1B[96m`,`\x1B[39m`),whiteBright:t(`\x1B[97m`,`\x1B[39m`),bgBlackBright:t(`\x1B[100m`,`\x1B[49m`),bgRedBright:t(`\x1B[101m`,`\x1B[49m`),bgGreenBright:t(`\x1B[102m`,`\x1B[49m`),bgYellowBright:t(`\x1B[103m`,`\x1B[49m`),bgBlueBright:t(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:t(`\x1B[105m`,`\x1B[49m`),bgCyanBright:t(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:t(`\x1B[107m`,`\x1B[49m`)}};t.exports=c(),t.exports.createColors=c})),Bs=e(((e,t)=>{let n=(e,t,n)=>new Promise((r,i)=>{if(n=Object.assign({concurrency:1/0},n),typeof t!=`function`)throw TypeError(`Mapper function is required`);let{concurrency:a}=n;if(!(typeof a==`number`&&a>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${a}\` (${typeof a})`);let o=[],s=e[Symbol.iterator](),c=!1,l=!1,u=0,d=0,f=()=>{if(c)return;let e=s.next(),n=d;if(d++,e.done){l=!0,u===0&&r(o);return}u++,Promise.resolve(e.value).then(e=>t(e,n)).then(e=>{o[n]=e,u--,f()},e=>{c=!0,i(e)})};for(let e=0;e{let n=Bs(),r=async(e,t,r)=>(await n(e,(e,n)=>Promise.all([t(e,n),e]),r)).filter(e=>!!e[0]).map(e=>e[1]);t.exports=r,t.exports.default=r}))()),Hs=t(zs());function Us(e,t){let n=`🦋 `+(t===void 0?``:` `+t);return n+a.format(``,...e).split(` `).join(` `+n+` `)}function Ws(...e){console.warn(Us(e,Hs.default.yellow(`warn`)))}function Gs(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ks(e){var t=Gs(e,`string`);return typeof t==`symbol`?t:t+``}function qs(e,t,n){return(t=Ks(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ys(e){for(var t=1;t(await pr.lstat(i.join(e,t))).isDirectory())).map(async t=>{let n=i.join(e,t,`changes.json`),[r,a]=await Promise.all([pr.readFile(i.join(e,t,`changes.md`),`utf-8`),pr.readJson(n)]);return{releases:a.releases,summary:r,id:t}});return Promise.all(n)}async function $s(e,t){let n=await Qs(e,t);return n.length===0?[]:(Ws(Xs),Ws(`There were old changesets from version 1 found`),Ws(`These are being applied now but the dependents graph may have changed`),Ws(`Make sure you validate all your dependencies`),Ws(`In a future major version, we will no longer apply these old changesets, and will instead throw here`),Ws(Zs),n)}async function ec(e,t,n){let r=(await Ls({cwd:t,ref:n})).map(e=>e.split(`/`).pop());return e.filter(e=>r.includes(e))}async function tc(e,t){let n=i.join(e,`.changeset`),r;try{r=await pr.default.readdir(n)}catch(e){throw e.code===`ENOENT`?Error(`There is no .changeset directory in this project`):e}t!==void 0&&(r=await ec(r,n,t));let a=$s(n,r),o=r.filter(e=>!e.startsWith(`.`)&&e.endsWith(`.md`)&&!/^README\.md$/i.test(e)).map(async e=>Ys(Ys({},ls(await pr.default.readFile(i.join(n,e),`utf-8`))),{},{id:e.replace(`.md`,``)}));return[...await a,...await Promise.all(o)]}var nc=e(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),rc=e(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),ic=e(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=rc(),a=nc();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),ac=e(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),oc=e(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),sc=e(((e,t)=>{let n=nc(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=rc(),{safeRe:a,t:o}=ic(),s=ac(),{compareIdentifiers:c}=oc();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.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 e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw 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 e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),cc=e(((e,t)=>{let n=sc();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),lc=e(((e,t)=>{let n=cc();t.exports=(e,t,r)=>n(e,t,r)<0}));export{bt as _,ic as a,o as b,tc as c,Rs as d,Ps as f,dr as g,_r as h,ac as i,Ws as l,vr as m,cc as n,rc as o,yr as p,sc as r,nc as s,lc as t,zs as u,z as v,s as y};