deadbolt-cli 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -9
- package/dist/deadbolt-cli.js +1 -1
- package/package.json +1 -1
package/dist/deadbolt-cli.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*! For license information please see deadbolt-cli.js.LICENSE.txt */
|
|
3
|
-
const fs=require("fs"),path=require("path"),candidateModuleDirs=[path.join(__dirname,"../release/app/node_modules"),path.join(process.cwd(),"release/app/node_modules")];for(const t of candidateModuleDirs)fs.existsSync(t)&&!module.paths.includes(t)&&module.paths.push(t);(()=>{var t={6584(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4988);class i extends n.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const t=s.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}n.defineEventAttribute(i.prototype,"abort");const s=new WeakMap;Object.defineProperties(i.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(i.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class o{constructor(){a.set(this,function(){const t=Object.create(i.prototype);return n.EventTarget.call(t),s.set(t,!1),t}())}get signal(){return l(this)}abort(){var t;t=l(this),!1===s.get(t)&&(s.set(t,!0),t.dispatchEvent({type:"abort"}))}}const a=new WeakMap;function l(t){const e=a.get(t);if(null==e)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return e}Object.defineProperties(o.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(o.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),e.AbortController=o,e.AbortSignal=i,e.default=o,t.exports=o,t.exports.AbortController=t.exports.default=o,t.exports.AbortSignal=i},4083(t,e,r){"use strict";t=r.nmd(t);const n=(t,e)=>(...r)=>`[${t(...r)+e}m`,i=(t,e)=>(...r)=>{const n=t(...r);return`[${38+e};5;${n}m`},s=(t,e)=>(...r)=>{const n=t(...r);return`[${38+e};2;${n[0]};${n[1]};${n[2]}m`},o=t=>t,a=(t,e,r)=>[t,e,r],l=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{const n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let u;const h=(t,e,n,i)=>{void 0===u&&(u=r(734));const s=i?10:0,o={};for(const[r,i]of Object.entries(u)){const a="ansi16"===r?"ansi":r;r===e?o[a]=t(n,s):"object"==typeof i&&(o[a]=t(i[e],s))}return o};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[r,n]of Object.entries(e)){for(const[r,i]of Object.entries(n))e[r]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="[39m",e.bgColor.close="[49m",l(e.color,"ansi",(()=>h(n,"ansi16",o,!1))),l(e.color,"ansi256",(()=>h(i,"ansi256",o,!1))),l(e.color,"ansi16m",(()=>h(s,"rgb",a,!1))),l(e.bgColor,"ansi",(()=>h(n,"ansi16",o,!0))),l(e.bgColor,"ansi256",(()=>h(i,"ansi256",o,!0))),l(e.bgColor,"ansi16m",(()=>h(s,"rgb",a,!0))),e}})},8599(t,e,r){var n=r(3735),i=r(6928),s=r(5970),o=r(6245),a=r(299),l=r(1331),u=r(6492),h=t.exports={},c=/[\/\\]/g;h.exists=function(){var t=i.join.apply(i,arguments);return n.existsSync(t)},h.expand=function(...t){var e=l(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(0===r.length)return[];var h=function(t,e){var r=[];return s(t).forEach((function(t){var n=0===t.indexOf("!");n&&(t=t.slice(1));var i=e(t);r=n?o(r,i):a(r,i)})),r}(r,(function(t){return u.sync(t,e)}));return e.filter&&(h=h.filter((function(t){t=i.join(e.cwd||"",t);try{return"function"==typeof e.filter?e.filter(t):n.statSync(t)[e.filter]()}catch(t){return!1}}))),h},h.expandMapping=function(t,e,r){r=Object.assign({rename:function(t,e){return i.join(t||"",e)}},r);var n=[],s={};return h.expand(r,t).forEach((function(t){var o=t;r.flatten&&(o=i.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(t=i.join(r.cwd,t)),a=a.replace(c,"/"),t=t.replace(c,"/"),s[a]?s[a].src.push(t):(n.push({src:[t],dest:a}),s[a]=n[n.length-1])})),n},h.normalizeFilesArray=function(t){var e=[];return t.forEach((function(t){("src"in t||"dest"in t)&&e.push(t)})),0===e.length?[]:e=_(e).chain().forEach((function(t){"src"in t&&t.src&&(Array.isArray(t.src)?t.src=s(t.src):t.src=[t.src])})).map((function(t){var e=Object.assign({},t);if(delete e.src,delete e.dest,t.expand)return h.expandMapping(t.src,t.dest,e).map((function(e){var r=Object.assign({},t);return r.orig=Object.assign({},t),r.src=e.src,r.dest=e.dest,["expand","cwd","flatten","rename","ext"].forEach((function(t){delete r[t]})),r}));var r=Object.assign({},t);return r.orig=Object.assign({},t),"src"in r&&Object.defineProperty(r,"src",{enumerable:!0,get:function r(){var n;return"result"in r||(n=t.src,n=Array.isArray(n)?s(n):[n],r.result=h.expand(e,n)),r.result}}),"dest"in r&&(r.dest=t.dest),r})).flatten().value()}},1789(t,e,r){var n=r(3735),i=r(6928),s=r(1232),o=r(85),a=r(4100),l=r(4684),u=(r(2203).Stream,r(1702).PassThrough),h=t.exports={};h.file=r(8599),h.collectStream=function(t,e){var r=[],n=0;t.on("error",e),t.on("data",(function(t){r.push(t),n+=t.length})),t.on("end",(function(){var t=Buffer.alloc(n),i=0;r.forEach((function(e){e.copy(t,i),i+=e.length})),e(null,t)}))},h.dateify=function(t){return(t=t||new Date)instanceof Date||(t="string"==typeof t?new Date(t):new Date),t},h.defaults=function(t,e,r){var n=arguments;return n[0]=n[0]||{},l(...n)},h.isStream=function(t){return s(t)},h.lazyReadStream=function(t){return new o.Readable((function(){return n.createReadStream(t)}))},h.normalizeInputSource=function(t){return null===t?Buffer.alloc(0):"string"==typeof t?Buffer.from(t):h.isStream(t)?t.pipe(new u):t},h.sanitizePath=function(t){return a(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")},h.trailingSlashIt=function(t){return"/"!==t.slice(-1)?t+"/":t},h.unixifyPath=function(t){return a(t,!1).replace(/^\w+:/,"")},h.walkdir=function(t,e,r){var s=[];"function"==typeof e&&(r=e,e=t),n.readdir(t,(function(o,a){var l,u,c=0;if(o)return r(o);!function o(){if(!(l=a[c++]))return r(null,s);u=i.join(t,l),n.stat(u,(function(t,n){s.push({path:u,relative:i.relative(e,u).replace(/\\/g,"/"),stats:n}),n&&n.isDirectory()?h.walkdir(u,e,(function(t,e){if(t)return r(t);e.forEach((function(t){s.push(t)})),o()})):o()}))}()}))}},9259(t,e,r){"use strict";const{SymbolDispose:n}=r(6638),{AbortError:i,codes:s}=r(1899),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:l}=r(7787),u=r(5318),{ERR_INVALID_ARG_TYPE:h}=s;let c;t.exports.addAbortSignal=function(e,r){if(((t,e)=>{if("object"!=typeof t||!("aborted"in t))throw new h(e,"AbortSignal",t)})(e,"signal"),!o(r)&&!a(r))throw new h("stream",["ReadableStream","WritableStream","Stream"],r);return t.exports.addAbortSignalNoValidate(e,r)},t.exports.addAbortSignalNoValidate=function(t,e){if("object"!=typeof t||!("aborted"in t))return e;const s=o(e)?()=>{e.destroy(new i(void 0,{cause:t.reason}))}:()=>{e[l](new i(void 0,{cause:t.reason}))};if(t.aborted)s();else{c=c||r(3016).addAbortListener;const i=c(t,s);u(e,i[n])}return e}},6225(t,e,r){"use strict";const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r(6638),{Buffer:a}=r(181),{inspect:l}=r(3016);t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}unshift(t){const e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}shift(){if(0===this.length)return;const t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(0===this.length)return"";let e=this.head,r=""+e.data;for(;null!==(e=e.next);)r+=t+e.data;return r}concat(t){if(0===this.length)return a.alloc(0);const e=a.allocUnsafe(t>>>0);let r=this.head,n=0;for(;r;)s(e,r.data,n),n+=r.data.length,r=r.next;return e}consume(t,e){const r=this.head.data;if(t<r.length){const e=r.slice(0,t);return this.head.data=r.slice(t),e}return t===r.length?this.shift():e?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[i](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let e="",r=this.head,i=0;do{const s=r.data;if(!(t>s.length)){t===s.length?(e+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(e+=n(s,0,t),this.head=r,r.data=n(s,t));break}e+=s,t-=s.length,++i}while(null!==(r=r.next));return this.length-=i,e}_getBuffer(t){const e=a.allocUnsafe(t),r=t;let n=this.head,i=0;do{const a=n.data;if(!(t>a.length)){t===a.length?(s(e,a,r-t),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(e,new o(a.buffer,a.byteOffset,t),r-t),this.head=n,n.data=a.slice(t));break}s(e,a,r-t),t-=a.length,++i}while(null!==(n=n.next));return this.length-=i,e}[Symbol.for("nodejs.util.inspect.custom")](t,e){return l(this,{...e,depth:0,customInspect:!1})}}},3265(t,e,r){"use strict";const{pipeline:n}=r(1238),i=r(7090),{destroyer:s}=r(9952),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:u,isTransformStream:h,isWritableStream:c,isReadableStream:d}=r(7787),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:g}}=r(1899),b=r(5318);t.exports=function(...t){if(0===t.length)throw new g("streams");if(1===t.length)return i.from(t[0]);const e=[...t];if("function"==typeof t[0]&&(t[0]=i.from(t[0])),"function"==typeof t[t.length-1]){const e=t.length-1;t[e]=i.from(t[e])}for(let r=0;r<t.length;++r)if(o(t[r])||u(t[r])){if(r<t.length-1&&!(a(t[r])||d(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be readable");if(r>0&&!(l(t[r])||c(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be writable")}let r,m,y,w,_;const v=t[0],S=n(t,(function(t){const e=w;w=null,e?e(t):t?_.destroy(t):x||E||_.destroy()})),E=!!(l(v)||c(v)||h(v)),x=!!(a(S)||d(S)||h(S));if(_=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(o(v))_._write=function(t,e,n){v.write(t,e)?n():r=n},_._final=function(t){v.end(),m=t},v.on("drain",(function(){if(r){const t=r;r=null,t()}}));else if(u(v)){const t=(h(v)?v.writable:v).getWriter();_._write=async function(e,r,n){try{await t.ready,t.write(e).catch((()=>{})),n()}catch(t){n(t)}},_._final=async function(e){try{await t.ready,t.close().catch((()=>{})),m=e}catch(t){e(t)}}}const t=h(S)?S.readable:S;b(t,(()=>{if(m){const t=m;m=null,t()}}))}if(x)if(o(S))S.on("readable",(function(){if(y){const t=y;y=null,t()}})),S.on("end",(function(){_.push(null)})),_._read=function(){for(;;){const t=S.read();if(null===t)return void(y=_._read);if(!_.push(t))return}};else if(u(S)){const t=(h(S)?S.readable:S).getReader();_._read=async function(){for(;;)try{const{value:e,done:r}=await t.read();if(!_.push(e))return;if(r)return void _.push(null)}catch{return}}}return _._destroy=function(t,e){t||null===w||(t=new f),y=null,r=null,m=null,null===w?e(t):(w=e,o(S)&&s(S,t))},_}},9952(t,e,r){"use strict";const n=r(4422),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r(1899),{Symbol:a}=r(6638),{kIsDestroyed:l,isDestroyed:u,isFinished:h,isServerRequest:c}=r(7787),d=a("kDestroy"),f=a("kConstruct");function p(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function g(t,e,r){let i=!1;function s(e){if(i)return;i=!0;const s=t._readableState,o=t._writableState;p(e,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(e),e?n.nextTick(b,t,e):n.nextTick(m,t)}try{t._destroy(e||null,s)}catch(e){s(e)}}function b(t,e){y(t,e),m(t)}function m(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(null!=r&&r.emitClose||null!=e&&e.emitClose)&&t.emit("close")}function y(t,e){const r=t._readableState,n=t._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function w(t,e,r){const i=t._readableState,s=t._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?t.destroy(e):e&&(e.stack,s&&!s.errored&&(s.errored=e),i&&!i.errored&&(i.errored=e),r?n.nextTick(y,t,e):y(t,e))}function _(t){let e=!1;function r(r){if(e)return void w(t,null!=r?r:new s);e=!0;const i=t._readableState,o=t._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?t.emit(d,r):r?w(t,r,!0):n.nextTick(v,t)}try{t._construct((t=>{n.nextTick(r,t)}))}catch(t){n.nextTick(r,t)}}function v(t){t.emit(f)}function S(t){return(null==t?void 0:t.setHeader)&&"function"==typeof t.abort}function E(t){t.emit("close")}function x(t,e){t.emit("error",e),n.nextTick(E,t)}t.exports={construct:function(t,e){if("function"!=typeof t._construct)return;const r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(f,e),t.listenerCount(f)>1||n.nextTick(_,t)},destroyer:function(t,e){t&&!u(t)&&(e||h(t)||(e=new o),c(t)?(t.socket=null,t.destroy(e)):S(t)?t.abort():S(t.req)?t.req.abort():"function"==typeof t.destroy?t.destroy(e):"function"==typeof t.close?t.close():e?n.nextTick(x,t,e):n.nextTick(E,t),t.destroyed||(t[l]=!0))},destroy:function(t,e){const r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof e&&e(),this):(p(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?g(this,t,e):this.once(d,(function(r){g(this,i(r,t),e)})),this)},undestroy:function(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=!1===t.readable,t.endEmitted=!1===t.readable),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=!1===e.writable,e.ending=!1===e.writable,e.finished=!1===e.writable)},errorOrDestroy:w}},7090(t,e,r){"use strict";const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:s,ObjectSetPrototypeOf:o}=r(6638);t.exports=u;const a=r(6672),l=r(976);o(u.prototype,a.prototype),o(u,a);{const t=s(l.prototype);for(let e=0;e<t.length;e++){const r=t[e];u.prototype[r]||(u.prototype[r]=l.prototype[r])}}function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),l.call(this,t),t?(this.allowHalfOpen=!1!==t.allowHalfOpen,!1===t.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===t.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let h,c;function d(){return void 0===h&&(h={}),h}n(u.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}}),u.fromWeb=function(t,e){return d().newStreamDuplexFromReadableWritablePair(t,e)},u.toWeb=function(t){return d().newReadableWritablePairFromDuplex(t)},u.from=function(t){return c||(c=r(906)),c(t,"body")}},906(t,e,r){const n=r(4422),i=r(181),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:u,isWritableNodeStream:h,isDuplexNodeStream:c,isReadableStream:d,isWritableStream:f}=r(7787),p=r(5318),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=r(1899),{destroyer:y}=r(9952),w=r(7090),_=r(6672),v=r(976),{createDeferredPromise:S}=r(3016),E=r(5516),x=globalThis.Blob||i.Blob,A=void 0!==x?function(t){return t instanceof x}:function(t){return!1},R=globalThis.AbortController||r(6584).AbortController,{FunctionPrototypeCall:O}=r(6638);class T extends w{constructor(t){super(t),!1===(null==t?void 0:t.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==t?void 0:t.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function k(t){const e=t.readable&&"function"!=typeof t.readable.read?_.wrap(t.readable):t.readable,r=t.writable;let n,i,a,l,u,h=!!s(e),c=!!o(r);function d(t){const e=l;l=null,e?e(t):t&&u.destroy(t)}return u=new T({readableObjectMode:!(null==e||!e.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:h,writable:c}),c&&(p(r,(t=>{c=!1,t&&y(e,t),d(t)})),u._write=function(t,e,i){r.write(t,e)?i():n=i},u._final=function(t){r.end(),i=t},r.on("drain",(function(){if(n){const t=n;n=null,t()}})),r.on("finish",(function(){if(i){const t=i;i=null,t()}}))),h&&(p(e,(t=>{h=!1,t&&y(e,t),d(t)})),e.on("readable",(function(){if(a){const t=a;a=null,t()}})),e.on("end",(function(){u.push(null)})),u._read=function(){for(;;){const t=e.read();if(null===t)return void(a=u._read);if(!u.push(t))return}}),u._destroy=function(t,s){t||null===l||(t=new g),a=null,n=null,i=null,null===l?s(t):(l=s,y(r,t),y(e,t))},u}t.exports=function t(e,r){if(c(e))return e;if(u(e))return k({readable:e});if(h(e))return k({writable:e});if(l(e))return k({writable:!1,readable:!1});if(d(e))return k({readable:_.fromWeb(e)});if(f(e))return k({writable:v.fromWeb(e)});if("function"==typeof e){const{value:t,write:i,final:s,destroy:o}=function(t){let{promise:e,resolve:r}=S();const i=new R,s=i.signal,o=t(async function*(){for(;;){const t=e;e=null;const{chunk:i,done:o,cb:a}=await t;if(n.nextTick(a),o)return;if(s.aborted)throw new g(void 0,{cause:s.reason});({promise:e,resolve:r}=S()),yield i}}(),{signal:s});return{value:o,write(t,e,n){const i=r;r=null,i({chunk:t,done:!1,cb:n})},final(t){const e=r;r=null,e({done:!0,cb:t})},destroy(t,e){i.abort(),e(t)}}}(e);if(a(t))return E(T,t,{objectMode:!0,write:i,final:s,destroy:o});const l=null==t?void 0:t.then;if("function"==typeof l){let e;const r=O(l,t,(t=>{if(null!=t)throw new m("nully","body",t)}),(t=>{y(e,t)}));return e=new T({objectMode:!0,readable:!1,write:i,final(t){s((async()=>{try{await r,n.nextTick(t,null)}catch(e){n.nextTick(t,e)}}))},destroy:o})}throw new m("Iterable, AsyncIterable or AsyncFunction",r,t)}if(A(e))return t(e.arrayBuffer());if(a(e))return E(T,e,{objectMode:!0,writable:!1});if(d(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return T.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable)){return k({readable:null!=e&&e.readable?u(null==e?void 0:e.readable)?null==e?void 0:e.readable:t(e.readable):void 0,writable:null!=e&&e.writable?h(null==e?void 0:e.writable)?null==e?void 0:e.writable:t(e.writable):void 0})}const i=null==e?void 0:e.then;if("function"==typeof i){let t;return O(i,e,(e=>{null!=e&&t.push(e),t.push(null)}),(e=>{y(t,e)})),t=new T({objectMode:!0,writable:!1,read(){}})}throw new b(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},5318(t,e,r){"use strict";const n=r(4422),{AbortError:i,codes:s}=r(1899),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:l,once:u}=r(3016),{validateAbortSignal:h,validateFunction:c,validateObject:d,validateBoolean:f}=r(3533),{Promise:p,PromisePrototypeThen:g,SymbolDispose:b}=r(6638),{isClosed:m,isReadable:y,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:A,isWritableFinished:R,isWritableErrored:O,isNodeStream:T,willEmitClose:k,kIsClosedPromise:M}=r(7787);let P;const I=()=>{};function L(t,e,s){var f,p;if(2===arguments.length?(s=e,e=l):null==e?e=l:d(e,"options"),c(s,"callback"),h(e.signal,"options.signal"),s=u(s),_(t)||A(t))return function(t,e,s){let o=!1,a=I;if(e.signal)if(a=()=>{o=!0,s.call(t,new i(void 0,{cause:e.signal.reason}))},e.signal.aborted)n.nextTick(a);else{P=P||r(3016).addAbortListener;const n=P(e.signal,a),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}const l=(...e)=>{o||n.nextTick((()=>s.apply(t,e)))};return g(t[M].promise,l,l),I}(t,e,s);if(!T(t))throw new o("stream",["ReadableStream","WritableStream","Stream"],t);const L=null!==(f=e.readable)&&void 0!==f?f:w(t),D=null!==(p=e.writable)&&void 0!==p?p:x(t),C=t._writableState,N=t._readableState,j=()=>{t.writable||W()};let F=k(t)&&w(t)===L&&x(t)===D,$=R(t,!1);const W=()=>{$=!0,t.destroyed&&(F=!1),(!F||t.readable&&!L)&&(L&&!B||s.call(t))};let B=v(t,!1);const U=()=>{B=!0,t.destroyed&&(F=!1),(!F||t.writable&&!D)&&(D&&!$||s.call(t))},z=e=>{s.call(t,e)};let H=m(t);const G=()=>{H=!0;const e=O(t)||S(t);return e&&"boolean"!=typeof e?s.call(t,e):L&&!B&&w(t,!0)&&!v(t,!1)?s.call(t,new a):!D||$||R(t,!1)?void s.call(t):s.call(t,new a)},V=()=>{H=!0;const e=O(t)||S(t);if(e&&"boolean"!=typeof e)return s.call(t,e);s.call(t)},q=()=>{t.req.on("finish",W)};!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?D&&!C&&(t.on("end",j),t.on("close",j)):(t.on("complete",W),F||t.on("abort",G),t.req?q():t.on("request",q)),F||"boolean"!=typeof t.aborted||t.on("aborted",G),t.on("end",U),t.on("finish",W),!1!==e.error&&t.on("error",z),t.on("close",G),H?n.nextTick(G):null!=C&&C.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(L||F&&!y(t)||!$&&!1!==E(t))&&(D||F&&!E(t)||!B&&!1!==y(t))?N&&t.req&&t.aborted&&n.nextTick(V):n.nextTick(V);const Y=()=>{s=I,t.removeListener("aborted",G),t.removeListener("complete",W),t.removeListener("abort",G),t.removeListener("request",q),t.req&&t.req.removeListener("finish",W),t.removeListener("end",j),t.removeListener("close",j),t.removeListener("finish",W),t.removeListener("end",U),t.removeListener("error",z),t.removeListener("close",G)};if(e.signal&&!H){const o=()=>{const r=s;Y(),r.call(t,new i(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)n.nextTick(o);else{P=P||r(3016).addAbortListener;const n=P(e.signal,o),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}}return Y}t.exports=L,t.exports.finished=function(t,e){var r;let n=!1;return null===e&&(e=l),null!==(r=e)&&void 0!==r&&r.cleanup&&(f(e.cleanup,"cleanup"),n=e.cleanup),new p(((r,i)=>{const s=L(t,e,(t=>{n&&s(),t?i(t):r()}))}))}},5516(t,e,r){"use strict";const n=r(4422),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r(6638),{Buffer:a}=r(181),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:u}=r(1899).codes;t.exports=function(t,e,r){let h,c;if("string"==typeof e||e instanceof a)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});if(e&&e[s])c=!0,h=e[s]();else{if(!e||!e[o])throw new l("iterable",["Iterable"],e);c=!1,h=e[o]()}const d=new t({objectMode:!0,highWaterMark:1,...r});let f=!1;return d._read=function(){f||(f=!0,async function(){for(;;){try{const{value:t,done:e}=c?await h.next():h.next();if(e)d.push(null);else{const e=t&&"function"==typeof t.then?await t:t;if(null===e)throw f=!1,new u;if(d.push(e))continue;f=!1}}catch(t){d.destroy(t)}break}}())},d._destroy=function(t,e){i(async function(t){const e=null!=t,r="function"==typeof h.throw;if(e&&r){const{value:e,done:r}=await h.throw(t);if(await e,r)return}if("function"==typeof h.return){const{value:t}=await h.return();await t}}(t),(()=>n.nextTick(e,t)),(r=>n.nextTick(e,r||t)))},d}},1003(t,e,r){"use strict";const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(6638),{EventEmitter:s}=r(4434);function o(t){s.call(this,t)}function a(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?n(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}i(o.prototype,s.prototype),i(o,s),o.prototype.pipe=function(t,e){const r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",l),r.on("close",u));let o=!1;function l(){o||(o=!0,t.end())}function u(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){c(),0===s.listenerCount(this,"error")&&this.emit("error",t)}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return a(r,"error",h),a(t,"error",h),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t},t.exports={Stream:o,prependListener:a}},63(t,e,r){"use strict";const n=globalThis.AbortController||r(6584).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r(1899),{validateAbortSignal:u,validateInteger:h,validateObject:c}=r(3533),d=r(6638).Symbol("kWeak"),f=r(6638).Symbol("kResistStopPropagation"),{finished:p}=r(5318),g=r(3265),{addAbortSignalNoValidate:b}=r(9259),{isWritable:m,isNodeStream:y}=r(7787),{deprecate:w}=r(3016),{ArrayPrototypePush:_,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:T,Symbol:k}=r(6638),M=k("kEmpty"),P=k("kEof");function I(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");let n=1;null!=(null==e?void 0:e.concurrency)&&(n=S(e.concurrency));let i=n-1;return null!=(null==e?void 0:e.highWaterMark)&&(i=S(e.highWaterMark)),h(n,"options.concurrency",1),h(i,"options.highWaterMark",0),i+=n,async function*(){const s=r(3016).AbortSignalAny([null==e?void 0:e.signal].filter(v)),o=this,a=[],u={signal:s};let h,c,d=!1,f=0;function p(){d=!0,g()}function g(){f-=1,b()}function b(){c&&!d&&f<n&&a.length<i&&(c(),c=null)}!async function(){try{for await(let e of o){if(d)return;if(s.aborted)throw new l;try{if(e=t(e,u),e===M)continue;e=O(e)}catch(t){e=R(t)}f+=1,T(e,g,p),a.push(e),h&&(h(),h=null),!d&&(a.length>=i||f>=n)&&await new A((t=>{c=t}))}a.push(P)}catch(t){const e=R(t);T(e,g,p),a.push(e)}finally{d=!0,h&&(h(),h=null)}}();try{for(;;){for(;a.length>0;){const t=await a[0];if(t===P)return;if(s.aborted)throw new l;t!==M&&(yield t),a.shift(),b()}await new A((t=>{h=t}))}}finally{d=!0,c&&(c(),c=null)}}.call(this)}async function L(t,e=void 0){for await(const r of D.call(this,t,e))return!0;return!1}function D(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return I.call(this,(async function(e,r){return await t(e,r)?e:M}),e)}class C extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(t){if(t=E(t),x(t))return 0;if(t<0)throw new a("number",">= 0",t);return t}t.exports.streamReturningOperators={asIndexedPairs:w((function(t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),async function*(){let e=0;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l({cause:t.signal.reason});yield[e++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;t--<=0&&(yield r)}}.call(this)},filter:D,flatMap:function(t,e){const r=I.call(this,t,e);return async function*(){for await(const t of r)yield*t}.call(this)},map:I,take:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;if(t-- >0&&(yield r),t<=0)return}}.call(this)},compose:function(t,e){if(null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),y(t)&&!m(t))throw new i("stream",t,"must be writable");const r=g(this,t);return null!=e&&e.signal&&b(e.signal,r),r}},t.exports.promiseReturningOperators={every:async function(t,e=void 0){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return!await L.call(this,(async(...e)=>!await t(...e)),e)},forEach:async function(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);for await(const r of I.call(this,(async function(e,r){return await t(e,r),M}),e));},reduce:async function(t,e,r){var i;if("function"!=typeof t)throw new s("reducer",["Function","AsyncFunction"],t);null!=r&&c(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let o=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const t=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(t)),t}const a=new n,h=a.signal;if(null!=r&&r.signal){const t={once:!0,[d]:this,[f]:!0};r.signal.addEventListener("abort",(()=>a.abort()),t)}let g=!1;try{for await(const n of this){var b;if(g=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;o?e=await t(e,n,{signal:h}):(e=n,o=!0)}if(!g&&!o)throw new C}finally{a.abort()}return e},toArray:async function(t){null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:t.signal.reason});_(e,n)}return e},some:L,find:async function(t,e){for await(const r of D.call(this,t,e))return r}}},8212(t,e,r){"use strict";const{ObjectSetPrototypeOf:n}=r(6638);t.exports=s;const i=r(7694);function s(t){if(!(this instanceof s))return new s(t);i.call(this,t)}n(s.prototype,i.prototype),n(s,i),s.prototype._transform=function(t,e,r){r(null,t)}},1238(t,e,r){const n=r(4422),{ArrayIsArray:i,Promise:s,SymbolAsyncIterator:o,SymbolDispose:a}=r(6638),l=r(5318),{once:u}=r(3016),h=r(9952),c=r(7090),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:m},AbortError:y}=r(1899),{validateFunction:w,validateAbortSignal:_}=r(3533),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:A,isWebStream:R,isReadableStream:O,isReadableFinished:T}=r(7787),k=globalThis.AbortController||r(6584).AbortController;let M,P,I;function L(t,e,r){let n=!1;t.on("close",(()=>{n=!0}));return{destroy:e=>{n||(n=!0,h.destroyer(t,e||new b("pipe")))},cleanup:l(t,{readable:e,writable:r},(t=>{n=!t}))}}function D(t){if(v(t))return t;if(E(t))return async function*(t){P||(P=r(6672));yield*P.prototype[o].call(t)}(t);throw new f("val",["Readable","Iterable","AsyncIterable"],t)}async function C(t,e,r,{end:n}){let i,o=null;const a=t=>{if(t&&(i=t),o){const t=o;o=null,t()}},u=()=>new s(((t,e)=>{i?e(i):o=()=>{i?e(i):t()}}));e.on("drain",a);const h=l(e,{readable:!1},a);try{e.writableNeedDrain&&await u();for await(const r of t)e.write(r)||await u();n&&(e.end(),await u()),r()}catch(t){r(i!==t?d(i,t):t)}finally{h(),e.off("drain",a)}}async function N(t,e,r,{end:n}){A(e)&&(e=e.writable);const i=e.getWriter();try{for await(const e of t)await i.ready,i.write(e).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(t){try{await i.abort(t),r(t)}catch(t){r(t)}}}function j(t,e,s){if(1===t.length&&i(t[0])&&(t=t[0]),t.length<2)throw new g("streams");const o=new k,l=o.signal,u=null==s?void 0:s.signal,h=[];function d(){W(new y)}let b,m,w;_(u,"options.signal"),I=I||r(3016).addAbortListener,u&&(b=I(u,d));const T=[];let P,j=0;function $(t){W(t,0==--j)}function W(t,r){var i;if(!t||m&&"ERR_STREAM_PREMATURE_CLOSE"!==m.code||(m=t),m||r){for(;T.length;)T.shift()(m);null===(i=b)||void 0===i||i[a](),o.abort(),r&&(m||h.forEach((t=>t())),n.nextTick(e,m,w))}}for(let H=0;H<t.length;H++){const G=t[H],V=H<t.length-1,q=H>0,Y=V||!1!==(null==s?void 0:s.end),K=H===t.length-1;if(x(G)){if(Y){const{destroy:Z,cleanup:J}=L(G,V,q);T.push(Z),S(G)&&K&&h.push(J)}function B(t){t&&"AbortError"!==t.name&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code&&$(t)}G.on("error",B),S(G)&&K&&h.push((()=>{G.removeListener("error",B)}))}if(0===H)if("function"==typeof G){if(P=G({signal:l}),!v(P))throw new p("Iterable, AsyncIterable or Stream","source",P)}else P=v(G)||E(G)||A(G)?G:c.from(G);else if("function"==typeof G){var U;if(A(P))P=D(null===(U=P)||void 0===U?void 0:U.readable);else P=D(P);if(P=G(P,{signal:l}),V){if(!v(P,!0))throw new p("AsyncIterable",`transform[${H-1}]`,P)}else{var z;M||(M=r(8212));const Q=new M({objectMode:!0}),X=null===(z=P)||void 0===z?void 0:z.then;if("function"==typeof X)j++,X.call(P,(t=>{w=t,null!=t&&Q.write(t),Y&&Q.end(),n.nextTick($)}),(t=>{Q.destroy(t),n.nextTick($,t)}));else if(v(P,!0))j++,C(P,Q,$,{end:Y});else{if(!O(P)&&!A(P))throw new p("AsyncIterable or Promise","destination",P);{const rt=P.readable||P;j++,C(rt,Q,$,{end:Y})}}P=Q;const{destroy:tt,cleanup:et}=L(P,!1,!0);T.push(tt),K&&h.push(et)}}else if(x(G)){if(E(P)){j+=2;const nt=F(P,G,$,{end:Y});S(G)&&K&&h.push(nt)}else if(A(P)||O(P)){const it=P.readable||P;j++,C(it,G,$,{end:Y})}else{if(!v(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,C(P,G,$,{end:Y})}P=G}else if(R(G)){if(E(P))j++,N(D(P),G,$,{end:Y});else if(O(P)||v(P))j++,N(P,G,$,{end:Y});else{if(!A(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,N(P.readable,G,$,{end:Y})}P=G}else P=c.from(G)}return(null!=l&&l.aborted||null!=u&&u.aborted)&&n.nextTick(d),P}function F(t,e,r,{end:i}){let s=!1;if(e.on("close",(()=>{s||r(new m)})),t.pipe(e,{end:!1}),i){function o(){s=!0,e.end()}T(t)?n.nextTick(o):t.once("end",o)}else r();return l(t,{readable:!0,writable:!1},(e=>{const n=t._readableState;e&&"ERR_STREAM_PREMATURE_CLOSE"===e.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?t.once("end",r).once("error",r):r(e)})),l(e,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:j,pipeline:function(...t){return j(t,u(function(t){return w(t[t.length-1],"streams[stream.length - 1]"),t.pop()}(t)))}}},6672(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeIndexOf:i,NumberIsInteger:s,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:u,ObjectSetPrototypeOf:h,Promise:c,SafeSet:d,SymbolAsyncDispose:f,SymbolAsyncIterator:p,Symbol:g}=r(6638);t.exports=H,H.ReadableState=z;const{EventEmitter:b}=r(4434),{Stream:m,prependListener:y}=r(1003),{Buffer:w}=r(181),{addAbortSignal:_}=r(9259),v=r(5318);let S=r(3016).debuglog("stream",(t=>{S=t}));const E=r(6225),x=r(9952),{getHighWaterMark:A,getDefaultHighWaterMark:R}=r(6707),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:k,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:I},AbortError:L}=r(1899),{validateObject:D}=r(3533),C=g("kPaused"),{StringDecoder:N}=r(3141),j=r(5516);h(H.prototype,m.prototype),h(H,m);const F=()=>{},{errorOrDestroy:$}=x,W=2048,B=4096;function U(t){return{enumerable:!1,get(){return!!(this.state&t)},set(e){e?this.state|=t:this.state&=~t}}}function z(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7090)),this.state=6192,t&&t.objectMode&&(this.state|=1),n&&t&&t.readableObjectMode&&(this.state|=1),this.highWaterMark=t?A(this,t,"readableHighWaterMark",n):R(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,t&&!1===t.emitClose&&(this.state&=-2049),t&&!1===t.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new N(t.encoding),this.encoding=t.encoding)}function H(t){if(!(this instanceof H))return new H(t);const e=this instanceof r(7090);this._readableState=new z(t,this,e),t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&!e&&_(t.signal,this)),m.call(this,t),x.construct(this,(()=>{this._readableState.needReadable&&Z(this,this._readableState)}))}function G(t,e,r,n){S("readableAddChunk",e);const i=t._readableState;let s;if(1&i.state||("string"==typeof e?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=w.from(e,r).toString(i.encoding):(e=w.from(e,r),r=""))):e instanceof w?r="":m._isUint8Array(e)?(e=m._uint8ArrayToBuffer(e),r=""):null!=e&&(s=new T("chunk",["string","Buffer","Uint8Array"],e))),s)$(t,s);else if(null===e)i.state&=-9,function(t,e){if(S("onEofChunk"),e.ended)return;if(e.decoder){const t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?Y(t):(e.needReadable=!1,e.emittedReadable=!0,K(t))}(t,i);else if(1&i.state||e&&e.length>0)if(n)if(4&i.state)$(t,new I);else{if(i.destroyed||i.errored)return!1;V(t,i,e,!0)}else if(i.ended)$(t,new P);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||0!==e.length?V(t,i,e,!1):Z(t,i)):V(t,i,e,!1)}else n||(i.state&=-9,Z(t,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function V(t,e,r,n){e.flowing&&0===e.length&&!e.sync&&t.listenerCount("data")>0?(65536&e.state?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),64&e.state&&Y(t)),Z(t,e)}l(z.prototype,{objectMode:U(1),ended:U(2),endEmitted:U(4),reading:U(8),constructed:U(16),sync:U(32),needReadable:U(64),emittedReadable:U(128),readableListening:U(256),resumeScheduled:U(512),errorEmitted:U(1024),emitClose:U(W),autoDestroy:U(B),destroyed:U(8192),closed:U(16384),closeEmitted:U(32768),multiAwaitDrain:U(65536),readingMore:U(1<<17),dataEmitted:U(1<<18)}),H.prototype.destroy=x.destroy,H.prototype._undestroy=x.undestroy,H.prototype._destroy=function(t,e){e(t)},H.prototype[b.captureRejectionSymbol]=function(t){this.destroy(t)},H.prototype[f]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new L,this.destroy(t)),new c(((e,r)=>v(this,(n=>n&&n!==t?r(n):e(null)))))},H.prototype.push=function(t,e){return G(this,t,e,!1)},H.prototype.unshift=function(t,e){return G(this,t,e,!0)},H.prototype.isPaused=function(){const t=this._readableState;return!0===t[C]||!1===t.flowing},H.prototype.setEncoding=function(t){const e=new N(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const t of r)n+=e.write(t);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function q(t,e){return t<=0||0===e.length&&e.ended?0:1&e.state?1:o(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}function Y(t){const e=t._readableState;S("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(S("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(K,t))}function K(t){const e=t._readableState;S("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||e.errored||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,et(t)}function Z(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,n.nextTick(J,t,e))}function J(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){const r=e.length;if(S("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function Q(t){const e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!1===e[C]?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function X(t){S("readable nexttick read 0"),t.read(0)}function tt(t,e){S("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),et(t),e.flowing&&!e.reading&&t.read(0)}function et(t){const e=t._readableState;for(S("flow",e.flowing);e.flowing&&null!==t.read(););}function rt(t,e){"function"!=typeof t.read&&(t=H.wrap(t,{objectMode:!0}));const r=async function*(t,e){let r,n=F;function i(e){this===t?(n(),n=F):n=e}t.on("readable",i);const s=v(t,{writable:!1},(t=>{r=t?O(r,t):null,n(),n=F}));try{for(;;){const e=t.destroyed?null:t.read();if(null!==e)yield e;else{if(r)throw r;if(null===r)return;await new c(i)}}}catch(t){throw r=O(r,t),r}finally{!r&&!1===(null==e?void 0:e.destroyOnReturn)||void 0!==r&&!t._readableState.autoDestroy?(t.off("readable",i),s()):x.destroyer(t,null)}}(t,e);return r.stream=t,r}function nt(t,e){if(0===e.length)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function it(t){const e=t._readableState;S("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(st,e,t))}function st(t,e){if(S("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&0===t.length)if(t.endEmitted=!0,e.emit("end"),e.writable&&!1===e.allowHalfOpen)n.nextTick(ot,e);else if(t.autoDestroy){const t=e._writableState;(!t||t.autoDestroy&&(t.finished||!1===t.writable))&&e.destroy()}}function ot(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}let at;function lt(){return void 0===at&&(at={}),at}H.prototype.read=function(t){S("read",t),void 0===t?t=NaN:s(t)||(t=a(t,10));const e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=function(t){if(t>1073741824)throw new M("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,++t}(t)),0!==t&&(e.state&=-129),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return S("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?it(this):Y(this),null;if(0===(t=q(t,e))&&e.ended)return 0===e.length&&it(this),null;let n,i=!!(64&e.state);if(S("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,S("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),e.state|=40,0===e.length&&(e.state|=64);try{this._read(e.highWaterMark)}catch(t){$(this,t)}e.state&=-33,e.reading||(t=q(r,e))}return n=t>0?nt(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&it(this)),null===n||e.errorEmitted||e.closeEmitted||(e.dataEmitted=!0,this.emit("data",n)),n},H.prototype._read=function(t){throw new k("_read()")},H.prototype.pipe=function(t,e){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),S("pipe count=%d opts=%j",i.pipes.length,e);const s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?a:b;function o(e,n){S("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),l&&t.removeListener("drain",l);t.removeListener("error",f),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}())}function a(){S("onend"),t.end()}let l;i.endEmitted?n.nextTick(s):r.once("end",s),t.on("unpipe",o);let u=!1;function h(){u||(1===i.pipes.length&&i.pipes[0]===t?(S("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=function(t,e){return function(){const r=t._readableState;r.awaitDrainWriters===e?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!t.listenerCount("data")||t.resume()}}(r,t),t.on("drain",l))}function c(e){S("ondata");const r=t.write(e);S("dest.write",r),!1===r&&h()}function f(e){if(S("onerror",e),b(),t.removeListener("error",f),0===t.listenerCount("error")){const r=t._writableState||t._readableState;r&&!r.errorEmitted?$(t,e):t.emit("error",e)}}function p(){t.removeListener("finish",g),b()}function g(){S("onfinish"),t.removeListener("close",p),b()}function b(){S("unpipe"),r.unpipe(t)}return r.on("data",c),y(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",r),!0===t.writableNeedDrain?h():i.flowing||(S("pipe resume"),r.resume()),t},H.prototype.unpipe=function(t){const e=this._readableState;if(0===e.pipes.length)return this;if(!t){const t=e.pipes;e.pipes=[],this.pause();for(let e=0;e<t.length;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(e.pipes,t);return-1===r||(e.pipes.splice(r,1),0===e.pipes.length&&this.pause(),t.emit("unpipe",this,{hasUnpiped:!1})),this},H.prototype.on=function(t,e){const r=m.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Y(this):i.reading||n.nextTick(X,this))),r},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(t,e){const r=m.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(Q,this),r},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(t){const e=m.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(Q,this),e},H.prototype.resume=function(){const t=this._readableState;return t.flowing||(S("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(tt,t,e))}(this,t)),t[C]=!1,this},H.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[C]=!0,this},H.prototype.wrap=function(t){let e=!1;t.on("data",(r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())})),t.on("end",(()=>{this.push(null)})),t.on("error",(t=>{$(this,t)})),t.on("close",(()=>{this.destroy()})),t.on("destroy",(()=>{this.destroy()})),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};const r=u(t);for(let e=1;e<r.length;e++){const n=r[e];void 0===this[n]&&"function"==typeof t[n]&&(this[n]=t[n].bind(t))}return this},H.prototype[p]=function(){return rt(this)},H.prototype.iterator=function(t){return void 0!==t&&D(t,"options"),rt(this,t)},l(H.prototype,{readable:{__proto__:null,get(){const t=this._readableState;return!(!t||!1===t.readable||t.destroyed||t.errorEmitted||t.endEmitted)},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(z.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[C]},set(t){this[C]=!!t}}}),H._fromList=nt,H.from=function(t,e){return j(H,t,e)},H.fromWeb=function(t,e){return lt().newStreamReadableFromReadableStream(t,e)},H.toWeb=function(t,e){return lt().newReadableStreamFromStreamReadable(t,e)},H.wrap=function(t,e){var r,n;return new H({objectMode:null===(r=null!==(n=t.readableObjectMode)&&void 0!==n?n:t.objectMode)||void 0===r||r,...e,destroy(e,r){x.destroyer(t,e),r(e)}}).wrap(t)}},6707(t,e,r){"use strict";const{MathFloor:n,NumberIsInteger:i}=r(6638),{validateInteger:s}=r(3533),{ERR_INVALID_ARG_VALUE:o}=r(1899).codes;let a=16384,l=16;function u(t){return t?l:a}t.exports={getHighWaterMark:function(t,e,r,s){const a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,s,r);if(null!=a){if(!i(a)||a<0){throw new o(s?`options.${r}`:"options.highWaterMark",a)}return n(a)}return u(t.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(t,e){s(e,"value",0),t?l=e:a=e}}},7694(t,e,r){"use strict";const{ObjectSetPrototypeOf:n,Symbol:i}=r(6638);t.exports=u;const{ERR_METHOD_NOT_IMPLEMENTED:s}=r(1899).codes,o=r(7090),{getHighWaterMark:a}=r(6707);n(u.prototype,o.prototype),n(u,o);const l=i("kCallback");function u(t){if(!(this instanceof u))return new u(t);const e=t?a(this,t,"readableHighWaterMark",!0):null;0===e&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),o.call(this,t),this._readableState.sync=!1,this[l]=null,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function h(t){"function"!=typeof this._flush||this.destroyed?(this.push(null),t&&t()):this._flush(((e,r)=>{e?t?t(e):this.destroy(e):(null!=r&&this.push(r),this.push(null),t&&t())}))}function c(){this._final!==h&&h.call(this)}u.prototype._final=h,u.prototype._transform=function(t,e,r){throw new s("_transform()")},u.prototype._write=function(t,e,r){const n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,((t,e)=>{t?r(t):(null!=e&&this.push(e),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},u.prototype._read=function(){if(this[l]){const t=this[l];this[l]=null,t()}}},7787(t,e,r){"use strict";const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r(6638),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),u=s("nodejs.stream.writable"),h=s("nodejs.stream.disturbed"),c=s("nodejs.webstream.isClosedPromise"),d=s("nodejs.webstream.controllerErrorFunction");function f(t,e=!1){var r;return!(!t||"function"!=typeof t.pipe||"function"!=typeof t.on||e&&("function"!=typeof t.pause||"function"!=typeof t.resume)||t._writableState&&!1===(null===(r=t._readableState)||void 0===r?void 0:r.readable)||t._writableState&&!t._readableState)}function p(t){var e;return!(!t||"function"!=typeof t.write||"function"!=typeof t.on||t._readableState&&!1===(null===(e=t._writableState)||void 0===e?void 0:e.writable))}function g(t){return t&&(t._readableState||t._writableState||"function"==typeof t.write&&"function"==typeof t.on||"function"==typeof t.pipe&&"function"==typeof t.on)}function b(t){return!(!t||g(t)||"function"!=typeof t.pipeThrough||"function"!=typeof t.getReader||"function"!=typeof t.cancel)}function m(t){return!(!t||g(t)||"function"!=typeof t.getWriter||"function"!=typeof t.abort)}function y(t){return!(!t||g(t)||"object"!=typeof t.readable||"object"!=typeof t.writable)}function w(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[o]||null!=n&&n.destroyed)}function _(t){if(!p(t))return null;if(!0===t.writableEnded)return!0;const e=t._writableState;return(null==e||!e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)}function v(t,e){if(!f(t))return null;const r=t._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===e&&!0===r.ended&&0===r.length))}function S(t){return t&&null!=t[l]?t[l]:"boolean"!=typeof(null==t?void 0:t.readable)?null:!w(t)&&(f(t)&&t.readable&&!v(t))}function E(t){return t&&null!=t[u]?t[u]:"boolean"!=typeof(null==t?void 0:t.writable)?null:!w(t)&&(p(t)&&t.writable&&!_(t))}function x(t){return"boolean"==typeof t._closed&&"boolean"==typeof t._defaultKeepAlive&&"boolean"==typeof t._removedConnection&&"boolean"==typeof t._removedContLen}function A(t){return"boolean"==typeof t._sent100&&x(t)}t.exports={isDestroyed:w,kIsDestroyed:o,isDisturbed:function(t){var e;return!(!t||!(null!==(e=t[h])&&void 0!==e?e:t.readableDidRead||t.readableAborted))},kIsDisturbed:h,isErrored:function(t){var e,r,n,i,s,o,l,u,h,c;return!(!t||!(null!==(e=null!==(r=null!==(n=null!==(i=null!==(s=null!==(o=t[a])&&void 0!==o?o:t.readableErrored)&&void 0!==s?s:t.writableErrored)&&void 0!==i?i:null===(l=t._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=t._writableState)||void 0===u?void 0:u.errorEmitted)&&void 0!==r?r:null===(h=t._readableState)||void 0===h?void 0:h.errored)&&void 0!==e?e:null===(c=t._writableState)||void 0===c?void 0:c.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:d,kIsWritable:u,isClosed:function(t){if(!g(t))return null;if("boolean"==typeof t.closed)return t.closed;const e=t._writableState,r=t._readableState;return"boolean"==typeof(null==e?void 0:e.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==e?void 0:e.closed)||(null==r?void 0:r.closed):"boolean"==typeof t._closed&&x(t)?t._closed:null},isDuplexNodeStream:function(t){return!(!t||"function"!=typeof t.pipe||!t._readableState||"function"!=typeof t.on||"function"!=typeof t.write)},isFinished:function(t,e){return g(t)?!!w(t)||(!1===(null==e?void 0:e.readable)||!S(t))&&(!1===(null==e?void 0:e.writable)||!E(t)):null},isIterable:function(t,e){return null!=t&&(!0===e?"function"==typeof t[n]:!1===e?"function"==typeof t[i]:"function"==typeof t[n]||"function"==typeof t[i])},isReadableNodeStream:f,isReadableStream:b,isReadableEnded:function(t){if(!f(t))return null;if(!0===t.readableEnded)return!0;const e=t._readableState;return!(!e||e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)},isReadableFinished:v,isReadableErrored:function(t){var e,r;return g(t)?t.readableErrored?t.readableErrored:null!==(e=null===(r=t._readableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isNodeStream:g,isWebStream:function(t){return b(t)||m(t)||y(t)},isWritable:E,isWritableNodeStream:p,isWritableStream:m,isWritableEnded:_,isWritableFinished:function(t,e){if(!p(t))return null;if(!0===t.writableFinished)return!0;const r=t._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===e&&!0===r.ended&&0===r.length))},isWritableErrored:function(t){var e,r;return g(t)?t.writableErrored?t.writableErrored:null!==(e=null===(r=t._writableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isServerRequest:function(t){var e;return"boolean"==typeof t._consuming&&"boolean"==typeof t._dumped&&void 0===(null===(e=t.req)||void 0===e?void 0:e.upgradeOrConnect)},isServerResponse:A,willEmitClose:function(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&A(t)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:y}},976(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeSlice:i,Error:s,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:h,Symbol:c,SymbolHasInstance:d}=r(6638);t.exports=D,D.WritableState=I;const{EventEmitter:f}=r(4434),p=r(1003).Stream,{Buffer:g}=r(181),b=r(9952),{addAbortSignal:m}=r(9259),{getHighWaterMark:y,getDefaultHighWaterMark:w}=r(6707),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:T}=r(1899).codes,{errorOrDestroy:k}=b;function M(){}u(D.prototype,p.prototype),u(D,p);const P=c("kOnFinished");function I(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7090)),this.objectMode=!(!t||!t.objectMode),n&&(this.objectMode=this.objectMode||!(!t||!t.writableObjectMode)),this.highWaterMark=t?y(this,t,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!t||!1!==t.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||!1!==t.emitClose,this.autoDestroy=!t||!1!==t.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function L(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}function D(t){const e=this instanceof r(7090);if(!e&&!o(D,this))return new D(t);this._writableState=new I(t,this,e),t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&m(t.signal,this)),p.call(this,t),b.construct(this,(()=>{const t=this._writableState;t.writing||U(this,t),G(this,t)}))}function C(t,e,r,i){const s=t._writableState;if("function"==typeof r)i=r,r=s.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new T(r)}else r=s.defaultEncoding;"function"!=typeof i&&(i=M)}if(null===e)throw new R;if(!s.objectMode)if("string"==typeof e)!1!==s.decodeStrings&&(e=g.from(e,r),r="buffer");else if(e instanceof g)r="buffer";else{if(!p._isUint8Array(e))throw new _("chunk",["string","Buffer","Uint8Array"],e);e=p._uint8ArrayToBuffer(e),r="buffer"}let o;return s.ending?o=new O:s.destroyed&&(o=new x("write")),o?(n.nextTick(i,o),k(t,o,!0),o):(s.pendingcb++,function(t,e,r,n,i){const s=e.objectMode?1:r.length;e.length+=s;const o=e.length<e.highWaterMark;o||(e.needDrain=!0);e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:n,callback:i}),e.allBuffers&&"buffer"!==n&&(e.allBuffers=!1),e.allNoop&&i!==M&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(r,n,e.onwrite),e.sync=!1);return o&&!e.errored&&!e.destroyed}(t,s,e,r,i))}function N(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function j(t,e,r,n){--e.pendingcb,n(r),B(e),k(t,r)}function F(t,e){const r=t._writableState,i=r.sync,s=r.writecb;"function"==typeof s?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?n.nextTick(j,t,r,e,s):j(t,r,e,s)):(r.buffered.length>r.bufferedIndex&&U(t,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:t,state:r},n.nextTick($,r.afterWriteTickInfo)):W(t,r,1,s))):k(t,new S)}function $({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,W(t,e,r,n)}function W(t,e,r,n){for(!e.ending&&!t.destroyed&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&B(e),G(t,e)}function B(t){if(t.writing)return;for(let r=t.bufferedIndex;r<t.buffered.length;++r){var e;const{chunk:n,callback:i}=t.buffered[r],s=t.objectMode?1:n.length;t.length-=s,i(null!==(e=t.errored)&&void 0!==e?e:new x("write"))}const r=t[P].splice(0);for(let e=0;e<r.length;e++){var n;r[e](null!==(n=t.errored)&&void 0!==n?n:new x("end"))}L(t)}function U(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:s}=e,o=r.length-n;if(!o)return;let a=n;if(e.bufferProcessing=!0,o>1&&t._writev){e.pendingcb-=o-1;const n=e.allNoop?M:t=>{for(let e=a;e<r.length;++e)r[e].callback(t)},s=e.allNoop&&0===a?r:i(r,a);s.allBuffers=e.allBuffers,N(t,e,!0,e.length,s,"",n),L(e)}else{do{const{chunk:n,encoding:i,callback:o}=r[a];r[a++]=null;N(t,e,!1,s?1:n.length,n,i,o)}while(a<r.length&&!e.writing);a===r.length?L(e):a>256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}function z(t){return t.ending&&!t.destroyed&&t.constructed&&0===t.length&&!t.errored&&0===t.buffered.length&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function H(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.finalCalled=!0,function(t,e){let r=!1;function i(i){if(r)k(t,null!=i?i:S());else if(r=!0,e.pendingcb--,i){const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t](i);k(t,i,e.sync)}else z(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,n.nextTick(V,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(t){i(t)}e.sync=!1}(t,e)))}function G(t,e,r){z(e)&&(H(t,e),0===e.pendingcb&&(r?(e.pendingcb++,n.nextTick(((t,e)=>{z(e)?V(t,e):e.pendingcb--}),t,e)):z(e)&&(e.pendingcb++,V(t,e))))}function V(t,e){e.pendingcb--,e.finished=!0;const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t]();if(t.emit("finish"),e.autoDestroy){const e=t._readableState;(!e||e.autoDestroy&&(e.endEmitted||!1===e.readable))&&t.destroy()}}I.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(D,d,{__proto__:null,value:function(t){return!!o(this,t)||this===D&&(t&&t._writableState instanceof I)}}),D.prototype.pipe=function(){k(this,new E)},D.prototype.write=function(t,e,r){return!0===C(this,t,e,r)},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){const t=this._writableState;t.corked&&(t.corked--,t.writing||U(this,t))},D.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=h(t)),!g.isEncoding(t))throw new T(t);return this._writableState.defaultEncoding=t,this},D.prototype._write=function(t,e,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:t,encoding:e}],r)},D.prototype._writev=null,D.prototype.end=function(t,e,r){const i=this._writableState;let o;if("function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t){const r=C(this,t,e);r instanceof s&&(o=r)}return i.corked&&(i.corked=1,this.uncork()),o||(i.errored||i.ending?i.finished?o=new A("end"):i.destroyed&&(o=new x("end")):(i.ending=!0,G(this,i,!0),i.ended=!0)),"function"==typeof r&&(o||i.finished?n.nextTick(r,o):i[P].push(r)),this},l(D.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){const t=this._writableState;return!(!t||!1===t.writable||t.destroyed||t.errored||t.ending||t.ended)},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const t=this._writableState;return!!t&&(!t.destroyed&&!t.ending&&t.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=b.destroy;let Y;function K(){return void 0===Y&&(Y={}),Y}D.prototype.destroy=function(t,e){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&n.nextTick(B,r),q.call(this,t,e),this},D.prototype._undestroy=b.undestroy,D.prototype._destroy=function(t,e){e(t)},D.prototype[f.captureRejectionSymbol]=function(t){this.destroy(t)},D.fromWeb=function(t,e){return K().newStreamWritableFromWritableStream(t,e)},D.toWeb=function(t){return K().newWritableStreamFromStreamWritable(t)}},3533(t,e,r){"use strict";const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:h,NumberParseInt:c,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:g,StringPrototypeTrim:b}=r(6638),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(1899),{normalizeEncoding:E}=r(3016),{isAsyncFunction:x,isArrayBufferView:A}=r(3016).types,R={};const O=/^[0-7]+$/;const T=m(((t,e,r=h,n=u)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),k=m(((t,e,r=-2147483648,n=2147483647)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),M=m(((t,e,r=!1)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);const n=r?1:0,i=4294967295;if(t<n||t>i)throw new v(e,`>= ${n} && <= ${i}`,t)}));function P(t,e){if("string"!=typeof t)throw new w(e,"string",t)}const I=m(((t,e,r)=>{if(!i(r,t)){const n=s(o(r,(t=>"string"==typeof t?`'${t}'`:p(t))),", ");throw new _(e,t,"must be one of: "+n)}}));function L(t,e){if("boolean"!=typeof t)throw new w(e,"boolean",t)}function D(t,e,r){return null!=t&&d(t,e)?t[e]:r}const C=m(((t,e,r=null)=>{const i=D(r,"allowArray",!1),s=D(r,"allowFunction",!1);if(!D(r,"nullable",!1)&&null===t||!i&&n(t)||"object"!=typeof t&&(!s||"function"!=typeof t))throw new w(e,"Object",t)})),N=m(((t,e)=>{if(null!=t&&"object"!=typeof t&&"function"!=typeof t)throw new w(e,"a dictionary",t)})),j=m(((t,e,r=0)=>{if(!n(t))throw new w(e,"Array",t);if(t.length<r){throw new _(e,t,`must be longer than ${r}`)}}));const F=m(((t,e="buffer")=>{if(!A(t))throw new w(e,["Buffer","TypedArray","DataView"],t)}));const $=m(((t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new w(e,"AbortSignal",t)})),W=m(((t,e)=>{if("function"!=typeof t)throw new w(e,"Function",t)})),B=m(((t,e)=>{if("function"!=typeof t||x(t))throw new w(e,"Function",t)})),U=m(((t,e)=>{if(void 0!==t)throw new w(e,"undefined",t)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function H(t,e){if(void 0===t||!f(z,t))throw new _(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:function(t){return t===(0|t)},isUint32:function(t){return t===t>>>0},parseFileMode:function(t,e,r){if(void 0===t&&(t=r),"string"==typeof t){if(null===f(O,t))throw new _(e,t,"must be a 32-bit unsigned integer or an octal string");t=c(t,8)}return M(t,e),t},validateArray:j,validateStringArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)P(t[r],`${e}[${r}]`)},validateBooleanArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)L(t[r],`${e}[${r}]`)},validateAbortSignalArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++){const n=t[r],i=`${e}[${r}]`;if(null==n)throw new w(i,"AbortSignal",n);$(n,i)}},validateBoolean:L,validateBuffer:F,validateDictionary:N,validateEncoding:function(t,e){const r=E(e),n=t.length;if("hex"===r&&n%2!=0)throw new _("encoding",e,`is invalid for data of length ${n}`)},validateFunction:W,validateInt32:k,validateInteger:T,validateNumber:function(t,e,r=void 0,n){if("number"!=typeof t)throw new w(e,"number",t);if(null!=r&&t<r||null!=n&&t>n||(null!=r||null!=n)&&l(t))throw new v(e,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,t)},validateObject:C,validateOneOf:I,validatePlainFunction:B,validatePort:function(t,e="Port",r=!0){if("number"!=typeof t&&"string"!=typeof t||"string"==typeof t&&0===b(t).length||+t!=+t>>>0||t>65535||0===t&&!r)throw new y(e,t,r);return 0|t},validateSignalName:function(t,e="signal"){if(P(t,e),void 0===R[t]){if(void 0!==R[g(t)])throw new S(t+" (signals must use all capital letters)");throw new S(t)}},validateString:P,validateUint32:M,validateUndefined:U,validateUnion:function(t,e,r){if(!i(r,t))throw new w(e,`('${s(r,"|")}')`,t)},validateAbortSignal:$,validateLinkHeaderValue:function(t){if("string"==typeof t)return H(t,"hints"),t;if(n(t)){const e=t.length;let r="";if(0===e)return r;for(let n=0;n<e;n++){const i=t[n];H(i,"hints"),r+=i,n!==e-1&&(r+=", ")}return r}throw new _("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},1899(t,e,r){"use strict";const{format:n,inspect:i}=r(6007),{AggregateError:s}=r(6638),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,h={};function c(t,e){if(!t)throw new h.ERR_INTERNAL_ASSERTION(e)}function d(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function f(t,e,r){r||(r=Error);class i extends r{constructor(...r){super(function(t,e,r){if("function"==typeof e)return c(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const i=(e.match(/%[dfijoOs]/g)||[]).length;return c(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?e:n(e,...r)}(t,e,r))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[a]=!0,h[t]=i}function p(t){const e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t}class g extends Error{constructor(t="The operation was aborted",e=void 0){if(void 0!==e&&"object"!=typeof e)throw new h.ERR_INVALID_ARG_TYPE("options","Object",e);super(t,e),this.code="ABORT_ERR",this.name="AbortError"}}f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",((t,e,r)=>{c("string"==typeof t,"'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const s=[],o=[],a=[];for(const t of e)c("string"==typeof t,"All expected entries have to be of type string"),l.includes(t)?s.push(t.toLowerCase()):u.test(t)?o.push(t):(c("object"!==t,'The value "object" should be written as "Object"'),a.push(t));if(o.length>0){const t=s.indexOf("object");-1!==t&&(s.splice(s,t,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{const t=s.pop();n+=`one of type ${s.join(", ")}, or ${t}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const t=o.pop();n+=`an instance of ${o.join(", ")}, or ${t}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const t=a.pop();n+=`one of ${a.join(", ")}, or ${t}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var h;if(null!==(h=r.constructor)&&void 0!==h&&h.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let t=i(r,{colors:!1});t.length>25&&(t=`${t.slice(0,25)}...`),n+=`. Received type ${typeof r} (${t})`}return n}),TypeError),f("ERR_INVALID_ARG_VALUE",((t,e,r="is invalid")=>{let n=i(e);n.length>128&&(n=n.slice(0,128)+"...");return`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`}),TypeError),f("ERR_INVALID_RETURN_VALUE",((t,e,r)=>{var n;return`Expected ${t} to be returned from the "${e}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),f("ERR_MISSING_ARGS",((...t)=>{let e;c(t.length>0,"At least one arg needs to be specified");const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map((t=>`"${t}"`)).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}}return`${e} must be specified`}),TypeError),f("ERR_OUT_OF_RANGE",((t,e,r)=>{let n;if(c(e,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32)n=d(String(r));else if("bigint"==typeof r){n=String(r);const t=BigInt(2)**BigInt(32);(r>t||r<-t)&&(n=d(n)),n+="n"}else n=i(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${n}`}),RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:g,aggregateTwoErrors:p((function(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new o([e,t],e.message);return r.code=e.code,r}return t||e})),hideStackFrames:p,codes:h}},1702(t,e,r){"use strict";const n=r(2203);if(n&&"disable"===process.env.READABLE_STREAM){const e=n.promises;t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>e}),t.exports.Stream=n.Stream}else{const e=r(7082),n=r(3759),i=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=i,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get:()=>n}),t.exports.Stream=e.Stream}t.exports.default=t.exports},6638(t){"use strict";class e extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError("Expected input to be an Array, got "+typeof t);let e="";for(let r=0;r<t.length;r++)e+=` ${t[r].stack}\n`;super(e),this.name="AggregateError",this.errors=t}}t.exports={AggregateError:e,ArrayIsArray:t=>Array.isArray(t),ArrayPrototypeIncludes:(t,e)=>t.includes(e),ArrayPrototypeIndexOf:(t,e)=>t.indexOf(e),ArrayPrototypeJoin:(t,e)=>t.join(e),ArrayPrototypeMap:(t,e)=>t.map(e),ArrayPrototypePop:(t,e)=>t.pop(e),ArrayPrototypePush:(t,e)=>t.push(e),ArrayPrototypeSlice:(t,e,r)=>t.slice(e,r),Error,FunctionPrototypeCall:(t,e,...r)=>t.call(e,...r),FunctionPrototypeSymbolHasInstance:(t,e)=>Function.prototype[Symbol.hasInstance].call(t,e),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(t,e)=>Object.defineProperties(t,e),ObjectDefineProperty:(t,e,r)=>Object.defineProperty(t,e,r),ObjectGetOwnPropertyDescriptor:(t,e)=>Object.getOwnPropertyDescriptor(t,e),ObjectKeys:t=>Object.keys(t),ObjectSetPrototypeOf:(t,e)=>Object.setPrototypeOf(t,e),Promise,PromisePrototypeCatch:(t,e)=>t.catch(e),PromisePrototypeThen:(t,e,r)=>t.then(e,r),PromiseReject:t=>Promise.reject(t),PromiseResolve:t=>Promise.resolve(t),ReflectApply:Reflect.apply,RegExpPrototypeTest:(t,e)=>t.test(e),SafeSet:Set,String,StringPrototypeSlice:(t,e,r)=>t.slice(e,r),StringPrototypeToLowerCase:t=>t.toLowerCase(),StringPrototypeToUpperCase:t=>t.toUpperCase(),StringPrototypeTrim:t=>t.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(t,e,r)=>t.set(e,r),Boolean,Uint8Array}},3016(t,e,r){"use strict";const n=r(181),{format:i,inspect:s}=r(6007),{codes:{ERR_INVALID_ARG_TYPE:o}}=r(1899),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:u}=r(6638),h=globalThis.AbortSignal||r(6584).AbortSignal,c=globalThis.AbortController||r(6584).AbortController,d=Object.getPrototypeOf((async function(){})).constructor,f=globalThis.Blob||n.Blob,p=void 0!==f?function(t){return t instanceof f}:function(t){return!1},g=(t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new o(e,"AbortSignal",t)};t.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise(((r,n)=>{t=r,e=n})),resolve:t,reject:e}},promisify:t=>new Promise(((e,r)=>{t(((t,...n)=>t?r(t):e(...n)))})),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:t=>t instanceof d,isArrayBufferView:t=>ArrayBuffer.isView(t)},isBlob:p,deprecate:(t,e)=>t,addAbortListener:r(4434).addAbortListener||function(t,e){if(void 0===t)throw new o("signal","AbortSignal",t);let r;return g(t,"signal"),((t,e)=>{if("function"!=typeof t)throw new o(e,"Function",t)})(e,"listener"),t.aborted?queueMicrotask((()=>e())):(t.addEventListener("abort",e,{__proto__:null,once:!0,[a]:!0}),r=()=>{t.removeEventListener("abort",e)}),{__proto__:null,[u](){var t;null===(t=r)||void 0===t||t()}}},AbortSignalAny:h.any||function(t){if(1===t.length)return t[0];const e=new c,r=()=>e.abort();return t.forEach((t=>{g(t,"signals"),t.addEventListener("abort",r,{once:!0})})),e.signal.addEventListener("abort",(()=>{t.forEach((t=>t.removeEventListener("abort",r)))}),{once:!0}),e.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},6007(t){"use strict";t.exports={format:(t,...e)=>t.replace(/%([sdifj])/g,(function(...[t,r]){const n=e.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(t){switch(typeof t){case"string":if(t.includes("'")){if(!t.includes('"'))return`"${t}"`;if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}},7082(t,e,r){"use strict";const{Buffer:n}=r(181),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r(6638),{promisify:{custom:a}}=r(3016),{streamReturningOperators:l,promiseReturningOperators:u}=r(63),{codes:{ERR_ILLEGAL_CONSTRUCTOR:h}}=r(1899),c=r(3265),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:f}=r(6707),{pipeline:p}=r(1238),{destroyer:g}=r(9952),b=r(5318),m=r(3759),y=r(7787),w=t.exports=r(1003).Stream;w.isDestroyed=y.isDestroyed,w.isDisturbed=y.isDisturbed,w.isErrored=y.isErrored,w.isReadable=y.isReadable,w.isWritable=y.isWritable,w.Readable=r(6672);for(const v of s(l)){const S=l[v];function E(...t){if(new.target)throw h();return w.Readable.from(o(S,this,t))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(w.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of s(u)){const A=u[x];function R(...t){if(new.target)throw h();return o(A,this,t)}i(R,"name",{__proto__:null,value:A.name}),i(R,"length",{__proto__:null,value:A.length}),i(w.Readable.prototype,x,{__proto__:null,value:R,enumerable:!1,configurable:!0,writable:!0})}w.Writable=r(976),w.Duplex=r(7090),w.Transform=r(7694),w.PassThrough=r(8212),w.pipeline=p;const{addAbortSignal:_}=r(9259);w.addAbortSignal=_,w.finished=b,w.destroy=g,w.compose=c,w.setDefaultHighWaterMark=d,w.getDefaultHighWaterMark=f,i(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>m}),i(p,a,{__proto__:null,enumerable:!0,get:()=>m.pipeline}),i(b,a,{__proto__:null,enumerable:!0,get:()=>m.finished}),w.Stream=w,w._isUint8Array=function(t){return t instanceof Uint8Array},w._uint8ArrayToBuffer=function(t){return n.from(t.buffer,t.byteOffset,t.byteLength)}},3759(t,e,r){"use strict";const{ArrayPrototypePop:n,Promise:i}=r(6638),{isIterable:s,isNodeStream:o,isWebStream:a}=r(7787),{pipelineImpl:l}=r(1238),{finished:u}=r(5318);r(7082),t.exports={finished:u,pipeline:function(...t){return new i(((e,r)=>{let i,u;const h=t[t.length-1];if(h&&"object"==typeof h&&!o(h)&&!s(h)&&!a(h)){const e=n(t);i=e.signal,u=e.end}l(t,((t,n)=>{t?r(t):e(n)}),{signal:i,end:u})}))}}},9133(t,e,r){var n=r(826),i={},s=function(t,e){return s.create(t,e)};s.create=function(t,e){if(i[t]){var r=new n(t,e);return r.setFormat(t),r.setModule(new i[t](e)),r}throw new Error("create("+t+"): format not registered")},s.registerFormat=function(t,e){if(i[t])throw new Error("register("+t+"): format already registered");if("function"!=typeof e)throw new Error("register("+t+"): format module invalid");if("function"!=typeof e.prototype.append||"function"!=typeof e.prototype.finalize)throw new Error("register("+t+"): format module missing methods");i[t]=e},s.isRegisteredFormat=function(t){return!!i[t]},s.registerFormat("zip",r(3541)),s.registerFormat("tar",r(741)),s.registerFormat("json",r(6530)),t.exports=s},826(t,e,r){var n=r(9896),i=r(6965),s=r(2268),o=r(6928),a=r(1789),l=r(9023).inherits,u=r(2383),h=r(4614).Transform,c="win32"===process.platform,d=function(t,e){if(!(this instanceof d))return new d(t,e);"string"!=typeof t&&(e=t,t="zip"),e=this.options=a.defaults(e,{highWaterMark:1048576,statConcurrency:4}),h.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=s.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=s.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};l(d,h),d.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},d.prototype._append=function(t,e){var r={source:null,filepath:t};(e=e||{}).name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof n.Stats?(r=this._updateQueueTaskWithStats(r,e.stats))&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r)):this._statQueue.push(r)},d.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},d.prototype._maybeFinalize=function(){return!(this._state.finalizing||this._state.finalized||this._state.aborted)&&(!!(this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle())&&(this._finalize(),!0))},d.prototype._moduleAppend=function(t,e,r){this._state.aborted?r():this._module.append(t,e,function(t){if(this._task=null,this._state.aborted)this._shutdown();else{if(t)return this.emit("error",t),void setImmediate(r);this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}}.bind(this))},d.prototype._moduleFinalize=function(){"function"==typeof this._module.finalize?this._module.finalize():"function"==typeof this._module.end?this._module.end():this.emit("error",new u("NOENDMETHOD"))},d.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},d.prototype._moduleSupports=function(t){return!(!this._module.supports||!this._module.supports[t])&&this._module.supports[t]},d.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},d.prototype._normalizeEntryData=function(t,e){t=a.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&!1===t.stats&&(t.stats=e);var r="directory"===t.type;return t.name&&("string"==typeof t.prefix&&""!==t.prefix&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=a.sanitizePath(t.name),"symlink"!==t.type&&"/"===t.name.slice(-1)?(r=!0,t.type="directory"):r&&(t.name+="/")),"number"==typeof t.mode?t.mode&=c?511:4095:t.stats&&null===t.mode?(t.mode=c?511&t.stats.mode:4095&t.stats.mode,c&&r&&(t.mode=493)):null===t.mode&&(t.mode=r?493:420),t.stats&&null===t.date?t.date=t.stats.mtime:t.date=a.dateify(t.date),t},d.prototype._onModuleError=function(t){this.emit("error",t)},d.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},d.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};this._state.finalizing||this._state.finalized||this._state.aborted?r():(this._task=t,this._moduleAppend(t.source,t.data,r))},d.prototype._onStatQueueTask=function(t,e){this._state.finalizing||this._state.finalized||this._state.aborted?e():n.lstat(t.filepath,function(r,n){if(this._state.aborted)setImmediate(e);else{if(r)return this._entriesCount--,this.emit("warning",r),void setImmediate(e);(t=this._updateQueueTaskWithStats(t,n))&&(n.size&&(this._fsEntriesTotalBytes+=n.size),this._queue.push(t)),setImmediate(e)}}.bind(this))},d.prototype._shutdown=function(){this._moduleUnpipe(),this.end()},d.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)},d.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=a.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=a.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=a.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else{if(!e.isSymbolicLink()||!this._moduleSupports("symlink"))return e.isDirectory()?this.emit("warning",new u("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new u("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new u("ENTRYNOTSUPPORTED",t.data)),null;var r=n.readlinkSync(t.filepath),i=o.dirname(t.filepath);t.data.type="symlink",t.data.linkname=o.relative(i,o.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}return t.data=this._normalizeEntryData(t.data,e),t},d.prototype.abort=function(){return this._state.aborted||this._state.finalized||this._abort(),this},d.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof(e=this._normalizeEntryData(e)).name||0===e.name.length)return this.emit("error",new u("ENTRYNAMEREQUIRED")),this;if("directory"===e.type&&!this._moduleSupports("directory"))return this.emit("error",new u("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=a.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else{if(!a.isStream(t))return this.emit("error",new u("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;e.sourceType="stream"}return this._entriesCount++,this._queue.push({data:e,source:t}),this},d.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new u("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,!1===e?e="":"string"!=typeof e&&(e=t);var n=!1;"function"==typeof r?(n=r,r={}):"object"!=typeof r&&(r={});var s=i(t,{stat:!0,dot:!0});return s.on("error",function(t){this.emit("error",t)}.bind(this)),s.on("match",function(i){s.pause();var o=!1,a=Object.assign({},r);a.name=i.relative,a.prefix=e,a.stats=i.stat,a.callback=s.resume.bind(s);try{if(n)if(!1===(a=n(a)))o=!0;else if("object"!=typeof a)throw new u("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}catch(t){return void this.emit("error",t)}o?s.resume():this._append(i.absolute,a)}.bind(this)),s.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},d.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new u("QUEUECLOSED")),this):"string"!=typeof t||0===t.length?(this.emit("error",new u("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)},d.prototype.glob=function(t,e,r){this._pending++,e=a.defaults(e,{stat:!0,pattern:t});var n=i(e.cwd||".",e);return n.on("error",function(t){this.emit("error",t)}.bind(this)),n.on("match",function(t){n.pause();var e=Object.assign({},r);e.callback=n.resume.bind(n),e.stats=t.stat,e.name=t.relative,this._append(t.absolute,e)}.bind(this)),n.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},d.prototype.finalize=function(){if(this._state.aborted){var t=new u("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new u("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise((function(t,e){var n;r._module.on("end",(function(){n||t()})),r._module.on("error",(function(t){n=!0,e(t)}))}))},d.prototype.setFormat=function(t){return this._format?(this.emit("error",new u("FORMATSET")),this):(this._format=t,this)},d.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new u("ABORTED")),this):this._state.module?(this.emit("error",new u("MODULESET")),this):(this._module=t,this._modulePipe(),this)},d.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new u("SYMLINKFILEPATHREQUIRED")),this;if("string"!=typeof e||0===e.length)return this.emit("error",new u("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new u("SYMLINKNOTSUPPORTED",{filepath:t})),this;var n={type:"symlink"};return n.name=t.replace(/\\/g,"/"),n.linkname=e.replace(/\\/g,"/"),n.sourceType="buffer","number"==typeof r&&(n.mode=r),this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this},d.prototype.pointer=function(){return this._pointer},d.prototype.use=function(t){return this._streams.push(t),this},t.exports=d},2383(t,e,r){var n=r(9023);const i={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function s(t,e){Error.captureStackTrace(this,this.constructor),this.message=i[t]||t,this.code=t,this.data=e}n.inherits(s,Error),t.exports=s},6530(t,e,r){var n=r(9023).inherits,i=r(4614).Transform,s=r(9120),o=r(1789),a=function(t){if(!(this instanceof a))return new a(t);t=this.options=o.defaults(t,{}),i.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};n(a,i),a.prototype._transform=function(t,e,r){r(null,t)},a.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)},a.prototype.append=function(t,e,r){var n=this;function i(t,i){t?r(t):(e.size=i.length||0,e.crc32=s.unsigned(i),n.files.push(e),r(null,e))}e.crc32=0,"buffer"===e.sourceType?i(null,t):"stream"===e.sourceType&&o.collectStream(t,i)},a.prototype.finalize=function(){this._writeStringified(),this.end()},t.exports=a},741(t,e,r){var n=r(3106),i=r(4231),s=r(1789),o=function(t){if(!(this instanceof o))return new o(t);"object"!=typeof(t=this.options=s.defaults(t,{gzip:!1})).gzipOptions&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=i.pack(t),this.compressor=!1,t.gzip&&(this.compressor=n.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};o.prototype._onCompressorError=function(t){this.engine.emit("error",t)},o.prototype.append=function(t,e,r){var n=this;function i(t,i){t?r(t):n.engine.entry(e,i,(function(t){r(t,e)}))}if(e.mtime=e.date,"buffer"===e.sourceType)i(null,t);else if("stream"===e.sourceType&&e.stats){e.size=e.stats.size;var o=n.engine.entry(e,(function(t){r(t,e)}));t.pipe(o)}else"stream"===e.sourceType&&s.collectStream(t,i)},o.prototype.finalize=function(){this.engine.finalize()},o.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},o.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)},o.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)},t.exports=o},3541(t,e,r){var n=r(8919),i=r(1789),s=function(t){if(!(this instanceof s))return new s(t);t=this.options=i.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new n(t)};s.prototype.append=function(t,e,r){this.engine.entry(t,e,r)},s.prototype.finalize=function(){this.engine.finalize()},s.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},s.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)},s.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)},t.exports=s},3835(t,e,r){"use strict";const{SymbolDispose:n}=r(7518),{AbortError:i,codes:s}=r(4251),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:l}=r(4331),u=r(4742),{ERR_INVALID_ARG_TYPE:h}=s;let c;t.exports.addAbortSignal=function(e,r){if(((t,e)=>{if("object"!=typeof t||!("aborted"in t))throw new h(e,"AbortSignal",t)})(e,"signal"),!o(r)&&!a(r))throw new h("stream",["ReadableStream","WritableStream","Stream"],r);return t.exports.addAbortSignalNoValidate(e,r)},t.exports.addAbortSignalNoValidate=function(t,e){if("object"!=typeof t||!("aborted"in t))return e;const s=o(e)?()=>{e.destroy(new i(void 0,{cause:t.reason}))}:()=>{e[l](new i(void 0,{cause:t.reason}))};if(t.aborted)s();else{c=c||r(248).addAbortListener;const i=c(t,s);u(e,i[n])}return e}},8145(t,e,r){"use strict";const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r(7518),{Buffer:a}=r(181),{inspect:l}=r(248);t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}unshift(t){const e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}shift(){if(0===this.length)return;const t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(0===this.length)return"";let e=this.head,r=""+e.data;for(;null!==(e=e.next);)r+=t+e.data;return r}concat(t){if(0===this.length)return a.alloc(0);const e=a.allocUnsafe(t>>>0);let r=this.head,n=0;for(;r;)s(e,r.data,n),n+=r.data.length,r=r.next;return e}consume(t,e){const r=this.head.data;if(t<r.length){const e=r.slice(0,t);return this.head.data=r.slice(t),e}return t===r.length?this.shift():e?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[i](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let e="",r=this.head,i=0;do{const s=r.data;if(!(t>s.length)){t===s.length?(e+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(e+=n(s,0,t),this.head=r,r.data=n(s,t));break}e+=s,t-=s.length,++i}while(null!==(r=r.next));return this.length-=i,e}_getBuffer(t){const e=a.allocUnsafe(t),r=t;let n=this.head,i=0;do{const a=n.data;if(!(t>a.length)){t===a.length?(s(e,a,r-t),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(e,new o(a.buffer,a.byteOffset,t),r-t),this.head=n,n.data=a.slice(t));break}s(e,a,r-t),t-=a.length,++i}while(null!==(n=n.next));return this.length-=i,e}[Symbol.for("nodejs.util.inspect.custom")](t,e){return l(this,{...e,depth:0,customInspect:!1})}}},3262(t,e,r){"use strict";const{pipeline:n}=r(2502),i=r(7074),{destroyer:s}=r(4016),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:u,isTransformStream:h,isWritableStream:c,isReadableStream:d}=r(4331),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:g}}=r(4251),b=r(4742);t.exports=function(...t){if(0===t.length)throw new g("streams");if(1===t.length)return i.from(t[0]);const e=[...t];if("function"==typeof t[0]&&(t[0]=i.from(t[0])),"function"==typeof t[t.length-1]){const e=t.length-1;t[e]=i.from(t[e])}for(let r=0;r<t.length;++r)if(o(t[r])||u(t[r])){if(r<t.length-1&&!(a(t[r])||d(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be readable");if(r>0&&!(l(t[r])||c(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be writable")}let r,m,y,w,_;const v=t[0],S=n(t,(function(t){const e=w;w=null,e?e(t):t?_.destroy(t):x||E||_.destroy()})),E=!!(l(v)||c(v)||h(v)),x=!!(a(S)||d(S)||h(S));if(_=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(o(v))_._write=function(t,e,n){v.write(t,e)?n():r=n},_._final=function(t){v.end(),m=t},v.on("drain",(function(){if(r){const t=r;r=null,t()}}));else if(u(v)){const t=(h(v)?v.writable:v).getWriter();_._write=async function(e,r,n){try{await t.ready,t.write(e).catch((()=>{})),n()}catch(t){n(t)}},_._final=async function(e){try{await t.ready,t.close().catch((()=>{})),m=e}catch(t){e(t)}}}const t=h(S)?S.readable:S;b(t,(()=>{if(m){const t=m;m=null,t()}}))}if(x)if(o(S))S.on("readable",(function(){if(y){const t=y;y=null,t()}})),S.on("end",(function(){_.push(null)})),_._read=function(){for(;;){const t=S.read();if(null===t)return void(y=_._read);if(!_.push(t))return}};else if(u(S)){const t=(h(S)?S.readable:S).getReader();_._read=async function(){for(;;)try{const{value:e,done:r}=await t.read();if(!_.push(e))return;if(r)return void _.push(null)}catch{return}}}return _._destroy=function(t,e){t||null===w||(t=new f),y=null,r=null,m=null,null===w?e(t):(w=e,o(S)&&s(S,t))},_}},4016(t,e,r){"use strict";const n=r(4422),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r(4251),{Symbol:a}=r(7518),{kIsDestroyed:l,isDestroyed:u,isFinished:h,isServerRequest:c}=r(4331),d=a("kDestroy"),f=a("kConstruct");function p(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function g(t,e,r){let i=!1;function s(e){if(i)return;i=!0;const s=t._readableState,o=t._writableState;p(e,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(e),e?n.nextTick(b,t,e):n.nextTick(m,t)}try{t._destroy(e||null,s)}catch(e){s(e)}}function b(t,e){y(t,e),m(t)}function m(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(null!=r&&r.emitClose||null!=e&&e.emitClose)&&t.emit("close")}function y(t,e){const r=t._readableState,n=t._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function w(t,e,r){const i=t._readableState,s=t._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?t.destroy(e):e&&(e.stack,s&&!s.errored&&(s.errored=e),i&&!i.errored&&(i.errored=e),r?n.nextTick(y,t,e):y(t,e))}function _(t){let e=!1;function r(r){if(e)return void w(t,null!=r?r:new s);e=!0;const i=t._readableState,o=t._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?t.emit(d,r):r?w(t,r,!0):n.nextTick(v,t)}try{t._construct((t=>{n.nextTick(r,t)}))}catch(t){n.nextTick(r,t)}}function v(t){t.emit(f)}function S(t){return(null==t?void 0:t.setHeader)&&"function"==typeof t.abort}function E(t){t.emit("close")}function x(t,e){t.emit("error",e),n.nextTick(E,t)}t.exports={construct:function(t,e){if("function"!=typeof t._construct)return;const r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(f,e),t.listenerCount(f)>1||n.nextTick(_,t)},destroyer:function(t,e){t&&!u(t)&&(e||h(t)||(e=new o),c(t)?(t.socket=null,t.destroy(e)):S(t)?t.abort():S(t.req)?t.req.abort():"function"==typeof t.destroy?t.destroy(e):"function"==typeof t.close?t.close():e?n.nextTick(x,t,e):n.nextTick(E,t),t.destroyed||(t[l]=!0))},destroy:function(t,e){const r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof e&&e(),this):(p(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?g(this,t,e):this.once(d,(function(r){g(this,i(r,t),e)})),this)},undestroy:function(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=!1===t.readable,t.endEmitted=!1===t.readable),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=!1===e.writable,e.ending=!1===e.writable,e.finished=!1===e.writable)},errorOrDestroy:w}},7074(t,e,r){"use strict";const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:s,ObjectSetPrototypeOf:o}=r(7518);t.exports=u;const a=r(9088),l=r(4144);o(u.prototype,a.prototype),o(u,a);{const t=s(l.prototype);for(let e=0;e<t.length;e++){const r=t[e];u.prototype[r]||(u.prototype[r]=l.prototype[r])}}function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),l.call(this,t),t?(this.allowHalfOpen=!1!==t.allowHalfOpen,!1===t.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===t.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let h,c;function d(){return void 0===h&&(h={}),h}n(u.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}}),u.fromWeb=function(t,e){return d().newStreamDuplexFromReadableWritablePair(t,e)},u.toWeb=function(t){return d().newReadableWritablePairFromDuplex(t)},u.from=function(t){return c||(c=r(7610)),c(t,"body")}},7610(t,e,r){const n=r(4422),i=r(181),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:u,isWritableNodeStream:h,isDuplexNodeStream:c,isReadableStream:d,isWritableStream:f}=r(4331),p=r(4742),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=r(4251),{destroyer:y}=r(4016),w=r(7074),_=r(9088),v=r(4144),{createDeferredPromise:S}=r(248),E=r(4620),x=globalThis.Blob||i.Blob,A=void 0!==x?function(t){return t instanceof x}:function(t){return!1},R=globalThis.AbortController||r(6584).AbortController,{FunctionPrototypeCall:O}=r(7518);class T extends w{constructor(t){super(t),!1===(null==t?void 0:t.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==t?void 0:t.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function k(t){const e=t.readable&&"function"!=typeof t.readable.read?_.wrap(t.readable):t.readable,r=t.writable;let n,i,a,l,u,h=!!s(e),c=!!o(r);function d(t){const e=l;l=null,e?e(t):t&&u.destroy(t)}return u=new T({readableObjectMode:!(null==e||!e.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:h,writable:c}),c&&(p(r,(t=>{c=!1,t&&y(e,t),d(t)})),u._write=function(t,e,i){r.write(t,e)?i():n=i},u._final=function(t){r.end(),i=t},r.on("drain",(function(){if(n){const t=n;n=null,t()}})),r.on("finish",(function(){if(i){const t=i;i=null,t()}}))),h&&(p(e,(t=>{h=!1,t&&y(e,t),d(t)})),e.on("readable",(function(){if(a){const t=a;a=null,t()}})),e.on("end",(function(){u.push(null)})),u._read=function(){for(;;){const t=e.read();if(null===t)return void(a=u._read);if(!u.push(t))return}}),u._destroy=function(t,s){t||null===l||(t=new g),a=null,n=null,i=null,null===l?s(t):(l=s,y(r,t),y(e,t))},u}t.exports=function t(e,r){if(c(e))return e;if(u(e))return k({readable:e});if(h(e))return k({writable:e});if(l(e))return k({writable:!1,readable:!1});if(d(e))return k({readable:_.fromWeb(e)});if(f(e))return k({writable:v.fromWeb(e)});if("function"==typeof e){const{value:t,write:i,final:s,destroy:o}=function(t){let{promise:e,resolve:r}=S();const i=new R,s=i.signal,o=t(async function*(){for(;;){const t=e;e=null;const{chunk:i,done:o,cb:a}=await t;if(n.nextTick(a),o)return;if(s.aborted)throw new g(void 0,{cause:s.reason});({promise:e,resolve:r}=S()),yield i}}(),{signal:s});return{value:o,write(t,e,n){const i=r;r=null,i({chunk:t,done:!1,cb:n})},final(t){const e=r;r=null,e({done:!0,cb:t})},destroy(t,e){i.abort(),e(t)}}}(e);if(a(t))return E(T,t,{objectMode:!0,write:i,final:s,destroy:o});const l=null==t?void 0:t.then;if("function"==typeof l){let e;const r=O(l,t,(t=>{if(null!=t)throw new m("nully","body",t)}),(t=>{y(e,t)}));return e=new T({objectMode:!0,readable:!1,write:i,final(t){s((async()=>{try{await r,n.nextTick(t,null)}catch(e){n.nextTick(t,e)}}))},destroy:o})}throw new m("Iterable, AsyncIterable or AsyncFunction",r,t)}if(A(e))return t(e.arrayBuffer());if(a(e))return E(T,e,{objectMode:!0,writable:!1});if(d(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return T.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable)){return k({readable:null!=e&&e.readable?u(null==e?void 0:e.readable)?null==e?void 0:e.readable:t(e.readable):void 0,writable:null!=e&&e.writable?h(null==e?void 0:e.writable)?null==e?void 0:e.writable:t(e.writable):void 0})}const i=null==e?void 0:e.then;if("function"==typeof i){let t;return O(i,e,(e=>{null!=e&&t.push(e),t.push(null)}),(e=>{y(t,e)})),t=new T({objectMode:!0,writable:!1,read(){}})}throw new b(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},4742(t,e,r){"use strict";const n=r(4422),{AbortError:i,codes:s}=r(4251),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:l,once:u}=r(248),{validateAbortSignal:h,validateFunction:c,validateObject:d,validateBoolean:f}=r(9453),{Promise:p,PromisePrototypeThen:g,SymbolDispose:b}=r(7518),{isClosed:m,isReadable:y,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:A,isWritableFinished:R,isWritableErrored:O,isNodeStream:T,willEmitClose:k,kIsClosedPromise:M}=r(4331);let P;const I=()=>{};function L(t,e,s){var f,p;if(2===arguments.length?(s=e,e=l):null==e?e=l:d(e,"options"),c(s,"callback"),h(e.signal,"options.signal"),s=u(s),_(t)||A(t))return function(t,e,s){let o=!1,a=I;if(e.signal)if(a=()=>{o=!0,s.call(t,new i(void 0,{cause:e.signal.reason}))},e.signal.aborted)n.nextTick(a);else{P=P||r(248).addAbortListener;const n=P(e.signal,a),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}const l=(...e)=>{o||n.nextTick((()=>s.apply(t,e)))};return g(t[M].promise,l,l),I}(t,e,s);if(!T(t))throw new o("stream",["ReadableStream","WritableStream","Stream"],t);const L=null!==(f=e.readable)&&void 0!==f?f:w(t),D=null!==(p=e.writable)&&void 0!==p?p:x(t),C=t._writableState,N=t._readableState,j=()=>{t.writable||W()};let F=k(t)&&w(t)===L&&x(t)===D,$=R(t,!1);const W=()=>{$=!0,t.destroyed&&(F=!1),(!F||t.readable&&!L)&&(L&&!B||s.call(t))};let B=v(t,!1);const U=()=>{B=!0,t.destroyed&&(F=!1),(!F||t.writable&&!D)&&(D&&!$||s.call(t))},z=e=>{s.call(t,e)};let H=m(t);const G=()=>{H=!0;const e=O(t)||S(t);return e&&"boolean"!=typeof e?s.call(t,e):L&&!B&&w(t,!0)&&!v(t,!1)?s.call(t,new a):!D||$||R(t,!1)?void s.call(t):s.call(t,new a)},V=()=>{H=!0;const e=O(t)||S(t);if(e&&"boolean"!=typeof e)return s.call(t,e);s.call(t)},q=()=>{t.req.on("finish",W)};!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?D&&!C&&(t.on("end",j),t.on("close",j)):(t.on("complete",W),F||t.on("abort",G),t.req?q():t.on("request",q)),F||"boolean"!=typeof t.aborted||t.on("aborted",G),t.on("end",U),t.on("finish",W),!1!==e.error&&t.on("error",z),t.on("close",G),H?n.nextTick(G):null!=C&&C.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(L||F&&!y(t)||!$&&!1!==E(t))&&(D||F&&!E(t)||!B&&!1!==y(t))?N&&t.req&&t.aborted&&n.nextTick(V):n.nextTick(V);const Y=()=>{s=I,t.removeListener("aborted",G),t.removeListener("complete",W),t.removeListener("abort",G),t.removeListener("request",q),t.req&&t.req.removeListener("finish",W),t.removeListener("end",j),t.removeListener("close",j),t.removeListener("finish",W),t.removeListener("end",U),t.removeListener("error",z),t.removeListener("close",G)};if(e.signal&&!H){const o=()=>{const r=s;Y(),r.call(t,new i(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)n.nextTick(o);else{P=P||r(248).addAbortListener;const n=P(e.signal,o),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}}return Y}t.exports=L,t.exports.finished=function(t,e){var r;let n=!1;return null===e&&(e=l),null!==(r=e)&&void 0!==r&&r.cleanup&&(f(e.cleanup,"cleanup"),n=e.cleanup),new p(((r,i)=>{const s=L(t,e,(t=>{n&&s(),t?i(t):r()}))}))}},4620(t,e,r){"use strict";const n=r(4422),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r(7518),{Buffer:a}=r(181),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:u}=r(4251).codes;t.exports=function(t,e,r){let h,c;if("string"==typeof e||e instanceof a)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});if(e&&e[s])c=!0,h=e[s]();else{if(!e||!e[o])throw new l("iterable",["Iterable"],e);c=!1,h=e[o]()}const d=new t({objectMode:!0,highWaterMark:1,...r});let f=!1;return d._read=function(){f||(f=!0,async function(){for(;;){try{const{value:t,done:e}=c?await h.next():h.next();if(e)d.push(null);else{const e=t&&"function"==typeof t.then?await t:t;if(null===e)throw f=!1,new u;if(d.push(e))continue;f=!1}}catch(t){d.destroy(t)}break}}())},d._destroy=function(t,e){i(async function(t){const e=null!=t,r="function"==typeof h.throw;if(e&&r){const{value:e,done:r}=await h.throw(t);if(await e,r)return}if("function"==typeof h.return){const{value:t}=await h.return();await t}}(t),(()=>n.nextTick(e,t)),(r=>n.nextTick(e,r||t)))},d}},8091(t,e,r){"use strict";const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(7518),{EventEmitter:s}=r(4434);function o(t){s.call(this,t)}function a(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?n(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}i(o.prototype,s.prototype),i(o,s),o.prototype.pipe=function(t,e){const r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",l),r.on("close",u));let o=!1;function l(){o||(o=!0,t.end())}function u(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){c(),0===s.listenerCount(this,"error")&&this.emit("error",t)}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return a(r,"error",h),a(t,"error",h),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t},t.exports={Stream:o,prependListener:a}},5551(t,e,r){"use strict";const n=globalThis.AbortController||r(6584).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r(4251),{validateAbortSignal:u,validateInteger:h,validateObject:c}=r(9453),d=r(7518).Symbol("kWeak"),f=r(7518).Symbol("kResistStopPropagation"),{finished:p}=r(4742),g=r(3262),{addAbortSignalNoValidate:b}=r(3835),{isWritable:m,isNodeStream:y}=r(4331),{deprecate:w}=r(248),{ArrayPrototypePush:_,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:T,Symbol:k}=r(7518),M=k("kEmpty"),P=k("kEof");function I(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");let n=1;null!=(null==e?void 0:e.concurrency)&&(n=S(e.concurrency));let i=n-1;return null!=(null==e?void 0:e.highWaterMark)&&(i=S(e.highWaterMark)),h(n,"options.concurrency",1),h(i,"options.highWaterMark",0),i+=n,async function*(){const s=r(248).AbortSignalAny([null==e?void 0:e.signal].filter(v)),o=this,a=[],u={signal:s};let h,c,d=!1,f=0;function p(){d=!0,g()}function g(){f-=1,b()}function b(){c&&!d&&f<n&&a.length<i&&(c(),c=null)}!async function(){try{for await(let e of o){if(d)return;if(s.aborted)throw new l;try{if(e=t(e,u),e===M)continue;e=O(e)}catch(t){e=R(t)}f+=1,T(e,g,p),a.push(e),h&&(h(),h=null),!d&&(a.length>=i||f>=n)&&await new A((t=>{c=t}))}a.push(P)}catch(t){const e=R(t);T(e,g,p),a.push(e)}finally{d=!0,h&&(h(),h=null)}}();try{for(;;){for(;a.length>0;){const t=await a[0];if(t===P)return;if(s.aborted)throw new l;t!==M&&(yield t),a.shift(),b()}await new A((t=>{h=t}))}}finally{d=!0,c&&(c(),c=null)}}.call(this)}async function L(t,e=void 0){for await(const r of D.call(this,t,e))return!0;return!1}function D(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return I.call(this,(async function(e,r){return await t(e,r)?e:M}),e)}class C extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(t){if(t=E(t),x(t))return 0;if(t<0)throw new a("number",">= 0",t);return t}t.exports.streamReturningOperators={asIndexedPairs:w((function(t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),async function*(){let e=0;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l({cause:t.signal.reason});yield[e++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;t--<=0&&(yield r)}}.call(this)},filter:D,flatMap:function(t,e){const r=I.call(this,t,e);return async function*(){for await(const t of r)yield*t}.call(this)},map:I,take:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;if(t-- >0&&(yield r),t<=0)return}}.call(this)},compose:function(t,e){if(null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),y(t)&&!m(t))throw new i("stream",t,"must be writable");const r=g(this,t);return null!=e&&e.signal&&b(e.signal,r),r}},t.exports.promiseReturningOperators={every:async function(t,e=void 0){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return!await L.call(this,(async(...e)=>!await t(...e)),e)},forEach:async function(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);for await(const r of I.call(this,(async function(e,r){return await t(e,r),M}),e));},reduce:async function(t,e,r){var i;if("function"!=typeof t)throw new s("reducer",["Function","AsyncFunction"],t);null!=r&&c(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let o=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const t=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(t)),t}const a=new n,h=a.signal;if(null!=r&&r.signal){const t={once:!0,[d]:this,[f]:!0};r.signal.addEventListener("abort",(()=>a.abort()),t)}let g=!1;try{for await(const n of this){var b;if(g=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;o?e=await t(e,n,{signal:h}):(e=n,o=!0)}if(!g&&!o)throw new C}finally{a.abort()}return e},toArray:async function(t){null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:t.signal.reason});_(e,n)}return e},some:L,find:async function(t,e){for await(const r of D.call(this,t,e))return r}}},4183(t,e,r){"use strict";const{ObjectSetPrototypeOf:n}=r(7518);t.exports=s;const i=r(9710);function s(t){if(!(this instanceof s))return new s(t);i.call(this,t)}n(s.prototype,i.prototype),n(s,i),s.prototype._transform=function(t,e,r){r(null,t)}},2502(t,e,r){const n=r(4422),{ArrayIsArray:i,Promise:s,SymbolAsyncIterator:o,SymbolDispose:a}=r(7518),l=r(4742),{once:u}=r(248),h=r(4016),c=r(7074),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:m},AbortError:y}=r(4251),{validateFunction:w,validateAbortSignal:_}=r(9453),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:A,isWebStream:R,isReadableStream:O,isReadableFinished:T}=r(4331),k=globalThis.AbortController||r(6584).AbortController;let M,P,I;function L(t,e,r){let n=!1;t.on("close",(()=>{n=!0}));return{destroy:e=>{n||(n=!0,h.destroyer(t,e||new b("pipe")))},cleanup:l(t,{readable:e,writable:r},(t=>{n=!t}))}}function D(t){if(v(t))return t;if(E(t))return async function*(t){P||(P=r(9088));yield*P.prototype[o].call(t)}(t);throw new f("val",["Readable","Iterable","AsyncIterable"],t)}async function C(t,e,r,{end:n}){let i,o=null;const a=t=>{if(t&&(i=t),o){const t=o;o=null,t()}},u=()=>new s(((t,e)=>{i?e(i):o=()=>{i?e(i):t()}}));e.on("drain",a);const h=l(e,{readable:!1},a);try{e.writableNeedDrain&&await u();for await(const r of t)e.write(r)||await u();n&&(e.end(),await u()),r()}catch(t){r(i!==t?d(i,t):t)}finally{h(),e.off("drain",a)}}async function N(t,e,r,{end:n}){A(e)&&(e=e.writable);const i=e.getWriter();try{for await(const e of t)await i.ready,i.write(e).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(t){try{await i.abort(t),r(t)}catch(t){r(t)}}}function j(t,e,s){if(1===t.length&&i(t[0])&&(t=t[0]),t.length<2)throw new g("streams");const o=new k,l=o.signal,u=null==s?void 0:s.signal,h=[];function d(){W(new y)}let b,m,w;_(u,"options.signal"),I=I||r(248).addAbortListener,u&&(b=I(u,d));const T=[];let P,j=0;function $(t){W(t,0==--j)}function W(t,r){var i;if(!t||m&&"ERR_STREAM_PREMATURE_CLOSE"!==m.code||(m=t),m||r){for(;T.length;)T.shift()(m);null===(i=b)||void 0===i||i[a](),o.abort(),r&&(m||h.forEach((t=>t())),n.nextTick(e,m,w))}}for(let H=0;H<t.length;H++){const G=t[H],V=H<t.length-1,q=H>0,Y=V||!1!==(null==s?void 0:s.end),K=H===t.length-1;if(x(G)){if(Y){const{destroy:Z,cleanup:J}=L(G,V,q);T.push(Z),S(G)&&K&&h.push(J)}function B(t){t&&"AbortError"!==t.name&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code&&$(t)}G.on("error",B),S(G)&&K&&h.push((()=>{G.removeListener("error",B)}))}if(0===H)if("function"==typeof G){if(P=G({signal:l}),!v(P))throw new p("Iterable, AsyncIterable or Stream","source",P)}else P=v(G)||E(G)||A(G)?G:c.from(G);else if("function"==typeof G){var U;if(A(P))P=D(null===(U=P)||void 0===U?void 0:U.readable);else P=D(P);if(P=G(P,{signal:l}),V){if(!v(P,!0))throw new p("AsyncIterable",`transform[${H-1}]`,P)}else{var z;M||(M=r(4183));const Q=new M({objectMode:!0}),X=null===(z=P)||void 0===z?void 0:z.then;if("function"==typeof X)j++,X.call(P,(t=>{w=t,null!=t&&Q.write(t),Y&&Q.end(),n.nextTick($)}),(t=>{Q.destroy(t),n.nextTick($,t)}));else if(v(P,!0))j++,C(P,Q,$,{end:Y});else{if(!O(P)&&!A(P))throw new p("AsyncIterable or Promise","destination",P);{const rt=P.readable||P;j++,C(rt,Q,$,{end:Y})}}P=Q;const{destroy:tt,cleanup:et}=L(P,!1,!0);T.push(tt),K&&h.push(et)}}else if(x(G)){if(E(P)){j+=2;const nt=F(P,G,$,{end:Y});S(G)&&K&&h.push(nt)}else if(A(P)||O(P)){const it=P.readable||P;j++,C(it,G,$,{end:Y})}else{if(!v(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,C(P,G,$,{end:Y})}P=G}else if(R(G)){if(E(P))j++,N(D(P),G,$,{end:Y});else if(O(P)||v(P))j++,N(P,G,$,{end:Y});else{if(!A(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,N(P.readable,G,$,{end:Y})}P=G}else P=c.from(G)}return(null!=l&&l.aborted||null!=u&&u.aborted)&&n.nextTick(d),P}function F(t,e,r,{end:i}){let s=!1;if(e.on("close",(()=>{s||r(new m)})),t.pipe(e,{end:!1}),i){function o(){s=!0,e.end()}T(t)?n.nextTick(o):t.once("end",o)}else r();return l(t,{readable:!0,writable:!1},(e=>{const n=t._readableState;e&&"ERR_STREAM_PREMATURE_CLOSE"===e.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?t.once("end",r).once("error",r):r(e)})),l(e,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:j,pipeline:function(...t){return j(t,u(function(t){return w(t[t.length-1],"streams[stream.length - 1]"),t.pop()}(t)))}}},9088(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeIndexOf:i,NumberIsInteger:s,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:u,ObjectSetPrototypeOf:h,Promise:c,SafeSet:d,SymbolAsyncDispose:f,SymbolAsyncIterator:p,Symbol:g}=r(7518);t.exports=H,H.ReadableState=z;const{EventEmitter:b}=r(4434),{Stream:m,prependListener:y}=r(8091),{Buffer:w}=r(181),{addAbortSignal:_}=r(3835),v=r(4742);let S=r(248).debuglog("stream",(t=>{S=t}));const E=r(8145),x=r(4016),{getHighWaterMark:A,getDefaultHighWaterMark:R}=r(1859),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:k,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:I},AbortError:L}=r(4251),{validateObject:D}=r(9453),C=g("kPaused"),{StringDecoder:N}=r(3141),j=r(4620);h(H.prototype,m.prototype),h(H,m);const F=()=>{},{errorOrDestroy:$}=x,W=2048,B=4096;function U(t){return{enumerable:!1,get(){return!!(this.state&t)},set(e){e?this.state|=t:this.state&=~t}}}function z(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7074)),this.state=6192,t&&t.objectMode&&(this.state|=1),n&&t&&t.readableObjectMode&&(this.state|=1),this.highWaterMark=t?A(this,t,"readableHighWaterMark",n):R(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,t&&!1===t.emitClose&&(this.state&=-2049),t&&!1===t.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new N(t.encoding),this.encoding=t.encoding)}function H(t){if(!(this instanceof H))return new H(t);const e=this instanceof r(7074);this._readableState=new z(t,this,e),t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&!e&&_(t.signal,this)),m.call(this,t),x.construct(this,(()=>{this._readableState.needReadable&&Z(this,this._readableState)}))}function G(t,e,r,n){S("readableAddChunk",e);const i=t._readableState;let s;if(1&i.state||("string"==typeof e?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=w.from(e,r).toString(i.encoding):(e=w.from(e,r),r=""))):e instanceof w?r="":m._isUint8Array(e)?(e=m._uint8ArrayToBuffer(e),r=""):null!=e&&(s=new T("chunk",["string","Buffer","Uint8Array"],e))),s)$(t,s);else if(null===e)i.state&=-9,function(t,e){if(S("onEofChunk"),e.ended)return;if(e.decoder){const t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?Y(t):(e.needReadable=!1,e.emittedReadable=!0,K(t))}(t,i);else if(1&i.state||e&&e.length>0)if(n)if(4&i.state)$(t,new I);else{if(i.destroyed||i.errored)return!1;V(t,i,e,!0)}else if(i.ended)$(t,new P);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||0!==e.length?V(t,i,e,!1):Z(t,i)):V(t,i,e,!1)}else n||(i.state&=-9,Z(t,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function V(t,e,r,n){e.flowing&&0===e.length&&!e.sync&&t.listenerCount("data")>0?(65536&e.state?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),64&e.state&&Y(t)),Z(t,e)}l(z.prototype,{objectMode:U(1),ended:U(2),endEmitted:U(4),reading:U(8),constructed:U(16),sync:U(32),needReadable:U(64),emittedReadable:U(128),readableListening:U(256),resumeScheduled:U(512),errorEmitted:U(1024),emitClose:U(W),autoDestroy:U(B),destroyed:U(8192),closed:U(16384),closeEmitted:U(32768),multiAwaitDrain:U(65536),readingMore:U(1<<17),dataEmitted:U(1<<18)}),H.prototype.destroy=x.destroy,H.prototype._undestroy=x.undestroy,H.prototype._destroy=function(t,e){e(t)},H.prototype[b.captureRejectionSymbol]=function(t){this.destroy(t)},H.prototype[f]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new L,this.destroy(t)),new c(((e,r)=>v(this,(n=>n&&n!==t?r(n):e(null)))))},H.prototype.push=function(t,e){return G(this,t,e,!1)},H.prototype.unshift=function(t,e){return G(this,t,e,!0)},H.prototype.isPaused=function(){const t=this._readableState;return!0===t[C]||!1===t.flowing},H.prototype.setEncoding=function(t){const e=new N(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const t of r)n+=e.write(t);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function q(t,e){return t<=0||0===e.length&&e.ended?0:1&e.state?1:o(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}function Y(t){const e=t._readableState;S("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(S("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(K,t))}function K(t){const e=t._readableState;S("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||e.errored||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,et(t)}function Z(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,n.nextTick(J,t,e))}function J(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){const r=e.length;if(S("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function Q(t){const e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!1===e[C]?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function X(t){S("readable nexttick read 0"),t.read(0)}function tt(t,e){S("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),et(t),e.flowing&&!e.reading&&t.read(0)}function et(t){const e=t._readableState;for(S("flow",e.flowing);e.flowing&&null!==t.read(););}function rt(t,e){"function"!=typeof t.read&&(t=H.wrap(t,{objectMode:!0}));const r=async function*(t,e){let r,n=F;function i(e){this===t?(n(),n=F):n=e}t.on("readable",i);const s=v(t,{writable:!1},(t=>{r=t?O(r,t):null,n(),n=F}));try{for(;;){const e=t.destroyed?null:t.read();if(null!==e)yield e;else{if(r)throw r;if(null===r)return;await new c(i)}}}catch(t){throw r=O(r,t),r}finally{!r&&!1===(null==e?void 0:e.destroyOnReturn)||void 0!==r&&!t._readableState.autoDestroy?(t.off("readable",i),s()):x.destroyer(t,null)}}(t,e);return r.stream=t,r}function nt(t,e){if(0===e.length)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function it(t){const e=t._readableState;S("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(st,e,t))}function st(t,e){if(S("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&0===t.length)if(t.endEmitted=!0,e.emit("end"),e.writable&&!1===e.allowHalfOpen)n.nextTick(ot,e);else if(t.autoDestroy){const t=e._writableState;(!t||t.autoDestroy&&(t.finished||!1===t.writable))&&e.destroy()}}function ot(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}let at;function lt(){return void 0===at&&(at={}),at}H.prototype.read=function(t){S("read",t),void 0===t?t=NaN:s(t)||(t=a(t,10));const e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=function(t){if(t>1073741824)throw new M("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,++t}(t)),0!==t&&(e.state&=-129),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return S("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?it(this):Y(this),null;if(0===(t=q(t,e))&&e.ended)return 0===e.length&&it(this),null;let n,i=!!(64&e.state);if(S("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,S("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),e.state|=40,0===e.length&&(e.state|=64);try{this._read(e.highWaterMark)}catch(t){$(this,t)}e.state&=-33,e.reading||(t=q(r,e))}return n=t>0?nt(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&it(this)),null===n||e.errorEmitted||e.closeEmitted||(e.dataEmitted=!0,this.emit("data",n)),n},H.prototype._read=function(t){throw new k("_read()")},H.prototype.pipe=function(t,e){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),S("pipe count=%d opts=%j",i.pipes.length,e);const s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?a:b;function o(e,n){S("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),l&&t.removeListener("drain",l);t.removeListener("error",f),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}())}function a(){S("onend"),t.end()}let l;i.endEmitted?n.nextTick(s):r.once("end",s),t.on("unpipe",o);let u=!1;function h(){u||(1===i.pipes.length&&i.pipes[0]===t?(S("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=function(t,e){return function(){const r=t._readableState;r.awaitDrainWriters===e?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!t.listenerCount("data")||t.resume()}}(r,t),t.on("drain",l))}function c(e){S("ondata");const r=t.write(e);S("dest.write",r),!1===r&&h()}function f(e){if(S("onerror",e),b(),t.removeListener("error",f),0===t.listenerCount("error")){const r=t._writableState||t._readableState;r&&!r.errorEmitted?$(t,e):t.emit("error",e)}}function p(){t.removeListener("finish",g),b()}function g(){S("onfinish"),t.removeListener("close",p),b()}function b(){S("unpipe"),r.unpipe(t)}return r.on("data",c),y(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",r),!0===t.writableNeedDrain?h():i.flowing||(S("pipe resume"),r.resume()),t},H.prototype.unpipe=function(t){const e=this._readableState;if(0===e.pipes.length)return this;if(!t){const t=e.pipes;e.pipes=[],this.pause();for(let e=0;e<t.length;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(e.pipes,t);return-1===r||(e.pipes.splice(r,1),0===e.pipes.length&&this.pause(),t.emit("unpipe",this,{hasUnpiped:!1})),this},H.prototype.on=function(t,e){const r=m.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Y(this):i.reading||n.nextTick(X,this))),r},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(t,e){const r=m.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(Q,this),r},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(t){const e=m.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(Q,this),e},H.prototype.resume=function(){const t=this._readableState;return t.flowing||(S("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(tt,t,e))}(this,t)),t[C]=!1,this},H.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[C]=!0,this},H.prototype.wrap=function(t){let e=!1;t.on("data",(r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())})),t.on("end",(()=>{this.push(null)})),t.on("error",(t=>{$(this,t)})),t.on("close",(()=>{this.destroy()})),t.on("destroy",(()=>{this.destroy()})),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};const r=u(t);for(let e=1;e<r.length;e++){const n=r[e];void 0===this[n]&&"function"==typeof t[n]&&(this[n]=t[n].bind(t))}return this},H.prototype[p]=function(){return rt(this)},H.prototype.iterator=function(t){return void 0!==t&&D(t,"options"),rt(this,t)},l(H.prototype,{readable:{__proto__:null,get(){const t=this._readableState;return!(!t||!1===t.readable||t.destroyed||t.errorEmitted||t.endEmitted)},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(z.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[C]},set(t){this[C]=!!t}}}),H._fromList=nt,H.from=function(t,e){return j(H,t,e)},H.fromWeb=function(t,e){return lt().newStreamReadableFromReadableStream(t,e)},H.toWeb=function(t,e){return lt().newReadableStreamFromStreamReadable(t,e)},H.wrap=function(t,e){var r,n;return new H({objectMode:null===(r=null!==(n=t.readableObjectMode)&&void 0!==n?n:t.objectMode)||void 0===r||r,...e,destroy(e,r){x.destroyer(t,e),r(e)}}).wrap(t)}},1859(t,e,r){"use strict";const{MathFloor:n,NumberIsInteger:i}=r(7518),{validateInteger:s}=r(9453),{ERR_INVALID_ARG_VALUE:o}=r(4251).codes;let a=16384,l=16;function u(t){return t?l:a}t.exports={getHighWaterMark:function(t,e,r,s){const a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,s,r);if(null!=a){if(!i(a)||a<0){throw new o(s?`options.${r}`:"options.highWaterMark",a)}return n(a)}return u(t.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(t,e){s(e,"value",0),t?l=e:a=e}}},9710(t,e,r){"use strict";const{ObjectSetPrototypeOf:n,Symbol:i}=r(7518);t.exports=u;const{ERR_METHOD_NOT_IMPLEMENTED:s}=r(4251).codes,o=r(7074),{getHighWaterMark:a}=r(1859);n(u.prototype,o.prototype),n(u,o);const l=i("kCallback");function u(t){if(!(this instanceof u))return new u(t);const e=t?a(this,t,"readableHighWaterMark",!0):null;0===e&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),o.call(this,t),this._readableState.sync=!1,this[l]=null,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function h(t){"function"!=typeof this._flush||this.destroyed?(this.push(null),t&&t()):this._flush(((e,r)=>{e?t?t(e):this.destroy(e):(null!=r&&this.push(r),this.push(null),t&&t())}))}function c(){this._final!==h&&h.call(this)}u.prototype._final=h,u.prototype._transform=function(t,e,r){throw new s("_transform()")},u.prototype._write=function(t,e,r){const n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,((t,e)=>{t?r(t):(null!=e&&this.push(e),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},u.prototype._read=function(){if(this[l]){const t=this[l];this[l]=null,t()}}},4331(t,e,r){"use strict";const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r(7518),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),u=s("nodejs.stream.writable"),h=s("nodejs.stream.disturbed"),c=s("nodejs.webstream.isClosedPromise"),d=s("nodejs.webstream.controllerErrorFunction");function f(t,e=!1){var r;return!(!t||"function"!=typeof t.pipe||"function"!=typeof t.on||e&&("function"!=typeof t.pause||"function"!=typeof t.resume)||t._writableState&&!1===(null===(r=t._readableState)||void 0===r?void 0:r.readable)||t._writableState&&!t._readableState)}function p(t){var e;return!(!t||"function"!=typeof t.write||"function"!=typeof t.on||t._readableState&&!1===(null===(e=t._writableState)||void 0===e?void 0:e.writable))}function g(t){return t&&(t._readableState||t._writableState||"function"==typeof t.write&&"function"==typeof t.on||"function"==typeof t.pipe&&"function"==typeof t.on)}function b(t){return!(!t||g(t)||"function"!=typeof t.pipeThrough||"function"!=typeof t.getReader||"function"!=typeof t.cancel)}function m(t){return!(!t||g(t)||"function"!=typeof t.getWriter||"function"!=typeof t.abort)}function y(t){return!(!t||g(t)||"object"!=typeof t.readable||"object"!=typeof t.writable)}function w(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[o]||null!=n&&n.destroyed)}function _(t){if(!p(t))return null;if(!0===t.writableEnded)return!0;const e=t._writableState;return(null==e||!e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)}function v(t,e){if(!f(t))return null;const r=t._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===e&&!0===r.ended&&0===r.length))}function S(t){return t&&null!=t[l]?t[l]:"boolean"!=typeof(null==t?void 0:t.readable)?null:!w(t)&&(f(t)&&t.readable&&!v(t))}function E(t){return t&&null!=t[u]?t[u]:"boolean"!=typeof(null==t?void 0:t.writable)?null:!w(t)&&(p(t)&&t.writable&&!_(t))}function x(t){return"boolean"==typeof t._closed&&"boolean"==typeof t._defaultKeepAlive&&"boolean"==typeof t._removedConnection&&"boolean"==typeof t._removedContLen}function A(t){return"boolean"==typeof t._sent100&&x(t)}t.exports={isDestroyed:w,kIsDestroyed:o,isDisturbed:function(t){var e;return!(!t||!(null!==(e=t[h])&&void 0!==e?e:t.readableDidRead||t.readableAborted))},kIsDisturbed:h,isErrored:function(t){var e,r,n,i,s,o,l,u,h,c;return!(!t||!(null!==(e=null!==(r=null!==(n=null!==(i=null!==(s=null!==(o=t[a])&&void 0!==o?o:t.readableErrored)&&void 0!==s?s:t.writableErrored)&&void 0!==i?i:null===(l=t._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=t._writableState)||void 0===u?void 0:u.errorEmitted)&&void 0!==r?r:null===(h=t._readableState)||void 0===h?void 0:h.errored)&&void 0!==e?e:null===(c=t._writableState)||void 0===c?void 0:c.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:d,kIsWritable:u,isClosed:function(t){if(!g(t))return null;if("boolean"==typeof t.closed)return t.closed;const e=t._writableState,r=t._readableState;return"boolean"==typeof(null==e?void 0:e.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==e?void 0:e.closed)||(null==r?void 0:r.closed):"boolean"==typeof t._closed&&x(t)?t._closed:null},isDuplexNodeStream:function(t){return!(!t||"function"!=typeof t.pipe||!t._readableState||"function"!=typeof t.on||"function"!=typeof t.write)},isFinished:function(t,e){return g(t)?!!w(t)||(!1===(null==e?void 0:e.readable)||!S(t))&&(!1===(null==e?void 0:e.writable)||!E(t)):null},isIterable:function(t,e){return null!=t&&(!0===e?"function"==typeof t[n]:!1===e?"function"==typeof t[i]:"function"==typeof t[n]||"function"==typeof t[i])},isReadableNodeStream:f,isReadableStream:b,isReadableEnded:function(t){if(!f(t))return null;if(!0===t.readableEnded)return!0;const e=t._readableState;return!(!e||e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)},isReadableFinished:v,isReadableErrored:function(t){var e,r;return g(t)?t.readableErrored?t.readableErrored:null!==(e=null===(r=t._readableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isNodeStream:g,isWebStream:function(t){return b(t)||m(t)||y(t)},isWritable:E,isWritableNodeStream:p,isWritableStream:m,isWritableEnded:_,isWritableFinished:function(t,e){if(!p(t))return null;if(!0===t.writableFinished)return!0;const r=t._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===e&&!0===r.ended&&0===r.length))},isWritableErrored:function(t){var e,r;return g(t)?t.writableErrored?t.writableErrored:null!==(e=null===(r=t._writableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isServerRequest:function(t){var e;return"boolean"==typeof t._consuming&&"boolean"==typeof t._dumped&&void 0===(null===(e=t.req)||void 0===e?void 0:e.upgradeOrConnect)},isServerResponse:A,willEmitClose:function(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&A(t)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:y}},4144(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeSlice:i,Error:s,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:h,Symbol:c,SymbolHasInstance:d}=r(7518);t.exports=D,D.WritableState=I;const{EventEmitter:f}=r(4434),p=r(8091).Stream,{Buffer:g}=r(181),b=r(4016),{addAbortSignal:m}=r(3835),{getHighWaterMark:y,getDefaultHighWaterMark:w}=r(1859),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:T}=r(4251).codes,{errorOrDestroy:k}=b;function M(){}u(D.prototype,p.prototype),u(D,p);const P=c("kOnFinished");function I(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7074)),this.objectMode=!(!t||!t.objectMode),n&&(this.objectMode=this.objectMode||!(!t||!t.writableObjectMode)),this.highWaterMark=t?y(this,t,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!t||!1!==t.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||!1!==t.emitClose,this.autoDestroy=!t||!1!==t.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function L(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}function D(t){const e=this instanceof r(7074);if(!e&&!o(D,this))return new D(t);this._writableState=new I(t,this,e),t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&m(t.signal,this)),p.call(this,t),b.construct(this,(()=>{const t=this._writableState;t.writing||U(this,t),G(this,t)}))}function C(t,e,r,i){const s=t._writableState;if("function"==typeof r)i=r,r=s.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new T(r)}else r=s.defaultEncoding;"function"!=typeof i&&(i=M)}if(null===e)throw new R;if(!s.objectMode)if("string"==typeof e)!1!==s.decodeStrings&&(e=g.from(e,r),r="buffer");else if(e instanceof g)r="buffer";else{if(!p._isUint8Array(e))throw new _("chunk",["string","Buffer","Uint8Array"],e);e=p._uint8ArrayToBuffer(e),r="buffer"}let o;return s.ending?o=new O:s.destroyed&&(o=new x("write")),o?(n.nextTick(i,o),k(t,o,!0),o):(s.pendingcb++,function(t,e,r,n,i){const s=e.objectMode?1:r.length;e.length+=s;const o=e.length<e.highWaterMark;o||(e.needDrain=!0);e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:n,callback:i}),e.allBuffers&&"buffer"!==n&&(e.allBuffers=!1),e.allNoop&&i!==M&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(r,n,e.onwrite),e.sync=!1);return o&&!e.errored&&!e.destroyed}(t,s,e,r,i))}function N(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function j(t,e,r,n){--e.pendingcb,n(r),B(e),k(t,r)}function F(t,e){const r=t._writableState,i=r.sync,s=r.writecb;"function"==typeof s?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?n.nextTick(j,t,r,e,s):j(t,r,e,s)):(r.buffered.length>r.bufferedIndex&&U(t,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:t,state:r},n.nextTick($,r.afterWriteTickInfo)):W(t,r,1,s))):k(t,new S)}function $({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,W(t,e,r,n)}function W(t,e,r,n){for(!e.ending&&!t.destroyed&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&B(e),G(t,e)}function B(t){if(t.writing)return;for(let r=t.bufferedIndex;r<t.buffered.length;++r){var e;const{chunk:n,callback:i}=t.buffered[r],s=t.objectMode?1:n.length;t.length-=s,i(null!==(e=t.errored)&&void 0!==e?e:new x("write"))}const r=t[P].splice(0);for(let e=0;e<r.length;e++){var n;r[e](null!==(n=t.errored)&&void 0!==n?n:new x("end"))}L(t)}function U(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:s}=e,o=r.length-n;if(!o)return;let a=n;if(e.bufferProcessing=!0,o>1&&t._writev){e.pendingcb-=o-1;const n=e.allNoop?M:t=>{for(let e=a;e<r.length;++e)r[e].callback(t)},s=e.allNoop&&0===a?r:i(r,a);s.allBuffers=e.allBuffers,N(t,e,!0,e.length,s,"",n),L(e)}else{do{const{chunk:n,encoding:i,callback:o}=r[a];r[a++]=null;N(t,e,!1,s?1:n.length,n,i,o)}while(a<r.length&&!e.writing);a===r.length?L(e):a>256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}function z(t){return t.ending&&!t.destroyed&&t.constructed&&0===t.length&&!t.errored&&0===t.buffered.length&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function H(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.finalCalled=!0,function(t,e){let r=!1;function i(i){if(r)k(t,null!=i?i:S());else if(r=!0,e.pendingcb--,i){const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t](i);k(t,i,e.sync)}else z(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,n.nextTick(V,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(t){i(t)}e.sync=!1}(t,e)))}function G(t,e,r){z(e)&&(H(t,e),0===e.pendingcb&&(r?(e.pendingcb++,n.nextTick(((t,e)=>{z(e)?V(t,e):e.pendingcb--}),t,e)):z(e)&&(e.pendingcb++,V(t,e))))}function V(t,e){e.pendingcb--,e.finished=!0;const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t]();if(t.emit("finish"),e.autoDestroy){const e=t._readableState;(!e||e.autoDestroy&&(e.endEmitted||!1===e.readable))&&t.destroy()}}I.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(D,d,{__proto__:null,value:function(t){return!!o(this,t)||this===D&&(t&&t._writableState instanceof I)}}),D.prototype.pipe=function(){k(this,new E)},D.prototype.write=function(t,e,r){return!0===C(this,t,e,r)},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){const t=this._writableState;t.corked&&(t.corked--,t.writing||U(this,t))},D.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=h(t)),!g.isEncoding(t))throw new T(t);return this._writableState.defaultEncoding=t,this},D.prototype._write=function(t,e,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:t,encoding:e}],r)},D.prototype._writev=null,D.prototype.end=function(t,e,r){const i=this._writableState;let o;if("function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t){const r=C(this,t,e);r instanceof s&&(o=r)}return i.corked&&(i.corked=1,this.uncork()),o||(i.errored||i.ending?i.finished?o=new A("end"):i.destroyed&&(o=new x("end")):(i.ending=!0,G(this,i,!0),i.ended=!0)),"function"==typeof r&&(o||i.finished?n.nextTick(r,o):i[P].push(r)),this},l(D.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){const t=this._writableState;return!(!t||!1===t.writable||t.destroyed||t.errored||t.ending||t.ended)},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const t=this._writableState;return!!t&&(!t.destroyed&&!t.ending&&t.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=b.destroy;let Y;function K(){return void 0===Y&&(Y={}),Y}D.prototype.destroy=function(t,e){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&n.nextTick(B,r),q.call(this,t,e),this},D.prototype._undestroy=b.undestroy,D.prototype._destroy=function(t,e){e(t)},D.prototype[f.captureRejectionSymbol]=function(t){this.destroy(t)},D.fromWeb=function(t,e){return K().newStreamWritableFromWritableStream(t,e)},D.toWeb=function(t){return K().newWritableStreamFromStreamWritable(t)}},9453(t,e,r){"use strict";const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:h,NumberParseInt:c,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:g,StringPrototypeTrim:b}=r(7518),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(4251),{normalizeEncoding:E}=r(248),{isAsyncFunction:x,isArrayBufferView:A}=r(248).types,R={};const O=/^[0-7]+$/;const T=m(((t,e,r=h,n=u)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),k=m(((t,e,r=-2147483648,n=2147483647)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),M=m(((t,e,r=!1)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);const n=r?1:0,i=4294967295;if(t<n||t>i)throw new v(e,`>= ${n} && <= ${i}`,t)}));function P(t,e){if("string"!=typeof t)throw new w(e,"string",t)}const I=m(((t,e,r)=>{if(!i(r,t)){const n=s(o(r,(t=>"string"==typeof t?`'${t}'`:p(t))),", ");throw new _(e,t,"must be one of: "+n)}}));function L(t,e){if("boolean"!=typeof t)throw new w(e,"boolean",t)}function D(t,e,r){return null!=t&&d(t,e)?t[e]:r}const C=m(((t,e,r=null)=>{const i=D(r,"allowArray",!1),s=D(r,"allowFunction",!1);if(!D(r,"nullable",!1)&&null===t||!i&&n(t)||"object"!=typeof t&&(!s||"function"!=typeof t))throw new w(e,"Object",t)})),N=m(((t,e)=>{if(null!=t&&"object"!=typeof t&&"function"!=typeof t)throw new w(e,"a dictionary",t)})),j=m(((t,e,r=0)=>{if(!n(t))throw new w(e,"Array",t);if(t.length<r){throw new _(e,t,`must be longer than ${r}`)}}));const F=m(((t,e="buffer")=>{if(!A(t))throw new w(e,["Buffer","TypedArray","DataView"],t)}));const $=m(((t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new w(e,"AbortSignal",t)})),W=m(((t,e)=>{if("function"!=typeof t)throw new w(e,"Function",t)})),B=m(((t,e)=>{if("function"!=typeof t||x(t))throw new w(e,"Function",t)})),U=m(((t,e)=>{if(void 0!==t)throw new w(e,"undefined",t)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function H(t,e){if(void 0===t||!f(z,t))throw new _(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:function(t){return t===(0|t)},isUint32:function(t){return t===t>>>0},parseFileMode:function(t,e,r){if(void 0===t&&(t=r),"string"==typeof t){if(null===f(O,t))throw new _(e,t,"must be a 32-bit unsigned integer or an octal string");t=c(t,8)}return M(t,e),t},validateArray:j,validateStringArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)P(t[r],`${e}[${r}]`)},validateBooleanArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)L(t[r],`${e}[${r}]`)},validateAbortSignalArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++){const n=t[r],i=`${e}[${r}]`;if(null==n)throw new w(i,"AbortSignal",n);$(n,i)}},validateBoolean:L,validateBuffer:F,validateDictionary:N,validateEncoding:function(t,e){const r=E(e),n=t.length;if("hex"===r&&n%2!=0)throw new _("encoding",e,`is invalid for data of length ${n}`)},validateFunction:W,validateInt32:k,validateInteger:T,validateNumber:function(t,e,r=void 0,n){if("number"!=typeof t)throw new w(e,"number",t);if(null!=r&&t<r||null!=n&&t>n||(null!=r||null!=n)&&l(t))throw new v(e,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,t)},validateObject:C,validateOneOf:I,validatePlainFunction:B,validatePort:function(t,e="Port",r=!0){if("number"!=typeof t&&"string"!=typeof t||"string"==typeof t&&0===b(t).length||+t!=+t>>>0||t>65535||0===t&&!r)throw new y(e,t,r);return 0|t},validateSignalName:function(t,e="signal"){if(P(t,e),void 0===R[t]){if(void 0!==R[g(t)])throw new S(t+" (signals must use all capital letters)");throw new S(t)}},validateString:P,validateUint32:M,validateUndefined:U,validateUnion:function(t,e,r){if(!i(r,t))throw new w(e,`('${s(r,"|")}')`,t)},validateAbortSignal:$,validateLinkHeaderValue:function(t){if("string"==typeof t)return H(t,"hints"),t;if(n(t)){const e=t.length;let r="";if(0===e)return r;for(let n=0;n<e;n++){const i=t[n];H(i,"hints"),r+=i,n!==e-1&&(r+=", ")}return r}throw new _("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},4251(t,e,r){"use strict";const{format:n,inspect:i}=r(9751),{AggregateError:s}=r(7518),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,h={};function c(t,e){if(!t)throw new h.ERR_INTERNAL_ASSERTION(e)}function d(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function f(t,e,r){r||(r=Error);class i extends r{constructor(...r){super(function(t,e,r){if("function"==typeof e)return c(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const i=(e.match(/%[dfijoOs]/g)||[]).length;return c(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?e:n(e,...r)}(t,e,r))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[a]=!0,h[t]=i}function p(t){const e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t}class g extends Error{constructor(t="The operation was aborted",e=void 0){if(void 0!==e&&"object"!=typeof e)throw new h.ERR_INVALID_ARG_TYPE("options","Object",e);super(t,e),this.code="ABORT_ERR",this.name="AbortError"}}f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",((t,e,r)=>{c("string"==typeof t,"'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const s=[],o=[],a=[];for(const t of e)c("string"==typeof t,"All expected entries have to be of type string"),l.includes(t)?s.push(t.toLowerCase()):u.test(t)?o.push(t):(c("object"!==t,'The value "object" should be written as "Object"'),a.push(t));if(o.length>0){const t=s.indexOf("object");-1!==t&&(s.splice(s,t,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{const t=s.pop();n+=`one of type ${s.join(", ")}, or ${t}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const t=o.pop();n+=`an instance of ${o.join(", ")}, or ${t}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const t=a.pop();n+=`one of ${a.join(", ")}, or ${t}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var h;if(null!==(h=r.constructor)&&void 0!==h&&h.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let t=i(r,{colors:!1});t.length>25&&(t=`${t.slice(0,25)}...`),n+=`. Received type ${typeof r} (${t})`}return n}),TypeError),f("ERR_INVALID_ARG_VALUE",((t,e,r="is invalid")=>{let n=i(e);n.length>128&&(n=n.slice(0,128)+"...");return`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`}),TypeError),f("ERR_INVALID_RETURN_VALUE",((t,e,r)=>{var n;return`Expected ${t} to be returned from the "${e}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),f("ERR_MISSING_ARGS",((...t)=>{let e;c(t.length>0,"At least one arg needs to be specified");const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map((t=>`"${t}"`)).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}}return`${e} must be specified`}),TypeError),f("ERR_OUT_OF_RANGE",((t,e,r)=>{let n;if(c(e,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32)n=d(String(r));else if("bigint"==typeof r){n=String(r);const t=BigInt(2)**BigInt(32);(r>t||r<-t)&&(n=d(n)),n+="n"}else n=i(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${n}`}),RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:g,aggregateTwoErrors:p((function(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new o([e,t],e.message);return r.code=e.code,r}return t||e})),hideStackFrames:p,codes:h}},4614(t,e,r){"use strict";const n=r(2203);if(n&&"disable"===process.env.READABLE_STREAM){const e=n.promises;t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>e}),t.exports.Stream=n.Stream}else{const e=r(2618),n=r(6463),i=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=i,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get:()=>n}),t.exports.Stream=e.Stream}t.exports.default=t.exports},7518(t){"use strict";class e extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError("Expected input to be an Array, got "+typeof t);let e="";for(let r=0;r<t.length;r++)e+=` ${t[r].stack}\n`;super(e),this.name="AggregateError",this.errors=t}}t.exports={AggregateError:e,ArrayIsArray:t=>Array.isArray(t),ArrayPrototypeIncludes:(t,e)=>t.includes(e),ArrayPrototypeIndexOf:(t,e)=>t.indexOf(e),ArrayPrototypeJoin:(t,e)=>t.join(e),ArrayPrototypeMap:(t,e)=>t.map(e),ArrayPrototypePop:(t,e)=>t.pop(e),ArrayPrototypePush:(t,e)=>t.push(e),ArrayPrototypeSlice:(t,e,r)=>t.slice(e,r),Error,FunctionPrototypeCall:(t,e,...r)=>t.call(e,...r),FunctionPrototypeSymbolHasInstance:(t,e)=>Function.prototype[Symbol.hasInstance].call(t,e),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(t,e)=>Object.defineProperties(t,e),ObjectDefineProperty:(t,e,r)=>Object.defineProperty(t,e,r),ObjectGetOwnPropertyDescriptor:(t,e)=>Object.getOwnPropertyDescriptor(t,e),ObjectKeys:t=>Object.keys(t),ObjectSetPrototypeOf:(t,e)=>Object.setPrototypeOf(t,e),Promise,PromisePrototypeCatch:(t,e)=>t.catch(e),PromisePrototypeThen:(t,e,r)=>t.then(e,r),PromiseReject:t=>Promise.reject(t),PromiseResolve:t=>Promise.resolve(t),ReflectApply:Reflect.apply,RegExpPrototypeTest:(t,e)=>t.test(e),SafeSet:Set,String,StringPrototypeSlice:(t,e,r)=>t.slice(e,r),StringPrototypeToLowerCase:t=>t.toLowerCase(),StringPrototypeToUpperCase:t=>t.toUpperCase(),StringPrototypeTrim:t=>t.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(t,e,r)=>t.set(e,r),Boolean,Uint8Array}},248(t,e,r){"use strict";const n=r(181),{format:i,inspect:s}=r(9751),{codes:{ERR_INVALID_ARG_TYPE:o}}=r(4251),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:u}=r(7518),h=globalThis.AbortSignal||r(6584).AbortSignal,c=globalThis.AbortController||r(6584).AbortController,d=Object.getPrototypeOf((async function(){})).constructor,f=globalThis.Blob||n.Blob,p=void 0!==f?function(t){return t instanceof f}:function(t){return!1},g=(t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new o(e,"AbortSignal",t)};t.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise(((r,n)=>{t=r,e=n})),resolve:t,reject:e}},promisify:t=>new Promise(((e,r)=>{t(((t,...n)=>t?r(t):e(...n)))})),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:t=>t instanceof d,isArrayBufferView:t=>ArrayBuffer.isView(t)},isBlob:p,deprecate:(t,e)=>t,addAbortListener:r(4434).addAbortListener||function(t,e){if(void 0===t)throw new o("signal","AbortSignal",t);let r;return g(t,"signal"),((t,e)=>{if("function"!=typeof t)throw new o(e,"Function",t)})(e,"listener"),t.aborted?queueMicrotask((()=>e())):(t.addEventListener("abort",e,{__proto__:null,once:!0,[a]:!0}),r=()=>{t.removeEventListener("abort",e)}),{__proto__:null,[u](){var t;null===(t=r)||void 0===t||t()}}},AbortSignalAny:h.any||function(t){if(1===t.length)return t[0];const e=new c,r=()=>e.abort();return t.forEach((t=>{g(t,"signals"),t.addEventListener("abort",r,{once:!0})})),e.signal.addEventListener("abort",(()=>{t.forEach((t=>t.removeEventListener("abort",r)))}),{once:!0}),e.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},9751(t){"use strict";t.exports={format:(t,...e)=>t.replace(/%([sdifj])/g,(function(...[t,r]){const n=e.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(t){switch(typeof t){case"string":if(t.includes("'")){if(!t.includes('"'))return`"${t}"`;if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}},2618(t,e,r){"use strict";const{Buffer:n}=r(181),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r(7518),{promisify:{custom:a}}=r(248),{streamReturningOperators:l,promiseReturningOperators:u}=r(5551),{codes:{ERR_ILLEGAL_CONSTRUCTOR:h}}=r(4251),c=r(3262),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:f}=r(1859),{pipeline:p}=r(2502),{destroyer:g}=r(4016),b=r(4742),m=r(6463),y=r(4331),w=t.exports=r(8091).Stream;w.isDestroyed=y.isDestroyed,w.isDisturbed=y.isDisturbed,w.isErrored=y.isErrored,w.isReadable=y.isReadable,w.isWritable=y.isWritable,w.Readable=r(9088);for(const v of s(l)){const S=l[v];function E(...t){if(new.target)throw h();return w.Readable.from(o(S,this,t))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(w.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of s(u)){const A=u[x];function R(...t){if(new.target)throw h();return o(A,this,t)}i(R,"name",{__proto__:null,value:A.name}),i(R,"length",{__proto__:null,value:A.length}),i(w.Readable.prototype,x,{__proto__:null,value:R,enumerable:!1,configurable:!0,writable:!0})}w.Writable=r(4144),w.Duplex=r(7074),w.Transform=r(9710),w.PassThrough=r(4183),w.pipeline=p;const{addAbortSignal:_}=r(3835);w.addAbortSignal=_,w.finished=b,w.destroy=g,w.compose=c,w.setDefaultHighWaterMark=d,w.getDefaultHighWaterMark=f,i(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>m}),i(p,a,{__proto__:null,enumerable:!0,get:()=>m.pipeline}),i(b,a,{__proto__:null,enumerable:!0,get:()=>m.finished}),w.Stream=w,w._isUint8Array=function(t){return t instanceof Uint8Array},w._uint8ArrayToBuffer=function(t){return n.from(t.buffer,t.byteOffset,t.byteLength)}},6463(t,e,r){"use strict";const{ArrayPrototypePop:n,Promise:i}=r(7518),{isIterable:s,isNodeStream:o,isWebStream:a}=r(4331),{pipelineImpl:l}=r(2502),{finished:u}=r(4742);r(2618),t.exports={finished:u,pipeline:function(...t){return new i(((e,r)=>{let i,u;const h=t[t.length-1];if(h&&"object"==typeof h&&!o(h)&&!s(h)&&!a(h)){const e=n(t);i=e.signal,u=e.end}l(t,((t,n)=>{t?r(t):e(n)}),{signal:i,end:u})}))}}},7042(t){function e(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}t.exports={isBuffer:function(t){return Buffer.isBuffer(t)||t instanceof Uint8Array},isEncoding:function(t){return Buffer.isEncoding(t)},alloc:function(t,e,r){return Buffer.alloc(t,e,r)},allocUnsafe:function(t){return Buffer.allocUnsafe(t)},allocUnsafeSlow:function(t){return Buffer.allocUnsafeSlow(t)},byteLength:function(t,e){return Buffer.byteLength(t,e)},compare:function(t,e){return Buffer.compare(t,e)},concat:function(t,e){return Buffer.concat(t,e)},copy:function(t,r,n,i,s){return e(t).copy(r,n,i,s)},equals:function(t,r){return e(t).equals(r)},fill:function(t,r,n,i,s){return e(t).fill(r,n,i,s)},from:function(t,e,r){return Buffer.from(t,e,r)},includes:function(t,r,n,i){return e(t).includes(r,n,i)},indexOf:function(t,r,n,i){return e(t).indexOf(r,n,i)},lastIndexOf:function(t,r,n,i){return e(t).lastIndexOf(r,n,i)},swap16:function(t){return e(t).swap16()},swap32:function(t){return e(t).swap32()},swap64:function(t){return e(t).swap64()},toBuffer:e,toString:function(t,r,n,i){return e(t).toString(r,n,i)},write:function(t,r,n,i,s){return e(t).write(r,n,i,s)},writeDoubleLE:function(t,r,n){return e(t).writeDoubleLE(r,n)},writeFloatLE:function(t,r,n){return e(t).writeFloatLE(r,n)},writeUInt32LE:function(t,r,n){return e(t).writeUInt32LE(r,n)},writeInt32LE:function(t,r,n){return e(t).writeInt32LE(r,n)},readDoubleLE:function(t,r){return e(t).readDoubleLE(r)},readFloatLE:function(t,r){return e(t).readFloatLE(r)},readUInt32LE:function(t,r){return e(t).readUInt32LE(r)},readInt32LE:function(t,r){return e(t).readInt32LE(r)},writeDoubleBE:function(t,r,n){return e(t).writeDoubleBE(r,n)},writeFloatBE:function(t,r,n){return e(t).writeFloatBE(r,n)},writeUInt32BE:function(t,r,n){return e(t).writeUInt32BE(r,n)},writeInt32BE:function(t,r,n){return e(t).writeInt32BE(r,n)},readDoubleBE:function(t,r){return e(t).readDoubleBE(r)},readFloatBE:function(t,r){return e(t).readFloatBE(r)},readUInt32BE:function(t,r){return e(t).readUInt32BE(r)},readInt32BE:function(t,r){return e(t).readInt32BE(r)}}},8505(t){"use strict";function e(t,e,i){t instanceof RegExp&&(t=r(t,i)),e instanceof RegExp&&(e=r(e,i));var s=n(t,e,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+t.length,s[1]),post:i.slice(s[1]+e.length)}}function r(t,e){var r=e.match(t);return r?r[0]:null}function n(t,e,r){var n,i,s,o,a,l=r.indexOf(t),u=r.indexOf(e,l+1),h=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;h>=0&&!a;)h==l?(n.push(h),l=r.indexOf(t,h+1)):1==n.length?a=[n.pop(),u]:((i=n.pop())<s&&(s=i,o=u),u=r.indexOf(e,h+1)),h=l<u&&l>=0?l:u;n.length&&(a=[s,o])}return a}t.exports=e,e.range=n},8928(t,e,r){var n=r(8505);t.exports=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return b(function(t){return t.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(o).split("\\,").join(a).split("\\.").join(l)}(t),!0).map(h)};var i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function u(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function h(t){return t.split(i).join("\\").split(s).join("{").split(o).join("}").split(a).join(",").split(l).join(".")}function c(t){if(!t)return[""];var e=[],r=n("{","}",t);if(!r)return t.split(",");var i=r.pre,s=r.body,o=r.post,a=i.split(",");a[a.length-1]+="{"+s+"}";var l=c(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),e.push.apply(e,a),e}function d(t){return"{"+t+"}"}function f(t){return/^-?0\d/.test(t)}function p(t,e){return t<=e}function g(t,e){return t>=e}function b(t,e){var r=[],i=n("{","}",t);if(!i)return[t];var s=i.pre,a=i.post.length?b(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<a.length;l++){var h=s+"{"+i.body+"}"+a[l];r.push(h)}else{var m,y,w=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),_=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),v=w||_,S=i.body.indexOf(",")>=0;if(!v&&!S)return i.post.match(/,(?!,).*\}/)?b(t=i.pre+"{"+i.body+o+i.post):[t];if(v)m=i.body.split(/\.\./);else if(1===(m=c(i.body)).length&&1===(m=b(m[0],!1).map(d)).length)return a.map((function(t){return i.pre+m[0]+t}));if(v){var E=u(m[0]),x=u(m[1]),A=Math.max(m[0].length,m[1].length),R=3==m.length?Math.abs(u(m[2])):1,O=p;x<E&&(R*=-1,O=g);var T=m.some(f);y=[];for(var k=E;O(k,x);k+=R){var M;if(_)"\\"===(M=String.fromCharCode(k))&&(M="");else if(M=String(k),T){var P=A-M.length;if(P>0){var I=new Array(P+1).join("0");M=k<0?"-"+I+M.slice(1):I+M}}y.push(M)}}else{y=[];for(var L=0;L<m.length;L++)y.push.apply(y,b(m[L],!1))}for(L=0;L<y.length;L++)for(l=0;l<a.length;l++){h=s+y[L]+a[l];(!e||v||h)&&r.push(h)}}return r}},5248(t,e,r){"use strict";const n=r(4083),{stdout:i,stderr:s}=r(7687),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(4058),{isArray:l}=Array,u=["ansi","ansi","ansi256","ansi16m"],h=Object.create(null);class c{constructor(t){return d(t)}}const d=t=>{const e={};return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=i?i.level:0;t.level=void 0===e.level?r:e.level})(e,t),e.template=(...t)=>_(e.template,...t),Object.setPrototypeOf(e,f.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=c,e.template};function f(t){return d(t)}for(const[t,e]of Object.entries(n))h[t]={get(){const r=m(this,b(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};h.visible={get(){const t=m(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of p)h[t]={get(){const{level:e}=this;return function(...r){const i=b(n.color[u[e]][t](...r),n.color.close,this._styler);return m(this,i,this._isEmpty)}}};for(const t of p){h["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const i=b(n.bgColor[u[e]][t](...r),n.bgColor.close,this._styler);return m(this,i,this._isEmpty)}}}}const g=Object.defineProperties((()=>{}),{...h,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),b=(t,e,r)=>{let n,i;return void 0===r?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},m=(t,e,r)=>{const n=(...t)=>l(t[0])&&l(t[0].raw)?y(n,_(n,...t)):y(n,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(n,g),n._generator=t,n._styler=e,n._isEmpty=r,n},y=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(void 0===r)return e;const{openAll:n,closeAll:i}=r;if(-1!==e.indexOf(""))for(;void 0!==r;)e=o(e,r.close,r.open),r=r.parent;const s=e.indexOf("\n");return-1!==s&&(e=a(e,i,n,s)),n+e+i};let w;const _=(t,...e)=>{const[n]=e;if(!l(n)||!l(n.raw))return e.join(" ");const i=e.slice(1),s=[n.raw[0]];for(let t=1;t<n.length;t++)s.push(String(i[t-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[t]));return void 0===w&&(w=r(2991)),w(t,s.join(""))};Object.defineProperties(f.prototype,h);const v=f();v.supportsColor=i,v.stderr=f({level:s?s.level:0}),v.stderr.supportsColor=s,t.exports=v},2991(t){"use strict";const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function o(t){const e="u"===t[0],r="{"===t[1];return e&&!r&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):s.get(t)||t}function a(t,e){const r=[],s=e.trim().split(/\s*,\s*/g);let a;for(const e of s){const s=Number(e);if(Number.isNaN(s)){if(!(a=e.match(n)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(a[2].replace(i,((t,e,r)=>e?o(e):r)))}else r.push(s)}return r}function l(t){r.lastIndex=0;const e=[];let n;for(;null!==(n=r.exec(t));){const t=n[1];if(n[2]){const r=a(t,n[2]);e.push([t].concat(r))}else e.push([t])}return e}function u(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const[t,e]of Object.entries(r))if(Array.isArray(e)){if(!(t in n))throw new Error(`Unknown Chalk style: ${t}`);n=e.length>0?n[t](...e):n[t]}return n}t.exports=(t,r)=>{const n=[],i=[];let s=[];if(r.replace(e,((e,r,a,h,c,d)=>{if(r)s.push(o(r));else if(h){const e=s.join("");s=[],i.push(0===n.length?e:u(t,n)(e)),n.push({inverse:a,styles:l(h)})}else if(c){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(u(t,n)(s.join(""))),s=[],n.pop()}else s.push(d)})),i.push(s.join("")),n.length>0){const t=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(t)}return i.join("")}},4058(t){"use strict";t.exports={stringReplaceAll:(t,e,r)=>{let n=t.indexOf(e);if(-1===n)return t;const i=e.length;let s=0,o="";do{o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s)}while(-1!==n);return o+=t.substr(s),o},stringEncaseCRLFWithFirstIndex:(t,e,r,n)=>{let i=0,s="";do{const o="\r"===t[n-1];s+=t.substr(i,(o?n-1:n)-i)+e+(o?"\r\n":"\n")+r,i=n+1,n=t.indexOf("\n",i)}while(-1!==n);return s+=t.substr(i),s}}},5659(t,e,r){const n=r(8156),i={};for(const t of Object.keys(n))i[n[t]]=t;const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=s;for(const t of Object.keys(s)){if(!("channels"in s[t]))throw new Error("missing channels property: "+t);if(!("labels"in s[t]))throw new Error("missing channel labels property: "+t);if(s[t].labels.length!==s[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=s[t];delete s[t].channels,delete s[t].labels,Object.defineProperty(s[t],"channels",{value:e}),Object.defineProperty(s[t],"labels",{value:r})}s.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i;let a,l;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(60*a,360),a<0&&(a+=360);const u=(i+s)/2;return l=s===i?0:u<=.5?o/(s+i):o/(2-s-i),[a,100*l,100*u]},s.rgb.hsv=function(t){let e,r,n,i,s;const o=t[0]/255,a=t[1]/255,l=t[2]/255,u=Math.max(o,a,l),h=u-Math.min(o,a,l),c=function(t){return(u-t)/6/h+.5};return 0===h?(i=0,s=0):(s=h/u,e=c(o),r=c(a),n=c(l),o===u?i=n-r:a===u?i=1/3+e-n:l===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*s,100*u]},s.rgb.hwb=function(t){const e=t[0],r=t[1];let n=t[2];const i=s.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},s.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n);return[100*((1-e-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},s.rgb.keyword=function(t){const e=i[t];if(e)return e;let r,s=1/0;for(const e of Object.keys(n)){const i=n[e],l=(a=i,((o=t)[0]-a[0])**2+(o[1]-a[1])**2+(o[2]-a[2])**2);l<s&&(s=l,r=e)}var o,a;return r},s.keyword.rgb=function(t){return n[t]},s.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},s.rgb.lab=function(t){const e=s.rgb.xyz(t);let r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(r-n),200*(n-i)]},s.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;let i,s,o;if(0===r)return o=255*n,[o,o,o];i=n<.5?n*(1+r):n+r-n*r;const a=2*n-i,l=[0,0,0];for(let t=0;t<3;t++)s=e+1/3*-(t-1),s<0&&s++,s>1&&s--,o=6*s<1?a+6*(i-a)*s:2*s<1?i:3*s<2?a+(i-a)*(2/3-s)*6:a,l[t]=255*o;return l},s.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,n=t[2]/100,i=r;const s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;return[e,100*(0===n?2*i/(s+i):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let n=t[2]/100;const i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}},s.hsv.hsl=function(t){const e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01);let s,o;o=(2-r)*n;const a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,100*s,100*o]},s.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,n=t[2]/100;const i=r+n;let s;i>1&&(r/=i,n/=i);const o=Math.floor(6*e),a=1-n;s=6*e-o,1&o&&(s=1-s);const l=r+s*(a-r);let u,h,c;switch(o){default:case 6:case 0:u=a,h=l,c=r;break;case 1:u=l,h=a,c=r;break;case 2:u=r,h=a,c=l;break;case 3:u=r,h=l,c=a;break;case 4:u=l,h=r,c=a;break;case 5:u=a,h=r,c=l}return[255*u,255*h,255*c]},s.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},s.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100;let i,s,o;return i=3.2406*e+-1.5372*r+-.4986*n,s=-.9689*e+1.8758*r+.0415*n,o=.0557*e+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*i,255*s,255*o]},s.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(e-r),200*(r-n)]},s.lab.xyz=function(t){let e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;const i=r**3,s=e**3,o=n**3;return r=i>.008856?i:(r-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},s.lab.lch=function(t){const e=t[0],r=t[1],n=t[2];let i;i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360);return[e,Math.sqrt(r*r+n*n),i]},s.lch.lab=function(t){const e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},s.rgb.ansi16=function(t,e=null){const[r,n,i]=t;let o=null===e?s.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(a+=60),a},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.rgb.ansi256=function(t){const e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},s.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},s.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},s.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];3===e[0].length&&(r=r.split("").map((t=>t+t)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s;let a,l;return a=o<1?s/(1-o):0,l=o<=0?0:i===e?(r-n)/o%6:i===r?2+(n-e)/o:4+(e-r)/o,l/=6,l%=1,[360*l,100*o,100*a]},s.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},s.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=e*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},s.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],s=e%1*6,o=s%1,a=1-o;let l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[255*(r*i[0]+l),255*(r*i[1]+l),255*(r*i[2]+l)]},s.hcg.hsv=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);let n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},s.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},s.hcg.hwb=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},s.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,n=r-e;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=function(t){return[0,0,t[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},734(t,e,r){const n=r(5659),i=r(8507),s={};Object.keys(n).forEach((t=>{s[t]={},Object.defineProperty(s[t],"channels",{value:n[t].channels}),Object.defineProperty(s[t],"labels",{value:n[t].labels});const e=i(t);Object.keys(e).forEach((r=>{const n=e[r];s[t][r]=function(t){const e=function(...e){const r=e[0];if(null==r)return r;r.length>1&&(e=r);const n=t(e);if("object"==typeof n)for(let t=n.length,e=0;e<t;e++)n[e]=Math.round(n[e]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(n),s[t][r].raw=function(t){const e=function(...e){const r=e[0];return null==r?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=s},8507(t,e,r){const n=r(5659);function i(t){const e=function(){const t={},e=Object.keys(n);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;){const t=r.pop(),i=Object.keys(n[t]);for(let n=i.length,s=0;s<n;s++){const n=i[s],o=e[n];-1===o.distance&&(o.distance=e[t].distance+1,o.parent=t,r.unshift(n))}}return e}function s(t,e){return function(r){return e(t(r))}}function o(t,e){const r=[e[t].parent,t];let i=n[e[t].parent][t],o=e[t].parent;for(;e[o].parent;)r.unshift(e[o].parent),i=s(n[e[o].parent][o],i),o=e[o].parent;return i.conversion=r,i}t.exports=function(t){const e=i(t),r={},n=Object.keys(e);for(let t=n.length,i=0;i<t;i++){const t=n[i];null!==e[t].parent&&(r[t]=o(t,e))}return r}},8156(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},3543(t){var e=t.exports=function(){};e.prototype.getName=function(){},e.prototype.getSize=function(){},e.prototype.getLastModifiedDate=function(){},e.prototype.isDirectory=function(){}},587(t,e,r){var n=r(9023).inherits,i=r(1232),s=r(1169).Transform,o=r(3543),a=r(8575),l=t.exports=function(t){if(!(this instanceof l))return new l(t);s.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};n(l,s),l.prototype._appendBuffer=function(t,e,r){},l.prototype._appendStream=function(t,e,r){},l.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)},l.prototype._finish=function(t){},l.prototype._normalizeEntry=function(t){},l.prototype._transform=function(t,e,r){r(null,t)},l.prototype.entry=function(t,e,r){if(e=e||null,"function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),t instanceof o)if(this._archive.finish||this._archive.finished)r(new Error("unacceptable entry after finish"));else{if(!this._archive.processing){if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=a.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else{if(!i(e))return this._archive.processing=!1,void r(new Error("input source must be valid Stream or Buffer instance"));this._appendStream(t,e,r)}return this}r(new Error("already processing an entry"))}else r(new Error("not a valid instance of ArchiveEntry"))},l.prototype.finish=function(){this._archive.processing?this._archive.finish=!0:this._finish()},l.prototype.getBytesWritten=function(){return this.offset},l.prototype.write=function(t,e){return t&&(this.offset+=t.length),s.prototype.write.call(this,t,e)}},4909(t){t.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},9933(t,e,r){var n=r(5026),i=t.exports=function(){return this instanceof i?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new i};i.prototype.encode=function(){return n.getShortBytes((this.descriptor?8:0)|(this.utf8?2048:0)|(this.encryption?1:0)|(this.strongEncryption?64:0))},i.prototype.parse=function(t,e){var r=n.getShortBytesValue(t,e),s=new i;return s.useDataDescriptor(!!(8&r)),s.useUTF8ForNames(!!(2048&r)),s.useStrongEncryption(!!(64&r)),s.useEncryption(!!(1&r)),s.setSlidingDictionarySize(2&r?8192:4096),s.setNumberOfShannonFanoTrees(4&r?3:2),s},i.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t},i.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},i.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t},i.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},i.prototype.useDataDescriptor=function(t){this.descriptor=t},i.prototype.usesDataDescriptor=function(){return this.descriptor},i.prototype.useEncryption=function(t){this.encryption=t},i.prototype.usesEncryption=function(){return this.encryption},i.prototype.useStrongEncryption=function(t){this.strongEncryption=t},i.prototype.usesStrongEncryption=function(){return this.strongEncryption},i.prototype.useUTF8ForNames=function(t){this.utf8=t},i.prototype.usesUTF8ForNames=function(){return this.utf8}},6247(t){t.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},5026(t){var e=t.exports={};e.dateToDos=function(t,e){var r=(e=e||!1)?t.getFullYear():t.getUTCFullYear();return r<1980?2162688:r>=2044?2141175677:r-1980<<25|(e?t.getMonth():t.getUTCMonth())+1<<21|(e?t.getDate():t.getUTCDate())<<16|(e?t.getHours():t.getUTCHours())<<11|(e?t.getMinutes():t.getUTCMinutes())<<5|(e?t.getSeconds():t.getUTCSeconds())/2},e.dosToDate=function(t){return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)},e.fromDosTime=function(t){return e.dosToDate(t.readUInt32LE(0))},e.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e},e.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((65535&t)>>>0,0),e},e.getShortBytesValue=function(t,e){return t.readUInt16LE(e)},e.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((4294967295&t)>>>0,0),e},e.getLongBytesValue=function(t,e){return t.readUInt32LE(e)},e.toDosTime=function(t){return e.getLongBytes(e.dateToDos(t))}},7149(t,e,r){var n=r(9023).inherits,i=r(4100),s=r(3543),o=r(9933),a=r(6247),l=r(4909),u=r(5026),h=t.exports=function(t){if(!(this instanceof h))return new h(t);s.call(this),this.platform=l.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new o,this.crc=0,this.time=-1,this.minver=l.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};n(h,s),h.prototype.getCentralDirectoryExtra=function(){return this.getExtra()},h.prototype.getComment=function(){return null!==this.comment?this.comment:""},h.prototype.getCompressedSize=function(){return this.csize},h.prototype.getCrc=function(){return this.crc},h.prototype.getExternalAttributes=function(){return this.exattr},h.prototype.getExtra=function(){return null!==this.extra?this.extra:l.EMPTY},h.prototype.getGeneralPurposeBit=function(){return this.gpb},h.prototype.getInternalAttributes=function(){return this.inattr},h.prototype.getLastModifiedDate=function(){return this.getTime()},h.prototype.getLocalFileDataExtra=function(){return this.getExtra()},h.prototype.getMethod=function(){return this.method},h.prototype.getName=function(){return this.name},h.prototype.getPlatform=function(){return this.platform},h.prototype.getSize=function(){return this.size},h.prototype.getTime=function(){return-1!==this.time?u.dosToDate(this.time):-1},h.prototype.getTimeDos=function(){return-1!==this.time?this.time:0},h.prototype.getUnixMode=function(){return this.platform!==l.PLATFORM_UNIX?0:this.getExternalAttributes()>>l.SHORT_SHIFT&l.SHORT_MASK},h.prototype.getVersionNeededToExtract=function(){return this.minver},h.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t},h.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t},h.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t},h.prototype.setExternalAttributes=function(t){this.exattr=t>>>0},h.prototype.setExtra=function(t){this.extra=t},h.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof o))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t},h.prototype.setInternalAttributes=function(t){this.inattr=t},h.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t},h.prototype.setName=function(t,e=!1){t=i(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t},h.prototype.setPlatform=function(t){this.platform=t},h.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t},h.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=u.dateToDos(t,e)},h.prototype.setUnixMode=function(t){var e=0;e|=(t|=this.isDirectory()?l.S_IFDIR:l.S_IFREG)<<l.SHORT_SHIFT|(this.isDirectory()?l.S_DOS_D:l.S_DOS_A),this.setExternalAttributes(e),this.mode=t&l.MODE_MASK,this.platform=l.PLATFORM_UNIX},h.prototype.setVersionNeededToExtract=function(t){this.minver=t},h.prototype.isDirectory=function(){return"/"===this.getName().slice(-1)},h.prototype.isUnixSymlink=function(){return(this.getUnixMode()&a.FILE_TYPE_FLAG)===a.LINK_FLAG},h.prototype.isZip64=function(){return this.csize>l.ZIP64_MAGIC||this.size>l.ZIP64_MAGIC}},3349(t,e,r){var n=r(9023).inherits,i=r(2566),{CRC32Stream:s}=r(71),{DeflateCRC32Stream:o}=r(71),a=r(587),l=(r(7149),r(9933),r(4909)),u=(r(8575),r(5026)),h=t.exports=function(t){if(!(this instanceof h))return new h(t);t=this.options=this._defaults(t),a.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};n(h,a),h.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},h.prototype._appendBuffer=function(t,e,r){0===e.length&&t.setMethod(l.METHOD_STORED);var n=t.getMethod();return n===l.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(i.buf(e)>>>0)),this._writeLocalFileHeader(t),n===l.METHOD_STORED?(this.write(e),this._afterAppend(t),void r(null,t)):n===l.METHOD_DEFLATED?void this._smartStream(t,r).end(e):void r(new Error("compression method "+n+" not implemented"))},h.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(l.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var n=this._smartStream(t,r);e.once("error",(function(t){n.emit("error",t),n.end()})),e.pipe(n)},h.prototype._defaults=function(t){return"object"!=typeof t&&(t={}),"object"!=typeof t.zlib&&(t.zlib={}),"number"!=typeof t.zlib.level&&(t.zlib.level=l.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t},h.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},h.prototype._normalizeEntry=function(t){-1===t.getMethod()&&t.setMethod(l.METHOD_DEFLATED),t.getMethod()===l.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(l.MIN_VERSION_DATA_DESCRIPTOR)),-1===t.getTime()&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}},h.prototype._smartStream=function(t,e){var r=t.getMethod()===l.METHOD_DEFLATED?new o(this.options.zlib):new s,n=null;return r.once("end",function(){var i=r.digest().readUInt32BE(0);t.setCrc(i),t.setSize(r.size()),t.setCompressedSize(r.size(!0)),this._afterAppend(t),e(n,t)}.bind(this)),r.once("error",(function(t){n=t})),r.pipe(this,{end:!1}),r},h.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=l.ZIP64_MAGIC_SHORT,e=l.ZIP64_MAGIC,r=l.ZIP64_MAGIC),this.write(u.getLongBytes(l.SIG_EOCD)),this.write(l.SHORT_ZERO),this.write(l.SHORT_ZERO),this.write(u.getShortBytes(t)),this.write(u.getShortBytes(t)),this.write(u.getLongBytes(e)),this.write(u.getLongBytes(r));var n=this.getComment(),i=Buffer.byteLength(n);this.write(u.getShortBytes(i)),this.write(n)},h.prototype._writeCentralDirectoryZip64=function(){this.write(u.getLongBytes(l.SIG_ZIP64_EOCD)),this.write(u.getEightBytes(44)),this.write(u.getShortBytes(l.MIN_VERSION_ZIP64)),this.write(u.getShortBytes(l.MIN_VERSION_ZIP64)),this.write(l.LONG_ZERO),this.write(l.LONG_ZERO),this.write(u.getEightBytes(this._entries.length)),this.write(u.getEightBytes(this._entries.length)),this.write(u.getEightBytes(this._archive.centralLength)),this.write(u.getEightBytes(this._archive.centralOffset)),this.write(u.getLongBytes(l.SIG_ZIP64_EOCD_LOC)),this.write(l.LONG_ZERO),this.write(u.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(u.getLongBytes(1))},h.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),n=t._offsets.file,i=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||n>l.ZIP64_MAGIC){i=l.ZIP64_MAGIC,s=l.ZIP64_MAGIC,n=l.ZIP64_MAGIC,t.setVersionNeededToExtract(l.MIN_VERSION_ZIP64);var o=Buffer.concat([u.getShortBytes(l.ZIP64_EXTRA_ID),u.getShortBytes(24),u.getEightBytes(t.getSize()),u.getEightBytes(t.getCompressedSize()),u.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(u.getLongBytes(l.SIG_CFH)),this.write(u.getShortBytes(t.getPlatform()<<8|l.VERSION_MADEBY)),this.write(u.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(u.getShortBytes(r)),this.write(u.getLongBytes(t.getTimeDos())),this.write(u.getLongBytes(t.getCrc())),this.write(u.getLongBytes(s)),this.write(u.getLongBytes(i));var a=t.getName(),h=t.getComment(),c=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),h=Buffer.from(h)),this.write(u.getShortBytes(a.length)),this.write(u.getShortBytes(c.length)),this.write(u.getShortBytes(h.length)),this.write(l.SHORT_ZERO),this.write(u.getShortBytes(t.getInternalAttributes())),this.write(u.getLongBytes(t.getExternalAttributes())),this.write(u.getLongBytes(n)),this.write(a),this.write(c),this.write(h)},h.prototype._writeDataDescriptor=function(t){this.write(u.getLongBytes(l.SIG_DD)),this.write(u.getLongBytes(t.getCrc())),t.isZip64()?(this.write(u.getEightBytes(t.getCompressedSize())),this.write(u.getEightBytes(t.getSize()))):(this.write(u.getLongBytes(t.getCompressedSize())),this.write(u.getLongBytes(t.getSize())))},h.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),n=t.getName(),i=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(l.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(n=Buffer.from(n)),t._offsets.file=this.offset,this.write(u.getLongBytes(l.SIG_LFH)),this.write(u.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(u.getShortBytes(r)),this.write(u.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(l.LONG_ZERO),this.write(l.LONG_ZERO),this.write(l.LONG_ZERO)):(this.write(u.getLongBytes(t.getCrc())),this.write(u.getLongBytes(t.getCompressedSize())),this.write(u.getLongBytes(t.getSize()))),this.write(u.getShortBytes(n.length)),this.write(u.getShortBytes(i.length)),this.write(n),this.write(i),t._offsets.contents=this.offset},h.prototype.getComment=function(t){return null!==this._archive.comment?this._archive.comment:""},h.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>l.ZIP64_MAGIC_SHORT||this._archive.centralLength>l.ZIP64_MAGIC||this._archive.centralOffset>l.ZIP64_MAGIC},h.prototype.setComment=function(t){this._archive.comment=t}},8351(t,e,r){t.exports={ArchiveEntry:r(3543),ZipArchiveEntry:r(7149),ArchiveOutputStream:r(587),ZipArchiveOutputStream:r(3349)}},8575(t,e,r){r(2203).Stream;var n=r(1169).PassThrough,i=r(1232);(t.exports={}).normalizeInputSource=function(t){if(null===t)return Buffer.alloc(0);if("string"==typeof t)return Buffer.from(t);if(i(t)&&!t._readableState){var e=new n;return t.pipe(e),e}return t}},6066(t,e,r){"use strict";const{SymbolDispose:n}=r(5801),{AbortError:i,codes:s}=r(2918),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:l}=r(48),u=r(9661),{ERR_INVALID_ARG_TYPE:h}=s;let c;t.exports.addAbortSignal=function(e,r){if(((t,e)=>{if("object"!=typeof t||!("aborted"in t))throw new h(e,"AbortSignal",t)})(e,"signal"),!o(r)&&!a(r))throw new h("stream",["ReadableStream","WritableStream","Stream"],r);return t.exports.addAbortSignalNoValidate(e,r)},t.exports.addAbortSignalNoValidate=function(t,e){if("object"!=typeof t||!("aborted"in t))return e;const s=o(e)?()=>{e.destroy(new i(void 0,{cause:t.reason}))}:()=>{e[l](new i(void 0,{cause:t.reason}))};if(t.aborted)s();else{c=c||r(4953).addAbortListener;const i=c(t,s);u(e,i[n])}return e}},586(t,e,r){"use strict";const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r(5801),{Buffer:a}=r(181),{inspect:l}=r(4953);t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}unshift(t){const e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}shift(){if(0===this.length)return;const t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(0===this.length)return"";let e=this.head,r=""+e.data;for(;null!==(e=e.next);)r+=t+e.data;return r}concat(t){if(0===this.length)return a.alloc(0);const e=a.allocUnsafe(t>>>0);let r=this.head,n=0;for(;r;)s(e,r.data,n),n+=r.data.length,r=r.next;return e}consume(t,e){const r=this.head.data;if(t<r.length){const e=r.slice(0,t);return this.head.data=r.slice(t),e}return t===r.length?this.shift():e?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[i](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let e="",r=this.head,i=0;do{const s=r.data;if(!(t>s.length)){t===s.length?(e+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(e+=n(s,0,t),this.head=r,r.data=n(s,t));break}e+=s,t-=s.length,++i}while(null!==(r=r.next));return this.length-=i,e}_getBuffer(t){const e=a.allocUnsafe(t),r=t;let n=this.head,i=0;do{const a=n.data;if(!(t>a.length)){t===a.length?(s(e,a,r-t),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(e,new o(a.buffer,a.byteOffset,t),r-t),this.head=n,n.data=a.slice(t));break}s(e,a,r-t),t-=a.length,++i}while(null!==(n=n.next));return this.length-=i,e}[Symbol.for("nodejs.util.inspect.custom")](t,e){return l(this,{...e,depth:0,customInspect:!1})}}},5953(t,e,r){"use strict";const{pipeline:n}=r(4503),i=r(1599),{destroyer:s}=r(8071),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:u,isTransformStream:h,isWritableStream:c,isReadableStream:d}=r(48),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:g}}=r(2918),b=r(9661);t.exports=function(...t){if(0===t.length)throw new g("streams");if(1===t.length)return i.from(t[0]);const e=[...t];if("function"==typeof t[0]&&(t[0]=i.from(t[0])),"function"==typeof t[t.length-1]){const e=t.length-1;t[e]=i.from(t[e])}for(let r=0;r<t.length;++r)if(o(t[r])||u(t[r])){if(r<t.length-1&&!(a(t[r])||d(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be readable");if(r>0&&!(l(t[r])||c(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be writable")}let r,m,y,w,_;const v=t[0],S=n(t,(function(t){const e=w;w=null,e?e(t):t?_.destroy(t):x||E||_.destroy()})),E=!!(l(v)||c(v)||h(v)),x=!!(a(S)||d(S)||h(S));if(_=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(o(v))_._write=function(t,e,n){v.write(t,e)?n():r=n},_._final=function(t){v.end(),m=t},v.on("drain",(function(){if(r){const t=r;r=null,t()}}));else if(u(v)){const t=(h(v)?v.writable:v).getWriter();_._write=async function(e,r,n){try{await t.ready,t.write(e).catch((()=>{})),n()}catch(t){n(t)}},_._final=async function(e){try{await t.ready,t.close().catch((()=>{})),m=e}catch(t){e(t)}}}const t=h(S)?S.readable:S;b(t,(()=>{if(m){const t=m;m=null,t()}}))}if(x)if(o(S))S.on("readable",(function(){if(y){const t=y;y=null,t()}})),S.on("end",(function(){_.push(null)})),_._read=function(){for(;;){const t=S.read();if(null===t)return void(y=_._read);if(!_.push(t))return}};else if(u(S)){const t=(h(S)?S.readable:S).getReader();_._read=async function(){for(;;)try{const{value:e,done:r}=await t.read();if(!_.push(e))return;if(r)return void _.push(null)}catch{return}}}return _._destroy=function(t,e){t||null===w||(t=new f),y=null,r=null,m=null,null===w?e(t):(w=e,o(S)&&s(S,t))},_}},8071(t,e,r){"use strict";const n=r(4422),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r(2918),{Symbol:a}=r(5801),{kIsDestroyed:l,isDestroyed:u,isFinished:h,isServerRequest:c}=r(48),d=a("kDestroy"),f=a("kConstruct");function p(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function g(t,e,r){let i=!1;function s(e){if(i)return;i=!0;const s=t._readableState,o=t._writableState;p(e,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(e),e?n.nextTick(b,t,e):n.nextTick(m,t)}try{t._destroy(e||null,s)}catch(e){s(e)}}function b(t,e){y(t,e),m(t)}function m(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(null!=r&&r.emitClose||null!=e&&e.emitClose)&&t.emit("close")}function y(t,e){const r=t._readableState,n=t._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function w(t,e,r){const i=t._readableState,s=t._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?t.destroy(e):e&&(e.stack,s&&!s.errored&&(s.errored=e),i&&!i.errored&&(i.errored=e),r?n.nextTick(y,t,e):y(t,e))}function _(t){let e=!1;function r(r){if(e)return void w(t,null!=r?r:new s);e=!0;const i=t._readableState,o=t._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?t.emit(d,r):r?w(t,r,!0):n.nextTick(v,t)}try{t._construct((t=>{n.nextTick(r,t)}))}catch(t){n.nextTick(r,t)}}function v(t){t.emit(f)}function S(t){return(null==t?void 0:t.setHeader)&&"function"==typeof t.abort}function E(t){t.emit("close")}function x(t,e){t.emit("error",e),n.nextTick(E,t)}t.exports={construct:function(t,e){if("function"!=typeof t._construct)return;const r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(f,e),t.listenerCount(f)>1||n.nextTick(_,t)},destroyer:function(t,e){t&&!u(t)&&(e||h(t)||(e=new o),c(t)?(t.socket=null,t.destroy(e)):S(t)?t.abort():S(t.req)?t.req.abort():"function"==typeof t.destroy?t.destroy(e):"function"==typeof t.close?t.close():e?n.nextTick(x,t,e):n.nextTick(E,t),t.destroyed||(t[l]=!0))},destroy:function(t,e){const r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof e&&e(),this):(p(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?g(this,t,e):this.once(d,(function(r){g(this,i(r,t),e)})),this)},undestroy:function(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=!1===t.readable,t.endEmitted=!1===t.readable),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=!1===e.writable,e.ending=!1===e.writable,e.finished=!1===e.writable)},errorOrDestroy:w}},1599(t,e,r){"use strict";const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:s,ObjectSetPrototypeOf:o}=r(5801);t.exports=u;const a=r(1117),l=r(8941);o(u.prototype,a.prototype),o(u,a);{const t=s(l.prototype);for(let e=0;e<t.length;e++){const r=t[e];u.prototype[r]||(u.prototype[r]=l.prototype[r])}}function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),l.call(this,t),t?(this.allowHalfOpen=!1!==t.allowHalfOpen,!1===t.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===t.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let h,c;function d(){return void 0===h&&(h={}),h}n(u.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}}),u.fromWeb=function(t,e){return d().newStreamDuplexFromReadableWritablePair(t,e)},u.toWeb=function(t){return d().newReadableWritablePairFromDuplex(t)},u.from=function(t){return c||(c=r(4445)),c(t,"body")}},4445(t,e,r){const n=r(4422),i=r(181),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:u,isWritableNodeStream:h,isDuplexNodeStream:c,isReadableStream:d,isWritableStream:f}=r(48),p=r(9661),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=r(2918),{destroyer:y}=r(8071),w=r(1599),_=r(1117),v=r(8941),{createDeferredPromise:S}=r(4953),E=r(5509),x=globalThis.Blob||i.Blob,A=void 0!==x?function(t){return t instanceof x}:function(t){return!1},R=globalThis.AbortController||r(6584).AbortController,{FunctionPrototypeCall:O}=r(5801);class T extends w{constructor(t){super(t),!1===(null==t?void 0:t.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==t?void 0:t.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function k(t){const e=t.readable&&"function"!=typeof t.readable.read?_.wrap(t.readable):t.readable,r=t.writable;let n,i,a,l,u,h=!!s(e),c=!!o(r);function d(t){const e=l;l=null,e?e(t):t&&u.destroy(t)}return u=new T({readableObjectMode:!(null==e||!e.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:h,writable:c}),c&&(p(r,(t=>{c=!1,t&&y(e,t),d(t)})),u._write=function(t,e,i){r.write(t,e)?i():n=i},u._final=function(t){r.end(),i=t},r.on("drain",(function(){if(n){const t=n;n=null,t()}})),r.on("finish",(function(){if(i){const t=i;i=null,t()}}))),h&&(p(e,(t=>{h=!1,t&&y(e,t),d(t)})),e.on("readable",(function(){if(a){const t=a;a=null,t()}})),e.on("end",(function(){u.push(null)})),u._read=function(){for(;;){const t=e.read();if(null===t)return void(a=u._read);if(!u.push(t))return}}),u._destroy=function(t,s){t||null===l||(t=new g),a=null,n=null,i=null,null===l?s(t):(l=s,y(r,t),y(e,t))},u}t.exports=function t(e,r){if(c(e))return e;if(u(e))return k({readable:e});if(h(e))return k({writable:e});if(l(e))return k({writable:!1,readable:!1});if(d(e))return k({readable:_.fromWeb(e)});if(f(e))return k({writable:v.fromWeb(e)});if("function"==typeof e){const{value:t,write:i,final:s,destroy:o}=function(t){let{promise:e,resolve:r}=S();const i=new R,s=i.signal,o=t(async function*(){for(;;){const t=e;e=null;const{chunk:i,done:o,cb:a}=await t;if(n.nextTick(a),o)return;if(s.aborted)throw new g(void 0,{cause:s.reason});({promise:e,resolve:r}=S()),yield i}}(),{signal:s});return{value:o,write(t,e,n){const i=r;r=null,i({chunk:t,done:!1,cb:n})},final(t){const e=r;r=null,e({done:!0,cb:t})},destroy(t,e){i.abort(),e(t)}}}(e);if(a(t))return E(T,t,{objectMode:!0,write:i,final:s,destroy:o});const l=null==t?void 0:t.then;if("function"==typeof l){let e;const r=O(l,t,(t=>{if(null!=t)throw new m("nully","body",t)}),(t=>{y(e,t)}));return e=new T({objectMode:!0,readable:!1,write:i,final(t){s((async()=>{try{await r,n.nextTick(t,null)}catch(e){n.nextTick(t,e)}}))},destroy:o})}throw new m("Iterable, AsyncIterable or AsyncFunction",r,t)}if(A(e))return t(e.arrayBuffer());if(a(e))return E(T,e,{objectMode:!0,writable:!1});if(d(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return T.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable)){return k({readable:null!=e&&e.readable?u(null==e?void 0:e.readable)?null==e?void 0:e.readable:t(e.readable):void 0,writable:null!=e&&e.writable?h(null==e?void 0:e.writable)?null==e?void 0:e.writable:t(e.writable):void 0})}const i=null==e?void 0:e.then;if("function"==typeof i){let t;return O(i,e,(e=>{null!=e&&t.push(e),t.push(null)}),(e=>{y(t,e)})),t=new T({objectMode:!0,writable:!1,read(){}})}throw new b(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},9661(t,e,r){"use strict";const n=r(4422),{AbortError:i,codes:s}=r(2918),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:l,once:u}=r(4953),{validateAbortSignal:h,validateFunction:c,validateObject:d,validateBoolean:f}=r(6232),{Promise:p,PromisePrototypeThen:g,SymbolDispose:b}=r(5801),{isClosed:m,isReadable:y,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:A,isWritableFinished:R,isWritableErrored:O,isNodeStream:T,willEmitClose:k,kIsClosedPromise:M}=r(48);let P;const I=()=>{};function L(t,e,s){var f,p;if(2===arguments.length?(s=e,e=l):null==e?e=l:d(e,"options"),c(s,"callback"),h(e.signal,"options.signal"),s=u(s),_(t)||A(t))return function(t,e,s){let o=!1,a=I;if(e.signal)if(a=()=>{o=!0,s.call(t,new i(void 0,{cause:e.signal.reason}))},e.signal.aborted)n.nextTick(a);else{P=P||r(4953).addAbortListener;const n=P(e.signal,a),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}const l=(...e)=>{o||n.nextTick((()=>s.apply(t,e)))};return g(t[M].promise,l,l),I}(t,e,s);if(!T(t))throw new o("stream",["ReadableStream","WritableStream","Stream"],t);const L=null!==(f=e.readable)&&void 0!==f?f:w(t),D=null!==(p=e.writable)&&void 0!==p?p:x(t),C=t._writableState,N=t._readableState,j=()=>{t.writable||W()};let F=k(t)&&w(t)===L&&x(t)===D,$=R(t,!1);const W=()=>{$=!0,t.destroyed&&(F=!1),(!F||t.readable&&!L)&&(L&&!B||s.call(t))};let B=v(t,!1);const U=()=>{B=!0,t.destroyed&&(F=!1),(!F||t.writable&&!D)&&(D&&!$||s.call(t))},z=e=>{s.call(t,e)};let H=m(t);const G=()=>{H=!0;const e=O(t)||S(t);return e&&"boolean"!=typeof e?s.call(t,e):L&&!B&&w(t,!0)&&!v(t,!1)?s.call(t,new a):!D||$||R(t,!1)?void s.call(t):s.call(t,new a)},V=()=>{H=!0;const e=O(t)||S(t);if(e&&"boolean"!=typeof e)return s.call(t,e);s.call(t)},q=()=>{t.req.on("finish",W)};!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?D&&!C&&(t.on("end",j),t.on("close",j)):(t.on("complete",W),F||t.on("abort",G),t.req?q():t.on("request",q)),F||"boolean"!=typeof t.aborted||t.on("aborted",G),t.on("end",U),t.on("finish",W),!1!==e.error&&t.on("error",z),t.on("close",G),H?n.nextTick(G):null!=C&&C.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(L||F&&!y(t)||!$&&!1!==E(t))&&(D||F&&!E(t)||!B&&!1!==y(t))?N&&t.req&&t.aborted&&n.nextTick(V):n.nextTick(V);const Y=()=>{s=I,t.removeListener("aborted",G),t.removeListener("complete",W),t.removeListener("abort",G),t.removeListener("request",q),t.req&&t.req.removeListener("finish",W),t.removeListener("end",j),t.removeListener("close",j),t.removeListener("finish",W),t.removeListener("end",U),t.removeListener("error",z),t.removeListener("close",G)};if(e.signal&&!H){const o=()=>{const r=s;Y(),r.call(t,new i(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)n.nextTick(o);else{P=P||r(4953).addAbortListener;const n=P(e.signal,o),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}}return Y}t.exports=L,t.exports.finished=function(t,e){var r;let n=!1;return null===e&&(e=l),null!==(r=e)&&void 0!==r&&r.cleanup&&(f(e.cleanup,"cleanup"),n=e.cleanup),new p(((r,i)=>{const s=L(t,e,(t=>{n&&s(),t?i(t):r()}))}))}},5509(t,e,r){"use strict";const n=r(4422),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r(5801),{Buffer:a}=r(181),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:u}=r(2918).codes;t.exports=function(t,e,r){let h,c;if("string"==typeof e||e instanceof a)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});if(e&&e[s])c=!0,h=e[s]();else{if(!e||!e[o])throw new l("iterable",["Iterable"],e);c=!1,h=e[o]()}const d=new t({objectMode:!0,highWaterMark:1,...r});let f=!1;return d._read=function(){f||(f=!0,async function(){for(;;){try{const{value:t,done:e}=c?await h.next():h.next();if(e)d.push(null);else{const e=t&&"function"==typeof t.then?await t:t;if(null===e)throw f=!1,new u;if(d.push(e))continue;f=!1}}catch(t){d.destroy(t)}break}}())},d._destroy=function(t,e){i(async function(t){const e=null!=t,r="function"==typeof h.throw;if(e&&r){const{value:e,done:r}=await h.throw(t);if(await e,r)return}if("function"==typeof h.return){const{value:t}=await h.return();await t}}(t),(()=>n.nextTick(e,t)),(r=>n.nextTick(e,r||t)))},d}},5926(t,e,r){"use strict";const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(5801),{EventEmitter:s}=r(4434);function o(t){s.call(this,t)}function a(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?n(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}i(o.prototype,s.prototype),i(o,s),o.prototype.pipe=function(t,e){const r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",l),r.on("close",u));let o=!1;function l(){o||(o=!0,t.end())}function u(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){c(),0===s.listenerCount(this,"error")&&this.emit("error",t)}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return a(r,"error",h),a(t,"error",h),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t},t.exports={Stream:o,prependListener:a}},4204(t,e,r){"use strict";const n=globalThis.AbortController||r(6584).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r(2918),{validateAbortSignal:u,validateInteger:h,validateObject:c}=r(6232),d=r(5801).Symbol("kWeak"),f=r(5801).Symbol("kResistStopPropagation"),{finished:p}=r(9661),g=r(5953),{addAbortSignalNoValidate:b}=r(6066),{isWritable:m,isNodeStream:y}=r(48),{deprecate:w}=r(4953),{ArrayPrototypePush:_,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:T,Symbol:k}=r(5801),M=k("kEmpty"),P=k("kEof");function I(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");let n=1;null!=(null==e?void 0:e.concurrency)&&(n=S(e.concurrency));let i=n-1;return null!=(null==e?void 0:e.highWaterMark)&&(i=S(e.highWaterMark)),h(n,"options.concurrency",1),h(i,"options.highWaterMark",0),i+=n,async function*(){const s=r(4953).AbortSignalAny([null==e?void 0:e.signal].filter(v)),o=this,a=[],u={signal:s};let h,c,d=!1,f=0;function p(){d=!0,g()}function g(){f-=1,b()}function b(){c&&!d&&f<n&&a.length<i&&(c(),c=null)}!async function(){try{for await(let e of o){if(d)return;if(s.aborted)throw new l;try{if(e=t(e,u),e===M)continue;e=O(e)}catch(t){e=R(t)}f+=1,T(e,g,p),a.push(e),h&&(h(),h=null),!d&&(a.length>=i||f>=n)&&await new A((t=>{c=t}))}a.push(P)}catch(t){const e=R(t);T(e,g,p),a.push(e)}finally{d=!0,h&&(h(),h=null)}}();try{for(;;){for(;a.length>0;){const t=await a[0];if(t===P)return;if(s.aborted)throw new l;t!==M&&(yield t),a.shift(),b()}await new A((t=>{h=t}))}}finally{d=!0,c&&(c(),c=null)}}.call(this)}async function L(t,e=void 0){for await(const r of D.call(this,t,e))return!0;return!1}function D(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return I.call(this,(async function(e,r){return await t(e,r)?e:M}),e)}class C extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(t){if(t=E(t),x(t))return 0;if(t<0)throw new a("number",">= 0",t);return t}t.exports.streamReturningOperators={asIndexedPairs:w((function(t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),async function*(){let e=0;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l({cause:t.signal.reason});yield[e++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;t--<=0&&(yield r)}}.call(this)},filter:D,flatMap:function(t,e){const r=I.call(this,t,e);return async function*(){for await(const t of r)yield*t}.call(this)},map:I,take:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;if(t-- >0&&(yield r),t<=0)return}}.call(this)},compose:function(t,e){if(null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),y(t)&&!m(t))throw new i("stream",t,"must be writable");const r=g(this,t);return null!=e&&e.signal&&b(e.signal,r),r}},t.exports.promiseReturningOperators={every:async function(t,e=void 0){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return!await L.call(this,(async(...e)=>!await t(...e)),e)},forEach:async function(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);for await(const r of I.call(this,(async function(e,r){return await t(e,r),M}),e));},reduce:async function(t,e,r){var i;if("function"!=typeof t)throw new s("reducer",["Function","AsyncFunction"],t);null!=r&&c(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let o=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const t=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(t)),t}const a=new n,h=a.signal;if(null!=r&&r.signal){const t={once:!0,[d]:this,[f]:!0};r.signal.addEventListener("abort",(()=>a.abort()),t)}let g=!1;try{for await(const n of this){var b;if(g=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;o?e=await t(e,n,{signal:h}):(e=n,o=!0)}if(!g&&!o)throw new C}finally{a.abort()}return e},toArray:async function(t){null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:t.signal.reason});_(e,n)}return e},some:L,find:async function(t,e){for await(const r of D.call(this,t,e))return r}}},4675(t,e,r){"use strict";const{ObjectSetPrototypeOf:n}=r(5801);t.exports=s;const i=r(7105);function s(t){if(!(this instanceof s))return new s(t);i.call(this,t)}n(s.prototype,i.prototype),n(s,i),s.prototype._transform=function(t,e,r){r(null,t)}},4503(t,e,r){const n=r(4422),{ArrayIsArray:i,Promise:s,SymbolAsyncIterator:o,SymbolDispose:a}=r(5801),l=r(9661),{once:u}=r(4953),h=r(8071),c=r(1599),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:m},AbortError:y}=r(2918),{validateFunction:w,validateAbortSignal:_}=r(6232),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:A,isWebStream:R,isReadableStream:O,isReadableFinished:T}=r(48),k=globalThis.AbortController||r(6584).AbortController;let M,P,I;function L(t,e,r){let n=!1;t.on("close",(()=>{n=!0}));return{destroy:e=>{n||(n=!0,h.destroyer(t,e||new b("pipe")))},cleanup:l(t,{readable:e,writable:r},(t=>{n=!t}))}}function D(t){if(v(t))return t;if(E(t))return async function*(t){P||(P=r(1117));yield*P.prototype[o].call(t)}(t);throw new f("val",["Readable","Iterable","AsyncIterable"],t)}async function C(t,e,r,{end:n}){let i,o=null;const a=t=>{if(t&&(i=t),o){const t=o;o=null,t()}},u=()=>new s(((t,e)=>{i?e(i):o=()=>{i?e(i):t()}}));e.on("drain",a);const h=l(e,{readable:!1},a);try{e.writableNeedDrain&&await u();for await(const r of t)e.write(r)||await u();n&&(e.end(),await u()),r()}catch(t){r(i!==t?d(i,t):t)}finally{h(),e.off("drain",a)}}async function N(t,e,r,{end:n}){A(e)&&(e=e.writable);const i=e.getWriter();try{for await(const e of t)await i.ready,i.write(e).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(t){try{await i.abort(t),r(t)}catch(t){r(t)}}}function j(t,e,s){if(1===t.length&&i(t[0])&&(t=t[0]),t.length<2)throw new g("streams");const o=new k,l=o.signal,u=null==s?void 0:s.signal,h=[];function d(){W(new y)}let b,m,w;_(u,"options.signal"),I=I||r(4953).addAbortListener,u&&(b=I(u,d));const T=[];let P,j=0;function $(t){W(t,0==--j)}function W(t,r){var i;if(!t||m&&"ERR_STREAM_PREMATURE_CLOSE"!==m.code||(m=t),m||r){for(;T.length;)T.shift()(m);null===(i=b)||void 0===i||i[a](),o.abort(),r&&(m||h.forEach((t=>t())),n.nextTick(e,m,w))}}for(let H=0;H<t.length;H++){const G=t[H],V=H<t.length-1,q=H>0,Y=V||!1!==(null==s?void 0:s.end),K=H===t.length-1;if(x(G)){if(Y){const{destroy:Z,cleanup:J}=L(G,V,q);T.push(Z),S(G)&&K&&h.push(J)}function B(t){t&&"AbortError"!==t.name&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code&&$(t)}G.on("error",B),S(G)&&K&&h.push((()=>{G.removeListener("error",B)}))}if(0===H)if("function"==typeof G){if(P=G({signal:l}),!v(P))throw new p("Iterable, AsyncIterable or Stream","source",P)}else P=v(G)||E(G)||A(G)?G:c.from(G);else if("function"==typeof G){var U;if(A(P))P=D(null===(U=P)||void 0===U?void 0:U.readable);else P=D(P);if(P=G(P,{signal:l}),V){if(!v(P,!0))throw new p("AsyncIterable",`transform[${H-1}]`,P)}else{var z;M||(M=r(4675));const Q=new M({objectMode:!0}),X=null===(z=P)||void 0===z?void 0:z.then;if("function"==typeof X)j++,X.call(P,(t=>{w=t,null!=t&&Q.write(t),Y&&Q.end(),n.nextTick($)}),(t=>{Q.destroy(t),n.nextTick($,t)}));else if(v(P,!0))j++,C(P,Q,$,{end:Y});else{if(!O(P)&&!A(P))throw new p("AsyncIterable or Promise","destination",P);{const rt=P.readable||P;j++,C(rt,Q,$,{end:Y})}}P=Q;const{destroy:tt,cleanup:et}=L(P,!1,!0);T.push(tt),K&&h.push(et)}}else if(x(G)){if(E(P)){j+=2;const nt=F(P,G,$,{end:Y});S(G)&&K&&h.push(nt)}else if(A(P)||O(P)){const it=P.readable||P;j++,C(it,G,$,{end:Y})}else{if(!v(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,C(P,G,$,{end:Y})}P=G}else if(R(G)){if(E(P))j++,N(D(P),G,$,{end:Y});else if(O(P)||v(P))j++,N(P,G,$,{end:Y});else{if(!A(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,N(P.readable,G,$,{end:Y})}P=G}else P=c.from(G)}return(null!=l&&l.aborted||null!=u&&u.aborted)&&n.nextTick(d),P}function F(t,e,r,{end:i}){let s=!1;if(e.on("close",(()=>{s||r(new m)})),t.pipe(e,{end:!1}),i){function o(){s=!0,e.end()}T(t)?n.nextTick(o):t.once("end",o)}else r();return l(t,{readable:!0,writable:!1},(e=>{const n=t._readableState;e&&"ERR_STREAM_PREMATURE_CLOSE"===e.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?t.once("end",r).once("error",r):r(e)})),l(e,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:j,pipeline:function(...t){return j(t,u(function(t){return w(t[t.length-1],"streams[stream.length - 1]"),t.pop()}(t)))}}},1117(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeIndexOf:i,NumberIsInteger:s,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:u,ObjectSetPrototypeOf:h,Promise:c,SafeSet:d,SymbolAsyncDispose:f,SymbolAsyncIterator:p,Symbol:g}=r(5801);t.exports=H,H.ReadableState=z;const{EventEmitter:b}=r(4434),{Stream:m,prependListener:y}=r(5926),{Buffer:w}=r(181),{addAbortSignal:_}=r(6066),v=r(9661);let S=r(4953).debuglog("stream",(t=>{S=t}));const E=r(586),x=r(8071),{getHighWaterMark:A,getDefaultHighWaterMark:R}=r(8488),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:k,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:I},AbortError:L}=r(2918),{validateObject:D}=r(6232),C=g("kPaused"),{StringDecoder:N}=r(3141),j=r(5509);h(H.prototype,m.prototype),h(H,m);const F=()=>{},{errorOrDestroy:$}=x,W=2048,B=4096;function U(t){return{enumerable:!1,get(){return!!(this.state&t)},set(e){e?this.state|=t:this.state&=~t}}}function z(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(1599)),this.state=6192,t&&t.objectMode&&(this.state|=1),n&&t&&t.readableObjectMode&&(this.state|=1),this.highWaterMark=t?A(this,t,"readableHighWaterMark",n):R(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,t&&!1===t.emitClose&&(this.state&=-2049),t&&!1===t.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new N(t.encoding),this.encoding=t.encoding)}function H(t){if(!(this instanceof H))return new H(t);const e=this instanceof r(1599);this._readableState=new z(t,this,e),t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&!e&&_(t.signal,this)),m.call(this,t),x.construct(this,(()=>{this._readableState.needReadable&&Z(this,this._readableState)}))}function G(t,e,r,n){S("readableAddChunk",e);const i=t._readableState;let s;if(1&i.state||("string"==typeof e?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=w.from(e,r).toString(i.encoding):(e=w.from(e,r),r=""))):e instanceof w?r="":m._isUint8Array(e)?(e=m._uint8ArrayToBuffer(e),r=""):null!=e&&(s=new T("chunk",["string","Buffer","Uint8Array"],e))),s)$(t,s);else if(null===e)i.state&=-9,function(t,e){if(S("onEofChunk"),e.ended)return;if(e.decoder){const t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?Y(t):(e.needReadable=!1,e.emittedReadable=!0,K(t))}(t,i);else if(1&i.state||e&&e.length>0)if(n)if(4&i.state)$(t,new I);else{if(i.destroyed||i.errored)return!1;V(t,i,e,!0)}else if(i.ended)$(t,new P);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||0!==e.length?V(t,i,e,!1):Z(t,i)):V(t,i,e,!1)}else n||(i.state&=-9,Z(t,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function V(t,e,r,n){e.flowing&&0===e.length&&!e.sync&&t.listenerCount("data")>0?(65536&e.state?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),64&e.state&&Y(t)),Z(t,e)}l(z.prototype,{objectMode:U(1),ended:U(2),endEmitted:U(4),reading:U(8),constructed:U(16),sync:U(32),needReadable:U(64),emittedReadable:U(128),readableListening:U(256),resumeScheduled:U(512),errorEmitted:U(1024),emitClose:U(W),autoDestroy:U(B),destroyed:U(8192),closed:U(16384),closeEmitted:U(32768),multiAwaitDrain:U(65536),readingMore:U(1<<17),dataEmitted:U(1<<18)}),H.prototype.destroy=x.destroy,H.prototype._undestroy=x.undestroy,H.prototype._destroy=function(t,e){e(t)},H.prototype[b.captureRejectionSymbol]=function(t){this.destroy(t)},H.prototype[f]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new L,this.destroy(t)),new c(((e,r)=>v(this,(n=>n&&n!==t?r(n):e(null)))))},H.prototype.push=function(t,e){return G(this,t,e,!1)},H.prototype.unshift=function(t,e){return G(this,t,e,!0)},H.prototype.isPaused=function(){const t=this._readableState;return!0===t[C]||!1===t.flowing},H.prototype.setEncoding=function(t){const e=new N(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const t of r)n+=e.write(t);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function q(t,e){return t<=0||0===e.length&&e.ended?0:1&e.state?1:o(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}function Y(t){const e=t._readableState;S("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(S("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(K,t))}function K(t){const e=t._readableState;S("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||e.errored||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,et(t)}function Z(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,n.nextTick(J,t,e))}function J(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){const r=e.length;if(S("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function Q(t){const e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!1===e[C]?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function X(t){S("readable nexttick read 0"),t.read(0)}function tt(t,e){S("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),et(t),e.flowing&&!e.reading&&t.read(0)}function et(t){const e=t._readableState;for(S("flow",e.flowing);e.flowing&&null!==t.read(););}function rt(t,e){"function"!=typeof t.read&&(t=H.wrap(t,{objectMode:!0}));const r=async function*(t,e){let r,n=F;function i(e){this===t?(n(),n=F):n=e}t.on("readable",i);const s=v(t,{writable:!1},(t=>{r=t?O(r,t):null,n(),n=F}));try{for(;;){const e=t.destroyed?null:t.read();if(null!==e)yield e;else{if(r)throw r;if(null===r)return;await new c(i)}}}catch(t){throw r=O(r,t),r}finally{!r&&!1===(null==e?void 0:e.destroyOnReturn)||void 0!==r&&!t._readableState.autoDestroy?(t.off("readable",i),s()):x.destroyer(t,null)}}(t,e);return r.stream=t,r}function nt(t,e){if(0===e.length)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function it(t){const e=t._readableState;S("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(st,e,t))}function st(t,e){if(S("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&0===t.length)if(t.endEmitted=!0,e.emit("end"),e.writable&&!1===e.allowHalfOpen)n.nextTick(ot,e);else if(t.autoDestroy){const t=e._writableState;(!t||t.autoDestroy&&(t.finished||!1===t.writable))&&e.destroy()}}function ot(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}let at;function lt(){return void 0===at&&(at={}),at}H.prototype.read=function(t){S("read",t),void 0===t?t=NaN:s(t)||(t=a(t,10));const e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=function(t){if(t>1073741824)throw new M("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,++t}(t)),0!==t&&(e.state&=-129),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return S("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?it(this):Y(this),null;if(0===(t=q(t,e))&&e.ended)return 0===e.length&&it(this),null;let n,i=!!(64&e.state);if(S("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,S("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),e.state|=40,0===e.length&&(e.state|=64);try{this._read(e.highWaterMark)}catch(t){$(this,t)}e.state&=-33,e.reading||(t=q(r,e))}return n=t>0?nt(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&it(this)),null===n||e.errorEmitted||e.closeEmitted||(e.dataEmitted=!0,this.emit("data",n)),n},H.prototype._read=function(t){throw new k("_read()")},H.prototype.pipe=function(t,e){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),S("pipe count=%d opts=%j",i.pipes.length,e);const s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?a:b;function o(e,n){S("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),l&&t.removeListener("drain",l);t.removeListener("error",f),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}())}function a(){S("onend"),t.end()}let l;i.endEmitted?n.nextTick(s):r.once("end",s),t.on("unpipe",o);let u=!1;function h(){u||(1===i.pipes.length&&i.pipes[0]===t?(S("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=function(t,e){return function(){const r=t._readableState;r.awaitDrainWriters===e?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!t.listenerCount("data")||t.resume()}}(r,t),t.on("drain",l))}function c(e){S("ondata");const r=t.write(e);S("dest.write",r),!1===r&&h()}function f(e){if(S("onerror",e),b(),t.removeListener("error",f),0===t.listenerCount("error")){const r=t._writableState||t._readableState;r&&!r.errorEmitted?$(t,e):t.emit("error",e)}}function p(){t.removeListener("finish",g),b()}function g(){S("onfinish"),t.removeListener("close",p),b()}function b(){S("unpipe"),r.unpipe(t)}return r.on("data",c),y(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",r),!0===t.writableNeedDrain?h():i.flowing||(S("pipe resume"),r.resume()),t},H.prototype.unpipe=function(t){const e=this._readableState;if(0===e.pipes.length)return this;if(!t){const t=e.pipes;e.pipes=[],this.pause();for(let e=0;e<t.length;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(e.pipes,t);return-1===r||(e.pipes.splice(r,1),0===e.pipes.length&&this.pause(),t.emit("unpipe",this,{hasUnpiped:!1})),this},H.prototype.on=function(t,e){const r=m.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Y(this):i.reading||n.nextTick(X,this))),r},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(t,e){const r=m.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(Q,this),r},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(t){const e=m.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(Q,this),e},H.prototype.resume=function(){const t=this._readableState;return t.flowing||(S("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(tt,t,e))}(this,t)),t[C]=!1,this},H.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[C]=!0,this},H.prototype.wrap=function(t){let e=!1;t.on("data",(r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())})),t.on("end",(()=>{this.push(null)})),t.on("error",(t=>{$(this,t)})),t.on("close",(()=>{this.destroy()})),t.on("destroy",(()=>{this.destroy()})),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};const r=u(t);for(let e=1;e<r.length;e++){const n=r[e];void 0===this[n]&&"function"==typeof t[n]&&(this[n]=t[n].bind(t))}return this},H.prototype[p]=function(){return rt(this)},H.prototype.iterator=function(t){return void 0!==t&&D(t,"options"),rt(this,t)},l(H.prototype,{readable:{__proto__:null,get(){const t=this._readableState;return!(!t||!1===t.readable||t.destroyed||t.errorEmitted||t.endEmitted)},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(z.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[C]},set(t){this[C]=!!t}}}),H._fromList=nt,H.from=function(t,e){return j(H,t,e)},H.fromWeb=function(t,e){return lt().newStreamReadableFromReadableStream(t,e)},H.toWeb=function(t,e){return lt().newReadableStreamFromStreamReadable(t,e)},H.wrap=function(t,e){var r,n;return new H({objectMode:null===(r=null!==(n=t.readableObjectMode)&&void 0!==n?n:t.objectMode)||void 0===r||r,...e,destroy(e,r){x.destroyer(t,e),r(e)}}).wrap(t)}},8488(t,e,r){"use strict";const{MathFloor:n,NumberIsInteger:i}=r(5801),{validateInteger:s}=r(6232),{ERR_INVALID_ARG_VALUE:o}=r(2918).codes;let a=16384,l=16;function u(t){return t?l:a}t.exports={getHighWaterMark:function(t,e,r,s){const a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,s,r);if(null!=a){if(!i(a)||a<0){throw new o(s?`options.${r}`:"options.highWaterMark",a)}return n(a)}return u(t.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(t,e){s(e,"value",0),t?l=e:a=e}}},7105(t,e,r){"use strict";const{ObjectSetPrototypeOf:n,Symbol:i}=r(5801);t.exports=u;const{ERR_METHOD_NOT_IMPLEMENTED:s}=r(2918).codes,o=r(1599),{getHighWaterMark:a}=r(8488);n(u.prototype,o.prototype),n(u,o);const l=i("kCallback");function u(t){if(!(this instanceof u))return new u(t);const e=t?a(this,t,"readableHighWaterMark",!0):null;0===e&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),o.call(this,t),this._readableState.sync=!1,this[l]=null,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function h(t){"function"!=typeof this._flush||this.destroyed?(this.push(null),t&&t()):this._flush(((e,r)=>{e?t?t(e):this.destroy(e):(null!=r&&this.push(r),this.push(null),t&&t())}))}function c(){this._final!==h&&h.call(this)}u.prototype._final=h,u.prototype._transform=function(t,e,r){throw new s("_transform()")},u.prototype._write=function(t,e,r){const n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,((t,e)=>{t?r(t):(null!=e&&this.push(e),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},u.prototype._read=function(){if(this[l]){const t=this[l];this[l]=null,t()}}},48(t,e,r){"use strict";const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r(5801),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),u=s("nodejs.stream.writable"),h=s("nodejs.stream.disturbed"),c=s("nodejs.webstream.isClosedPromise"),d=s("nodejs.webstream.controllerErrorFunction");function f(t,e=!1){var r;return!(!t||"function"!=typeof t.pipe||"function"!=typeof t.on||e&&("function"!=typeof t.pause||"function"!=typeof t.resume)||t._writableState&&!1===(null===(r=t._readableState)||void 0===r?void 0:r.readable)||t._writableState&&!t._readableState)}function p(t){var e;return!(!t||"function"!=typeof t.write||"function"!=typeof t.on||t._readableState&&!1===(null===(e=t._writableState)||void 0===e?void 0:e.writable))}function g(t){return t&&(t._readableState||t._writableState||"function"==typeof t.write&&"function"==typeof t.on||"function"==typeof t.pipe&&"function"==typeof t.on)}function b(t){return!(!t||g(t)||"function"!=typeof t.pipeThrough||"function"!=typeof t.getReader||"function"!=typeof t.cancel)}function m(t){return!(!t||g(t)||"function"!=typeof t.getWriter||"function"!=typeof t.abort)}function y(t){return!(!t||g(t)||"object"!=typeof t.readable||"object"!=typeof t.writable)}function w(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[o]||null!=n&&n.destroyed)}function _(t){if(!p(t))return null;if(!0===t.writableEnded)return!0;const e=t._writableState;return(null==e||!e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)}function v(t,e){if(!f(t))return null;const r=t._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===e&&!0===r.ended&&0===r.length))}function S(t){return t&&null!=t[l]?t[l]:"boolean"!=typeof(null==t?void 0:t.readable)?null:!w(t)&&(f(t)&&t.readable&&!v(t))}function E(t){return t&&null!=t[u]?t[u]:"boolean"!=typeof(null==t?void 0:t.writable)?null:!w(t)&&(p(t)&&t.writable&&!_(t))}function x(t){return"boolean"==typeof t._closed&&"boolean"==typeof t._defaultKeepAlive&&"boolean"==typeof t._removedConnection&&"boolean"==typeof t._removedContLen}function A(t){return"boolean"==typeof t._sent100&&x(t)}t.exports={isDestroyed:w,kIsDestroyed:o,isDisturbed:function(t){var e;return!(!t||!(null!==(e=t[h])&&void 0!==e?e:t.readableDidRead||t.readableAborted))},kIsDisturbed:h,isErrored:function(t){var e,r,n,i,s,o,l,u,h,c;return!(!t||!(null!==(e=null!==(r=null!==(n=null!==(i=null!==(s=null!==(o=t[a])&&void 0!==o?o:t.readableErrored)&&void 0!==s?s:t.writableErrored)&&void 0!==i?i:null===(l=t._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=t._writableState)||void 0===u?void 0:u.errorEmitted)&&void 0!==r?r:null===(h=t._readableState)||void 0===h?void 0:h.errored)&&void 0!==e?e:null===(c=t._writableState)||void 0===c?void 0:c.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:d,kIsWritable:u,isClosed:function(t){if(!g(t))return null;if("boolean"==typeof t.closed)return t.closed;const e=t._writableState,r=t._readableState;return"boolean"==typeof(null==e?void 0:e.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==e?void 0:e.closed)||(null==r?void 0:r.closed):"boolean"==typeof t._closed&&x(t)?t._closed:null},isDuplexNodeStream:function(t){return!(!t||"function"!=typeof t.pipe||!t._readableState||"function"!=typeof t.on||"function"!=typeof t.write)},isFinished:function(t,e){return g(t)?!!w(t)||(!1===(null==e?void 0:e.readable)||!S(t))&&(!1===(null==e?void 0:e.writable)||!E(t)):null},isIterable:function(t,e){return null!=t&&(!0===e?"function"==typeof t[n]:!1===e?"function"==typeof t[i]:"function"==typeof t[n]||"function"==typeof t[i])},isReadableNodeStream:f,isReadableStream:b,isReadableEnded:function(t){if(!f(t))return null;if(!0===t.readableEnded)return!0;const e=t._readableState;return!(!e||e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)},isReadableFinished:v,isReadableErrored:function(t){var e,r;return g(t)?t.readableErrored?t.readableErrored:null!==(e=null===(r=t._readableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isNodeStream:g,isWebStream:function(t){return b(t)||m(t)||y(t)},isWritable:E,isWritableNodeStream:p,isWritableStream:m,isWritableEnded:_,isWritableFinished:function(t,e){if(!p(t))return null;if(!0===t.writableFinished)return!0;const r=t._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===e&&!0===r.ended&&0===r.length))},isWritableErrored:function(t){var e,r;return g(t)?t.writableErrored?t.writableErrored:null!==(e=null===(r=t._writableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isServerRequest:function(t){var e;return"boolean"==typeof t._consuming&&"boolean"==typeof t._dumped&&void 0===(null===(e=t.req)||void 0===e?void 0:e.upgradeOrConnect)},isServerResponse:A,willEmitClose:function(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&A(t)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:y}},8941(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeSlice:i,Error:s,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:h,Symbol:c,SymbolHasInstance:d}=r(5801);t.exports=D,D.WritableState=I;const{EventEmitter:f}=r(4434),p=r(5926).Stream,{Buffer:g}=r(181),b=r(8071),{addAbortSignal:m}=r(6066),{getHighWaterMark:y,getDefaultHighWaterMark:w}=r(8488),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:T}=r(2918).codes,{errorOrDestroy:k}=b;function M(){}u(D.prototype,p.prototype),u(D,p);const P=c("kOnFinished");function I(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(1599)),this.objectMode=!(!t||!t.objectMode),n&&(this.objectMode=this.objectMode||!(!t||!t.writableObjectMode)),this.highWaterMark=t?y(this,t,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!t||!1!==t.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||!1!==t.emitClose,this.autoDestroy=!t||!1!==t.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function L(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}function D(t){const e=this instanceof r(1599);if(!e&&!o(D,this))return new D(t);this._writableState=new I(t,this,e),t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&m(t.signal,this)),p.call(this,t),b.construct(this,(()=>{const t=this._writableState;t.writing||U(this,t),G(this,t)}))}function C(t,e,r,i){const s=t._writableState;if("function"==typeof r)i=r,r=s.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new T(r)}else r=s.defaultEncoding;"function"!=typeof i&&(i=M)}if(null===e)throw new R;if(!s.objectMode)if("string"==typeof e)!1!==s.decodeStrings&&(e=g.from(e,r),r="buffer");else if(e instanceof g)r="buffer";else{if(!p._isUint8Array(e))throw new _("chunk",["string","Buffer","Uint8Array"],e);e=p._uint8ArrayToBuffer(e),r="buffer"}let o;return s.ending?o=new O:s.destroyed&&(o=new x("write")),o?(n.nextTick(i,o),k(t,o,!0),o):(s.pendingcb++,function(t,e,r,n,i){const s=e.objectMode?1:r.length;e.length+=s;const o=e.length<e.highWaterMark;o||(e.needDrain=!0);e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:n,callback:i}),e.allBuffers&&"buffer"!==n&&(e.allBuffers=!1),e.allNoop&&i!==M&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(r,n,e.onwrite),e.sync=!1);return o&&!e.errored&&!e.destroyed}(t,s,e,r,i))}function N(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function j(t,e,r,n){--e.pendingcb,n(r),B(e),k(t,r)}function F(t,e){const r=t._writableState,i=r.sync,s=r.writecb;"function"==typeof s?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?n.nextTick(j,t,r,e,s):j(t,r,e,s)):(r.buffered.length>r.bufferedIndex&&U(t,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:t,state:r},n.nextTick($,r.afterWriteTickInfo)):W(t,r,1,s))):k(t,new S)}function $({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,W(t,e,r,n)}function W(t,e,r,n){for(!e.ending&&!t.destroyed&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&B(e),G(t,e)}function B(t){if(t.writing)return;for(let r=t.bufferedIndex;r<t.buffered.length;++r){var e;const{chunk:n,callback:i}=t.buffered[r],s=t.objectMode?1:n.length;t.length-=s,i(null!==(e=t.errored)&&void 0!==e?e:new x("write"))}const r=t[P].splice(0);for(let e=0;e<r.length;e++){var n;r[e](null!==(n=t.errored)&&void 0!==n?n:new x("end"))}L(t)}function U(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:s}=e,o=r.length-n;if(!o)return;let a=n;if(e.bufferProcessing=!0,o>1&&t._writev){e.pendingcb-=o-1;const n=e.allNoop?M:t=>{for(let e=a;e<r.length;++e)r[e].callback(t)},s=e.allNoop&&0===a?r:i(r,a);s.allBuffers=e.allBuffers,N(t,e,!0,e.length,s,"",n),L(e)}else{do{const{chunk:n,encoding:i,callback:o}=r[a];r[a++]=null;N(t,e,!1,s?1:n.length,n,i,o)}while(a<r.length&&!e.writing);a===r.length?L(e):a>256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}function z(t){return t.ending&&!t.destroyed&&t.constructed&&0===t.length&&!t.errored&&0===t.buffered.length&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function H(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.finalCalled=!0,function(t,e){let r=!1;function i(i){if(r)k(t,null!=i?i:S());else if(r=!0,e.pendingcb--,i){const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t](i);k(t,i,e.sync)}else z(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,n.nextTick(V,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(t){i(t)}e.sync=!1}(t,e)))}function G(t,e,r){z(e)&&(H(t,e),0===e.pendingcb&&(r?(e.pendingcb++,n.nextTick(((t,e)=>{z(e)?V(t,e):e.pendingcb--}),t,e)):z(e)&&(e.pendingcb++,V(t,e))))}function V(t,e){e.pendingcb--,e.finished=!0;const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t]();if(t.emit("finish"),e.autoDestroy){const e=t._readableState;(!e||e.autoDestroy&&(e.endEmitted||!1===e.readable))&&t.destroy()}}I.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(D,d,{__proto__:null,value:function(t){return!!o(this,t)||this===D&&(t&&t._writableState instanceof I)}}),D.prototype.pipe=function(){k(this,new E)},D.prototype.write=function(t,e,r){return!0===C(this,t,e,r)},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){const t=this._writableState;t.corked&&(t.corked--,t.writing||U(this,t))},D.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=h(t)),!g.isEncoding(t))throw new T(t);return this._writableState.defaultEncoding=t,this},D.prototype._write=function(t,e,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:t,encoding:e}],r)},D.prototype._writev=null,D.prototype.end=function(t,e,r){const i=this._writableState;let o;if("function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t){const r=C(this,t,e);r instanceof s&&(o=r)}return i.corked&&(i.corked=1,this.uncork()),o||(i.errored||i.ending?i.finished?o=new A("end"):i.destroyed&&(o=new x("end")):(i.ending=!0,G(this,i,!0),i.ended=!0)),"function"==typeof r&&(o||i.finished?n.nextTick(r,o):i[P].push(r)),this},l(D.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){const t=this._writableState;return!(!t||!1===t.writable||t.destroyed||t.errored||t.ending||t.ended)},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const t=this._writableState;return!!t&&(!t.destroyed&&!t.ending&&t.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=b.destroy;let Y;function K(){return void 0===Y&&(Y={}),Y}D.prototype.destroy=function(t,e){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&n.nextTick(B,r),q.call(this,t,e),this},D.prototype._undestroy=b.undestroy,D.prototype._destroy=function(t,e){e(t)},D.prototype[f.captureRejectionSymbol]=function(t){this.destroy(t)},D.fromWeb=function(t,e){return K().newStreamWritableFromWritableStream(t,e)},D.toWeb=function(t){return K().newWritableStreamFromStreamWritable(t)}},6232(t,e,r){"use strict";const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:h,NumberParseInt:c,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:g,StringPrototypeTrim:b}=r(5801),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(2918),{normalizeEncoding:E}=r(4953),{isAsyncFunction:x,isArrayBufferView:A}=r(4953).types,R={};const O=/^[0-7]+$/;const T=m(((t,e,r=h,n=u)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),k=m(((t,e,r=-2147483648,n=2147483647)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),M=m(((t,e,r=!1)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);const n=r?1:0,i=4294967295;if(t<n||t>i)throw new v(e,`>= ${n} && <= ${i}`,t)}));function P(t,e){if("string"!=typeof t)throw new w(e,"string",t)}const I=m(((t,e,r)=>{if(!i(r,t)){const n=s(o(r,(t=>"string"==typeof t?`'${t}'`:p(t))),", ");throw new _(e,t,"must be one of: "+n)}}));function L(t,e){if("boolean"!=typeof t)throw new w(e,"boolean",t)}function D(t,e,r){return null!=t&&d(t,e)?t[e]:r}const C=m(((t,e,r=null)=>{const i=D(r,"allowArray",!1),s=D(r,"allowFunction",!1);if(!D(r,"nullable",!1)&&null===t||!i&&n(t)||"object"!=typeof t&&(!s||"function"!=typeof t))throw new w(e,"Object",t)})),N=m(((t,e)=>{if(null!=t&&"object"!=typeof t&&"function"!=typeof t)throw new w(e,"a dictionary",t)})),j=m(((t,e,r=0)=>{if(!n(t))throw new w(e,"Array",t);if(t.length<r){throw new _(e,t,`must be longer than ${r}`)}}));const F=m(((t,e="buffer")=>{if(!A(t))throw new w(e,["Buffer","TypedArray","DataView"],t)}));const $=m(((t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new w(e,"AbortSignal",t)})),W=m(((t,e)=>{if("function"!=typeof t)throw new w(e,"Function",t)})),B=m(((t,e)=>{if("function"!=typeof t||x(t))throw new w(e,"Function",t)})),U=m(((t,e)=>{if(void 0!==t)throw new w(e,"undefined",t)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function H(t,e){if(void 0===t||!f(z,t))throw new _(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:function(t){return t===(0|t)},isUint32:function(t){return t===t>>>0},parseFileMode:function(t,e,r){if(void 0===t&&(t=r),"string"==typeof t){if(null===f(O,t))throw new _(e,t,"must be a 32-bit unsigned integer or an octal string");t=c(t,8)}return M(t,e),t},validateArray:j,validateStringArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)P(t[r],`${e}[${r}]`)},validateBooleanArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)L(t[r],`${e}[${r}]`)},validateAbortSignalArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++){const n=t[r],i=`${e}[${r}]`;if(null==n)throw new w(i,"AbortSignal",n);$(n,i)}},validateBoolean:L,validateBuffer:F,validateDictionary:N,validateEncoding:function(t,e){const r=E(e),n=t.length;if("hex"===r&&n%2!=0)throw new _("encoding",e,`is invalid for data of length ${n}`)},validateFunction:W,validateInt32:k,validateInteger:T,validateNumber:function(t,e,r=void 0,n){if("number"!=typeof t)throw new w(e,"number",t);if(null!=r&&t<r||null!=n&&t>n||(null!=r||null!=n)&&l(t))throw new v(e,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,t)},validateObject:C,validateOneOf:I,validatePlainFunction:B,validatePort:function(t,e="Port",r=!0){if("number"!=typeof t&&"string"!=typeof t||"string"==typeof t&&0===b(t).length||+t!=+t>>>0||t>65535||0===t&&!r)throw new y(e,t,r);return 0|t},validateSignalName:function(t,e="signal"){if(P(t,e),void 0===R[t]){if(void 0!==R[g(t)])throw new S(t+" (signals must use all capital letters)");throw new S(t)}},validateString:P,validateUint32:M,validateUndefined:U,validateUnion:function(t,e,r){if(!i(r,t))throw new w(e,`('${s(r,"|")}')`,t)},validateAbortSignal:$,validateLinkHeaderValue:function(t){if("string"==typeof t)return H(t,"hints"),t;if(n(t)){const e=t.length;let r="";if(0===e)return r;for(let n=0;n<e;n++){const i=t[n];H(i,"hints"),r+=i,n!==e-1&&(r+=", ")}return r}throw new _("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},2918(t,e,r){"use strict";const{format:n,inspect:i}=r(6238),{AggregateError:s}=r(5801),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,h={};function c(t,e){if(!t)throw new h.ERR_INTERNAL_ASSERTION(e)}function d(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function f(t,e,r){r||(r=Error);class i extends r{constructor(...r){super(function(t,e,r){if("function"==typeof e)return c(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const i=(e.match(/%[dfijoOs]/g)||[]).length;return c(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?e:n(e,...r)}(t,e,r))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[a]=!0,h[t]=i}function p(t){const e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t}class g extends Error{constructor(t="The operation was aborted",e=void 0){if(void 0!==e&&"object"!=typeof e)throw new h.ERR_INVALID_ARG_TYPE("options","Object",e);super(t,e),this.code="ABORT_ERR",this.name="AbortError"}}f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",((t,e,r)=>{c("string"==typeof t,"'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const s=[],o=[],a=[];for(const t of e)c("string"==typeof t,"All expected entries have to be of type string"),l.includes(t)?s.push(t.toLowerCase()):u.test(t)?o.push(t):(c("object"!==t,'The value "object" should be written as "Object"'),a.push(t));if(o.length>0){const t=s.indexOf("object");-1!==t&&(s.splice(s,t,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{const t=s.pop();n+=`one of type ${s.join(", ")}, or ${t}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const t=o.pop();n+=`an instance of ${o.join(", ")}, or ${t}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const t=a.pop();n+=`one of ${a.join(", ")}, or ${t}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var h;if(null!==(h=r.constructor)&&void 0!==h&&h.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let t=i(r,{colors:!1});t.length>25&&(t=`${t.slice(0,25)}...`),n+=`. Received type ${typeof r} (${t})`}return n}),TypeError),f("ERR_INVALID_ARG_VALUE",((t,e,r="is invalid")=>{let n=i(e);n.length>128&&(n=n.slice(0,128)+"...");return`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`}),TypeError),f("ERR_INVALID_RETURN_VALUE",((t,e,r)=>{var n;return`Expected ${t} to be returned from the "${e}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),f("ERR_MISSING_ARGS",((...t)=>{let e;c(t.length>0,"At least one arg needs to be specified");const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map((t=>`"${t}"`)).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}}return`${e} must be specified`}),TypeError),f("ERR_OUT_OF_RANGE",((t,e,r)=>{let n;if(c(e,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32)n=d(String(r));else if("bigint"==typeof r){n=String(r);const t=BigInt(2)**BigInt(32);(r>t||r<-t)&&(n=d(n)),n+="n"}else n=i(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${n}`}),RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:g,aggregateTwoErrors:p((function(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new o([e,t],e.message);return r.code=e.code,r}return t||e})),hideStackFrames:p,codes:h}},1169(t,e,r){"use strict";const n=r(2203);if(n&&"disable"===process.env.READABLE_STREAM){const e=n.promises;t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>e}),t.exports.Stream=n.Stream}else{const e=r(5297),n=r(2098),i=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=i,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get:()=>n}),t.exports.Stream=e.Stream}t.exports.default=t.exports},5801(t){"use strict";class e extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError("Expected input to be an Array, got "+typeof t);let e="";for(let r=0;r<t.length;r++)e+=` ${t[r].stack}\n`;super(e),this.name="AggregateError",this.errors=t}}t.exports={AggregateError:e,ArrayIsArray:t=>Array.isArray(t),ArrayPrototypeIncludes:(t,e)=>t.includes(e),ArrayPrototypeIndexOf:(t,e)=>t.indexOf(e),ArrayPrototypeJoin:(t,e)=>t.join(e),ArrayPrototypeMap:(t,e)=>t.map(e),ArrayPrototypePop:(t,e)=>t.pop(e),ArrayPrototypePush:(t,e)=>t.push(e),ArrayPrototypeSlice:(t,e,r)=>t.slice(e,r),Error,FunctionPrototypeCall:(t,e,...r)=>t.call(e,...r),FunctionPrototypeSymbolHasInstance:(t,e)=>Function.prototype[Symbol.hasInstance].call(t,e),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(t,e)=>Object.defineProperties(t,e),ObjectDefineProperty:(t,e,r)=>Object.defineProperty(t,e,r),ObjectGetOwnPropertyDescriptor:(t,e)=>Object.getOwnPropertyDescriptor(t,e),ObjectKeys:t=>Object.keys(t),ObjectSetPrototypeOf:(t,e)=>Object.setPrototypeOf(t,e),Promise,PromisePrototypeCatch:(t,e)=>t.catch(e),PromisePrototypeThen:(t,e,r)=>t.then(e,r),PromiseReject:t=>Promise.reject(t),PromiseResolve:t=>Promise.resolve(t),ReflectApply:Reflect.apply,RegExpPrototypeTest:(t,e)=>t.test(e),SafeSet:Set,String,StringPrototypeSlice:(t,e,r)=>t.slice(e,r),StringPrototypeToLowerCase:t=>t.toLowerCase(),StringPrototypeToUpperCase:t=>t.toUpperCase(),StringPrototypeTrim:t=>t.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(t,e,r)=>t.set(e,r),Boolean,Uint8Array}},4953(t,e,r){"use strict";const n=r(181),{format:i,inspect:s}=r(6238),{codes:{ERR_INVALID_ARG_TYPE:o}}=r(2918),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:u}=r(5801),h=globalThis.AbortSignal||r(6584).AbortSignal,c=globalThis.AbortController||r(6584).AbortController,d=Object.getPrototypeOf((async function(){})).constructor,f=globalThis.Blob||n.Blob,p=void 0!==f?function(t){return t instanceof f}:function(t){return!1},g=(t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new o(e,"AbortSignal",t)};t.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise(((r,n)=>{t=r,e=n})),resolve:t,reject:e}},promisify:t=>new Promise(((e,r)=>{t(((t,...n)=>t?r(t):e(...n)))})),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:t=>t instanceof d,isArrayBufferView:t=>ArrayBuffer.isView(t)},isBlob:p,deprecate:(t,e)=>t,addAbortListener:r(4434).addAbortListener||function(t,e){if(void 0===t)throw new o("signal","AbortSignal",t);let r;return g(t,"signal"),((t,e)=>{if("function"!=typeof t)throw new o(e,"Function",t)})(e,"listener"),t.aborted?queueMicrotask((()=>e())):(t.addEventListener("abort",e,{__proto__:null,once:!0,[a]:!0}),r=()=>{t.removeEventListener("abort",e)}),{__proto__:null,[u](){var t;null===(t=r)||void 0===t||t()}}},AbortSignalAny:h.any||function(t){if(1===t.length)return t[0];const e=new c,r=()=>e.abort();return t.forEach((t=>{g(t,"signals"),t.addEventListener("abort",r,{once:!0})})),e.signal.addEventListener("abort",(()=>{t.forEach((t=>t.removeEventListener("abort",r)))}),{once:!0}),e.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},6238(t){"use strict";t.exports={format:(t,...e)=>t.replace(/%([sdifj])/g,(function(...[t,r]){const n=e.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(t){switch(typeof t){case"string":if(t.includes("'")){if(!t.includes('"'))return`"${t}"`;if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}},5297(t,e,r){"use strict";const{Buffer:n}=r(181),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r(5801),{promisify:{custom:a}}=r(4953),{streamReturningOperators:l,promiseReturningOperators:u}=r(4204),{codes:{ERR_ILLEGAL_CONSTRUCTOR:h}}=r(2918),c=r(5953),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:f}=r(8488),{pipeline:p}=r(4503),{destroyer:g}=r(8071),b=r(9661),m=r(2098),y=r(48),w=t.exports=r(5926).Stream;w.isDestroyed=y.isDestroyed,w.isDisturbed=y.isDisturbed,w.isErrored=y.isErrored,w.isReadable=y.isReadable,w.isWritable=y.isWritable,w.Readable=r(1117);for(const v of s(l)){const S=l[v];function E(...t){if(new.target)throw h();return w.Readable.from(o(S,this,t))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(w.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of s(u)){const A=u[x];function R(...t){if(new.target)throw h();return o(A,this,t)}i(R,"name",{__proto__:null,value:A.name}),i(R,"length",{__proto__:null,value:A.length}),i(w.Readable.prototype,x,{__proto__:null,value:R,enumerable:!1,configurable:!0,writable:!0})}w.Writable=r(8941),w.Duplex=r(1599),w.Transform=r(7105),w.PassThrough=r(4675),w.pipeline=p;const{addAbortSignal:_}=r(6066);w.addAbortSignal=_,w.finished=b,w.destroy=g,w.compose=c,w.setDefaultHighWaterMark=d,w.getDefaultHighWaterMark=f,i(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>m}),i(p,a,{__proto__:null,enumerable:!0,get:()=>m.pipeline}),i(b,a,{__proto__:null,enumerable:!0,get:()=>m.finished}),w.Stream=w,w._isUint8Array=function(t){return t instanceof Uint8Array},w._uint8ArrayToBuffer=function(t){return n.from(t.buffer,t.byteOffset,t.byteLength)}},2098(t,e,r){"use strict";const{ArrayPrototypePop:n,Promise:i}=r(5801),{isIterable:s,isNodeStream:o,isWebStream:a}=r(48),{pipelineImpl:l}=r(4503),{finished:u}=r(9661);r(5297),t.exports={finished:u,pipeline:function(...t){return new i(((e,r)=>{let i,u;const h=t[t.length-1];if(h&&"object"==typeof h&&!o(h)&&!s(h)&&!a(h)){const e=n(t);i=e.signal,u=e.end}l(t,((t,n)=>{t?r(t):e(n)}),{signal:i,end:u})}))}}},5622(t,e){function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===r(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===r(t)},e.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=Buffer.isBuffer},2566(t,e){var r;r=function(t){t.version="1.2.2";var e=function(){for(var t=0,e=new Array(256),r=0;256!=r;++r)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=r)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[r]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}(),r=function(t){var e=0,r=0,n=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)i[n]=t[n];for(n=0;256!=n;++n)for(r=t[n],e=256+n;e<4096;e+=256)r=i[e]=r>>>8^t[255&r];var s=[];for(n=1;16!=n;++n)s[n-1]="undefined"!=typeof Int32Array?i.subarray(256*n,256*n+256):i.slice(256*n,256*n+256);return s}(e),n=r[0],i=r[1],s=r[2],o=r[3],a=r[4],l=r[5],u=r[6],h=r[7],c=r[8],d=r[9],f=r[10],p=r[11],g=r[12],b=r[13],m=r[14];t.table=e,t.bstr=function(t,r){for(var n=~r,i=0,s=t.length;i<s;)n=n>>>8^e[255&(n^t.charCodeAt(i++))];return~n},t.buf=function(t,r){for(var y=~r,w=t.length-15,_=0;_<w;)y=m[t[_++]^255&y]^b[t[_++]^y>>8&255]^g[t[_++]^y>>16&255]^p[t[_++]^y>>>24]^f[t[_++]]^d[t[_++]]^c[t[_++]]^h[t[_++]]^u[t[_++]]^l[t[_++]]^a[t[_++]]^o[t[_++]]^s[t[_++]]^i[t[_++]]^n[t[_++]]^e[t[_++]];for(w+=15;_<w;)y=y>>>8^e[255&(y^t[_++])];return~y},t.str=function(t,r){for(var n=~r,i=0,s=t.length,o=0,a=0;i<s;)(o=t.charCodeAt(i++))<128?n=n>>>8^e[255&(n^o)]:o<2048?n=(n=n>>>8^e[255&(n^(192|o>>6&31))])>>>8^e[255&(n^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),a=1023&t.charCodeAt(i++),n=(n=(n=(n=n>>>8^e[255&(n^(240|o>>8&7))])>>>8^e[255&(n^(128|o>>2&63))])>>>8^e[255&(n^(128|a>>6&15|(3&o)<<4))])>>>8^e[255&(n^(128|63&a))]):n=(n=(n=n>>>8^e[255&(n^(224|o>>12&15))])>>>8^e[255&(n^(128|o>>6&63))])>>>8^e[255&(n^(128|63&o))];return~n}},"undefined"==typeof DO_NOT_EXPORT_CRC?r(e):r({})},5485(t,e,r){"use strict";const{Transform:n}=r(404),i=r(2566);t.exports=class extends n{constructor(t){super(t),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(t,e,r){t&&(this.checksum=i.buf(t,this.checksum)>>>0,this.rawSize+=t.length),r(null,t)}digest(t){const e=Buffer.allocUnsafe(4);return e.writeUInt32BE(this.checksum>>>0,0),t?e.toString(t):e}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}},951(t,e,r){"use strict";const{DeflateRaw:n}=r(3106),i=r(2566);t.exports=class extends n{constructor(t){super(t),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(t,e){return t&&(this.compressedSize+=t.length),super.push(t,e)}_transform(t,e,r){t&&(this.checksum=i.buf(t,this.checksum)>>>0,this.rawSize+=t.length),super._transform(t,e,r)}digest(t){const e=Buffer.allocUnsafe(4);return e.writeUInt32BE(this.checksum>>>0,0),t?e.toString(t):e}hex(){return this.digest("hex").toUpperCase()}size(t=!1){return t?this.compressedSize:this.rawSize}}},71(t,e,r){"use strict";t.exports={CRC32Stream:r(5485),DeflateCRC32Stream:r(951)}},4769(t,e,r){"use strict";const{SymbolDispose:n}=r(7744),{AbortError:i,codes:s}=r(3845),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:l}=r(2225),u=r(9327),{ERR_INVALID_ARG_TYPE:h}=s;let c;t.exports.addAbortSignal=function(e,r){if(((t,e)=>{if("object"!=typeof t||!("aborted"in t))throw new h(e,"AbortSignal",t)})(e,"signal"),!o(r)&&!a(r))throw new h("stream",["ReadableStream","WritableStream","Stream"],r);return t.exports.addAbortSignalNoValidate(e,r)},t.exports.addAbortSignalNoValidate=function(t,e){if("object"!=typeof t||!("aborted"in t))return e;const s=o(e)?()=>{e.destroy(new i(void 0,{cause:t.reason}))}:()=>{e[l](new i(void 0,{cause:t.reason}))};if(t.aborted)s();else{c=c||r(7206).addAbortListener;const i=c(t,s);u(e,i[n])}return e}},4115(t,e,r){"use strict";const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r(7744),{Buffer:a}=r(181),{inspect:l}=r(7206);t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}unshift(t){const e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}shift(){if(0===this.length)return;const t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(0===this.length)return"";let e=this.head,r=""+e.data;for(;null!==(e=e.next);)r+=t+e.data;return r}concat(t){if(0===this.length)return a.alloc(0);const e=a.allocUnsafe(t>>>0);let r=this.head,n=0;for(;r;)s(e,r.data,n),n+=r.data.length,r=r.next;return e}consume(t,e){const r=this.head.data;if(t<r.length){const e=r.slice(0,t);return this.head.data=r.slice(t),e}return t===r.length?this.shift():e?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[i](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let e="",r=this.head,i=0;do{const s=r.data;if(!(t>s.length)){t===s.length?(e+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(e+=n(s,0,t),this.head=r,r.data=n(s,t));break}e+=s,t-=s.length,++i}while(null!==(r=r.next));return this.length-=i,e}_getBuffer(t){const e=a.allocUnsafe(t),r=t;let n=this.head,i=0;do{const a=n.data;if(!(t>a.length)){t===a.length?(s(e,a,r-t),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(e,new o(a.buffer,a.byteOffset,t),r-t),this.head=n,n.data=a.slice(t));break}s(e,a,r-t),t-=a.length,++i}while(null!==(n=n.next));return this.length-=i,e}[Symbol.for("nodejs.util.inspect.custom")](t,e){return l(this,{...e,depth:0,customInspect:!1})}}},8504(t,e,r){"use strict";const{pipeline:n}=r(5232),i=r(7400),{destroyer:s}=r(8118),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:u,isTransformStream:h,isWritableStream:c,isReadableStream:d}=r(2225),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:g}}=r(3845),b=r(9327);t.exports=function(...t){if(0===t.length)throw new g("streams");if(1===t.length)return i.from(t[0]);const e=[...t];if("function"==typeof t[0]&&(t[0]=i.from(t[0])),"function"==typeof t[t.length-1]){const e=t.length-1;t[e]=i.from(t[e])}for(let r=0;r<t.length;++r)if(o(t[r])||u(t[r])){if(r<t.length-1&&!(a(t[r])||d(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be readable");if(r>0&&!(l(t[r])||c(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be writable")}let r,m,y,w,_;const v=t[0],S=n(t,(function(t){const e=w;w=null,e?e(t):t?_.destroy(t):x||E||_.destroy()})),E=!!(l(v)||c(v)||h(v)),x=!!(a(S)||d(S)||h(S));if(_=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(o(v))_._write=function(t,e,n){v.write(t,e)?n():r=n},_._final=function(t){v.end(),m=t},v.on("drain",(function(){if(r){const t=r;r=null,t()}}));else if(u(v)){const t=(h(v)?v.writable:v).getWriter();_._write=async function(e,r,n){try{await t.ready,t.write(e).catch((()=>{})),n()}catch(t){n(t)}},_._final=async function(e){try{await t.ready,t.close().catch((()=>{})),m=e}catch(t){e(t)}}}const t=h(S)?S.readable:S;b(t,(()=>{if(m){const t=m;m=null,t()}}))}if(x)if(o(S))S.on("readable",(function(){if(y){const t=y;y=null,t()}})),S.on("end",(function(){_.push(null)})),_._read=function(){for(;;){const t=S.read();if(null===t)return void(y=_._read);if(!_.push(t))return}};else if(u(S)){const t=(h(S)?S.readable:S).getReader();_._read=async function(){for(;;)try{const{value:e,done:r}=await t.read();if(!_.push(e))return;if(r)return void _.push(null)}catch{return}}}return _._destroy=function(t,e){t||null===w||(t=new f),y=null,r=null,m=null,null===w?e(t):(w=e,o(S)&&s(S,t))},_}},8118(t,e,r){"use strict";const n=r(4422),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r(3845),{Symbol:a}=r(7744),{kIsDestroyed:l,isDestroyed:u,isFinished:h,isServerRequest:c}=r(2225),d=a("kDestroy"),f=a("kConstruct");function p(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function g(t,e,r){let i=!1;function s(e){if(i)return;i=!0;const s=t._readableState,o=t._writableState;p(e,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(e),e?n.nextTick(b,t,e):n.nextTick(m,t)}try{t._destroy(e||null,s)}catch(e){s(e)}}function b(t,e){y(t,e),m(t)}function m(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(null!=r&&r.emitClose||null!=e&&e.emitClose)&&t.emit("close")}function y(t,e){const r=t._readableState,n=t._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function w(t,e,r){const i=t._readableState,s=t._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?t.destroy(e):e&&(e.stack,s&&!s.errored&&(s.errored=e),i&&!i.errored&&(i.errored=e),r?n.nextTick(y,t,e):y(t,e))}function _(t){let e=!1;function r(r){if(e)return void w(t,null!=r?r:new s);e=!0;const i=t._readableState,o=t._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?t.emit(d,r):r?w(t,r,!0):n.nextTick(v,t)}try{t._construct((t=>{n.nextTick(r,t)}))}catch(t){n.nextTick(r,t)}}function v(t){t.emit(f)}function S(t){return(null==t?void 0:t.setHeader)&&"function"==typeof t.abort}function E(t){t.emit("close")}function x(t,e){t.emit("error",e),n.nextTick(E,t)}t.exports={construct:function(t,e){if("function"!=typeof t._construct)return;const r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(f,e),t.listenerCount(f)>1||n.nextTick(_,t)},destroyer:function(t,e){t&&!u(t)&&(e||h(t)||(e=new o),c(t)?(t.socket=null,t.destroy(e)):S(t)?t.abort():S(t.req)?t.req.abort():"function"==typeof t.destroy?t.destroy(e):"function"==typeof t.close?t.close():e?n.nextTick(x,t,e):n.nextTick(E,t),t.destroyed||(t[l]=!0))},destroy:function(t,e){const r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof e&&e(),this):(p(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?g(this,t,e):this.once(d,(function(r){g(this,i(r,t),e)})),this)},undestroy:function(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=!1===t.readable,t.endEmitted=!1===t.readable),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=!1===e.writable,e.ending=!1===e.writable,e.finished=!1===e.writable)},errorOrDestroy:w}},7400(t,e,r){"use strict";const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:s,ObjectSetPrototypeOf:o}=r(7744);t.exports=u;const a=r(2382),l=r(9282);o(u.prototype,a.prototype),o(u,a);{const t=s(l.prototype);for(let e=0;e<t.length;e++){const r=t[e];u.prototype[r]||(u.prototype[r]=l.prototype[r])}}function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),l.call(this,t),t?(this.allowHalfOpen=!1!==t.allowHalfOpen,!1===t.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===t.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let h,c;function d(){return void 0===h&&(h={}),h}n(u.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}}),u.fromWeb=function(t,e){return d().newStreamDuplexFromReadableWritablePair(t,e)},u.toWeb=function(t){return d().newReadableWritablePairFromDuplex(t)},u.from=function(t){return c||(c=r(5048)),c(t,"body")}},5048(t,e,r){const n=r(4422),i=r(181),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:u,isWritableNodeStream:h,isDuplexNodeStream:c,isReadableStream:d,isWritableStream:f}=r(2225),p=r(9327),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=r(3845),{destroyer:y}=r(8118),w=r(7400),_=r(2382),v=r(9282),{createDeferredPromise:S}=r(7206),E=r(8806),x=globalThis.Blob||i.Blob,A=void 0!==x?function(t){return t instanceof x}:function(t){return!1},R=globalThis.AbortController||r(6584).AbortController,{FunctionPrototypeCall:O}=r(7744);class T extends w{constructor(t){super(t),!1===(null==t?void 0:t.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==t?void 0:t.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function k(t){const e=t.readable&&"function"!=typeof t.readable.read?_.wrap(t.readable):t.readable,r=t.writable;let n,i,a,l,u,h=!!s(e),c=!!o(r);function d(t){const e=l;l=null,e?e(t):t&&u.destroy(t)}return u=new T({readableObjectMode:!(null==e||!e.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:h,writable:c}),c&&(p(r,(t=>{c=!1,t&&y(e,t),d(t)})),u._write=function(t,e,i){r.write(t,e)?i():n=i},u._final=function(t){r.end(),i=t},r.on("drain",(function(){if(n){const t=n;n=null,t()}})),r.on("finish",(function(){if(i){const t=i;i=null,t()}}))),h&&(p(e,(t=>{h=!1,t&&y(e,t),d(t)})),e.on("readable",(function(){if(a){const t=a;a=null,t()}})),e.on("end",(function(){u.push(null)})),u._read=function(){for(;;){const t=e.read();if(null===t)return void(a=u._read);if(!u.push(t))return}}),u._destroy=function(t,s){t||null===l||(t=new g),a=null,n=null,i=null,null===l?s(t):(l=s,y(r,t),y(e,t))},u}t.exports=function t(e,r){if(c(e))return e;if(u(e))return k({readable:e});if(h(e))return k({writable:e});if(l(e))return k({writable:!1,readable:!1});if(d(e))return k({readable:_.fromWeb(e)});if(f(e))return k({writable:v.fromWeb(e)});if("function"==typeof e){const{value:t,write:i,final:s,destroy:o}=function(t){let{promise:e,resolve:r}=S();const i=new R,s=i.signal,o=t(async function*(){for(;;){const t=e;e=null;const{chunk:i,done:o,cb:a}=await t;if(n.nextTick(a),o)return;if(s.aborted)throw new g(void 0,{cause:s.reason});({promise:e,resolve:r}=S()),yield i}}(),{signal:s});return{value:o,write(t,e,n){const i=r;r=null,i({chunk:t,done:!1,cb:n})},final(t){const e=r;r=null,e({done:!0,cb:t})},destroy(t,e){i.abort(),e(t)}}}(e);if(a(t))return E(T,t,{objectMode:!0,write:i,final:s,destroy:o});const l=null==t?void 0:t.then;if("function"==typeof l){let e;const r=O(l,t,(t=>{if(null!=t)throw new m("nully","body",t)}),(t=>{y(e,t)}));return e=new T({objectMode:!0,readable:!1,write:i,final(t){s((async()=>{try{await r,n.nextTick(t,null)}catch(e){n.nextTick(t,e)}}))},destroy:o})}throw new m("Iterable, AsyncIterable or AsyncFunction",r,t)}if(A(e))return t(e.arrayBuffer());if(a(e))return E(T,e,{objectMode:!0,writable:!1});if(d(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return T.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable)){return k({readable:null!=e&&e.readable?u(null==e?void 0:e.readable)?null==e?void 0:e.readable:t(e.readable):void 0,writable:null!=e&&e.writable?h(null==e?void 0:e.writable)?null==e?void 0:e.writable:t(e.writable):void 0})}const i=null==e?void 0:e.then;if("function"==typeof i){let t;return O(i,e,(e=>{null!=e&&t.push(e),t.push(null)}),(e=>{y(t,e)})),t=new T({objectMode:!0,writable:!1,read(){}})}throw new b(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},9327(t,e,r){"use strict";const n=r(4422),{AbortError:i,codes:s}=r(3845),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:l,once:u}=r(7206),{validateAbortSignal:h,validateFunction:c,validateObject:d,validateBoolean:f}=r(3299),{Promise:p,PromisePrototypeThen:g,SymbolDispose:b}=r(7744),{isClosed:m,isReadable:y,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:A,isWritableFinished:R,isWritableErrored:O,isNodeStream:T,willEmitClose:k,kIsClosedPromise:M}=r(2225);let P;const I=()=>{};function L(t,e,s){var f,p;if(2===arguments.length?(s=e,e=l):null==e?e=l:d(e,"options"),c(s,"callback"),h(e.signal,"options.signal"),s=u(s),_(t)||A(t))return function(t,e,s){let o=!1,a=I;if(e.signal)if(a=()=>{o=!0,s.call(t,new i(void 0,{cause:e.signal.reason}))},e.signal.aborted)n.nextTick(a);else{P=P||r(7206).addAbortListener;const n=P(e.signal,a),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}const l=(...e)=>{o||n.nextTick((()=>s.apply(t,e)))};return g(t[M].promise,l,l),I}(t,e,s);if(!T(t))throw new o("stream",["ReadableStream","WritableStream","Stream"],t);const L=null!==(f=e.readable)&&void 0!==f?f:w(t),D=null!==(p=e.writable)&&void 0!==p?p:x(t),C=t._writableState,N=t._readableState,j=()=>{t.writable||W()};let F=k(t)&&w(t)===L&&x(t)===D,$=R(t,!1);const W=()=>{$=!0,t.destroyed&&(F=!1),(!F||t.readable&&!L)&&(L&&!B||s.call(t))};let B=v(t,!1);const U=()=>{B=!0,t.destroyed&&(F=!1),(!F||t.writable&&!D)&&(D&&!$||s.call(t))},z=e=>{s.call(t,e)};let H=m(t);const G=()=>{H=!0;const e=O(t)||S(t);return e&&"boolean"!=typeof e?s.call(t,e):L&&!B&&w(t,!0)&&!v(t,!1)?s.call(t,new a):!D||$||R(t,!1)?void s.call(t):s.call(t,new a)},V=()=>{H=!0;const e=O(t)||S(t);if(e&&"boolean"!=typeof e)return s.call(t,e);s.call(t)},q=()=>{t.req.on("finish",W)};!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?D&&!C&&(t.on("end",j),t.on("close",j)):(t.on("complete",W),F||t.on("abort",G),t.req?q():t.on("request",q)),F||"boolean"!=typeof t.aborted||t.on("aborted",G),t.on("end",U),t.on("finish",W),!1!==e.error&&t.on("error",z),t.on("close",G),H?n.nextTick(G):null!=C&&C.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(L||F&&!y(t)||!$&&!1!==E(t))&&(D||F&&!E(t)||!B&&!1!==y(t))?N&&t.req&&t.aborted&&n.nextTick(V):n.nextTick(V);const Y=()=>{s=I,t.removeListener("aborted",G),t.removeListener("complete",W),t.removeListener("abort",G),t.removeListener("request",q),t.req&&t.req.removeListener("finish",W),t.removeListener("end",j),t.removeListener("close",j),t.removeListener("finish",W),t.removeListener("end",U),t.removeListener("error",z),t.removeListener("close",G)};if(e.signal&&!H){const o=()=>{const r=s;Y(),r.call(t,new i(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)n.nextTick(o);else{P=P||r(7206).addAbortListener;const n=P(e.signal,o),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}}return Y}t.exports=L,t.exports.finished=function(t,e){var r;let n=!1;return null===e&&(e=l),null!==(r=e)&&void 0!==r&&r.cleanup&&(f(e.cleanup,"cleanup"),n=e.cleanup),new p(((r,i)=>{const s=L(t,e,(t=>{n&&s(),t?i(t):r()}))}))}},8806(t,e,r){"use strict";const n=r(4422),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r(7744),{Buffer:a}=r(181),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:u}=r(3845).codes;t.exports=function(t,e,r){let h,c;if("string"==typeof e||e instanceof a)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});if(e&&e[s])c=!0,h=e[s]();else{if(!e||!e[o])throw new l("iterable",["Iterable"],e);c=!1,h=e[o]()}const d=new t({objectMode:!0,highWaterMark:1,...r});let f=!1;return d._read=function(){f||(f=!0,async function(){for(;;){try{const{value:t,done:e}=c?await h.next():h.next();if(e)d.push(null);else{const e=t&&"function"==typeof t.then?await t:t;if(null===e)throw f=!1,new u;if(d.push(e))continue;f=!1}}catch(t){d.destroy(t)}break}}())},d._destroy=function(t,e){i(async function(t){const e=null!=t,r="function"==typeof h.throw;if(e&&r){const{value:e,done:r}=await h.throw(t);if(await e,r)return}if("function"==typeof h.return){const{value:t}=await h.return();await t}}(t),(()=>n.nextTick(e,t)),(r=>n.nextTick(e,r||t)))},d}},6233(t,e,r){"use strict";const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(7744),{EventEmitter:s}=r(4434);function o(t){s.call(this,t)}function a(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?n(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}i(o.prototype,s.prototype),i(o,s),o.prototype.pipe=function(t,e){const r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",l),r.on("close",u));let o=!1;function l(){o||(o=!0,t.end())}function u(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){c(),0===s.listenerCount(this,"error")&&this.emit("error",t)}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return a(r,"error",h),a(t,"error",h),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t},t.exports={Stream:o,prependListener:a}},5533(t,e,r){"use strict";const n=globalThis.AbortController||r(6584).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r(3845),{validateAbortSignal:u,validateInteger:h,validateObject:c}=r(3299),d=r(7744).Symbol("kWeak"),f=r(7744).Symbol("kResistStopPropagation"),{finished:p}=r(9327),g=r(8504),{addAbortSignalNoValidate:b}=r(4769),{isWritable:m,isNodeStream:y}=r(2225),{deprecate:w}=r(7206),{ArrayPrototypePush:_,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:T,Symbol:k}=r(7744),M=k("kEmpty"),P=k("kEof");function I(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");let n=1;null!=(null==e?void 0:e.concurrency)&&(n=S(e.concurrency));let i=n-1;return null!=(null==e?void 0:e.highWaterMark)&&(i=S(e.highWaterMark)),h(n,"options.concurrency",1),h(i,"options.highWaterMark",0),i+=n,async function*(){const s=r(7206).AbortSignalAny([null==e?void 0:e.signal].filter(v)),o=this,a=[],u={signal:s};let h,c,d=!1,f=0;function p(){d=!0,g()}function g(){f-=1,b()}function b(){c&&!d&&f<n&&a.length<i&&(c(),c=null)}!async function(){try{for await(let e of o){if(d)return;if(s.aborted)throw new l;try{if(e=t(e,u),e===M)continue;e=O(e)}catch(t){e=R(t)}f+=1,T(e,g,p),a.push(e),h&&(h(),h=null),!d&&(a.length>=i||f>=n)&&await new A((t=>{c=t}))}a.push(P)}catch(t){const e=R(t);T(e,g,p),a.push(e)}finally{d=!0,h&&(h(),h=null)}}();try{for(;;){for(;a.length>0;){const t=await a[0];if(t===P)return;if(s.aborted)throw new l;t!==M&&(yield t),a.shift(),b()}await new A((t=>{h=t}))}}finally{d=!0,c&&(c(),c=null)}}.call(this)}async function L(t,e=void 0){for await(const r of D.call(this,t,e))return!0;return!1}function D(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return I.call(this,(async function(e,r){return await t(e,r)?e:M}),e)}class C extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(t){if(t=E(t),x(t))return 0;if(t<0)throw new a("number",">= 0",t);return t}t.exports.streamReturningOperators={asIndexedPairs:w((function(t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),async function*(){let e=0;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l({cause:t.signal.reason});yield[e++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;t--<=0&&(yield r)}}.call(this)},filter:D,flatMap:function(t,e){const r=I.call(this,t,e);return async function*(){for await(const t of r)yield*t}.call(this)},map:I,take:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;if(t-- >0&&(yield r),t<=0)return}}.call(this)},compose:function(t,e){if(null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),y(t)&&!m(t))throw new i("stream",t,"must be writable");const r=g(this,t);return null!=e&&e.signal&&b(e.signal,r),r}},t.exports.promiseReturningOperators={every:async function(t,e=void 0){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return!await L.call(this,(async(...e)=>!await t(...e)),e)},forEach:async function(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);for await(const r of I.call(this,(async function(e,r){return await t(e,r),M}),e));},reduce:async function(t,e,r){var i;if("function"!=typeof t)throw new s("reducer",["Function","AsyncFunction"],t);null!=r&&c(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let o=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const t=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(t)),t}const a=new n,h=a.signal;if(null!=r&&r.signal){const t={once:!0,[d]:this,[f]:!0};r.signal.addEventListener("abort",(()=>a.abort()),t)}let g=!1;try{for await(const n of this){var b;if(g=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;o?e=await t(e,n,{signal:h}):(e=n,o=!0)}if(!g&&!o)throw new C}finally{a.abort()}return e},toArray:async function(t){null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:t.signal.reason});_(e,n)}return e},some:L,find:async function(t,e){for await(const r of D.call(this,t,e))return r}}},6410(t,e,r){"use strict";const{ObjectSetPrototypeOf:n}=r(7744);t.exports=s;const i=r(4552);function s(t){if(!(this instanceof s))return new s(t);i.call(this,t)}n(s.prototype,i.prototype),n(s,i),s.prototype._transform=function(t,e,r){r(null,t)}},5232(t,e,r){const n=r(4422),{ArrayIsArray:i,Promise:s,SymbolAsyncIterator:o,SymbolDispose:a}=r(7744),l=r(9327),{once:u}=r(7206),h=r(8118),c=r(7400),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:m},AbortError:y}=r(3845),{validateFunction:w,validateAbortSignal:_}=r(3299),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:A,isWebStream:R,isReadableStream:O,isReadableFinished:T}=r(2225),k=globalThis.AbortController||r(6584).AbortController;let M,P,I;function L(t,e,r){let n=!1;t.on("close",(()=>{n=!0}));return{destroy:e=>{n||(n=!0,h.destroyer(t,e||new b("pipe")))},cleanup:l(t,{readable:e,writable:r},(t=>{n=!t}))}}function D(t){if(v(t))return t;if(E(t))return async function*(t){P||(P=r(2382));yield*P.prototype[o].call(t)}(t);throw new f("val",["Readable","Iterable","AsyncIterable"],t)}async function C(t,e,r,{end:n}){let i,o=null;const a=t=>{if(t&&(i=t),o){const t=o;o=null,t()}},u=()=>new s(((t,e)=>{i?e(i):o=()=>{i?e(i):t()}}));e.on("drain",a);const h=l(e,{readable:!1},a);try{e.writableNeedDrain&&await u();for await(const r of t)e.write(r)||await u();n&&(e.end(),await u()),r()}catch(t){r(i!==t?d(i,t):t)}finally{h(),e.off("drain",a)}}async function N(t,e,r,{end:n}){A(e)&&(e=e.writable);const i=e.getWriter();try{for await(const e of t)await i.ready,i.write(e).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(t){try{await i.abort(t),r(t)}catch(t){r(t)}}}function j(t,e,s){if(1===t.length&&i(t[0])&&(t=t[0]),t.length<2)throw new g("streams");const o=new k,l=o.signal,u=null==s?void 0:s.signal,h=[];function d(){W(new y)}let b,m,w;_(u,"options.signal"),I=I||r(7206).addAbortListener,u&&(b=I(u,d));const T=[];let P,j=0;function $(t){W(t,0==--j)}function W(t,r){var i;if(!t||m&&"ERR_STREAM_PREMATURE_CLOSE"!==m.code||(m=t),m||r){for(;T.length;)T.shift()(m);null===(i=b)||void 0===i||i[a](),o.abort(),r&&(m||h.forEach((t=>t())),n.nextTick(e,m,w))}}for(let H=0;H<t.length;H++){const G=t[H],V=H<t.length-1,q=H>0,Y=V||!1!==(null==s?void 0:s.end),K=H===t.length-1;if(x(G)){if(Y){const{destroy:Z,cleanup:J}=L(G,V,q);T.push(Z),S(G)&&K&&h.push(J)}function B(t){t&&"AbortError"!==t.name&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code&&$(t)}G.on("error",B),S(G)&&K&&h.push((()=>{G.removeListener("error",B)}))}if(0===H)if("function"==typeof G){if(P=G({signal:l}),!v(P))throw new p("Iterable, AsyncIterable or Stream","source",P)}else P=v(G)||E(G)||A(G)?G:c.from(G);else if("function"==typeof G){var U;if(A(P))P=D(null===(U=P)||void 0===U?void 0:U.readable);else P=D(P);if(P=G(P,{signal:l}),V){if(!v(P,!0))throw new p("AsyncIterable",`transform[${H-1}]`,P)}else{var z;M||(M=r(6410));const Q=new M({objectMode:!0}),X=null===(z=P)||void 0===z?void 0:z.then;if("function"==typeof X)j++,X.call(P,(t=>{w=t,null!=t&&Q.write(t),Y&&Q.end(),n.nextTick($)}),(t=>{Q.destroy(t),n.nextTick($,t)}));else if(v(P,!0))j++,C(P,Q,$,{end:Y});else{if(!O(P)&&!A(P))throw new p("AsyncIterable or Promise","destination",P);{const rt=P.readable||P;j++,C(rt,Q,$,{end:Y})}}P=Q;const{destroy:tt,cleanup:et}=L(P,!1,!0);T.push(tt),K&&h.push(et)}}else if(x(G)){if(E(P)){j+=2;const nt=F(P,G,$,{end:Y});S(G)&&K&&h.push(nt)}else if(A(P)||O(P)){const it=P.readable||P;j++,C(it,G,$,{end:Y})}else{if(!v(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,C(P,G,$,{end:Y})}P=G}else if(R(G)){if(E(P))j++,N(D(P),G,$,{end:Y});else if(O(P)||v(P))j++,N(P,G,$,{end:Y});else{if(!A(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,N(P.readable,G,$,{end:Y})}P=G}else P=c.from(G)}return(null!=l&&l.aborted||null!=u&&u.aborted)&&n.nextTick(d),P}function F(t,e,r,{end:i}){let s=!1;if(e.on("close",(()=>{s||r(new m)})),t.pipe(e,{end:!1}),i){function o(){s=!0,e.end()}T(t)?n.nextTick(o):t.once("end",o)}else r();return l(t,{readable:!0,writable:!1},(e=>{const n=t._readableState;e&&"ERR_STREAM_PREMATURE_CLOSE"===e.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?t.once("end",r).once("error",r):r(e)})),l(e,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:j,pipeline:function(...t){return j(t,u(function(t){return w(t[t.length-1],"streams[stream.length - 1]"),t.pop()}(t)))}}},2382(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeIndexOf:i,NumberIsInteger:s,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:u,ObjectSetPrototypeOf:h,Promise:c,SafeSet:d,SymbolAsyncDispose:f,SymbolAsyncIterator:p,Symbol:g}=r(7744);t.exports=H,H.ReadableState=z;const{EventEmitter:b}=r(4434),{Stream:m,prependListener:y}=r(6233),{Buffer:w}=r(181),{addAbortSignal:_}=r(4769),v=r(9327);let S=r(7206).debuglog("stream",(t=>{S=t}));const E=r(4115),x=r(8118),{getHighWaterMark:A,getDefaultHighWaterMark:R}=r(2073),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:k,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:I},AbortError:L}=r(3845),{validateObject:D}=r(3299),C=g("kPaused"),{StringDecoder:N}=r(3141),j=r(8806);h(H.prototype,m.prototype),h(H,m);const F=()=>{},{errorOrDestroy:$}=x,W=2048,B=4096;function U(t){return{enumerable:!1,get(){return!!(this.state&t)},set(e){e?this.state|=t:this.state&=~t}}}function z(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7400)),this.state=6192,t&&t.objectMode&&(this.state|=1),n&&t&&t.readableObjectMode&&(this.state|=1),this.highWaterMark=t?A(this,t,"readableHighWaterMark",n):R(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,t&&!1===t.emitClose&&(this.state&=-2049),t&&!1===t.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new N(t.encoding),this.encoding=t.encoding)}function H(t){if(!(this instanceof H))return new H(t);const e=this instanceof r(7400);this._readableState=new z(t,this,e),t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&!e&&_(t.signal,this)),m.call(this,t),x.construct(this,(()=>{this._readableState.needReadable&&Z(this,this._readableState)}))}function G(t,e,r,n){S("readableAddChunk",e);const i=t._readableState;let s;if(1&i.state||("string"==typeof e?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=w.from(e,r).toString(i.encoding):(e=w.from(e,r),r=""))):e instanceof w?r="":m._isUint8Array(e)?(e=m._uint8ArrayToBuffer(e),r=""):null!=e&&(s=new T("chunk",["string","Buffer","Uint8Array"],e))),s)$(t,s);else if(null===e)i.state&=-9,function(t,e){if(S("onEofChunk"),e.ended)return;if(e.decoder){const t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?Y(t):(e.needReadable=!1,e.emittedReadable=!0,K(t))}(t,i);else if(1&i.state||e&&e.length>0)if(n)if(4&i.state)$(t,new I);else{if(i.destroyed||i.errored)return!1;V(t,i,e,!0)}else if(i.ended)$(t,new P);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||0!==e.length?V(t,i,e,!1):Z(t,i)):V(t,i,e,!1)}else n||(i.state&=-9,Z(t,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function V(t,e,r,n){e.flowing&&0===e.length&&!e.sync&&t.listenerCount("data")>0?(65536&e.state?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),64&e.state&&Y(t)),Z(t,e)}l(z.prototype,{objectMode:U(1),ended:U(2),endEmitted:U(4),reading:U(8),constructed:U(16),sync:U(32),needReadable:U(64),emittedReadable:U(128),readableListening:U(256),resumeScheduled:U(512),errorEmitted:U(1024),emitClose:U(W),autoDestroy:U(B),destroyed:U(8192),closed:U(16384),closeEmitted:U(32768),multiAwaitDrain:U(65536),readingMore:U(1<<17),dataEmitted:U(1<<18)}),H.prototype.destroy=x.destroy,H.prototype._undestroy=x.undestroy,H.prototype._destroy=function(t,e){e(t)},H.prototype[b.captureRejectionSymbol]=function(t){this.destroy(t)},H.prototype[f]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new L,this.destroy(t)),new c(((e,r)=>v(this,(n=>n&&n!==t?r(n):e(null)))))},H.prototype.push=function(t,e){return G(this,t,e,!1)},H.prototype.unshift=function(t,e){return G(this,t,e,!0)},H.prototype.isPaused=function(){const t=this._readableState;return!0===t[C]||!1===t.flowing},H.prototype.setEncoding=function(t){const e=new N(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const t of r)n+=e.write(t);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function q(t,e){return t<=0||0===e.length&&e.ended?0:1&e.state?1:o(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}function Y(t){const e=t._readableState;S("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(S("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(K,t))}function K(t){const e=t._readableState;S("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||e.errored||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,et(t)}function Z(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,n.nextTick(J,t,e))}function J(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){const r=e.length;if(S("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function Q(t){const e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!1===e[C]?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function X(t){S("readable nexttick read 0"),t.read(0)}function tt(t,e){S("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),et(t),e.flowing&&!e.reading&&t.read(0)}function et(t){const e=t._readableState;for(S("flow",e.flowing);e.flowing&&null!==t.read(););}function rt(t,e){"function"!=typeof t.read&&(t=H.wrap(t,{objectMode:!0}));const r=async function*(t,e){let r,n=F;function i(e){this===t?(n(),n=F):n=e}t.on("readable",i);const s=v(t,{writable:!1},(t=>{r=t?O(r,t):null,n(),n=F}));try{for(;;){const e=t.destroyed?null:t.read();if(null!==e)yield e;else{if(r)throw r;if(null===r)return;await new c(i)}}}catch(t){throw r=O(r,t),r}finally{!r&&!1===(null==e?void 0:e.destroyOnReturn)||void 0!==r&&!t._readableState.autoDestroy?(t.off("readable",i),s()):x.destroyer(t,null)}}(t,e);return r.stream=t,r}function nt(t,e){if(0===e.length)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function it(t){const e=t._readableState;S("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(st,e,t))}function st(t,e){if(S("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&0===t.length)if(t.endEmitted=!0,e.emit("end"),e.writable&&!1===e.allowHalfOpen)n.nextTick(ot,e);else if(t.autoDestroy){const t=e._writableState;(!t||t.autoDestroy&&(t.finished||!1===t.writable))&&e.destroy()}}function ot(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}let at;function lt(){return void 0===at&&(at={}),at}H.prototype.read=function(t){S("read",t),void 0===t?t=NaN:s(t)||(t=a(t,10));const e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=function(t){if(t>1073741824)throw new M("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,++t}(t)),0!==t&&(e.state&=-129),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return S("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?it(this):Y(this),null;if(0===(t=q(t,e))&&e.ended)return 0===e.length&&it(this),null;let n,i=!!(64&e.state);if(S("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,S("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),e.state|=40,0===e.length&&(e.state|=64);try{this._read(e.highWaterMark)}catch(t){$(this,t)}e.state&=-33,e.reading||(t=q(r,e))}return n=t>0?nt(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&it(this)),null===n||e.errorEmitted||e.closeEmitted||(e.dataEmitted=!0,this.emit("data",n)),n},H.prototype._read=function(t){throw new k("_read()")},H.prototype.pipe=function(t,e){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),S("pipe count=%d opts=%j",i.pipes.length,e);const s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?a:b;function o(e,n){S("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),l&&t.removeListener("drain",l);t.removeListener("error",f),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}())}function a(){S("onend"),t.end()}let l;i.endEmitted?n.nextTick(s):r.once("end",s),t.on("unpipe",o);let u=!1;function h(){u||(1===i.pipes.length&&i.pipes[0]===t?(S("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=function(t,e){return function(){const r=t._readableState;r.awaitDrainWriters===e?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!t.listenerCount("data")||t.resume()}}(r,t),t.on("drain",l))}function c(e){S("ondata");const r=t.write(e);S("dest.write",r),!1===r&&h()}function f(e){if(S("onerror",e),b(),t.removeListener("error",f),0===t.listenerCount("error")){const r=t._writableState||t._readableState;r&&!r.errorEmitted?$(t,e):t.emit("error",e)}}function p(){t.removeListener("finish",g),b()}function g(){S("onfinish"),t.removeListener("close",p),b()}function b(){S("unpipe"),r.unpipe(t)}return r.on("data",c),y(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",r),!0===t.writableNeedDrain?h():i.flowing||(S("pipe resume"),r.resume()),t},H.prototype.unpipe=function(t){const e=this._readableState;if(0===e.pipes.length)return this;if(!t){const t=e.pipes;e.pipes=[],this.pause();for(let e=0;e<t.length;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(e.pipes,t);return-1===r||(e.pipes.splice(r,1),0===e.pipes.length&&this.pause(),t.emit("unpipe",this,{hasUnpiped:!1})),this},H.prototype.on=function(t,e){const r=m.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Y(this):i.reading||n.nextTick(X,this))),r},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(t,e){const r=m.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(Q,this),r},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(t){const e=m.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(Q,this),e},H.prototype.resume=function(){const t=this._readableState;return t.flowing||(S("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(tt,t,e))}(this,t)),t[C]=!1,this},H.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[C]=!0,this},H.prototype.wrap=function(t){let e=!1;t.on("data",(r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())})),t.on("end",(()=>{this.push(null)})),t.on("error",(t=>{$(this,t)})),t.on("close",(()=>{this.destroy()})),t.on("destroy",(()=>{this.destroy()})),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};const r=u(t);for(let e=1;e<r.length;e++){const n=r[e];void 0===this[n]&&"function"==typeof t[n]&&(this[n]=t[n].bind(t))}return this},H.prototype[p]=function(){return rt(this)},H.prototype.iterator=function(t){return void 0!==t&&D(t,"options"),rt(this,t)},l(H.prototype,{readable:{__proto__:null,get(){const t=this._readableState;return!(!t||!1===t.readable||t.destroyed||t.errorEmitted||t.endEmitted)},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(z.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[C]},set(t){this[C]=!!t}}}),H._fromList=nt,H.from=function(t,e){return j(H,t,e)},H.fromWeb=function(t,e){return lt().newStreamReadableFromReadableStream(t,e)},H.toWeb=function(t,e){return lt().newReadableStreamFromStreamReadable(t,e)},H.wrap=function(t,e){var r,n;return new H({objectMode:null===(r=null!==(n=t.readableObjectMode)&&void 0!==n?n:t.objectMode)||void 0===r||r,...e,destroy(e,r){x.destroyer(t,e),r(e)}}).wrap(t)}},2073(t,e,r){"use strict";const{MathFloor:n,NumberIsInteger:i}=r(7744),{validateInteger:s}=r(3299),{ERR_INVALID_ARG_VALUE:o}=r(3845).codes;let a=16384,l=16;function u(t){return t?l:a}t.exports={getHighWaterMark:function(t,e,r,s){const a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,s,r);if(null!=a){if(!i(a)||a<0){throw new o(s?`options.${r}`:"options.highWaterMark",a)}return n(a)}return u(t.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(t,e){s(e,"value",0),t?l=e:a=e}}},4552(t,e,r){"use strict";const{ObjectSetPrototypeOf:n,Symbol:i}=r(7744);t.exports=u;const{ERR_METHOD_NOT_IMPLEMENTED:s}=r(3845).codes,o=r(7400),{getHighWaterMark:a}=r(2073);n(u.prototype,o.prototype),n(u,o);const l=i("kCallback");function u(t){if(!(this instanceof u))return new u(t);const e=t?a(this,t,"readableHighWaterMark",!0):null;0===e&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),o.call(this,t),this._readableState.sync=!1,this[l]=null,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function h(t){"function"!=typeof this._flush||this.destroyed?(this.push(null),t&&t()):this._flush(((e,r)=>{e?t?t(e):this.destroy(e):(null!=r&&this.push(r),this.push(null),t&&t())}))}function c(){this._final!==h&&h.call(this)}u.prototype._final=h,u.prototype._transform=function(t,e,r){throw new s("_transform()")},u.prototype._write=function(t,e,r){const n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,((t,e)=>{t?r(t):(null!=e&&this.push(e),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},u.prototype._read=function(){if(this[l]){const t=this[l];this[l]=null,t()}}},2225(t,e,r){"use strict";const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r(7744),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),u=s("nodejs.stream.writable"),h=s("nodejs.stream.disturbed"),c=s("nodejs.webstream.isClosedPromise"),d=s("nodejs.webstream.controllerErrorFunction");function f(t,e=!1){var r;return!(!t||"function"!=typeof t.pipe||"function"!=typeof t.on||e&&("function"!=typeof t.pause||"function"!=typeof t.resume)||t._writableState&&!1===(null===(r=t._readableState)||void 0===r?void 0:r.readable)||t._writableState&&!t._readableState)}function p(t){var e;return!(!t||"function"!=typeof t.write||"function"!=typeof t.on||t._readableState&&!1===(null===(e=t._writableState)||void 0===e?void 0:e.writable))}function g(t){return t&&(t._readableState||t._writableState||"function"==typeof t.write&&"function"==typeof t.on||"function"==typeof t.pipe&&"function"==typeof t.on)}function b(t){return!(!t||g(t)||"function"!=typeof t.pipeThrough||"function"!=typeof t.getReader||"function"!=typeof t.cancel)}function m(t){return!(!t||g(t)||"function"!=typeof t.getWriter||"function"!=typeof t.abort)}function y(t){return!(!t||g(t)||"object"!=typeof t.readable||"object"!=typeof t.writable)}function w(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[o]||null!=n&&n.destroyed)}function _(t){if(!p(t))return null;if(!0===t.writableEnded)return!0;const e=t._writableState;return(null==e||!e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)}function v(t,e){if(!f(t))return null;const r=t._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===e&&!0===r.ended&&0===r.length))}function S(t){return t&&null!=t[l]?t[l]:"boolean"!=typeof(null==t?void 0:t.readable)?null:!w(t)&&(f(t)&&t.readable&&!v(t))}function E(t){return t&&null!=t[u]?t[u]:"boolean"!=typeof(null==t?void 0:t.writable)?null:!w(t)&&(p(t)&&t.writable&&!_(t))}function x(t){return"boolean"==typeof t._closed&&"boolean"==typeof t._defaultKeepAlive&&"boolean"==typeof t._removedConnection&&"boolean"==typeof t._removedContLen}function A(t){return"boolean"==typeof t._sent100&&x(t)}t.exports={isDestroyed:w,kIsDestroyed:o,isDisturbed:function(t){var e;return!(!t||!(null!==(e=t[h])&&void 0!==e?e:t.readableDidRead||t.readableAborted))},kIsDisturbed:h,isErrored:function(t){var e,r,n,i,s,o,l,u,h,c;return!(!t||!(null!==(e=null!==(r=null!==(n=null!==(i=null!==(s=null!==(o=t[a])&&void 0!==o?o:t.readableErrored)&&void 0!==s?s:t.writableErrored)&&void 0!==i?i:null===(l=t._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=t._writableState)||void 0===u?void 0:u.errorEmitted)&&void 0!==r?r:null===(h=t._readableState)||void 0===h?void 0:h.errored)&&void 0!==e?e:null===(c=t._writableState)||void 0===c?void 0:c.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:d,kIsWritable:u,isClosed:function(t){if(!g(t))return null;if("boolean"==typeof t.closed)return t.closed;const e=t._writableState,r=t._readableState;return"boolean"==typeof(null==e?void 0:e.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==e?void 0:e.closed)||(null==r?void 0:r.closed):"boolean"==typeof t._closed&&x(t)?t._closed:null},isDuplexNodeStream:function(t){return!(!t||"function"!=typeof t.pipe||!t._readableState||"function"!=typeof t.on||"function"!=typeof t.write)},isFinished:function(t,e){return g(t)?!!w(t)||(!1===(null==e?void 0:e.readable)||!S(t))&&(!1===(null==e?void 0:e.writable)||!E(t)):null},isIterable:function(t,e){return null!=t&&(!0===e?"function"==typeof t[n]:!1===e?"function"==typeof t[i]:"function"==typeof t[n]||"function"==typeof t[i])},isReadableNodeStream:f,isReadableStream:b,isReadableEnded:function(t){if(!f(t))return null;if(!0===t.readableEnded)return!0;const e=t._readableState;return!(!e||e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)},isReadableFinished:v,isReadableErrored:function(t){var e,r;return g(t)?t.readableErrored?t.readableErrored:null!==(e=null===(r=t._readableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isNodeStream:g,isWebStream:function(t){return b(t)||m(t)||y(t)},isWritable:E,isWritableNodeStream:p,isWritableStream:m,isWritableEnded:_,isWritableFinished:function(t,e){if(!p(t))return null;if(!0===t.writableFinished)return!0;const r=t._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===e&&!0===r.ended&&0===r.length))},isWritableErrored:function(t){var e,r;return g(t)?t.writableErrored?t.writableErrored:null!==(e=null===(r=t._writableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isServerRequest:function(t){var e;return"boolean"==typeof t._consuming&&"boolean"==typeof t._dumped&&void 0===(null===(e=t.req)||void 0===e?void 0:e.upgradeOrConnect)},isServerResponse:A,willEmitClose:function(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&A(t)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:y}},9282(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeSlice:i,Error:s,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:h,Symbol:c,SymbolHasInstance:d}=r(7744);t.exports=D,D.WritableState=I;const{EventEmitter:f}=r(4434),p=r(6233).Stream,{Buffer:g}=r(181),b=r(8118),{addAbortSignal:m}=r(4769),{getHighWaterMark:y,getDefaultHighWaterMark:w}=r(2073),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:T}=r(3845).codes,{errorOrDestroy:k}=b;function M(){}u(D.prototype,p.prototype),u(D,p);const P=c("kOnFinished");function I(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7400)),this.objectMode=!(!t||!t.objectMode),n&&(this.objectMode=this.objectMode||!(!t||!t.writableObjectMode)),this.highWaterMark=t?y(this,t,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!t||!1!==t.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||!1!==t.emitClose,this.autoDestroy=!t||!1!==t.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function L(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}function D(t){const e=this instanceof r(7400);if(!e&&!o(D,this))return new D(t);this._writableState=new I(t,this,e),t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&m(t.signal,this)),p.call(this,t),b.construct(this,(()=>{const t=this._writableState;t.writing||U(this,t),G(this,t)}))}function C(t,e,r,i){const s=t._writableState;if("function"==typeof r)i=r,r=s.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new T(r)}else r=s.defaultEncoding;"function"!=typeof i&&(i=M)}if(null===e)throw new R;if(!s.objectMode)if("string"==typeof e)!1!==s.decodeStrings&&(e=g.from(e,r),r="buffer");else if(e instanceof g)r="buffer";else{if(!p._isUint8Array(e))throw new _("chunk",["string","Buffer","Uint8Array"],e);e=p._uint8ArrayToBuffer(e),r="buffer"}let o;return s.ending?o=new O:s.destroyed&&(o=new x("write")),o?(n.nextTick(i,o),k(t,o,!0),o):(s.pendingcb++,function(t,e,r,n,i){const s=e.objectMode?1:r.length;e.length+=s;const o=e.length<e.highWaterMark;o||(e.needDrain=!0);e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:n,callback:i}),e.allBuffers&&"buffer"!==n&&(e.allBuffers=!1),e.allNoop&&i!==M&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(r,n,e.onwrite),e.sync=!1);return o&&!e.errored&&!e.destroyed}(t,s,e,r,i))}function N(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function j(t,e,r,n){--e.pendingcb,n(r),B(e),k(t,r)}function F(t,e){const r=t._writableState,i=r.sync,s=r.writecb;"function"==typeof s?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?n.nextTick(j,t,r,e,s):j(t,r,e,s)):(r.buffered.length>r.bufferedIndex&&U(t,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:t,state:r},n.nextTick($,r.afterWriteTickInfo)):W(t,r,1,s))):k(t,new S)}function $({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,W(t,e,r,n)}function W(t,e,r,n){for(!e.ending&&!t.destroyed&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&B(e),G(t,e)}function B(t){if(t.writing)return;for(let r=t.bufferedIndex;r<t.buffered.length;++r){var e;const{chunk:n,callback:i}=t.buffered[r],s=t.objectMode?1:n.length;t.length-=s,i(null!==(e=t.errored)&&void 0!==e?e:new x("write"))}const r=t[P].splice(0);for(let e=0;e<r.length;e++){var n;r[e](null!==(n=t.errored)&&void 0!==n?n:new x("end"))}L(t)}function U(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:s}=e,o=r.length-n;if(!o)return;let a=n;if(e.bufferProcessing=!0,o>1&&t._writev){e.pendingcb-=o-1;const n=e.allNoop?M:t=>{for(let e=a;e<r.length;++e)r[e].callback(t)},s=e.allNoop&&0===a?r:i(r,a);s.allBuffers=e.allBuffers,N(t,e,!0,e.length,s,"",n),L(e)}else{do{const{chunk:n,encoding:i,callback:o}=r[a];r[a++]=null;N(t,e,!1,s?1:n.length,n,i,o)}while(a<r.length&&!e.writing);a===r.length?L(e):a>256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}function z(t){return t.ending&&!t.destroyed&&t.constructed&&0===t.length&&!t.errored&&0===t.buffered.length&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function H(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.finalCalled=!0,function(t,e){let r=!1;function i(i){if(r)k(t,null!=i?i:S());else if(r=!0,e.pendingcb--,i){const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t](i);k(t,i,e.sync)}else z(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,n.nextTick(V,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(t){i(t)}e.sync=!1}(t,e)))}function G(t,e,r){z(e)&&(H(t,e),0===e.pendingcb&&(r?(e.pendingcb++,n.nextTick(((t,e)=>{z(e)?V(t,e):e.pendingcb--}),t,e)):z(e)&&(e.pendingcb++,V(t,e))))}function V(t,e){e.pendingcb--,e.finished=!0;const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t]();if(t.emit("finish"),e.autoDestroy){const e=t._readableState;(!e||e.autoDestroy&&(e.endEmitted||!1===e.readable))&&t.destroy()}}I.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(D,d,{__proto__:null,value:function(t){return!!o(this,t)||this===D&&(t&&t._writableState instanceof I)}}),D.prototype.pipe=function(){k(this,new E)},D.prototype.write=function(t,e,r){return!0===C(this,t,e,r)},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){const t=this._writableState;t.corked&&(t.corked--,t.writing||U(this,t))},D.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=h(t)),!g.isEncoding(t))throw new T(t);return this._writableState.defaultEncoding=t,this},D.prototype._write=function(t,e,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:t,encoding:e}],r)},D.prototype._writev=null,D.prototype.end=function(t,e,r){const i=this._writableState;let o;if("function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t){const r=C(this,t,e);r instanceof s&&(o=r)}return i.corked&&(i.corked=1,this.uncork()),o||(i.errored||i.ending?i.finished?o=new A("end"):i.destroyed&&(o=new x("end")):(i.ending=!0,G(this,i,!0),i.ended=!0)),"function"==typeof r&&(o||i.finished?n.nextTick(r,o):i[P].push(r)),this},l(D.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){const t=this._writableState;return!(!t||!1===t.writable||t.destroyed||t.errored||t.ending||t.ended)},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const t=this._writableState;return!!t&&(!t.destroyed&&!t.ending&&t.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=b.destroy;let Y;function K(){return void 0===Y&&(Y={}),Y}D.prototype.destroy=function(t,e){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&n.nextTick(B,r),q.call(this,t,e),this},D.prototype._undestroy=b.undestroy,D.prototype._destroy=function(t,e){e(t)},D.prototype[f.captureRejectionSymbol]=function(t){this.destroy(t)},D.fromWeb=function(t,e){return K().newStreamWritableFromWritableStream(t,e)},D.toWeb=function(t){return K().newWritableStreamFromStreamWritable(t)}},3299(t,e,r){"use strict";const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:h,NumberParseInt:c,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:g,StringPrototypeTrim:b}=r(7744),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(3845),{normalizeEncoding:E}=r(7206),{isAsyncFunction:x,isArrayBufferView:A}=r(7206).types,R={};const O=/^[0-7]+$/;const T=m(((t,e,r=h,n=u)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),k=m(((t,e,r=-2147483648,n=2147483647)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),M=m(((t,e,r=!1)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);const n=r?1:0,i=4294967295;if(t<n||t>i)throw new v(e,`>= ${n} && <= ${i}`,t)}));function P(t,e){if("string"!=typeof t)throw new w(e,"string",t)}const I=m(((t,e,r)=>{if(!i(r,t)){const n=s(o(r,(t=>"string"==typeof t?`'${t}'`:p(t))),", ");throw new _(e,t,"must be one of: "+n)}}));function L(t,e){if("boolean"!=typeof t)throw new w(e,"boolean",t)}function D(t,e,r){return null!=t&&d(t,e)?t[e]:r}const C=m(((t,e,r=null)=>{const i=D(r,"allowArray",!1),s=D(r,"allowFunction",!1);if(!D(r,"nullable",!1)&&null===t||!i&&n(t)||"object"!=typeof t&&(!s||"function"!=typeof t))throw new w(e,"Object",t)})),N=m(((t,e)=>{if(null!=t&&"object"!=typeof t&&"function"!=typeof t)throw new w(e,"a dictionary",t)})),j=m(((t,e,r=0)=>{if(!n(t))throw new w(e,"Array",t);if(t.length<r){throw new _(e,t,`must be longer than ${r}`)}}));const F=m(((t,e="buffer")=>{if(!A(t))throw new w(e,["Buffer","TypedArray","DataView"],t)}));const $=m(((t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new w(e,"AbortSignal",t)})),W=m(((t,e)=>{if("function"!=typeof t)throw new w(e,"Function",t)})),B=m(((t,e)=>{if("function"!=typeof t||x(t))throw new w(e,"Function",t)})),U=m(((t,e)=>{if(void 0!==t)throw new w(e,"undefined",t)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function H(t,e){if(void 0===t||!f(z,t))throw new _(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:function(t){return t===(0|t)},isUint32:function(t){return t===t>>>0},parseFileMode:function(t,e,r){if(void 0===t&&(t=r),"string"==typeof t){if(null===f(O,t))throw new _(e,t,"must be a 32-bit unsigned integer or an octal string");t=c(t,8)}return M(t,e),t},validateArray:j,validateStringArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)P(t[r],`${e}[${r}]`)},validateBooleanArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)L(t[r],`${e}[${r}]`)},validateAbortSignalArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++){const n=t[r],i=`${e}[${r}]`;if(null==n)throw new w(i,"AbortSignal",n);$(n,i)}},validateBoolean:L,validateBuffer:F,validateDictionary:N,validateEncoding:function(t,e){const r=E(e),n=t.length;if("hex"===r&&n%2!=0)throw new _("encoding",e,`is invalid for data of length ${n}`)},validateFunction:W,validateInt32:k,validateInteger:T,validateNumber:function(t,e,r=void 0,n){if("number"!=typeof t)throw new w(e,"number",t);if(null!=r&&t<r||null!=n&&t>n||(null!=r||null!=n)&&l(t))throw new v(e,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,t)},validateObject:C,validateOneOf:I,validatePlainFunction:B,validatePort:function(t,e="Port",r=!0){if("number"!=typeof t&&"string"!=typeof t||"string"==typeof t&&0===b(t).length||+t!=+t>>>0||t>65535||0===t&&!r)throw new y(e,t,r);return 0|t},validateSignalName:function(t,e="signal"){if(P(t,e),void 0===R[t]){if(void 0!==R[g(t)])throw new S(t+" (signals must use all capital letters)");throw new S(t)}},validateString:P,validateUint32:M,validateUndefined:U,validateUnion:function(t,e,r){if(!i(r,t))throw new w(e,`('${s(r,"|")}')`,t)},validateAbortSignal:$,validateLinkHeaderValue:function(t){if("string"==typeof t)return H(t,"hints"),t;if(n(t)){const e=t.length;let r="";if(0===e)return r;for(let n=0;n<e;n++){const i=t[n];H(i,"hints"),r+=i,n!==e-1&&(r+=", ")}return r}throw new _("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},3845(t,e,r){"use strict";const{format:n,inspect:i}=r(4917),{AggregateError:s}=r(7744),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,h={};function c(t,e){if(!t)throw new h.ERR_INTERNAL_ASSERTION(e)}function d(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function f(t,e,r){r||(r=Error);class i extends r{constructor(...r){super(function(t,e,r){if("function"==typeof e)return c(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const i=(e.match(/%[dfijoOs]/g)||[]).length;return c(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?e:n(e,...r)}(t,e,r))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[a]=!0,h[t]=i}function p(t){const e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t}class g extends Error{constructor(t="The operation was aborted",e=void 0){if(void 0!==e&&"object"!=typeof e)throw new h.ERR_INVALID_ARG_TYPE("options","Object",e);super(t,e),this.code="ABORT_ERR",this.name="AbortError"}}f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",((t,e,r)=>{c("string"==typeof t,"'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const s=[],o=[],a=[];for(const t of e)c("string"==typeof t,"All expected entries have to be of type string"),l.includes(t)?s.push(t.toLowerCase()):u.test(t)?o.push(t):(c("object"!==t,'The value "object" should be written as "Object"'),a.push(t));if(o.length>0){const t=s.indexOf("object");-1!==t&&(s.splice(s,t,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{const t=s.pop();n+=`one of type ${s.join(", ")}, or ${t}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const t=o.pop();n+=`an instance of ${o.join(", ")}, or ${t}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const t=a.pop();n+=`one of ${a.join(", ")}, or ${t}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var h;if(null!==(h=r.constructor)&&void 0!==h&&h.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let t=i(r,{colors:!1});t.length>25&&(t=`${t.slice(0,25)}...`),n+=`. Received type ${typeof r} (${t})`}return n}),TypeError),f("ERR_INVALID_ARG_VALUE",((t,e,r="is invalid")=>{let n=i(e);n.length>128&&(n=n.slice(0,128)+"...");return`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`}),TypeError),f("ERR_INVALID_RETURN_VALUE",((t,e,r)=>{var n;return`Expected ${t} to be returned from the "${e}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),f("ERR_MISSING_ARGS",((...t)=>{let e;c(t.length>0,"At least one arg needs to be specified");const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map((t=>`"${t}"`)).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}}return`${e} must be specified`}),TypeError),f("ERR_OUT_OF_RANGE",((t,e,r)=>{let n;if(c(e,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32)n=d(String(r));else if("bigint"==typeof r){n=String(r);const t=BigInt(2)**BigInt(32);(r>t||r<-t)&&(n=d(n)),n+="n"}else n=i(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${n}`}),RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:g,aggregateTwoErrors:p((function(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new o([e,t],e.message);return r.code=e.code,r}return t||e})),hideStackFrames:p,codes:h}},404(t,e,r){"use strict";const n=r(2203);if(n&&"disable"===process.env.READABLE_STREAM){const e=n.promises;t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>e}),t.exports.Stream=n.Stream}else{const e=r(4028),n=r(4593),i=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=i,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get:()=>n}),t.exports.Stream=e.Stream}t.exports.default=t.exports},7744(t){"use strict";class e extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError("Expected input to be an Array, got "+typeof t);let e="";for(let r=0;r<t.length;r++)e+=` ${t[r].stack}\n`;super(e),this.name="AggregateError",this.errors=t}}t.exports={AggregateError:e,ArrayIsArray:t=>Array.isArray(t),ArrayPrototypeIncludes:(t,e)=>t.includes(e),ArrayPrototypeIndexOf:(t,e)=>t.indexOf(e),ArrayPrototypeJoin:(t,e)=>t.join(e),ArrayPrototypeMap:(t,e)=>t.map(e),ArrayPrototypePop:(t,e)=>t.pop(e),ArrayPrototypePush:(t,e)=>t.push(e),ArrayPrototypeSlice:(t,e,r)=>t.slice(e,r),Error,FunctionPrototypeCall:(t,e,...r)=>t.call(e,...r),FunctionPrototypeSymbolHasInstance:(t,e)=>Function.prototype[Symbol.hasInstance].call(t,e),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(t,e)=>Object.defineProperties(t,e),ObjectDefineProperty:(t,e,r)=>Object.defineProperty(t,e,r),ObjectGetOwnPropertyDescriptor:(t,e)=>Object.getOwnPropertyDescriptor(t,e),ObjectKeys:t=>Object.keys(t),ObjectSetPrototypeOf:(t,e)=>Object.setPrototypeOf(t,e),Promise,PromisePrototypeCatch:(t,e)=>t.catch(e),PromisePrototypeThen:(t,e,r)=>t.then(e,r),PromiseReject:t=>Promise.reject(t),PromiseResolve:t=>Promise.resolve(t),ReflectApply:Reflect.apply,RegExpPrototypeTest:(t,e)=>t.test(e),SafeSet:Set,String,StringPrototypeSlice:(t,e,r)=>t.slice(e,r),StringPrototypeToLowerCase:t=>t.toLowerCase(),StringPrototypeToUpperCase:t=>t.toUpperCase(),StringPrototypeTrim:t=>t.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(t,e,r)=>t.set(e,r),Boolean,Uint8Array}},7206(t,e,r){"use strict";const n=r(181),{format:i,inspect:s}=r(4917),{codes:{ERR_INVALID_ARG_TYPE:o}}=r(3845),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:u}=r(7744),h=globalThis.AbortSignal||r(6584).AbortSignal,c=globalThis.AbortController||r(6584).AbortController,d=Object.getPrototypeOf((async function(){})).constructor,f=globalThis.Blob||n.Blob,p=void 0!==f?function(t){return t instanceof f}:function(t){return!1},g=(t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new o(e,"AbortSignal",t)};t.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise(((r,n)=>{t=r,e=n})),resolve:t,reject:e}},promisify:t=>new Promise(((e,r)=>{t(((t,...n)=>t?r(t):e(...n)))})),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:t=>t instanceof d,isArrayBufferView:t=>ArrayBuffer.isView(t)},isBlob:p,deprecate:(t,e)=>t,addAbortListener:r(4434).addAbortListener||function(t,e){if(void 0===t)throw new o("signal","AbortSignal",t);let r;return g(t,"signal"),((t,e)=>{if("function"!=typeof t)throw new o(e,"Function",t)})(e,"listener"),t.aborted?queueMicrotask((()=>e())):(t.addEventListener("abort",e,{__proto__:null,once:!0,[a]:!0}),r=()=>{t.removeEventListener("abort",e)}),{__proto__:null,[u](){var t;null===(t=r)||void 0===t||t()}}},AbortSignalAny:h.any||function(t){if(1===t.length)return t[0];const e=new c,r=()=>e.abort();return t.forEach((t=>{g(t,"signals"),t.addEventListener("abort",r,{once:!0})})),e.signal.addEventListener("abort",(()=>{t.forEach((t=>t.removeEventListener("abort",r)))}),{once:!0}),e.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},4917(t){"use strict";t.exports={format:(t,...e)=>t.replace(/%([sdifj])/g,(function(...[t,r]){const n=e.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(t){switch(typeof t){case"string":if(t.includes("'")){if(!t.includes('"'))return`"${t}"`;if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}},4028(t,e,r){"use strict";const{Buffer:n}=r(181),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r(7744),{promisify:{custom:a}}=r(7206),{streamReturningOperators:l,promiseReturningOperators:u}=r(5533),{codes:{ERR_ILLEGAL_CONSTRUCTOR:h}}=r(3845),c=r(8504),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:f}=r(2073),{pipeline:p}=r(5232),{destroyer:g}=r(8118),b=r(9327),m=r(4593),y=r(2225),w=t.exports=r(6233).Stream;w.isDestroyed=y.isDestroyed,w.isDisturbed=y.isDisturbed,w.isErrored=y.isErrored,w.isReadable=y.isReadable,w.isWritable=y.isWritable,w.Readable=r(2382);for(const v of s(l)){const S=l[v];function E(...t){if(new.target)throw h();return w.Readable.from(o(S,this,t))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(w.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of s(u)){const A=u[x];function R(...t){if(new.target)throw h();return o(A,this,t)}i(R,"name",{__proto__:null,value:A.name}),i(R,"length",{__proto__:null,value:A.length}),i(w.Readable.prototype,x,{__proto__:null,value:R,enumerable:!1,configurable:!0,writable:!0})}w.Writable=r(9282),w.Duplex=r(7400),w.Transform=r(4552),w.PassThrough=r(6410),w.pipeline=p;const{addAbortSignal:_}=r(4769);w.addAbortSignal=_,w.finished=b,w.destroy=g,w.compose=c,w.setDefaultHighWaterMark=d,w.getDefaultHighWaterMark=f,i(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>m}),i(p,a,{__proto__:null,enumerable:!0,get:()=>m.pipeline}),i(b,a,{__proto__:null,enumerable:!0,get:()=>m.finished}),w.Stream=w,w._isUint8Array=function(t){return t instanceof Uint8Array},w._uint8ArrayToBuffer=function(t){return n.from(t.buffer,t.byteOffset,t.byteLength)}},4593(t,e,r){"use strict";const{ArrayPrototypePop:n,Promise:i}=r(7744),{isIterable:s,isNodeStream:o,isWebStream:a}=r(2225),{pipelineImpl:l}=r(5232),{finished:u}=r(9327);r(4028),t.exports={finished:u,pipeline:function(...t){return new i(((e,r)=>{let i,u;const h=t[t.length-1];if(h&&"object"==typeof h&&!o(h)&&!s(h)&&!a(h)){const e=n(t);i=e.signal,u=e.end}l(t,((t,n)=>{t?r(t):e(n)}),{signal:i,end:u})}))}}},7791(t){"use strict";t.exports=class{constructor({processMessage:t}){this.processMessage=t,this.buffer=[],this.enabled=!1,this.begin=this.begin.bind(this),this.commit=this.commit.bind(this),this.reject=this.reject.bind(this)}addMessage(t){this.buffer.push(t)}begin(){this.enabled=[]}commit(){this.enabled=!1,this.buffer.forEach((t=>this.processMessage(t))),this.buffer=[]}reject(){this.enabled=!1,this.buffer=[]}}},885(t,e,r){"use strict";const n=r(61),i=r(7791);class s{static instances={};dependencies={};errorHandler=null;eventLogger=null;functions={};hooks=[];isDev=!1;levels=null;logId=null;scope=null;transports={};variables={};constructor({allowUnknownLevel:t=!1,dependencies:e={},errorHandler:r,eventLogger:o,initializeFn:a,isDev:l=!1,levels:u=["error","warn","info","verbose","debug","silly"],logId:h,transportFactories:c={},variables:d}={}){this.addLevel=this.addLevel.bind(this),this.create=this.create.bind(this),this.initialize=this.initialize.bind(this),this.logData=this.logData.bind(this),this.processMessage=this.processMessage.bind(this),this.allowUnknownLevel=t,this.buffering=new i(this),this.dependencies=e,this.initializeFn=a,this.isDev=l,this.levels=u,this.logId=h,this.scope=n(this),this.transportFactories=c,this.variables=d||{};for(const t of this.levels)this.addLevel(t,!1);this.log=this.info,this.functions.log=this.log,this.errorHandler=r,r?.setOptions({...e,logFn:this.error}),this.eventLogger=o,o?.setOptions({...e,logger:this});for(const[t,r]of Object.entries(c))this.transports[t]=r(this,e);s.instances[h]=this}static getInstance({logId:t}){return this.instances[t]||this.instances.default}addLevel(t,e=this.levels.length){!1!==e&&this.levels.splice(e,0,t),this[t]=(...e)=>this.logData(e,{level:t}),this.functions[t]=this[t]}catchErrors(t){return this.processMessage({data:["log.catchErrors is deprecated. Use log.errorHandler instead"],level:"warn"},{transports:["console"]}),this.errorHandler.startCatching(t)}create(t){return"string"==typeof t&&(t={logId:t}),new s({dependencies:this.dependencies,errorHandler:this.errorHandler,initializeFn:this.initializeFn,isDev:this.isDev,transportFactories:this.transportFactories,variables:{...this.variables},...t})}compareLevels(t,e,r=this.levels){const n=r.indexOf(t),i=r.indexOf(e);return-1===i||-1===n||i<=n}initialize(t={}){this.initializeFn({logger:this,...this.dependencies,...t})}logData(t,e={}){this.buffering.enabled?this.buffering.addMessage({data:t,...e}):this.processMessage({data:t,...e})}processMessage(t,{transports:e=this.transports}={}){if("errorHandler"===t.cmd)return void this.errorHandler.handle(t.error,{errorName:t.errorName,processType:"renderer",showDialog:Boolean(t.showDialog)});let r=t.level;this.allowUnknownLevel||(r=this.levels.includes(t.level)?t.level:"info");const n={date:new Date,logId:this.logId,...t,level:r,variables:{...this.variables,...t.variables}};for(const[r,i]of this.transportEntries(e))if("function"==typeof i&&!1!==i.level&&this.compareLevels(i.level,t.level))try{const t=this.hooks.reduce(((t,e)=>t?e(t,i,r):t),n);t&&i({...t,data:[...t.data]})}catch(t){this.processInternalErrorFn(t)}}processInternalErrorFn(t){}transportEntries(t=this.transports){return(Array.isArray(t)?t:Object.entries(t)).map((t=>{switch(typeof t){case"string":return this.transports[t]?[t,this.transports[t]]:null;case"function":return[t.name,t];default:return Array.isArray(t)?t:null}})).filter(Boolean)}}t.exports=s},61(t){"use strict";t.exports=function(t){return Object.defineProperties(e,{defaultLabel:{value:"",writable:!0},labelPadding:{value:!0,writable:!0},maxLabelLength:{value:0,writable:!0},labelLength:{get(){switch(typeof e.labelPadding){case"boolean":return e.labelPadding?e.maxLabelLength:0;case"number":return e.labelPadding;default:return 0}}}});function e(r){e.maxLabelLength=Math.max(e.maxLabelLength,r.length);const n={};for(const e of t.levels)n[e]=(...n)=>t.logData(n,{level:e,scope:r});return n.log=n.info,n}}},329(t,e,r){"use strict";const n="undefined"==typeof process||"renderer"===process.type||"worker"===process.type,i="object"==typeof process&&"browser"===process.type;n?(r(8308),t.exports=r(6393)):t.exports=r(i?7295:4746)},2088(t,e,r){"use strict";const n=r(6928),i=r(407);t.exports=class extends i{electron=void 0;constructor({electron:t}={}){super(),this.electron=t}getAppName(){let t;try{t=this.appName||this.electron.app?.name||this.electron.app?.getName()}catch{}return t||super.getAppName()}getAppUserDataPath(t){return this.getPath("userData")||super.getAppUserDataPath(t)}getAppVersion(){let t;try{t=this.electron.app?.getVersion()}catch{}return t||super.getAppVersion()}getElectronLogPath(){return this.getPath("logs")||super.getElectronLogPath()}getPath(t){try{return this.electron.app?.getPath(t)}catch{return}}getVersions(){return{app:`${this.getAppName()} ${this.getAppVersion()}`,electron:`Electron ${process.versions.electron}`,os:this.getOsVersion()}}getSystemPathAppData(){return this.getPath("appData")||super.getSystemPathAppData()}isDev(){if(void 0!==this.electron.app?.isPackaged)return!this.electron.app.isPackaged;if("string"==typeof process.execPath){return n.basename(process.execPath).toLowerCase().startsWith("electron")}return super.isDev()}onAppEvent(t,e){return this.electron.app?.on(t,e),()=>{this.electron.app?.off(t,e)}}onAppReady(t){this.electron.app?.isReady()?t():this.electron.app?.once?this.electron.app?.once("ready",t):t()}onEveryWebContentsEvent(t,e){return this.electron.webContents?.getAllWebContents()?.forEach((r=>{r.on(t,e)})),this.electron.app?.on("web-contents-created",r),()=>{this.electron.webContents?.getAllWebContents().forEach((r=>{r.off(t,e)})),this.electron.app?.off("web-contents-created",r)};function r(r,n){n.on(t,e)}}onIpc(t,e){this.electron.ipcMain?.on(t,e)}onIpcInvoke(t,e){this.electron.ipcMain?.handle?.(t,e)}openUrl(t,e=console.error){this.electron.shell?.openExternal(t).catch(e)}setPreloadFileForSessions({filePath:t,includeFutureSession:e=!0,getSessions:r=()=>[this.electron.session?.defaultSession]}){for(const t of r().filter(Boolean))n(t);function n(e){e.setPreloads([...e.getPreloads(),t])}e&&this.onAppEvent("session-created",(t=>{n(t)}))}sendIpc(t,e){this.electron.BrowserWindow?.getAllWindows()?.forEach((r=>{!1===r.webContents?.isDestroyed()&&r.webContents.send(t,e)}))}showErrorBox(t,e){this.electron.dialog?.showErrorBox(t,e)}}},7295(t,e,r){"use strict";const n=r(1207),i=r(2088),{initialize:s}=r(6029),o=r(8559),a=new i({electron:n}),l=o({dependencies:{externalApi:a},initializeFn:s});function u(t){l.Logger.getInstance(t)?.processMessage(t)}t.exports=l,a.onIpc("__ELECTRON_LOG__",((t,e)=>{e.scope&&l.Logger.getInstance(e).scope(e.scope);const r=new Date(e.date);u({...e,date:r.getTime()?r:new Date})})),a.onIpcInvoke("__ELECTRON_LOG__",((t,{cmd:e="",logId:r})=>{if("getOptions"===e){return{levels:l.Logger.getInstance({logId:r}).levels,logId:r}}return u({data:[`Unknown cmd '${e}'`],level:"error"}),{}}))},6029(t,e,r){"use strict";const n=r(9896),i=r(857),s=r(6928),o=r(8308);t.exports={initialize({externalApi:t,getSessions:e,includeFutureSession:r,logger:a,preload:l=!0,spyRendererConsole:u=!1}){t.onAppReady((()=>{try{l&&function({externalApi:t,getSessions:e,includeFutureSession:r,preloadOption:a}){let l="string"==typeof a?a:void 0;try{l=s.resolve(__dirname,"../renderer/electron-log-preload.js")}catch{}if(!l||!n.existsSync(l)){l=s.join(t.getAppUserDataPath()||i.tmpdir(),"electron-log-preload.js");const e=`\n try {\n (${o.toString()})(require('electron'));\n } catch(e) {\n console.error(e);\n }\n `;n.writeFileSync(l,e,"utf8")}t.setPreloadFileForSessions({filePath:l,includeFutureSession:r,getSessions:e})}({externalApi:t,getSessions:e,includeFutureSession:r,preloadOption:l}),u&&function({externalApi:t,logger:e}){const r=["verbose","info","warning","error"];t.onEveryWebContentsEvent("console-message",((t,n,i)=>{e.processMessage({data:[i],level:r[n],variables:{processType:"renderer"}})}))}({externalApi:t,logger:a})}catch(t){a.warn(t)}}))}}},4454(t){"use strict";t.exports=class{externalApi=void 0;isActive=!1;logFn=void 0;onError=void 0;showDialog=!0;constructor({externalApi:t,logFn:e,onError:r,showDialog:n}={}){this.createIssue=this.createIssue.bind(this),this.handleError=this.handleError.bind(this),this.handleRejection=this.handleRejection.bind(this),this.setOptions({externalApi:t,logFn:e,onError:r,showDialog:n}),this.startCatching=this.startCatching.bind(this),this.stopCatching=this.stopCatching.bind(this)}handle(t,{logFn:e=this.logFn,onError:r=this.onError,processType:n="browser",showDialog:i=this.showDialog,errorName:s=""}={}){t=function(t){if(t instanceof Error)return t;if(t&&"object"==typeof t){if(t.message)return Object.assign(new Error(t.message),t);try{return new Error(JSON.stringify(t))}catch(e){return new Error(`Couldn't normalize error ${String(t)}: ${e}`)}}return new Error(`Can't normalize error ${String(t)}`)}(t);try{if("function"==typeof r){const e=this.externalApi?.getVersions()||{},i=this.createIssue;if(!1===r({createIssue:i,error:t,errorName:s,processType:n,versions:e}))return}s?e(s,t):e(t),i&&!s.includes("rejection")&&this.externalApi&&this.externalApi.showErrorBox(`A JavaScript error occurred in the ${n} process`,t.stack)}catch{console.error(t)}}setOptions({externalApi:t,logFn:e,onError:r,showDialog:n}){"object"==typeof t&&(this.externalApi=t),"function"==typeof e&&(this.logFn=e),"function"==typeof r&&(this.onError=r),"boolean"==typeof n&&(this.showDialog=n)}startCatching({onError:t,showDialog:e}={}){this.isActive||(this.isActive=!0,this.setOptions({onError:t,showDialog:e}),process.on("uncaughtException",this.handleError),process.on("unhandledRejection",this.handleRejection))}stopCatching(){this.isActive=!1,process.removeListener("uncaughtException",this.handleError),process.removeListener("unhandledRejection",this.handleRejection)}createIssue(t,e){this.externalApi?.openUrl(`${t}?${new URLSearchParams(e).toString()}`)}handleError(t){this.handle(t,{errorName:"Unhandled"})}handleRejection(t){const e=t instanceof Error?t:new Error(JSON.stringify(t));this.handle(e,{errorName:"Unhandled rejection"})}}},2050(t){"use strict";t.exports=class{disposers=[];format="{eventSource}#{eventName}:";formatters={app:{"certificate-error":({args:t})=>this.arrayToObject(t.slice(1,4),["url","error","certificate"]),"child-process-gone":({args:t})=>1===t.length?t[0]:t,"render-process-gone":({args:[t,e]})=>e&&"object"==typeof e?{...e,...this.getWebContentsDetails(t)}:[]},webContents:{"console-message":({args:[t,e,r,n]})=>{if(!(t<3))return{message:e,source:`${n}:${r}`}},"did-fail-load":({args:t})=>this.arrayToObject(t,["errorCode","errorDescription","validatedURL","isMainFrame","frameProcessId","frameRoutingId"]),"did-fail-provisional-load":({args:t})=>this.arrayToObject(t,["errorCode","errorDescription","validatedURL","isMainFrame","frameProcessId","frameRoutingId"]),"plugin-crashed":({args:t})=>this.arrayToObject(t,["name","version"]),"preload-error":({args:t})=>this.arrayToObject(t,["preloadPath","error"])}};events={app:{"certificate-error":!0,"child-process-gone":!0,"render-process-gone":!0},webContents:{"did-fail-load":!0,"did-fail-provisional-load":!0,"plugin-crashed":!0,"preload-error":!0,unresponsive:!0}};externalApi=void 0;level="error";scope="";constructor(t={}){this.setOptions(t)}setOptions({events:t,externalApi:e,level:r,logger:n,format:i,formatters:s,scope:o}){"object"==typeof t&&(this.events=t),"object"==typeof e&&(this.externalApi=e),"string"==typeof r&&(this.level=r),"object"==typeof n&&(this.logger=n),"string"!=typeof i&&"function"!=typeof i||(this.format=i),"object"==typeof s&&(this.formatters=s),"string"==typeof o&&(this.scope=o)}startLogging(t={}){this.setOptions(t),this.disposeListeners();for(const t of this.getEventNames(this.events.app))this.disposers.push(this.externalApi.onAppEvent(t,((...e)=>{this.handleEvent({eventSource:"app",eventName:t,handlerArgs:e})})));for(const t of this.getEventNames(this.events.webContents))this.disposers.push(this.externalApi.onEveryWebContentsEvent(t,((...e)=>{this.handleEvent({eventSource:"webContents",eventName:t,handlerArgs:e})})))}stopLogging(){this.disposeListeners()}arrayToObject(t,e){const r={};return e.forEach(((e,n)=>{r[e]=t[n]})),t.length>e.length&&(r.unknownArgs=t.slice(e.length)),r}disposeListeners(){this.disposers.forEach((t=>t())),this.disposers=[]}formatEventLog({eventName:t,eventSource:e,handlerArgs:r}){const[n,...i]=r;if("function"==typeof this.format)return this.format({args:i,event:n,eventName:t,eventSource:e});const s=this.formatters[e]?.[t];let o=i;if("function"==typeof s&&(o=s({args:i,event:n,eventName:t,eventSource:e})),!o)return;const a={};Array.isArray(o)?a.args=o:"object"==typeof o&&Object.assign(a,o),"webContents"===e&&Object.assign(a,this.getWebContentsDetails(n?.sender));return[this.format.replace("{eventSource}","app"===e?"App":"WebContents").replace("{eventName}",t),a]}getEventNames(t){return t&&"object"==typeof t?Object.entries(t).filter((([t,e])=>e)).map((([t])=>t)):[]}getWebContentsDetails(t){if(!t?.loadURL)return{};try{return{webContents:{id:t.id,url:t.getURL()}}}catch{return{}}}handleEvent({eventName:t,eventSource:e,handlerArgs:r}){const n=this.formatEventLog({eventName:t,eventSource:e,handlerArgs:r});if(n){const t=this.scope?this.logger.scope(this.scope):this.logger;t?.[this.level]?.(...n)}}}},407(t,e,r){"use strict";const n=r(5317),i=r(857),s=r(6928),o=r(9084);t.exports=class{appName=void 0;appPackageJson=void 0;platform=process.platform;getAppLogPath(t=this.getAppName()){return"darwin"===this.platform?s.join(this.getSystemPathHome(),"Library/Logs",t):s.join(this.getAppUserDataPath(t),"logs")}getAppName(){const t=this.appName||this.getAppPackageJson()?.name;if(!t)throw new Error("electron-log can't determine the app name. It tried these methods:\n1. Use `electron.app.name`\n2. Use productName or name from the nearest package.json`\nYou can also set it through log.transports.file.setAppName()");return t}getAppPackageJson(){return"object"!=typeof this.appPackageJson&&(this.appPackageJson=o.findAndReadPackageJson()),this.appPackageJson}getAppUserDataPath(t=this.getAppName()){return t?s.join(this.getSystemPathAppData(),t):void 0}getAppVersion(){return this.getAppPackageJson()?.version}getElectronLogPath(){return this.getAppLogPath()}getMacOsVersion(){const t=Number(i.release().split(".")[0]);return t<=19?"10."+(t-4):t-9}getOsVersion(){let t=i.type().replace("_"," "),e=i.release();return"Darwin"===t&&(t="macOS",e=this.getMacOsVersion()),`${t} ${e}`}getPathVariables(){const t=this.getAppName(),e=this.getAppVersion(),r=this;return{appData:this.getSystemPathAppData(),appName:t,appVersion:e,get electronDefaultDir(){return r.getElectronLogPath()},home:this.getSystemPathHome(),libraryDefaultDir:this.getAppLogPath(t),libraryTemplate:this.getAppLogPath("{appName}"),temp:this.getSystemPathTemp(),userData:this.getAppUserDataPath(t)}}getSystemPathAppData(){const t=this.getSystemPathHome();switch(this.platform){case"darwin":return s.join(t,"Library/Application Support");case"win32":return process.env.APPDATA||s.join(t,"AppData/Roaming");default:return process.env.XDG_CONFIG_HOME||s.join(t,".config")}}getSystemPathHome(){return i.homedir?.()||process.env.HOME}getSystemPathTemp(){return i.tmpdir()}getVersions(){return{app:`${this.getAppName()} ${this.getAppVersion()}`,electron:void 0,os:this.getOsVersion()}}isDev(){return"1"===process.env.ELECTRON_IS_DEV}isElectron(){return Boolean(process.versions.electron)}onAppEvent(t,e){}onAppReady(t){t()}onEveryWebContentsEvent(t,e){}onIpc(t,e){}onIpcInvoke(t,e){}openUrl(t,e=console.error){const r={darwin:"open",win32:"start",linux:"xdg-open"}[process.platform]||"xdg-open";n.exec(`${r} ${t}`,{},(t=>{t&&e(t)}))}setAppName(t){this.appName=t}setPlatform(t){this.platform=t}setPreloadFileForSessions({filePath:t,includeFutureSession:e=!0,getSessions:r=()=>[]}){}sendIpc(t,e){}showErrorBox(t,e){}}},8559(t,e,r){"use strict";const n=r(885),i=r(4454),s=r(2050),o=r(9456),a=r(1548),l=r(4631),u=r(9359);t.exports=function({dependencies:t,initializeFn:e}){const r=new n({dependencies:t,errorHandler:new i,eventLogger:new s,initializeFn:e,isDev:t.externalApi?.isDev(),logId:"default",transportFactories:{console:o,file:a,ipc:l,remote:u},variables:{processType:"main"}});return r.default=r,r.Logger=n,r.processInternalErrorFn=t=>{r.transports.console.writeFn({message:{data:["Unhandled electron-log error",t],level:"error"}})},r}},4746(t,e,r){"use strict";const n=r(407),i=r(8559)({dependencies:{externalApi:new n}});t.exports=i},9084(t,e,r){"use strict";const n=r(9896),i=r(6928);function s(...t){if(t[0])try{const e=function(t,e){let r=e;for(;;){const e=i.parse(r),s=e.root,o=e.dir;if(n.existsSync(i.join(r,t)))return i.resolve(i.join(r,t));if(r===s)return null;r=o}}("package.json",i.join(...t));if(!e)return;const r=JSON.parse(n.readFileSync(e,"utf8")),s=r?.productName||r?.name;if(!s||"electron"===s.toLowerCase())return;return s?{name:s,version:r?.version}:void 0}catch(t){return}}t.exports={findAndReadPackageJson:function(){return s(function(){try{return r.c[r.s]?.filename}catch{return}}())||s(function(){const t=process.argv.filter((t=>0===t.indexOf("--user-data-dir=")));if(0===t.length||"string"!=typeof t[0])return null;return t[0].replace("--user-data-dir=","")}())||s(process.resourcesPath,"app.asar")||s(process.resourcesPath,"app")||s(process.cwd())||{name:void 0,version:void 0}},tryReadJsonAt:s}},1935(t,e,r){"use strict";const{transform:n}=r(8018);function i(t){const e=Math.abs(t);return`${t>0?"-":"+"}${Math.floor(e/60).toString().padStart(2,"0")}:${(e%60).toString().padStart(2,"0")}`}function s({data:t,logger:e,message:r}){const{defaultLabel:n,labelLength:i}=e?.scope||{},s=t[0];let o,a=r.scope;return a||(a=n),o=""===a?i>0?"".padEnd(i+3):"":"string"==typeof a?` (${a})`.padEnd(i+3):"",t[0]=s.replace("{scope}",o),t}function o({data:t,message:e}){let r=t[0];if("string"!=typeof r)return t;r=r.replace("{level}]",`${e.level}]`.padEnd(6," "));const n=e.date||new Date;return t[0]=r.replace(/\{(\w+)}/g,((t,r)=>{switch(r){case"level":return e.level||"info";case"logId":return e.logId;case"y":return n.getFullYear().toString(10);case"m":return(n.getMonth()+1).toString(10).padStart(2,"0");case"d":return n.getDate().toString(10).padStart(2,"0");case"h":return n.getHours().toString(10).padStart(2,"0");case"i":return n.getMinutes().toString(10).padStart(2,"0");case"s":return n.getSeconds().toString(10).padStart(2,"0");case"ms":return n.getMilliseconds().toString(10).padStart(3,"0");case"z":return i(n.getTimezoneOffset());case"iso":return n.toISOString();default:return e.variables?.[r]||t}})).trim(),t}function a({data:t}){const e=t[0];if("string"!=typeof e)return t;if(e.lastIndexOf("{text}")===e.length-6)return t[0]=e.replace(/\s?{text}/,""),""===t[0]&&t.shift(),t;const r=e.split("{text}");let n=[];return""!==r[0]&&n.push(r[0]),n=n.concat(t.slice(1)),""!==r[1]&&n.push(r[1]),n}t.exports={concatFirstStringElements:function({data:t}){if("string"!=typeof t[0]||"string"!=typeof t[1])return t;if(t[0].match(/%[1cdfiOos]/))return t;return[`${t[0]} ${t[1]}`,...t.slice(2)]},formatScope:s,formatText:a,formatVariables:o,timeZoneFromOffset:i,format({message:t,logger:e,transport:r,data:i=t?.data}){switch(typeof r.format){case"string":return n({message:t,logger:e,transforms:[o,s,a],transport:r,initialData:[r.format,...i]});case"function":return r.format({data:i,level:t?.level||"info",logger:e,message:t,transport:r});default:return i}}}},8915(t,e,r){"use strict";const n=r(9023);function i(t={}){const e=new WeakSet;return function(r,n){if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return s(r,n,t)}}function s(t,e,r={}){const n=!1!==r?.serializeMapAndSet;return e instanceof Error?e.stack:e?"function"==typeof e?`[function] ${e.toString()}`:e instanceof Date?e.toISOString():n&&e instanceof Map&&Object.fromEntries?Object.fromEntries(e):n&&e instanceof Set&&Array.from?Array.from(e):e:e}t.exports={serialize:s,maxDepth({data:e,transport:r,depth:n=r?.depth??6}){if(!e)return e;if(n<1)return Array.isArray(e)?"[array]":"object"==typeof e&&e?"[object]":e;if(Array.isArray(e))return e.map((e=>t.exports.maxDepth({data:e,depth:n-1})));if("object"!=typeof e)return e;if(e&&"function"==typeof e.toISOString)return e;if(null===e)return null;if(e instanceof Error)return e;const i={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=t.exports.maxDepth({data:e[r],depth:n-1}));return i},toJSON:({data:t})=>JSON.parse(JSON.stringify(t,i())),toString({data:t,transport:e}){const r=e?.inspectOptions||{},s=t.map((t=>{if(void 0!==t)try{const e=JSON.stringify(t,i()," ");return void 0===e?void 0:JSON.parse(e)}catch(e){return t}}));return n.formatWithOptions(r,...s)}}},8503(t){"use strict";t.exports={transformStyles:i,applyAnsiStyles:({data:t})=>i(t,r,n),removeStyles:({data:t})=>i(t,(()=>""))};const e={unset:"[0m",black:"[30m",red:"[31m",green:"[32m",yellow:"[33m",blue:"[34m",magenta:"[35m",cyan:"[36m",white:"[37m"};function r(t){const r=t.replace(/color:\s*(\w+).*/,"$1").toLowerCase();return e[r]||""}function n(t){return t+e.unset}function i(t,e,r){const n={};return t.reduce(((t,i,s,o)=>{if(n[s])return t;if("string"==typeof i){let t=s,a=!1;i=i.replace(/%[1cdfiOos]/g,(r=>{if(t+=1,"%c"!==r)return r;const s=o[t];return"string"==typeof s?(n[t]=!0,a=!0,e(s,i)):r})),a&&r&&(i=r(i))}return t.push(i),t}),[])}},8018(t){"use strict";t.exports={transform:function({logger:t,message:e,transport:r,initialData:n=e?.data||[],transforms:i=r?.transforms}){return i.reduce(((n,i)=>"function"==typeof i?i({data:n,logger:t,message:e,transport:r}):n),n)}}},9456(t,e,r){"use strict";const{concatFirstStringElements:n,format:i}=r(1935),{maxDepth:s,toJSON:o}=r(8915),{applyAnsiStyles:a,removeStyles:l}=r(8503),{transform:u}=r(8018),h={error:console.error,warn:console.warn,info:console.info,verbose:console.info,debug:console.debug,silly:console.debug,log:console.log};t.exports=d;const c=`%c{h}:{i}:{s}.{ms}{scope}%c ${"win32"===process.platform?">":"›"} {text}`;function d(t){return Object.assign((function e(r){const n=u({logger:t,message:r,transport:e});e.writeFn({message:{...r,data:n}})}),{format:c,level:"silly",transforms:[f,i,p,n,s,o],useStyles:process.env.FORCE_STYLES,writeFn({message:t}){(h[t.level]||h.info)(...t.data)}})}function f({data:t,message:e,transport:r}){return r.format!==c?t:[`color:${g(e.level)}`,"color:unset",...t]}function p(t){const{message:e,transport:r}=t;return(function(t,e){if("boolean"==typeof t)return t;const r="error"===e||"warn"===e?process.stderr:process.stdout;return r&&r.isTTY}(r.useStyles,e.level)?a:l)(t)}function g(t){const e={error:"red",warn:"yellow",info:"cyan",default:"unset"};return e[t]||e.default}Object.assign(d,{DEFAULT_FORMAT:c})},7364(t,e,r){"use strict";const n=r(4434),i=r(9896),s=r(857);t.exports=class extends n{asyncWriteQueue=[];bytesWritten=0;hasActiveAsyncWriting=!1;path=null;initialSize=void 0;writeOptions=null;writeAsync=!1;constructor({path:t,writeOptions:e={encoding:"utf8",flag:"a",mode:438},writeAsync:r=!1}){super(),this.path=t,this.writeOptions=e,this.writeAsync=r}get size(){return this.getSize()}clear(){try{return i.writeFileSync(this.path,"",{mode:this.writeOptions.mode,flag:"w"}),this.reset(),!0}catch(t){return"ENOENT"===t.code||(this.emit("error",t,this),!1)}}crop(t){try{const e=function(t,e){const r=Buffer.alloc(e),n=i.statSync(t),s=Math.min(n.size,e),o=Math.max(0,n.size-e),a=i.openSync(t,"r"),l=i.readSync(a,r,0,s,o);return i.closeSync(a),r.toString("utf8",0,l)}(this.path,t||4096);this.clear(),this.writeLine(`[log cropped]${s.EOL}${e}`)}catch(t){this.emit("error",new Error(`Couldn't crop file ${this.path}. ${t.message}`),this)}}getSize(){if(void 0===this.initialSize)try{const t=i.statSync(this.path);this.initialSize=t.size}catch(t){this.initialSize=0}return this.initialSize+this.bytesWritten}increaseBytesWrittenCounter(t){this.bytesWritten+=Buffer.byteLength(t,this.writeOptions.encoding)}isNull(){return!1}nextAsyncWrite(){const t=this;if(this.hasActiveAsyncWriting||0===this.asyncWriteQueue.length)return;const e=this.asyncWriteQueue.join("");this.asyncWriteQueue=[],this.hasActiveAsyncWriting=!0,i.writeFile(this.path,e,this.writeOptions,(r=>{t.hasActiveAsyncWriting=!1,r?t.emit("error",new Error(`Couldn't write to ${t.path}. ${r.message}`),this):t.increaseBytesWrittenCounter(e),t.nextAsyncWrite()}))}reset(){this.initialSize=void 0,this.bytesWritten=0}toString(){return this.path}writeLine(t){if(t+=s.EOL,this.writeAsync)return this.asyncWriteQueue.push(t),void this.nextAsyncWrite();try{i.writeFileSync(this.path,t,this.writeOptions),this.increaseBytesWrittenCounter(t)}catch(t){this.emit("error",new Error(`Couldn't write to ${this.path}. ${t.message}`),this)}}}},5255(t,e,r){"use strict";const n=r(4434),i=r(9896),s=r(6928),o=r(7364),a=r(8369);t.exports=class extends n{store={};constructor(){super(),this.emitError=this.emitError.bind(this)}provide({filePath:t,writeOptions:e={},writeAsync:r=!1}){let n;try{if(t=s.resolve(t),this.store[t])return this.store[t];n=this.createFile({filePath:t,writeOptions:e,writeAsync:r})}catch(e){n=new a({path:t}),this.emitError(e,n)}return n.on("error",this.emitError),this.store[t]=n,n}createFile({filePath:t,writeOptions:e,writeAsync:r}){return this.testFileWriting({filePath:t,writeOptions:e}),new o({path:t,writeOptions:e,writeAsync:r})}emitError(t,e){this.emit("error",t,e)}testFileWriting({filePath:t,writeOptions:e}){i.mkdirSync(s.dirname(t),{recursive:!0}),i.writeFileSync(t,"",{flag:"a",mode:e.mode})}}},8369(t,e,r){"use strict";const n=r(7364);t.exports=class extends n{clear(){}crop(){}getSize(){return 0}isNull(){return!0}writeLine(){}}},1548(t,e,r){"use strict";const n=r(9896),i=r(857),s=r(6928),o=r(5255),{transform:a}=r(8018),{removeStyles:l}=r(8503),{format:u,concatFirstStringElements:h}=r(1935),{toString:c}=r(8915);t.exports=function(t,{registry:e=d,externalApi:r}={}){let o;e.listenerCount("error")<1&&e.on("error",((t,e)=>{b(`Can't write to ${e}`,t)}));return Object.assign(p,{fileName:f(t.variables.processType),format:"[{y}-{m}-{d} {h}:{i}:{s}.{ms}] [{level}]{scope} {text}",getFile:m,inspectOptions:{depth:5},level:"silly",maxSize:1048576,readAllLogs:function({fileFilter:t=t=>t.endsWith(".log")}={}){g();const e=s.dirname(p.resolvePathFn(o));if(!n.existsSync(e))return[];return n.readdirSync(e).map((t=>s.join(e,t))).filter(t).map((t=>{try{return{path:t,lines:n.readFileSync(t,"utf8").split(i.EOL)}}catch{return null}})).filter(Boolean)},sync:!0,transforms:[l,u,h,c],writeOptions:{flag:"a",mode:438,encoding:"utf8"},archiveLogFn(t){const e=t.toString(),r=s.parse(e);try{n.renameSync(e,s.join(r.dir,`${r.name}.old${r.ext}`))}catch(e){b("Could not rotate log",e);const r=Math.round(p.maxSize/4);t.crop(Math.min(r,262144))}},resolvePathFn:t=>s.join(t.libraryDefaultDir,t.fileName),setAppName(e){t.dependencies.externalApi.setAppName(e)}});function p(e){const r=m(e);p.maxSize>0&&r.size>p.maxSize&&(p.archiveLogFn(r),r.reset());const n=a({logger:t,message:e,transport:p});r.writeLine(n)}function g(){o||(o=Object.create(Object.prototype,{...Object.getOwnPropertyDescriptors(r.getPathVariables()),fileName:{get:()=>p.fileName,enumerable:!0}}),"function"==typeof p.archiveLog&&(p.archiveLogFn=p.archiveLog,b("archiveLog is deprecated. Use archiveLogFn instead")),"function"==typeof p.resolvePath&&(p.resolvePathFn=p.resolvePath,b("resolvePath is deprecated. Use resolvePathFn instead")))}function b(e,r=null,n="error"){const i=[`electron-log.transports.file: ${e}`];r&&i.push(r),t.transports.console({data:i,date:new Date,level:n})}function m(t){g();const r=p.resolvePathFn(o,t);return e.provide({filePath:r,writeAsync:!p.sync,writeOptions:p.writeOptions})}};const d=new o;function f(t=process.type){switch(t){case"renderer":return"renderer.log";case"worker":return"worker.log";default:return"main.log"}}},4631(t,e,r){"use strict";const{maxDepth:n,toJSON:i}=r(8915),{transform:s}=r(8018);t.exports=function(t,{externalApi:e}){return Object.assign(r,{depth:3,eventId:"__ELECTRON_LOG_IPC__",level:!!t.isDev&&"silly",transforms:[i,n]}),e?.isElectron()?r:void 0;function r(n){"renderer"!==n?.variables?.processType&&e?.sendIpc(r.eventId,{...n,data:s({logger:t,message:n,transport:r})})}}},9359(t,e,r){"use strict";const n=r(8611),i=r(5692),{transform:s}=r(8018),{removeStyles:o}=r(8503),{toJSON:a,maxDepth:l}=r(8915);t.exports=function(t){return Object.assign(e,{client:{name:"electron-application"},depth:6,level:!1,requestOptions:{},transforms:[o,a,l],makeBodyFn:({message:t})=>JSON.stringify({client:e.client,data:t.data,date:t.date.getTime(),level:t.level,scope:t.scope,variables:t.variables}),processErrorFn({error:r}){t.processMessage({data:[`electron-log: can't POST ${e.url}`,r],level:"warn"},{transports:["console","file"]})},sendRequestFn({serverUrl:t,requestOptions:e,body:r}){const s=(t.startsWith("https:")?i:n).request(t,{method:"POST",...e,headers:{"Content-Type":"application/json","Content-Length":r.length,...e.headers}});return s.write(r),s.end(),s}});function e(r){if(!e.url)return;const n=e.makeBodyFn({logger:t,message:{...r,data:s({logger:t,message:r,transport:e})},transport:e}),i=e.sendRequestFn({serverUrl:e.url,requestOptions:e.requestOptions,body:Buffer.from(n,"utf8")});i.on("error",(n=>e.processErrorFn({error:n,logger:t,message:r,request:i,transport:e})))}}},8308(t,e,r){"use strict";let n={};try{n=r(1207)}catch(t){}function i({contextBridge:t,ipcRenderer:e}){if(!e)return;e.on("__ELECTRON_LOG_IPC__",((t,e)=>{window.postMessage({cmd:"message",...e})})),e.invoke("__ELECTRON_LOG__",{cmd:"getOptions"}).catch((t=>console.error(new Error(`electron-log isn't initialized in the main process. Please call log.initialize() before. ${t.message}`))));const r={sendToMain(t){try{e.send("__ELECTRON_LOG__",t)}catch(r){console.error("electronLog.sendToMain ",r,"data:",t),e.send("__ELECTRON_LOG__",{cmd:"errorHandler",error:{message:r?.message,stack:r?.stack},errorName:"sendToMain"})}},log(...t){r.sendToMain({data:t,level:"info"})}};for(const t of["error","warn","info","verbose","debug","silly"])r[t]=(...e)=>r.sendToMain({data:e,level:t});if(t&&process.contextIsolated)try{t.exposeInMainWorld("__electronLog",r)}catch{}"object"==typeof window?window.__electronLog=r:__electronLog=r}n.ipcRenderer&&i(n),t.exports=i},6393(t,e,r){"use strict";const n=r(885),i=r(3616),s=r(4857),o=r(6954);t.exports=function(){const t=new n({allowUnknownLevel:!0,errorHandler:new i,initializeFn:()=>{},logId:"default",transportFactories:{console:s,ipc:o},variables:{processType:"renderer"}});t.errorHandler.setOptions({logFn({error:e,errorName:r,showDialog:n}){t.transports.console({data:[r,e].filter(Boolean),level:"error"}),t.transports.ipc({cmd:"errorHandler",error:{cause:e?.cause,code:e?.code,name:e?.name,message:e?.message,stack:e?.stack},errorName:r,logId:t.logId,showDialog:n})}}),"object"==typeof window&&window.addEventListener("message",(t=>{const{cmd:e,logId:r,...i}=t.data||{},s=n.getInstance({logId:r});"message"===e&&s.processMessage(i,{transports:["console"]})}));return new Proxy(t,{get:(e,r)=>void 0!==e[r]?e[r]:(...e)=>t.logData(e,{level:r})})}(),t.exports.Logger=n,t.exports.default=t.exports},3616(t){"use strict";const e=console.error;t.exports=class{logFn=null;onError=null;showDialog=!1;preventDefault=!0;constructor({logFn:t=null}={}){this.handleError=this.handleError.bind(this),this.handleRejection=this.handleRejection.bind(this),this.startCatching=this.startCatching.bind(this),this.logFn=t}handle(t,{logFn:r=this.logFn,errorName:n="",onError:i=this.onError,showDialog:s=this.showDialog}={}){try{!1!==i?.({error:t,errorName:n,processType:"renderer"})&&r({error:t,errorName:n,showDialog:s})}catch{e(t)}}setOptions({logFn:t,onError:e,preventDefault:r,showDialog:n}){"function"==typeof t&&(this.logFn=t),"function"==typeof e&&(this.onError=e),"boolean"==typeof r&&(this.preventDefault=r),"boolean"==typeof n&&(this.showDialog=n)}startCatching({onError:t,showDialog:e}={}){this.isActive||(this.isActive=!0,this.setOptions({onError:t,showDialog:e}),window.addEventListener("error",(t=>{this.preventDefault&&t.preventDefault?.(),this.handleError(t.error||t)})),window.addEventListener("unhandledrejection",(t=>{this.preventDefault&&t.preventDefault?.(),this.handleRejection(t.reason||t)})))}handleError(t){this.handle(t,{errorName:"Unhandled"})}handleRejection(t){const e=t instanceof Error?t:new Error(JSON.stringify(t));this.handle(e,{errorName:"Unhandled rejection"})}}},4857(t){"use strict";t.exports=function(t){return Object.assign(r,{format:"{h}:{i}:{s}.{ms}{scope} › {text}",formatDataFn:({data:e=[],date:n=new Date,format:i=r.format,logId:s=t.logId,scope:o=t.scopeName,...a})=>"function"==typeof i?i({...a,data:e,date:n,logId:s,scope:o}):("string"!=typeof i||(e.unshift(i),"string"==typeof e[1]&&e[1].match(/%[1cdfiOos]/)&&(e=[`${e[0]} ${e[1]}`,...e.slice(2)]),e[0]=e[0].replace(/\{(\w+)}/g,((t,e)=>{switch(e){case"level":return a.level;case"logId":return s;case"scope":return o?` (${o})`:"";case"text":return"";case"y":return n.getFullYear().toString(10);case"m":return(n.getMonth()+1).toString(10).padStart(2,"0");case"d":return n.getDate().toString(10).padStart(2,"0");case"h":return n.getHours().toString(10).padStart(2,"0");case"i":return n.getMinutes().toString(10).padStart(2,"0");case"s":return n.getSeconds().toString(10).padStart(2,"0");case"ms":return n.getMilliseconds().toString(10).padStart(3,"0");case"iso":return n.toISOString();default:return a.variables?.[e]||t}})).trim()),e),writeFn({message:{level:t,data:r}}){const n=e[t]||e.info;setTimeout((()=>n(...r)))}});function r(t){r.writeFn({message:{...t,data:r.formatDataFn(t)}})}};const e={error:console.error,warn:console.warn,info:console.info,verbose:console.info,debug:console.debug,silly:console.debug,log:console.log}},6954(t){"use strict";t.exports=function(t){return Object.assign(n,{depth:5,serializeFn:(t,{depth:i=5,seen:s=new WeakSet}={})=>s.has(t)?"[Circular]":i<1?r(t)?t:Array.isArray(t)?"[Array]":`[${typeof t}]`:["function","symbol"].includes(typeof t)?t.toString():r(t)?t:e.has(t.constructor)?`[${t.constructor.name}]`:Array.isArray(t)?t.map((t=>n.serializeFn(t,{depth:i-1,seen:s}))):t instanceof Date?t.toISOString():t instanceof Error?t.stack:t instanceof Map?new Map(Array.from(t).map((([t,e])=>[n.serializeFn(t,{depth:i-1,seen:s}),n.serializeFn(e,{depth:i-1,seen:s})]))):t instanceof Set?new Set(Array.from(t).map((t=>n.serializeFn(t,{depth:i-1,seen:s})))):(s.add(t),Object.fromEntries(Object.entries(t).map((([t,e])=>[t,n.serializeFn(e,{depth:i-1,seen:s})]))))});function n(e){if(window.__electronLog)try{__electronLog.sendToMain(n.serializeFn(e,{depth:n.depth}))}catch(r){t.transports.console({data:["electronLog.transports.ipc",r,"data:",e.data],level:"error"})}else t.processMessage({data:["electron-log: logger isn't initialized in the main process"],level:"error"},{transports:["console"]})}};const e=new Set([Promise,WeakMap,WeakSet]);function r(t){return Object(t)!==t}},1207(t,e,r){const n=r(9896),i=r(6928),s=i.join(__dirname,"path.txt");t.exports=function(){let t;if(n.existsSync(s)&&(t=n.readFileSync(s,"utf-8")),process.env.ELECTRON_OVERRIDE_DIST_PATH)return i.join(process.env.ELECTRON_OVERRIDE_DIST_PATH,t||"electron");if(t)return i.join(__dirname,"dist",t);throw new Error("Electron failed to install correctly, please delete node_modules/electron and try installing again")}()},4988(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=new WeakMap,n=new WeakMap;function i(t){const e=r.get(t);return console.assert(null!=e,"'this' is expected an Event object, but got",t),e}function s(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function o(t,e){r.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=Object.keys(e);for(let t=0;t<n.length;++t){const e=n[t];e in this||Object.defineProperty(this,e,a(e))}}function a(t){return{get(){return i(this).event[t]},set(e){i(this).event[t]=e},configurable:!0,enumerable:!0}}function l(t){return{value(){const e=i(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function u(t){if(null==t||t===Object.prototype)return o;let e=n.get(t);return null==e&&(e=function(t,e){const r=Object.keys(e);if(0===r.length)return t;function n(e,r){t.call(this,e,r)}n.prototype=Object.create(t.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let i=0;i<r.length;++i){const s=r[i];if(!(s in t.prototype)){const t="function"==typeof Object.getOwnPropertyDescriptor(e,s).value;Object.defineProperty(n.prototype,s,t?l(s):a(s))}}return n}(u(Object.getPrototypeOf(t)),t),n.set(t,e)),e}function h(t){return i(t).immediateStopped}function c(t,e){i(t).passiveListener=e}o.prototype={get type(){return i(this).event.type},get target(){return i(this).eventTarget},get currentTarget(){return i(this).currentTarget},composedPath(){const t=i(this).currentTarget;return null==t?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return i(this).eventPhase},stopPropagation(){const t=i(this);t.stopped=!0,"function"==typeof t.event.stopPropagation&&t.event.stopPropagation()},stopImmediatePropagation(){const t=i(this);t.stopped=!0,t.immediateStopped=!0,"function"==typeof t.event.stopImmediatePropagation&&t.event.stopImmediatePropagation()},get bubbles(){return Boolean(i(this).event.bubbles)},get cancelable(){return Boolean(i(this).event.cancelable)},preventDefault(){s(i(this))},get defaultPrevented(){return i(this).canceled},get composed(){return Boolean(i(this).event.composed)},get timeStamp(){return i(this).timeStamp},get srcElement(){return i(this).eventTarget},get cancelBubble(){return i(this).stopped},set cancelBubble(t){if(!t)return;const e=i(this);e.stopped=!0,"boolean"==typeof e.event.cancelBubble&&(e.event.cancelBubble=!0)},get returnValue(){return!i(this).canceled},set returnValue(t){t||s(i(this))},initEvent(){}},Object.defineProperty(o.prototype,"constructor",{value:o,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(o.prototype,window.Event.prototype),n.set(window.Event.prototype,o));const d=new WeakMap;function f(t){return null!==t&&"object"==typeof t}function p(t){const e=d.get(t);if(null==e)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function g(t,e){Object.defineProperty(t,`on${e}`,function(t){return{get(){let e=p(this).get(t);for(;null!=e;){if(3===e.listenerType)return e.listener;e=e.next}return null},set(e){"function"==typeof e||f(e)||(e=null);const r=p(this);let n=null,i=r.get(t);for(;null!=i;)3===i.listenerType?null!==n?n.next=i.next:null!==i.next?r.set(t,i.next):r.delete(t):n=i,i=i.next;if(null!==e){const i={listener:e,listenerType:3,passive:!1,once:!1,next:null};null===n?r.set(t,i):n.next=i}},configurable:!0,enumerable:!0}}(e))}function b(t){function e(){m.call(this)}e.prototype=Object.create(m.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)g(e.prototype,t[r]);return e}function m(){if(!(this instanceof m)){if(1===arguments.length&&Array.isArray(arguments[0]))return b(arguments[0]);if(arguments.length>0){const t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return b(t)}throw new TypeError("Cannot call a class as a function")}d.set(this,new Map)}m.prototype={addEventListener(t,e,r){if(null==e)return;if("function"!=typeof e&&!f(e))throw new TypeError("'listener' should be a function or an object.");const n=p(this),i=f(r),s=(i?Boolean(r.capture):Boolean(r))?1:2,o={listener:e,listenerType:s,passive:i&&Boolean(r.passive),once:i&&Boolean(r.once),next:null};let a=n.get(t);if(void 0===a)return void n.set(t,o);let l=null;for(;null!=a;){if(a.listener===e&&a.listenerType===s)return;l=a,a=a.next}l.next=o},removeEventListener(t,e,r){if(null==e)return;const n=p(this),i=(f(r)?Boolean(r.capture):Boolean(r))?1:2;let s=null,o=n.get(t);for(;null!=o;){if(o.listener===e&&o.listenerType===i)return void(null!==s?s.next=o.next:null!==o.next?n.set(t,o.next):n.delete(t));s=o,o=o.next}},dispatchEvent(t){if(null==t||"string"!=typeof t.type)throw new TypeError('"event.type" should be a string.');const e=p(this),r=t.type;let n=e.get(r);if(null==n)return!0;const s=function(t,e){return new(u(Object.getPrototypeOf(e)))(t,e)}(this,t);let o=null;for(;null!=n;){if(n.once?null!==o?o.next=n.next:null!==n.next?e.set(r,n.next):e.delete(r):o=n,c(s,n.passive?n.listener:null),"function"==typeof n.listener)try{n.listener.call(this,s)}catch(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t)}else 3!==n.listenerType&&"function"==typeof n.listener.handleEvent&&n.listener.handleEvent(s);if(h(s))break;n=n.next}return c(s,null),function(t,e){i(t).eventPhase=e}(s,0),function(t,e){i(t).currentTarget=e}(s,null),!s.defaultPrevented}},Object.defineProperty(m.prototype,"constructor",{value:m,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(m.prototype,window.EventTarget.prototype),e.defineEventAttribute=g,e.EventTarget=m,e.default=m,t.exports=m,t.exports.EventTarget=t.exports.default=m,t.exports.defineEventAttribute=g},8190(t){t.exports=class{constructor(t){if(!(t>0)||t-1&t)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(t),this.mask=t-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(t){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=t,this.top=this.top+1&this.mask,!0)}shift(){const t=this.buffer[this.btm];if(void 0!==t)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,t}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},6080(t,e,r){const n=r(8190);t.exports=class{constructor(t){this.hwm=t||16,this.head=new n(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(t){if(this.length++,!this.head.push(t)){const e=this.head;this.head=e.next=new n(2*this.head.buffer.length),this.head.push(t)}}shift(){0!==this.length&&this.length--;const t=this.tail.shift();if(void 0===t&&this.tail.next){const t=this.tail.next;return this.tail.next=null,this.tail=t,this.tail.shift()}return t}peek(){const t=this.tail.peek();return void 0===t&&this.tail.next?this.tail.next.peek():t}isEmpty(){return 0===this.length}}},1283(t){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var r={__proto__:e(t)};else r=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))})),r};var e=Object.getPrototypeOf||function(t){return t.__proto__}},3735(t,e,r){var n,i,s=r(9896),o=r(9106),a=r(1995),l=r(1283),u=r(9023);function h(t,e){Object.defineProperty(t,n,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var c,d=function(){};if(u.debuglog?d=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var t=u.format.apply(u,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),!s[n]){var f=global[n]||[];h(s,f),s.close=function(t){function e(e,r){return t.call(s,e,(function(t){t||b(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(e,i,{value:t}),e}(s.close),s.closeSync=function(t){function e(e){t.apply(s,arguments),b()}return Object.defineProperty(e,i,{value:t}),e}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(s[n]),r(2613).equal(s[n].length,0)}))}function p(t){o(t),t.gracefulify=p,t.createReadStream=function(e,r){return new t.ReadStream(e,r)},t.createWriteStream=function(e,r){return new t.WriteStream(e,r)};var e=t.readFile;t.readFile=function(t,r,n){"function"==typeof r&&(n=r,r=null);return function t(r,n,i,s){return e(r,n,(function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?"function"==typeof i&&i.apply(this,arguments):g([t,[r,n,i],e,s||Date.now(),Date.now()])}))}(t,r,n)};var r=t.writeFile;t.writeFile=function(t,e,n,i){"function"==typeof n&&(i=n,n=null);return function t(e,n,i,s,o){return r(e,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):g([t,[e,n,i,s],r,o||Date.now(),Date.now()])}))}(t,e,n,i)};var n=t.appendFile;n&&(t.appendFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=null);return function t(e,r,i,s,o){return n(e,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):g([t,[e,r,i,s],n,o||Date.now(),Date.now()])}))}(t,e,r,i)});var i=t.copyFile;i&&(t.copyFile=function(t,e,r,n){"function"==typeof r&&(n=r,r=0);return function t(e,r,n,s,o){return i(e,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof s&&s.apply(this,arguments):g([t,[e,r,n,s],i,o||Date.now(),Date.now()])}))}(t,e,r,n)});var s=t.readdir;t.readdir=function(t,e,r){"function"==typeof e&&(r=e,e=null);var n=l.test(process.version)?function(t,e,r,n){return s(t,i(t,e,r,n))}:function(t,e,r,n){return s(t,e,i(t,e,r,n))};return n(t,e,r);function i(t,e,r,i){return function(s,o){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(o&&o.sort&&o.sort(),"function"==typeof r&&r.call(this,s,o)):g([n,[t,e,r],s,i||Date.now(),Date.now()])}}};var l=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var u=a(t);b=u.ReadStream,m=u.WriteStream}var h=t.ReadStream;h&&(b.prototype=Object.create(h.prototype),b.prototype.open=function(){var t=this;w(t.path,t.flags,t.mode,(function(e,r){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r),t.read())}))});var c=t.WriteStream;c&&(m.prototype=Object.create(c.prototype),m.prototype.open=function(){var t=this;w(t.path,t.flags,t.mode,(function(e,r){e?(t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r))}))}),Object.defineProperty(t,"ReadStream",{get:function(){return b},set:function(t){b=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return m},set:function(t){m=t},enumerable:!0,configurable:!0});var d=b;Object.defineProperty(t,"FileReadStream",{get:function(){return d},set:function(t){d=t},enumerable:!0,configurable:!0});var f=m;function b(t,e){return this instanceof b?(h.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function m(t,e){return this instanceof m?(c.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return f},set:function(t){f=t},enumerable:!0,configurable:!0});var y=t.open;function w(t,e,r,n){return"function"==typeof r&&(n=r,r=null),function t(e,r,n,i,s){return y(e,r,n,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):g([t,[e,r,n,i],o,s||Date.now(),Date.now()])}))}(t,e,r,n)}return t.open=w,t}function g(t){d("ENQUEUE",t[0].name,t[1]),s[n].push(t),m()}function b(){for(var t=Date.now(),e=0;e<s[n].length;++e)s[n][e].length>2&&(s[n][e][3]=t,s[n][e][4]=t);m()}function m(){if(clearTimeout(c),c=void 0,0!==s[n].length){var t=s[n].shift(),e=t[0],r=t[1],i=t[2],o=t[3],a=t[4];if(void 0===o)d("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-o>=6e4){d("TIMEOUT",e.name,r);var l=r.pop();"function"==typeof l&&l.call(null,i)}else{var u=Date.now()-a,h=Math.max(a-o,1);u>=Math.min(1.2*h,100)?(d("RETRY",e.name,r),e.apply(null,r.concat([o]))):s[n].push(t)}void 0===c&&(c=setTimeout(m,0))}}global[n]||h(global,s[n]),t.exports=p(l(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(t.exports=p(s),s.__patched=!0)},1995(t,e,r){var n=r(2203).Stream;t.exports=function(t){return{ReadStream:function e(r,i){if(!(this instanceof e))return new e(r,i);n.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var o=Object.keys(i),a=0,l=o.length;a<l;a++){var u=o[a];this[u]=i[u]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){s._read()}));t.open(this.path,this.flags,this.mode,(function(t,e){if(t)return s.emit("error",t),void(s.readable=!1);s.fd=e,s.emit("open",e),s._read()}))},WriteStream:function e(r,i){if(!(this instanceof e))return new e(r,i);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=i[l]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},9106(t,e,r){var n=r(9140),i=process.cwd,s=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(t){s=null,a.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}t.exports=function(t){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,r,i){t.open(e,n.O_WRONLY|n.O_SYMLINK,r,(function(e,n){e?i&&i(e):t.fchmod(n,r,(function(e){t.close(n,(function(t){i&&i(e||t)}))}))}))},t.lchmodSync=function(e,r){var i,s=t.openSync(e,n.O_WRONLY|n.O_SYMLINK,r),o=!0;try{i=t.fchmodSync(s,r),o=!1}finally{if(o)try{t.closeSync(s)}catch(t){}else t.closeSync(s)}return i}}(t);t.lutimes||function(t){n.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(e,r,i,s){t.open(e,n.O_SYMLINK,(function(e,n){e?s&&s(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){s&&s(e||t)}))}))}))},t.lutimesSync=function(e,r,i){var s,o=t.openSync(e,n.O_SYMLINK),a=!0;try{s=t.futimesSync(o,r,i),a=!1}finally{if(a)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return s}):t.futimes&&(t.lutimes=function(t,e,r,n){n&&process.nextTick(n)},t.lutimesSync=function(){})}(t);t.chown=i(t.chown),t.fchown=i(t.fchown),t.lchown=i(t.lchown),t.chmod=e(t.chmod),t.fchmod=e(t.fchmod),t.lchmod=e(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=r(t.chmodSync),t.fchmodSync=r(t.fchmodSync),t.lchmodSync=r(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(t,e,r){r&&process.nextTick(r)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(t,e,r,n){n&&process.nextTick(n)},t.lchownSync=function(){});"win32"===o&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function r(r,n,i){var s=Date.now(),o=0;e(r,n,(function a(l){if(l&&("EACCES"===l.code||"EPERM"===l.code||"EBUSY"===l.code)&&Date.now()-s<6e4)return setTimeout((function(){t.stat(n,(function(t,s){t&&"ENOENT"===t.code?e(r,n,a):i(l)}))}),o),void(o<100&&(o+=10));i&&i(l)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.rename));function e(e){return e?function(r,n,i){return e.call(t,r,n,(function(t){u(t)&&(t=null),i&&i.apply(this,arguments)}))}:e}function r(e){return e?function(r,n){try{return e.call(t,r,n)}catch(t){if(!u(t))throw t}}:e}function i(e){return e?function(r,n,i,s){return e.call(t,r,n,i,(function(t){u(t)&&(t=null),s&&s.apply(this,arguments)}))}:e}function s(e){return e?function(r,n,i){try{return e.call(t,r,n,i)}catch(t){if(!u(t))throw t}}:e}function a(e){return e?function(r,n,i){function s(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?e.call(t,r,n,s):e.call(t,r,s)}:e}function l(e){return e?function(r,n){var i=n?e.call(t,r,n):e.call(t,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:e}function u(t){return!t||("ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code))}t.read="function"!=typeof t.read?t.read:function(e){function r(r,n,i,s,o,a){var l;if(a&&"function"==typeof a){var u=0;l=function(h,c,d){if(h&&"EAGAIN"===h.code&&u<10)return u++,e.call(t,r,n,i,s,o,l);a.apply(this,arguments)}}return e.call(t,r,n,i,s,o,l)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(h=t.readSync,function(e,r,n,i,s){for(var o=0;;)try{return h.call(t,e,r,n,i,s)}catch(t){if("EAGAIN"===t.code&&o<10){o++;continue}throw t}});var h}},5884(t){"use strict";t.exports=(t,e=process.argv)=>{const r=t.startsWith("-")?"":1===t.length?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return-1!==n&&(-1===i||n<i)}},2017(t,e,r){try{var n=r(9023);if("function"!=typeof n.inherits)throw"";t.exports=n.inherits}catch(e){t.exports=r(6698)}},6698(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},1232(t){"use strict";const e=t=>null!==t&&"object"==typeof t&&"function"==typeof t.pipe;e.writable=t=>e(t)&&!1!==t.writable&&"function"==typeof t._write&&"object"==typeof t._writableState,e.readable=t=>e(t)&&!1!==t.readable&&"function"==typeof t._read&&"object"==typeof t._readableState,e.duplex=t=>e.writable(t)&&e.readable(t),e.transform=t=>e.duplex(t)&&"function"==typeof t._transform,t.exports=e},1394(t){"use strict";const{FORCE_COLOR:e,NODE_DISABLE_COLORS:r,TERM:n}=process.env,i={enabled:!r&&"dumb"!==n&&"0"!==e,reset:o(0,0),bold:o(1,22),dim:o(2,22),italic:o(3,23),underline:o(4,24),inverse:o(7,27),hidden:o(8,28),strikethrough:o(9,29),black:o(30,39),red:o(31,39),green:o(32,39),yellow:o(33,39),blue:o(34,39),magenta:o(35,39),cyan:o(36,39),white:o(37,39),gray:o(90,39),grey:o(90,39),bgBlack:o(40,49),bgRed:o(41,49),bgGreen:o(42,49),bgYellow:o(43,49),bgBlue:o(44,49),bgMagenta:o(45,49),bgCyan:o(46,49),bgWhite:o(47,49)};function s(t,e){let r,n=0,i="",s="";for(;n<t.length;n++)r=t[n],i+=r.open,s+=r.close,e.includes(r.close)&&(e=e.replace(r.rgx,r.close+r.open));return i+e+s}function o(t,e){let r={open:`[${t}m`,close:`[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(e){return void 0!==this&&void 0!==this.has?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),void 0===e?this:i.enabled?s(this.keys,e+""):e+""):void 0===e?function(t,e){let r={has:t,keys:e};return r.reset=i.reset.bind(r),r.bold=i.bold.bind(r),r.dim=i.dim.bind(r),r.italic=i.italic.bind(r),r.underline=i.underline.bind(r),r.inverse=i.inverse.bind(r),r.hidden=i.hidden.bind(r),r.strikethrough=i.strikethrough.bind(r),r.black=i.black.bind(r),r.red=i.red.bind(r),r.green=i.green.bind(r),r.yellow=i.yellow.bind(r),r.blue=i.blue.bind(r),r.magenta=i.magenta.bind(r),r.cyan=i.cyan.bind(r),r.white=i.white.bind(r),r.gray=i.gray.bind(r),r.grey=i.grey.bind(r),r.bgBlack=i.bgBlack.bind(r),r.bgRed=i.bgRed.bind(r),r.bgGreen=i.bgGreen.bind(r),r.bgYellow=i.bgYellow.bind(r),r.bgBlue=i.bgBlue.bind(r),r.bgMagenta=i.bgMagenta.bind(r),r.bgCyan=i.bgCyan.bind(r),r.bgWhite=i.bgWhite.bind(r),r}([t],[r]):i.enabled?s([r],e+""):e+""}}t.exports=i},85(t,e,r){var n=r(9023),i=r(8768);function s(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function o(t,e){if(!(this instanceof o))return new o(t,e);i.call(this,e),s(this,"_read",(function(){var r=t.call(this,e),n=this.emit.bind(this,"error");r.on("error",n),r.pipe(this)})),this.emit("readable")}function a(t,e){if(!(this instanceof a))return new a(t,e);i.call(this,e),s(this,"_write",(function(){var r=t.call(this,e),n=this.emit.bind(this,"error");r.on("error",n),this.pipe(r)})),this.emit("writable")}t.exports={Readable:o,Writable:a},n.inherits(o,i),n.inherits(a,i)},148(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},2676(t,e,r){"use strict";var n=r(3225),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var s=Object.create(r(5622));s.inherits=r(2017);var o=r(2922),a=r(4734);s.inherits(c,o);for(var l=i(a.prototype),u=0;u<l.length;u++){var h=l[u];c.prototype[h]||(c.prototype[h]=a.prototype[h])}function c(t){if(!(this instanceof c))return new c(t);o.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),c.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},6462(t,e,r){"use strict";t.exports=s;var n=r(5828),i=Object.create(r(5622));function s(t){if(!(this instanceof s))return new s(t);n.call(this,t)}i.inherits=r(2017),i.inherits(s,n),s.prototype._transform=function(t,e,r){r(null,t)}},2922(t,e,r){"use strict";var n=r(3225);t.exports=y;var i,s=r(148);y.ReadableState=m;r(4434).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=r(7354),l=r(6347).Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h=Object.create(r(5622));h.inherits=r(2017);var c=r(9023),d=void 0;d=c&&c.debuglog?c.debuglog("stream"):function(){};var f,p=r(4156),g=r(8762);h.inherits(y,a);var b=["error","close","destroy","pause","resume"];function m(t,e){t=t||{};var n=e instanceof(i=i||r(2676));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var s=t.highWaterMark,o=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:n&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=r(8247).I),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function y(t){if(i=i||r(2676),!(this instanceof y))return new y(t);this._readableState=new m(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function w(t,e,r,n,i){var s,o=t._readableState;null===e?(o.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,E(t)}(t,o)):(i||(s=function(t,e){var r;n=e,l.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,e)),s?t.emit("error",s):o.objectMode||e&&e.length>0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),n?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?_(t,o,e,!1):A(t,o)):_(t,o,e,!1))):n||(o.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(o)}function _(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&E(t)),A(t,e)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(t,e){this.push(null),e(t)},y.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=l.from(t,e),e=""),r=!0),w(this,t,e,!1,r)},y.prototype.unshift=function(t){return w(this,t,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(t){return f||(f=r(8247).I),this._readableState.decoder=new f(t),this._readableState.encoding=t,this};var v=8388608;function S(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=v?t=v:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function E(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?n.nextTick(x,t):x(t))}function x(t){d("emit readable"),t.emit("readable"),k(t)}function A(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(R,t,e))}function R(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function O(t){d("readable nexttick read 0"),t.read(0)}function T(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),k(t),e.flowing&&!e.reading&&t.read(0)}function k(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function M(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),0===(t-=o)){o===s.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=l.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var s=n.data,o=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,o),0===(t-=o)){o===s.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=s.slice(o));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,n.nextTick(I,e,t))}function I(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function L(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}y.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):E(this),null;if(0===(t=S(t,e))&&e.ended)return 0===e.length&&P(this),null;var n,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",i=!0),e.ended||e.reading?d("reading or ended",i=!1):i&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=S(r,e))),null===(n=t>0?M(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&P(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,d("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:y;function l(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",b),t.removeListener("finish",m),t.removeListener("drain",h),t.removeListener("error",g),t.removeListener("unpipe",l),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",p),c=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function u(){d("onend"),t.end()}i.endEmitted?n.nextTick(a):r.once("end",a),t.on("unpipe",l);var h=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,k(t))}}(r);t.on("drain",h);var c=!1;var f=!1;function p(e){d("ondata"),f=!1,!1!==t.write(e)||f||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==L(i.pipes,t))&&!c&&(d("false write response, pause",i.awaitDrain),i.awaitDrain++,f=!0),r.pause())}function g(e){d("onerror",e),y(),t.removeListener("error",g),0===o(t,"error")&&t.emit("error",e)}function b(){t.removeListener("finish",m),y()}function m(){d("onfinish"),t.removeListener("close",b),y()}function y(){d("unpipe"),r.unpipe(t)}return r.on("data",p),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",g),t.once("close",b),t.once("finish",m),t.emit("pipe",r),i.flowing||(d("pipe resume"),r.resume()),t},y.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=L(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},y.prototype.on=function(t,e){var r=a.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&E(this):n.nextTick(O,this))}return r},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(T,t,e))}(this,t)),this},y.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(d("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var s=0;s<b.length;s++)t.on(b[s],this.emit.bind(this,b[s]));return this._read=function(e){d("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=M},5828(t,e,r){"use strict";t.exports=o;var n=r(2676),i=Object.create(r(5622));function s(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);n.call(this,t),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){l(t,e,r)})):l(this,null,null)}function l(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=r(2017),i.inherits(o,n),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))}},4734(t,e,r){"use strict";var n=r(3225);function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=b;var s,o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;b.WritableState=g;var a=Object.create(r(5622));a.inherits=r(2017);var l={deprecate:r(7983)},u=r(7354),h=r(6347).Buffer,c=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var d,f=r(8762);function p(){}function g(t,e){s=s||r(2676),t=t||{};var a=e instanceof s;this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var l=t.highWaterMark,u=t.writableHighWaterMark,h=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:a&&(u||0===u)?u:h,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,i=r.sync,s=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,i,s){--e.pendingcb,r?(n.nextTick(s,i),n.nextTick(S,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(s(i),t._writableState.errorEmitted=!0,t.emit("error",i),S(t,e))}(t,r,i,e,s);else{var a=_(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(t,r),i?o(y,t,r,a,s):y(t,r,a,s)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function b(t){if(s=s||r(2676),!(d.call(b,this)||this instanceof s))return new b(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function m(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function y(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),S(t,e)}function w(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,s=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)s[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;s.allBuffers=l,m(t,e,!0,e.length,s,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,h=r.encoding,c=r.callback;if(m(t,e,!1,e.objectMode?1:u.length,u,h,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function _(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function v(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),S(t,e)}))}function S(t,e){var r=_(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,n.nextTick(v,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}a.inherits(b,u),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===b&&(t&&t._writableState instanceof g)}})):d=function(t){return t instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(t,e,r){var i,s=this._writableState,o=!1,a=!s.objectMode&&(i=t,h.isBuffer(i)||i instanceof c);return a&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"==typeof e&&(r=e,e=null),a?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof r&&(r=p),s.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),n.nextTick(e,r)}(this,r):(a||function(t,e,r,i){var s=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),n.nextTick(i,o),s=!1),s}(this,s,t,r))&&(s.pendingcb++,o=function(t,e,r,n,i,s){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=h.from(e,r));return e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else m(t,e,!1,a,n,i,s);return l}(this,s,a,t,e,r)),o},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||w(this,t))},b.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(t,e,r){var i=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,r){e.ending=!0,S(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,i,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=f.destroy,b.prototype._undestroy=f.undestroy,b.prototype._destroy=function(t,e){this.end(),e(t)}},4156(t,e,r){"use strict";var n=r(6347).Buffer,i=r(9023);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i,s=n.allocUnsafe(t>>>0),o=this.head,a=0;o;)e=o.data,r=s,i=a,e.copy(r,i),a+=o.data.length,o=o.next;return s},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},8762(t,e,r){"use strict";var n=r(3225);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},7354(t,e,r){t.exports=r(2203)},8768(t,e,r){t.exports=r(3940).PassThrough},3940(t,e,r){var n=r(2203);"disable"===process.env.READABLE_STREAM&&n?(t.exports=n,(e=t.exports=n.Readable).Readable=n.Readable,e.Writable=n.Writable,e.Duplex=n.Duplex,e.Transform=n.Transform,e.PassThrough=n.PassThrough,e.Stream=n):((e=t.exports=r(2922)).Stream=n||e,e.Readable=e,e.Writable=r(4734),e.Duplex=r(2676),e.Transform=r(5828),e.PassThrough=r(6462))},6347(t,e,r){var n=r(181),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},8247(t,e,r){"use strict";var n=r(6347).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=c,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.I=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=o(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},1549(t,e,r){var n=r(2032),i=r(3862),s=r(6721),o=r(2749),a=r(5749);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,t.exports=l},79(t,e,r){var n=r(3702),i=r(80),s=r(4739),o=r(8655),a=r(1175);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,t.exports=l},8223(t,e,r){var n=r(6110)(r(9325),"Map");t.exports=n},3661(t,e,r){var n=r(3040),i=r(7670),s=r(289),o=r(4509),a=r(2949);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,t.exports=l},6545(t,e,r){var n=r(6110)(r(9325),"Set");t.exports=n},8859(t,e,r){var n=r(3661),i=r(1380),s=r(1459);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=s,t.exports=o},1873(t,e,r){var n=r(9325).Symbol;t.exports=n},1033(t){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},5325(t,e,r){var n=r(6131);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},9905(t){t.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}},695(t,e,r){var n=r(8096),i=r(2428),s=r(6449),o=r(3656),a=r(361),l=r(7167),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=s(t),h=!r&&i(t),c=!r&&!h&&o(t),d=!r&&!h&&!c&&l(t),f=r||h||c||d,p=f?n(t.length,String):[],g=p.length;for(var b in t)!e&&!u.call(t,b)||f&&("length"==b||c&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||a(b,g))||p.push(b);return p}},4932(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},4528(t){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},6025(t,e,r){var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},3915(t,e,r){var n=r(8859),i=r(5325),s=r(9905),o=r(4932),a=r(7301),l=r(9219);t.exports=function(t,e,r,u){var h=-1,c=i,d=!0,f=t.length,p=[],g=e.length;if(!f)return p;r&&(e=o(e,a(r))),u?(c=s,d=!1):e.length>=200&&(c=l,d=!1,e=new n(e));t:for(;++h<f;){var b=t[h],m=null==r?b:r(b);if(b=u||0!==b?b:0,d&&m==m){for(var y=g;y--;)if(e[y]===m)continue t;p.push(b)}else c(e,m,u)||p.push(b)}return p}},2523(t){t.exports=function(t,e,r,n){for(var i=t.length,s=r+(n?1:-1);n?s--:++s<i;)if(e(t[s],s,t))return s;return-1}},3120(t,e,r){var n=r(4528),i=r(5891);t.exports=function t(e,r,s,o,a){var l=-1,u=e.length;for(s||(s=i),a||(a=[]);++l<u;){var h=e[l];r>0&&s(h)?r>1?t(h,r-1,s,o,a):n(a,h):o||(a[a.length]=h)}return a}},2552(t,e,r){var n=r(1873),i=r(659),s=r(9350),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):s(t)}},6131(t,e,r){var n=r(2523),i=r(5463),s=r(6959);t.exports=function(t,e,r){return e==e?s(t,e,r):n(t,i,r)}},7534(t,e,r){var n=r(2552),i=r(346);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},5463(t){t.exports=function(t){return t!=t}},5083(t,e,r){var n=r(1882),i=r(7296),s=r(3805),o=r(7473),a=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,h=l.toString,c=u.hasOwnProperty,d=RegExp("^"+h.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||i(t))&&(n(t)?d:a).test(o(t))}},4901(t,e,r){var n=r(2552),i=r(294),s=r(346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return s(t)&&i(t.length)&&!!o[n(t)]}},2903(t,e,r){var n=r(3805),i=r(5527),s=r(2562),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return s(t);var e=i(t),r=[];for(var a in t)("constructor"!=a||!e&&o.call(t,a))&&r.push(a);return r}},9302(t,e,r){var n=r(3488),i=r(6757),s=r(2865);t.exports=function(t,e){return s(i(t,e,n),t+"")}},9570(t,e,r){var n=r(7334),i=r(3243),s=r(3488),o=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:s;t.exports=o},8096(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7301(t){t.exports=function(t){return function(e){return t(e)}}},5765(t,e,r){var n=r(8859),i=r(5325),s=r(9905),o=r(9219),a=r(4517),l=r(4247);t.exports=function(t,e,r){var u=-1,h=i,c=t.length,d=!0,f=[],p=f;if(r)d=!1,h=s;else if(c>=200){var g=e?null:a(t);if(g)return l(g);d=!1,h=o,p=new n}else p=e?[]:f;t:for(;++u<c;){var b=t[u],m=e?e(b):b;if(b=r||0!==b?b:0,d&&m==m){for(var y=p.length;y--;)if(p[y]===m)continue t;e&&p.push(m),f.push(b)}else h(p,m,r)||(p!==f&&p.push(m),f.push(b))}return f}},9219(t){t.exports=function(t,e){return t.has(e)}},5481(t,e,r){var n=r(9325)["__core-js_shared__"];t.exports=n},4517(t,e,r){var n=r(6545),i=r(3950),s=r(4247),o=n&&1/s(new n([,-0]))[1]==1/0?function(t){return new n(t)}:i;t.exports=o},3243(t,e,r){var n=r(6110),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},4840(t){var e="object"==typeof global&&global&&global.Object===Object&&global;t.exports=e},2651(t,e,r){var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},6110(t,e,r){var n=r(5083),i=r(392);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},8879(t,e,r){var n=r(4335)(Object.getPrototypeOf,Object);t.exports=n},659(t,e,r){var n=r(1873),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=o.call(t);return n&&(e?t[a]=r:delete t[a]),i}},392(t){t.exports=function(t,e){return null==t?void 0:t[e]}},2032(t,e,r){var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721(t,e,r){var n=r(1042),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},2749(t,e,r){var n=r(1042),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},5749(t,e,r){var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5891(t,e,r){var n=r(1873),i=r(2428),s=r(6449),o=n?n.isConcatSpreadable:void 0;t.exports=function(t){return s(t)||i(t)||!!(o&&t&&t[o])}},361(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},6800(t,e,r){var n=r(5288),i=r(4894),s=r(361),o=r(3805);t.exports=function(t,e,r){if(!o(r))return!1;var a=typeof e;return!!("number"==a?i(r)&&s(e,r.length):"string"==a&&e in r)&&n(r[e],t)}},4218(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296(t,e,r){var n,i=r(5481),s=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!s&&s in t}},5527(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3702(t){t.exports=function(){this.__data__=[],this.size=0}},80(t,e,r){var n=r(6025),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},4739(t,e,r){var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},8655(t,e,r){var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175(t,e,r){var n=r(6025);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},3040(t,e,r){var n=r(1549),i=r(79),s=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||i),string:new n}}},7670(t,e,r){var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},289(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},2949(t,e,r){var n=r(2651);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},1042(t,e,r){var n=r(6110)(Object,"create");t.exports=n},2562(t){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},6009(t,e,r){t=r.nmd(t);var n=r(4840),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,o=s&&s.exports===i&&n.process,a=function(){try{var t=s&&s.require&&s.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},9350(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335(t){t.exports=function(t,e){return function(r){return t(e(r))}}},6757(t,e,r){var n=r(1033),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var s=arguments,o=-1,a=i(s.length-e,0),l=Array(a);++o<a;)l[o]=s[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=s[o];return u[e]=r(l),n(t,this,u)}}},9325(t,e,r){var n=r(4840),i="object"==typeof self&&self&&self.Object===Object&&self,s=n||i||Function("return this")();t.exports=s},1380(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459(t){t.exports=function(t){return this.__data__.has(t)}},4247(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},2865(t,e,r){var n=r(9570),i=r(1811)(n);t.exports=i},1811(t){var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var i=e(),s=16-(i-n);if(n=i,s>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},6959(t){t.exports=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}},7473(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7334(t){t.exports=function(t){return function(){return t}}},4684(t,e,r){var n=r(9302),i=r(5288),s=r(6800),o=r(7241),a=Object.prototype,l=a.hasOwnProperty,u=n((function(t,e){t=Object(t);var r=-1,n=e.length,u=n>2?e[2]:void 0;for(u&&s(e[0],e[1],u)&&(n=1);++r<n;)for(var h=e[r],c=o(h),d=-1,f=c.length;++d<f;){var p=c[d],g=t[p];(void 0===g||i(g,a[p])&&!l.call(t,p))&&(t[p]=h[p])}return t}));t.exports=u},6245(t,e,r){var n=r(3915),i=r(3120),s=r(9302),o=r(6074),a=s((function(t,e){return o(t)?n(t,i(e,1,o,!0)):[]}));t.exports=a},5288(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},5970(t,e,r){var n=r(3120);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},3488(t){t.exports=function(t){return t}},2428(t,e,r){var n=r(7534),i=r(346),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(t){return i(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},6449(t){var e=Array.isArray;t.exports=e},4894(t,e,r){var n=r(1882),i=r(294);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},6074(t,e,r){var n=r(4894),i=r(346);t.exports=function(t){return i(t)&&n(t)}},3656(t,e,r){t=r.nmd(t);var n=r(9325),i=r(9935),s=e&&!e.nodeType&&e,o=s&&t&&!t.nodeType&&t,a=o&&o.exports===s?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;t.exports=l},1882(t,e,r){var n=r(2552),i=r(3805);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},294(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346(t){t.exports=function(t){return null!=t&&"object"==typeof t}},1331(t,e,r){var n=r(2552),i=r(8879),s=r(346),o=Function.prototype,a=Object.prototype,l=o.toString,u=a.hasOwnProperty,h=l.call(Object);t.exports=function(t){if(!s(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=u.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==h}},7167(t,e,r){var n=r(4901),i=r(7301),s=r(6009),o=s&&s.isTypedArray,a=o?i(o):n;t.exports=a},7241(t,e,r){var n=r(695),i=r(2903),s=r(4894);t.exports=function(t){return s(t)?n(t,!0):i(t)}},3950(t){t.exports=function(){}},9935(t){t.exports=function(){return!1}},299(t,e,r){var n=r(3120),i=r(9302),s=r(5765),o=r(6074),a=i((function(t){return s(n(t,1,o,!0))}));t.exports=a},4100(t){t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected path to be a string");if("\\"===t||"/"===t)return"/";var r=t.length;if(r<=1)return t;var n="";if(r>4&&"\\"===t[3]){var i=t[2];"?"!==i&&"."!==i||"\\\\"!==t.slice(0,2)||(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return!1!==e&&""===s[s.length-1]&&s.pop(),n+s.join("/")}},3225(t){"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?t.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,s,o=arguments.length;switch(o){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick((function(){t.call(null,e)}));case 3:return process.nextTick((function(){t.call(null,e,r)}));case 4:return process.nextTick((function(){t.call(null,e,r,n)}));default:for(i=new Array(o-1),s=0;s<i.length;)i[s++]=arguments[s];return process.nextTick((function(){t.apply(null,i)}))}}}:t.exports=process},4422(t){t.exports=global.process},323(t){"use strict";class e{constructor({token:t,date:e,parts:r,locales:n}){this.token=t,this.date=e||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>t&&r instanceof e))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,n)=>n>r&&t instanceof e))}toString(){return String(this.date)}}t.exports=e},1458(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return"DD"===this.token?String(t).padStart(2,"0"):"Do"===this.token?t+(r=t,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?e+1:"ddd"===this.token?this.locales.weekdaysShort[e]:"dddd"===this.token?this.locales.weekdays[e]:t;var r}}},9199(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}},1908(t,e,r){"use strict";t.exports={DatePart:r(323),Meridiem:r(5404),Day:r(1458),Hours:r(9199),Milliseconds:r(3988),Minutes:r(6781),Month:r(4906),Seconds:r(3217),Year:r(8775)}},5404(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}},3988(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},6781(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}},4906(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return 2===e?String(t+1).padStart(2,"0"):3===e?this.locales.monthsShort[t]:4===e?this.locales.months[t]:String(t+1)}}},3217(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}},8775(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?t.substr(-2):t}}},1679(t,e,r){"use strict";function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}const i=r(1394),s=r(4597),o=r(723),a=o.erase,l=o.cursor,u=r(4586),h=u.style,c=u.clear,d=u.figures,f=u.wrap,p=u.entriesToDisplay,g=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),b=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial="number"==typeof t.initial?t.initial:((t,e)=>{const r=t.findIndex((t=>t.value===e||t.title===e));return r>-1?r:void 0})(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=h.render(t.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=c("",this.out.columns),this.complete(this.render),this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return"number"==typeof this._fb?t=this.choices[this._fb]:"string"==typeof this._fb&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=g(this.suggestions,t):this.value=this.fallback.value,this.fire()}complete(t){var e,r=this;return(e=function*(){const e=r.completing=r.suggest(r.input,r.choices),n=yield e;if(r.completing!==e)return;r.suggestions=n.map(((t,e,r)=>({title:b(r,e),value:g(r,e),description:t.description}))),r.completing=!1;const i=Math.max(n.length-1,0);r.moveSelect(Math.min(i,r.select)),t&&t()},function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))})()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${t}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(t,e,r,n){let s,o=r?d.arrowUp:n?d.arrowDown:" ",a=e?i.cyan().underline(t.title):t.title;return o=(e?i.cyan(d.pointer)+" ":" ")+o,t.description&&(s=` - ${t.description}`,(o.length+a.length+s.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(s="\n"+f(t.description,{margin:3,width:this.out.columns}))),o+" "+a+i.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(l.hide):this.out.write(c(this.outputText,this.out.columns)),super.render();let t=p(this.select,this.choices.length,this.limit),e=t.startIndex,r=t.endIndex;if(this.outputText=[h.symbol(this.done,this.aborted,this.exited),i.bold(this.msg),h.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const t=this.suggestions.slice(e,r).map(((t,n)=>this.renderOption(t,this.select===n+e,0===n&&e>0,n+e===r-1&&r<this.choices.length))).join("\n");this.outputText+="\n"+(t||i.gray(this.fallback.title))}this.out.write(a.line+l.to(0)+this.outputText)}}},6854(t,e,r){"use strict";const n=r(1394),i=r(723).cursor,s=r(6818),o=r(4586),a=o.clear,l=o.style,u=o.figures;t.exports=class extends s{constructor(t={}){t.overrideRender=!0,super(t),this.inputValue="",this.clear=a("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>!this.inputValue||(!("string"!=typeof t.title||!t.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof t.value||!t.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const e=this.filteredOptions.findIndex((e=>e===t));this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){" "===t?this.handleSpaceToggle():this.handleInputChange(t)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(t,e,r){let i;return i=e.disabled?t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):t===r?n.cyan().underline(e.title):e.title,(e.selected?n.green(u.radioOn):u.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=a(t,this.out.columns)}}},9331(t,e,r){"use strict";const n=r(1394),i=r(4597),s=r(4586),o=s.style,a=s.clear,l=r(723),u=l.erase,h=l.cursor;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){return"y"===t.toLowerCase()?(this.value=!0,this.submit()):"n"===t.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(h.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(u.line+h.to(0)+this.outputText))}}},5359(t,e,r){"use strict";function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(1394),o=r(4597),a=r(4586),l=a.style,u=a.clear,h=a.figures,c=r(723),d=c.erase,f=c.cursor,p=r(1908),g=p.DatePart,b=p.Meridiem,m=p.Day,y=p.Hours,w=p.Milliseconds,_=p.Minutes,v=p.Month,S=p.Seconds,E=p.Year,x=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,A={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new m(t),3:t=>new v(t),4:t=>new E(t),5:t=>new b(t),6:t=>new y(t),7:t=>new _(t),8:t=>new S(t),9:t=>new w(t)},R={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};t.exports=class extends o{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(R,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.mask||"YYYY-MM-DD HH:mm:ss",this.clear=u("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=x.exec(t);){let t=e.shift(),r=e.findIndex((t=>null!=t));this.parts.push(r in A?A[r]({token:e[r]||t,date:this.date,parts:this.parts,locales:this.locales}):e[r]||t)}let r=this.parts.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof g))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(yield t.validate(),t.error)return t.color="red",t.fire(),void t.render();t.done=!0,t.aborted=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let t=this.parts[this.cursor].prev();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof g))),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(f.hide):this.out.write(u(this.outputText,this.out.columns)),super.render(),this.outputText=[l.symbol(this.done,this.aborted),s.bold(this.msg),l.delimiter(!1),this.parts.reduce(((t,e,r)=>t.concat(r!==this.cursor||this.done?e:s.cyan().underline(e.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":h.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(d.line+f.to(0)+this.outputText))}}},3847(t,e,r){"use strict";t.exports={TextPrompt:r(7160),SelectPrompt:r(3179),TogglePrompt:r(5319),DatePrompt:r(5359),NumberPrompt:r(8158),MultiselectPrompt:r(6818),AutocompletePrompt:r(1679),AutocompleteMultiselectPrompt:r(6854),ConfirmPrompt:r(9331)}},6818(t,e,r){"use strict";const n=r(1394),i=r(723).cursor,s=r(4597),o=r(4586),a=o.clear,l=o.figures,u=o.style,h=o.wrap,c=o.entriesToDisplay;t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(void 0===t.value?e:t.value),selected:t&&t.selected,disabled:t&&t.disabled}))),this.clear=a("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map((t=>!t.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const t=this.value.filter((t=>t.selected));this.minSelected&&t.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((e=>e.selected=t)),this.render()}_(t,e){if(" "===t)this.handleSpaceToggle();else{if("a"!==t)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,e,r,i){const s=(e.selected?n.green(l.radioOn):l.radioOff)+" "+i+" ";let o,a;return e.disabled?o=t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):(o=t===r?n.cyan().underline(e.title):e.title,t===r&&e.description&&(a=` - ${e.description}`,(s.length+o.length+a.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(a="\n"+h(e.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(a||"")}paginateOptions(t){if(0===t.length)return n.red("No matches for this query.");let e,r=c(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,o=[];for(let r=i;r<s;r++)e=r===i&&i>0?l.arrowUp:r===s-1&&s<t.length?l.arrowDown:" ",o.push(this.renderOption(this.cursor,t[r],r,e));return"\n"+o.join("\n")}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=a(t,this.out.columns)}}},8158(t,e,r){"use strict";function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(1394),o=r(4597),a=r(723),l=a.cursor,u=a.erase,h=r(4586),c=h.style,d=h.figures,f=h.clear,p=h.lines,g=/[0-9]/,b=t=>void 0!==t,m=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r};t.exports=class extends o{constructor(t={}){super(t),this.transform=c.render(t.style),this.msg=t.message,this.initial=b(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=b(t.min)?t.min:-1/0,this.max=b(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${m(t,this.round)}`),this._value=m(t,this.round)):(this.placeholder=!0,this.rendered=s.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return"-"===t||"."===t&&this.float||g.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=""!==t?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(yield t.validate(),t.error)return t.color="red",t.fire(),void t.render();let e=t.value;t.value=""!==e?e:t.initial,t.done=!0,t.aborted=!1,t.error=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let t=this.value.toString();if(0===t.length)return this.bell();this.value=this.parse(t=t.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(t,e){if(!this.valid(t))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=r,this.color="cyan","."===t)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(l.down(p(this.outputError,this.out.columns)-1)+f(this.outputError,this.out.columns)),this.out.write(f(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[c.symbol(this.done,this.aborted),s.bold(this.msg),c.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:s[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":d.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore))}}},4597(t,e,r){"use strict";const n=r(3785),i=r(4586).action,s=r(4434),o=r(723),a=o.beep,l=o.cursor,u=r(1394);t.exports=class extends s{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(t,e)=>{let n=i(e,r);!1===n?this._&&this._(t,e):"function"==typeof this[n]?this[n](e):this.bell()};this.close=()=>{this.out.write(l.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(a)}render(){this.onRender(u),this.firstRender&&(this.firstRender=!1)}}},3179(t,e,r){"use strict";const n=r(1394),i=r(4597),s=r(4586),o=s.style,a=s.clear,l=s.figures,u=s.wrap,h=s.entriesToDisplay,c=r(723).cursor;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),value:t&&(void 0===t.value?e:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}))),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=a("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(t,e){if(" "===t)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(c.hide):this.out.write(a(this.outputText,this.out.columns)),super.render();let t=h(this.cursor,this.choices.length,this.optionsPerPage),e=t.startIndex,r=t.endIndex;if(this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let t=e;t<r;t++){let i,s,o="",a=this.choices[t];s=t===e&&e>0?l.arrowUp:t===r-1&&r<this.choices.length?l.arrowDown:" ",a.disabled?(i=this.cursor===t?n.gray().underline(a.title):n.strikethrough().gray(a.title),s=(this.cursor===t?n.bold().gray(l.pointer)+" ":" ")+s):(i=this.cursor===t?n.cyan().underline(a.title):a.title,s=(this.cursor===t?n.cyan(l.pointer)+" ":" ")+s,a.description&&this.cursor===t&&(o=` - ${a.description}`,(s.length+i.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o="\n"+u(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},7160(t,e,r){"use strict";function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(1394),o=r(4597),a=r(723),l=a.erase,u=a.cursor,h=r(4586),c=h.style,d=h.clear,f=h.lines,p=h.figures;t.exports=class extends o{constructor(t={}){super(t),this.transform=c.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=d("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=s.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(t.value=t.value||t.initial,t.cursorOffset=0,t.cursor=t.rendered.length,yield t.validate(),t.error)return t.red=!0,t.fire(),void t.render();t.done=!0,t.aborted=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${t}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(u.down(f(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns)),this.out.write(d(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[c.symbol(this.done,this.aborted),s.bold(this.msg),c.delimiter(this.done),this.red?s.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":p.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore+u.move(this.cursorOffset,0)))}}},5319(t,e,r){"use strict";const n=r(1394),i=r(4597),s=r(4586),o=s.style,a=s.clear,l=r(723),u=l.cursor,h=l.erase;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(t,e){if(" "===t)this.value=!this.value;else if("1"===t)this.value=!0;else{if("0"!==t)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(u.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "),this.out.write(h.line+u.to(0)+this.outputText))}}},4409(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){l=!0,s=t},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw s}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var s=t.apply(e,r);function o(t){l(s,n,i,o,a,"next",t)}function a(t){l(s,n,i,o,a,"throw",t)}o(void 0)}))}}const h=r(3258),c=["suggest","format","onState","validate","onRender","type"],d=()=>{};function f(){return p.apply(this,arguments)}function p(){return p=u((function*(t=[],{onSubmit:e=d,onCancel:r=d}={}){const n={},s=f._override||{};let a,l,p,b,m,y;t=[].concat(t);const w=function(){var t=u((function*(t,e,r=!1){if(r||!t.validate||!0===t.validate(e))return t.format?yield t.format(e,n):e}));return function(e,r){return t.apply(this,arguments)}}();var _,v=o(t);try{for(v.s();!(_=v.n()).done;){l=_.value;var S=l;if(b=S.name,m=S.type,"function"==typeof m&&(m=yield m(a,i({},n),l),l.type=m),m){for(let t in l){if(c.includes(t))continue;let e=l[t];l[t]="function"==typeof e?yield e(a,i({},n),y):e}if(y=l,"string"!=typeof l.message)throw new Error("prompt message is required");var E=l;if(b=E.name,m=E.type,void 0===h[m])throw new Error(`prompt type (${m}) is not defined`);if(void 0===s[l.name]||(a=yield w(l,s[l.name]),void 0===a)){try{a=f._injected?g(f._injected,l.initial):yield h[m](l),n[b]=a=yield w(l,a,!0),p=yield e(l,a,n)}catch(t){p=!(yield r(l,n))}if(p)return n}else n[b]=a}}}catch(t){v.e(t)}finally{v.f()}return n})),p.apply(this,arguments)}function g(t,e){const r=t.shift();if(r instanceof Error)throw r;return void 0===r?e:r}t.exports=Object.assign(f,{prompt:f,prompts:h,inject:function(t){f._injected=(f._injected||[]).concat(t)},override:function(t){f._override=Object.assign({},t)}})},3258(t,e,r){"use strict";const n=e,i=r(3847),s=t=>t;function o(t,e,r={}){return new Promise(((n,o)=>{const a=new i[t](e),l=r.onAbort||s,u=r.onSubmit||s,h=r.onExit||s;a.on("state",e.onState||s),a.on("submit",(t=>n(u(t)))),a.on("exit",(t=>n(h(t)))),a.on("abort",(t=>o(l(t))))}))}n.text=t=>o("TextPrompt",t),n.password=t=>(t.style="password",n.text(t)),n.invisible=t=>(t.style="invisible",n.text(t)),n.number=t=>o("NumberPrompt",t),n.date=t=>o("DatePrompt",t),n.confirm=t=>o("ConfirmPrompt",t),n.list=t=>{const e=t.separator||",";return o("TextPrompt",t,{onSubmit:t=>t.split(e).map((t=>t.trim()))})},n.toggle=t=>o("TogglePrompt",t),n.select=t=>o("SelectPrompt",t),n.multiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("MultiselectPrompt",t,{onAbort:e,onSubmit:e})},n.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};const a=(t,e)=>Promise.resolve(e.filter((e=>e.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));n.autocomplete=t=>(t.suggest=t.suggest||a,t.choices=[].concat(t.choices||[]),o("AutocompletePrompt",t))},2522(t){"use strict";t.exports=(t,e)=>{if(!t.meta||"escape"===t.name){if(t.ctrl){if("a"===t.name)return"first";if("c"===t.name)return"abort";if("d"===t.name)return"abort";if("e"===t.name)return"last";if("g"===t.name)return"reset"}if(e){if("j"===t.name)return"down";if("k"===t.name)return"up"}return"return"===t.name||"enter"===t.name?"submit":"backspace"===t.name?"delete":"delete"===t.name?"deleteForward":"abort"===t.name?"abort":"escape"===t.name?"exit":"tab"===t.name?"next":"pagedown"===t.name?"nextPage":"pageup"===t.name?"prevPage":"home"===t.name?"home":"end"===t.name?"end":"up"===t.name?"up":"down"===t.name?"down":"right"===t.name?"right":"left"===t.name&&"left"}}},4515(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const s=r(7096),o=r(723),a=o.erase,l=o.cursor;t.exports=function(t,e){if(!e)return a.line+l.to(0);let r=0;var i,o=n(t.split(/\r?\n/));try{for(o.s();!(i=o.n()).done;){let t=i.value;r+=1+Math.floor(Math.max([...s(t)].length-1,0)/e)}}catch(t){o.e(t)}finally{o.f()}return a.lines(r)}},769(t){"use strict";t.exports=(t,e,r)=>{r=r||e;let n=Math.min(e-r,t-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,e)}}},9599(t){"use strict";const e={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},r={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},n="win32"===process.platform?r:e;t.exports=n},4586(t,e,r){"use strict";t.exports={action:r(2522),clear:r(4515),style:r(9939),strip:r(7096),figures:r(9599),lines:r(65),wrap:r(1416),entriesToDisplay:r(769)}},65(t,e,r){"use strict";const n=r(7096);t.exports=function(t,e){let r=String(n(t)||"").split(/\r?\n/);return e?r.map((t=>Math.ceil(t.length/e))).reduce(((t,e)=>t+e)):r.length}},7096(t){"use strict";t.exports=t=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return"string"==typeof t?t.replace(r,""):t}},9939(t,e,r){"use strict";const n=r(1394),i=r(9599),s=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});t.exports={styles:s,render:t=>s[t]||s.default,symbols:o,symbol:(t,e,r)=>e?o.aborted:r?o.exited:t?o.done:o.default,delimiter:t=>n.gray(t?i.ellipsis:i.pointerSmall),item:(t,e)=>n.gray(t?e?i.pointerSmall:"+":i.line)}},1416(t){"use strict";t.exports=(t,e={})=>{const r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",n=e.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,e)=>(e.length+r.length>=n||t[t.length-1].length+e.length+1<n?t[t.length-1]+=` ${e}`:t.push(`${r}${e}`),t)),[r]).join("\n"))).join("\n")}},9240(t,e,r){t.exports=function(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(r[e]>t[e])return!1;if(t[e]>r[e])return!0}return!1}("8.6.0")?r(4409):r(8404)},5568(t){"use strict";class e{constructor({token:t,date:e,parts:r,locales:n}){this.token=t,this.date=e||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>t&&r instanceof e))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,n)=>n>r&&t instanceof e))}toString(){return String(this.date)}}t.exports=e},1715(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return"DD"===this.token?String(t).padStart(2,"0"):"Do"===this.token?t+(r=t,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?e+1:"ddd"===this.token?this.locales.weekdaysShort[e]:"dddd"===this.token?this.locales.weekdays[e]:t;var r}}},6694(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}},7957(t,e,r){"use strict";t.exports={DatePart:r(5568),Meridiem:r(5135),Day:r(1715),Hours:r(6694),Milliseconds:r(1980),Minutes:r(2672),Month:r(2287),Seconds:r(2376),Year:r(2368)}},5135(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}},1980(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},2672(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}},2287(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return 2===e?String(t+1).padStart(2,"0"):3===e?this.locales.monthsShort[t]:4===e?this.locales.months[t]:String(t+1)}}},2376(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}},2368(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?t.substr(-2):t}}},4230(t,e,r){"use strict";const n=r(1394),i=r(4872),{erase:s,cursor:o}=r(723),{style:a,clear:l,figures:u,wrap:h,entriesToDisplay:c}=r(1189),d=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),f=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial="number"==typeof t.initial?t.initial:((t,e)=>{const r=t.findIndex((t=>t.value===e||t.title===e));return r>-1?r:void 0})(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=a.render(t.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=l("",this.out.columns),this.complete(this.render),this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return"number"==typeof this._fb?t=this.choices[this._fb]:"string"==typeof this._fb&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=d(this.suggestions,t):this.value=this.fallback.value,this.fire()}async complete(t){const e=this.completing=this.suggest(this.input,this.choices),r=await e;if(this.completing!==e)return;this.suggestions=r.map(((t,e,r)=>({title:f(r,e),value:d(r,e),description:t.description}))),this.completing=!1;const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select)),t&&t()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${t}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(t,e,r,i){let s,o=r?u.arrowUp:i?u.arrowDown:" ",a=e?n.cyan().underline(t.title):t.title;return o=(e?n.cyan(u.pointer)+" ":" ")+o,t.description&&(s=` - ${t.description}`,(o.length+a.length+s.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(s="\n"+h(t.description,{margin:3,width:this.out.columns}))),o+" "+a+n.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(o.hide):this.out.write(l(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=c(this.select,this.choices.length,this.limit);if(this.outputText=[a.symbol(this.done,this.aborted,this.exited),n.bold(this.msg),a.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const r=this.suggestions.slice(t,e).map(((r,n)=>this.renderOption(r,this.select===n+t,0===n&&t>0,n+t===e-1&&e<this.choices.length))).join("\n");this.outputText+="\n"+(r||n.gray(this.fallback.title))}this.out.write(s.line+o.to(0)+this.outputText)}}},2869(t,e,r){"use strict";const n=r(1394),{cursor:i}=r(723),s=r(405),{clear:o,style:a,figures:l}=r(1189);t.exports=class extends s{constructor(t={}){t.overrideRender=!0,super(t),this.inputValue="",this.clear=o("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>!this.inputValue||(!("string"!=typeof t.title||!t.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof t.value||!t.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const e=this.filteredOptions.findIndex((e=>e===t));this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){" "===t?this.handleSpaceToggle():this.handleInputChange(t)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(t,e,r){let i;return i=e.disabled?t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):t===r?n.cyan().underline(e.title):e.title,(e.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=o(t,this.out.columns)}}},948(t,e,r){const n=r(1394),i=r(4872),{style:s,clear:o}=r(1189),{erase:a,cursor:l}=r(723);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){return"y"===t.toLowerCase()?(this.value=!0,this.submit()):"n"===t.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(l.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(a.line+l.to(0)+this.outputText))}}},2378(t,e,r){"use strict";const n=r(1394),i=r(4872),{style:s,clear:o,figures:a}=r(1189),{erase:l,cursor:u}=r(723),{DatePart:h,Meridiem:c,Day:d,Hours:f,Milliseconds:p,Minutes:g,Month:b,Seconds:m,Year:y}=r(7957),w=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,_={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new d(t),3:t=>new b(t),4:t=>new y(t),5:t=>new c(t),6:t=>new f(t),7:t=>new g(t),8:t=>new m(t),9:t=>new p(t)},v={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(v,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.mask||"YYYY-MM-DD HH:mm:ss",this.clear=o("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=w.exec(t);){let t=e.shift(),r=e.findIndex((t=>null!=t));this.parts.push(r in _?_[r]({token:e[r]||t,date:this.date,parts:this.parts,locales:this.locales}):e[r]||t)}let r=this.parts.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof h))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let t=this.parts[this.cursor].prev();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof h))),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(u.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.parts.reduce(((t,e,r)=>t.concat(r!==this.cursor||this.done?e:n.cyan().underline(e.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":a.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(l.line+u.to(0)+this.outputText))}}},2064(t,e,r){"use strict";t.exports={TextPrompt:r(4785),SelectPrompt:r(5646),TogglePrompt:r(1494),DatePrompt:r(2378),NumberPrompt:r(7679),MultiselectPrompt:r(405),AutocompletePrompt:r(4230),AutocompleteMultiselectPrompt:r(2869),ConfirmPrompt:r(948)}},405(t,e,r){"use strict";const n=r(1394),{cursor:i}=r(723),s=r(4872),{clear:o,figures:a,style:l,wrap:u,entriesToDisplay:h}=r(1189);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(void 0===t.value?e:t.value),selected:t&&t.selected,disabled:t&&t.disabled}))),this.clear=o("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map((t=>!t.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const t=this.value.filter((t=>t.selected));this.minSelected&&t.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((e=>e.selected=t)),this.render()}_(t,e){if(" "===t)this.handleSpaceToggle();else{if("a"!==t)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,e,r,i){const s=(e.selected?n.green(a.radioOn):a.radioOff)+" "+i+" ";let o,l;return e.disabled?o=t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):(o=t===r?n.cyan().underline(e.title):e.title,t===r&&e.description&&(l=` - ${e.description}`,(s.length+o.length+l.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(l="\n"+u(e.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(l||"")}paginateOptions(t){if(0===t.length)return n.red("No matches for this query.");let e,{startIndex:r,endIndex:i}=h(this.cursor,t.length,this.optionsPerPage),s=[];for(let n=r;n<i;n++)e=n===r&&r>0?a.arrowUp:n===i-1&&i<t.length?a.arrowDown:" ",s.push(this.renderOption(this.cursor,t[n],n,e));return"\n"+s.join("\n")}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=o(t,this.out.columns)}}},7679(t,e,r){const n=r(1394),i=r(4872),{cursor:s,erase:o}=r(723),{style:a,figures:l,clear:u,lines:h}=r(1189),c=/[0-9]/,d=t=>void 0!==t,f=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r};t.exports=class extends i{constructor(t={}){super(t),this.transform=a.render(t.style),this.msg=t.message,this.initial=d(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=d(t.min)?t.min:-1/0,this.max=d(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${f(t,this.round)}`),this._value=f(t,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return"-"===t||"."===t&&this.float||c.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=""!==t?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let t=this.value;this.value=""!==t?t:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let t=this.value.toString();if(0===t.length)return this.bell();this.value=this.parse(t=t.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(t,e){if(!this.valid(t))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=r,this.color="cyan","."===t)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(s.down(h(this.outputError,this.out.columns)-1)+u(this.outputError,this.out.columns)),this.out.write(u(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:n[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":l.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore))}}},4872(t,e,r){"use strict";const n=r(3785),{action:i}=r(1189),s=r(4434),{beep:o,cursor:a}=r(723),l=r(1394);t.exports=class extends s{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(t,e)=>{let n=i(e,r);!1===n?this._&&this._(t,e):"function"==typeof this[n]?this[n](e):this.bell()};this.close=()=>{this.out.write(a.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(o)}render(){this.onRender(l),this.firstRender&&(this.firstRender=!1)}}},5646(t,e,r){"use strict";const n=r(1394),i=r(4872),{style:s,clear:o,figures:a,wrap:l,entriesToDisplay:u}=r(1189),{cursor:h}=r(723);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),value:t&&(void 0===t.value?e:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}))),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(t,e){if(" "===t)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(h.hide):this.out.write(o(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=u(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let r=t;r<e;r++){let i,s,o="",u=this.choices[r];s=r===t&&t>0?a.arrowUp:r===e-1&&e<this.choices.length?a.arrowDown:" ",u.disabled?(i=this.cursor===r?n.gray().underline(u.title):n.strikethrough().gray(u.title),s=(this.cursor===r?n.bold().gray(a.pointer)+" ":" ")+s):(i=this.cursor===r?n.cyan().underline(u.title):u.title,s=(this.cursor===r?n.cyan(a.pointer)+" ":" ")+s,u.description&&this.cursor===r&&(o=` - ${u.description}`,(s.length+i.length+o.length>=this.out.columns||u.description.split(/\r?\n/).length>1)&&(o="\n"+l(u.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},4785(t,e,r){const n=r(1394),i=r(4872),{erase:s,cursor:o}=r(723),{style:a,clear:l,lines:u,figures:h}=r(1189);t.exports=class extends i{constructor(t={}){super(t),this.transform=a.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=l("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error)return this.red=!0,this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${t}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(o.down(u(this.outputError,this.out.columns)-1)+l(this.outputError,this.out.columns)),this.out.write(l(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":h.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore+o.move(this.cursorOffset,0)))}}},1494(t,e,r){const n=r(1394),i=r(4872),{style:s,clear:o}=r(1189),{cursor:a,erase:l}=r(723);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(t,e){if(" "===t)this.value=!this.value;else if("1"===t)this.value=!0;else{if("0"!==t)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(a.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "),this.out.write(l.line+a.to(0)+this.outputText))}}},8404(t,e,r){"use strict";const n=r(9083),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function o(t=[],{onSubmit:e=s,onCancel:r=s}={}){const l={},u=o._override||{};let h,c,d,f,p,g;t=[].concat(t);const b=async(t,e,r=!1)=>{if(r||!t.validate||!0===t.validate(e))return t.format?await t.format(e,l):e};for(c of t)if(({name:f,type:p}=c),"function"==typeof p&&(p=await p(h,{...l},c),c.type=p),p){for(let t in c){if(i.includes(t))continue;let e=c[t];c[t]="function"==typeof e?await e(h,{...l},g):e}if(g=c,"string"!=typeof c.message)throw new Error("prompt message is required");if(({name:f,type:p}=c),void 0===n[p])throw new Error(`prompt type (${p}) is not defined`);if(void 0===u[c.name]||(h=await b(c,u[c.name]),void 0===h)){try{h=o._injected?a(o._injected,c.initial):await n[p](c),l[f]=h=await b(c,h,!0),d=await e(c,h,l)}catch(t){d=!await r(c,l)}if(d)return l}else l[f]=h}return l}function a(t,e){const r=t.shift();if(r instanceof Error)throw r;return void 0===r?e:r}t.exports=Object.assign(o,{prompt:o,prompts:n,inject:function(t){o._injected=(o._injected||[]).concat(t)},override:function(t){o._override=Object.assign({},t)}})},9083(t,e,r){"use strict";const n=e,i=r(2064),s=t=>t;function o(t,e,r={}){return new Promise(((n,o)=>{const a=new i[t](e),l=r.onAbort||s,u=r.onSubmit||s,h=r.onExit||s;a.on("state",e.onState||s),a.on("submit",(t=>n(u(t)))),a.on("exit",(t=>n(h(t)))),a.on("abort",(t=>o(l(t))))}))}n.text=t=>o("TextPrompt",t),n.password=t=>(t.style="password",n.text(t)),n.invisible=t=>(t.style="invisible",n.text(t)),n.number=t=>o("NumberPrompt",t),n.date=t=>o("DatePrompt",t),n.confirm=t=>o("ConfirmPrompt",t),n.list=t=>{const e=t.separator||",";return o("TextPrompt",t,{onSubmit:t=>t.split(e).map((t=>t.trim()))})},n.toggle=t=>o("TogglePrompt",t),n.select=t=>o("SelectPrompt",t),n.multiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("MultiselectPrompt",t,{onAbort:e,onSubmit:e})},n.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};const a=(t,e)=>Promise.resolve(e.filter((e=>e.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));n.autocomplete=t=>(t.suggest=t.suggest||a,t.choices=[].concat(t.choices||[]),o("AutocompletePrompt",t))},3075(t){"use strict";t.exports=(t,e)=>{if(!t.meta||"escape"===t.name){if(t.ctrl){if("a"===t.name)return"first";if("c"===t.name)return"abort";if("d"===t.name)return"abort";if("e"===t.name)return"last";if("g"===t.name)return"reset"}if(e){if("j"===t.name)return"down";if("k"===t.name)return"up"}return"return"===t.name||"enter"===t.name?"submit":"backspace"===t.name?"delete":"delete"===t.name?"deleteForward":"abort"===t.name?"abort":"escape"===t.name?"exit":"tab"===t.name?"next":"pagedown"===t.name?"nextPage":"pageup"===t.name?"prevPage":"home"===t.name?"home":"end"===t.name?"end":"up"===t.name?"up":"down"===t.name?"down":"right"===t.name?"right":"left"===t.name&&"left"}}},8868(t,e,r){"use strict";const n=r(5815),{erase:i,cursor:s}=r(723);t.exports=function(t,e){if(!e)return i.line+s.to(0);let r=0;const o=t.split(/\r?\n/);for(let t of o)r+=1+Math.floor(Math.max([...n(t)].length-1,0)/e);return i.lines(r)}},4536(t){"use strict";t.exports=(t,e,r)=>{r=r||e;let n=Math.min(e-r,t-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,e)}}},5992(t){"use strict";const e={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},r={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},n="win32"===process.platform?r:e;t.exports=n},1189(t,e,r){"use strict";t.exports={action:r(3075),clear:r(8868),style:r(4792),strip:r(5815),figures:r(5992),lines:r(4182),wrap:r(869),entriesToDisplay:r(4536)}},4182(t,e,r){"use strict";const n=r(5815);t.exports=function(t,e){let r=String(n(t)||"").split(/\r?\n/);return e?r.map((t=>Math.ceil(t.length/e))).reduce(((t,e)=>t+e)):r.length}},5815(t){"use strict";t.exports=t=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return"string"==typeof t?t.replace(r,""):t}},4792(t,e,r){"use strict";const n=r(1394),i=r(5992),s=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});t.exports={styles:s,render:t=>s[t]||s.default,symbols:o,symbol:(t,e,r)=>e?o.aborted:r?o.exited:t?o.done:o.default,delimiter:t=>n.gray(t?i.ellipsis:i.pointerSmall),item:(t,e)=>n.gray(t?e?i.pointerSmall:"+":i.line)}},869(t){"use strict";t.exports=(t,e={})=>{const r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",n=e.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,e)=>(e.length+r.length>=n||t[t.length-1].length+e.length+1<n?t[t.length-1]+=` ${e}`:t.push(`${r}${e}`),t)),[r]).join("\n"))).join("\n")}},6965(t,e,r){t.exports=h;const n=r(9896),{EventEmitter:i}=r(4434),{Minimatch:s}=r(5835),{resolve:o}=r(6928);function a(t,e){return new Promise(((r,i)=>{(e?n.stat:n.lstat)(t,((n,i)=>{if(n)if("ENOENT"===n.code)r(e?a(t,!1):null);else r(null);else r(i)}))}))}async function*l(t,e,r,i,s,o){let u=await function(t,e){return new Promise(((r,i)=>{n.readdir(t,{withFileTypes:!0},((t,n)=>{if(t)switch(t.code){case"ENOTDIR":e?i(t):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(t)}else r(n)}))}))}(e+t,o);for(const n of u){let o=n.name;void 0===o&&(o=n,i=!0);const u=t+"/"+o,h=u.slice(1),c=e+"/"+h;let d=null;(i||r)&&(d=await a(c,r)),d||void 0===n.name||(d=n),null===d&&(d={isDirectory:()=>!1}),d.isDirectory()?s(h)||(yield{relative:h,absolute:c,stats:d},yield*l(u,e,r,i,s,!1)):yield{relative:h,absolute:c,stats:d}}}class u extends i{constructor(t,e,r){if(super(),"function"==typeof e&&(r=e,e=null),this.options=function(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}(e||{}),this.matchers=[],this.options.pattern){const t=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=t.map((t=>new s(t,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}if(this.ignoreMatchers=[],this.options.ignore){const t=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=t.map((t=>new s(t,{dot:!0})))}if(this.skipMatchers=[],this.options.skip){const t=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=t.map((t=>new s(t,{dot:!0})))}this.iterator=async function*(t,e,r,n){yield*l("",t,e,r,n,!0)}(o(t||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,r&&(this._matches=[],this.on("match",(t=>this._matches.push(this.options.absolute?t.absolute:t.relative))),this.on("error",(t=>r(t))),this.on("end",(()=>r(null,this._matches)))),setTimeout((()=>this._next()),0)}_shouldSkipDirectory(t){return this.skipMatchers.some((e=>e.match(t)))}_fileMatches(t,e){const r=t+(e?"/":"");return(0===this.matchers.length||this.matchers.some((t=>t.match(r))))&&!this.ignoreMatchers.some((t=>t.match(r)))&&(!this.options.nodir||!e)}_next(){this.paused||this.aborted?this.inactive=!0:this.iterator.next().then((t=>{if(t.done)this.emit("end");else{const e=t.value.stats.isDirectory();if(this._fileMatches(t.value.relative,e)){let r=t.value.relative,n=t.value.absolute;this.options.mark&&e&&(r+="/",n+="/"),this.options.stat?this.emit("match",{relative:r,absolute:n,stat:t.value.stats}):this.emit("match",{relative:r,absolute:n})}this._next(this.iterator)}})).catch((t=>{this.abort(),this.emit("error",t),t.code||this.options.silent||console.error(t)}))}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}}function h(t,e,r){return new u(t,e,r)}h.ReaddirGlob=u},8664(t){const e="object"==typeof process&&process&&"win32"===process.platform;t.exports=e?{sep:"\\"}:{sep:"/"}},5835(t,e,r){const n=t.exports=(t,e,r={})=>(b(e),!(!r.nocomment&&"#"===e.charAt(0))&&new w(e,r).match(t));t.exports=n;const i=r(8664);n.sep=i.sep;const s=Symbol("globstar **");n.GLOBSTAR=s;const o=r(8928),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},l="[^/]",u=l+"*?",h=t=>t.split("").reduce(((t,e)=>(t[e]=!0,t)),{}),c=h("().*{}+?[]^$\\!"),d=h("[.("),f=/\/+/;n.filter=(t,e={})=>(r,i,s)=>n(r,t,e);const p=(t,e={})=>{const r={};return Object.keys(t).forEach((e=>r[e]=t[e])),Object.keys(e).forEach((t=>r[t]=e[t])),r};n.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return n;const e=n,r=(r,n,i)=>e(r,n,p(t,i));return(r.Minimatch=class extends e.Minimatch{constructor(e,r){super(e,p(t,r))}}).defaults=r=>e.defaults(p(t,r)).Minimatch,r.filter=(r,n)=>e.filter(r,p(t,n)),r.defaults=r=>e.defaults(p(t,r)),r.makeRe=(r,n)=>e.makeRe(r,p(t,n)),r.braceExpand=(r,n)=>e.braceExpand(r,p(t,n)),r.match=(r,n,i)=>e.match(r,n,p(t,i)),r},n.braceExpand=(t,e)=>g(t,e);const g=(t,e={})=>(b(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:o(t)),b=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},m=Symbol("subparse");n.makeRe=(t,e)=>new w(t,e||{}).makeRe(),n.match=(t,e,r={})=>{const n=new w(e,r);return t=t.filter((t=>n.match(t))),n.options.nonull&&!t.length&&t.push(e),t};const y=t=>t.replace(/[[\]\\]/g,"\\$&");class w{constructor(t,e){b(t),e||(e={}),this.options=e,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}debug(){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();let r=this.globSet=this.braceExpand();e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,r),r=this.globParts=r.map((t=>t.split(f))),this.debug(this.pattern,r),r=r.map(((t,e,r)=>t.map(this.parse,this))),this.debug(this.pattern,r),r=r.filter((t=>-1===t.indexOf(!1))),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;const t=this.pattern;let e=!1,r=0;for(let n=0;n<t.length&&"!"===t.charAt(n);n++)e=!e,r++;r&&(this.pattern=t.slice(r)),this.negate=e}matchOne(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,o=0,a=t.length,l=e.length;i<a&&o<l;i++,o++){this.debug("matchOne loop");var u,h=e[o],c=t[i];if(this.debug(e,h,c),!1===h)return!1;if(h===s){this.debug("GLOBSTAR",[e,h,c]);var d=i,f=o+1;if(f===l){for(this.debug("** at the end");i<a;i++)if("."===t[i]||".."===t[i]||!n.dot&&"."===t[i].charAt(0))return!1;return!0}for(;d<a;){var p=t[d];if(this.debug("\nglobstar while",t,d,e,f,p),this.matchOne(t.slice(d),e.slice(f),r))return this.debug("globstar found match!",d,a,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,d,e,f);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",t,d,e,f),d!==a))}if("string"==typeof h?(u=c===h,this.debug("string match",h,c,u)):(u=c.match(h),this.debug("pattern match",h,c,u)),!u)return!1}if(i===a&&o===l)return!0;if(i===a)return r;if(o===l)return i===a-1&&""===t[i];throw new Error("wtf?")}braceExpand(){return g(this.pattern,this.options)}parse(t,e){b(t);const r=this.options;if("**"===t){if(!r.noglobstar)return s;t="*"}if(""===t)return"";let n="",i=!1,o=!1;const h=[],f=[];let p,g,w,_,v=!1,S=-1,E=-1,x="."===t.charAt(0),A=r.dot||x;const R=t=>"."===t.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",O=()=>{if(p){switch(p){case"*":n+=u,i=!0;break;case"?":n+=l,i=!0;break;default:n+="\\"+p}this.debug("clearStateChar %j %j",p,n),p=!1}};for(let e,s=0;s<t.length&&(e=t.charAt(s));s++)if(this.debug("%s\t%s %s %j",t,s,n,e),o){if("/"===e)return!1;c[e]&&(n+="\\"),n+=e,o=!1}else switch(e){case"/":return!1;case"\\":if(v&&"-"===t.charAt(s+1)){n+=e;continue}O(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",t,s,n,e),v){this.debug(" in class"),"!"===e&&s===E+1&&(e="^"),n+=e;continue}if("*"===e&&"*"===p)continue;this.debug("call clearStateChar %j",p),O(),p=e,r.noext&&O();continue;case"(":{if(v){n+="(";continue}if(!p){n+="\\(";continue}const e={type:p,start:s-1,reStart:n.length,open:a[p].open,close:a[p].close};this.debug(this.pattern,"\t",e),h.push(e),n+=e.open,0===e.start&&"!"!==e.type&&(x=!0,n+=R(t.slice(s+1))),this.debug("plType %j %j",p,n),p=!1;continue}case")":{const t=h[h.length-1];if(v||!t){n+="\\)";continue}h.pop(),O(),i=!0,w=t,n+=w.close,"!"===w.type&&f.push(Object.assign(w,{reEnd:n.length}));continue}case"|":{const e=h[h.length-1];if(v||!e){n+="\\|";continue}O(),n+="|",0===e.start&&"!"!==e.type&&(x=!0,n+=R(t.slice(s+1)));continue}case"[":if(O(),v){n+="\\"+e;continue}v=!0,E=s,S=n.length,n+=e;continue;case"]":if(s===E+1||!v){n+="\\"+e;continue}g=t.substring(E+1,s);try{RegExp("["+y(g.replace(/\\([^-\]])/g,"$1"))+"]"),n+=e}catch(t){n=n.substring(0,S)+"(?:$.)"}i=!0,v=!1;continue;default:O(),!c[e]||"^"===e&&v||(n+="\\"),n+=e}for(v&&(g=t.slice(E+1),_=this.parse(g,m),n=n.substring(0,S)+"\\["+_[0],i=i||_[1]),w=h.pop();w;w=h.pop()){let t;t=n.slice(w.reStart+w.open.length),this.debug("setting tail",n,w),t=t.replace(/((?:\\{2}){0,64})(\\?)\|/g,((t,e,r)=>(r||(r="\\"),e+e+r+"|"))),this.debug("tail=%j\n %s",t,t,w,n);const e="*"===w.type?u:"?"===w.type?l:"\\"+w.type;i=!0,n=n.slice(0,w.reStart)+e+"\\("+t}O(),o&&(n+="\\\\");const T=d[n.charAt(0)];for(let t=f.length-1;t>-1;t--){const r=f[t],i=n.slice(0,r.reStart),s=n.slice(r.reStart,r.reEnd-8);let o=n.slice(r.reEnd);const a=n.slice(r.reEnd-8,r.reEnd)+o,l=i.split(")").length,u=i.split("(").length-l;let h=o;for(let t=0;t<u;t++)h=h.replace(/\)[+*?]?/,"");o=h;n=i+s+o+(""===o&&e!==m?"(?:$|\\/)":"")+a}if(""!==n&&i&&(n="(?=.)"+n),T&&(n=(x?"":A?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+n),e===m)return[n,i];if(r.nocase&&!i&&(i=t.toUpperCase()!==t.toLowerCase()),!i)return(t=>t.replace(/\\(.)/g,"$1"))(t);const k=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",k),{_glob:t,_src:n})}catch(t){return new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,r=e.noglobstar?u:e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=e.nocase?"i":"";let i=t.map((t=>(t=t.map((t=>"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===s?s:t._src)).reduce(((t,e)=>(t[t.length-1]===s&&e===s||t.push(e),t)),[]),t.forEach(((e,n)=>{e===s&&t[n-1]!==s&&(0===n?t.length>1?t[n+1]="(?:\\/|"+r+"\\/)?"+t[n+1]:t[n]=r:n===t.length-1?t[n-1]+="(?:\\/|"+r+")?":(t[n-1]+="(?:\\/|\\/"+r+"\\/)"+t[n+1],t[n+1]=s))})),t.filter((t=>t!==s)).join("/")))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(t){this.regexp=!1}return this.regexp}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const r=this.options;"/"!==i.sep&&(t=t.split(i.sep).join("/")),t=t.split(f),this.debug(this.pattern,"split",t);const n=this.set;let s;this.debug(this.pattern,"set",n);for(let e=t.length-1;e>=0&&(s=t[e],!s);e--);for(let i=0;i<n.length;i++){const o=n[i];let a=t;r.matchBase&&1===o.length&&(a=[s]);if(this.matchOne(a,o,e))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(t){return n.defaults(t).Minimatch}}n.Minimatch=w},2861(t,e,r){var n=r(181),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},723(t){"use strict";const e="[",r={to:(t,r)=>r?`${e}${r+1};${t+1}H`:`${e}${t+1}G`,move(t,r){let n="";return t<0?n+=`${e}${-t}D`:t>0&&(n+=`${e}${t}C`),r<0?n+=`${e}${-r}A`:r>0&&(n+=`${e}${r}B`),n},up:(t=1)=>`${e}${t}A`,down:(t=1)=>`${e}${t}B`,forward:(t=1)=>`${e}${t}C`,backward:(t=1)=>`${e}${t}D`,nextLine:(t=1)=>`${e}E`.repeat(t),prevLine:(t=1)=>`${e}F`.repeat(t),left:`${e}G`,hide:`${e}?25l`,show:`${e}?25h`,save:"7",restore:"8"},n={up:(t=1)=>`${e}S`.repeat(t),down:(t=1)=>`${e}T`.repeat(t)},i={screen:`${e}2J`,up:(t=1)=>`${e}1J`.repeat(t),down:(t=1)=>`${e}J`.repeat(t),line:`${e}2K`,lineEnd:`${e}K`,lineStart:`${e}1K`,lines(t){let e="";for(let n=0;n<t;n++)e+=this.line+(n<t-1?r.up():"");return t&&(e+=r.left),e}};t.exports={cursor:r,scroll:n,erase:i,beep:""}},8179(t,e,r){const{EventEmitter:n}=r(4434),i=new Error("Stream was destroyed"),s=new Error("Premature close"),o=r(6080),a=r(5335),l=536870911,u=1^l,h=2^l,c=32,d=64,f=128,p=256,g=1024,b=2048,m=4096,y=8192,w=16384,_=32768,v=131072,S=131328,E=16^l,x=536805375,A=768^l,R=536838143,O=536739839,T=1<<18,k=2<<18,M=4<<18,P=8<<18,I=16<<18,L=32<<18,D=64<<18,C=128<<18,N=256<<18,j=512<<18,F=1024<<18,$=535822335,W=503316479,B=268435455,U=262160,z=536608751,H=8404992,G=14,V=15,q=8405006,Y=33587200,K=33587215,Z=2359296,J=270794767,Q=Symbol.asyncIterator||Symbol("asyncIterator");class X{constructor(t,{highWaterMark:e=16384,map:r=null,mapWritable:n,byteLength:i,byteLengthWritable:s}={}){this.stream=t,this.queue=new o,this.highWaterMark=e,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=s||i||Et,this.map=n||r,this.afterWrite=ot.bind(this),this.afterUpdateNextTick=ut.bind(this)}get ended(){return!!(this.stream._duplexState&L)}push(t){return!(142606350&this.stream._duplexState)&&(null!==this.map&&(t=this.map(t)),this.buffered+=this.byteLength(t),this.queue.push(t),this.buffered<this.highWaterMark?(this.stream._duplexState|=P,!0):(this.stream._duplexState|=6291456,!1))}shift(){const t=this.queue.shift();return this.buffered-=this.byteLength(t),0===this.buffered&&(this.stream._duplexState&=534773759),t}end(t){"function"==typeof t?this.stream.once("finish",t):null!=t&&this.push(t),this.stream._duplexState=(this.stream._duplexState|j)&$}autoBatch(t,e){const r=[],n=this.stream;for(r.push(t);(n._duplexState&J)===Z;)r.push(n._writableState.shift());if(n._duplexState&V)return e(null);n._writev(r,e)}update(){const t=this.stream;t._duplexState|=k;do{for(;(t._duplexState&J)===P;){const e=this.shift();t._duplexState|=67371008,t._write(e,this.afterWrite)}1310720&t._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());t._duplexState&=536346623}updateNonPrimary(){const t=this.stream;if((144965647&t._duplexState)===j)return t._duplexState=t._duplexState|T,void t._final(it.bind(this));4!=(t._duplexState&G)?1==(t._duplexState&K)&&(t._duplexState=(t._duplexState|U)&u,t._open(ht.bind(this))):t._duplexState&Y||(t._duplexState|=U,t._destroy(st.bind(this)))}continueUpdate(){return!!(this.stream._duplexState&C)&&(this.stream._duplexState&=W,!0)}updateCallback(){(35127311&this.stream._duplexState)===M?this.update():this.updateNextTick()}updateNextTick(){this.stream._duplexState&C||(this.stream._duplexState|=C,this.stream._duplexState&k||queueMicrotask(this.afterUpdateNextTick))}}class tt{constructor(t,{highWaterMark:e=16384,map:r=null,mapReadable:n,byteLength:i,byteLengthReadable:s}={}){this.stream=t,this.queue=new o,this.highWaterMark=0===e?1:e,this.buffered=0,this.readAhead=e>0,this.error=null,this.pipeline=null,this.byteLength=s||i||Et,this.map=n||r,this.pipeTo=null,this.afterRead=at.bind(this),this.afterUpdateNextTick=lt.bind(this)}get ended(){return!!(this.stream._duplexState&w)}pipe(t,e){if(null!==this.pipeTo)throw new Error("Can only pipe to one destination");if("function"!=typeof e&&(e=null),this.stream._duplexState|=512,this.pipeTo=t,this.pipeline=new rt(this.stream,t,e),e&&this.stream.on("error",xt),St(t))t._writableState.pipeline=this.pipeline,e&&t.on("error",xt),t.on("finish",this.pipeline.finished.bind(this.pipeline));else{const e=this.pipeline.done.bind(this.pipeline,t),r=this.pipeline.done.bind(this.pipeline,t,null);t.on("error",e),t.on("close",r),t.on("finish",this.pipeline.finished.bind(this.pipeline))}t.on("drain",nt.bind(this)),this.stream.emit("piping",t),t.emit("pipe",this.stream)}push(t){const e=this.stream;return null===t?(this.highWaterMark=0,e._duplexState=536805311&e._duplexState|1024,!1):null!==this.map&&null===(t=this.map(t))?(e._duplexState&=x,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(t),this.queue.push(t),e._duplexState=(e._duplexState|f)&x,this.buffered<this.highWaterMark)}shift(){const t=this.queue.shift();return this.buffered-=this.byteLength(t),0===this.buffered&&(this.stream._duplexState&=536862591),t}unshift(t){const e=[null!==this.map?this.map(t):t];for(;this.buffered>0;)e.push(this.shift());for(let t=0;t<e.length-1;t++){const r=e[t];this.buffered+=this.byteLength(r),this.queue.push(r)}this.push(e[e.length-1])}read(){const t=this.stream;if((16527&t._duplexState)===f){const e=this.shift();return null!==this.pipeTo&&!1===this.pipeTo.write(e)&&(t._duplexState&=A),t._duplexState&b&&t.emit("data",e),e}return!1===this.readAhead&&(t._duplexState|=v,this.updateNextTick()),null}drain(){const t=this.stream;for(;(16527&t._duplexState)===f&&768&t._duplexState;){const e=this.shift();null!==this.pipeTo&&!1===this.pipeTo.write(e)&&(t._duplexState&=A),t._duplexState&b&&t.emit("data",e)}}update(){const t=this.stream;t._duplexState|=c;do{for(this.drain();this.buffered<this.highWaterMark&&(214047&t._duplexState)===v;)t._duplexState|=65552,t._read(this.afterRead),this.drain();4224==(12431&t._duplexState)&&(t._duplexState|=y,t.emit("readable")),80&t._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());t._duplexState&=536870879}updateNonPrimary(){const t=this.stream;(1167&t._duplexState)===g&&(t._duplexState=536869887&t._duplexState|16384,t.emit("end"),(t._duplexState&q)===H&&(t._duplexState|=4),null!==this.pipeTo&&this.pipeTo.end()),4!=(t._duplexState&G)?1==(t._duplexState&K)&&(t._duplexState=(t._duplexState|U)&u,t._open(ht.bind(this))):t._duplexState&Y||(t._duplexState|=U,t._destroy(st.bind(this)))}continueUpdate(){return!!(this.stream._duplexState&_)&&(this.stream._duplexState&=R,!0)}updateCallback(){(32879&this.stream._duplexState)===d?this.update():this.updateNextTick()}updateNextTickIfOpen(){32769&this.stream._duplexState||(this.stream._duplexState|=_,this.stream._duplexState&c||queueMicrotask(this.afterUpdateNextTick))}updateNextTick(){this.stream._duplexState&_||(this.stream._duplexState|=_,this.stream._duplexState&c||queueMicrotask(this.afterUpdateNextTick))}}class et{constructor(t){this.data=null,this.afterTransform=ct.bind(t),this.afterFinal=null}}class rt{constructor(t,e,r){this.from=t,this.to=e,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(t,e){e&&(this.error=e),t!==this.to||(this.to=null,null===this.from)?t!==this.from||(this.from=null,null===this.to)?(null!==this.afterPipe&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null):t._duplexState&w||this.to.destroy(this.error||new Error("Readable stream closed before ending")):this.from._duplexState&w&&this.pipeToFinished||this.from.destroy(this.error||new Error("Writable stream closed prematurely"))}}function nt(){this.stream._duplexState|=512,this.updateCallback()}function it(t){const e=this.stream;t&&e.destroy(t),e._duplexState&G||(e._duplexState|=L,e.emit("finish")),(e._duplexState&q)===H&&(e._duplexState|=4),e._duplexState&=402391039,e._duplexState&k?this.updateNextTick():this.update()}function st(t){const e=this.stream;t||this.error===i||(t=this.error),t&&e.emit("error",t),e._duplexState|=8,e.emit("close");const r=e._readableState,n=e._writableState;if(null!==r&&null!==r.pipeline&&r.pipeline.done(e,t),null!==n){for(;null!==n.drains&&n.drains.length>0;)n.drains.shift().resolve(!1);null!==n.pipeline&&n.pipeline.done(e,t)}}function ot(t){const e=this.stream;t&&e.destroy(t),e._duplexState&=469499903,null!==this.drains&&function(t){for(let e=0;e<t.length;e++)0==--t[e].writes&&(t.shift().resolve(!0),e--)}(this.drains),(6553615&e._duplexState)===I&&(e._duplexState&=532676607,(e._duplexState&D)===D&&e.emit("drain")),this.updateCallback()}function at(t){t&&this.stream.destroy(t),this.stream._duplexState&=E,!1!==this.readAhead||this.stream._duplexState&p||(this.stream._duplexState&=O),this.updateCallback()}function lt(){this.stream._duplexState&c||(this.stream._duplexState&=R,this.update())}function ut(){this.stream._duplexState&k||(this.stream._duplexState&=W,this.update())}function ht(t){const e=this.stream;t&&e.destroy(t),4&e._duplexState||(17423&e._duplexState||(e._duplexState|=d),142606351&e._duplexState||(e._duplexState|=M),e.emit("open")),e._duplexState&=z,null!==e._writableState&&e._writableState.updateCallback(),null!==e._readableState&&e._readableState.updateCallback()}function ct(t,e){null!=e&&this.push(e),this._writableState.afterWrite(t)}function dt(t){null!==this._readableState&&("data"===t&&(this._duplexState|=133376,this._readableState.updateNextTick()),"readable"===t&&(this._duplexState|=m,this._readableState.updateNextTick())),null!==this._writableState&&"drain"===t&&(this._duplexState|=D,this._writableState.updateNextTick())}class ft extends n{constructor(t){super(),this._duplexState=0,this._readableState=null,this._writableState=null,t&&(t.open&&(this._open=t.open),t.destroy&&(this._destroy=t.destroy),t.predestroy&&(this._predestroy=t.predestroy),t.signal&&t.signal.addEventListener("abort",At.bind(this))),this.on("newListener",dt)}_open(t){t(null)}_destroy(t){t(null)}_predestroy(){}get readable(){return null!==this._readableState||void 0}get writable(){return null!==this._writableState||void 0}get destroyed(){return!!(8&this._duplexState)}get destroying(){return!!(this._duplexState&G)}destroy(t){this._duplexState&G||(t||(t=i),this._duplexState=535822271&this._duplexState|4,null!==this._readableState&&(this._readableState.highWaterMark=0,this._readableState.error=t),null!==this._writableState&&(this._writableState.highWaterMark=0,this._writableState.error=t),this._duplexState|=2,this._predestroy(),this._duplexState&=h,null!==this._readableState&&this._readableState.updateNextTick(),null!==this._writableState&&this._writableState.updateNextTick())}}class pt extends ft{constructor(t){super(t),this._duplexState|=8519681,this._readableState=new tt(this,t),t&&(!1===this._readableState.readAhead&&(this._duplexState&=O),t.read&&(this._read=t.read),t.eagerOpen&&this._readableState.updateNextTick(),t.encoding&&this.setEncoding(t.encoding))}setEncoding(t){const e=new a(t),r=this._readableState.map||_t;return this._readableState.map=function(t){const n=e.push(t);return""===n&&(0!==t.byteLength||e.remaining>0)?null:r(n)},this}_read(t){t(null)}pipe(t,e){return this._readableState.updateNextTick(),this._readableState.pipe(t,e),t}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(t){return this._readableState.updateNextTickIfOpen(),this._readableState.push(t)}unshift(t){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(t)}resume(){return this._duplexState|=S,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=!1===this._readableState.readAhead?536739583:536870655,this}static _fromAsyncIterator(t,e){let r;const n=new pt({...e,read(e){t.next().then(i).then(e.bind(null,null)).catch(e)},predestroy(){r=t.return()},destroy(t){if(!r)return t(null);r.then(t.bind(null,null)).catch(t)}});return n;function i(t){t.done?n.push(null):n.push(t.value)}}static from(t,e){if(St(r=t)&&r.readable)return t;var r;if(t[Q])return this._fromAsyncIterator(t[Q](),e);Array.isArray(t)||(t=void 0===t?[]:[t]);let n=0;return new pt({...e,read(e){this.push(n===t.length?null:t[n++]),e(null)}})}static isBackpressured(t){return!!(17422&t._duplexState)||t._readableState.buffered>=t._readableState.highWaterMark}static isPaused(t){return!(t._duplexState&p)}[Q](){const t=this;let e=null,r=null,n=null;return this.on("error",(t=>{e=t})),this.on("readable",(function(){null!==r&&s(t.read())})),this.on("close",(function(){null!==r&&s(null)})),{[Q](){return this},next:()=>new Promise((function(e,i){r=e,n=i;const o=t.read();null!==o?s(o):8&t._duplexState&&s(null)})),return:()=>o(null),throw:t=>o(t)};function s(s){null!==n&&(e?n(e):null!==s||t._duplexState&w?r({value:s,done:null===s}):n(i),n=r=null)}function o(e){return t.destroy(e),new Promise(((r,n)=>{if(8&t._duplexState)return r({value:void 0,done:!0});t.once("close",(function(){e?n(e):r({value:void 0,done:!0})}))}))}}}class gt extends ft{constructor(t){super(t),this._duplexState|=16385,this._writableState=new X(this,t),t&&(t.writev&&(this._writev=t.writev),t.write&&(this._write=t.write),t.final&&(this._final=t.final),t.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=F}uncork(){this._duplexState&=B,this._writableState.updateNextTick()}_writev(t,e){e(null)}_write(t,e){this._writableState.autoBatch(t,e)}_final(t){t(null)}static isBackpressured(t){return!!(146800654&t._duplexState)}static drained(t){if(t.destroyed)return Promise.resolve(!1);const e=t._writableState;var r;const n=((r=t)._writev!==gt.prototype._writev&&r._writev!==bt.prototype._writev?Math.min(1,e.queue.length):e.queue.length)+(t._duplexState&N?1:0);return 0===n?Promise.resolve(!0):(null===e.drains&&(e.drains=[]),new Promise((t=>{e.drains.push({writes:n,resolve:t})})))}write(t){return this._writableState.updateNextTick(),this._writableState.push(t)}end(t){return this._writableState.updateNextTick(),this._writableState.end(t),this}}class bt extends pt{constructor(t){super(t),this._duplexState=1|this._duplexState&v,this._writableState=new X(this,t),t&&(t.writev&&(this._writev=t.writev),t.write&&(this._write=t.write),t.final&&(this._final=t.final))}cork(){this._duplexState|=F}uncork(){this._duplexState&=B,this._writableState.updateNextTick()}_writev(t,e){e(null)}_write(t,e){this._writableState.autoBatch(t,e)}_final(t){t(null)}write(t){return this._writableState.updateNextTick(),this._writableState.push(t)}end(t){return this._writableState.updateNextTick(),this._writableState.end(t),this}}class mt extends bt{constructor(t){super(t),this._transformState=new et(this),t&&(t.transform&&(this._transform=t.transform),t.flush&&(this._flush=t.flush))}_write(t,e){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=t:this._transform(t,this._transformState.afterTransform)}_read(t){if(null!==this._transformState.data){const e=this._transformState.data;this._transformState.data=null,t(null),this._transform(e,this._transformState.afterTransform)}else t(null)}destroy(t){super.destroy(t),null!==this._transformState.data&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(t,e){e(null,t)}_flush(t){t(null)}_final(t){this._transformState.afterFinal=t,this._flush(yt.bind(this))}}function yt(t,e){const r=this._transformState.afterFinal;if(t)return r(t);null!=e&&this.push(e),this.push(null),r(null)}function wt(t,...e){const r=Array.isArray(t)?[...t,...e]:[t,...e],n=r.length&&"function"==typeof r[r.length-1]?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],o=null,a=null;for(let t=1;t<r.length;t++)o=r[t],St(i)?i.pipe(o,u):(l(i,!0,t>1,u),i.pipe(o)),i=o;if(n){let t=!1;const e=St(o)||!(!o._writableState||!o._writableState.autoDestroy);o.on("error",(t=>{null===a&&(a=t)})),o.on("finish",(()=>{t=!0,e||n(a)})),e&&o.on("close",(()=>n(a||(t?null:s))))}return o;function l(t,e,r,n){t.on("error",n),t.on("close",(function(){if(e&&t._readableState&&!t._readableState.ended)return n(s);if(r&&t._writableState&&!t._writableState.ended)return n(s)}))}function u(t){if(t&&!a){a=t;for(const e of r)e.destroy(t)}}}function _t(t){return t}function vt(t){return!!t._readableState||!!t._writableState}function St(t){return"number"==typeof t._duplexState&&vt(t)}function Et(t){return function(t){return"object"==typeof t&&null!==t&&"number"==typeof t.byteLength}(t)?t.byteLength:1024}function xt(){}function At(){this.destroy(new Error("Stream aborted."))}t.exports={pipeline:wt,pipelinePromise:function(...t){return new Promise(((e,r)=>wt(...t,(t=>{if(t)return r(t);e()}))))},isStream:vt,isStreamx:St,isEnded:function(t){return!!t._readableState&&t._readableState.ended},isFinished:function(t){return!!t._writableState&&t._writableState.ended},isDisturbed:function(t){return!!(1&~t._duplexState)||!!(t._duplexState&Y)},getStreamError:function(t,e={}){const r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return e.all||r!==i?r:null},Stream:ft,Writable:gt,Readable:pt,Duplex:bt,Transform:mt,PassThrough:class extends mt{}}},3141(t,e,r){"use strict";var n=r(2861).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=c,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=o(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},7687(t,e,r){"use strict";const n=r(857),i=r(2018),s=r(5884),{env:o}=process;let a;function l(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function u(t,e){if(0===a)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(t&&!e&&void 0===a)return 0;const r=a||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const t=n.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}s("no-color")||s("no-colors")||s("color=false")||s("color=never")?a=0:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),t.exports={supportsColor:function(t){return l(u(t,t&&t.isTTY))},stdout:l(u(!0,i.isatty(1))),stderr:l(u(!0,i.isatty(2)))}},1837(t,e,r){const n={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{t.exports=r(9896).constants||n}catch{t.exports=n}},2414(t,e,r){const{Writable:n,Readable:i,getStreamError:s}=r(8179),o=r(6080),a=r(7042),l=r(3481),u=a.alloc(0);class h{constructor(){this.buffered=0,this.shifted=0,this.queue=new o,this._offset=0}push(t){this.buffered+=t.byteLength,this.queue.push(t)}shiftFirst(t){return 0===this._buffered?null:this._next(t)}shift(t){if(t>this.buffered)return null;if(0===t)return u;let e=this._next(t);if(t===e.byteLength)return e;const r=[e];for(;(t-=e.byteLength)>0;)e=this._next(t),r.push(e);return a.concat(r)}_next(t){const e=this.queue.peek(),r=e.byteLength-this._offset;if(t>=r){const t=this._offset?e.subarray(this._offset,e.byteLength):e;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,t}return this.buffered-=t,this.shifted+=t,e.subarray(this._offset,this._offset+=t)}}class c extends i{constructor(t,e,r){super(),this.header=e,this.offset=r,this._parent=t}_read(t){0===this.header.size&&this.push(null),this._parent._stream===this&&this._parent._update(),t(null)}_predestroy(){this._parent.destroy(s(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=p(this.header.size),this._parent._update())}_destroy(t){this._detach(),t(null)}}class d extends n{constructor(t){super(t),t||(t={}),this._buffer=new h,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=f,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=t.filenameEncoding||"utf-8",this._allowUnknownFormat=!!t.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(t){if(this._locked=!1,t)return this.destroy(t),void this._continueWrite(t);this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=l.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(t){return this._continueWrite(t),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),0===this._header.size||"directory"===this._header.type?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(t){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=l.decodeLongPath(t,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=l.decodeLongPath(t,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=l.decodePax(t);break;case"pax-header":this._pax=null===this._paxGlobal?l.decodePax(t):Object.assign({},this._paxGlobal,l.decodePax(t))}}_consumeLongHeader(){this._longHeader=!1,this._missing=p(this._header.size);const t=this._buffer.shift(this._header.size);try{this._decodeLongHeader(t)}catch(t){return this._continueWrite(t),!1}return!0}_consumeStream(){const t=this._buffer.shiftFirst(this._missing);if(null===t)return!1;this._missing-=t.byteLength;const e=this._stream.push(t);return 0===this._missing?(this._stream.push(null),e&&this._stream._detach(),e&&!1===this._locked):e}_createStream(){return new c(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;)if(this._missing>0){if(null!==this._stream){if(!1===this._consumeStream())return;continue}if(!0===this._longHeader){if(this._missing>this._buffer.buffered)break;if(!1===this._consumeLongHeader())return!1;continue}const t=this._buffer.shiftFirst(this._missing);null!==t&&(this._missing-=t.byteLength)}else{if(this._buffer.buffered<512)break;if(null!==this._stream||!1===this._consumeHeader())return}this._continueWrite(null)}_continueWrite(t){const e=this._callback;this._callback=f,e(t)}_write(t,e){this._callback=e,this._buffer.push(t),this._update()}_final(t){this._finished=0===this._missing&&0===this._buffer.buffered,t(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(t){this._stream&&this._stream.destroy(s(this)),t(null)}[Symbol.asyncIterator](){let t=null,e=null,r=null,n=null,i=null;const s=this;return this.on("entry",(function(t,s,o){i=o,s.on("error",f),e?(e({value:s,done:!1}),e=r=null):n=s})),this.on("error",(e=>{t=e})),this.on("close",(function(){if(o(t),!e)return;t?r(t):e({value:void 0,done:!0});e=r=null})),{[Symbol.asyncIterator](){return this},next:()=>new Promise(a),return:()=>l(null),throw:t=>l(t)};function o(t){if(!i)return;const e=i;i=null,e(t)}function a(i,a){return t?a(t):n?(i({value:n,done:!1}),void(n=null)):(e=i,r=a,o(null),void(s._finished&&e&&(e({value:void 0,done:!0}),e=r=null)))}function l(t){return s.destroy(t),o(t),new Promise(((e,r)=>{if(s.destroyed)return e({value:void 0,done:!0});s.once("close",(function(){t?r(t):e({value:void 0,done:!0})}))}))}}}function f(){}function p(t){return(t&=511)&&512-t}t.exports=function(t){return new d(t)}},3481(t,e,r){const n=r(7042),i="0".charCodeAt(0),s=n.from([117,115,116,97,114,0]),o=n.from([i,i]),a=n.from([117,115,116,97,114,32]),l=n.from([32,0]),u=257,h=263;function c(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function d(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function f(t,e){return(t=t.toString(8)).length>e?"7777777777777777777".slice(0,e)+" ":"0000000000000000000".slice(0,e-t.length)+t+" "}function p(t,e,r){if(128&(t=t.subarray(e,e+r))[e=0])return function(t){let e;if(128===t[0])e=!0;else{if(255!==t[0])return null;e=!1}const r=[];let n;for(n=t.length-1;n>0;n--){const i=t[n];e?r.push(i):r.push(255-i)}let i=0;const s=r.length;for(n=0;n<s;n++)i+=r[n]*Math.pow(256,n);return e?i:-1*i}(t);{for(;e<t.length&&32===t[e];)e++;const r=(i=c(t,32,e,t.length),s=t.length,o=t.length,"number"!=typeof i?o:(i=~~i)>=s?s:i>=0||(i+=s)>=0?i:0);for(;e<r&&0===t[e];)e++;return r===e?0:parseInt(n.toString(t.subarray(e,r)),8)}var i,s,o}function g(t,e,r,i){return n.toString(t.subarray(e,c(t,0,e,e+r)),i)}function b(t){const e=n.byteLength(t);let r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}e.decodeLongPath=function(t,e){return g(t,0,t.length,e)},e.encodePax=function(t){let e="";t.name&&(e+=b(" path="+t.name+"\n")),t.linkname&&(e+=b(" linkpath="+t.linkname+"\n"));const r=t.pax;if(r)for(const t in r)e+=b(" "+t+"="+r[t]+"\n");return n.from(e)},e.decodePax=function(t){const e={};for(;t.length;){let r=0;for(;r<t.length&&32!==t[r];)r++;const i=parseInt(n.toString(t.subarray(0,r)),10);if(!i)return e;const s=n.toString(t.subarray(r+1,i-1)),o=s.indexOf("=");if(-1===o)return e;e[s.slice(0,o)]=s.slice(o+1),t=t.subarray(i)}return e},e.encode=function(t){const e=n.alloc(512);let r=t.name,a="";if(5===t.typeflag&&"/"!==r[r.length-1]&&(r+="/"),n.byteLength(r)!==r.length)return null;for(;n.byteLength(r)>100;){const t=r.indexOf("/");if(-1===t)return null;a+=a?"/"+r.slice(0,t):r.slice(0,t),r=r.slice(t+1)}return n.byteLength(r)>100||n.byteLength(a)>155||t.linkname&&n.byteLength(t.linkname)>100?null:(n.write(e,r),n.write(e,f(4095&t.mode,6),100),n.write(e,f(t.uid,6),108),n.write(e,f(t.gid,6),116),function(t,e,r){t.toString(8).length>11?function(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=255&t,t=Math.floor(t/256)}(t,e,r):n.write(e,f(t,11),r)}(t.size,e,124),n.write(e,f(t.mtime.getTime()/1e3|0,11),136),e[156]=i+function(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(t.type),t.linkname&&n.write(e,t.linkname,157),n.copy(s,e,u),n.copy(o,e,263),t.uname&&n.write(e,t.uname,265),t.gname&&n.write(e,t.gname,297),n.write(e,f(t.devmajor||0,6),329),n.write(e,f(t.devminor||0,6),337),a&&n.write(e,a,345),n.write(e,f(d(e),6),148),e)},e.decode=function(t,e,r){let o=0===t[156]?0:t[156]-i,c=g(t,0,100,e);const f=p(t,100,8),b=p(t,108,8),m=p(t,116,8),y=p(t,124,12),w=p(t,136,12),_=function(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(o),v=0===t[157]?null:g(t,157,100,e),S=g(t,265,32),E=g(t,297,32),x=p(t,329,8),A=p(t,337,8),R=d(t);if(256===R)return null;if(R!==p(t,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(function(t){return n.equals(s,t.subarray(u,263))}(t))t[345]&&(c=g(t,345,155,e)+"/"+c);else if(function(t){return n.equals(a,t.subarray(u,263))&&n.equals(l,t.subarray(h,265))}(t));else if(!r)throw new Error("Invalid tar header: unknown format.");return 0===o&&c&&"/"===c[c.length-1]&&(o=5),{name:c,mode:f,uid:b,gid:m,size:y,mtime:new Date(1e3*w),type:_,linkname:v,uname:S,gname:E,devmajor:x,devminor:A,pax:null}}},4231(t,e,r){e.extract=r(2414),e.pack=r(446)},446(t,e,r){const{Readable:n,Writable:i,getStreamError:s}=r(8179),o=r(7042),a=r(1837),l=r(3481),u=o.alloc(1024);class h extends i{constructor(t,e,r){super({mapWritable:p,eagerOpen:!0}),this.written=0,this.header=e,this._callback=r,this._linkname=null,this._isLinkname="symlink"===e.type&&!e.linkname,this._isVoid="file"!==e.type&&"contiguous-file"!==e.type,this._finished=!1,this._pack=t,this._openCallback=null,null===this._pack._stream?this._pack._stream=this:this._pack._pending.push(this)}_open(t){this._openCallback=t,this._pack._stream===this&&this._continueOpen()}_continuePack(t){if(null===this._callback)return;const e=this._callback;this._callback=null,e(t)}_continueOpen(){null===this._pack._stream&&(this._pack._stream=this);const t=this._openCallback;if(this._openCallback=null,null!==t){if(this._pack.destroying)return t(new Error("pack stream destroyed"));if(this._pack._finalized)return t(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),t(null)}}_write(t,e){return this._isLinkname?(this._linkname=this._linkname?o.concat([this._linkname,t]):t,e(null)):this._isVoid?t.byteLength>0?e(new Error("No body allowed for this entry")):e():(this.written+=t.byteLength,this._pack.push(t)?e():void(this._pack._drain=e))}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?o.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),f(this._pack,this.header.size),this._pack._done(this))}_final(t){if(this.written!==this.header.size)return t(new Error("Size mismatch"));this._finish(),t(null)}_getError(){return s(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(t){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),t()}}class c extends n{constructor(t){super(t),this._drain=d,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(t,e,r){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");"function"==typeof e&&(r=e,e=null),r||(r=d),t.size&&"symlink"!==t.type||(t.size=0),t.type||(t.type=function(t){switch(t&a.S_IFMT){case a.S_IFBLK:return"block-device";case a.S_IFCHR:return"character-device";case a.S_IFDIR:return"directory";case a.S_IFIFO:return"fifo";case a.S_IFLNK:return"symlink"}return"file"}(t.mode)),t.mode||(t.mode="directory"===t.type?493:420),t.uid||(t.uid=0),t.gid||(t.gid=0),t.mtime||(t.mtime=new Date),"string"==typeof e&&(e=o.from(e));const n=new h(this,t,r);return o.isBuffer(e)?(t.size=e.byteLength,n.write(e),n.end(),n):(n._isVoid,n)}finalize(){this._stream||this._pending.length>0?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(u),this.push(null))}_done(t){t===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(t){if(!t.pax){const e=l.encode(t);if(e)return void this.push(e)}this._encodePax(t)}_encodePax(t){const e=l.encodePax({name:t.name,linkname:t.linkname,pax:t.pax}),r={name:"PaxHeader",mode:t.mode,uid:t.uid,gid:t.gid,size:e.byteLength,mtime:t.mtime,type:"pax-header",linkname:t.linkname&&"PaxHeader",uname:t.uname,gname:t.gname,devmajor:t.devmajor,devminor:t.devminor};this.push(l.encode(r)),this.push(e),f(this,e.byteLength),r.size=t.size,r.type=t.type,this.push(l.encode(r))}_doDrain(){const t=this._drain;this._drain=d,t()}_predestroy(){const t=s(this);for(this._stream&&this._stream.destroy(t);this._pending.length;){const e=this._pending.shift();e.destroy(t),e._continueOpen()}this._doDrain()}_read(t){this._doDrain(),t()}}function d(){}function f(t,e){(e&=511)&&t.push(u.subarray(0,512-e))}function p(t){return o.isBuffer(t)?t:o.from(t)}t.exports=function(t){return new c(t)}},5335(t,e,r){const n=r(4611),i=r(6045);t.exports=class{constructor(t="utf8"){switch(this.encoding=function(t){switch(t=t.toLowerCase()){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}(t),this.encoding){case"utf8":this.decoder=new i;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new n(this.encoding)}}get remaining(){return this.decoder.remaining}push(t){return"string"==typeof t?t:this.decoder.decode(t)}write(t){return this.push(t)}end(t){let e="";return t&&(e=this.push(t)),e+=this.decoder.flush(),e}}},4611(t,e,r){const n=r(7042);t.exports=class{constructor(t){this.encoding=t}get remaining(){return 0}decode(t){return n.toString(t,this.encoding)}flush(){return""}}},6045(t,e,r){const n=r(7042);t.exports=class{constructor(){this.codePoint=0,this.bytesSeen=0,this.bytesNeeded=0,this.lowerBoundary=128,this.upperBoundary=191}get remaining(){return this.bytesSeen}decode(t){if(0===this.bytesNeeded){let e=!0;for(let r=Math.max(0,t.byteLength-4),n=t.byteLength;r<n&&e;r++)e=t[r]<=127;if(e)return n.toString(t,"utf8")}let e="";for(let r=0,n=t.byteLength;r<n;r++){const n=t[r];0!==this.bytesNeeded?n<this.lowerBoundary||n>this.upperBoundary?(this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,e+="�"):(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|63&n,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(e+=String.fromCodePoint(this.codePoint),this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0)):n<=127?e+=String.fromCharCode(n):(this.bytesSeen=1,n>=194&&n<=223?(this.bytesNeeded=2,this.codePoint=31&n):n>=224&&n<=239?(224===n?this.lowerBoundary=160:237===n&&(this.upperBoundary=159),this.bytesNeeded=3,this.codePoint=15&n):n>=240&&n<=244?(240===n&&(this.lowerBoundary=144),244===n&&(this.upperBoundary=143),this.bytesNeeded=4,this.codePoint=7&n):e+="�")}return e}flush(){const t=this.bytesNeeded>0?"�":"";return this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,t}}},3720(t,e,r){"use strict";var n=r(2116);const{DM:i,gu:s,er:o,Ww:a,b7:l,Di:u,a2:h,uB:c,ef:d,c$:f,_V:p}=n;var g=r(9240),b=r.n(g),m=r(6928),y=r.n(m),w=r(9896),_=r.n(w),v=r(5248),S=r.n(v);const E="undefined"!=typeof process&&process.versions&&"electron"in process.versions;const x={error:S().red,warn:S().yellow,info:S().cyan,success:S().green,debug:S().gray};function A(t,e){const r=x[t]||S().white;return(...t)=>{const n=t.join(" ");e(r(n))}}let R;if(E){const t=r(329);t.transports.console.level="warn",t.transports.file.level="info",t.transports.console.format="[{y}-{m}-{d} {h}:{i}:{s}] [{level}] {text}",t.transports.file.format="[{y}-{m}-{d} {h}:{i}:{s}] [{level}] {text}",t.success=(...e)=>{t.info("[SUCCESS]",...e)},R=t}else R={error:A("error",console.error),warn:A("warn",console.warn),info:A("info",console.log),success:A("success",console.log),debug:A("debug",console.log)};const O=R,T=require("crypto");var k=r.n(T),M=r(9023),P=r(9133),I=r.n(P);const L=require("@node-rs/argon2");class D extends Error{constructor(){super(),this.name="DecryptionWrongPasswordError"}}class C extends Error{constructor(){super(),this.name="EncryptedFileMissingMetadataError"}}class N extends Error{operation;constructor(t){super(),this.name="FileReadError",this.operation=t}}class j extends Error{operation;constructor(t){super(),this.name="FileWriteError",this.operation=t}}class F extends Error{version;constructor(t){super(),this.name="UnsupportedDeadboltFileVersion",this.version=t}}class $ extends Error{constructor(){super(),this.name="Argon2OutOfMemoryError"}}var W=r(857);const B=".deadbolt",U=".dbolt",z="DEADBOLT_V",H=13;function G(t){if(null==t)return O.error("filePath is null in prettyPrintFilePath"),"";O.debug("prettyPrintFilePath","{",t,"}");let e=t;if(e.startsWith((0,W.homedir)())&&(e=e.replace((0,W.homedir)(),"~")),e.length>60){const t=e.split(y().sep),r=e.startsWith("~/")?`~${y().sep}${t[1]}`:t[1],n=t[t.length-1],i="...";return`${r}${y().sep}${i}${y().sep}${n}`}return e}function V(t,e,r){const n=t.lastIndexOf(e);return-1===n?t:t.substring(0,n)+r+t.substring(n+e.length)}function q(t){const e=(r=t).endsWith(B)?V(r,B,""):r.endsWith(U)?V(r,U,""):r;var r;const n=e.lastIndexOf("."),i=-1!==n?e.slice(0,n):e,s=-1!==n?e.slice(n):"";let o=e,a=1;for(;_().existsSync(o);)o=`${i}-${a}${s}`,a+=1;return o}var Y;!function(t){t.ENCRYPTION="encryption",t.DECRYPTION_VERIFICATION_OF_ENCRYPTION="verification of encryption (which requires decryption)",t.DECRYPTION="decryption"}(Y||(Y={}));const K=Y,Z="aes-256-gcm",J="1"===process.env.DEADBOLT_ARGON2_TEST_PARAMS,Q=`${z}002`,X={"001":{kdfType:"pbkdf2",pbkdf2Iterations:1e4,saltOffset:0,ivOffset:64,authTagOffset:80,metadataLength:96},"002":{kdfType:"argon2id",argon2Params:{memoryCost:J?64:2097152,timeCost:1,parallelism:J?1:4},saltOffset:H,ivOffset:29,authTagOffset:45,metadataLength:61}},tt="ERROR_FROM_ELECTRON_MAIN_THREAD";function et(t,e){const r=G(e);switch(!0){case t instanceof D:return`${tt}: Failed to decrypt \`${r}\`\nIs the password correct? The file may also be corrupted.`;case t instanceof C:return`${tt}: \`${r}\` is missing metadata.\nIt's likely corrupted.`;case t instanceof N:return`${tt}: Failed to retrieve file contents of \`${r}\` for ${t.operation}.`;case t instanceof F:return`${tt}: \`${r}\` is detected as being V${t.version}, which is not a supported value. Valid values: ${Object.keys(X).join(", ")}.`;case t instanceof $:return`${tt}: \`${r}\` could not be processed: Argon2id ran out of memory.\nDeadbolt requires ~2 GiB of free RAM. Close other applications and try again.`;case t instanceof j:return`${tt}: \`${r}\` failed to be written during \`${t.operation}\`.`;default:return`${tt}: Unhandled error!!! Please report this to https://github.com/alichtman/deadbolt/issues/new with as much detail about what you were doing as possible. \`${t}\``}}function rt(t,e){return new Promise(((r,n)=>{const i=_().createWriteStream(t,{flags:"w+"});i.on("error",n),i.write(e,(e=>{e?n(e):r(t)}))}))}function nt(t){return new Promise(((e,r)=>{_().readFile(t,((t,n)=>{t?r(t):e(n)}))}))}function it(t){return k().createHash("sha256").update(t).digest("hex")}async function st(t,e,r){switch(r.kdfType){case"argon2id":try{const i=(n=e,Buffer.isBuffer(n)?n:"string"==typeof n?Buffer.from(n,"utf8"):Buffer.from(n.buffer,n.byteOffset,n.byteLength));return await L.hashRaw(i,{algorithm:L.Algorithm.Argon2id,memoryCost:r.argon2Params.memoryCost,timeCost:r.argon2Params.timeCost,parallelism:r.argon2Params.parallelism,outputLen:32,salt:t})}catch(t){const e=t;if(O.error("Failed to load or execute argon2:",e.message),e.message.toLowerCase().includes("memory allocation"))throw new $;throw t}case"pbkdf2":return k().pbkdf2Sync(e,t,r.pbkdf2Iterations,32,"sha512");default:throw new Error("Unsupported KDF type")}var n}async function ot(t,e,r=!1){const{detectedFileFormat:n}=function(t){let e=null;try{e=_().openSync(t,"r");const r=Buffer.alloc(H);_().readSync(e,r,0,H,0);const n=r.toString("ascii");if(n.startsWith(z)){const t=n.substring(10),e=X[t];if(!e)throw new F(t);return{version:t,detectedFileFormat:e}}return{version:"001",detectedFileFormat:X["001"]}}finally{if(null!==e)try{_().closeSync(e)}catch(t){O.error("Failed to close file descriptor:",t)}}}(t),i=_().openSync(t,"r"),s=n.ivOffset-n.saltOffset,o=Buffer.alloc(s);_().readSync(i,o,0,s,n.saltOffset);const a=Buffer.alloc(16);_().readSync(i,a,0,16,n.ivOffset);const l=Buffer.alloc(16);_().readSync(i,l,0,16,n.authTagOffset),_().closeSync(i);const u=await st(o,e,n),h=k().createDecipheriv(Z,u,a);h.setAuthTag(l);const c=await nt(t).then((t=>{if(t.length<n.metadataLength&&t.length>0)throw new C;if(0===t.length)throw new N(r?K.DECRYPTION_VERIFICATION_OF_ENCRYPTION:K.DECRYPTION);return t.subarray(n.metadataLength)})).catch((t=>{throw t}));try{const t=h.update(c);return h.final(),t}catch(t){throw new D}}async function at(t,e){let r,n,i=t,s=!1;try{n=(await(0,M.promisify)(_().stat)(t)).isDirectory()}catch(e){const r=e,n=G(t);return"EACCES"===r.code||"EPERM"===r.code?`${tt}: Permission denied when trying to read \`${n}\`.\nPlease check file permissions.`:`${tt}: Failed to access \`${n}\`: ${r.message}`}if(n){const e=function(t){let e=`${t}.zip`,r=1;for(;_().existsSync(e);)e=`${t}-${r}.zip`,r+=1;return e}(t);try{await(o=t,a=e,new Promise(((t,e)=>{const r=_().createWriteStream(a),n=I()("zip",{zlib:{level:9}});r.on("close",(()=>{t()})),n.on("error",(t=>{e(t)})),n.pipe(r),n.directory(o,!1),n.finalize()}))),i=e,s=!0}catch(r){return _().existsSync(e)&&_().unlinkSync(e),`${tt}: Failed to encrypt ${t}. Something went wrong while zipping the folder.`}}var o,a;try{r=await nt(i).then((t=>t)).catch((t=>{throw s&&i.endsWith(".zip")&&_().unlinkSync(i),t}))}catch(e){return n?`${tt}: Failed to encrypt ${t}. Something went wrong while zipping the folder.`:`${tt}: ${i} failed to be opened for reading.`}const l=X["002"],u=l.ivOffset-l.saltOffset,h=k().randomBytes(u);let c;try{c=await st(h,e,l)}catch(e){return et(e,t)}const d=k().randomBytes(16),f=k().createCipheriv(Z,c,d),p=function(t){const e=`${t}${B}`,r=t.lastIndexOf(".");if(-1===r){let r=e,n=1;for(;_().existsSync(r);)r=`${t}-${n}${B}`,n+=1;return r}const n=t.substring(r),i=t.substring(0,r);let s=e,o=1;for(;_().existsSync(s);)s=`${i}-${o}${n}${B}`,o+=1;return s}(i),g=it(r),b=f.update(r);f.final();const m=f.getAuthTag(),y=Buffer.concat([Buffer.from(Q,"ascii"),h,d,Buffer.from(m),b]);try{await rt(p,y).catch((t=>{try{_().unlinkSync(p)}catch(e){throw t}}))}catch(t){return`${tt}: ${p} failed to be written (error inside writeFileWithPromise()).`}if(!_().existsSync(p))return`${tt}: ${p} failed to be written.`;if(s&&i.endsWith(".zip"))try{O.debug("Cleaning up temporary zip file:",i),_().unlinkSync(i)}catch(t){O.error("Failed to clean up temporary zip file:",i)}const w=await ot(p,e,!0).catch((t=>et(t,p)));if("string"==typeof w)return w;const v=it(w);return g!==v?(_().unlinkSync(p),`${tt}: ${p} failed to be verified after encryption. It's likely corrupted. The hash of the data before encryption was ${g}, and the hash of the data after decryption was ${v}.`):(O.success("Successfully encrypted file: ",p),p)}async function lt(t,e){try{if(!function(t){if(!_().existsSync(t))return!1;const e=_().statSync(t);if(e.size<61)return!1;let r,n=null;try{n=_().openSync(t,"r");const e=Buffer.alloc(H);_().readSync(n,e,0,H,0),r=e.toString("ascii")}finally{if(null!==n)try{_().closeSync(n)}catch(t){O.error("Failed to close file descriptor:",t)}}return!(!r.startsWith(z)||!/^\d{3}$/.test(r.substring(10)))||!!((t.endsWith(B)||t.endsWith(U))&&e.size>=96)}(t)){const e=G(t);return`${tt}: \`${e}\` is not a valid deadbolt encrypted file.\nPlease ensure you've selected a file encrypted with deadbolt.`}}catch(e){const r=G(t),n=e;return"EACCES"===n.code||"EPERM"===n.code?`${tt}: Permission denied when trying to read \`${r}\`.\nPlease check file permissions.`:`${tt}: Failed to read \`${r}\`: ${n.message}`}const r=q(t);let n;try{n=await ot(t,e)}catch(e){return et(e,t)}try{return await rt(r,n).catch((t=>{throw t})),_().existsSync(r)?(O.success("Successfully decrypted file: ",r),r):`${tt}: ${r} failed to be written.`}catch(t){return`${tt}: ${r} failed to be written.`}}const ut=new c;function ht(t){const e=y().resolve(t);return _().existsSync(e)||(O.error(`Error: File not found: ${e}`),process.exit(1)),e}function ct(t){if(!t)return;const e=y().resolve(t),r=y().dirname(e);return _().existsSync(r)||(O.error(`Error: Output directory does not exist: ${r}`),process.exit(1)),e}function dt(t,e){if(t.startsWith(tt)){const r=t.substring(32);O.error(`\n${e} failed:`),O.error(r),process.exit(1)}}function ft(t,e){try{return _().renameSync(t,e),e}catch(e){return O.warn(`Warning: Failed to move file to output path: ${e}`),O.warn(`File is available at: ${t}`),t}}async function pt(t,e){return t?(t.length<8&&(O.error("Error: Password must be at least 8 characters"),1)&&process.exit(1),t):await async function(t=!1){let e;for(;!e;){const t=await b()({type:"password",name:"password",message:"Enter password: "},{onCancel:()=>{O.warn("\nOperation cancelled."),process.exit(0)}});t.password||(O.warn("\nOperation cancelled."),process.exit(0)),t.password.length<8?O.error("Password must be at least 8 characters\n"):e=t.password}if(t)for(;;){const t=await b()({type:"password",name:"confirmPassword",message:"Confirm password:"},{onCancel:()=>{O.warn("\nOperation cancelled."),process.exit(0)}});if(t.confirmPassword||(O.warn("\nOperation cancelled."),process.exit(0)),t.confirmPassword===e)break;O.error("Passwords do not match\n")}return e}(e)}ut.name("deadbolt").description("Encrypt and decrypt files using AES-256-GCM encryption").version("2.0.2").option("-v, --verbose","Enable verbose logging (debug mode)").addHelpText("after",'\nExamples:\n $ deadbolt encrypt secret.pdf\n $ deadbolt encrypt secret.pdf --password "my-password"\n $ deadbolt decrypt secret.pdf.deadbolt\n $ deadbolt decrypt secret.pdf.deadbolt --password "my-password"\n $ deadbolt encrypt secret.pdf --verbose\n\nPassword Prompting:\n If --password is not provided, you will be prompted to enter it securely.\n Using --password directly may log your password in shell history.\n\nVerbose Mode:\n Use --verbose or -v to enable debug logging for troubleshooting.\n\nDocumentation:\n https://github.com/alichtman/deadbolt\n'),ut.command("encrypt [file]").description("Encrypt a file or folder using AES-256-GCM").option("-f, --file <path>","Path to the file or folder to encrypt").option("-p, --password <password>","Password for encryption (will prompt if not provided)").option("-o, --output <path>","Output file (optional, defaults to <file>.deadbolt)").addHelpText("after",'\nExamples:\n $ deadbolt encrypt secret.pdf\n $ deadbolt encrypt secret.pdf --password "secure-password"\n $ deadbolt encrypt ~/folder --password "pass123"\n $ deadbolt encrypt data.txt --output encrypted.deadbolt\n $ deadbolt encrypt --file secret.pdf (alternative syntax)\n\nNotes:\n - Folders are automatically zipped before encryption\n - Password will be prompted securely if not provided via --password\n - Using --password directly may log your password in shell history\n - Encrypted files have .deadbolt extension\n - Use strong passwords for better security\n').action((async(t,e)=>{const r=t||e.file;r||(O.error("Error: file or directory path is required"),O.error("Usage: deadbolt encrypt <file> [options]"),O.error(" or: deadbolt encrypt --file <file> [options]"),process.exit(1));const n=ht(r),i=ct(e.output),s=await pt(e.password,!0);O.info("Encrypting...");const o=await at(n,s);let a=o;i&&!o.startsWith(tt)&&(a=ft(o,i)),dt(a,"Encryption")})),ut.command("decrypt [file]").description("Decrypt a .deadbolt or .dbolt file").option("-f, --file <path>","Path to the encrypted file").option("-p, --password <password>","Password for decryption (will prompt if not provided)").option("-o, --output <path>","Output file (optional, defaults to original filename)").addHelpText("after",'\nExamples:\n $ deadbolt decrypt secret.pdf.deadbolt\n $ deadbolt decrypt secret.pdf.deadbolt --password "secure-password"\n $ deadbolt decrypt encrypted.deadbolt --password "pass123"\n $ deadbolt decrypt data.deadbolt --output decrypted.txt\n $ deadbolt decrypt --file secret.pdf.deadbolt (alternative syntax)\n\nNotes:\n - Works with both .deadbolt and .dbolt files\n - Password will be prompted securely if not provided via --password\n - Using --password directly may log your password in shell history\n - Password must match the one used for encryption\n - Decrypted folders will be .zip files (unzip manually)\n').action((async(t,e)=>{const r=t||e.file;r||(O.error("Error: file path is required"),O.error("Usage: deadbolt decrypt <file> [options]"),O.error(" or: deadbolt decrypt --file <file> [options]"),process.exit(1));const n=ht(r);!function(t){t.endsWith(B)||t.endsWith(U)||(O.error("Error: File is not an encrypted file"),O.error(`Expected file extension: ${B} or ${U}`),O.error(`Received: ${y().basename(t)}`),process.exit(1))}(n);const i=ct(e.output);try{const t=_().openSync(n,"r"),e=Buffer.alloc(13);_().readSync(t,e,0,13,0),_().closeSync(t);!e.toString("ascii").startsWith("DEADBOLT_V")&&(console.log(S().yellow("\n⚠️ Legacy V001 Format Detected")),console.log(S().yellow("For better security, consider re-encrypting this file.")),console.log(S().yellow("V001 uses PBKDF2 (10K iterations). V002 uses Argon2id with 2 GiB memory, 1 iteration, and 4-lane parallelism (RFC 9106 FIRST recommendation), making password cracking significantly more expensive for GPU/ASIC attackers.\n")))}catch(t){const e=t instanceof Error?t.message:String(t);O.debug(`Could not check file format version: ${e}`)}const s=await pt(e.password,!1);O.info("Decrypting...");const o=await lt(n,s);let a=o;i&&!o.startsWith(tt)&&(a=ft(o,i)),dt(a,"Decryption")})),ut.parse()},7983(t,e,r){t.exports=r(9023).deprecate},8919(t,e,r){var n=r(9023).inherits,i=r(8351).ZipArchiveOutputStream,s=r(8351).ZipArchiveEntry,o=r(1789),a=t.exports=function(t){if(!(this instanceof a))return new a(t);(t=this.options=t||{}).zlib=t.zlib||{},i.call(this,t),"number"==typeof t.level&&t.level>=0&&(t.zlib.level=t.level,delete t.level),t.forceZip64||"number"!=typeof t.zlib.level||0!==t.zlib.level||(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};n(a,i),a.prototype._normalizeFileData=function(t){var e="directory"===(t=o.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""})).type,r="symlink"===t.type;return t.name&&(t.name=o.sanitizePath(t.name),r||"/"!==t.name.slice(-1)?e&&(t.name+="/"):(e=!0,t.type="directory")),(e||r)&&(t.store=!0),t.date=o.dateify(t.date),t},a.prototype.entry=function(t,e,r){if("function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),"file"===(e=this._normalizeFileData(e)).type||"directory"===e.type||"symlink"===e.type)if("string"==typeof e.name&&0!==e.name.length){if("symlink"!==e.type||"string"==typeof e.linkname){var n=new s(e.name);return n.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&n.setName(e.name,!0),e.store&&n.setMethod(0),e.comment.length>0&&n.setComment(e.comment),"symlink"===e.type&&"number"!=typeof e.mode&&(e.mode=40960),"number"==typeof e.mode&&("symlink"===e.type&&(e.mode|=40960),n.setUnixMode(e.mode)),"symlink"===e.type&&"string"==typeof e.linkname&&(t=Buffer.from(e.linkname)),i.prototype.entry.call(this,n,t,r)}r(new Error("entry linkname must be a non-empty string value when type equals symlink"))}else r(new Error("entry name must be a non-empty string value"));else r(new Error(e.type+" entries not currently supported"))},a.prototype.finalize=function(){this.finish()}},2613(t){"use strict";t.exports=require("assert")},181(t){"use strict";t.exports=require("buffer")},5317(t){"use strict";t.exports=require("child_process")},9140(t){"use strict";t.exports=require("constants")},4434(t){"use strict";t.exports=require("events")},9896(t){"use strict";t.exports=require("fs")},8611(t){"use strict";t.exports=require("http")},5692(t){"use strict";t.exports=require("https")},1421(t){"use strict";t.exports=require("node:child_process")},8474(t){"use strict";t.exports=require("node:events")},3024(t){"use strict";t.exports=require("node:fs")},1455(t){"use strict";t.exports=require("node:fs/promises")},6760(t){"use strict";t.exports=require("node:path")},1708(t){"use strict";t.exports=require("node:process")},7075(t){"use strict";t.exports=require("node:stream")},6193(t){"use strict";t.exports=require("node:string_decoder")},3136(t){"use strict";t.exports=require("node:url")},857(t){"use strict";t.exports=require("os")},6928(t){"use strict";t.exports=require("path")},3785(t){"use strict";t.exports=require("readline")},2203(t){"use strict";t.exports=require("stream")},2018(t){"use strict";t.exports=require("tty")},9023(t){"use strict";t.exports=require("util")},3106(t){"use strict";t.exports=require("zlib")},8286(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.range=e.balanced=void 0;e.balanced=(t,n,i)=>{const s=t instanceof RegExp?r(t,i):t,o=n instanceof RegExp?r(n,i):n,a=null!==s&&null!=o&&(0,e.range)(s,o,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+s.length,a[1]),post:i.slice(a[1]+o.length)}};const r=(t,e)=>{const r=e.match(t);return r?r[0]:null};e.range=(t,e,r)=>{let n,i,s,o,a,l=r.indexOf(t),u=r.indexOf(e,l+1),h=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;h>=0&&!a;){if(h===l)n.push(h),l=r.indexOf(t,h+1);else if(1===n.length){const t=n.pop();void 0!==t&&(a=[t,u])}else i=n.pop(),void 0!==i&&i<s&&(s=i,o=u),u=r.indexOf(e,h+1);h=l<u&&l>=0?l:u}n.length&&void 0!==o&&(a=[s,o])}return a}},1697(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EXPANSION_MAX=void 0,e.expand=function(t,r={}){if(!t)return[];const{max:n=e.EXPANSION_MAX}=r;"{}"===t.slice(0,2)&&(t="\\{\\}"+t.slice(2));return R(function(t){return t.replace(p,i).replace(g,s).replace(b,o).replace(m,a).replace(y,l)}(t),n,!0).map(_)};const n=r(8286),i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0",u=new RegExp(i,"g"),h=new RegExp(s,"g"),c=new RegExp(o,"g"),d=new RegExp(a,"g"),f=new RegExp(l,"g"),p=/\\\\/g,g=/\\{/g,b=/\\}/g,m=/\\,/g,y=/\\./g;function w(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function _(t){return t.replace(u,"\\").replace(h,"{").replace(c,"}").replace(d,",").replace(f,".")}function v(t){if(!t)return[""];const e=[],r=(0,n.balanced)("{","}",t);if(!r)return t.split(",");const{pre:i,body:s,post:o}=r,a=i.split(",");a[a.length-1]+="{"+s+"}";const l=v(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),e.push.apply(e,a),e}function S(t){return"{"+t+"}"}function E(t){return/^-?0\d/.test(t)}function x(t,e){return t<=e}function A(t,e){return t>=e}function R(t,e,r){const i=[],s=(0,n.balanced)("{","}",t);if(!s)return[t];const a=s.pre,l=s.post.length?R(s.post,e,!1):[""];if(/\$$/.test(s.pre))for(let t=0;t<l.length&&t<e;t++){const e=a+"{"+s.body+"}"+l[t];i.push(e)}else{const n=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),h=n||u,c=s.body.indexOf(",")>=0;if(!h&&!c)return s.post.match(/,(?!,).*\}/)?R(t=s.pre+"{"+s.body+o+s.post,e,!0):[t];let d,f;if(h)d=s.body.split(/\.\./);else if(d=v(s.body),1===d.length&&void 0!==d[0]&&(d=R(d[0],e,!1).map(S),1===d.length))return l.map((t=>s.pre+d[0]+t));if(h&&void 0!==d[0]&&void 0!==d[1]){const t=w(d[0]),e=w(d[1]),r=Math.max(d[0].length,d[1].length);let n=3===d.length&&void 0!==d[2]?Math.abs(w(d[2])):1,i=x;e<t&&(n*=-1,i=A);const s=d.some(E);f=[];for(let o=t;i(o,e);o+=n){let t;if(u)t=String.fromCharCode(o),"\\"===t&&(t="");else if(t=String(o),s){const e=r-t.length;if(e>0){const r=new Array(e+1).join("0");t=o<0?"-"+r+t.slice(1):r+t}}f.push(t)}}else{f=[];for(let t=0;t<d.length;t++)f.push.apply(f,R(d[t],e,!1))}for(let t=0;t<f.length;t++)for(let n=0;n<l.length&&i.length<e;n++){const e=a+f[t]+l[n];(!r||h||e)&&i.push(e)}}return i}e.EXPANSION_MAX=1e5},6564(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Glob=void 0;const n=r(4018),i=r(3136),s=r(8576),o=r(5566),a=r(400),l="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class u{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,i.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.includeChildMatches=!1!==e.includeChildMatches,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof t&&(t=[t]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(t=t.map((t=>t.replace(/\\/g,"/")))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");t=t.map((t=>t.includes("/")?t:`./**/${t}`))}if(this.pattern=t,this.platform=e.platform||l,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,void 0!==e.nocase&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const t="win32"===e.platform?s.PathScurryWin32:"darwin"===e.platform?s.PathScurryDarwin:e.platform?s.PathScurryPosix:s.PathScurry;this.scurry=new t(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;const r="darwin"===this.platform||"win32"===this.platform,a={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},u=this.pattern.map((t=>new n.Minimatch(t,a))),[h,c]=u.reduce(((t,e)=>(t[0].push(...e.set),t[1].push(...e.globParts),t)),[[],[]]);this.patterns=h.map(((t,e)=>{const r=c[e];if(!r)throw new Error("invalid pattern object");return new o.Pattern(t,r,0,this.platform)}))}async walk(){return[...await new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}e.Glob=u},2150(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasMagic=void 0;const n=r(4018);e.hasMagic=(t,e={})=>{Array.isArray(t)||(t=[t]);for(const r of t)if(new n.Minimatch(r,e).hasMagic())return!0;return!1}},9348(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Ignore=void 0;const n=r(4018),i=r(5566),s="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";e.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:e,nocase:r,noext:n,noglobstar:i,platform:o=s}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:e,nocase:r,noext:n,noglobstar:i,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(const e of t)this.add(e)}add(t){const e=new n.Minimatch(t,this.mmopts);for(let t=0;t<e.set.length;t++){const r=e.set[t],s=e.globParts[t];if(!r||!s)throw new Error("invalid pattern object");for(;"."===r[0]&&"."===s[0];)r.shift(),s.shift();const o=new i.Pattern(r,s,0,this.platform),a=new n.Minimatch(o.globString(),this.mmopts),l="**"===s[s.length-1],u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){const e=t.fullpath(),r=`${e}/`,n=t.relative()||".",i=`${n}/`;for(const t of this.relative)if(t.match(n)||t.match(i))return!0;for(const t of this.absolute)if(t.match(e)||t.match(r))return!0;return!1}childrenIgnored(t){const e=t.fullpath()+"/",r=(t.relative()||".")+"/";for(const t of this.relativeChildren)if(t.match(r))return!0;for(const t of this.absoluteChildren)if(t.match(e))return!0;return!1}}},6492(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.glob=e.sync=e.iterate=e.iterateSync=e.stream=e.streamSync=e.Ignore=e.hasMagic=e.Glob=e.unescape=e.escape=void 0,e.globStreamSync=h,e.globStream=c,e.globSync=d,e.globIterateSync=p,e.globIterate=g;const n=r(4018),i=r(6564),s=r(2150);var o=r(4018);Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,"unescape",{enumerable:!0,get:function(){return o.unescape}});var a=r(6564);Object.defineProperty(e,"Glob",{enumerable:!0,get:function(){return a.Glob}});var l=r(2150);Object.defineProperty(e,"hasMagic",{enumerable:!0,get:function(){return l.hasMagic}});var u=r(9348);function h(t,e={}){return new i.Glob(t,e).streamSync()}function c(t,e={}){return new i.Glob(t,e).stream()}function d(t,e={}){return new i.Glob(t,e).walkSync()}async function f(t,e={}){return new i.Glob(t,e).walk()}function p(t,e={}){return new i.Glob(t,e).iterateSync()}function g(t,e={}){return new i.Glob(t,e).iterate()}Object.defineProperty(e,"Ignore",{enumerable:!0,get:function(){return u.Ignore}}),e.streamSync=h,e.stream=Object.assign(c,{sync:h}),e.iterateSync=p,e.iterate=Object.assign(g,{sync:p}),e.sync=Object.assign(d,{stream:h,iterate:p}),e.glob=Object.assign(f,{glob:f,globSync:d,sync:e.sync,globStream:c,stream:e.stream,globStreamSync:h,streamSync:e.streamSync,globIterate:g,iterate:e.iterate,globIterateSync:p,iterateSync:e.iterateSync,Glob:i.Glob,hasMagic:s.hasMagic,escape:n.escape,unescape:n.unescape}),e.glob.glob=e.glob},5566(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pattern=void 0;const n=r(4018);class i{#t;#e;#r;length;#n;#i;#s;#o;#a;#l;#u=!0;constructor(t,e,r,n){if(!(t.length>=1))throw new TypeError("empty pattern list");if(!(e.length>=1))throw new TypeError("empty glob list");if(e.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#t=t,this.#e=e,this.#r=r,this.#n=n,0===this.#r)if(this.isUNC()){const[t,e,r,n,...i]=this.#t,[s,o,a,l,...u]=this.#e;""===i[0]&&(i.shift(),u.shift());const h=[t,e,r,n,""].join("/"),c=[s,o,a,l,""].join("/");this.#t=[h,...i],this.#e=[c,...u],this.length=this.#t.length}else if(this.isDrive()||this.isAbsolute()){const[t,...e]=this.#t,[r,...n]=this.#e;""===e[0]&&(e.shift(),n.shift());const i=t+"/",s=r+"/";this.#t=[i,...e],this.#e=[s,...n],this.length=this.#t.length}}pattern(){return this.#t[this.#r]}isString(){return"string"==typeof this.#t[this.#r]}isGlobstar(){return this.#t[this.#r]===n.GLOBSTAR}isRegExp(){return this.#t[this.#r]instanceof RegExp}globString(){return this.#s=this.#s||(0===this.#r?this.isAbsolute()?this.#e[0]+this.#e.slice(1).join("/"):this.#e.join("/"):this.#e.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return void 0!==this.#i?this.#i:this.hasMore()?(this.#i=new i(this.#t,this.#e,this.#r+1,this.#n),this.#i.#l=this.#l,this.#i.#a=this.#a,this.#i.#o=this.#o,this.#i):this.#i=null}isUNC(){const t=this.#t;return void 0!==this.#a?this.#a:this.#a="win32"===this.#n&&0===this.#r&&""===t[0]&&""===t[1]&&"string"==typeof t[2]&&!!t[2]&&"string"==typeof t[3]&&!!t[3]}isDrive(){const t=this.#t;return void 0!==this.#o?this.#o:this.#o="win32"===this.#n&&0===this.#r&&this.length>1&&"string"==typeof t[0]&&/^[a-z]:$/i.test(t[0])}isAbsolute(){const t=this.#t;return void 0!==this.#l?this.#l:this.#l=""===t[0]&&t.length>1||this.isDrive()||this.isUNC()}root(){const t=this.#t[0];return"string"==typeof t&&this.isAbsolute()&&0===this.#r?t:""}checkFollowGlobstar(){return!(0===this.#r||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){return!(0===this.#r||!this.isGlobstar()||!this.#u)&&(this.#u=!1,!0)}}e.Pattern=i},1120(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Processor=e.SubWalks=e.MatchRecord=e.HasWalkedCache=void 0;const n=r(4018);class i{store;constructor(t=new Map){this.store=t}copy(){return new i(new Map(this.store))}hasWalked(t,e){return this.store.get(t.fullpath())?.has(e.globString())}storeWalked(t,e){const r=t.fullpath(),n=this.store.get(r);n?n.add(e.globString()):this.store.set(r,new Set([e.globString()]))}}e.HasWalkedCache=i;class s{store=new Map;add(t,e,r){const n=(e?2:0)|(r?1:0),i=this.store.get(t);this.store.set(t,void 0===i?n:n&i)}entries(){return[...this.store.entries()].map((([t,e])=>[t,!!(2&e),!!(1&e)]))}}e.MatchRecord=s;class o{store=new Map;add(t,e){if(!t.canReaddir())return;const r=this.store.get(t);r?r.find((t=>t.globString()===e.globString()))||r.push(e):this.store.set(t,[e])}get(t){const e=this.store.get(t);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map((t=>[t,this.store.get(t)]))}keys(){return[...this.store.keys()].filter((t=>t.canReaddir()))}}e.SubWalks=o;class a{hasWalkedCache;matches=new s;subwalks=new o;patterns;follow;dot;opts;constructor(t,e){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=e?e.copy():new i}processPatterns(t,e){this.patterns=e;const r=e.map((e=>[t,e]));for(let[t,e]of r){this.hasWalkedCache.storeWalked(t,e);const r=e.root(),i=e.isAbsolute()&&!1!==this.opts.absolute;if(r){t=t.resolve("/"===r&&void 0!==this.opts.root?this.opts.root:r);const n=e.rest();if(!n){this.matches.add(t,!0,!1);continue}e=n}if(t.isENOENT())continue;let s,o,a=!1;for(;"string"==typeof(s=e.pattern())&&(o=e.rest());){const r=t.resolve(s);t=r,e=o,a=!0}if(s=e.pattern(),o=e.rest(),a){if(this.hasWalkedCache.hasWalked(t,e))continue;this.hasWalkedCache.storeWalked(t,e)}if("string"!=typeof s)if(s===n.GLOBSTAR){(!t.isSymbolicLink()||this.follow||e.checkFollowGlobstar())&&this.subwalks.add(t,e);const r=o?.pattern(),n=o?.rest();if(o&&(""!==r&&"."!==r||n)){if(".."===r){const e=t.parent||t;n?this.hasWalkedCache.hasWalked(e,n)||this.subwalks.add(e,n):this.matches.add(e,i,!0)}}else this.matches.add(t,i,""===r||"."===r)}else s instanceof RegExp&&this.subwalks.add(t,e);else{const e=".."===s||""===s||"."===s;this.matches.add(t.resolve(s),i,e)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new a(this.opts,this.hasWalkedCache)}filterEntries(t,e){const r=this.subwalks.get(t),i=this.child();for(const t of e)for(const e of r){const r=e.isAbsolute(),s=e.pattern(),o=e.rest();s===n.GLOBSTAR?i.testGlobstar(t,e,o,r):s instanceof RegExp?i.testRegExp(t,s,o,r):i.testString(t,s,o,r)}return i}testGlobstar(t,e,r,n){if(!this.dot&&t.name.startsWith(".")||(e.hasMore()||this.matches.add(t,n,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,e):t.isSymbolicLink()&&(r&&e.checkFollowGlobstar()?this.subwalks.add(t,r):e.markFollowGlobstar()&&this.subwalks.add(t,e)))),r){const e=r.pattern();if("string"==typeof e&&".."!==e&&""!==e&&"."!==e)this.testString(t,e,r.rest(),n);else if(".."===e){const e=t.parent||t;this.subwalks.add(e,r)}else e instanceof RegExp&&this.testRegExp(t,e,r.rest(),n)}}testRegExp(t,e,r,n){e.test(t.name)&&(r?this.subwalks.add(t,r):this.matches.add(t,n,!1))}testString(t,e,r,n){t.isNamed(e)&&(r?this.subwalks.add(t,r):this.matches.add(t,n,!1))}}e.Processor=a},400(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobStream=e.GlobWalker=e.GlobUtil=void 0;const n=r(3244),i=r(9348),s=r(1120);class o{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#h=[];#c;#d;signal;maxDepth;includeChildMatches;constructor(t,e,r){if(this.patterns=t,this.path=e,this.opts=r,this.#d=r.posix||"win32"!==r.platform?"/":"\\",this.includeChildMatches=!1!==r.includeChildMatches,(r.ignore||!this.includeChildMatches)&&(this.#c=((t,e)=>"string"==typeof t?new i.Ignore([t],e):Array.isArray(t)?new i.Ignore(t,e):t)(r.ignore??[],r),!this.includeChildMatches&&"function"!=typeof this.#c.add)){throw new Error("cannot ignore child matches, ignore lacks add() method.")}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",(()=>{this.#h.length=0})))}#f(t){return this.seen.has(t)||!!this.#c?.ignored?.(t)}#p(t){return!!this.#c?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let t;for(this.paused=!1;!this.paused&&(t=this.#h.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#h.push(t):t())}async matchCheck(t,e){if(e&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=t.realpathCached()||await t.realpath(),!r)return;t=r}const n=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){const t=await n.realpath();t&&(t.isUnknown()||this.opts.stat)&&await t.lstat()}return this.matchCheckTest(n,e)}matchCheckTest(t,e){return!t||!(this.maxDepth===1/0||t.depth()<=this.maxDepth)||e&&!t.canReaddir()||this.opts.nodir&&t.isDirectory()||this.opts.nodir&&this.opts.follow&&t.isSymbolicLink()&&t.realpathCached()?.isDirectory()||this.#f(t)?void 0:t}matchCheckSync(t,e){if(e&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=t.realpathCached()||t.realpathSync(),!r)return;t=r}const n=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){const t=n.realpathSync();t&&(t?.isUnknown()||this.opts.stat)&&t.lstatSync()}return this.matchCheckTest(n,e)}matchFinish(t,e){if(this.#f(t))return;if(!this.includeChildMatches&&this.#c?.add){const e=`${t.relativePosix()}/**`;this.#c.add(e)}const r=void 0===this.opts.absolute?e:this.opts.absolute;this.seen.add(t);const n=this.opts.mark&&t.isDirectory()?this.#d:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(r){const e=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(e+n)}else{const e=this.opts.posix?t.relativePosix():t.relative(),r=this.opts.dotRelative&&!e.startsWith(".."+this.#d)?"."+this.#d:"";this.matchEmit(e?r+e+n:"."+n)}}async match(t,e,r){const n=await this.matchCheck(t,r);n&&this.matchFinish(n,e)}matchSync(t,e,r){const n=this.matchCheckSync(t,r);n&&this.matchFinish(n,e)}walkCB(t,e,r){this.signal?.aborted&&r(),this.walkCB2(t,e,new s.Processor(this.opts),r)}walkCB2(t,e,r,n){if(this.#p(t))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2(t,e,r,n)));r.processPatterns(t,e);let i=1;const s=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#f(t)||(i++,this.match(t,e,n).then((()=>s())));for(const t of r.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;i++;const e=t.readdirCached();t.calledReaddir()?this.walkCB3(t,e,r,s):t.readdirCB(((e,n)=>this.walkCB3(t,n,r,s)),!0)}s()}walkCB3(t,e,r,n){r=r.filterEntries(t,e);let i=1;const s=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#f(t)||(i++,this.match(t,e,n).then((()=>s())));for(const[t,e]of r.subwalks.entries())i++,this.walkCB2(t,e,r.child(),s);s()}walkCBSync(t,e,r){this.signal?.aborted&&r(),this.walkCB2Sync(t,e,new s.Processor(this.opts),r)}walkCB2Sync(t,e,r,n){if(this.#p(t))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2Sync(t,e,r,n)));r.processPatterns(t,e);let i=1;const s=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#f(t)||this.matchSync(t,e,n);for(const t of r.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;i++;const e=t.readdirSync();this.walkCB3Sync(t,e,r,s)}s()}walkCB3Sync(t,e,r,n){r=r.filterEntries(t,e);let i=1;const s=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#f(t)||this.matchSync(t,e,n);for(const[t,e]of r.subwalks.entries())i++,this.walkCB2Sync(t,e,r.child(),s);s()}}e.GlobUtil=o;e.GlobWalker=class extends o{matches=new Set;constructor(t,e,r){super(t,e,r)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((t,e)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?e(this.signal.reason):t(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}};e.GlobStream=class extends o{results;constructor(t,e,r){super(t,e,r),this.results=new n.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){const t=this.path;return t.isUnknown()?t.lstat().then((()=>{this.walkCB(t,this.patterns,(()=>this.results.end()))})):this.walkCB(t,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}},9850(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertValidPattern=void 0;e.assertValidPattern=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")}},9178(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AST=void 0;const n=r(5491),i=r(7876),s=new Set(["!","?","+","*","@"]),o=t=>s.has(t),a="(?!\\.)",l=new Set(["[","."]),u=new Set(["..","."]),h=new Set("().*{}+?[]^$\\!"),c="[^/]",d=c+"*?",f=c+"+?";class p{type;#g;#b;#m=!1;#y=[];#w;#_;#v;#S=!1;#E;#x;#A=!1;constructor(t,e,r={}){this.type=t,t&&(this.#b=!0),this.#w=e,this.#g=this.#w?this.#w.#g:this,this.#E=this.#g===this?r:this.#g.#E,this.#v=this.#g===this?[]:this.#g.#v,"!"!==t||this.#g.#S||this.#v.push(this),this.#_=this.#w?this.#w.#y.length:0}get hasMagic(){if(void 0!==this.#b)return this.#b;for(const t of this.#y)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#b=!0;return this.#b}toString(){return void 0!==this.#x?this.#x:this.type?this.#x=this.type+"("+this.#y.map((t=>String(t))).join("|")+")":this.#x=this.#y.map((t=>String(t))).join("")}#R(){if(this!==this.#g)throw new Error("should only call on root");if(this.#S)return this;let t;for(this.toString(),this.#S=!0;t=this.#v.pop();){if("!"!==t.type)continue;let e=t,r=e.#w;for(;r;){for(let n=e.#_+1;!r.type&&n<r.#y.length;n++)for(const e of t.#y){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(r.#y[n])}e=r,r=e.#w}}return this}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof p&&e.#w===this))throw new Error("invalid part: "+e);this.#y.push(e)}}toJSON(){const t=null===this.type?this.#y.slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...this.#y.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#g||this.#g.#S&&"!"===this.#w?.type)&&t.push({}),t}isStart(){if(this.#g===this)return!0;if(!this.#w?.isStart())return!1;if(0===this.#_)return!0;const t=this.#w;for(let e=0;e<this.#_;e++){const r=t.#y[e];if(!(r instanceof p&&"!"===r.type))return!1}return!0}isEnd(){if(this.#g===this)return!0;if("!"===this.#w?.type)return!0;if(!this.#w?.isEnd())return!1;if(!this.type)return this.#w?.isEnd();const t=this.#w?this.#w.#y.length:0;return this.#_===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new p(this.type,t);for(const t of this.#y)e.copyIn(t);return e}static#O(t,e,r,n){let i=!1,s=!1,a=-1,l=!1;if(null===e.type){let u=r,h="";for(;u<t.length;){const r=t.charAt(u++);if(i||"\\"===r)i=!i,h+=r;else if(s)u===a+1?"^"!==r&&"!"!==r||(l=!0):"]"!==r||u===a+2&&l||(s=!1),h+=r;else if("["!==r)if(n.noext||!o(r)||"("!==t.charAt(u))h+=r;else{e.push(h),h="";const i=new p(r,e);u=p.#O(t,i,u,n),e.push(i)}else s=!0,a=u,l=!1,h+=r}return e.push(h),u}let u=r+1,h=new p(null,e);const c=[];let d="";for(;u<t.length;){const r=t.charAt(u++);if(i||"\\"===r)i=!i,d+=r;else if(s)u===a+1?"^"!==r&&"!"!==r||(l=!0):"]"!==r||u===a+2&&l||(s=!1),d+=r;else if("["!==r)if(o(r)&&"("===t.charAt(u)){h.push(d),d="";const e=new p(r,h);h.push(e),u=p.#O(t,e,u,n)}else if("|"!==r){if(")"===r)return""===d&&0===e.#y.length&&(e.#A=!0),h.push(d),d="",e.push(...c,h),u;d+=r}else h.push(d),d="",c.push(h),h=new p(null,e);else s=!0,a=u,l=!1,d+=r}return e.type=null,e.#b=void 0,e.#y=[t.substring(r-1)],u}static fromGlob(t,e={}){const r=new p(null,void 0,e);return p.#O(t,r,0,e),r}toMMPattern(){if(this!==this.#g)return this.#g.toMMPattern();const t=this.toString(),[e,r,n,i]=this.toRegExpSource();if(!(n||this.#b||this.#E.nocase&&!this.#E.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;const s=(this.#E.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${e}$`,s),{_src:e,_glob:t})}get options(){return this.#E}toRegExpSource(t){const e=t??!!this.#E.dot;if(this.#g===this&&this.#R(),!this.type){const r=this.isStart()&&this.isEnd(),n=this.#y.map((e=>{const[n,i,s,o]="string"==typeof e?p.#T(e,this.#b,r):e.toRegExpSource(t);return this.#b=this.#b||s,this.#m=this.#m||o,n})).join("");let s="";if(this.isStart()&&"string"==typeof this.#y[0]){if(!(1===this.#y.length&&u.has(this.#y[0]))){const r=l,i=e&&r.has(n.charAt(0))||n.startsWith("\\.")&&r.has(n.charAt(2))||n.startsWith("\\.\\.")&&r.has(n.charAt(4)),o=!e&&!t&&r.has(n.charAt(0));s=i?"(?!(?:^|/)\\.\\.?(?:$|/))":o?a:""}}let o="";this.isEnd()&&this.#g.#S&&"!"===this.#w?.type&&(o="(?:$|\\/)");return[s+n+o,(0,i.unescape)(n),this.#b=!!this.#b,this.#m]}const r="*"===this.type||"+"===this.type,n="!"===this.type?"(?:(?!(?:":"(?:";let s=this.#k(e);if(this.isStart()&&this.isEnd()&&!s&&"!"!==this.type){const t=this.toString();return this.#y=[t],this.type=null,this.#b=void 0,[t,(0,i.unescape)(this.toString()),!1,!1]}let o=!r||t||e?"":this.#k(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let h="";if("!"===this.type&&this.#A)h=(this.isStart()&&!e?a:"")+f;else{h=n+s+("!"===this.type?"))"+(!this.isStart()||e||t?"":a)+d+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&o?")":"*"===this.type&&o?")?":`)${this.type}`)}return[h,(0,i.unescape)(s),this.#b=!!this.#b,this.#m]}#k(t){return this.#y.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[r,n,i,s]=e.toRegExpSource(t);return this.#m=this.#m||s,r})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#T(t,e,r=!1){let s=!1,o="",a=!1,l=!1;for(let i=0;i<t.length;i++){const u=t.charAt(i);if(s)s=!1,o+=(h.has(u)?"\\":"")+u,l=!1;else if("\\"!==u){if("["===u){const[r,s,u,h]=(0,n.parseClass)(t,i);if(u){o+=r,a=a||s,i+=u-1,e=e||h,l=!1;continue}}if("*"!==u)l=!1,"?"!==u?o+=u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(o+=c,e=!0);else{if(l)continue;l=!0,o+=r&&/^[*]+$/.test(t)?f:d,e=!0}}else i===t.length-1?o+="\\\\":s=!0}return[o,(0,i.unescape)(t),!!e,a]}}e.AST=p},5491(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseClass=void 0;const r={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},n=t=>t.replace(/[[\]\\-]/g,"\\$&"),i=t=>t.join("");e.parseClass=(t,e)=>{const s=e;if("["!==t.charAt(s))throw new Error("not in a brace expression");const o=[],a=[];let l=s+1,u=!1,h=!1,c=!1,d=!1,f=s,p="";t:for(;l<t.length;){const e=t.charAt(l);if("!"!==e&&"^"!==e||l!==s+1){if("]"===e&&u&&!c){f=l+1;break}if(u=!0,"\\"!==e||c){if("["===e&&!c)for(const[e,[n,i,u]]of Object.entries(r))if(t.startsWith(e,l)){if(p)return["$.",!1,t.length-s,!0];l+=e.length,u?a.push(n):o.push(n),h=h||i;continue t}c=!1,p?(e>p?o.push(n(p)+"-"+n(e)):e===p&&o.push(n(e)),p="",l++):t.startsWith("-]",l+1)?(o.push(n(e+"-")),l+=2):t.startsWith("-",l+1)?(p=e,l+=2):(o.push(n(e)),l++)}else c=!0,l++}else d=!0,l++}if(f<l)return["",!1,0,!1];if(!o.length&&!a.length)return["$.",!1,t.length-s,!0];if(0===a.length&&1===o.length&&/^\\?.$/.test(o[0])&&!d){const t=2===o[0].length?o[0].slice(-1):o[0];return[(g=t,g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,f-s,!1]}var g;const b="["+(d?"^":"")+i(o)+"]",m="["+(d?"":"^")+i(a)+"]";return[o.length&&a.length?"("+b+"|"+m+")":o.length?b:m,h,f-s,!0]}},6619(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escape=void 0;e.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&")},4018(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=e.escape=e.AST=e.Minimatch=e.match=e.makeRe=e.braceExpand=e.defaults=e.filter=e.GLOBSTAR=e.sep=e.minimatch=void 0;const n=r(1697),i=r(9850),s=r(9178),o=r(6619),a=r(7876);e.minimatch=(t,e,r={})=>((0,i.assertValidPattern)(e),!(!r.nocomment&&"#"===e.charAt(0))&&new L(e,r).match(t));const l=/^\*+([^+@!?\*\[\(]*)$/,u=t=>e=>!e.startsWith(".")&&e.endsWith(t),h=t=>e=>e.endsWith(t),c=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),d=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),f=/^\*+\.\*+$/,p=t=>!t.startsWith(".")&&t.includes("."),g=t=>"."!==t&&".."!==t&&t.includes("."),b=/^\.\*+$/,m=t=>"."!==t&&".."!==t&&t.startsWith("."),y=/^\*+$/,w=t=>0!==t.length&&!t.startsWith("."),_=t=>0!==t.length&&"."!==t&&".."!==t,v=/^\?+([^+@!?\*\[\(]*)?$/,S=([t,e=""])=>{const r=R([t]);return e?(e=e.toLowerCase(),t=>r(t)&&t.toLowerCase().endsWith(e)):r},E=([t,e=""])=>{const r=O([t]);return e?(e=e.toLowerCase(),t=>r(t)&&t.toLowerCase().endsWith(e)):r},x=([t,e=""])=>{const r=O([t]);return e?t=>r(t)&&t.endsWith(e):r},A=([t,e=""])=>{const r=R([t]);return e?t=>r(t)&&t.endsWith(e):r},R=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},O=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},T="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",k={sep:"\\"},M={sep:"/"};e.sep="win32"===T?k.sep:M.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol("globstar **"),e.minimatch.GLOBSTAR=e.GLOBSTAR;e.filter=(t,r={})=>n=>(0,e.minimatch)(n,t,r),e.minimatch.filter=e.filter;const P=(t,e={})=>Object.assign({},t,e);e.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return e.minimatch;const r=e.minimatch;return Object.assign(((e,n,i={})=>r(e,n,P(t,i))),{Minimatch:class extends r.Minimatch{constructor(e,r={}){super(e,P(t,r))}static defaults(e){return r.defaults(P(t,e)).Minimatch}},AST:class extends r.AST{constructor(e,r,n={}){super(e,r,P(t,n))}static fromGlob(e,n={}){return r.AST.fromGlob(e,P(t,n))}},unescape:(e,n={})=>r.unescape(e,P(t,n)),escape:(e,n={})=>r.escape(e,P(t,n)),filter:(e,n={})=>r.filter(e,P(t,n)),defaults:e=>r.defaults(P(t,e)),makeRe:(e,n={})=>r.makeRe(e,P(t,n)),braceExpand:(e,n={})=>r.braceExpand(e,P(t,n)),match:(e,n,i={})=>r.match(e,n,P(t,i)),sep:r.sep,GLOBSTAR:e.GLOBSTAR})},e.minimatch.defaults=e.defaults;e.braceExpand=(t,e={})=>((0,i.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,n.expand)(t)),e.minimatch.braceExpand=e.braceExpand;e.makeRe=(t,e={})=>new L(t,e).makeRe(),e.minimatch.makeRe=e.makeRe;e.match=(t,e,r={})=>{const n=new L(e,r);return t=t.filter((t=>n.match(t))),n.options.nonull&&!t.length&&t.push(e),t},e.minimatch.match=e.match;const I=/[?*]|[+@!]\(.*?\)|\[|\]/;class L{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){(0,i.assertValidPattern)(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||T,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const r=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map(((t,e,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&I.test(t[2])||I.test(t[3])),r=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(r)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,n),this.set=n.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let r=0;r<t[e].length;r++)"**"===t[e][r]&&(t[e][r]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let r=e;for(;"**"===t[r+1];)r++;r!==e&&t.splice(e,r-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const r=t[t.length-1];return"**"===e&&"**"===r?t:".."===e&&r&&".."!==r&&"."!==r&&"**"!==r?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let r=1;r<t.length-1;r++){const n=t[r];1===r&&""===n&&""===t[0]||("."!==n&&""!==n||(e=!0,t.splice(r,1),r--))}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let r=0;for(;-1!==(r=t.indexOf("..",r+1));){const n=t[r-1];n&&"."!==n&&".."!==n&&"**"!==n&&(e=!0,t.splice(r-1,2),r-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let r of t){let n=-1;for(;-1!==(n=r.indexOf("**",n+1));){let i=n;for(;"**"===r[i+1];)i++;i>n&&r.splice(n+1,i-n);let s=r[n+1];const o=r[n+2],a=r[n+3];if(".."!==s)continue;if(!o||"."===o||".."===o||!a||"."===a||".."===a)continue;e=!0,r.splice(n,1);const l=r.slice(0);l[n]="**",t.push(l),n--}if(!this.preserveMultipleSlashes){for(let t=1;t<r.length-1;t++){const n=r[t];1===t&&""===n&&""===r[0]||("."!==n&&""!==n||(e=!0,r.splice(t,1),t--))}"."!==r[0]||2!==r.length||"."!==r[1]&&""!==r[1]||(e=!0,r.pop())}let i=0;for(;-1!==(i=r.indexOf("..",i+1));){const t=r[i-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===i&&"**"===r[i+1]?["."]:[];r.splice(i-1,2,...t),0===r.length&&r.push(""),i-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let r=e+1;r<t.length;r++){const n=this.partsMatch(t[e],t[r],!this.preserveMultipleSlashes);if(n){t[e]=[],t[r]=n;break}}return t.filter((t=>t.length))}partsMatch(t,e,r=!1){let n=0,i=0,s=[],o="";for(;n<t.length&&i<e.length;)if(t[n]===e[i])s.push("b"===o?e[i]:t[n]),n++,i++;else if(r&&"**"===t[n]&&e[i]===t[n+1])s.push(t[n]),n++;else if(r&&"**"===e[i]&&t[n]===e[i+1])s.push(e[i]),i++;else if("*"!==t[n]||!e[i]||!this.options.dot&&e[i].startsWith(".")||"**"===e[i]){if("*"!==e[i]||!t[n]||!this.options.dot&&t[n].startsWith(".")||"**"===t[n])return!1;if("a"===o)return!1;o="b",s.push(e[i]),n++,i++}else{if("b"===o)return!1;o="a",s.push(t[n]),n++,i++}return t.length===e.length&&s}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,r=0;for(let n=0;n<t.length&&"!"===t.charAt(n);n++)e=!e,r++;r&&(this.pattern=t.slice(r)),this.negate=e}matchOne(t,r,n=!1){const i=this.options;if(this.isWindows){const e="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),n=!e&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),i="string"==typeof r[0]&&/^[a-z]:$/i.test(r[0]),s=n?3:e?0:void 0,o=!i&&""===r[0]&&""===r[1]&&"?"===r[2]&&"string"==typeof r[3]&&/^[a-z]:$/i.test(r[3])?3:i?0:void 0;if("number"==typeof s&&"number"==typeof o){const[e,n]=[t[s],r[o]];e.toLowerCase()===n.toLowerCase()&&(r[o]=e,o>s?r=r.slice(o):s>o&&(t=t.slice(s)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var o=0,a=0,l=t.length,u=r.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");var h=r[a],c=t[o];if(this.debug(r,h,c),!1===h)return!1;if(h===e.GLOBSTAR){this.debug("GLOBSTAR",[r,h,c]);var d=o,f=a+1;if(f===u){for(this.debug("** at the end");o<l;o++)if("."===t[o]||".."===t[o]||!i.dot&&"."===t[o].charAt(0))return!1;return!0}for(;d<l;){var p=t[d];if(this.debug("\nglobstar while",t,d,r,f,p),this.matchOne(t.slice(d),r.slice(f),n))return this.debug("globstar found match!",d,l,p),!0;if("."===p||".."===p||!i.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,d,r,f);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!n||(this.debug("\n>>> no match, partial?",t,d,r,f),d!==l))}let s;if("string"==typeof h?(s=c===h,this.debug("string match",h,c,s)):(s=h.test(c),this.debug("pattern match",h,c,s)),!s)return!1}if(o===l&&a===u)return!0;if(o===l)return n;if(a===u)return o===l-1&&""===t[o];throw new Error("wtf?")}braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}parse(t){(0,i.assertValidPattern)(t);const r=this.options;if("**"===t)return e.GLOBSTAR;if(""===t)return"";let n,o=null;(n=t.match(y))?o=r.dot?_:w:(n=t.match(l))?o=(r.nocase?r.dot?d:c:r.dot?h:u)(n[1]):(n=t.match(v))?o=(r.nocase?r.dot?E:S:r.dot?x:A)(n):(n=t.match(f))?o=r.dot?g:p:(n=t.match(b))&&(o=m);const a=s.AST.fromGlob(t,this.options).toMMPattern();return o&&"object"==typeof a&&Reflect.defineProperty(a,"test",{value:o}),a}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(r.nocase?["i"]:[]);let s=t.map((t=>{const r=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))i.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===e.GLOBSTAR?e.GLOBSTAR:t._src}));return r.forEach(((t,i)=>{const s=r[i+1],o=r[i-1];t===e.GLOBSTAR&&o!==e.GLOBSTAR&&(void 0===o?void 0!==s&&s!==e.GLOBSTAR?r[i+1]="(?:\\/|"+n+"\\/)?"+s:r[i]=n:void 0===s?r[i-1]=o+"(?:\\/|"+n+")?":s!==e.GLOBSTAR&&(r[i-1]=o+"(?:\\/|\\/"+n+"\\/)"+s,r[i+1]=e.GLOBSTAR))})),r.filter((t=>t!==e.GLOBSTAR)).join("/")})).join("|");const[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const r=this.options;this.isWindows&&(t=t.split("\\").join("/"));const n=this.slashSplit(t);this.debug(this.pattern,"split",n);const i=this.set;this.debug(this.pattern,"set",i);let s=n[n.length-1];if(!s)for(let t=n.length-2;!s&&t>=0;t--)s=n[t];for(let t=0;t<i.length;t++){const o=i[t];let a=n;r.matchBase&&1===o.length&&(a=[s]);if(this.matchOne(a,o,e))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(t){return e.minimatch.defaults(t).Minimatch}}e.Minimatch=L;var D=r(9178);Object.defineProperty(e,"AST",{enumerable:!0,get:function(){return D.AST}});var C=r(6619);Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return C.escape}});var N=r(7876);Object.defineProperty(e,"unescape",{enumerable:!0,get:function(){return N.unescape}}),e.minimatch.AST=s.AST,e.minimatch.Minimatch=L,e.minimatch.escape=o.escape,e.minimatch.unescape=a.unescape},7876(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=void 0;e.unescape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},3244(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Minipass=e.isWritable=e.isReadable=e.isStream=void 0;const i="object"==typeof process&&process?process:{stdout:null,stderr:null},s=r(8474),o=n(r(7075)),a=r(6193);e.isStream=t=>!!t&&"object"==typeof t&&(t instanceof z||t instanceof o.default||(0,e.isReadable)(t)||(0,e.isWritable)(t));e.isReadable=t=>!!t&&"object"==typeof t&&t instanceof s.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==o.default.Writable.prototype.pipe;e.isWritable=t=>!!t&&"object"==typeof t&&t instanceof s.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end;const l=Symbol("EOF"),u=Symbol("maybeEmitEnd"),h=Symbol("emittedEnd"),c=Symbol("emittingEnd"),d=Symbol("emittedError"),f=Symbol("closed"),p=Symbol("read"),g=Symbol("flush"),b=Symbol("flushChunk"),m=Symbol("encoding"),y=Symbol("decoder"),w=Symbol("flowing"),_=Symbol("paused"),v=Symbol("resume"),S=Symbol("buffer"),E=Symbol("pipes"),x=Symbol("bufferLength"),A=Symbol("bufferPush"),R=Symbol("bufferShift"),O=Symbol("objectMode"),T=Symbol("destroyed"),k=Symbol("error"),M=Symbol("emitData"),P=Symbol("emitEnd"),I=Symbol("emitEnd2"),L=Symbol("async"),D=Symbol("abort"),C=Symbol("aborted"),N=Symbol("signal"),j=Symbol("dataListeners"),F=Symbol("discarded"),$=t=>Promise.resolve().then(t),W=t=>t();class B{src;dest;opts;ondrain;constructor(t,e,r){this.src=t,this.dest=e,this.opts=r,this.ondrain=()=>t[v](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class U extends B{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,r){super(t,e,r),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class z extends s.EventEmitter{[w]=!1;[_]=!1;[E]=[];[S]=[];[O];[m];[L];[y];[l]=!1;[h]=!1;[c]=!1;[f]=!1;[d]=null;[x]=0;[T]=!1;[N];[C]=!1;[j]=0;[F]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");e.objectMode?(this[O]=!0,this[m]=null):(t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding)(e)?(this[m]=e.encoding,this[O]=!1):(this[O]=!1,this[m]=null),this[L]=!!e.async,this[y]=this[m]?new a.StringDecoder(this[m]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[S]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[E]});const{signal:r}=e;r&&(this[N]=r,r.aborted?this[D]():r.addEventListener("abort",(()=>this[D]())))}get bufferLength(){return this[x]}get encoding(){return this[m]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[O]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[L]}set async(t){this[L]=this[L]||!!t}[D](){this[C]=!0,this.emit("abort",this[N]?.reason),this.destroy(this[N]?.reason)}get aborted(){return this[C]}set aborted(t){}write(t,e,r){if(this[C])return!1;if(this[l])throw new Error("write after end");if(this[T])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(r=e,e="utf8"),e||(e="utf8");const n=this[L]?$:W;if(!this[O]&&!Buffer.isBuffer(t))if(i=t,!Buffer.isBuffer(i)&&ArrayBuffer.isView(i))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var i;return this[O]?(this[w]&&0!==this[x]&&this[g](!0),this[w]?this.emit("data",t):this[A](t),0!==this[x]&&this.emit("readable"),r&&n(r),this[w]):t.length?("string"!=typeof t||e===this[m]&&!this[y]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[m]&&(t=this[y].write(t)),this[w]&&0!==this[x]&&this[g](!0),this[w]?this.emit("data",t):this[A](t),0!==this[x]&&this.emit("readable"),r&&n(r),this[w]):(0!==this[x]&&this.emit("readable"),r&&n(r),this[w])}read(t){if(this[T])return null;if(this[F]=!1,0===this[x]||0===t||t&&t>this[x])return this[u](),null;this[O]&&(t=null),this[S].length>1&&!this[O]&&(this[S]=[this[m]?this[S].join(""):Buffer.concat(this[S],this[x])]);const e=this[p](t||null,this[S][0]);return this[u](),e}[p](t,e){if(this[O])this[R]();else{const r=e;t===r.length||null===t?this[R]():"string"==typeof r?(this[S][0]=r.slice(t),e=r.slice(0,t),this[x]-=t):(this[S][0]=r.subarray(t),e=r.subarray(0,t),this[x]-=t)}return this.emit("data",e),this[S].length||this[l]||this.emit("drain"),e}end(t,e,r){return"function"==typeof t&&(r=t,t=void 0),"function"==typeof e&&(r=e,e="utf8"),void 0!==t&&this.write(t,e),r&&this.once("end",r),this[l]=!0,this.writable=!1,!this[w]&&this[_]||this[u](),this}[v](){this[T]||(this[j]||this[E].length||(this[F]=!0),this[_]=!1,this[w]=!0,this.emit("resume"),this[S].length?this[g]():this[l]?this[u]():this.emit("drain"))}resume(){return this[v]()}pause(){this[w]=!1,this[_]=!0,this[F]=!1}get destroyed(){return this[T]}get flowing(){return this[w]}get paused(){return this[_]}[A](t){this[O]?this[x]+=1:this[x]+=t.length,this[S].push(t)}[R](){return this[O]?this[x]-=1:this[x]-=this[S][0].length,this[S].shift()}[g](t=!1){do{}while(this[b](this[R]())&&this[S].length);t||this[S].length||this[l]||this.emit("drain")}[b](t){return this.emit("data",t),this[w]}pipe(t,e){if(this[T])return t;this[F]=!1;const r=this[h];return e=e||{},t===i.stdout||t===i.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,r?e.end&&t.end():(this[E].push(e.proxyErrors?new U(this,t,e):new B(this,t,e)),this[L]?$((()=>this[v]())):this[v]()),t}unpipe(t){const e=this[E].find((e=>e.dest===t));e&&(1===this[E].length?(this[w]&&0===this[j]&&(this[w]=!1),this[E]=[]):this[E].splice(this[E].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const r=super.on(t,e);if("data"===t)this[F]=!1,this[j]++,this[E].length||this[w]||this[v]();else if("readable"===t&&0!==this[x])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[h])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[d]){const t=e;this[L]?$((()=>t.call(this,this[d]))):t.call(this,this[d])}return r}removeListener(t,e){return this.off(t,e)}off(t,e){const r=super.off(t,e);return"data"===t&&(this[j]=this.listeners("data").length,0!==this[j]||this[F]||this[E].length||(this[w]=!1)),r}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[j]=0,this[F]||this[E].length||(this[w]=!1)),e}get emittedEnd(){return this[h]}[u](){this[c]||this[h]||this[T]||0!==this[S].length||!this[l]||(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[f]&&this.emit("close"),this[c]=!1)}emit(t,...e){const r=e[0];if("error"!==t&&"close"!==t&&t!==T&&this[T])return!1;if("data"===t)return!(!this[O]&&!r)&&(this[L]?($((()=>this[M](r))),!0):this[M](r));if("end"===t)return this[P]();if("close"===t){if(this[f]=!0,!this[h]&&!this[T])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[d]=r,super.emit(k,r);const t=!(this[N]&&!this.listeners("error").length)&&super.emit("error",r);return this[u](),t}if("resume"===t){const t=super.emit("resume");return this[u](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const n=super.emit(t,...e);return this[u](),n}[M](t){for(const e of this[E])!1===e.dest.write(t)&&this.pause();const e=!this[F]&&super.emit("data",t);return this[u](),e}[P](){return!this[h]&&(this[h]=!0,this.readable=!1,this[L]?($((()=>this[I]())),!0):this[I]())}[I](){if(this[y]){const t=this[y].end();if(t){for(const e of this[E])e.dest.write(t);this[F]||super.emit("data",t)}}for(const t of this[E])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[O]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[O]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[O])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[m]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(T,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[F]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const r=this.read();if(null!==r)return Promise.resolve({done:!1,value:r});if(this[l])return e();let n,i;const s=t=>{this.off("data",o),this.off("end",a),this.off(T,u),e(),i(t)},o=t=>{this.off("error",s),this.off("end",a),this.off(T,u),this.pause(),n({value:t,done:!!this[l]})},a=()=>{this.off("error",s),this.off("data",o),this.off(T,u),e(),n({done:!0,value:void 0})},u=()=>s(new Error("stream destroyed"));return new Promise(((t,e)=>{i=e,n=t,this.once(T,u),this.once("error",s),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[F]=!1;let t=!1;const e=()=>(this.pause(),this.off(k,e),this.off(T,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(k,e),this.once(T,e),{next:()=>{if(t)return e();const r=this.read();return null===r?e():{done:!1,value:r}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){if(this[T])return t?this.emit("error",t):this.emit(T),this;this[T]=!0,this[F]=!0,this[S].length=0,this[x]=0;return"function"!=typeof this.close||this[f]||this.close(),t?this.emit("error",t):this.emit(T),this}static get isStream(){return e.isStream}}e.Minipass=z},9120(t){"use strict";function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const r=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function n(t){if(Buffer.isBuffer(t))return t;if("number"==typeof t)return Buffer.alloc(t);if("string"==typeof t)return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function i(t,e){t=n(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let i=~e;for(var s=0;s<t.length;s++)i=r[255&(i^t[s])]^i>>>8;return~i}function s(){return function(t){const e=n(4);return e.writeInt32BE(t,0),e}(i.apply(null,arguments))}s.signed=function(){return i.apply(null,arguments)},s.unsigned=function(){return i.apply(null,arguments)>>>0};const o=e(s);t.exports=o},2116(t,e,r){const{Argument:n}=r(9297),{Command:i}=r(3749),{CommanderError:s,InvalidArgumentError:o}=r(3666),{Help:a}=r(3693),{Option:l}=r(5019);e.DM=new i,e.gu=t=>new i(t),e.Ww=(t,e)=>new l(t,e),e.er=(t,e)=>new n(t,e),e.uB=i,e.c$=l,e.ef=n,e._V=a,e.b7=s,e.Di=o,e.a2=o},9297(t,e,r){const{InvalidArgumentError:n}=r(3666);e.Argument=class{constructor(t,e){switch(this.description=e||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,e){return e!==this.defaultValue&&Array.isArray(e)?(e.push(t),e):[t]}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(t,e)=>{if(!this.argChoices.includes(t))throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(t,e):t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},e.humanReadableArgName=function(t){const e=t.name()+(!0===t.variadic?"...":"");return t.required?"<"+e+">":"["+e+"]"}},3749(t,e,r){const n=r(8474).EventEmitter,i=r(1421),s=r(6760),o=r(3024),a=r(1708),{Argument:l,humanReadableArgName:u}=r(9297),{CommanderError:h}=r(3666),{Help:c,stripColor:d}=r(3693),{Option:f,DualOptions:p}=r(5019),{suggestSimilar:g}=r(7369);class b extends n{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:t=>a.stdout.write(t),writeErr:t=>a.stderr.write(t),outputError:(t,e)=>e(t),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:void 0,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:void 0,getOutHasColors:()=>y()??(a.stdout.isTTY&&a.stdout.hasColors?.()),getErrHasColors:()=>y()??(a.stderr.isTTY&&a.stderr.hasColors?.()),stripColor:t=>d(t)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){const t=[];for(let e=this;e;e=e.parent)t.push(e);return t}command(t,e,r){let n=e,i=r;"object"==typeof n&&null!==n&&(i=n,n=null),i=i||{};const[,s,o]=t.match(/([^ ]+) *(.*)/),a=this.createCommand(s);return n&&(a.description(n),a._executableHandler=!0),i.isDefault&&(this._defaultCommandName=a._name),a._hidden=!(!i.noHelp&&!i.hidden),a._executableFile=i.executableFile||null,o&&a.arguments(o),this._registerCommand(a),a.parent=this,a.copyInheritedSettings(this),n?this:a}createCommand(t){return new b(t)}createHelp(){return Object.assign(new c,this.configureHelp())}configureHelp(t){return void 0===t?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return void 0===t?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return"string"!=typeof t&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,e){if(!t._name)throw new Error("Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()");return(e=e||{}).isDefault&&(this._defaultCommandName=t._name),(e.noHelp||e.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,e){return new l(t,e)}argument(t,e,r,n){const i=this.createArgument(t,e);return"function"==typeof r?i.default(n).argParser(r):i.default(r),this.addArgument(i),this}arguments(t){return t.trim().split(/ +/).forEach((t=>{this.argument(t)})),this}addArgument(t){const e=this.registeredArguments.slice(-1)[0];if(e?.variadic)throw new Error(`only the last argument can be variadic '${e.name()}'`);if(t.required&&void 0!==t.defaultValue&&void 0===t.parseArg)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,e){if("boolean"==typeof t)return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;const r=t??"help [command]",[,n,i]=r.match(/([^ ]+) *(.*)/),s=e??"display help for command",o=this.createCommand(n);return o.helpOption(!1),i&&o.arguments(i),s&&o.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=o,(t||e)&&this._initCommandGroup(o),this}addHelpCommand(t,e){return"object"!=typeof t?(this.helpCommand(t,e),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(void 0===this._helpCommand&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,e){const r=["preSubcommand","preAction","postAction"];if(!r.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.\nExpecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(e):this._lifeCycleHooks[t]=[e],this}exitOverride(t){return this._exitCallback=t||(t=>{if("commander.executeSubCommandAsync"!==t.code)throw t}),this}_exit(t,e,r){this._exitCallback&&this._exitCallback(new h(t,e,r)),a.exit(t)}action(t){return this._actionHandler=e=>{const r=this.registeredArguments.length,n=e.slice(0,r);return this._storeOptionsAsProperties?n[r]=this:n[r]=this.opts(),n.push(this),t.apply(this,n)},this}createOption(t,e){return new f(t,e)}_callParseArg(t,e,r,n){try{return t.parseArg(e,r)}catch(t){if("commander.invalidArgument"===t.code){const e=`${n} ${t.message}`;this.error(e,{exitCode:t.exitCode,code:t.code})}throw t}}_registerOption(t){const e=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(e){const r=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${r}'\n- already used by option '${e.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){const e=t=>[t.name()].concat(t.aliases()),r=e(t).find((t=>this._findCommand(t)));if(r){const n=e(this._findCommand(r)).join("|"),i=e(t).join("|");throw new Error(`cannot add command '${i}' as already have command '${n}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);const e=t.name(),r=t.attributeName();if(t.negate){const e=t.long.replace(/^--no-/,"--");this._findOption(e)||this.setOptionValueWithSource(r,void 0===t.defaultValue||t.defaultValue,"default")}else void 0!==t.defaultValue&&this.setOptionValueWithSource(r,t.defaultValue,"default");const n=(e,n,i)=>{null==e&&void 0!==t.presetArg&&(e=t.presetArg);const s=this.getOptionValue(r);null!==e&&t.parseArg?e=this._callParseArg(t,e,s,n):null!==e&&t.variadic&&(e=t._collectValue(e,s)),null==e&&(e=!t.negate&&(!(!t.isBoolean()&&!t.optional)||"")),this.setOptionValueWithSource(r,e,i)};return this.on("option:"+e,(e=>{const r=`error: option '${t.flags}' argument '${e}' is invalid.`;n(e,r,"cli")})),t.envVar&&this.on("optionEnv:"+e,(e=>{const r=`error: option '${t.flags}' value '${e}' from env '${t.envVar}' is invalid.`;n(e,r,"env")})),this}_optionEx(t,e,r,n,i){if("object"==typeof e&&e instanceof f)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");const s=this.createOption(e,r);if(s.makeOptionMandatory(!!t.mandatory),"function"==typeof n)s.default(i).argParser(n);else if(n instanceof RegExp){const t=n;n=(e,r)=>{const n=t.exec(e);return n?n[0]:r},s.default(i).argParser(n)}else s.default(n);return this.addOption(s)}option(t,e,r,n){return this._optionEx({},t,e,r,n)}requiredOption(t,e,r,n){return this._optionEx({mandatory:!0},t,e,r,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,e){return this.setOptionValueWithSource(t,e,void 0)}setOptionValueWithSource(t,e,r){return this._storeOptionsAsProperties?this[t]=e:this._optionValues[t]=e,this._optionValueSources[t]=r,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let e;return this._getCommandAndAncestors().forEach((r=>{void 0!==r.getOptionValueSource(t)&&(e=r.getOptionValueSource(t))})),e}_prepareUserArgs(t,e){if(void 0!==t&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(e=e||{},void 0===t&&void 0===e.from){a.versions?.electron&&(e.from="electron");const t=a.execArgv??[];(t.includes("-e")||t.includes("--eval")||t.includes("-p")||t.includes("--print"))&&(e.from="eval")}let r;switch(void 0===t&&(t=a.argv),this.rawArgs=t.slice(),e.from){case void 0:case"node":this._scriptPath=t[1],r=t.slice(2);break;case"electron":a.defaultApp?(this._scriptPath=t[1],r=t.slice(2)):r=t.slice(1);break;case"user":r=t.slice(0);break;case"eval":r=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${e.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",r}parse(t,e){this._prepareForParse();const r=this._prepareUserArgs(t,e);return this._parseCommand([],r),this}async parseAsync(t,e){this._prepareForParse();const r=this._prepareUserArgs(t,e);return await this._parseCommand([],r),this}_prepareForParse(){null===this._savedState?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error("Can not call parse again when storeOptionsAsProperties is true.\n- either make a new Command for each call to parse, or stop storing options as properties");this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,e,r){if(o.existsSync(t))return;throw new Error(`'${t}' does not exist\n - if '${r}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${e?`searched for local subcommand relative to directory '${e}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory"}`)}_executeSubCommand(t,e){e=e.slice();let r=!1;const n=[".js",".ts",".tsx",".mjs",".cjs"];function l(t,e){const r=s.resolve(t,e);if(o.existsSync(r))return r;if(n.includes(s.extname(e)))return;const i=n.find((t=>o.existsSync(`${r}${t}`)));return i?`${r}${i}`:void 0}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let u,c=t._executableFile||`${this._name}-${t._name}`,d=this._executableDir||"";if(this._scriptPath){let t;try{t=o.realpathSync(this._scriptPath)}catch{t=this._scriptPath}d=s.resolve(s.dirname(t),d)}if(d){let e=l(d,c);if(!e&&!t._executableFile&&this._scriptPath){const r=s.basename(this._scriptPath,s.extname(this._scriptPath));r!==this._name&&(e=l(d,`${r}-${t._name}`))}c=e||c}if(r=n.includes(s.extname(c)),"win32"!==a.platform?r?(e.unshift(c),e=m(a.execArgv).concat(e),u=i.spawn(a.argv[0],e,{stdio:"inherit"})):u=i.spawn(c,e,{stdio:"inherit"}):(this._checkForMissingExecutable(c,d,t._name),e.unshift(c),e=m(a.execArgv).concat(e),u=i.spawn(a.execPath,e,{stdio:"inherit"})),!u.killed){["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((t=>{a.on(t,(()=>{!1===u.killed&&null===u.exitCode&&u.kill(t)}))}))}const f=this._exitCallback;u.on("close",(t=>{t=t??1,f?f(new h(t,"commander.executeSubCommandAsync","(close)")):a.exit(t)})),u.on("error",(e=>{if("ENOENT"===e.code)this._checkForMissingExecutable(c,d,t._name);else if("EACCES"===e.code)throw new Error(`'${c}' not executable`);if(f){const t=new h(1,"commander.executeSubCommandAsync","(error)");t.nestedError=e,f(t)}else a.exit(1)})),this.runningCommand=u}_dispatchSubcommand(t,e,r){const n=this._findCommand(t);let i;return n||this.help({error:!0}),n._prepareForParse(),i=this._chainOrCallSubCommandHook(i,n,"preSubcommand"),i=this._chainOrCall(i,(()=>{if(!n._executableHandler)return n._parseCommand(e,r);this._executeSubCommand(n,e.concat(r))})),i}_dispatchHelpCommand(t){t||this.help();const e=this._findCommand(t);return e&&!e._executableHandler&&e.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach(((t,e)=>{t.required&&null==this.args[e]&&this.missingArgument(t.name())})),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic||this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){const t=(t,e,r)=>{let n=e;if(null!==e&&t.parseArg){const i=`error: command-argument value '${e}' is invalid for argument '${t.name()}'.`;n=this._callParseArg(t,e,r,i)}return n};this._checkNumberOfArguments();const e=[];this.registeredArguments.forEach(((r,n)=>{let i=r.defaultValue;r.variadic?n<this.args.length?(i=this.args.slice(n),r.parseArg&&(i=i.reduce(((e,n)=>t(r,n,e)),r.defaultValue))):void 0===i&&(i=[]):n<this.args.length&&(i=this.args[n],r.parseArg&&(i=t(r,i,r.defaultValue))),e[n]=i})),this.processedArgs=e}_chainOrCall(t,e){return t?.then&&"function"==typeof t.then?t.then((()=>e())):e()}_chainOrCallHooks(t,e){let r=t;const n=[];return this._getCommandAndAncestors().reverse().filter((t=>void 0!==t._lifeCycleHooks[e])).forEach((t=>{t._lifeCycleHooks[e].forEach((e=>{n.push({hookedCommand:t,callback:e})}))})),"postAction"===e&&n.reverse(),n.forEach((t=>{r=this._chainOrCall(r,(()=>t.callback(t.hookedCommand,this)))})),r}_chainOrCallSubCommandHook(t,e,r){let n=t;return void 0!==this._lifeCycleHooks[r]&&this._lifeCycleHooks[r].forEach((t=>{n=this._chainOrCall(n,(()=>t(this,e)))})),n}_parseCommand(t,e){const r=this.parseOptions(e);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(r.operands),e=r.unknown,this.args=t.concat(e),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),e);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(e),this._dispatchSubcommand(this._defaultCommandName,t,e);!this.commands.length||0!==this.args.length||this._actionHandler||this._defaultCommandName||this.help({error:!0}),this._outputHelpIfRequested(r.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();const n=()=>{r.unknown.length>0&&this.unknownOption(r.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){let r;return n(),this._processArguments(),r=this._chainOrCallHooks(r,"preAction"),r=this._chainOrCall(r,(()=>this._actionHandler(this.processedArgs))),this.parent&&(r=this._chainOrCall(r,(()=>{this.parent.emit(i,t,e)}))),r=this._chainOrCallHooks(r,"postAction"),r}if(this.parent?.listenerCount(i))n(),this._processArguments(),this.parent.emit(i,t,e);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,e);this.listenerCount("command:*")?this.emit("command:*",t,e):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find((e=>e._name===t||e._aliases.includes(t)))}_findOption(t){return this.options.find((e=>e.is(t)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((t=>{t.options.forEach((e=>{e.mandatory&&void 0===t.getOptionValue(e.attributeName())&&t.missingMandatoryOptionValue(e)}))}))}_checkForConflictingLocalOptions(){const t=this.options.filter((t=>{const e=t.attributeName();return void 0!==this.getOptionValue(e)&&"default"!==this.getOptionValueSource(e)}));t.filter((t=>t.conflictsWith.length>0)).forEach((e=>{const r=t.find((t=>e.conflictsWith.includes(t.attributeName())));r&&this._conflictingOption(e,r)}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((t=>{t._checkForConflictingLocalOptions()}))}parseOptions(t){const e=[],r=[];let n=e;function i(t){return t.length>1&&"-"===t[0]}const s=t=>!!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(t)&&!this._getCommandAndAncestors().some((t=>t.options.map((t=>t.short)).some((t=>/^-\d$/.test(t)))));let o=null,a=null,l=0;for(;l<t.length||a;){const u=a??t[l++];if(a=null,"--"===u){n===r&&n.push(u),n.push(...t.slice(l));break}if(!o||i(u)&&!s(u)){if(o=null,i(u)){const e=this._findOption(u);if(e){if(e.required){const r=t[l++];void 0===r&&this.optionMissingArgument(e),this.emit(`option:${e.name()}`,r)}else if(e.optional){let r=null;l<t.length&&(!i(t[l])||s(t[l]))&&(r=t[l++]),this.emit(`option:${e.name()}`,r)}else this.emit(`option:${e.name()}`);o=e.variadic?e:null;continue}}if(u.length>2&&"-"===u[0]&&"-"!==u[1]){const t=this._findOption(`-${u[1]}`);if(t){t.required||t.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${t.name()}`,u.slice(2)):(this.emit(`option:${t.name()}`),a=`-${u.slice(2)}`);continue}}if(/^--[^=]+=/.test(u)){const t=u.indexOf("="),e=this._findOption(u.slice(0,t));if(e&&(e.required||e.optional)){this.emit(`option:${e.name()}`,u.slice(t+1));continue}}if(n!==e||!i(u)||0===this.commands.length&&s(u)||(n=r),(this._enablePositionalOptions||this._passThroughOptions)&&0===e.length&&0===r.length){if(this._findCommand(u)){e.push(u),r.push(...t.slice(l));break}if(this._getHelpCommand()&&u===this._getHelpCommand().name()){e.push(u,...t.slice(l));break}if(this._defaultCommandName){r.push(u,...t.slice(l));break}}if(this._passThroughOptions){n.push(u,...t.slice(l));break}n.push(u)}else this.emit(`option:${o.name()}`,u)}return{operands:e,unknown:r}}opts(){if(this._storeOptionsAsProperties){const t={},e=this.options.length;for(let r=0;r<e;r++){const e=this.options[r].attributeName();t[e]=e===this._versionOptionName?this._version:this[e]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((t,e)=>Object.assign(t,e.opts())),{})}error(t,e){this._outputConfiguration.outputError(`${t}\n`,this._outputConfiguration.writeErr),"string"==typeof this._showHelpAfterError?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr("\n"),this.outputHelp({error:!0}));const r=e||{},n=r.exitCode||1,i=r.code||"commander.error";this._exit(n,i,t)}_parseOptionsEnv(){this.options.forEach((t=>{if(t.envVar&&t.envVar in a.env){const e=t.attributeName();(void 0===this.getOptionValue(e)||["default","config","env"].includes(this.getOptionValueSource(e)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,a.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}}))}_parseOptionsImplied(){const t=new p(this.options),e=t=>void 0!==this.getOptionValue(t)&&!["default","implied"].includes(this.getOptionValueSource(t));this.options.filter((r=>void 0!==r.implied&&e(r.attributeName())&&t.valueFromOption(this.getOptionValue(r.attributeName()),r))).forEach((t=>{Object.keys(t.implied).filter((t=>!e(t))).forEach((e=>{this.setOptionValueWithSource(e,t.implied[e],"implied")}))}))}missingArgument(t){const e=`error: missing required argument '${t}'`;this.error(e,{code:"commander.missingArgument"})}optionMissingArgument(t){const e=`error: option '${t.flags}' argument missing`;this.error(e,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){const e=`error: required option '${t.flags}' not specified`;this.error(e,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,e){const r=t=>{const e=t.attributeName(),r=this.getOptionValue(e),n=this.options.find((t=>t.negate&&e===t.attributeName())),i=this.options.find((t=>!t.negate&&e===t.attributeName()));return n&&(void 0===n.presetArg&&!1===r||void 0!==n.presetArg&&r===n.presetArg)?n:i||t},n=t=>{const e=r(t),n=e.attributeName();return"env"===this.getOptionValueSource(n)?`environment variable '${e.envVar}'`:`option '${e.flags}'`},i=`error: ${n(t)} cannot be used with ${n(e)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let e="";if(t.startsWith("--")&&this._showSuggestionAfterError){let r=[],n=this;do{const t=n.createHelp().visibleOptions(n).filter((t=>t.long)).map((t=>t.long));r=r.concat(t),n=n.parent}while(n&&!n._enablePositionalOptions);e=g(t,r)}const r=`error: unknown option '${t}'${e}`;this.error(r,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;const e=this.registeredArguments.length,r=1===e?"":"s",n=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${e} argument${r} but got ${t.length}.`;this.error(n,{code:"commander.excessArguments"})}unknownCommand(){const t=this.args[0];let e="";if(this._showSuggestionAfterError){const r=[];this.createHelp().visibleCommands(this).forEach((t=>{r.push(t.name()),t.alias()&&r.push(t.alias())})),e=g(t,r)}const r=`error: unknown command '${t}'${e}`;this.error(r,{code:"commander.unknownCommand"})}version(t,e,r){if(void 0===t)return this._version;this._version=t,e=e||"-V, --version",r=r||"output the version number";const n=this.createOption(e,r);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),(()=>{this._outputConfiguration.writeOut(`${t}\n`),this._exit(0,"commander.version",t)})),this}description(t,e){return void 0===t&&void 0===e?this._description:(this._description=t,e&&(this._argsDescription=e),this)}summary(t){return void 0===t?this._summary:(this._summary=t,this)}alias(t){if(void 0===t)return this._aliases[0];let e=this;if(0!==this.commands.length&&this.commands[this.commands.length-1]._executableHandler&&(e=this.commands[this.commands.length-1]),t===e._name)throw new Error("Command alias can't be the same as its name");const r=this.parent?._findCommand(t);if(r){const e=[r.name()].concat(r.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${e}'`)}return e._aliases.push(t),this}aliases(t){return void 0===t?this._aliases:(t.forEach((t=>this.alias(t))),this)}usage(t){if(void 0===t){if(this._usage)return this._usage;const t=this.registeredArguments.map((t=>u(t)));return[].concat(this.options.length||null!==this._helpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=t,this}name(t){return void 0===t?this._name:(this._name=t,this)}helpGroup(t){return void 0===t?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return void 0===t?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return void 0===t?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=s.basename(t,s.extname(t)),this}executableDir(t){return void 0===t?this._executableDir:(this._executableDir=t,this)}helpInformation(t){const e=this.createHelp(),r=this._getOutputContext(t);e.prepareContext({error:r.error,helpWidth:r.helpWidth,outputHasColors:r.hasColors});const n=e.formatHelp(this,e);return r.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){const e=!!(t=t||{}).error;let r,n,i;e?(r=t=>this._outputConfiguration.writeErr(t),n=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(r=t=>this._outputConfiguration.writeOut(t),n=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth());return{error:e,write:t=>(n||(t=this._outputConfiguration.stripColor(t)),r(t)),hasColors:n,helpWidth:i}}outputHelp(t){let e;"function"==typeof t&&(e=t,t=void 0);const r=this._getOutputContext(t),n={error:r.error,write:r.write,command:this};this._getCommandAndAncestors().reverse().forEach((t=>t.emit("beforeAllHelp",n))),this.emit("beforeHelp",n);let i=this.helpInformation({error:r.error});if(e&&(i=e(i),"string"!=typeof i&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");r.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach((t=>t.emit("afterAllHelp",n)))}helpOption(t,e){return"boolean"==typeof t?(t?(null===this._helpOption&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",e??"display help for command"),(t||e)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return void 0===this._helpOption&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let e=Number(a.exitCode??0);0===e&&t&&"function"!=typeof t&&t.error&&(e=1),this._exit(e,"commander.help","(outputHelp)")}addHelpText(t,e){const r=["beforeAll","before","after","afterAll"];if(!r.includes(t))throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${r.join("', '")}'`);const n=`${t}Help`;return this.on(n,(t=>{let r;r="function"==typeof e?e({error:t.error,command:t.command}):e,r&&t.write(`${r}\n`)})),this}_outputHelpIfRequested(t){const e=this._getHelpOption();e&&t.find((t=>e.is(t)))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}}function m(t){return t.map((t=>{if(!t.startsWith("--inspect"))return t;let e,r,n="127.0.0.1",i="9229";return null!==(r=t.match(/^(--inspect(-brk)?)$/))?e=r[1]:null!==(r=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))?(e=r[1],/^\d+$/.test(r[3])?i=r[3]:n=r[3]):null!==(r=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(e=r[1],n=r[3],i=r[4]),e&&"0"!==i?`${e}=${n}:${parseInt(i)+1}`:t}))}function y(){return!a.env.NO_COLOR&&"0"!==a.env.FORCE_COLOR&&"false"!==a.env.FORCE_COLOR&&(!(!a.env.FORCE_COLOR&&void 0===a.env.CLICOLOR_FORCE)||void 0)}e.Command=b,e.useColor=y},3666(t,e){class r extends Error{constructor(t,e,r){super(r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=e,this.exitCode=t,this.nestedError=void 0}}e.CommanderError=r,e.InvalidArgumentError=class extends r{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}},3693(t,e,r){const{humanReadableArgName:n}=r(9297);function i(t){return t.replace(/\x1b\[\d*(;\d*)*m/g,"")}e.Help=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){const e=t.commands.filter((t=>!t._hidden)),r=t._getHelpCommand();return r&&!r._hidden&&e.push(r),this.sortSubcommands&&e.sort(((t,e)=>t.name().localeCompare(e.name()))),e}compareOptions(t,e){const r=t=>t.short?t.short.replace(/^-/,""):t.long.replace(/^--/,"");return r(t).localeCompare(r(e))}visibleOptions(t){const e=t.options.filter((t=>!t.hidden)),r=t._getHelpOption();if(r&&!r.hidden){const n=r.short&&t._findOption(r.short),i=r.long&&t._findOption(r.long);n||i?r.long&&!i?e.push(t.createOption(r.long,r.description)):r.short&&!n&&e.push(t.createOption(r.short,r.description)):e.push(r)}return this.sortOptions&&e.sort(this.compareOptions),e}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];const e=[];for(let r=t.parent;r;r=r.parent){const t=r.options.filter((t=>!t.hidden));e.push(...t)}return this.sortOptions&&e.sort(this.compareOptions),e}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach((e=>{e.description=e.description||t._argsDescription[e.name()]||""})),t.registeredArguments.find((t=>t.description))?t.registeredArguments:[]}subcommandTerm(t){const e=t.registeredArguments.map((t=>n(t))).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(e?" "+e:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,e){return e.visibleCommands(t).reduce(((t,r)=>Math.max(t,this.displayWidth(e.styleSubcommandTerm(e.subcommandTerm(r))))),0)}longestOptionTermLength(t,e){return e.visibleOptions(t).reduce(((t,r)=>Math.max(t,this.displayWidth(e.styleOptionTerm(e.optionTerm(r))))),0)}longestGlobalOptionTermLength(t,e){return e.visibleGlobalOptions(t).reduce(((t,r)=>Math.max(t,this.displayWidth(e.styleOptionTerm(e.optionTerm(r))))),0)}longestArgumentTermLength(t,e){return e.visibleArguments(t).reduce(((t,r)=>Math.max(t,this.displayWidth(e.styleArgumentTerm(e.argumentTerm(r))))),0)}commandUsage(t){let e=t._name;t._aliases[0]&&(e=e+"|"+t._aliases[0]);let r="";for(let e=t.parent;e;e=e.parent)r=e.name()+" "+r;return r+e+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){const e=[];if(t.argChoices&&e.push(`choices: ${t.argChoices.map((t=>JSON.stringify(t))).join(", ")}`),void 0!==t.defaultValue){(t.required||t.optional||t.isBoolean()&&"boolean"==typeof t.defaultValue)&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`)}if(void 0!==t.presetArg&&t.optional&&e.push(`preset: ${JSON.stringify(t.presetArg)}`),void 0!==t.envVar&&e.push(`env: ${t.envVar}`),e.length>0){const r=`(${e.join(", ")})`;return t.description?`${t.description} ${r}`:r}return t.description}argumentDescription(t){const e=[];if(t.argChoices&&e.push(`choices: ${t.argChoices.map((t=>JSON.stringify(t))).join(", ")}`),void 0!==t.defaultValue&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),e.length>0){const r=`(${e.join(", ")})`;return t.description?`${t.description} ${r}`:r}return t.description}formatItemList(t,e,r){return 0===e.length?[]:[r.styleTitle(t),...e,""]}groupItems(t,e,r){const n=new Map;return t.forEach((t=>{const e=r(t);n.has(e)||n.set(e,[])})),e.forEach((t=>{const e=r(t);n.has(e)||n.set(e,[]),n.get(e).push(t)})),n}formatHelp(t,e){const r=e.padWidth(t,e),n=e.helpWidth??80;function i(t,n){return e.formatItem(t,r,n,e)}let s=[`${e.styleTitle("Usage:")} ${e.styleUsage(e.commandUsage(t))}`,""];const o=e.commandDescription(t);o.length>0&&(s=s.concat([e.boxWrap(e.styleCommandDescription(o),n),""]));const a=e.visibleArguments(t).map((t=>i(e.styleArgumentTerm(e.argumentTerm(t)),e.styleArgumentDescription(e.argumentDescription(t)))));s=s.concat(this.formatItemList("Arguments:",a,e));if(this.groupItems(t.options,e.visibleOptions(t),(t=>t.helpGroupHeading??"Options:")).forEach(((t,r)=>{const n=t.map((t=>i(e.styleOptionTerm(e.optionTerm(t)),e.styleOptionDescription(e.optionDescription(t)))));s=s.concat(this.formatItemList(r,n,e))})),e.showGlobalOptions){const r=e.visibleGlobalOptions(t).map((t=>i(e.styleOptionTerm(e.optionTerm(t)),e.styleOptionDescription(e.optionDescription(t)))));s=s.concat(this.formatItemList("Global Options:",r,e))}return this.groupItems(t.commands,e.visibleCommands(t),(t=>t.helpGroup()||"Commands:")).forEach(((t,r)=>{const n=t.map((t=>i(e.styleSubcommandTerm(e.subcommandTerm(t)),e.styleSubcommandDescription(e.subcommandDescription(t)))));s=s.concat(this.formatItemList(r,n,e))})),s.join("\n")}displayWidth(t){return i(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map((t=>"[options]"===t?this.styleOptionText(t):"[command]"===t?this.styleSubcommandText(t):"["===t[0]||"<"===t[0]?this.styleArgumentText(t):this.styleCommandText(t))).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map((t=>"[options]"===t?this.styleOptionText(t):"["===t[0]||"<"===t[0]?this.styleArgumentText(t):this.styleSubcommandText(t))).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,e){return Math.max(e.longestOptionTermLength(t,e),e.longestGlobalOptionTermLength(t,e),e.longestSubcommandTermLength(t,e),e.longestArgumentTermLength(t,e))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,e,r,n){const i=" ".repeat(2);if(!r)return i+t;const s=t.padEnd(e+t.length-n.displayWidth(t)),o=(this.helpWidth??80)-e-2-2;let a;if(o<this.minWidthToWrap||n.preformatted(r))a=r;else{a=n.boxWrap(r,o).replace(/\n/g,"\n"+" ".repeat(e+2))}return i+s+" ".repeat(2)+a.replace(/\n/g,`\n${i}`)}boxWrap(t,e){if(e<this.minWidthToWrap)return t;const r=t.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,i=[];return r.forEach((t=>{const r=t.match(n);if(null===r)return void i.push("");let s=[r.shift()],o=this.displayWidth(s[0]);r.forEach((t=>{const r=this.displayWidth(t);if(o+r<=e)return s.push(t),void(o+=r);i.push(s.join(""));const n=t.trimStart();s=[n],o=this.displayWidth(n)})),i.push(s.join(""))})),i.join("\n")}},e.stripColor=i},5019(t,e,r){const{InvalidArgumentError:n}=r(3666);function i(t){return t.split("-").reduce(((t,e)=>t+e[0].toUpperCase()+e.slice(1)))}e.Option=class{constructor(t,e){this.flags=t,this.description=e||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;const r=function(t){let e,r;const n=/^-[^-]$/,i=/^--[^-]/,s=t.split(/[ |,]+/).concat("guard");n.test(s[0])&&(e=s.shift());i.test(s[0])&&(r=s.shift());!e&&n.test(s[0])&&(e=s.shift());!e&&i.test(s[0])&&(e=r,r=s.shift());if(s[0].startsWith("-")){const e=s[0],r=`option creation failed due to '${e}' in option flags '${t}'`;if(/^-[^-][^-]/.test(e))throw new Error(`${r}\n- a short flag is a single dash and a single character\n - either use a single dash and a single character (for a short flag)\n - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(n.test(e))throw new Error(`${r}\n- too many short flags`);if(i.test(e))throw new Error(`${r}\n- too many long flags`);throw new Error(`${r}\n- unrecognised flag format`)}if(void 0===e&&void 0===r)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:e,longFlag:r}}(t);this.short=r.shortFlag,this.long=r.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let e=t;return"string"==typeof t&&(e={[t]:!0}),this.implied=Object.assign(this.implied||{},e),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,e){return e!==this.defaultValue&&Array.isArray(e)?(e.push(t),e):[t]}choices(t){return this.argChoices=t.slice(),this.parseArg=(t,e)=>{if(!this.argChoices.includes(t))throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(t,e):t},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?i(this.name().replace(/^no-/,"")):i(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},e.DualOptions=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach((t=>{t.negate?this.negativeOptions.set(t.attributeName(),t):this.positiveOptions.set(t.attributeName(),t)})),this.negativeOptions.forEach(((t,e)=>{this.positiveOptions.has(e)&&this.dualOptions.add(e)}))}valueFromOption(t,e){const r=e.attributeName();if(!this.dualOptions.has(r))return!0;const n=this.negativeOptions.get(r).presetArg,i=void 0!==n&&n;return e.negate===(i===t)}}},7369(t,e){e.suggestSimilar=function(t,e){if(!e||0===e.length)return"";e=Array.from(new Set(e));const r=t.startsWith("--");r&&(t=t.slice(2),e=e.map((t=>t.slice(2))));let n=[],i=3;return e.forEach((e=>{if(e.length<=1)return;const r=function(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);const r=[];for(let e=0;e<=t.length;e++)r[e]=[e];for(let t=0;t<=e.length;t++)r[0][t]=t;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;s=t[i-1]===e[n-1]?0:1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}(t,e),s=Math.max(t.length,e.length);(s-r)/s>.4&&(r<i?(i=r,n=[e]):r===i&&n.push(e))})),n.sort(((t,e)=>t.localeCompare(e))),r&&(n=n.map((t=>`--${t}`))),n.length>1?`\n(Did you mean one of ${n.join(", ")}?)`:1===n.length?`\n(Did you mean ${n[0]}?)`:""}},8576(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.PathScurry=e.Path=e.PathScurryDarwin=e.PathScurryPosix=e.PathScurryWin32=e.PathScurryBase=e.PathPosix=e.PathWin32=e.PathBase=e.ChildrenCache=e.ResolveCache=void 0;const o=r(9950),a=r(6760),l=r(3136),u=r(9896),h=s(r(3024)),c=u.realpathSync.native,d=r(1455),f=r(5313),p={lstatSync:u.lstatSync,readdir:u.readdir,readdirSync:u.readdirSync,readlinkSync:u.readlinkSync,realpathSync:c,promises:{lstat:d.lstat,readdir:d.readdir,readlink:d.readlink,realpath:d.realpath}},g=t=>t&&t!==p&&t!==h?{...p,...t,promises:{...p.promises,...t.promises||{}}}:p,b=/^\\\\\?\\([a-z]:)\\?$/i,m=/[\\\/]/,y=10,w=15,_=-16,v=128,S=256,E=512,x=t=>t.isFile()?8:t.isDirectory()?4:t.isSymbolicLink()?y:t.isCharacterDevice()?2:t.isBlockDevice()?6:t.isSocket()?12:t.isFIFO()?1:0,A=new Map,R=t=>{const e=A.get(t);if(e)return e;const r=t.normalize("NFKD");return A.set(t,r),r},O=new Map,T=t=>{const e=O.get(t);if(e)return e;const r=R(t.toLowerCase());return O.set(t,r),r};class k extends o.LRUCache{constructor(){super({max:256})}}e.ResolveCache=k;class M extends o.LRUCache{constructor(t=16384){super({maxSize:t,sizeCalculation:t=>t.length+1})}}e.ChildrenCache=M;const P=Symbol("PathScurry setAsCwd");class I{name;root;roots;parent;nocase;isCWD=!1;#M;#P;get dev(){return this.#P}#I;get mode(){return this.#I}#L;get nlink(){return this.#L}#D;get uid(){return this.#D}#C;get gid(){return this.#C}#N;get rdev(){return this.#N}#j;get blksize(){return this.#j}#F;get ino(){return this.#F}#$;get size(){return this.#$}#W;get blocks(){return this.#W}#B;get atimeMs(){return this.#B}#U;get mtimeMs(){return this.#U}#z;get ctimeMs(){return this.#z}#H;get birthtimeMs(){return this.#H}#G;get atime(){return this.#G}#V;get mtime(){return this.#V}#q;get ctime(){return this.#q}#Y;get birthtime(){return this.#Y}#K;#Z;#J;#Q;#X;#tt;#et;#rt;#nt;#it;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,e=0,r,n,i,s,o){this.name=t,this.#K=i?T(t):R(t),this.#et=1023&e,this.nocase=i,this.roots=n,this.root=r||this,this.#rt=s,this.#J=o.fullpath,this.#X=o.relative,this.#tt=o.relativePosix,this.parent=o.parent,this.parent?this.#M=this.parent.#M:this.#M=g(o.fs)}depth(){return void 0!==this.#Z?this.#Z:this.parent?this.#Z=this.parent.depth()+1:this.#Z=0}childrenCache(){return this.#rt}resolve(t){if(!t)return this;const e=this.getRootString(t),r=t.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#st(r):this.#st(r)}#st(t){let e=this;for(const r of t)e=e.child(r);return e}children(){const t=this.#rt.get(this);if(t)return t;const e=Object.assign([],{provisional:0});return this.#rt.set(this,e),this.#et&=-17,e}child(t,e){if(""===t||"."===t)return this;if(".."===t)return this.parent||this;const r=this.children(),n=this.nocase?T(t):R(t);for(const t of r)if(t.#K===n)return t;const i=this.parent?this.sep:"",s=this.#J?this.#J+i+t:void 0,o=this.newChild(t,0,{...e,parent:this,fullpath:s});return this.canReaddir()||(o.#et|=v),r.push(o),o}relative(){if(this.isCWD)return"";if(void 0!==this.#X)return this.#X;const t=this.name,e=this.parent;if(!e)return this.#X=this.name;const r=e.relative();return r+(r&&e.parent?this.sep:"")+t}relativePosix(){if("/"===this.sep)return this.relative();if(this.isCWD)return"";if(void 0!==this.#tt)return this.#tt;const t=this.name,e=this.parent;if(!e)return this.#tt=this.fullpathPosix();const r=e.relativePosix();return r+(r&&e.parent?"/":"")+t}fullpath(){if(void 0!==this.#J)return this.#J;const t=this.name,e=this.parent;if(!e)return this.#J=this.name;const r=e.fullpath()+(e.parent?this.sep:"")+t;return this.#J=r}fullpathPosix(){if(void 0!==this.#Q)return this.#Q;if("/"===this.sep)return this.#Q=this.fullpath();if(!this.parent){const t=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(t)?this.#Q=`//?/${t}`:this.#Q=t}const t=this.parent,e=t.fullpathPosix(),r=e+(e&&t.parent?"/":"")+this.name;return this.#Q=r}isUnknown(){return!(this.#et&w)}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#et&w)}isDirectory(){return 4==(this.#et&w)}isCharacterDevice(){return 2==(this.#et&w)}isBlockDevice(){return 6==(this.#et&w)}isFIFO(){return 1==(this.#et&w)}isSocket(){return 12==(this.#et&w)}isSymbolicLink(){return(this.#et&y)===y}lstatCached(){return 32&this.#et?this:void 0}readlinkCached(){return this.#nt}realpathCached(){return this.#it}readdirCached(){const t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#nt)return!0;if(!this.parent)return!1;const t=this.#et&w;return!(0!==t&&t!==y||this.#et&S||this.#et&v)}calledReaddir(){return!!(16&this.#et)}isENOENT(){return!!(this.#et&v)}isNamed(t){return this.nocase?this.#K===T(t):this.#K===R(t)}async readlink(){const t=this.#nt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=await this.#M.promises.readlink(this.fullpath()),e=(await this.parent.realpath())?.resolve(t);if(e)return this.#nt=e}catch(t){return void this.#ot(t.code)}}readlinkSync(){const t=this.#nt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=this.#M.readlinkSync(this.fullpath()),e=this.parent.realpathSync()?.resolve(t);if(e)return this.#nt=e}catch(t){return void this.#ot(t.code)}}#at(t){this.#et|=16;for(let e=t.provisional;e<t.length;e++){const r=t[e];r&&r.#lt()}}#lt(){this.#et&v||(this.#et=(this.#et|v)&_,this.#ut())}#ut(){const t=this.children();t.provisional=0;for(const e of t)e.#lt()}#ht(){this.#et|=E,this.#ct()}#ct(){if(64&this.#et)return;let t=this.#et;4==(t&w)&&(t&=_),this.#et=64|t,this.#ut()}#dt(t=""){"ENOTDIR"===t||"EPERM"===t?this.#ct():"ENOENT"===t?this.#lt():this.children().provisional=0}#ft(t=""){if("ENOTDIR"===t){this.parent.#ct()}else"ENOENT"===t&&this.#lt()}#ot(t=""){let e=this.#et;e|=S,"ENOENT"===t&&(e|=v),"EINVAL"!==t&&"UNKNOWN"!==t||(e&=_),this.#et=e,"ENOTDIR"===t&&this.parent&&this.parent.#ct()}#pt(t,e){return this.#gt(t,e)||this.#bt(t,e)}#bt(t,e){const r=x(t),n=this.newChild(t.name,r,{parent:this}),i=n.#et&w;return 4!==i&&i!==y&&0!==i&&(n.#et|=64),e.unshift(n),e.provisional++,n}#gt(t,e){for(let r=e.provisional;r<e.length;r++){const n=e[r];if((this.nocase?T(t.name):R(t.name))===n.#K)return this.#mt(t,n,r,e)}}#mt(t,e,r,n){const i=e.name;return e.#et=e.#et&_|x(t),i!==t.name&&(e.name=t.name),r!==n.provisional&&(r===n.length-1?n.pop():n.splice(r,1),n.unshift(e)),n.provisional++,e}async lstat(){if(!(this.#et&v))try{return this.#yt(await this.#M.promises.lstat(this.fullpath())),this}catch(t){this.#ft(t.code)}}lstatSync(){if(!(this.#et&v))try{return this.#yt(this.#M.lstatSync(this.fullpath())),this}catch(t){this.#ft(t.code)}}#yt(t){const{atime:e,atimeMs:r,birthtime:n,birthtimeMs:i,blksize:s,blocks:o,ctime:a,ctimeMs:l,dev:u,gid:h,ino:c,mode:d,mtime:f,mtimeMs:p,nlink:g,rdev:b,size:m,uid:w}=t;this.#G=e,this.#B=r,this.#Y=n,this.#H=i,this.#j=s,this.#W=o,this.#q=a,this.#z=l,this.#P=u,this.#C=h,this.#F=c,this.#I=d,this.#V=f,this.#U=p,this.#L=g,this.#N=b,this.#$=m,this.#D=w;const v=x(t);this.#et=this.#et&_|v|32,0!==v&&4!==v&&v!==y&&(this.#et|=64)}#wt=[];#_t=!1;#vt(t){this.#_t=!1;const e=this.#wt.slice();this.#wt.length=0,e.forEach((e=>e(null,t)))}readdirCB(t,e=!1){if(!this.canReaddir())return void(e?t(null,[]):queueMicrotask((()=>t(null,[]))));const r=this.children();if(this.calledReaddir()){const n=r.slice(0,r.provisional);return void(e?t(null,n):queueMicrotask((()=>t(null,n))))}if(this.#wt.push(t),this.#_t)return;this.#_t=!0;const n=this.fullpath();this.#M.readdir(n,{withFileTypes:!0},((t,e)=>{if(t)this.#dt(t.code),r.provisional=0;else{for(const t of e)this.#pt(t,r);this.#at(r)}this.#vt(r.slice(0,r.provisional))}))}#St;async readdir(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();if(this.#St)await this.#St;else{let r=()=>{};this.#St=new Promise((t=>r=t));try{for(const r of await this.#M.promises.readdir(e,{withFileTypes:!0}))this.#pt(r,t);this.#at(t)}catch(e){this.#dt(e.code),t.provisional=0}this.#St=void 0,r()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();try{for(const r of this.#M.readdirSync(e,{withFileTypes:!0}))this.#pt(r,t);this.#at(t)}catch(e){this.#dt(e.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(704&this.#et)return!1;const t=w&this.#et;return 0===t||4===t||t===y}shouldWalk(t,e){return!(4&~this.#et)&&!(704&this.#et)&&!t.has(this)&&(!e||e(this))}async realpath(){if(this.#it)return this.#it;if(!(896&this.#et))try{const t=await this.#M.promises.realpath(this.fullpath());return this.#it=this.resolve(t)}catch(t){this.#ht()}}realpathSync(){if(this.#it)return this.#it;if(!(896&this.#et))try{const t=this.#M.realpathSync(this.fullpath());return this.#it=this.resolve(t)}catch(t){this.#ht()}}[P](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;const e=new Set([]);let r=[],n=this;for(;n&&n.parent;)e.add(n),n.#X=r.join(this.sep),n.#tt=r.join("/"),n=n.parent,r.push("..");for(n=t;n&&n.parent&&!e.has(n);)n.#X=void 0,n.#tt=void 0,n=n.parent}}e.PathBase=I;class L extends I{sep="\\";splitSep=m;constructor(t,e=0,r,n,i,s,o){super(t,e,r,n,i,s,o)}newChild(t,e=0,r={}){return new L(t,e,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(t){return a.win32.parse(t).root}getRoot(t){if((t=(t=>t.replace(/\//g,"\\").replace(b,"$1\\"))(t.toUpperCase()))===this.root.name)return this.root;for(const[e,r]of Object.entries(this.roots))if(this.sameRoot(t,e))return this.roots[t]=r;return this.roots[t]=new N(t,this).root}sameRoot(t,e=this.root.name){return(t=t.toUpperCase().replace(/\//g,"\\").replace(b,"$1\\"))===e}}e.PathWin32=L;class D extends I{splitSep="/";sep="/";constructor(t,e=0,r,n,i,s,o){super(t,e,r,n,i,s,o)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,e=0,r={}){return new D(t,e,this.root,this.roots,this.nocase,this.childrenCache(),r)}}e.PathPosix=D;class C{root;rootPath;roots;cwd;#Et;#xt;#rt;nocase;#M;constructor(t=process.cwd(),e,r,{nocase:n,childrenCacheSize:i=16384,fs:s=p}={}){this.#M=g(s),(t instanceof URL||t.startsWith("file://"))&&(t=(0,l.fileURLToPath)(t));const o=e.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#Et=new k,this.#xt=new k,this.#rt=new M(i);const a=o.substring(this.rootPath.length).split(r);if(1!==a.length||a[0]||a.pop(),void 0===n)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#M),this.roots[this.rootPath]=this.root;let u=this.root,h=a.length-1;const c=e.sep;let d=this.rootPath,f=!1;for(const t of a){const e=h--;u=u.child(t,{relative:new Array(e).fill("..").join(c),relativePosix:new Array(e).fill("..").join("/"),fullpath:d+=(f?"":c)+t}),f=!0}this.cwd=u}depth(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#rt}resolve(...t){let e="";for(let r=t.length-1;r>=0;r--){const n=t[r];if(n&&"."!==n&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}const r=this.#Et.get(e);if(void 0!==r)return r;const n=this.cwd.resolve(e).fullpath();return this.#Et.set(e,n),n}resolvePosix(...t){let e="";for(let r=t.length-1;r>=0;r--){const n=t[r];if(n&&"."!==n&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}const r=this.#xt.get(e);if(void 0!==r)return r;const n=this.cwd.resolve(e).fullpathPosix();return this.#xt.set(e,n),n}relative(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r}=e;if(t.canReaddir()){const e=await t.readdir();return r?e:e.map((t=>t.name))}return[]}readdirSync(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0}=e;return t.canReaddir()?r?t.readdirSync():t.readdirSync().map((t=>t.name)):[]}async lstat(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t.withFileTypes,t=this.cwd);const r=await t.readlink();return e?r:r?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t.withFileTypes,t=this.cwd);const r=t.readlinkSync();return e?r:r?.fullpath()}async realpath(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t.withFileTypes,t=this.cwd);const r=await t.realpath();return e?r:r?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t.withFileTypes,t=this.cwd);const r=t.realpathSync();return e?r:r?.fullpath()}async walk(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:s}=e,o=[];i&&!i(t)||o.push(r?t:t.fullpath());const a=new Set,l=(t,e)=>{a.add(t),t.readdirCB(((t,u)=>{if(t)return e(t);let h=u.length;if(!h)return e();const c=()=>{0==--h&&e()};for(const t of u)i&&!i(t)||o.push(r?t:t.fullpath()),n&&t.isSymbolicLink()?t.realpath().then((t=>t?.isUnknown()?t.lstat():t)).then((t=>t?.shouldWalk(a,s)?l(t,c):c())):t.shouldWalk(a,s)?l(t,c):c()}),!0)},u=t;return new Promise(((t,e)=>{l(u,(r=>{if(r)return e(r);t(o)}))}))}walkSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:s}=e,o=[];i&&!i(t)||o.push(r?t:t.fullpath());const a=new Set([t]);for(const t of a){const e=t.readdirSync();for(const t of e){i&&!i(t)||o.push(r?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,s)&&a.add(e)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,e={}){return"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd),this.stream(t,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:s}=e;i&&!i(t)||(yield r?t:t.fullpath());const o=new Set([t]);for(const t of o){const e=t.readdirSync();for(const t of e){i&&!i(t)||(yield r?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(o,s)&&o.add(e)}}}stream(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:s}=e,o=new f.Minipass({objectMode:!0});i&&!i(t)||o.write(r?t:t.fullpath());const a=new Set,l=[t];let u=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===u&&o.end());u++,a.add(e);const c=(e,f,p=!1)=>{if(e)return o.emit("error",e);if(n&&!p){const t=[];for(const e of f)e.isSymbolicLink()&&t.push(e.realpath().then((t=>t?.isUnknown()?t.lstat():t)));if(t.length)return void Promise.all(t).then((()=>c(null,f,!0)))}for(const e of f)!e||i&&!i(e)||o.write(r?e:e.fullpath())||(t=!0);u--;for(const t of f){const e=t.realpathCached()||t;e.shouldWalk(a,s)&&l.push(e)}t&&!o.flowing?o.once("drain",h):d||h()};let d=!0;e.readdirCB(c,!0),d=!1}};return h(),o}streamSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:s}=e,o=new f.Minipass({objectMode:!0}),a=new Set;i&&!i(t)||o.write(r?t:t.fullpath());const l=[t];let u=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===u&&o.end());u++,a.add(e);const h=e.readdirSync();for(const e of h)i&&!i(e)||o.write(r?e:e.fullpath())||(t=!0);u--;for(const t of h){let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,s)&&l.push(e)}}t&&!o.flowing&&o.once("drain",h)};return h(),o}chdir(t=this.cwd){const e=this.cwd;this.cwd="string"==typeof t?this.cwd.resolve(t):t,this.cwd[P](e)}}e.PathScurryBase=C;class N extends C{sep="\\";constructor(t=process.cwd(),e={}){const{nocase:r=!0}=e;super(t,a.win32,"\\",{...e,nocase:r}),this.nocase=r;for(let t=this.cwd;t;t=t.parent)t.nocase=this.nocase}parseRootPath(t){return a.win32.parse(t).root.toUpperCase()}newRoot(t){return new L(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}}e.PathScurryWin32=N;class j extends C{sep="/";constructor(t=process.cwd(),e={}){const{nocase:r=!1}=e;super(t,a.posix,"/",{...e,nocase:r}),this.nocase=r}parseRootPath(t){return"/"}newRoot(t){return new D(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}}e.PathScurryPosix=j;class F extends j{constructor(t=process.cwd(),e={}){const{nocase:r=!0}=e;super(t,{...e,nocase:r})}}e.PathScurryDarwin=F,e.Path="win32"===process.platform?L:D,e.PathScurry="win32"===process.platform?N:"darwin"===process.platform?F:j},9950(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n=new Set,i="object"==typeof process&&process?process:{},s=(t,e,r,n)=>{"function"==typeof i.emitWarning?i.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)};let o=globalThis.AbortController,a=globalThis.AbortSignal;if(void 0===o){a=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},o=class{constructor(){e()}signal=new a;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==i.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,s("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const l=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),u=t=>l(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?h:null:null;class h extends Array{constructor(t){super(t),this.fill(0)}}class c{heap;length;static#At=!1;static create(t){const e=u(t);if(!e)return[];c.#At=!0;const r=new c(t,e);return c.#At=!1,r}constructor(t,e){if(!c.#At)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class d{#Rt;#Ot;#Tt;#kt;#Mt;#Pt;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#$;#It;#Lt;#Dt;#Ct;#Nt;#jt;#Ft;#$t;#Wt;#Bt;#Ut;#zt;#Ht;#Gt;#Vt;#qt;static unsafeExposeInternals(t){return{starts:t.#zt,ttls:t.#Ht,sizes:t.#Ut,keyMap:t.#Lt,keyList:t.#Dt,valList:t.#Ct,next:t.#Nt,prev:t.#jt,get head(){return t.#Ft},get tail(){return t.#$t},free:t.#Wt,isBackgroundFetch:e=>t.#Yt(e),backgroundFetch:(e,r,n,i)=>t.#Kt(e,r,n,i),moveToTail:e=>t.#Zt(e),indexes:e=>t.#Jt(e),rindexes:e=>t.#Qt(e),isStale:e=>t.#Xt(e)}}get max(){return this.#Rt}get maxSize(){return this.#Ot}get calculatedSize(){return this.#It}get size(){return this.#$}get fetchMethod(){return this.#Mt}get memoMethod(){return this.#Pt}get dispose(){return this.#Tt}get disposeAfter(){return this.#kt}constructor(t){const{max:e=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:h,allowStale:f,dispose:p,disposeAfter:g,noDisposeOnSet:b,noUpdateTTL:m,maxSize:y=0,maxEntrySize:w=0,sizeCalculation:_,fetchMethod:v,memoMethod:S,noDeleteOnFetchRejection:E,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:R,ignoreFetchAbort:O}=t;if(0!==e&&!l(e))throw new TypeError("max option must be a nonnegative integer");const T=e?u(e):Array;if(!T)throw new Error("invalid max value: "+e);if(this.#Rt=e,this.#Ot=y,this.maxEntrySize=w||this.#Ot,this.sizeCalculation=_,this.sizeCalculation){if(!this.#Ot&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==S&&"function"!=typeof S)throw new TypeError("memoMethod must be a function if defined");if(this.#Pt=S,void 0!==v&&"function"!=typeof v)throw new TypeError("fetchMethod must be a function if specified");if(this.#Mt=v,this.#Vt=!!v,this.#Lt=new Map,this.#Dt=new Array(e).fill(void 0),this.#Ct=new Array(e).fill(void 0),this.#Nt=new T(e),this.#jt=new T(e),this.#Ft=0,this.#$t=0,this.#Wt=c.create(e),this.#$=0,this.#It=0,"function"==typeof p&&(this.#Tt=p),"function"==typeof g?(this.#kt=g,this.#Bt=[]):(this.#kt=void 0,this.#Bt=void 0),this.#Gt=!!this.#Tt,this.#qt=!!this.#kt,this.noDisposeOnSet=!!b,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!E,this.allowStaleOnFetchRejection=!!A,this.allowStaleOnFetchAbort=!!R,this.ignoreFetchAbort=!!O,0!==this.maxEntrySize){if(0!==this.#Ot&&!l(this.#Ot))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#te()}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!h,this.ttlResolution=l(i)||0===i?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#ee()}if(0===this.#Rt&&0===this.ttl&&0===this.#Ot)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#Rt&&!this.#Ot){const t="LRU_CACHE_UNBOUNDED";if((t=>!n.has(t))(t)){n.add(t);s("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,d)}}}getRemainingTTL(t){return this.#Lt.has(t)?1/0:0}#ee(){const t=new h(this.#Rt),e=new h(this.#Rt);this.#Ht=t,this.#zt=e,this.#re=(n,i,s=r.now())=>{if(e[n]=0!==i?s:0,t[n]=i,0!==i&&this.ttlAutopurge){const t=setTimeout((()=>{this.#Xt(n)&&this.#ne(this.#Dt[n],"expire")}),i+1);t.unref&&t.unref()}},this.#ie=n=>{e[n]=0!==t[n]?r.now():0},this.#se=(r,s)=>{if(t[s]){const o=t[s],a=e[s];if(!o||!a)return;r.ttl=o,r.start=a,r.now=n||i();const l=r.now-a;r.remainingTTL=o-l}};let n=0;const i=()=>{const t=r.now();if(this.ttlResolution>0){n=t;const e=setTimeout((()=>n=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=r=>{const s=this.#Lt.get(r);if(void 0===s)return 0;const o=t[s],a=e[s];if(!o||!a)return 1/0;return o-((n||i())-a)},this.#Xt=r=>{const s=e[r],o=t[r];return!!o&&!!s&&(n||i())-s>o}}#ie=()=>{};#se=()=>{};#re=()=>{};#Xt=()=>!1;#te(){const t=new h(this.#Rt);this.#It=0,this.#Ut=t,this.#oe=e=>{this.#It-=t[e],t[e]=0},this.#ae=(t,e,r,n)=>{if(this.#Yt(e))return 0;if(!l(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(e,t),!l(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.#le=(e,r,n)=>{if(t[e]=r,this.#Ot){const r=this.#Ot-t[e];for(;this.#It>r;)this.#ue(!0)}this.#It+=t[e],n&&(n.entrySize=r,n.totalCalculatedSize=this.#It)}}#oe=t=>{};#le=(t,e,r)=>{};#ae=(t,e,r,n)=>{if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#Jt({allowStale:t=this.allowStale}={}){if(this.#$)for(let e=this.#$t;this.#he(e)&&(!t&&this.#Xt(e)||(yield e),e!==this.#Ft);)e=this.#jt[e]}*#Qt({allowStale:t=this.allowStale}={}){if(this.#$)for(let e=this.#Ft;this.#he(e)&&(!t&&this.#Xt(e)||(yield e),e!==this.#$t);)e=this.#Nt[e]}#he(t){return void 0!==t&&this.#Lt.get(this.#Dt[t])===t}*entries(){for(const t of this.#Jt())void 0===this.#Ct[t]||void 0===this.#Dt[t]||this.#Yt(this.#Ct[t])||(yield[this.#Dt[t],this.#Ct[t]])}*rentries(){for(const t of this.#Qt())void 0===this.#Ct[t]||void 0===this.#Dt[t]||this.#Yt(this.#Ct[t])||(yield[this.#Dt[t],this.#Ct[t]])}*keys(){for(const t of this.#Jt()){const e=this.#Dt[t];void 0===e||this.#Yt(this.#Ct[t])||(yield e)}}*rkeys(){for(const t of this.#Qt()){const e=this.#Dt[t];void 0===e||this.#Yt(this.#Ct[t])||(yield e)}}*values(){for(const t of this.#Jt()){void 0===this.#Ct[t]||this.#Yt(this.#Ct[t])||(yield this.#Ct[t])}}*rvalues(){for(const t of this.#Qt()){void 0===this.#Ct[t]||this.#Yt(this.#Ct[t])||(yield this.#Ct[t])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const r of this.#Jt()){const n=this.#Ct[r],i=this.#Yt(n)?n.__staleWhileFetching:n;if(void 0!==i&&t(i,this.#Dt[r],this))return this.get(this.#Dt[r],e)}}forEach(t,e=this){for(const r of this.#Jt()){const n=this.#Ct[r],i=this.#Yt(n)?n.__staleWhileFetching:n;void 0!==i&&t.call(e,i,this.#Dt[r],this)}}rforEach(t,e=this){for(const r of this.#Qt()){const n=this.#Ct[r],i=this.#Yt(n)?n.__staleWhileFetching:n;void 0!==i&&t.call(e,i,this.#Dt[r],this)}}purgeStale(){let t=!1;for(const e of this.#Qt({allowStale:!0}))this.#Xt(e)&&(this.#ne(this.#Dt[e],"expire"),t=!0);return t}info(t){const e=this.#Lt.get(t);if(void 0===e)return;const n=this.#Ct[e],i=this.#Yt(n)?n.__staleWhileFetching:n;if(void 0===i)return;const s={value:i};if(this.#Ht&&this.#zt){const t=this.#Ht[e],n=this.#zt[e];if(t&&n){const e=t-(r.now()-n);s.ttl=e,s.start=Date.now()}}return this.#Ut&&(s.size=this.#Ut[e]),s}dump(){const t=[];for(const e of this.#Jt({allowStale:!0})){const n=this.#Dt[e],i=this.#Ct[e],s=this.#Yt(i)?i.__staleWhileFetching:i;if(void 0===s||void 0===n)continue;const o={value:s};if(this.#Ht&&this.#zt){o.ttl=this.#Ht[e];const t=r.now()-this.#zt[e];o.start=Math.floor(Date.now()-t)}this.#Ut&&(o.size=this.#Ut[e]),t.unshift([n,o])}return t}load(t){this.clear();for(const[e,n]of t){if(n.start){const t=Date.now()-n.start;n.start=r.now()-t}this.set(e,n.value,n)}}set(t,e,r={}){if(void 0===e)return this.delete(t),this;const{ttl:n=this.ttl,start:i,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=r;let{noUpdateTTL:l=this.noUpdateTTL}=r;const u=this.#ae(t,e,r.size||0,o);if(this.maxEntrySize&&u>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#ne(t,"set"),this;let h=0===this.#$?void 0:this.#Lt.get(t);if(void 0===h)h=0===this.#$?this.#$t:0!==this.#Wt.length?this.#Wt.pop():this.#$===this.#Rt?this.#ue(!1):this.#$,this.#Dt[h]=t,this.#Ct[h]=e,this.#Lt.set(t,h),this.#Nt[this.#$t]=h,this.#jt[h]=this.#$t,this.#$t=h,this.#$++,this.#le(h,u,a),a&&(a.set="add"),l=!1;else{this.#Zt(h);const r=this.#Ct[h];if(e!==r){if(this.#Vt&&this.#Yt(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=r;void 0===e||s||(this.#Gt&&this.#Tt?.(e,t,"set"),this.#qt&&this.#Bt?.push([e,t,"set"]))}else s||(this.#Gt&&this.#Tt?.(r,t,"set"),this.#qt&&this.#Bt?.push([r,t,"set"]));if(this.#oe(h),this.#le(h,u,a),this.#Ct[h]=e,a){a.set="replace";const t=r&&this.#Yt(r)?r.__staleWhileFetching:r;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===n||this.#Ht||this.#ee(),this.#Ht&&(l||this.#re(h,n,i),a&&this.#se(a,h)),!s&&this.#qt&&this.#Bt){const t=this.#Bt;let e;for(;e=t?.shift();)this.#kt?.(...e)}return this}pop(){try{for(;this.#$;){const t=this.#Ct[this.#Ft];if(this.#ue(!0),this.#Yt(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#qt&&this.#Bt){const t=this.#Bt;let e;for(;e=t?.shift();)this.#kt?.(...e)}}}#ue(t){const e=this.#Ft,r=this.#Dt[e],n=this.#Ct[e];return this.#Vt&&this.#Yt(n)?n.__abortController.abort(new Error("evicted")):(this.#Gt||this.#qt)&&(this.#Gt&&this.#Tt?.(n,r,"evict"),this.#qt&&this.#Bt?.push([n,r,"evict"])),this.#oe(e),t&&(this.#Dt[e]=void 0,this.#Ct[e]=void 0,this.#Wt.push(e)),1===this.#$?(this.#Ft=this.#$t=0,this.#Wt.length=0):this.#Ft=this.#Nt[e],this.#Lt.delete(r),this.#$--,e}has(t,e={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=e,i=this.#Lt.get(t);if(void 0!==i){const t=this.#Ct[i];if(this.#Yt(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#Xt(i))return r&&this.#ie(i),n&&(n.has="hit",this.#se(n,i)),!0;n&&(n.has="stale",this.#se(n,i))}else n&&(n.has="miss");return!1}peek(t,e={}){const{allowStale:r=this.allowStale}=e,n=this.#Lt.get(t);if(void 0===n||!r&&this.#Xt(n))return;const i=this.#Ct[n];return this.#Yt(i)?i.__staleWhileFetching:i}#Kt(t,e,r,n){const i=void 0===e?void 0:this.#Ct[e];if(this.#Yt(i))return i;const s=new o,{signal:a}=r;a?.addEventListener("abort",(()=>s.abort(a.reason)),{signal:s.signal});const l={signal:s.signal,options:r,context:n},u=(n,i=!1)=>{const{aborted:o}=s.signal,a=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(o&&!i?(r.status.fetchAborted=!0,r.status.fetchError=s.signal.reason,a&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),o&&!a&&!i)return h(s.signal.reason);const u=c;return this.#Ct[e]===c&&(void 0===n?u.__staleWhileFetching?this.#Ct[e]=u.__staleWhileFetching:this.#ne(t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,n,l.options))),n},h=n=>{const{aborted:i}=s.signal,o=i&&r.allowStaleOnFetchAbort,a=o||r.allowStaleOnFetchRejection,l=a||r.noDeleteOnFetchRejection,u=c;if(this.#Ct[e]===c){!l||void 0===u.__staleWhileFetching?this.#ne(t,"fetch"):o||(this.#Ct[e]=u.__staleWhileFetching)}if(a)return r.status&&void 0!==u.__staleWhileFetching&&(r.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw n};r.status&&(r.status.fetchDispatched=!0);const c=new Promise(((e,n)=>{const o=this.#Mt?.(t,i,l);o&&o instanceof Promise&&o.then((t=>e(void 0===t?void 0:t)),n),s.signal.addEventListener("abort",(()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(e(void 0),r.allowStaleOnFetchAbort&&(e=t=>u(t,!0)))}))})).then(u,(t=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=t),h(t)))),d=Object.assign(c,{__abortController:s,__staleWhileFetching:i,__returned:void 0});return void 0===e?(this.set(t,d,{...l.options,status:void 0}),e=this.#Lt.get(t)):this.#Ct[e]=d,d}#Yt(t){if(!this.#Vt)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof o}async fetch(t,e={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:b,signal:m}=e;if(!this.#Vt)return b&&(b.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:b});const y={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:s,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:f,ignoreFetchAbort:d,status:b,signal:m};let w=this.#Lt.get(t);if(void 0===w){b&&(b.fetch="miss");const e=this.#Kt(t,w,y,p);return e.__returned=e}{const e=this.#Ct[w];if(this.#Yt(e)){const t=r&&void 0!==e.__staleWhileFetching;return b&&(b.fetch="inflight",t&&(b.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const i=this.#Xt(w);if(!g&&!i)return b&&(b.fetch="hit"),this.#Zt(w),n&&this.#ie(w),b&&this.#se(b,w),e;const s=this.#Kt(t,w,y,p),o=void 0!==s.__staleWhileFetching&&r;return b&&(b.fetch=i?"stale":"refresh",o&&i&&(b.returnedStale=!0)),o?s.__staleWhileFetching:s.__returned=s}}async forceFetch(t,e={}){const r=await this.fetch(t,e);if(void 0===r)throw new Error("fetch() returned undefined");return r}memo(t,e={}){const r=this.#Pt;if(!r)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:i,...s}=e,o=this.get(t,s);if(!i&&void 0!==o)return o;const a=r(t,o,{options:s,context:n});return this.set(t,a,s),a}get(t,e={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:s}=e,o=this.#Lt.get(t);if(void 0!==o){const e=this.#Ct[o],a=this.#Yt(e);return s&&this.#se(s,o),this.#Xt(o)?(s&&(s.get="stale"),a?(s&&r&&void 0!==e.__staleWhileFetching&&(s.returnedStale=!0),r?e.__staleWhileFetching:void 0):(i||this.#ne(t,"expire"),s&&r&&(s.returnedStale=!0),r?e:void 0)):(s&&(s.get="hit"),a?e.__staleWhileFetching:(this.#Zt(o),n&&this.#ie(o),e))}s&&(s.get="miss")}#ce(t,e){this.#jt[e]=t,this.#Nt[t]=e}#Zt(t){t!==this.#$t&&(t===this.#Ft?this.#Ft=this.#Nt[t]:this.#ce(this.#jt[t],this.#Nt[t]),this.#ce(this.#$t,t),this.#$t=t)}delete(t){return this.#ne(t,"delete")}#ne(t,e){let r=!1;if(0!==this.#$){const n=this.#Lt.get(t);if(void 0!==n)if(r=!0,1===this.#$)this.#de(e);else{this.#oe(n);const r=this.#Ct[n];if(this.#Yt(r)?r.__abortController.abort(new Error("deleted")):(this.#Gt||this.#qt)&&(this.#Gt&&this.#Tt?.(r,t,e),this.#qt&&this.#Bt?.push([r,t,e])),this.#Lt.delete(t),this.#Dt[n]=void 0,this.#Ct[n]=void 0,n===this.#$t)this.#$t=this.#jt[n];else if(n===this.#Ft)this.#Ft=this.#Nt[n];else{const t=this.#jt[n];this.#Nt[t]=this.#Nt[n];const e=this.#Nt[n];this.#jt[e]=this.#jt[n]}this.#$--,this.#Wt.push(n)}}if(this.#qt&&this.#Bt?.length){const t=this.#Bt;let e;for(;e=t?.shift();)this.#kt?.(...e)}return r}clear(){return this.#de("delete")}#de(t){for(const e of this.#Qt({allowStale:!0})){const r=this.#Ct[e];if(this.#Yt(r))r.__abortController.abort(new Error("deleted"));else{const n=this.#Dt[e];this.#Gt&&this.#Tt?.(r,n,t),this.#qt&&this.#Bt?.push([r,n,t])}}if(this.#Lt.clear(),this.#Ct.fill(void 0),this.#Dt.fill(void 0),this.#Ht&&this.#zt&&(this.#Ht.fill(0),this.#zt.fill(0)),this.#Ut&&this.#Ut.fill(0),this.#Ft=0,this.#$t=0,this.#Wt.length=0,this.#It=0,this.#$=0,this.#qt&&this.#Bt){const t=this.#Bt;let e;for(;e=t?.shift();)this.#kt?.(...e)}}}e.LRUCache=d},5313(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Minipass=e.isWritable=e.isReadable=e.isStream=void 0;const i="object"==typeof process&&process?process:{stdout:null,stderr:null},s=r(8474),o=n(r(7075)),a=r(6193);e.isStream=t=>!!t&&"object"==typeof t&&(t instanceof z||t instanceof o.default||(0,e.isReadable)(t)||(0,e.isWritable)(t));e.isReadable=t=>!!t&&"object"==typeof t&&t instanceof s.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==o.default.Writable.prototype.pipe;e.isWritable=t=>!!t&&"object"==typeof t&&t instanceof s.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end;const l=Symbol("EOF"),u=Symbol("maybeEmitEnd"),h=Symbol("emittedEnd"),c=Symbol("emittingEnd"),d=Symbol("emittedError"),f=Symbol("closed"),p=Symbol("read"),g=Symbol("flush"),b=Symbol("flushChunk"),m=Symbol("encoding"),y=Symbol("decoder"),w=Symbol("flowing"),_=Symbol("paused"),v=Symbol("resume"),S=Symbol("buffer"),E=Symbol("pipes"),x=Symbol("bufferLength"),A=Symbol("bufferPush"),R=Symbol("bufferShift"),O=Symbol("objectMode"),T=Symbol("destroyed"),k=Symbol("error"),M=Symbol("emitData"),P=Symbol("emitEnd"),I=Symbol("emitEnd2"),L=Symbol("async"),D=Symbol("abort"),C=Symbol("aborted"),N=Symbol("signal"),j=Symbol("dataListeners"),F=Symbol("discarded"),$=t=>Promise.resolve().then(t),W=t=>t();class B{src;dest;opts;ondrain;constructor(t,e,r){this.src=t,this.dest=e,this.opts=r,this.ondrain=()=>t[v](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class U extends B{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,r){super(t,e,r),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class z extends s.EventEmitter{[w]=!1;[_]=!1;[E]=[];[S]=[];[O];[m];[L];[y];[l]=!1;[h]=!1;[c]=!1;[f]=!1;[d]=null;[x]=0;[T]=!1;[N];[C]=!1;[j]=0;[F]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");e.objectMode?(this[O]=!0,this[m]=null):(t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding)(e)?(this[m]=e.encoding,this[O]=!1):(this[O]=!1,this[m]=null),this[L]=!!e.async,this[y]=this[m]?new a.StringDecoder(this[m]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[S]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[E]});const{signal:r}=e;r&&(this[N]=r,r.aborted?this[D]():r.addEventListener("abort",(()=>this[D]())))}get bufferLength(){return this[x]}get encoding(){return this[m]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[O]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[L]}set async(t){this[L]=this[L]||!!t}[D](){this[C]=!0,this.emit("abort",this[N]?.reason),this.destroy(this[N]?.reason)}get aborted(){return this[C]}set aborted(t){}write(t,e,r){if(this[C])return!1;if(this[l])throw new Error("write after end");if(this[T])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(r=e,e="utf8"),e||(e="utf8");const n=this[L]?$:W;if(!this[O]&&!Buffer.isBuffer(t))if(i=t,!Buffer.isBuffer(i)&&ArrayBuffer.isView(i))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var i;return this[O]?(this[w]&&0!==this[x]&&this[g](!0),this[w]?this.emit("data",t):this[A](t),0!==this[x]&&this.emit("readable"),r&&n(r),this[w]):t.length?("string"!=typeof t||e===this[m]&&!this[y]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[m]&&(t=this[y].write(t)),this[w]&&0!==this[x]&&this[g](!0),this[w]?this.emit("data",t):this[A](t),0!==this[x]&&this.emit("readable"),r&&n(r),this[w]):(0!==this[x]&&this.emit("readable"),r&&n(r),this[w])}read(t){if(this[T])return null;if(this[F]=!1,0===this[x]||0===t||t&&t>this[x])return this[u](),null;this[O]&&(t=null),this[S].length>1&&!this[O]&&(this[S]=[this[m]?this[S].join(""):Buffer.concat(this[S],this[x])]);const e=this[p](t||null,this[S][0]);return this[u](),e}[p](t,e){if(this[O])this[R]();else{const r=e;t===r.length||null===t?this[R]():"string"==typeof r?(this[S][0]=r.slice(t),e=r.slice(0,t),this[x]-=t):(this[S][0]=r.subarray(t),e=r.subarray(0,t),this[x]-=t)}return this.emit("data",e),this[S].length||this[l]||this.emit("drain"),e}end(t,e,r){return"function"==typeof t&&(r=t,t=void 0),"function"==typeof e&&(r=e,e="utf8"),void 0!==t&&this.write(t,e),r&&this.once("end",r),this[l]=!0,this.writable=!1,!this[w]&&this[_]||this[u](),this}[v](){this[T]||(this[j]||this[E].length||(this[F]=!0),this[_]=!1,this[w]=!0,this.emit("resume"),this[S].length?this[g]():this[l]?this[u]():this.emit("drain"))}resume(){return this[v]()}pause(){this[w]=!1,this[_]=!0,this[F]=!1}get destroyed(){return this[T]}get flowing(){return this[w]}get paused(){return this[_]}[A](t){this[O]?this[x]+=1:this[x]+=t.length,this[S].push(t)}[R](){return this[O]?this[x]-=1:this[x]-=this[S][0].length,this[S].shift()}[g](t=!1){do{}while(this[b](this[R]())&&this[S].length);t||this[S].length||this[l]||this.emit("drain")}[b](t){return this.emit("data",t),this[w]}pipe(t,e){if(this[T])return t;this[F]=!1;const r=this[h];return e=e||{},t===i.stdout||t===i.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,r?e.end&&t.end():(this[E].push(e.proxyErrors?new U(this,t,e):new B(this,t,e)),this[L]?$((()=>this[v]())):this[v]()),t}unpipe(t){const e=this[E].find((e=>e.dest===t));e&&(1===this[E].length?(this[w]&&0===this[j]&&(this[w]=!1),this[E]=[]):this[E].splice(this[E].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const r=super.on(t,e);if("data"===t)this[F]=!1,this[j]++,this[E].length||this[w]||this[v]();else if("readable"===t&&0!==this[x])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[h])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[d]){const t=e;this[L]?$((()=>t.call(this,this[d]))):t.call(this,this[d])}return r}removeListener(t,e){return this.off(t,e)}off(t,e){const r=super.off(t,e);return"data"===t&&(this[j]=this.listeners("data").length,0!==this[j]||this[F]||this[E].length||(this[w]=!1)),r}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[j]=0,this[F]||this[E].length||(this[w]=!1)),e}get emittedEnd(){return this[h]}[u](){this[c]||this[h]||this[T]||0!==this[S].length||!this[l]||(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[f]&&this.emit("close"),this[c]=!1)}emit(t,...e){const r=e[0];if("error"!==t&&"close"!==t&&t!==T&&this[T])return!1;if("data"===t)return!(!this[O]&&!r)&&(this[L]?($((()=>this[M](r))),!0):this[M](r));if("end"===t)return this[P]();if("close"===t){if(this[f]=!0,!this[h]&&!this[T])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[d]=r,super.emit(k,r);const t=!(this[N]&&!this.listeners("error").length)&&super.emit("error",r);return this[u](),t}if("resume"===t){const t=super.emit("resume");return this[u](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const n=super.emit(t,...e);return this[u](),n}[M](t){for(const e of this[E])!1===e.dest.write(t)&&this.pause();const e=!this[F]&&super.emit("data",t);return this[u](),e}[P](){return!this[h]&&(this[h]=!0,this.readable=!1,this[L]?($((()=>this[I]())),!0):this[I]())}[I](){if(this[y]){const t=this[y].end();if(t){for(const e of this[E])e.dest.write(t);this[F]||super.emit("data",t)}}for(const t of this[E])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[O]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[O]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[O])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[m]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(T,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[F]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const r=this.read();if(null!==r)return Promise.resolve({done:!1,value:r});if(this[l])return e();let n,i;const s=t=>{this.off("data",o),this.off("end",a),this.off(T,u),e(),i(t)},o=t=>{this.off("error",s),this.off("end",a),this.off(T,u),this.pause(),n({value:t,done:!!this[l]})},a=()=>{this.off("error",s),this.off("data",o),this.off(T,u),e(),n({done:!0,value:void 0})},u=()=>s(new Error("stream destroyed"));return new Promise(((t,e)=>{i=e,n=t,this.once(T,u),this.once("error",s),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[F]=!1;let t=!1;const e=()=>(this.pause(),this.off(k,e),this.off(T,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(k,e),this.once(T,e),{next:()=>{if(t)return e();const r=this.read();return null===r?e():{done:!1,value:r}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){if(this[T])return t?this.emit("error",t):this.emit(T),this;this[T]=!0,this[F]=!0,this[S].length=0,this[x]=0;return"function"!=typeof this.close||this[f]||this.close(),t?this.emit("error",t):this.emit(T),this}static get isStream(){return e.isStream}}e.Minipass=z},2268(t,e,r){"use strict";function n(t,...e){return(...r)=>t(...e,...r)}function i(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}r.r(e),r.d(e,{all:()=>gt,allLimit:()=>bt,allSeries:()=>mt,any:()=>te,anyLimit:()=>ee,anySeries:()=>re,apply:()=>n,applyEach:()=>P,applyEachSeries:()=>D,asyncify:()=>c,auto:()=>j,autoInject:()=>U,cargo:()=>V,cargoQueue:()=>q,compose:()=>Z,concat:()=>X,concatLimit:()=>Q,concatSeries:()=>tt,constant:()=>et,default:()=>pe,detect:()=>nt,detectLimit:()=>it,detectSeries:()=>st,dir:()=>at,doDuring:()=>lt,doUntil:()=>ut,doWhilst:()=>lt,during:()=>ce,each:()=>ct,eachLimit:()=>dt,eachOf:()=>k,eachOfLimit:()=>R,eachOfSeries:()=>I,eachSeries:()=>ft,ensureAsync:()=>pt,every:()=>gt,everyLimit:()=>bt,everySeries:()=>mt,filter:()=>vt,filterLimit:()=>St,filterSeries:()=>Et,find:()=>nt,findLimit:()=>it,findSeries:()=>st,flatMap:()=>X,flatMapLimit:()=>Q,flatMapSeries:()=>tt,foldl:()=>Y,foldr:()=>zt,forEach:()=>ct,forEachLimit:()=>dt,forEachOf:()=>k,forEachOfLimit:()=>R,forEachOfSeries:()=>I,forEachSeries:()=>ft,forever:()=>xt,groupBy:()=>Rt,groupByLimit:()=>At,groupBySeries:()=>Ot,inject:()=>Y,log:()=>Tt,map:()=>M,mapLimit:()=>J,mapSeries:()=>L,mapValues:()=>Mt,mapValuesLimit:()=>kt,mapValuesSeries:()=>Pt,memoize:()=>It,nextTick:()=>Lt,parallel:()=>Ct,parallelLimit:()=>Nt,priorityQueue:()=>Bt,queue:()=>jt,race:()=>Ut,reduce:()=>Y,reduceRight:()=>zt,reflect:()=>Ht,reflectAll:()=>Gt,reject:()=>qt,rejectLimit:()=>Yt,rejectSeries:()=>Kt,retry:()=>Jt,retryable:()=>Qt,select:()=>vt,selectLimit:()=>St,selectSeries:()=>Et,seq:()=>K,series:()=>Xt,setImmediate:()=>h,some:()=>te,someLimit:()=>ee,someSeries:()=>re,sortBy:()=>ne,timeout:()=>ie,times:()=>oe,timesLimit:()=>se,timesSeries:()=>ae,transform:()=>le,tryEach:()=>ue,unmemoize:()=>he,until:()=>de,waterfall:()=>fe,whilst:()=>ce,wrapSync:()=>c});var s="function"==typeof queueMicrotask&&queueMicrotask,o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function l(t){setTimeout(t,0)}function u(t){return(e,...r)=>t((()=>e(...r)))}var h=u(s?queueMicrotask:o?setImmediate:a?process.nextTick:l);function c(t){return p(t)?function(...e){const r=e.pop();return d(t.apply(this,e),r)}:i((function(e,r){var n;try{n=t.apply(this,e)}catch(t){return r(t)}if(n&&"function"==typeof n.then)return d(n,r);r(null,n)}))}function d(t,e){return t.then((t=>{f(e,null,t)}),(t=>{f(e,t&&(t instanceof Error||t.message)?t:new Error(t))}))}function f(t,e,r){try{t(e,r)}catch(t){h((t=>{throw t}),t)}}function p(t){return"AsyncFunction"===t[Symbol.toStringTag]}function g(t){if("function"!=typeof t)throw new Error("expected a function");return p(t)?c(t):t}function b(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");return function(...r){return"function"==typeof r[e-1]?t.apply(this,r):new Promise(((n,i)=>{r[e-1]=(t,...e)=>{if(t)return i(t);n(e.length>1?e:e[0])},t.apply(this,r)}))}}function m(t){return function(e,...r){return b((function(n){var i=this;return t(e,((t,e)=>{g(t).apply(i,r.concat(e))}),n)}))}}function y(t,e,r,n){e=e||[];var i=[],s=0,o=g(r);return t(e,((t,e,r)=>{var n=s++;o(t,((t,e)=>{i[n]=e,r(t)}))}),(t=>{n(t,i)}))}function w(t){return t&&"number"==typeof t.length&&t.length>=0&&t.length%1==0}const _={};function v(t){function e(...e){if(null!==t){var r=t;t=null,r.apply(this,e)}}return Object.assign(e,t),e}function S(t){if(w(t))return function(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}(t);var e,r,n,i,s=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}(t);return s?function(t){var e=-1;return function(){var r=t.next();return r.done?null:(e++,{value:r.value,key:e})}}(s):(r=(e=t)?Object.keys(e):[],n=-1,i=r.length,function t(){var s=r[++n];return"__proto__"===s?t():n<i?{value:e[s],key:s}:null})}function E(t){return function(...e){if(null===t)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function x(t,e,r,n){let i=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||i||(o=!0,t.next().then((({value:t,done:e})=>{if(!s&&!i){if(o=!1,e)return i=!0,void(a<=0&&n(null));a++,r(t,l,h),l++,u()}})).catch(c))}function h(t,e){if(a-=1,!s)return t?c(t):!1===t?(i=!0,void(s=!0)):e===_||i&&a<=0?(i=!0,n(null)):void u()}function c(t){s||(o=!1,i=!0,n(t))}u()}var A=t=>(e,r,n)=>{if(n=v(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if("AsyncGenerator"===e[Symbol.toStringTag])return x(e,t,r,n);if(function(t){return"function"==typeof t[Symbol.asyncIterator]}(e))return x(e[Symbol.asyncIterator](),t,r,n);var i=S(e),s=!1,o=!1,a=0,l=!1;function u(t,e){if(!o)if(a-=1,t)s=!0,n(t);else if(!1===t)s=!0,o=!0;else{if(e===_||s&&a<=0)return s=!0,n(null);l||h()}}function h(){for(l=!0;a<t&&!s;){var e=i();if(null===e)return s=!0,void(a<=0&&n(null));a+=1,r(e.value,e.key,E(u))}l=!1}h()};var R=b((function(t,e,r,n){return A(e)(t,g(r),n)}),4);function O(t,e,r){r=v(r);var n=0,i=0,{length:s}=t,o=!1;function a(t,e){!1===t&&(o=!0),!0!==o&&(t?r(t):++i!==s&&e!==_||r(null))}for(0===s&&r(null);n<s;n++)e(t[n],n,E(a))}function T(t,e,r){return R(t,1/0,e,r)}var k=b((function(t,e,r){return(w(t)?O:T)(t,g(e),r)}),3);var M=b((function(t,e,r){return y(k,t,e,r)}),3),P=m(M);var I=b((function(t,e,r){return R(t,1,e,r)}),3);var L=b((function(t,e,r){return y(I,t,e,r)}),3),D=m(L);const C=Symbol("promiseCallback");function N(){let t,e;function r(r,...n){if(r)return e(r);t(n.length>1?n:n[0])}return r[C]=new Promise(((r,n)=>{t=r,e=n})),r}function j(t,e,r){"number"!=typeof e&&(r=e,e=null),r=v(r||N());var n=Object.keys(t).length;if(!n)return r(null);e||(e=n);var i={},s=0,o=!1,a=!1,l=Object.create(null),u=[],h=[],c={};function d(t,e){u.push((()=>function(t,e){if(a)return;var n=E(((e,...n)=>{if(s--,!1!==e)if(n.length<2&&([n]=n),e){var u={};if(Object.keys(i).forEach((t=>{u[t]=i[t]})),u[t]=n,a=!0,l=Object.create(null),o)return;r(e,u)}else i[t]=n,(l[t]||[]).forEach((t=>t())),f();else o=!0}));s++;var u=g(e[e.length-1]);e.length>1?u(i,n):u(n)}(t,e)))}function f(){if(!o){if(0===u.length&&0===s)return r(null,i);for(;u.length&&s<e;){u.shift()()}}}function p(e){var r=[];return Object.keys(t).forEach((n=>{const i=t[n];Array.isArray(i)&&i.indexOf(e)>=0&&r.push(n)})),r}return Object.keys(t).forEach((e=>{var r=t[e];if(!Array.isArray(r))return d(e,[r]),void h.push(e);var n=r.slice(0,r.length-1),i=n.length;if(0===i)return d(e,r),void h.push(e);c[e]=i,n.forEach((s=>{if(!t[s])throw new Error("async.auto task `"+e+"` has a non-existent dependency `"+s+"` in "+n.join(", "));!function(t,e){var r=l[t];r||(r=l[t]=[]);r.push(e)}(s,(()=>{0===--i&&d(e,r)}))}))})),function(){var t=0;for(;h.length;)t++,p(h.pop()).forEach((t=>{0==--c[t]&&h.push(t)}));if(t!==n)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),f(),r[C]}var F=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,$=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,W=/,/,B=/(=.+)?(\s*)$/;function U(t,e){var r={};return Object.keys(t).forEach((e=>{var n,i=t[e],s=p(i),o=!s&&1===i.length||s&&0===i.length;if(Array.isArray(i))n=[...i],i=n.pop(),r[e]=n.concat(n.length>0?a:i);else if(o)r[e]=i;else{if(n=function(t){const e=function(t){let e="",r=0,n=t.indexOf("*/");for(;r<t.length;)if("/"===t[r]&&"/"===t[r+1]){let e=t.indexOf("\n",r);r=-1===e?t.length:e}else if(-1!==n&&"/"===t[r]&&"*"===t[r+1]){let i=t.indexOf("*/",r);-1!==i?(r=i+2,n=t.indexOf("*/",r)):(e+=t[r],r++)}else e+=t[r],r++;return e}(t.toString());let r=e.match(F);if(r||(r=e.match($)),!r)throw new Error("could not parse args in autoInject\nSource:\n"+e);let[,n]=r;return n.replace(/\s/g,"").split(W).map((t=>t.replace(B,"").trim()))}(i),0===i.length&&!s&&0===n.length)throw new Error("autoInject task functions require explicit parameters.");s||n.pop(),r[e]=n.concat(a)}function a(t,e){var r=n.map((e=>t[e]));r.push(e),g(i)(...r)}})),j(r,e)}class z{constructor(){this.head=this.tail=null,this.length=0}removeLink(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t}empty(){for(;this.head;)this.shift();return this}insertAfter(t,e){e.prev=t,e.next=t.next,t.next?t.next.prev=e:this.tail=e,t.next=e,this.length+=1}insertBefore(t,e){e.prev=t.prev,e.next=t,t.prev?t.prev.next=e:this.head=e,t.prev=e,this.length+=1}unshift(t){this.head?this.insertBefore(this.head,t):H(this,t)}push(t){this.tail?this.insertAfter(this.tail,t):H(this,t)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var t=this.head;t;)yield t.data,t=t.next}remove(t){for(var e=this.head;e;){var{next:r}=e;t(e)&&this.removeLink(e),e=r}return this}}function H(t,e){t.length=1,t.head=t.tail=e}function G(t,e,r){if(null==e)e=1;else if(0===e)throw new RangeError("Concurrency must not be zero");var n=g(t),i=0,s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(t,e){return t?e?void(o[t]=o[t].filter((t=>t!==e))):o[t]=[]:Object.keys(o).forEach((t=>o[t]=[]))}function l(t,...e){o[t].forEach((t=>t(...e)))}var u=!1;function c(t,e,r,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");var i,s;function o(t,...e){return t?r?s(t):i():e.length<=1?i(e[0]):void i(e)}m.started=!0;var a=m._createTaskItem(t,r?o:n||o);if(e?m._tasks.unshift(a):m._tasks.push(a),u||(u=!0,h((()=>{u=!1,m.process()}))),r||!n)return new Promise(((t,e)=>{i=t,s=e}))}function d(t){return function(e,...r){i-=1;for(var n=0,o=t.length;n<o;n++){var a=t[n],u=s.indexOf(a);0===u?s.shift():u>0&&s.splice(u,1),a.callback(e,...r),null!=e&&l("error",e,a.data)}i<=m.concurrency-m.buffer&&l("unsaturated"),m.idle()&&l("drain"),m.process()}}function f(t){return!(0!==t.length||!m.idle())&&(h((()=>l("drain"))),!0)}const p=t=>e=>{if(!e)return new Promise(((e,r)=>{!function(t,e){const r=(...n)=>{a(t,r),e(...n)};o[t].push(r)}(t,((t,n)=>{if(t)return r(t);e(n)}))}));a(t),function(t,e){o[t].push(e)}(t,e)};var b=!1,m={_tasks:new z,_createTaskItem:(t,e)=>({data:t,callback:e}),*[Symbol.iterator](){yield*m._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(t,e){if(Array.isArray(t)){if(f(t))return;return t.map((t=>c(t,!1,!1,e)))}return c(t,!1,!1,e)},pushAsync(t,e){if(Array.isArray(t)){if(f(t))return;return t.map((t=>c(t,!1,!0,e)))}return c(t,!1,!0,e)},kill(){a(),m._tasks.empty()},unshift(t,e){if(Array.isArray(t)){if(f(t))return;return t.map((t=>c(t,!0,!1,e)))}return c(t,!0,!1,e)},unshiftAsync(t,e){if(Array.isArray(t)){if(f(t))return;return t.map((t=>c(t,!0,!0,e)))}return c(t,!0,!0,e)},remove(t){m._tasks.remove(t)},process(){if(!b){for(b=!0;!m.paused&&i<m.concurrency&&m._tasks.length;){var t=[],e=[],r=m._tasks.length;m.payload&&(r=Math.min(r,m.payload));for(var o=0;o<r;o++){var a=m._tasks.shift();t.push(a),s.push(a),e.push(a.data)}i+=1,0===m._tasks.length&&l("empty"),i===m.concurrency&&l("saturated");var u=E(d(t));n(e,u)}b=!1}},length:()=>m._tasks.length,running:()=>i,workersList:()=>s,idle:()=>m._tasks.length+i===0,pause(){m.paused=!0},resume(){!1!==m.paused&&(m.paused=!1,h(m.process))}};return Object.defineProperties(m,{saturated:{writable:!1,value:p("saturated")},unsaturated:{writable:!1,value:p("unsaturated")},empty:{writable:!1,value:p("empty")},drain:{writable:!1,value:p("drain")},error:{writable:!1,value:p("error")}}),m}function V(t,e){return G(t,1,e)}function q(t,e,r){return G(t,e,r)}var Y=b((function(t,e,r,n){n=v(n);var i=g(r);return I(t,((t,r,n)=>{i(e,t,((t,r)=>{e=r,n(t)}))}),(t=>n(t,e)))}),4);function K(...t){var e=t.map(g);return function(...t){var r=this,n=t[t.length-1];return"function"==typeof n?t.pop():n=N(),Y(e,t,((t,e,n)=>{e.apply(r,t.concat(((t,...e)=>{n(t,e)})))}),((t,e)=>n(t,...e))),n[C]}}function Z(...t){return K(...t.reverse())}var J=b((function(t,e,r,n){return y(A(e),t,r,n)}),4);var Q=b((function(t,e,r,n){var i=g(r);return J(t,e,((t,e)=>{i(t,((t,...r)=>t?e(t):e(t,r)))}),((t,e)=>{for(var r=[],i=0;i<e.length;i++)e[i]&&(r=r.concat(...e[i]));return n(t,r)}))}),4);var X=b((function(t,e,r){return Q(t,1/0,e,r)}),3);var tt=b((function(t,e,r){return Q(t,1,e,r)}),3);function et(...t){return function(...e){return e.pop()(null,...t)}}function rt(t,e){return(r,n,i,s)=>{var o,a=!1;const l=g(i);r(n,((r,n,i)=>{l(r,((n,s)=>n||!1===n?i(n):t(s)&&!o?(a=!0,o=e(!0,r),i(null,_)):void i()))}),(t=>{if(t)return s(t);s(null,a?o:e(!1))}))}}var nt=b((function(t,e,r){return rt((t=>t),((t,e)=>e))(k,t,e,r)}),3);var it=b((function(t,e,r,n){return rt((t=>t),((t,e)=>e))(A(e),t,r,n)}),4);var st=b((function(t,e,r){return rt((t=>t),((t,e)=>e))(A(1),t,e,r)}),3);function ot(t){return(e,...r)=>g(e)(...r,((e,...r)=>{"object"==typeof console&&(e?console.error&&console.error(e):console[t]&&r.forEach((e=>console[t](e))))}))}var at=ot("dir");var lt=b((function(t,e,r){r=E(r);var n,i=g(t),s=g(e);function o(t,...e){if(t)return r(t);!1!==t&&(n=e,s(...e,a))}function a(t,e){return t?r(t):!1!==t?e?void i(o):r(null,...n):void 0}return a(null,!0)}),3);function ut(t,e,r){const n=g(e);return lt(t,((...t)=>{const e=t.pop();n(...t,((t,r)=>e(t,!r)))}),r)}function ht(t){return(e,r,n)=>t(e,n)}var ct=b((function(t,e,r){return k(t,ht(g(e)),r)}),3);var dt=b((function(t,e,r,n){return A(e)(t,ht(g(r)),n)}),4);var ft=b((function(t,e,r){return dt(t,1,e,r)}),3);function pt(t){return p(t)?t:function(...e){var r=e.pop(),n=!0;e.push(((...t)=>{n?h((()=>r(...t))):r(...t)})),t.apply(this,e),n=!1}}var gt=b((function(t,e,r){return rt((t=>!t),(t=>!t))(k,t,e,r)}),3);var bt=b((function(t,e,r,n){return rt((t=>!t),(t=>!t))(A(e),t,r,n)}),4);var mt=b((function(t,e,r){return rt((t=>!t),(t=>!t))(I,t,e,r)}),3);function yt(t,e,r,n){var i=new Array(e.length);t(e,((t,e,n)=>{r(t,((t,r)=>{i[e]=!!r,n(t)}))}),(t=>{if(t)return n(t);for(var r=[],s=0;s<e.length;s++)i[s]&&r.push(e[s]);n(null,r)}))}function wt(t,e,r,n){var i=[];t(e,((t,e,n)=>{r(t,((r,s)=>{if(r)return n(r);s&&i.push({index:e,value:t}),n(r)}))}),(t=>{if(t)return n(t);n(null,i.sort(((t,e)=>t.index-e.index)).map((t=>t.value)))}))}function _t(t,e,r,n){return(w(e)?yt:wt)(t,e,g(r),n)}var vt=b((function(t,e,r){return _t(k,t,e,r)}),3);var St=b((function(t,e,r,n){return _t(A(e),t,r,n)}),4);var Et=b((function(t,e,r){return _t(I,t,e,r)}),3);var xt=b((function(t,e){var r=E(e),n=g(pt(t));return function t(e){if(e)return r(e);!1!==e&&n(t)}()}),2);var At=b((function(t,e,r,n){var i=g(r);return J(t,e,((t,e)=>{i(t,((r,n)=>r?e(r):e(r,{key:n,val:t})))}),((t,e)=>{for(var r={},{hasOwnProperty:i}=Object.prototype,s=0;s<e.length;s++)if(e[s]){var{key:o}=e[s],{val:a}=e[s];i.call(r,o)?r[o].push(a):r[o]=[a]}return n(t,r)}))}),4);function Rt(t,e,r){return At(t,1/0,e,r)}function Ot(t,e,r){return At(t,1,e,r)}var Tt=ot("log");var kt=b((function(t,e,r,n){n=v(n);var i={},s=g(r);return A(e)(t,((t,e,r)=>{s(t,e,((t,n)=>{if(t)return r(t);i[e]=n,r(t)}))}),(t=>n(t,i)))}),4);function Mt(t,e,r){return kt(t,1/0,e,r)}function Pt(t,e,r){return kt(t,1,e,r)}function It(t,e=t=>t){var r=Object.create(null),n=Object.create(null),s=g(t),o=i(((t,i)=>{var o=e(...t);o in r?h((()=>i(null,...r[o]))):o in n?n[o].push(i):(n[o]=[i],s(...t,((t,...e)=>{t||(r[o]=e);var i=n[o];delete n[o];for(var s=0,a=i.length;s<a;s++)i[s](t,...e)})))}));return o.memo=r,o.unmemoized=t,o}var Lt=u(a?process.nextTick:o?setImmediate:l),Dt=b(((t,e,r)=>{var n=w(e)?[]:{};t(e,((t,e,r)=>{g(t)(((t,...i)=>{i.length<2&&([i]=i),n[e]=i,r(t)}))}),(t=>r(t,n)))}),3);function Ct(t,e){return Dt(k,t,e)}function Nt(t,e,r){return Dt(A(e),t,r)}function jt(t,e){var r=g(t);return G(((t,e)=>{r(t[0],e)}),e,1)}class Ft{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(t){let e;for(;t>0&&Wt(this.heap[t],this.heap[e=$t(t)]);){let r=this.heap[t];this.heap[t]=this.heap[e],this.heap[e]=r,t=e}}percDown(t){let e;for(;(e=1+(t<<1))<this.heap.length&&(e+1<this.heap.length&&Wt(this.heap[e+1],this.heap[e])&&(e+=1),!Wt(this.heap[t],this.heap[e]));){let r=this.heap[t];this.heap[t]=this.heap[e],this.heap[e]=r,t=e}}push(t){t.pushCount=++this.pushCount,this.heap.push(t),this.percUp(this.heap.length-1)}unshift(t){return this.heap.push(t)}shift(){let[t]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),t}toArray(){return[...this]}*[Symbol.iterator](){for(let t=0;t<this.heap.length;t++)yield this.heap[t].data}remove(t){let e=0;for(let r=0;r<this.heap.length;r++)t(this.heap[r])||(this.heap[e]=this.heap[r],e++);this.heap.splice(e);for(let t=$t(this.heap.length-1);t>=0;t--)this.percDown(t);return this}}function $t(t){return(t+1>>1)-1}function Wt(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function Bt(t,e){var r=jt(t,e),{push:n,pushAsync:i}=r;function s(t,e){return Array.isArray(t)?t.map((t=>({data:t,priority:e}))):{data:t,priority:e}}return r._tasks=new Ft,r._createTaskItem=({data:t,priority:e},r)=>({data:t,priority:e,callback:r}),r.push=function(t,e=0,r){return n(s(t,e),r)},r.pushAsync=function(t,e=0,r){return i(s(t,e),r)},delete r.unshift,delete r.unshiftAsync,r}var Ut=b((function(t,e){if(e=v(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,n=t.length;r<n;r++)g(t[r])(e)}),2);function zt(t,e,r,n){var i=[...t].reverse();return Y(i,e,r,n)}function Ht(t){var e=g(t);return i((function(t,r){return t.push(((t,...e)=>{let n={};if(t&&(n.error=t),e.length>0){var i=e;e.length<=1&&([i]=e),n.value=i}r(null,n)})),e.apply(this,t)}))}function Gt(t){var e;return Array.isArray(t)?e=t.map(Ht):(e={},Object.keys(t).forEach((r=>{e[r]=Ht.call(this,t[r])}))),e}function Vt(t,e,r,n){const i=g(r);return _t(t,e,((t,e)=>{i(t,((t,r)=>{e(t,!r)}))}),n)}var qt=b((function(t,e,r){return Vt(k,t,e,r)}),3);var Yt=b((function(t,e,r,n){return Vt(A(e),t,r,n)}),4);var Kt=b((function(t,e,r){return Vt(I,t,e,r)}),3);function Zt(t){return function(){return t}}function Jt(t,e,r){var n={times:5,intervalFunc:Zt(0)};if(arguments.length<3&&"function"==typeof t?(r=e||N(),e=t):(!function(t,e){if("object"==typeof e)t.times=+e.times||5,t.intervalFunc="function"==typeof e.interval?e.interval:Zt(+e.interval||0),t.errorFilter=e.errorFilter;else{if("number"!=typeof e&&"string"!=typeof e)throw new Error("Invalid arguments for async.retry");t.times=+e||5}}(n,t),r=r||N()),"function"!=typeof e)throw new Error("Invalid arguments for async.retry");var i=g(e),s=1;return function t(){i(((e,...i)=>{!1!==e&&(e&&s++<n.times&&("function"!=typeof n.errorFilter||n.errorFilter(e))?setTimeout(t,n.intervalFunc(s-1)):r(e,...i))}))}(),r[C]}function Qt(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;p(e)&&(r+=1);var n=g(e);return i(((e,i)=>{function s(t){n(...e,t)}return(e.length<r-1||null==i)&&(e.push(i),i=N()),t?Jt(t,s,i):Jt(s,i),i[C]}))}function Xt(t,e){return Dt(I,t,e)}var te=b((function(t,e,r){return rt(Boolean,(t=>t))(k,t,e,r)}),3);var ee=b((function(t,e,r,n){return rt(Boolean,(t=>t))(A(e),t,r,n)}),4);var re=b((function(t,e,r){return rt(Boolean,(t=>t))(I,t,e,r)}),3);var ne=b((function(t,e,r){var n=g(e);return M(t,((t,e)=>{n(t,((r,n)=>{if(r)return e(r);e(r,{value:t,criteria:n})}))}),((t,e)=>{if(t)return r(t);r(null,e.sort(i).map((t=>t.value)))}));function i(t,e){var r=t.criteria,n=e.criteria;return r<n?-1:r>n?1:0}}),3);function ie(t,e,r){var n=g(t);return i(((i,s)=>{var o,a=!1;i.push(((...t)=>{a||(s(...t),clearTimeout(o))})),o=setTimeout((function(){var e=t.name||"anonymous",n=new Error('Callback function "'+e+'" timed out.');n.code="ETIMEDOUT",r&&(n.info=r),a=!0,s(n)}),e),n(...i)}))}function se(t,e,r,n){var i=g(r);return J(function(t){for(var e=Array(t);t--;)e[t]=t;return e}(t),e,i,n)}function oe(t,e,r){return se(t,1/0,e,r)}function ae(t,e,r){return se(t,1,e,r)}function le(t,e,r,n){arguments.length<=3&&"function"==typeof e&&(n=r,r=e,e=Array.isArray(t)?[]:{}),n=v(n||N());var i=g(r);return k(t,((t,r,n)=>{i(e,t,r,n)}),(t=>n(t,e))),n[C]}var ue=b((function(t,e){var r,n=null;return ft(t,((t,e)=>{g(t)(((t,...i)=>{if(!1===t)return e(t);i.length<2?[r]=i:r=i,n=t,e(t?null:{})}))}),(()=>e(n,r)))}));function he(t){return(...e)=>(t.unmemoized||t)(...e)}var ce=b((function(t,e,r){r=E(r);var n=g(e),i=g(t),s=[];function o(t,...e){if(t)return r(t);s=e,!1!==t&&i(a)}function a(t,e){return t?r(t):!1!==t?e?void n(o):r(null,...s):void 0}return i(a)}),3);function de(t,e,r){const n=g(t);return ce((t=>n(((e,r)=>t(e,!r)))),e,r)}var fe=b((function(t,e){if(e=v(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function n(e){g(t[r++])(...e,E(i))}function i(i,...s){if(!1!==i)return i||r===t.length?e(i,...s):void n(s)}n([])})),pe={apply:n,applyEach:P,applyEachSeries:D,asyncify:c,auto:j,autoInject:U,cargo:V,cargoQueue:q,compose:Z,concat:X,concatLimit:Q,concatSeries:tt,constant:et,detect:nt,detectLimit:it,detectSeries:st,dir:at,doUntil:ut,doWhilst:lt,each:ct,eachLimit:dt,eachOf:k,eachOfLimit:R,eachOfSeries:I,eachSeries:ft,ensureAsync:pt,every:gt,everyLimit:bt,everySeries:mt,filter:vt,filterLimit:St,filterSeries:Et,forever:xt,groupBy:Rt,groupByLimit:At,groupBySeries:Ot,log:Tt,map:M,mapLimit:J,mapSeries:L,mapValues:Mt,mapValuesLimit:kt,mapValuesSeries:Pt,memoize:It,nextTick:Lt,parallel:Ct,parallelLimit:Nt,priorityQueue:Bt,queue:jt,race:Ut,reduce:Y,reduceRight:zt,reflect:Ht,reflectAll:Gt,reject:qt,rejectLimit:Yt,rejectSeries:Kt,retry:Jt,retryable:Qt,seq:K,series:Xt,setImmediate:h,some:te,someLimit:ee,someSeries:re,sortBy:ne,timeout:ie,times:oe,timesLimit:se,timesSeries:ae,transform:le,tryEach:ue,unmemoize:he,until:de,waterfall:fe,whilst:ce,all:gt,allLimit:bt,allSeries:mt,any:te,anyLimit:ee,anySeries:re,find:nt,findLimit:it,findSeries:st,flatMap:X,flatMapLimit:Q,flatMapSeries:tt,forEach:ct,forEachSeries:ft,forEachLimit:dt,forEachOf:k,forEachOfSeries:I,forEachOfLimit:R,inject:Y,foldl:Y,foldr:zt,select:vt,selectLimit:St,selectSeries:Et,wrapSync:c,during:ce,doDuring:lt}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.c=e,r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n=r(r.s=3720);module.exports=n})();
|
|
3
|
+
const fs=require("fs"),path=require("path"),candidateModuleDirs=[path.join(__dirname,"../release/app/node_modules"),path.join(process.cwd(),"release/app/node_modules")];for(const t of candidateModuleDirs)fs.existsSync(t)&&!module.paths.includes(t)&&module.paths.push(t);(()=>{var t={6584(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4988);class i extends n.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const t=s.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}n.defineEventAttribute(i.prototype,"abort");const s=new WeakMap;Object.defineProperties(i.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(i.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class o{constructor(){a.set(this,function(){const t=Object.create(i.prototype);return n.EventTarget.call(t),s.set(t,!1),t}())}get signal(){return l(this)}abort(){var t;t=l(this),!1===s.get(t)&&(s.set(t,!0),t.dispatchEvent({type:"abort"}))}}const a=new WeakMap;function l(t){const e=a.get(t);if(null==e)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return e}Object.defineProperties(o.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(o.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),e.AbortController=o,e.AbortSignal=i,e.default=o,t.exports=o,t.exports.AbortController=t.exports.default=o,t.exports.AbortSignal=i},4083(t,e,r){"use strict";t=r.nmd(t);const n=(t,e)=>(...r)=>`[${t(...r)+e}m`,i=(t,e)=>(...r)=>{const n=t(...r);return`[${38+e};5;${n}m`},s=(t,e)=>(...r)=>{const n=t(...r);return`[${38+e};2;${n[0]};${n[1]};${n[2]}m`},o=t=>t,a=(t,e,r)=>[t,e,r],l=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{const n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let u;const h=(t,e,n,i)=>{void 0===u&&(u=r(734));const s=i?10:0,o={};for(const[r,i]of Object.entries(u)){const a="ansi16"===r?"ansi":r;r===e?o[a]=t(n,s):"object"==typeof i&&(o[a]=t(i[e],s))}return o};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[r,n]of Object.entries(e)){for(const[r,i]of Object.entries(n))e[r]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="[39m",e.bgColor.close="[49m",l(e.color,"ansi",(()=>h(n,"ansi16",o,!1))),l(e.color,"ansi256",(()=>h(i,"ansi256",o,!1))),l(e.color,"ansi16m",(()=>h(s,"rgb",a,!1))),l(e.bgColor,"ansi",(()=>h(n,"ansi16",o,!0))),l(e.bgColor,"ansi256",(()=>h(i,"ansi256",o,!0))),l(e.bgColor,"ansi16m",(()=>h(s,"rgb",a,!0))),e}})},8599(t,e,r){var n=r(3735),i=r(6928),s=r(5970),o=r(6245),a=r(299),l=r(1331),u=r(6492),h=t.exports={},c=/[\/\\]/g;h.exists=function(){var t=i.join.apply(i,arguments);return n.existsSync(t)},h.expand=function(...t){var e=l(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(0===r.length)return[];var h=function(t,e){var r=[];return s(t).forEach((function(t){var n=0===t.indexOf("!");n&&(t=t.slice(1));var i=e(t);r=n?o(r,i):a(r,i)})),r}(r,(function(t){return u.sync(t,e)}));return e.filter&&(h=h.filter((function(t){t=i.join(e.cwd||"",t);try{return"function"==typeof e.filter?e.filter(t):n.statSync(t)[e.filter]()}catch(t){return!1}}))),h},h.expandMapping=function(t,e,r){r=Object.assign({rename:function(t,e){return i.join(t||"",e)}},r);var n=[],s={};return h.expand(r,t).forEach((function(t){var o=t;r.flatten&&(o=i.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(t=i.join(r.cwd,t)),a=a.replace(c,"/"),t=t.replace(c,"/"),s[a]?s[a].src.push(t):(n.push({src:[t],dest:a}),s[a]=n[n.length-1])})),n},h.normalizeFilesArray=function(t){var e=[];return t.forEach((function(t){("src"in t||"dest"in t)&&e.push(t)})),0===e.length?[]:e=_(e).chain().forEach((function(t){"src"in t&&t.src&&(Array.isArray(t.src)?t.src=s(t.src):t.src=[t.src])})).map((function(t){var e=Object.assign({},t);if(delete e.src,delete e.dest,t.expand)return h.expandMapping(t.src,t.dest,e).map((function(e){var r=Object.assign({},t);return r.orig=Object.assign({},t),r.src=e.src,r.dest=e.dest,["expand","cwd","flatten","rename","ext"].forEach((function(t){delete r[t]})),r}));var r=Object.assign({},t);return r.orig=Object.assign({},t),"src"in r&&Object.defineProperty(r,"src",{enumerable:!0,get:function r(){var n;return"result"in r||(n=t.src,n=Array.isArray(n)?s(n):[n],r.result=h.expand(e,n)),r.result}}),"dest"in r&&(r.dest=t.dest),r})).flatten().value()}},1789(t,e,r){var n=r(3735),i=r(6928),s=r(1232),o=r(85),a=r(4100),l=r(4684),u=(r(2203).Stream,r(1702).PassThrough),h=t.exports={};h.file=r(8599),h.collectStream=function(t,e){var r=[],n=0;t.on("error",e),t.on("data",(function(t){r.push(t),n+=t.length})),t.on("end",(function(){var t=Buffer.alloc(n),i=0;r.forEach((function(e){e.copy(t,i),i+=e.length})),e(null,t)}))},h.dateify=function(t){return(t=t||new Date)instanceof Date||(t="string"==typeof t?new Date(t):new Date),t},h.defaults=function(t,e,r){var n=arguments;return n[0]=n[0]||{},l(...n)},h.isStream=function(t){return s(t)},h.lazyReadStream=function(t){return new o.Readable((function(){return n.createReadStream(t)}))},h.normalizeInputSource=function(t){return null===t?Buffer.alloc(0):"string"==typeof t?Buffer.from(t):h.isStream(t)?t.pipe(new u):t},h.sanitizePath=function(t){return a(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")},h.trailingSlashIt=function(t){return"/"!==t.slice(-1)?t+"/":t},h.unixifyPath=function(t){return a(t,!1).replace(/^\w+:/,"")},h.walkdir=function(t,e,r){var s=[];"function"==typeof e&&(r=e,e=t),n.readdir(t,(function(o,a){var l,u,c=0;if(o)return r(o);!function o(){if(!(l=a[c++]))return r(null,s);u=i.join(t,l),n.stat(u,(function(t,n){s.push({path:u,relative:i.relative(e,u).replace(/\\/g,"/"),stats:n}),n&&n.isDirectory()?h.walkdir(u,e,(function(t,e){if(t)return r(t);e.forEach((function(t){s.push(t)})),o()})):o()}))}()}))}},9259(t,e,r){"use strict";const{SymbolDispose:n}=r(6638),{AbortError:i,codes:s}=r(1899),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:l}=r(7787),u=r(5318),{ERR_INVALID_ARG_TYPE:h}=s;let c;t.exports.addAbortSignal=function(e,r){if(((t,e)=>{if("object"!=typeof t||!("aborted"in t))throw new h(e,"AbortSignal",t)})(e,"signal"),!o(r)&&!a(r))throw new h("stream",["ReadableStream","WritableStream","Stream"],r);return t.exports.addAbortSignalNoValidate(e,r)},t.exports.addAbortSignalNoValidate=function(t,e){if("object"!=typeof t||!("aborted"in t))return e;const s=o(e)?()=>{e.destroy(new i(void 0,{cause:t.reason}))}:()=>{e[l](new i(void 0,{cause:t.reason}))};if(t.aborted)s();else{c=c||r(3016).addAbortListener;const i=c(t,s);u(e,i[n])}return e}},6225(t,e,r){"use strict";const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r(6638),{Buffer:a}=r(181),{inspect:l}=r(3016);t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}unshift(t){const e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}shift(){if(0===this.length)return;const t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(0===this.length)return"";let e=this.head,r=""+e.data;for(;null!==(e=e.next);)r+=t+e.data;return r}concat(t){if(0===this.length)return a.alloc(0);const e=a.allocUnsafe(t>>>0);let r=this.head,n=0;for(;r;)s(e,r.data,n),n+=r.data.length,r=r.next;return e}consume(t,e){const r=this.head.data;if(t<r.length){const e=r.slice(0,t);return this.head.data=r.slice(t),e}return t===r.length?this.shift():e?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[i](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let e="",r=this.head,i=0;do{const s=r.data;if(!(t>s.length)){t===s.length?(e+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(e+=n(s,0,t),this.head=r,r.data=n(s,t));break}e+=s,t-=s.length,++i}while(null!==(r=r.next));return this.length-=i,e}_getBuffer(t){const e=a.allocUnsafe(t),r=t;let n=this.head,i=0;do{const a=n.data;if(!(t>a.length)){t===a.length?(s(e,a,r-t),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(e,new o(a.buffer,a.byteOffset,t),r-t),this.head=n,n.data=a.slice(t));break}s(e,a,r-t),t-=a.length,++i}while(null!==(n=n.next));return this.length-=i,e}[Symbol.for("nodejs.util.inspect.custom")](t,e){return l(this,{...e,depth:0,customInspect:!1})}}},3265(t,e,r){"use strict";const{pipeline:n}=r(1238),i=r(7090),{destroyer:s}=r(9952),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:u,isTransformStream:h,isWritableStream:c,isReadableStream:d}=r(7787),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:g}}=r(1899),b=r(5318);t.exports=function(...t){if(0===t.length)throw new g("streams");if(1===t.length)return i.from(t[0]);const e=[...t];if("function"==typeof t[0]&&(t[0]=i.from(t[0])),"function"==typeof t[t.length-1]){const e=t.length-1;t[e]=i.from(t[e])}for(let r=0;r<t.length;++r)if(o(t[r])||u(t[r])){if(r<t.length-1&&!(a(t[r])||d(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be readable");if(r>0&&!(l(t[r])||c(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be writable")}let r,m,y,w,_;const v=t[0],S=n(t,(function(t){const e=w;w=null,e?e(t):t?_.destroy(t):x||E||_.destroy()})),E=!!(l(v)||c(v)||h(v)),x=!!(a(S)||d(S)||h(S));if(_=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(o(v))_._write=function(t,e,n){v.write(t,e)?n():r=n},_._final=function(t){v.end(),m=t},v.on("drain",(function(){if(r){const t=r;r=null,t()}}));else if(u(v)){const t=(h(v)?v.writable:v).getWriter();_._write=async function(e,r,n){try{await t.ready,t.write(e).catch((()=>{})),n()}catch(t){n(t)}},_._final=async function(e){try{await t.ready,t.close().catch((()=>{})),m=e}catch(t){e(t)}}}const t=h(S)?S.readable:S;b(t,(()=>{if(m){const t=m;m=null,t()}}))}if(x)if(o(S))S.on("readable",(function(){if(y){const t=y;y=null,t()}})),S.on("end",(function(){_.push(null)})),_._read=function(){for(;;){const t=S.read();if(null===t)return void(y=_._read);if(!_.push(t))return}};else if(u(S)){const t=(h(S)?S.readable:S).getReader();_._read=async function(){for(;;)try{const{value:e,done:r}=await t.read();if(!_.push(e))return;if(r)return void _.push(null)}catch{return}}}return _._destroy=function(t,e){t||null===w||(t=new f),y=null,r=null,m=null,null===w?e(t):(w=e,o(S)&&s(S,t))},_}},9952(t,e,r){"use strict";const n=r(4422),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r(1899),{Symbol:a}=r(6638),{kIsDestroyed:l,isDestroyed:u,isFinished:h,isServerRequest:c}=r(7787),d=a("kDestroy"),f=a("kConstruct");function p(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function g(t,e,r){let i=!1;function s(e){if(i)return;i=!0;const s=t._readableState,o=t._writableState;p(e,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(e),e?n.nextTick(b,t,e):n.nextTick(m,t)}try{t._destroy(e||null,s)}catch(e){s(e)}}function b(t,e){y(t,e),m(t)}function m(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(null!=r&&r.emitClose||null!=e&&e.emitClose)&&t.emit("close")}function y(t,e){const r=t._readableState,n=t._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function w(t,e,r){const i=t._readableState,s=t._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?t.destroy(e):e&&(e.stack,s&&!s.errored&&(s.errored=e),i&&!i.errored&&(i.errored=e),r?n.nextTick(y,t,e):y(t,e))}function _(t){let e=!1;function r(r){if(e)return void w(t,null!=r?r:new s);e=!0;const i=t._readableState,o=t._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?t.emit(d,r):r?w(t,r,!0):n.nextTick(v,t)}try{t._construct((t=>{n.nextTick(r,t)}))}catch(t){n.nextTick(r,t)}}function v(t){t.emit(f)}function S(t){return(null==t?void 0:t.setHeader)&&"function"==typeof t.abort}function E(t){t.emit("close")}function x(t,e){t.emit("error",e),n.nextTick(E,t)}t.exports={construct:function(t,e){if("function"!=typeof t._construct)return;const r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(f,e),t.listenerCount(f)>1||n.nextTick(_,t)},destroyer:function(t,e){t&&!u(t)&&(e||h(t)||(e=new o),c(t)?(t.socket=null,t.destroy(e)):S(t)?t.abort():S(t.req)?t.req.abort():"function"==typeof t.destroy?t.destroy(e):"function"==typeof t.close?t.close():e?n.nextTick(x,t,e):n.nextTick(E,t),t.destroyed||(t[l]=!0))},destroy:function(t,e){const r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof e&&e(),this):(p(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?g(this,t,e):this.once(d,(function(r){g(this,i(r,t),e)})),this)},undestroy:function(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=!1===t.readable,t.endEmitted=!1===t.readable),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=!1===e.writable,e.ending=!1===e.writable,e.finished=!1===e.writable)},errorOrDestroy:w}},7090(t,e,r){"use strict";const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:s,ObjectSetPrototypeOf:o}=r(6638);t.exports=u;const a=r(6672),l=r(976);o(u.prototype,a.prototype),o(u,a);{const t=s(l.prototype);for(let e=0;e<t.length;e++){const r=t[e];u.prototype[r]||(u.prototype[r]=l.prototype[r])}}function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),l.call(this,t),t?(this.allowHalfOpen=!1!==t.allowHalfOpen,!1===t.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===t.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let h,c;function d(){return void 0===h&&(h={}),h}n(u.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}}),u.fromWeb=function(t,e){return d().newStreamDuplexFromReadableWritablePair(t,e)},u.toWeb=function(t){return d().newReadableWritablePairFromDuplex(t)},u.from=function(t){return c||(c=r(906)),c(t,"body")}},906(t,e,r){const n=r(4422),i=r(181),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:u,isWritableNodeStream:h,isDuplexNodeStream:c,isReadableStream:d,isWritableStream:f}=r(7787),p=r(5318),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=r(1899),{destroyer:y}=r(9952),w=r(7090),_=r(6672),v=r(976),{createDeferredPromise:S}=r(3016),E=r(5516),x=globalThis.Blob||i.Blob,A=void 0!==x?function(t){return t instanceof x}:function(t){return!1},R=globalThis.AbortController||r(6584).AbortController,{FunctionPrototypeCall:O}=r(6638);class T extends w{constructor(t){super(t),!1===(null==t?void 0:t.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==t?void 0:t.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function k(t){const e=t.readable&&"function"!=typeof t.readable.read?_.wrap(t.readable):t.readable,r=t.writable;let n,i,a,l,u,h=!!s(e),c=!!o(r);function d(t){const e=l;l=null,e?e(t):t&&u.destroy(t)}return u=new T({readableObjectMode:!(null==e||!e.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:h,writable:c}),c&&(p(r,(t=>{c=!1,t&&y(e,t),d(t)})),u._write=function(t,e,i){r.write(t,e)?i():n=i},u._final=function(t){r.end(),i=t},r.on("drain",(function(){if(n){const t=n;n=null,t()}})),r.on("finish",(function(){if(i){const t=i;i=null,t()}}))),h&&(p(e,(t=>{h=!1,t&&y(e,t),d(t)})),e.on("readable",(function(){if(a){const t=a;a=null,t()}})),e.on("end",(function(){u.push(null)})),u._read=function(){for(;;){const t=e.read();if(null===t)return void(a=u._read);if(!u.push(t))return}}),u._destroy=function(t,s){t||null===l||(t=new g),a=null,n=null,i=null,null===l?s(t):(l=s,y(r,t),y(e,t))},u}t.exports=function t(e,r){if(c(e))return e;if(u(e))return k({readable:e});if(h(e))return k({writable:e});if(l(e))return k({writable:!1,readable:!1});if(d(e))return k({readable:_.fromWeb(e)});if(f(e))return k({writable:v.fromWeb(e)});if("function"==typeof e){const{value:t,write:i,final:s,destroy:o}=function(t){let{promise:e,resolve:r}=S();const i=new R,s=i.signal,o=t(async function*(){for(;;){const t=e;e=null;const{chunk:i,done:o,cb:a}=await t;if(n.nextTick(a),o)return;if(s.aborted)throw new g(void 0,{cause:s.reason});({promise:e,resolve:r}=S()),yield i}}(),{signal:s});return{value:o,write(t,e,n){const i=r;r=null,i({chunk:t,done:!1,cb:n})},final(t){const e=r;r=null,e({done:!0,cb:t})},destroy(t,e){i.abort(),e(t)}}}(e);if(a(t))return E(T,t,{objectMode:!0,write:i,final:s,destroy:o});const l=null==t?void 0:t.then;if("function"==typeof l){let e;const r=O(l,t,(t=>{if(null!=t)throw new m("nully","body",t)}),(t=>{y(e,t)}));return e=new T({objectMode:!0,readable:!1,write:i,final(t){s((async()=>{try{await r,n.nextTick(t,null)}catch(e){n.nextTick(t,e)}}))},destroy:o})}throw new m("Iterable, AsyncIterable or AsyncFunction",r,t)}if(A(e))return t(e.arrayBuffer());if(a(e))return E(T,e,{objectMode:!0,writable:!1});if(d(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return T.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable)){return k({readable:null!=e&&e.readable?u(null==e?void 0:e.readable)?null==e?void 0:e.readable:t(e.readable):void 0,writable:null!=e&&e.writable?h(null==e?void 0:e.writable)?null==e?void 0:e.writable:t(e.writable):void 0})}const i=null==e?void 0:e.then;if("function"==typeof i){let t;return O(i,e,(e=>{null!=e&&t.push(e),t.push(null)}),(e=>{y(t,e)})),t=new T({objectMode:!0,writable:!1,read(){}})}throw new b(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},5318(t,e,r){"use strict";const n=r(4422),{AbortError:i,codes:s}=r(1899),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:l,once:u}=r(3016),{validateAbortSignal:h,validateFunction:c,validateObject:d,validateBoolean:f}=r(3533),{Promise:p,PromisePrototypeThen:g,SymbolDispose:b}=r(6638),{isClosed:m,isReadable:y,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:A,isWritableFinished:R,isWritableErrored:O,isNodeStream:T,willEmitClose:k,kIsClosedPromise:M}=r(7787);let P;const I=()=>{};function L(t,e,s){var f,p;if(2===arguments.length?(s=e,e=l):null==e?e=l:d(e,"options"),c(s,"callback"),h(e.signal,"options.signal"),s=u(s),_(t)||A(t))return function(t,e,s){let o=!1,a=I;if(e.signal)if(a=()=>{o=!0,s.call(t,new i(void 0,{cause:e.signal.reason}))},e.signal.aborted)n.nextTick(a);else{P=P||r(3016).addAbortListener;const n=P(e.signal,a),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}const l=(...e)=>{o||n.nextTick((()=>s.apply(t,e)))};return g(t[M].promise,l,l),I}(t,e,s);if(!T(t))throw new o("stream",["ReadableStream","WritableStream","Stream"],t);const L=null!==(f=e.readable)&&void 0!==f?f:w(t),D=null!==(p=e.writable)&&void 0!==p?p:x(t),C=t._writableState,N=t._readableState,j=()=>{t.writable||W()};let F=k(t)&&w(t)===L&&x(t)===D,$=R(t,!1);const W=()=>{$=!0,t.destroyed&&(F=!1),(!F||t.readable&&!L)&&(L&&!B||s.call(t))};let B=v(t,!1);const U=()=>{B=!0,t.destroyed&&(F=!1),(!F||t.writable&&!D)&&(D&&!$||s.call(t))},z=e=>{s.call(t,e)};let H=m(t);const G=()=>{H=!0;const e=O(t)||S(t);return e&&"boolean"!=typeof e?s.call(t,e):L&&!B&&w(t,!0)&&!v(t,!1)?s.call(t,new a):!D||$||R(t,!1)?void s.call(t):s.call(t,new a)},V=()=>{H=!0;const e=O(t)||S(t);if(e&&"boolean"!=typeof e)return s.call(t,e);s.call(t)},q=()=>{t.req.on("finish",W)};!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?D&&!C&&(t.on("end",j),t.on("close",j)):(t.on("complete",W),F||t.on("abort",G),t.req?q():t.on("request",q)),F||"boolean"!=typeof t.aborted||t.on("aborted",G),t.on("end",U),t.on("finish",W),!1!==e.error&&t.on("error",z),t.on("close",G),H?n.nextTick(G):null!=C&&C.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(L||F&&!y(t)||!$&&!1!==E(t))&&(D||F&&!E(t)||!B&&!1!==y(t))?N&&t.req&&t.aborted&&n.nextTick(V):n.nextTick(V);const Y=()=>{s=I,t.removeListener("aborted",G),t.removeListener("complete",W),t.removeListener("abort",G),t.removeListener("request",q),t.req&&t.req.removeListener("finish",W),t.removeListener("end",j),t.removeListener("close",j),t.removeListener("finish",W),t.removeListener("end",U),t.removeListener("error",z),t.removeListener("close",G)};if(e.signal&&!H){const o=()=>{const r=s;Y(),r.call(t,new i(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)n.nextTick(o);else{P=P||r(3016).addAbortListener;const n=P(e.signal,o),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}}return Y}t.exports=L,t.exports.finished=function(t,e){var r;let n=!1;return null===e&&(e=l),null!==(r=e)&&void 0!==r&&r.cleanup&&(f(e.cleanup,"cleanup"),n=e.cleanup),new p(((r,i)=>{const s=L(t,e,(t=>{n&&s(),t?i(t):r()}))}))}},5516(t,e,r){"use strict";const n=r(4422),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r(6638),{Buffer:a}=r(181),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:u}=r(1899).codes;t.exports=function(t,e,r){let h,c;if("string"==typeof e||e instanceof a)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});if(e&&e[s])c=!0,h=e[s]();else{if(!e||!e[o])throw new l("iterable",["Iterable"],e);c=!1,h=e[o]()}const d=new t({objectMode:!0,highWaterMark:1,...r});let f=!1;return d._read=function(){f||(f=!0,async function(){for(;;){try{const{value:t,done:e}=c?await h.next():h.next();if(e)d.push(null);else{const e=t&&"function"==typeof t.then?await t:t;if(null===e)throw f=!1,new u;if(d.push(e))continue;f=!1}}catch(t){d.destroy(t)}break}}())},d._destroy=function(t,e){i(async function(t){const e=null!=t,r="function"==typeof h.throw;if(e&&r){const{value:e,done:r}=await h.throw(t);if(await e,r)return}if("function"==typeof h.return){const{value:t}=await h.return();await t}}(t),(()=>n.nextTick(e,t)),(r=>n.nextTick(e,r||t)))},d}},1003(t,e,r){"use strict";const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(6638),{EventEmitter:s}=r(4434);function o(t){s.call(this,t)}function a(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?n(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}i(o.prototype,s.prototype),i(o,s),o.prototype.pipe=function(t,e){const r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",l),r.on("close",u));let o=!1;function l(){o||(o=!0,t.end())}function u(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){c(),0===s.listenerCount(this,"error")&&this.emit("error",t)}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return a(r,"error",h),a(t,"error",h),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t},t.exports={Stream:o,prependListener:a}},63(t,e,r){"use strict";const n=globalThis.AbortController||r(6584).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r(1899),{validateAbortSignal:u,validateInteger:h,validateObject:c}=r(3533),d=r(6638).Symbol("kWeak"),f=r(6638).Symbol("kResistStopPropagation"),{finished:p}=r(5318),g=r(3265),{addAbortSignalNoValidate:b}=r(9259),{isWritable:m,isNodeStream:y}=r(7787),{deprecate:w}=r(3016),{ArrayPrototypePush:_,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:T,Symbol:k}=r(6638),M=k("kEmpty"),P=k("kEof");function I(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");let n=1;null!=(null==e?void 0:e.concurrency)&&(n=S(e.concurrency));let i=n-1;return null!=(null==e?void 0:e.highWaterMark)&&(i=S(e.highWaterMark)),h(n,"options.concurrency",1),h(i,"options.highWaterMark",0),i+=n,async function*(){const s=r(3016).AbortSignalAny([null==e?void 0:e.signal].filter(v)),o=this,a=[],u={signal:s};let h,c,d=!1,f=0;function p(){d=!0,g()}function g(){f-=1,b()}function b(){c&&!d&&f<n&&a.length<i&&(c(),c=null)}!async function(){try{for await(let e of o){if(d)return;if(s.aborted)throw new l;try{if(e=t(e,u),e===M)continue;e=O(e)}catch(t){e=R(t)}f+=1,T(e,g,p),a.push(e),h&&(h(),h=null),!d&&(a.length>=i||f>=n)&&await new A((t=>{c=t}))}a.push(P)}catch(t){const e=R(t);T(e,g,p),a.push(e)}finally{d=!0,h&&(h(),h=null)}}();try{for(;;){for(;a.length>0;){const t=await a[0];if(t===P)return;if(s.aborted)throw new l;t!==M&&(yield t),a.shift(),b()}await new A((t=>{h=t}))}}finally{d=!0,c&&(c(),c=null)}}.call(this)}async function L(t,e=void 0){for await(const r of D.call(this,t,e))return!0;return!1}function D(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return I.call(this,(async function(e,r){return await t(e,r)?e:M}),e)}class C extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(t){if(t=E(t),x(t))return 0;if(t<0)throw new a("number",">= 0",t);return t}t.exports.streamReturningOperators={asIndexedPairs:w((function(t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),async function*(){let e=0;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l({cause:t.signal.reason});yield[e++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;t--<=0&&(yield r)}}.call(this)},filter:D,flatMap:function(t,e){const r=I.call(this,t,e);return async function*(){for await(const t of r)yield*t}.call(this)},map:I,take:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;if(t-- >0&&(yield r),t<=0)return}}.call(this)},compose:function(t,e){if(null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),y(t)&&!m(t))throw new i("stream",t,"must be writable");const r=g(this,t);return null!=e&&e.signal&&b(e.signal,r),r}},t.exports.promiseReturningOperators={every:async function(t,e=void 0){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return!await L.call(this,(async(...e)=>!await t(...e)),e)},forEach:async function(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);for await(const r of I.call(this,(async function(e,r){return await t(e,r),M}),e));},reduce:async function(t,e,r){var i;if("function"!=typeof t)throw new s("reducer",["Function","AsyncFunction"],t);null!=r&&c(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let o=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const t=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(t)),t}const a=new n,h=a.signal;if(null!=r&&r.signal){const t={once:!0,[d]:this,[f]:!0};r.signal.addEventListener("abort",(()=>a.abort()),t)}let g=!1;try{for await(const n of this){var b;if(g=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;o?e=await t(e,n,{signal:h}):(e=n,o=!0)}if(!g&&!o)throw new C}finally{a.abort()}return e},toArray:async function(t){null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:t.signal.reason});_(e,n)}return e},some:L,find:async function(t,e){for await(const r of D.call(this,t,e))return r}}},8212(t,e,r){"use strict";const{ObjectSetPrototypeOf:n}=r(6638);t.exports=s;const i=r(7694);function s(t){if(!(this instanceof s))return new s(t);i.call(this,t)}n(s.prototype,i.prototype),n(s,i),s.prototype._transform=function(t,e,r){r(null,t)}},1238(t,e,r){const n=r(4422),{ArrayIsArray:i,Promise:s,SymbolAsyncIterator:o,SymbolDispose:a}=r(6638),l=r(5318),{once:u}=r(3016),h=r(9952),c=r(7090),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:m},AbortError:y}=r(1899),{validateFunction:w,validateAbortSignal:_}=r(3533),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:A,isWebStream:R,isReadableStream:O,isReadableFinished:T}=r(7787),k=globalThis.AbortController||r(6584).AbortController;let M,P,I;function L(t,e,r){let n=!1;t.on("close",(()=>{n=!0}));return{destroy:e=>{n||(n=!0,h.destroyer(t,e||new b("pipe")))},cleanup:l(t,{readable:e,writable:r},(t=>{n=!t}))}}function D(t){if(v(t))return t;if(E(t))return async function*(t){P||(P=r(6672));yield*P.prototype[o].call(t)}(t);throw new f("val",["Readable","Iterable","AsyncIterable"],t)}async function C(t,e,r,{end:n}){let i,o=null;const a=t=>{if(t&&(i=t),o){const t=o;o=null,t()}},u=()=>new s(((t,e)=>{i?e(i):o=()=>{i?e(i):t()}}));e.on("drain",a);const h=l(e,{readable:!1},a);try{e.writableNeedDrain&&await u();for await(const r of t)e.write(r)||await u();n&&(e.end(),await u()),r()}catch(t){r(i!==t?d(i,t):t)}finally{h(),e.off("drain",a)}}async function N(t,e,r,{end:n}){A(e)&&(e=e.writable);const i=e.getWriter();try{for await(const e of t)await i.ready,i.write(e).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(t){try{await i.abort(t),r(t)}catch(t){r(t)}}}function j(t,e,s){if(1===t.length&&i(t[0])&&(t=t[0]),t.length<2)throw new g("streams");const o=new k,l=o.signal,u=null==s?void 0:s.signal,h=[];function d(){W(new y)}let b,m,w;_(u,"options.signal"),I=I||r(3016).addAbortListener,u&&(b=I(u,d));const T=[];let P,j=0;function $(t){W(t,0==--j)}function W(t,r){var i;if(!t||m&&"ERR_STREAM_PREMATURE_CLOSE"!==m.code||(m=t),m||r){for(;T.length;)T.shift()(m);null===(i=b)||void 0===i||i[a](),o.abort(),r&&(m||h.forEach((t=>t())),n.nextTick(e,m,w))}}for(let H=0;H<t.length;H++){const G=t[H],V=H<t.length-1,q=H>0,Y=V||!1!==(null==s?void 0:s.end),K=H===t.length-1;if(x(G)){if(Y){const{destroy:Z,cleanup:J}=L(G,V,q);T.push(Z),S(G)&&K&&h.push(J)}function B(t){t&&"AbortError"!==t.name&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code&&$(t)}G.on("error",B),S(G)&&K&&h.push((()=>{G.removeListener("error",B)}))}if(0===H)if("function"==typeof G){if(P=G({signal:l}),!v(P))throw new p("Iterable, AsyncIterable or Stream","source",P)}else P=v(G)||E(G)||A(G)?G:c.from(G);else if("function"==typeof G){var U;if(A(P))P=D(null===(U=P)||void 0===U?void 0:U.readable);else P=D(P);if(P=G(P,{signal:l}),V){if(!v(P,!0))throw new p("AsyncIterable",`transform[${H-1}]`,P)}else{var z;M||(M=r(8212));const Q=new M({objectMode:!0}),X=null===(z=P)||void 0===z?void 0:z.then;if("function"==typeof X)j++,X.call(P,(t=>{w=t,null!=t&&Q.write(t),Y&&Q.end(),n.nextTick($)}),(t=>{Q.destroy(t),n.nextTick($,t)}));else if(v(P,!0))j++,C(P,Q,$,{end:Y});else{if(!O(P)&&!A(P))throw new p("AsyncIterable or Promise","destination",P);{const rt=P.readable||P;j++,C(rt,Q,$,{end:Y})}}P=Q;const{destroy:tt,cleanup:et}=L(P,!1,!0);T.push(tt),K&&h.push(et)}}else if(x(G)){if(E(P)){j+=2;const nt=F(P,G,$,{end:Y});S(G)&&K&&h.push(nt)}else if(A(P)||O(P)){const it=P.readable||P;j++,C(it,G,$,{end:Y})}else{if(!v(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,C(P,G,$,{end:Y})}P=G}else if(R(G)){if(E(P))j++,N(D(P),G,$,{end:Y});else if(O(P)||v(P))j++,N(P,G,$,{end:Y});else{if(!A(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,N(P.readable,G,$,{end:Y})}P=G}else P=c.from(G)}return(null!=l&&l.aborted||null!=u&&u.aborted)&&n.nextTick(d),P}function F(t,e,r,{end:i}){let s=!1;if(e.on("close",(()=>{s||r(new m)})),t.pipe(e,{end:!1}),i){function o(){s=!0,e.end()}T(t)?n.nextTick(o):t.once("end",o)}else r();return l(t,{readable:!0,writable:!1},(e=>{const n=t._readableState;e&&"ERR_STREAM_PREMATURE_CLOSE"===e.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?t.once("end",r).once("error",r):r(e)})),l(e,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:j,pipeline:function(...t){return j(t,u(function(t){return w(t[t.length-1],"streams[stream.length - 1]"),t.pop()}(t)))}}},6672(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeIndexOf:i,NumberIsInteger:s,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:u,ObjectSetPrototypeOf:h,Promise:c,SafeSet:d,SymbolAsyncDispose:f,SymbolAsyncIterator:p,Symbol:g}=r(6638);t.exports=H,H.ReadableState=z;const{EventEmitter:b}=r(4434),{Stream:m,prependListener:y}=r(1003),{Buffer:w}=r(181),{addAbortSignal:_}=r(9259),v=r(5318);let S=r(3016).debuglog("stream",(t=>{S=t}));const E=r(6225),x=r(9952),{getHighWaterMark:A,getDefaultHighWaterMark:R}=r(6707),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:k,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:I},AbortError:L}=r(1899),{validateObject:D}=r(3533),C=g("kPaused"),{StringDecoder:N}=r(3141),j=r(5516);h(H.prototype,m.prototype),h(H,m);const F=()=>{},{errorOrDestroy:$}=x,W=2048,B=4096;function U(t){return{enumerable:!1,get(){return!!(this.state&t)},set(e){e?this.state|=t:this.state&=~t}}}function z(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7090)),this.state=6192,t&&t.objectMode&&(this.state|=1),n&&t&&t.readableObjectMode&&(this.state|=1),this.highWaterMark=t?A(this,t,"readableHighWaterMark",n):R(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,t&&!1===t.emitClose&&(this.state&=-2049),t&&!1===t.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new N(t.encoding),this.encoding=t.encoding)}function H(t){if(!(this instanceof H))return new H(t);const e=this instanceof r(7090);this._readableState=new z(t,this,e),t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&!e&&_(t.signal,this)),m.call(this,t),x.construct(this,(()=>{this._readableState.needReadable&&Z(this,this._readableState)}))}function G(t,e,r,n){S("readableAddChunk",e);const i=t._readableState;let s;if(1&i.state||("string"==typeof e?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=w.from(e,r).toString(i.encoding):(e=w.from(e,r),r=""))):e instanceof w?r="":m._isUint8Array(e)?(e=m._uint8ArrayToBuffer(e),r=""):null!=e&&(s=new T("chunk",["string","Buffer","Uint8Array"],e))),s)$(t,s);else if(null===e)i.state&=-9,function(t,e){if(S("onEofChunk"),e.ended)return;if(e.decoder){const t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?Y(t):(e.needReadable=!1,e.emittedReadable=!0,K(t))}(t,i);else if(1&i.state||e&&e.length>0)if(n)if(4&i.state)$(t,new I);else{if(i.destroyed||i.errored)return!1;V(t,i,e,!0)}else if(i.ended)$(t,new P);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||0!==e.length?V(t,i,e,!1):Z(t,i)):V(t,i,e,!1)}else n||(i.state&=-9,Z(t,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function V(t,e,r,n){e.flowing&&0===e.length&&!e.sync&&t.listenerCount("data")>0?(65536&e.state?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),64&e.state&&Y(t)),Z(t,e)}l(z.prototype,{objectMode:U(1),ended:U(2),endEmitted:U(4),reading:U(8),constructed:U(16),sync:U(32),needReadable:U(64),emittedReadable:U(128),readableListening:U(256),resumeScheduled:U(512),errorEmitted:U(1024),emitClose:U(W),autoDestroy:U(B),destroyed:U(8192),closed:U(16384),closeEmitted:U(32768),multiAwaitDrain:U(65536),readingMore:U(1<<17),dataEmitted:U(1<<18)}),H.prototype.destroy=x.destroy,H.prototype._undestroy=x.undestroy,H.prototype._destroy=function(t,e){e(t)},H.prototype[b.captureRejectionSymbol]=function(t){this.destroy(t)},H.prototype[f]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new L,this.destroy(t)),new c(((e,r)=>v(this,(n=>n&&n!==t?r(n):e(null)))))},H.prototype.push=function(t,e){return G(this,t,e,!1)},H.prototype.unshift=function(t,e){return G(this,t,e,!0)},H.prototype.isPaused=function(){const t=this._readableState;return!0===t[C]||!1===t.flowing},H.prototype.setEncoding=function(t){const e=new N(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const t of r)n+=e.write(t);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function q(t,e){return t<=0||0===e.length&&e.ended?0:1&e.state?1:o(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}function Y(t){const e=t._readableState;S("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(S("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(K,t))}function K(t){const e=t._readableState;S("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||e.errored||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,et(t)}function Z(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,n.nextTick(J,t,e))}function J(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){const r=e.length;if(S("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function Q(t){const e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!1===e[C]?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function X(t){S("readable nexttick read 0"),t.read(0)}function tt(t,e){S("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),et(t),e.flowing&&!e.reading&&t.read(0)}function et(t){const e=t._readableState;for(S("flow",e.flowing);e.flowing&&null!==t.read(););}function rt(t,e){"function"!=typeof t.read&&(t=H.wrap(t,{objectMode:!0}));const r=async function*(t,e){let r,n=F;function i(e){this===t?(n(),n=F):n=e}t.on("readable",i);const s=v(t,{writable:!1},(t=>{r=t?O(r,t):null,n(),n=F}));try{for(;;){const e=t.destroyed?null:t.read();if(null!==e)yield e;else{if(r)throw r;if(null===r)return;await new c(i)}}}catch(t){throw r=O(r,t),r}finally{!r&&!1===(null==e?void 0:e.destroyOnReturn)||void 0!==r&&!t._readableState.autoDestroy?(t.off("readable",i),s()):x.destroyer(t,null)}}(t,e);return r.stream=t,r}function nt(t,e){if(0===e.length)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function it(t){const e=t._readableState;S("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(st,e,t))}function st(t,e){if(S("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&0===t.length)if(t.endEmitted=!0,e.emit("end"),e.writable&&!1===e.allowHalfOpen)n.nextTick(ot,e);else if(t.autoDestroy){const t=e._writableState;(!t||t.autoDestroy&&(t.finished||!1===t.writable))&&e.destroy()}}function ot(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}let at;function lt(){return void 0===at&&(at={}),at}H.prototype.read=function(t){S("read",t),void 0===t?t=NaN:s(t)||(t=a(t,10));const e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=function(t){if(t>1073741824)throw new M("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,++t}(t)),0!==t&&(e.state&=-129),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return S("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?it(this):Y(this),null;if(0===(t=q(t,e))&&e.ended)return 0===e.length&&it(this),null;let n,i=!!(64&e.state);if(S("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,S("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),e.state|=40,0===e.length&&(e.state|=64);try{this._read(e.highWaterMark)}catch(t){$(this,t)}e.state&=-33,e.reading||(t=q(r,e))}return n=t>0?nt(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&it(this)),null===n||e.errorEmitted||e.closeEmitted||(e.dataEmitted=!0,this.emit("data",n)),n},H.prototype._read=function(t){throw new k("_read()")},H.prototype.pipe=function(t,e){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),S("pipe count=%d opts=%j",i.pipes.length,e);const s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?a:b;function o(e,n){S("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),l&&t.removeListener("drain",l);t.removeListener("error",f),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}())}function a(){S("onend"),t.end()}let l;i.endEmitted?n.nextTick(s):r.once("end",s),t.on("unpipe",o);let u=!1;function h(){u||(1===i.pipes.length&&i.pipes[0]===t?(S("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=function(t,e){return function(){const r=t._readableState;r.awaitDrainWriters===e?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!t.listenerCount("data")||t.resume()}}(r,t),t.on("drain",l))}function c(e){S("ondata");const r=t.write(e);S("dest.write",r),!1===r&&h()}function f(e){if(S("onerror",e),b(),t.removeListener("error",f),0===t.listenerCount("error")){const r=t._writableState||t._readableState;r&&!r.errorEmitted?$(t,e):t.emit("error",e)}}function p(){t.removeListener("finish",g),b()}function g(){S("onfinish"),t.removeListener("close",p),b()}function b(){S("unpipe"),r.unpipe(t)}return r.on("data",c),y(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",r),!0===t.writableNeedDrain?h():i.flowing||(S("pipe resume"),r.resume()),t},H.prototype.unpipe=function(t){const e=this._readableState;if(0===e.pipes.length)return this;if(!t){const t=e.pipes;e.pipes=[],this.pause();for(let e=0;e<t.length;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(e.pipes,t);return-1===r||(e.pipes.splice(r,1),0===e.pipes.length&&this.pause(),t.emit("unpipe",this,{hasUnpiped:!1})),this},H.prototype.on=function(t,e){const r=m.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Y(this):i.reading||n.nextTick(X,this))),r},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(t,e){const r=m.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(Q,this),r},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(t){const e=m.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(Q,this),e},H.prototype.resume=function(){const t=this._readableState;return t.flowing||(S("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(tt,t,e))}(this,t)),t[C]=!1,this},H.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[C]=!0,this},H.prototype.wrap=function(t){let e=!1;t.on("data",(r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())})),t.on("end",(()=>{this.push(null)})),t.on("error",(t=>{$(this,t)})),t.on("close",(()=>{this.destroy()})),t.on("destroy",(()=>{this.destroy()})),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};const r=u(t);for(let e=1;e<r.length;e++){const n=r[e];void 0===this[n]&&"function"==typeof t[n]&&(this[n]=t[n].bind(t))}return this},H.prototype[p]=function(){return rt(this)},H.prototype.iterator=function(t){return void 0!==t&&D(t,"options"),rt(this,t)},l(H.prototype,{readable:{__proto__:null,get(){const t=this._readableState;return!(!t||!1===t.readable||t.destroyed||t.errorEmitted||t.endEmitted)},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(z.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[C]},set(t){this[C]=!!t}}}),H._fromList=nt,H.from=function(t,e){return j(H,t,e)},H.fromWeb=function(t,e){return lt().newStreamReadableFromReadableStream(t,e)},H.toWeb=function(t,e){return lt().newReadableStreamFromStreamReadable(t,e)},H.wrap=function(t,e){var r,n;return new H({objectMode:null===(r=null!==(n=t.readableObjectMode)&&void 0!==n?n:t.objectMode)||void 0===r||r,...e,destroy(e,r){x.destroyer(t,e),r(e)}}).wrap(t)}},6707(t,e,r){"use strict";const{MathFloor:n,NumberIsInteger:i}=r(6638),{validateInteger:s}=r(3533),{ERR_INVALID_ARG_VALUE:o}=r(1899).codes;let a=16384,l=16;function u(t){return t?l:a}t.exports={getHighWaterMark:function(t,e,r,s){const a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,s,r);if(null!=a){if(!i(a)||a<0){throw new o(s?`options.${r}`:"options.highWaterMark",a)}return n(a)}return u(t.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(t,e){s(e,"value",0),t?l=e:a=e}}},7694(t,e,r){"use strict";const{ObjectSetPrototypeOf:n,Symbol:i}=r(6638);t.exports=u;const{ERR_METHOD_NOT_IMPLEMENTED:s}=r(1899).codes,o=r(7090),{getHighWaterMark:a}=r(6707);n(u.prototype,o.prototype),n(u,o);const l=i("kCallback");function u(t){if(!(this instanceof u))return new u(t);const e=t?a(this,t,"readableHighWaterMark",!0):null;0===e&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),o.call(this,t),this._readableState.sync=!1,this[l]=null,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function h(t){"function"!=typeof this._flush||this.destroyed?(this.push(null),t&&t()):this._flush(((e,r)=>{e?t?t(e):this.destroy(e):(null!=r&&this.push(r),this.push(null),t&&t())}))}function c(){this._final!==h&&h.call(this)}u.prototype._final=h,u.prototype._transform=function(t,e,r){throw new s("_transform()")},u.prototype._write=function(t,e,r){const n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,((t,e)=>{t?r(t):(null!=e&&this.push(e),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},u.prototype._read=function(){if(this[l]){const t=this[l];this[l]=null,t()}}},7787(t,e,r){"use strict";const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r(6638),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),u=s("nodejs.stream.writable"),h=s("nodejs.stream.disturbed"),c=s("nodejs.webstream.isClosedPromise"),d=s("nodejs.webstream.controllerErrorFunction");function f(t,e=!1){var r;return!(!t||"function"!=typeof t.pipe||"function"!=typeof t.on||e&&("function"!=typeof t.pause||"function"!=typeof t.resume)||t._writableState&&!1===(null===(r=t._readableState)||void 0===r?void 0:r.readable)||t._writableState&&!t._readableState)}function p(t){var e;return!(!t||"function"!=typeof t.write||"function"!=typeof t.on||t._readableState&&!1===(null===(e=t._writableState)||void 0===e?void 0:e.writable))}function g(t){return t&&(t._readableState||t._writableState||"function"==typeof t.write&&"function"==typeof t.on||"function"==typeof t.pipe&&"function"==typeof t.on)}function b(t){return!(!t||g(t)||"function"!=typeof t.pipeThrough||"function"!=typeof t.getReader||"function"!=typeof t.cancel)}function m(t){return!(!t||g(t)||"function"!=typeof t.getWriter||"function"!=typeof t.abort)}function y(t){return!(!t||g(t)||"object"!=typeof t.readable||"object"!=typeof t.writable)}function w(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[o]||null!=n&&n.destroyed)}function _(t){if(!p(t))return null;if(!0===t.writableEnded)return!0;const e=t._writableState;return(null==e||!e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)}function v(t,e){if(!f(t))return null;const r=t._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===e&&!0===r.ended&&0===r.length))}function S(t){return t&&null!=t[l]?t[l]:"boolean"!=typeof(null==t?void 0:t.readable)?null:!w(t)&&(f(t)&&t.readable&&!v(t))}function E(t){return t&&null!=t[u]?t[u]:"boolean"!=typeof(null==t?void 0:t.writable)?null:!w(t)&&(p(t)&&t.writable&&!_(t))}function x(t){return"boolean"==typeof t._closed&&"boolean"==typeof t._defaultKeepAlive&&"boolean"==typeof t._removedConnection&&"boolean"==typeof t._removedContLen}function A(t){return"boolean"==typeof t._sent100&&x(t)}t.exports={isDestroyed:w,kIsDestroyed:o,isDisturbed:function(t){var e;return!(!t||!(null!==(e=t[h])&&void 0!==e?e:t.readableDidRead||t.readableAborted))},kIsDisturbed:h,isErrored:function(t){var e,r,n,i,s,o,l,u,h,c;return!(!t||!(null!==(e=null!==(r=null!==(n=null!==(i=null!==(s=null!==(o=t[a])&&void 0!==o?o:t.readableErrored)&&void 0!==s?s:t.writableErrored)&&void 0!==i?i:null===(l=t._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=t._writableState)||void 0===u?void 0:u.errorEmitted)&&void 0!==r?r:null===(h=t._readableState)||void 0===h?void 0:h.errored)&&void 0!==e?e:null===(c=t._writableState)||void 0===c?void 0:c.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:d,kIsWritable:u,isClosed:function(t){if(!g(t))return null;if("boolean"==typeof t.closed)return t.closed;const e=t._writableState,r=t._readableState;return"boolean"==typeof(null==e?void 0:e.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==e?void 0:e.closed)||(null==r?void 0:r.closed):"boolean"==typeof t._closed&&x(t)?t._closed:null},isDuplexNodeStream:function(t){return!(!t||"function"!=typeof t.pipe||!t._readableState||"function"!=typeof t.on||"function"!=typeof t.write)},isFinished:function(t,e){return g(t)?!!w(t)||(!1===(null==e?void 0:e.readable)||!S(t))&&(!1===(null==e?void 0:e.writable)||!E(t)):null},isIterable:function(t,e){return null!=t&&(!0===e?"function"==typeof t[n]:!1===e?"function"==typeof t[i]:"function"==typeof t[n]||"function"==typeof t[i])},isReadableNodeStream:f,isReadableStream:b,isReadableEnded:function(t){if(!f(t))return null;if(!0===t.readableEnded)return!0;const e=t._readableState;return!(!e||e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)},isReadableFinished:v,isReadableErrored:function(t){var e,r;return g(t)?t.readableErrored?t.readableErrored:null!==(e=null===(r=t._readableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isNodeStream:g,isWebStream:function(t){return b(t)||m(t)||y(t)},isWritable:E,isWritableNodeStream:p,isWritableStream:m,isWritableEnded:_,isWritableFinished:function(t,e){if(!p(t))return null;if(!0===t.writableFinished)return!0;const r=t._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===e&&!0===r.ended&&0===r.length))},isWritableErrored:function(t){var e,r;return g(t)?t.writableErrored?t.writableErrored:null!==(e=null===(r=t._writableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isServerRequest:function(t){var e;return"boolean"==typeof t._consuming&&"boolean"==typeof t._dumped&&void 0===(null===(e=t.req)||void 0===e?void 0:e.upgradeOrConnect)},isServerResponse:A,willEmitClose:function(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&A(t)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:y}},976(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeSlice:i,Error:s,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:h,Symbol:c,SymbolHasInstance:d}=r(6638);t.exports=D,D.WritableState=I;const{EventEmitter:f}=r(4434),p=r(1003).Stream,{Buffer:g}=r(181),b=r(9952),{addAbortSignal:m}=r(9259),{getHighWaterMark:y,getDefaultHighWaterMark:w}=r(6707),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:T}=r(1899).codes,{errorOrDestroy:k}=b;function M(){}u(D.prototype,p.prototype),u(D,p);const P=c("kOnFinished");function I(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7090)),this.objectMode=!(!t||!t.objectMode),n&&(this.objectMode=this.objectMode||!(!t||!t.writableObjectMode)),this.highWaterMark=t?y(this,t,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!t||!1!==t.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||!1!==t.emitClose,this.autoDestroy=!t||!1!==t.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function L(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}function D(t){const e=this instanceof r(7090);if(!e&&!o(D,this))return new D(t);this._writableState=new I(t,this,e),t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&m(t.signal,this)),p.call(this,t),b.construct(this,(()=>{const t=this._writableState;t.writing||U(this,t),G(this,t)}))}function C(t,e,r,i){const s=t._writableState;if("function"==typeof r)i=r,r=s.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new T(r)}else r=s.defaultEncoding;"function"!=typeof i&&(i=M)}if(null===e)throw new R;if(!s.objectMode)if("string"==typeof e)!1!==s.decodeStrings&&(e=g.from(e,r),r="buffer");else if(e instanceof g)r="buffer";else{if(!p._isUint8Array(e))throw new _("chunk",["string","Buffer","Uint8Array"],e);e=p._uint8ArrayToBuffer(e),r="buffer"}let o;return s.ending?o=new O:s.destroyed&&(o=new x("write")),o?(n.nextTick(i,o),k(t,o,!0),o):(s.pendingcb++,function(t,e,r,n,i){const s=e.objectMode?1:r.length;e.length+=s;const o=e.length<e.highWaterMark;o||(e.needDrain=!0);e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:n,callback:i}),e.allBuffers&&"buffer"!==n&&(e.allBuffers=!1),e.allNoop&&i!==M&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(r,n,e.onwrite),e.sync=!1);return o&&!e.errored&&!e.destroyed}(t,s,e,r,i))}function N(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function j(t,e,r,n){--e.pendingcb,n(r),B(e),k(t,r)}function F(t,e){const r=t._writableState,i=r.sync,s=r.writecb;"function"==typeof s?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?n.nextTick(j,t,r,e,s):j(t,r,e,s)):(r.buffered.length>r.bufferedIndex&&U(t,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:t,state:r},n.nextTick($,r.afterWriteTickInfo)):W(t,r,1,s))):k(t,new S)}function $({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,W(t,e,r,n)}function W(t,e,r,n){for(!e.ending&&!t.destroyed&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&B(e),G(t,e)}function B(t){if(t.writing)return;for(let r=t.bufferedIndex;r<t.buffered.length;++r){var e;const{chunk:n,callback:i}=t.buffered[r],s=t.objectMode?1:n.length;t.length-=s,i(null!==(e=t.errored)&&void 0!==e?e:new x("write"))}const r=t[P].splice(0);for(let e=0;e<r.length;e++){var n;r[e](null!==(n=t.errored)&&void 0!==n?n:new x("end"))}L(t)}function U(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:s}=e,o=r.length-n;if(!o)return;let a=n;if(e.bufferProcessing=!0,o>1&&t._writev){e.pendingcb-=o-1;const n=e.allNoop?M:t=>{for(let e=a;e<r.length;++e)r[e].callback(t)},s=e.allNoop&&0===a?r:i(r,a);s.allBuffers=e.allBuffers,N(t,e,!0,e.length,s,"",n),L(e)}else{do{const{chunk:n,encoding:i,callback:o}=r[a];r[a++]=null;N(t,e,!1,s?1:n.length,n,i,o)}while(a<r.length&&!e.writing);a===r.length?L(e):a>256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}function z(t){return t.ending&&!t.destroyed&&t.constructed&&0===t.length&&!t.errored&&0===t.buffered.length&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function H(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.finalCalled=!0,function(t,e){let r=!1;function i(i){if(r)k(t,null!=i?i:S());else if(r=!0,e.pendingcb--,i){const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t](i);k(t,i,e.sync)}else z(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,n.nextTick(V,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(t){i(t)}e.sync=!1}(t,e)))}function G(t,e,r){z(e)&&(H(t,e),0===e.pendingcb&&(r?(e.pendingcb++,n.nextTick(((t,e)=>{z(e)?V(t,e):e.pendingcb--}),t,e)):z(e)&&(e.pendingcb++,V(t,e))))}function V(t,e){e.pendingcb--,e.finished=!0;const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t]();if(t.emit("finish"),e.autoDestroy){const e=t._readableState;(!e||e.autoDestroy&&(e.endEmitted||!1===e.readable))&&t.destroy()}}I.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(D,d,{__proto__:null,value:function(t){return!!o(this,t)||this===D&&(t&&t._writableState instanceof I)}}),D.prototype.pipe=function(){k(this,new E)},D.prototype.write=function(t,e,r){return!0===C(this,t,e,r)},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){const t=this._writableState;t.corked&&(t.corked--,t.writing||U(this,t))},D.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=h(t)),!g.isEncoding(t))throw new T(t);return this._writableState.defaultEncoding=t,this},D.prototype._write=function(t,e,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:t,encoding:e}],r)},D.prototype._writev=null,D.prototype.end=function(t,e,r){const i=this._writableState;let o;if("function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t){const r=C(this,t,e);r instanceof s&&(o=r)}return i.corked&&(i.corked=1,this.uncork()),o||(i.errored||i.ending?i.finished?o=new A("end"):i.destroyed&&(o=new x("end")):(i.ending=!0,G(this,i,!0),i.ended=!0)),"function"==typeof r&&(o||i.finished?n.nextTick(r,o):i[P].push(r)),this},l(D.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){const t=this._writableState;return!(!t||!1===t.writable||t.destroyed||t.errored||t.ending||t.ended)},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const t=this._writableState;return!!t&&(!t.destroyed&&!t.ending&&t.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=b.destroy;let Y;function K(){return void 0===Y&&(Y={}),Y}D.prototype.destroy=function(t,e){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&n.nextTick(B,r),q.call(this,t,e),this},D.prototype._undestroy=b.undestroy,D.prototype._destroy=function(t,e){e(t)},D.prototype[f.captureRejectionSymbol]=function(t){this.destroy(t)},D.fromWeb=function(t,e){return K().newStreamWritableFromWritableStream(t,e)},D.toWeb=function(t){return K().newWritableStreamFromStreamWritable(t)}},3533(t,e,r){"use strict";const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:h,NumberParseInt:c,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:g,StringPrototypeTrim:b}=r(6638),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(1899),{normalizeEncoding:E}=r(3016),{isAsyncFunction:x,isArrayBufferView:A}=r(3016).types,R={};const O=/^[0-7]+$/;const T=m(((t,e,r=h,n=u)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),k=m(((t,e,r=-2147483648,n=2147483647)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),M=m(((t,e,r=!1)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);const n=r?1:0,i=4294967295;if(t<n||t>i)throw new v(e,`>= ${n} && <= ${i}`,t)}));function P(t,e){if("string"!=typeof t)throw new w(e,"string",t)}const I=m(((t,e,r)=>{if(!i(r,t)){const n=s(o(r,(t=>"string"==typeof t?`'${t}'`:p(t))),", ");throw new _(e,t,"must be one of: "+n)}}));function L(t,e){if("boolean"!=typeof t)throw new w(e,"boolean",t)}function D(t,e,r){return null!=t&&d(t,e)?t[e]:r}const C=m(((t,e,r=null)=>{const i=D(r,"allowArray",!1),s=D(r,"allowFunction",!1);if(!D(r,"nullable",!1)&&null===t||!i&&n(t)||"object"!=typeof t&&(!s||"function"!=typeof t))throw new w(e,"Object",t)})),N=m(((t,e)=>{if(null!=t&&"object"!=typeof t&&"function"!=typeof t)throw new w(e,"a dictionary",t)})),j=m(((t,e,r=0)=>{if(!n(t))throw new w(e,"Array",t);if(t.length<r){throw new _(e,t,`must be longer than ${r}`)}}));const F=m(((t,e="buffer")=>{if(!A(t))throw new w(e,["Buffer","TypedArray","DataView"],t)}));const $=m(((t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new w(e,"AbortSignal",t)})),W=m(((t,e)=>{if("function"!=typeof t)throw new w(e,"Function",t)})),B=m(((t,e)=>{if("function"!=typeof t||x(t))throw new w(e,"Function",t)})),U=m(((t,e)=>{if(void 0!==t)throw new w(e,"undefined",t)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function H(t,e){if(void 0===t||!f(z,t))throw new _(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:function(t){return t===(0|t)},isUint32:function(t){return t===t>>>0},parseFileMode:function(t,e,r){if(void 0===t&&(t=r),"string"==typeof t){if(null===f(O,t))throw new _(e,t,"must be a 32-bit unsigned integer or an octal string");t=c(t,8)}return M(t,e),t},validateArray:j,validateStringArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)P(t[r],`${e}[${r}]`)},validateBooleanArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)L(t[r],`${e}[${r}]`)},validateAbortSignalArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++){const n=t[r],i=`${e}[${r}]`;if(null==n)throw new w(i,"AbortSignal",n);$(n,i)}},validateBoolean:L,validateBuffer:F,validateDictionary:N,validateEncoding:function(t,e){const r=E(e),n=t.length;if("hex"===r&&n%2!=0)throw new _("encoding",e,`is invalid for data of length ${n}`)},validateFunction:W,validateInt32:k,validateInteger:T,validateNumber:function(t,e,r=void 0,n){if("number"!=typeof t)throw new w(e,"number",t);if(null!=r&&t<r||null!=n&&t>n||(null!=r||null!=n)&&l(t))throw new v(e,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,t)},validateObject:C,validateOneOf:I,validatePlainFunction:B,validatePort:function(t,e="Port",r=!0){if("number"!=typeof t&&"string"!=typeof t||"string"==typeof t&&0===b(t).length||+t!=+t>>>0||t>65535||0===t&&!r)throw new y(e,t,r);return 0|t},validateSignalName:function(t,e="signal"){if(P(t,e),void 0===R[t]){if(void 0!==R[g(t)])throw new S(t+" (signals must use all capital letters)");throw new S(t)}},validateString:P,validateUint32:M,validateUndefined:U,validateUnion:function(t,e,r){if(!i(r,t))throw new w(e,`('${s(r,"|")}')`,t)},validateAbortSignal:$,validateLinkHeaderValue:function(t){if("string"==typeof t)return H(t,"hints"),t;if(n(t)){const e=t.length;let r="";if(0===e)return r;for(let n=0;n<e;n++){const i=t[n];H(i,"hints"),r+=i,n!==e-1&&(r+=", ")}return r}throw new _("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},1899(t,e,r){"use strict";const{format:n,inspect:i}=r(6007),{AggregateError:s}=r(6638),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,h={};function c(t,e){if(!t)throw new h.ERR_INTERNAL_ASSERTION(e)}function d(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function f(t,e,r){r||(r=Error);class i extends r{constructor(...r){super(function(t,e,r){if("function"==typeof e)return c(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const i=(e.match(/%[dfijoOs]/g)||[]).length;return c(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?e:n(e,...r)}(t,e,r))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[a]=!0,h[t]=i}function p(t){const e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t}class g extends Error{constructor(t="The operation was aborted",e=void 0){if(void 0!==e&&"object"!=typeof e)throw new h.ERR_INVALID_ARG_TYPE("options","Object",e);super(t,e),this.code="ABORT_ERR",this.name="AbortError"}}f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",((t,e,r)=>{c("string"==typeof t,"'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const s=[],o=[],a=[];for(const t of e)c("string"==typeof t,"All expected entries have to be of type string"),l.includes(t)?s.push(t.toLowerCase()):u.test(t)?o.push(t):(c("object"!==t,'The value "object" should be written as "Object"'),a.push(t));if(o.length>0){const t=s.indexOf("object");-1!==t&&(s.splice(s,t,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{const t=s.pop();n+=`one of type ${s.join(", ")}, or ${t}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const t=o.pop();n+=`an instance of ${o.join(", ")}, or ${t}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const t=a.pop();n+=`one of ${a.join(", ")}, or ${t}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var h;if(null!==(h=r.constructor)&&void 0!==h&&h.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let t=i(r,{colors:!1});t.length>25&&(t=`${t.slice(0,25)}...`),n+=`. Received type ${typeof r} (${t})`}return n}),TypeError),f("ERR_INVALID_ARG_VALUE",((t,e,r="is invalid")=>{let n=i(e);n.length>128&&(n=n.slice(0,128)+"...");return`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`}),TypeError),f("ERR_INVALID_RETURN_VALUE",((t,e,r)=>{var n;return`Expected ${t} to be returned from the "${e}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),f("ERR_MISSING_ARGS",((...t)=>{let e;c(t.length>0,"At least one arg needs to be specified");const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map((t=>`"${t}"`)).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}}return`${e} must be specified`}),TypeError),f("ERR_OUT_OF_RANGE",((t,e,r)=>{let n;if(c(e,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32)n=d(String(r));else if("bigint"==typeof r){n=String(r);const t=BigInt(2)**BigInt(32);(r>t||r<-t)&&(n=d(n)),n+="n"}else n=i(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${n}`}),RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:g,aggregateTwoErrors:p((function(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new o([e,t],e.message);return r.code=e.code,r}return t||e})),hideStackFrames:p,codes:h}},1702(t,e,r){"use strict";const n=r(2203);if(n&&"disable"===process.env.READABLE_STREAM){const e=n.promises;t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>e}),t.exports.Stream=n.Stream}else{const e=r(7082),n=r(3759),i=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=i,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get:()=>n}),t.exports.Stream=e.Stream}t.exports.default=t.exports},6638(t){"use strict";class e extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError("Expected input to be an Array, got "+typeof t);let e="";for(let r=0;r<t.length;r++)e+=` ${t[r].stack}\n`;super(e),this.name="AggregateError",this.errors=t}}t.exports={AggregateError:e,ArrayIsArray:t=>Array.isArray(t),ArrayPrototypeIncludes:(t,e)=>t.includes(e),ArrayPrototypeIndexOf:(t,e)=>t.indexOf(e),ArrayPrototypeJoin:(t,e)=>t.join(e),ArrayPrototypeMap:(t,e)=>t.map(e),ArrayPrototypePop:(t,e)=>t.pop(e),ArrayPrototypePush:(t,e)=>t.push(e),ArrayPrototypeSlice:(t,e,r)=>t.slice(e,r),Error,FunctionPrototypeCall:(t,e,...r)=>t.call(e,...r),FunctionPrototypeSymbolHasInstance:(t,e)=>Function.prototype[Symbol.hasInstance].call(t,e),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(t,e)=>Object.defineProperties(t,e),ObjectDefineProperty:(t,e,r)=>Object.defineProperty(t,e,r),ObjectGetOwnPropertyDescriptor:(t,e)=>Object.getOwnPropertyDescriptor(t,e),ObjectKeys:t=>Object.keys(t),ObjectSetPrototypeOf:(t,e)=>Object.setPrototypeOf(t,e),Promise,PromisePrototypeCatch:(t,e)=>t.catch(e),PromisePrototypeThen:(t,e,r)=>t.then(e,r),PromiseReject:t=>Promise.reject(t),PromiseResolve:t=>Promise.resolve(t),ReflectApply:Reflect.apply,RegExpPrototypeTest:(t,e)=>t.test(e),SafeSet:Set,String,StringPrototypeSlice:(t,e,r)=>t.slice(e,r),StringPrototypeToLowerCase:t=>t.toLowerCase(),StringPrototypeToUpperCase:t=>t.toUpperCase(),StringPrototypeTrim:t=>t.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(t,e,r)=>t.set(e,r),Boolean,Uint8Array}},3016(t,e,r){"use strict";const n=r(181),{format:i,inspect:s}=r(6007),{codes:{ERR_INVALID_ARG_TYPE:o}}=r(1899),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:u}=r(6638),h=globalThis.AbortSignal||r(6584).AbortSignal,c=globalThis.AbortController||r(6584).AbortController,d=Object.getPrototypeOf((async function(){})).constructor,f=globalThis.Blob||n.Blob,p=void 0!==f?function(t){return t instanceof f}:function(t){return!1},g=(t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new o(e,"AbortSignal",t)};t.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise(((r,n)=>{t=r,e=n})),resolve:t,reject:e}},promisify:t=>new Promise(((e,r)=>{t(((t,...n)=>t?r(t):e(...n)))})),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:t=>t instanceof d,isArrayBufferView:t=>ArrayBuffer.isView(t)},isBlob:p,deprecate:(t,e)=>t,addAbortListener:r(4434).addAbortListener||function(t,e){if(void 0===t)throw new o("signal","AbortSignal",t);let r;return g(t,"signal"),((t,e)=>{if("function"!=typeof t)throw new o(e,"Function",t)})(e,"listener"),t.aborted?queueMicrotask((()=>e())):(t.addEventListener("abort",e,{__proto__:null,once:!0,[a]:!0}),r=()=>{t.removeEventListener("abort",e)}),{__proto__:null,[u](){var t;null===(t=r)||void 0===t||t()}}},AbortSignalAny:h.any||function(t){if(1===t.length)return t[0];const e=new c,r=()=>e.abort();return t.forEach((t=>{g(t,"signals"),t.addEventListener("abort",r,{once:!0})})),e.signal.addEventListener("abort",(()=>{t.forEach((t=>t.removeEventListener("abort",r)))}),{once:!0}),e.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},6007(t){"use strict";t.exports={format:(t,...e)=>t.replace(/%([sdifj])/g,(function(...[t,r]){const n=e.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(t){switch(typeof t){case"string":if(t.includes("'")){if(!t.includes('"'))return`"${t}"`;if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}},7082(t,e,r){"use strict";const{Buffer:n}=r(181),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r(6638),{promisify:{custom:a}}=r(3016),{streamReturningOperators:l,promiseReturningOperators:u}=r(63),{codes:{ERR_ILLEGAL_CONSTRUCTOR:h}}=r(1899),c=r(3265),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:f}=r(6707),{pipeline:p}=r(1238),{destroyer:g}=r(9952),b=r(5318),m=r(3759),y=r(7787),w=t.exports=r(1003).Stream;w.isDestroyed=y.isDestroyed,w.isDisturbed=y.isDisturbed,w.isErrored=y.isErrored,w.isReadable=y.isReadable,w.isWritable=y.isWritable,w.Readable=r(6672);for(const v of s(l)){const S=l[v];function E(...t){if(new.target)throw h();return w.Readable.from(o(S,this,t))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(w.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of s(u)){const A=u[x];function R(...t){if(new.target)throw h();return o(A,this,t)}i(R,"name",{__proto__:null,value:A.name}),i(R,"length",{__proto__:null,value:A.length}),i(w.Readable.prototype,x,{__proto__:null,value:R,enumerable:!1,configurable:!0,writable:!0})}w.Writable=r(976),w.Duplex=r(7090),w.Transform=r(7694),w.PassThrough=r(8212),w.pipeline=p;const{addAbortSignal:_}=r(9259);w.addAbortSignal=_,w.finished=b,w.destroy=g,w.compose=c,w.setDefaultHighWaterMark=d,w.getDefaultHighWaterMark=f,i(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>m}),i(p,a,{__proto__:null,enumerable:!0,get:()=>m.pipeline}),i(b,a,{__proto__:null,enumerable:!0,get:()=>m.finished}),w.Stream=w,w._isUint8Array=function(t){return t instanceof Uint8Array},w._uint8ArrayToBuffer=function(t){return n.from(t.buffer,t.byteOffset,t.byteLength)}},3759(t,e,r){"use strict";const{ArrayPrototypePop:n,Promise:i}=r(6638),{isIterable:s,isNodeStream:o,isWebStream:a}=r(7787),{pipelineImpl:l}=r(1238),{finished:u}=r(5318);r(7082),t.exports={finished:u,pipeline:function(...t){return new i(((e,r)=>{let i,u;const h=t[t.length-1];if(h&&"object"==typeof h&&!o(h)&&!s(h)&&!a(h)){const e=n(t);i=e.signal,u=e.end}l(t,((t,n)=>{t?r(t):e(n)}),{signal:i,end:u})}))}}},9133(t,e,r){var n=r(826),i={},s=function(t,e){return s.create(t,e)};s.create=function(t,e){if(i[t]){var r=new n(t,e);return r.setFormat(t),r.setModule(new i[t](e)),r}throw new Error("create("+t+"): format not registered")},s.registerFormat=function(t,e){if(i[t])throw new Error("register("+t+"): format already registered");if("function"!=typeof e)throw new Error("register("+t+"): format module invalid");if("function"!=typeof e.prototype.append||"function"!=typeof e.prototype.finalize)throw new Error("register("+t+"): format module missing methods");i[t]=e},s.isRegisteredFormat=function(t){return!!i[t]},s.registerFormat("zip",r(3541)),s.registerFormat("tar",r(741)),s.registerFormat("json",r(6530)),t.exports=s},826(t,e,r){var n=r(9896),i=r(6965),s=r(2268),o=r(6928),a=r(1789),l=r(9023).inherits,u=r(2383),h=r(4614).Transform,c="win32"===process.platform,d=function(t,e){if(!(this instanceof d))return new d(t,e);"string"!=typeof t&&(e=t,t="zip"),e=this.options=a.defaults(e,{highWaterMark:1048576,statConcurrency:4}),h.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=s.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=s.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};l(d,h),d.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},d.prototype._append=function(t,e){var r={source:null,filepath:t};(e=e||{}).name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof n.Stats?(r=this._updateQueueTaskWithStats(r,e.stats))&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r)):this._statQueue.push(r)},d.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},d.prototype._maybeFinalize=function(){return!(this._state.finalizing||this._state.finalized||this._state.aborted)&&(!!(this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle())&&(this._finalize(),!0))},d.prototype._moduleAppend=function(t,e,r){this._state.aborted?r():this._module.append(t,e,function(t){if(this._task=null,this._state.aborted)this._shutdown();else{if(t)return this.emit("error",t),void setImmediate(r);this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}}.bind(this))},d.prototype._moduleFinalize=function(){"function"==typeof this._module.finalize?this._module.finalize():"function"==typeof this._module.end?this._module.end():this.emit("error",new u("NOENDMETHOD"))},d.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},d.prototype._moduleSupports=function(t){return!(!this._module.supports||!this._module.supports[t])&&this._module.supports[t]},d.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},d.prototype._normalizeEntryData=function(t,e){t=a.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&!1===t.stats&&(t.stats=e);var r="directory"===t.type;return t.name&&("string"==typeof t.prefix&&""!==t.prefix&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=a.sanitizePath(t.name),"symlink"!==t.type&&"/"===t.name.slice(-1)?(r=!0,t.type="directory"):r&&(t.name+="/")),"number"==typeof t.mode?t.mode&=c?511:4095:t.stats&&null===t.mode?(t.mode=c?511&t.stats.mode:4095&t.stats.mode,c&&r&&(t.mode=493)):null===t.mode&&(t.mode=r?493:420),t.stats&&null===t.date?t.date=t.stats.mtime:t.date=a.dateify(t.date),t},d.prototype._onModuleError=function(t){this.emit("error",t)},d.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},d.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};this._state.finalizing||this._state.finalized||this._state.aborted?r():(this._task=t,this._moduleAppend(t.source,t.data,r))},d.prototype._onStatQueueTask=function(t,e){this._state.finalizing||this._state.finalized||this._state.aborted?e():n.lstat(t.filepath,function(r,n){if(this._state.aborted)setImmediate(e);else{if(r)return this._entriesCount--,this.emit("warning",r),void setImmediate(e);(t=this._updateQueueTaskWithStats(t,n))&&(n.size&&(this._fsEntriesTotalBytes+=n.size),this._queue.push(t)),setImmediate(e)}}.bind(this))},d.prototype._shutdown=function(){this._moduleUnpipe(),this.end()},d.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)},d.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=a.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=a.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=a.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else{if(!e.isSymbolicLink()||!this._moduleSupports("symlink"))return e.isDirectory()?this.emit("warning",new u("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new u("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new u("ENTRYNOTSUPPORTED",t.data)),null;var r=n.readlinkSync(t.filepath),i=o.dirname(t.filepath);t.data.type="symlink",t.data.linkname=o.relative(i,o.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}return t.data=this._normalizeEntryData(t.data,e),t},d.prototype.abort=function(){return this._state.aborted||this._state.finalized||this._abort(),this},d.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof(e=this._normalizeEntryData(e)).name||0===e.name.length)return this.emit("error",new u("ENTRYNAMEREQUIRED")),this;if("directory"===e.type&&!this._moduleSupports("directory"))return this.emit("error",new u("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=a.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else{if(!a.isStream(t))return this.emit("error",new u("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;e.sourceType="stream"}return this._entriesCount++,this._queue.push({data:e,source:t}),this},d.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new u("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,!1===e?e="":"string"!=typeof e&&(e=t);var n=!1;"function"==typeof r?(n=r,r={}):"object"!=typeof r&&(r={});var s=i(t,{stat:!0,dot:!0});return s.on("error",function(t){this.emit("error",t)}.bind(this)),s.on("match",function(i){s.pause();var o=!1,a=Object.assign({},r);a.name=i.relative,a.prefix=e,a.stats=i.stat,a.callback=s.resume.bind(s);try{if(n)if(!1===(a=n(a)))o=!0;else if("object"!=typeof a)throw new u("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}catch(t){return void this.emit("error",t)}o?s.resume():this._append(i.absolute,a)}.bind(this)),s.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},d.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new u("QUEUECLOSED")),this):"string"!=typeof t||0===t.length?(this.emit("error",new u("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)},d.prototype.glob=function(t,e,r){this._pending++,e=a.defaults(e,{stat:!0,pattern:t});var n=i(e.cwd||".",e);return n.on("error",function(t){this.emit("error",t)}.bind(this)),n.on("match",function(t){n.pause();var e=Object.assign({},r);e.callback=n.resume.bind(n),e.stats=t.stat,e.name=t.relative,this._append(t.absolute,e)}.bind(this)),n.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},d.prototype.finalize=function(){if(this._state.aborted){var t=new u("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new u("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise((function(t,e){var n;r._module.on("end",(function(){n||t()})),r._module.on("error",(function(t){n=!0,e(t)}))}))},d.prototype.setFormat=function(t){return this._format?(this.emit("error",new u("FORMATSET")),this):(this._format=t,this)},d.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new u("ABORTED")),this):this._state.module?(this.emit("error",new u("MODULESET")),this):(this._module=t,this._modulePipe(),this)},d.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new u("SYMLINKFILEPATHREQUIRED")),this;if("string"!=typeof e||0===e.length)return this.emit("error",new u("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new u("SYMLINKNOTSUPPORTED",{filepath:t})),this;var n={type:"symlink"};return n.name=t.replace(/\\/g,"/"),n.linkname=e.replace(/\\/g,"/"),n.sourceType="buffer","number"==typeof r&&(n.mode=r),this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this},d.prototype.pointer=function(){return this._pointer},d.prototype.use=function(t){return this._streams.push(t),this},t.exports=d},2383(t,e,r){var n=r(9023);const i={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function s(t,e){Error.captureStackTrace(this,this.constructor),this.message=i[t]||t,this.code=t,this.data=e}n.inherits(s,Error),t.exports=s},6530(t,e,r){var n=r(9023).inherits,i=r(4614).Transform,s=r(9120),o=r(1789),a=function(t){if(!(this instanceof a))return new a(t);t=this.options=o.defaults(t,{}),i.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};n(a,i),a.prototype._transform=function(t,e,r){r(null,t)},a.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)},a.prototype.append=function(t,e,r){var n=this;function i(t,i){t?r(t):(e.size=i.length||0,e.crc32=s.unsigned(i),n.files.push(e),r(null,e))}e.crc32=0,"buffer"===e.sourceType?i(null,t):"stream"===e.sourceType&&o.collectStream(t,i)},a.prototype.finalize=function(){this._writeStringified(),this.end()},t.exports=a},741(t,e,r){var n=r(3106),i=r(4231),s=r(1789),o=function(t){if(!(this instanceof o))return new o(t);"object"!=typeof(t=this.options=s.defaults(t,{gzip:!1})).gzipOptions&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=i.pack(t),this.compressor=!1,t.gzip&&(this.compressor=n.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};o.prototype._onCompressorError=function(t){this.engine.emit("error",t)},o.prototype.append=function(t,e,r){var n=this;function i(t,i){t?r(t):n.engine.entry(e,i,(function(t){r(t,e)}))}if(e.mtime=e.date,"buffer"===e.sourceType)i(null,t);else if("stream"===e.sourceType&&e.stats){e.size=e.stats.size;var o=n.engine.entry(e,(function(t){r(t,e)}));t.pipe(o)}else"stream"===e.sourceType&&s.collectStream(t,i)},o.prototype.finalize=function(){this.engine.finalize()},o.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},o.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)},o.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)},t.exports=o},3541(t,e,r){var n=r(8919),i=r(1789),s=function(t){if(!(this instanceof s))return new s(t);t=this.options=i.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new n(t)};s.prototype.append=function(t,e,r){this.engine.entry(t,e,r)},s.prototype.finalize=function(){this.engine.finalize()},s.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},s.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)},s.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)},t.exports=s},3835(t,e,r){"use strict";const{SymbolDispose:n}=r(7518),{AbortError:i,codes:s}=r(4251),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:l}=r(4331),u=r(4742),{ERR_INVALID_ARG_TYPE:h}=s;let c;t.exports.addAbortSignal=function(e,r){if(((t,e)=>{if("object"!=typeof t||!("aborted"in t))throw new h(e,"AbortSignal",t)})(e,"signal"),!o(r)&&!a(r))throw new h("stream",["ReadableStream","WritableStream","Stream"],r);return t.exports.addAbortSignalNoValidate(e,r)},t.exports.addAbortSignalNoValidate=function(t,e){if("object"!=typeof t||!("aborted"in t))return e;const s=o(e)?()=>{e.destroy(new i(void 0,{cause:t.reason}))}:()=>{e[l](new i(void 0,{cause:t.reason}))};if(t.aborted)s();else{c=c||r(248).addAbortListener;const i=c(t,s);u(e,i[n])}return e}},8145(t,e,r){"use strict";const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r(7518),{Buffer:a}=r(181),{inspect:l}=r(248);t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}unshift(t){const e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}shift(){if(0===this.length)return;const t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(0===this.length)return"";let e=this.head,r=""+e.data;for(;null!==(e=e.next);)r+=t+e.data;return r}concat(t){if(0===this.length)return a.alloc(0);const e=a.allocUnsafe(t>>>0);let r=this.head,n=0;for(;r;)s(e,r.data,n),n+=r.data.length,r=r.next;return e}consume(t,e){const r=this.head.data;if(t<r.length){const e=r.slice(0,t);return this.head.data=r.slice(t),e}return t===r.length?this.shift():e?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[i](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let e="",r=this.head,i=0;do{const s=r.data;if(!(t>s.length)){t===s.length?(e+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(e+=n(s,0,t),this.head=r,r.data=n(s,t));break}e+=s,t-=s.length,++i}while(null!==(r=r.next));return this.length-=i,e}_getBuffer(t){const e=a.allocUnsafe(t),r=t;let n=this.head,i=0;do{const a=n.data;if(!(t>a.length)){t===a.length?(s(e,a,r-t),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(e,new o(a.buffer,a.byteOffset,t),r-t),this.head=n,n.data=a.slice(t));break}s(e,a,r-t),t-=a.length,++i}while(null!==(n=n.next));return this.length-=i,e}[Symbol.for("nodejs.util.inspect.custom")](t,e){return l(this,{...e,depth:0,customInspect:!1})}}},3262(t,e,r){"use strict";const{pipeline:n}=r(2502),i=r(7074),{destroyer:s}=r(4016),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:u,isTransformStream:h,isWritableStream:c,isReadableStream:d}=r(4331),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:g}}=r(4251),b=r(4742);t.exports=function(...t){if(0===t.length)throw new g("streams");if(1===t.length)return i.from(t[0]);const e=[...t];if("function"==typeof t[0]&&(t[0]=i.from(t[0])),"function"==typeof t[t.length-1]){const e=t.length-1;t[e]=i.from(t[e])}for(let r=0;r<t.length;++r)if(o(t[r])||u(t[r])){if(r<t.length-1&&!(a(t[r])||d(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be readable");if(r>0&&!(l(t[r])||c(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be writable")}let r,m,y,w,_;const v=t[0],S=n(t,(function(t){const e=w;w=null,e?e(t):t?_.destroy(t):x||E||_.destroy()})),E=!!(l(v)||c(v)||h(v)),x=!!(a(S)||d(S)||h(S));if(_=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(o(v))_._write=function(t,e,n){v.write(t,e)?n():r=n},_._final=function(t){v.end(),m=t},v.on("drain",(function(){if(r){const t=r;r=null,t()}}));else if(u(v)){const t=(h(v)?v.writable:v).getWriter();_._write=async function(e,r,n){try{await t.ready,t.write(e).catch((()=>{})),n()}catch(t){n(t)}},_._final=async function(e){try{await t.ready,t.close().catch((()=>{})),m=e}catch(t){e(t)}}}const t=h(S)?S.readable:S;b(t,(()=>{if(m){const t=m;m=null,t()}}))}if(x)if(o(S))S.on("readable",(function(){if(y){const t=y;y=null,t()}})),S.on("end",(function(){_.push(null)})),_._read=function(){for(;;){const t=S.read();if(null===t)return void(y=_._read);if(!_.push(t))return}};else if(u(S)){const t=(h(S)?S.readable:S).getReader();_._read=async function(){for(;;)try{const{value:e,done:r}=await t.read();if(!_.push(e))return;if(r)return void _.push(null)}catch{return}}}return _._destroy=function(t,e){t||null===w||(t=new f),y=null,r=null,m=null,null===w?e(t):(w=e,o(S)&&s(S,t))},_}},4016(t,e,r){"use strict";const n=r(4422),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r(4251),{Symbol:a}=r(7518),{kIsDestroyed:l,isDestroyed:u,isFinished:h,isServerRequest:c}=r(4331),d=a("kDestroy"),f=a("kConstruct");function p(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function g(t,e,r){let i=!1;function s(e){if(i)return;i=!0;const s=t._readableState,o=t._writableState;p(e,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(e),e?n.nextTick(b,t,e):n.nextTick(m,t)}try{t._destroy(e||null,s)}catch(e){s(e)}}function b(t,e){y(t,e),m(t)}function m(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(null!=r&&r.emitClose||null!=e&&e.emitClose)&&t.emit("close")}function y(t,e){const r=t._readableState,n=t._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function w(t,e,r){const i=t._readableState,s=t._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?t.destroy(e):e&&(e.stack,s&&!s.errored&&(s.errored=e),i&&!i.errored&&(i.errored=e),r?n.nextTick(y,t,e):y(t,e))}function _(t){let e=!1;function r(r){if(e)return void w(t,null!=r?r:new s);e=!0;const i=t._readableState,o=t._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?t.emit(d,r):r?w(t,r,!0):n.nextTick(v,t)}try{t._construct((t=>{n.nextTick(r,t)}))}catch(t){n.nextTick(r,t)}}function v(t){t.emit(f)}function S(t){return(null==t?void 0:t.setHeader)&&"function"==typeof t.abort}function E(t){t.emit("close")}function x(t,e){t.emit("error",e),n.nextTick(E,t)}t.exports={construct:function(t,e){if("function"!=typeof t._construct)return;const r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(f,e),t.listenerCount(f)>1||n.nextTick(_,t)},destroyer:function(t,e){t&&!u(t)&&(e||h(t)||(e=new o),c(t)?(t.socket=null,t.destroy(e)):S(t)?t.abort():S(t.req)?t.req.abort():"function"==typeof t.destroy?t.destroy(e):"function"==typeof t.close?t.close():e?n.nextTick(x,t,e):n.nextTick(E,t),t.destroyed||(t[l]=!0))},destroy:function(t,e){const r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof e&&e(),this):(p(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?g(this,t,e):this.once(d,(function(r){g(this,i(r,t),e)})),this)},undestroy:function(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=!1===t.readable,t.endEmitted=!1===t.readable),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=!1===e.writable,e.ending=!1===e.writable,e.finished=!1===e.writable)},errorOrDestroy:w}},7074(t,e,r){"use strict";const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:s,ObjectSetPrototypeOf:o}=r(7518);t.exports=u;const a=r(9088),l=r(4144);o(u.prototype,a.prototype),o(u,a);{const t=s(l.prototype);for(let e=0;e<t.length;e++){const r=t[e];u.prototype[r]||(u.prototype[r]=l.prototype[r])}}function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),l.call(this,t),t?(this.allowHalfOpen=!1!==t.allowHalfOpen,!1===t.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===t.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let h,c;function d(){return void 0===h&&(h={}),h}n(u.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}}),u.fromWeb=function(t,e){return d().newStreamDuplexFromReadableWritablePair(t,e)},u.toWeb=function(t){return d().newReadableWritablePairFromDuplex(t)},u.from=function(t){return c||(c=r(7610)),c(t,"body")}},7610(t,e,r){const n=r(4422),i=r(181),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:u,isWritableNodeStream:h,isDuplexNodeStream:c,isReadableStream:d,isWritableStream:f}=r(4331),p=r(4742),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=r(4251),{destroyer:y}=r(4016),w=r(7074),_=r(9088),v=r(4144),{createDeferredPromise:S}=r(248),E=r(4620),x=globalThis.Blob||i.Blob,A=void 0!==x?function(t){return t instanceof x}:function(t){return!1},R=globalThis.AbortController||r(6584).AbortController,{FunctionPrototypeCall:O}=r(7518);class T extends w{constructor(t){super(t),!1===(null==t?void 0:t.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==t?void 0:t.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function k(t){const e=t.readable&&"function"!=typeof t.readable.read?_.wrap(t.readable):t.readable,r=t.writable;let n,i,a,l,u,h=!!s(e),c=!!o(r);function d(t){const e=l;l=null,e?e(t):t&&u.destroy(t)}return u=new T({readableObjectMode:!(null==e||!e.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:h,writable:c}),c&&(p(r,(t=>{c=!1,t&&y(e,t),d(t)})),u._write=function(t,e,i){r.write(t,e)?i():n=i},u._final=function(t){r.end(),i=t},r.on("drain",(function(){if(n){const t=n;n=null,t()}})),r.on("finish",(function(){if(i){const t=i;i=null,t()}}))),h&&(p(e,(t=>{h=!1,t&&y(e,t),d(t)})),e.on("readable",(function(){if(a){const t=a;a=null,t()}})),e.on("end",(function(){u.push(null)})),u._read=function(){for(;;){const t=e.read();if(null===t)return void(a=u._read);if(!u.push(t))return}}),u._destroy=function(t,s){t||null===l||(t=new g),a=null,n=null,i=null,null===l?s(t):(l=s,y(r,t),y(e,t))},u}t.exports=function t(e,r){if(c(e))return e;if(u(e))return k({readable:e});if(h(e))return k({writable:e});if(l(e))return k({writable:!1,readable:!1});if(d(e))return k({readable:_.fromWeb(e)});if(f(e))return k({writable:v.fromWeb(e)});if("function"==typeof e){const{value:t,write:i,final:s,destroy:o}=function(t){let{promise:e,resolve:r}=S();const i=new R,s=i.signal,o=t(async function*(){for(;;){const t=e;e=null;const{chunk:i,done:o,cb:a}=await t;if(n.nextTick(a),o)return;if(s.aborted)throw new g(void 0,{cause:s.reason});({promise:e,resolve:r}=S()),yield i}}(),{signal:s});return{value:o,write(t,e,n){const i=r;r=null,i({chunk:t,done:!1,cb:n})},final(t){const e=r;r=null,e({done:!0,cb:t})},destroy(t,e){i.abort(),e(t)}}}(e);if(a(t))return E(T,t,{objectMode:!0,write:i,final:s,destroy:o});const l=null==t?void 0:t.then;if("function"==typeof l){let e;const r=O(l,t,(t=>{if(null!=t)throw new m("nully","body",t)}),(t=>{y(e,t)}));return e=new T({objectMode:!0,readable:!1,write:i,final(t){s((async()=>{try{await r,n.nextTick(t,null)}catch(e){n.nextTick(t,e)}}))},destroy:o})}throw new m("Iterable, AsyncIterable or AsyncFunction",r,t)}if(A(e))return t(e.arrayBuffer());if(a(e))return E(T,e,{objectMode:!0,writable:!1});if(d(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return T.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable)){return k({readable:null!=e&&e.readable?u(null==e?void 0:e.readable)?null==e?void 0:e.readable:t(e.readable):void 0,writable:null!=e&&e.writable?h(null==e?void 0:e.writable)?null==e?void 0:e.writable:t(e.writable):void 0})}const i=null==e?void 0:e.then;if("function"==typeof i){let t;return O(i,e,(e=>{null!=e&&t.push(e),t.push(null)}),(e=>{y(t,e)})),t=new T({objectMode:!0,writable:!1,read(){}})}throw new b(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},4742(t,e,r){"use strict";const n=r(4422),{AbortError:i,codes:s}=r(4251),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:l,once:u}=r(248),{validateAbortSignal:h,validateFunction:c,validateObject:d,validateBoolean:f}=r(9453),{Promise:p,PromisePrototypeThen:g,SymbolDispose:b}=r(7518),{isClosed:m,isReadable:y,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:A,isWritableFinished:R,isWritableErrored:O,isNodeStream:T,willEmitClose:k,kIsClosedPromise:M}=r(4331);let P;const I=()=>{};function L(t,e,s){var f,p;if(2===arguments.length?(s=e,e=l):null==e?e=l:d(e,"options"),c(s,"callback"),h(e.signal,"options.signal"),s=u(s),_(t)||A(t))return function(t,e,s){let o=!1,a=I;if(e.signal)if(a=()=>{o=!0,s.call(t,new i(void 0,{cause:e.signal.reason}))},e.signal.aborted)n.nextTick(a);else{P=P||r(248).addAbortListener;const n=P(e.signal,a),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}const l=(...e)=>{o||n.nextTick((()=>s.apply(t,e)))};return g(t[M].promise,l,l),I}(t,e,s);if(!T(t))throw new o("stream",["ReadableStream","WritableStream","Stream"],t);const L=null!==(f=e.readable)&&void 0!==f?f:w(t),D=null!==(p=e.writable)&&void 0!==p?p:x(t),C=t._writableState,N=t._readableState,j=()=>{t.writable||W()};let F=k(t)&&w(t)===L&&x(t)===D,$=R(t,!1);const W=()=>{$=!0,t.destroyed&&(F=!1),(!F||t.readable&&!L)&&(L&&!B||s.call(t))};let B=v(t,!1);const U=()=>{B=!0,t.destroyed&&(F=!1),(!F||t.writable&&!D)&&(D&&!$||s.call(t))},z=e=>{s.call(t,e)};let H=m(t);const G=()=>{H=!0;const e=O(t)||S(t);return e&&"boolean"!=typeof e?s.call(t,e):L&&!B&&w(t,!0)&&!v(t,!1)?s.call(t,new a):!D||$||R(t,!1)?void s.call(t):s.call(t,new a)},V=()=>{H=!0;const e=O(t)||S(t);if(e&&"boolean"!=typeof e)return s.call(t,e);s.call(t)},q=()=>{t.req.on("finish",W)};!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?D&&!C&&(t.on("end",j),t.on("close",j)):(t.on("complete",W),F||t.on("abort",G),t.req?q():t.on("request",q)),F||"boolean"!=typeof t.aborted||t.on("aborted",G),t.on("end",U),t.on("finish",W),!1!==e.error&&t.on("error",z),t.on("close",G),H?n.nextTick(G):null!=C&&C.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(L||F&&!y(t)||!$&&!1!==E(t))&&(D||F&&!E(t)||!B&&!1!==y(t))?N&&t.req&&t.aborted&&n.nextTick(V):n.nextTick(V);const Y=()=>{s=I,t.removeListener("aborted",G),t.removeListener("complete",W),t.removeListener("abort",G),t.removeListener("request",q),t.req&&t.req.removeListener("finish",W),t.removeListener("end",j),t.removeListener("close",j),t.removeListener("finish",W),t.removeListener("end",U),t.removeListener("error",z),t.removeListener("close",G)};if(e.signal&&!H){const o=()=>{const r=s;Y(),r.call(t,new i(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)n.nextTick(o);else{P=P||r(248).addAbortListener;const n=P(e.signal,o),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}}return Y}t.exports=L,t.exports.finished=function(t,e){var r;let n=!1;return null===e&&(e=l),null!==(r=e)&&void 0!==r&&r.cleanup&&(f(e.cleanup,"cleanup"),n=e.cleanup),new p(((r,i)=>{const s=L(t,e,(t=>{n&&s(),t?i(t):r()}))}))}},4620(t,e,r){"use strict";const n=r(4422),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r(7518),{Buffer:a}=r(181),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:u}=r(4251).codes;t.exports=function(t,e,r){let h,c;if("string"==typeof e||e instanceof a)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});if(e&&e[s])c=!0,h=e[s]();else{if(!e||!e[o])throw new l("iterable",["Iterable"],e);c=!1,h=e[o]()}const d=new t({objectMode:!0,highWaterMark:1,...r});let f=!1;return d._read=function(){f||(f=!0,async function(){for(;;){try{const{value:t,done:e}=c?await h.next():h.next();if(e)d.push(null);else{const e=t&&"function"==typeof t.then?await t:t;if(null===e)throw f=!1,new u;if(d.push(e))continue;f=!1}}catch(t){d.destroy(t)}break}}())},d._destroy=function(t,e){i(async function(t){const e=null!=t,r="function"==typeof h.throw;if(e&&r){const{value:e,done:r}=await h.throw(t);if(await e,r)return}if("function"==typeof h.return){const{value:t}=await h.return();await t}}(t),(()=>n.nextTick(e,t)),(r=>n.nextTick(e,r||t)))},d}},8091(t,e,r){"use strict";const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(7518),{EventEmitter:s}=r(4434);function o(t){s.call(this,t)}function a(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?n(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}i(o.prototype,s.prototype),i(o,s),o.prototype.pipe=function(t,e){const r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",l),r.on("close",u));let o=!1;function l(){o||(o=!0,t.end())}function u(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){c(),0===s.listenerCount(this,"error")&&this.emit("error",t)}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return a(r,"error",h),a(t,"error",h),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t},t.exports={Stream:o,prependListener:a}},5551(t,e,r){"use strict";const n=globalThis.AbortController||r(6584).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r(4251),{validateAbortSignal:u,validateInteger:h,validateObject:c}=r(9453),d=r(7518).Symbol("kWeak"),f=r(7518).Symbol("kResistStopPropagation"),{finished:p}=r(4742),g=r(3262),{addAbortSignalNoValidate:b}=r(3835),{isWritable:m,isNodeStream:y}=r(4331),{deprecate:w}=r(248),{ArrayPrototypePush:_,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:T,Symbol:k}=r(7518),M=k("kEmpty"),P=k("kEof");function I(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");let n=1;null!=(null==e?void 0:e.concurrency)&&(n=S(e.concurrency));let i=n-1;return null!=(null==e?void 0:e.highWaterMark)&&(i=S(e.highWaterMark)),h(n,"options.concurrency",1),h(i,"options.highWaterMark",0),i+=n,async function*(){const s=r(248).AbortSignalAny([null==e?void 0:e.signal].filter(v)),o=this,a=[],u={signal:s};let h,c,d=!1,f=0;function p(){d=!0,g()}function g(){f-=1,b()}function b(){c&&!d&&f<n&&a.length<i&&(c(),c=null)}!async function(){try{for await(let e of o){if(d)return;if(s.aborted)throw new l;try{if(e=t(e,u),e===M)continue;e=O(e)}catch(t){e=R(t)}f+=1,T(e,g,p),a.push(e),h&&(h(),h=null),!d&&(a.length>=i||f>=n)&&await new A((t=>{c=t}))}a.push(P)}catch(t){const e=R(t);T(e,g,p),a.push(e)}finally{d=!0,h&&(h(),h=null)}}();try{for(;;){for(;a.length>0;){const t=await a[0];if(t===P)return;if(s.aborted)throw new l;t!==M&&(yield t),a.shift(),b()}await new A((t=>{h=t}))}}finally{d=!0,c&&(c(),c=null)}}.call(this)}async function L(t,e=void 0){for await(const r of D.call(this,t,e))return!0;return!1}function D(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return I.call(this,(async function(e,r){return await t(e,r)?e:M}),e)}class C extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(t){if(t=E(t),x(t))return 0;if(t<0)throw new a("number",">= 0",t);return t}t.exports.streamReturningOperators={asIndexedPairs:w((function(t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),async function*(){let e=0;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l({cause:t.signal.reason});yield[e++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;t--<=0&&(yield r)}}.call(this)},filter:D,flatMap:function(t,e){const r=I.call(this,t,e);return async function*(){for await(const t of r)yield*t}.call(this)},map:I,take:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;if(t-- >0&&(yield r),t<=0)return}}.call(this)},compose:function(t,e){if(null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),y(t)&&!m(t))throw new i("stream",t,"must be writable");const r=g(this,t);return null!=e&&e.signal&&b(e.signal,r),r}},t.exports.promiseReturningOperators={every:async function(t,e=void 0){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return!await L.call(this,(async(...e)=>!await t(...e)),e)},forEach:async function(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);for await(const r of I.call(this,(async function(e,r){return await t(e,r),M}),e));},reduce:async function(t,e,r){var i;if("function"!=typeof t)throw new s("reducer",["Function","AsyncFunction"],t);null!=r&&c(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let o=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const t=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(t)),t}const a=new n,h=a.signal;if(null!=r&&r.signal){const t={once:!0,[d]:this,[f]:!0};r.signal.addEventListener("abort",(()=>a.abort()),t)}let g=!1;try{for await(const n of this){var b;if(g=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;o?e=await t(e,n,{signal:h}):(e=n,o=!0)}if(!g&&!o)throw new C}finally{a.abort()}return e},toArray:async function(t){null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:t.signal.reason});_(e,n)}return e},some:L,find:async function(t,e){for await(const r of D.call(this,t,e))return r}}},4183(t,e,r){"use strict";const{ObjectSetPrototypeOf:n}=r(7518);t.exports=s;const i=r(9710);function s(t){if(!(this instanceof s))return new s(t);i.call(this,t)}n(s.prototype,i.prototype),n(s,i),s.prototype._transform=function(t,e,r){r(null,t)}},2502(t,e,r){const n=r(4422),{ArrayIsArray:i,Promise:s,SymbolAsyncIterator:o,SymbolDispose:a}=r(7518),l=r(4742),{once:u}=r(248),h=r(4016),c=r(7074),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:m},AbortError:y}=r(4251),{validateFunction:w,validateAbortSignal:_}=r(9453),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:A,isWebStream:R,isReadableStream:O,isReadableFinished:T}=r(4331),k=globalThis.AbortController||r(6584).AbortController;let M,P,I;function L(t,e,r){let n=!1;t.on("close",(()=>{n=!0}));return{destroy:e=>{n||(n=!0,h.destroyer(t,e||new b("pipe")))},cleanup:l(t,{readable:e,writable:r},(t=>{n=!t}))}}function D(t){if(v(t))return t;if(E(t))return async function*(t){P||(P=r(9088));yield*P.prototype[o].call(t)}(t);throw new f("val",["Readable","Iterable","AsyncIterable"],t)}async function C(t,e,r,{end:n}){let i,o=null;const a=t=>{if(t&&(i=t),o){const t=o;o=null,t()}},u=()=>new s(((t,e)=>{i?e(i):o=()=>{i?e(i):t()}}));e.on("drain",a);const h=l(e,{readable:!1},a);try{e.writableNeedDrain&&await u();for await(const r of t)e.write(r)||await u();n&&(e.end(),await u()),r()}catch(t){r(i!==t?d(i,t):t)}finally{h(),e.off("drain",a)}}async function N(t,e,r,{end:n}){A(e)&&(e=e.writable);const i=e.getWriter();try{for await(const e of t)await i.ready,i.write(e).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(t){try{await i.abort(t),r(t)}catch(t){r(t)}}}function j(t,e,s){if(1===t.length&&i(t[0])&&(t=t[0]),t.length<2)throw new g("streams");const o=new k,l=o.signal,u=null==s?void 0:s.signal,h=[];function d(){W(new y)}let b,m,w;_(u,"options.signal"),I=I||r(248).addAbortListener,u&&(b=I(u,d));const T=[];let P,j=0;function $(t){W(t,0==--j)}function W(t,r){var i;if(!t||m&&"ERR_STREAM_PREMATURE_CLOSE"!==m.code||(m=t),m||r){for(;T.length;)T.shift()(m);null===(i=b)||void 0===i||i[a](),o.abort(),r&&(m||h.forEach((t=>t())),n.nextTick(e,m,w))}}for(let H=0;H<t.length;H++){const G=t[H],V=H<t.length-1,q=H>0,Y=V||!1!==(null==s?void 0:s.end),K=H===t.length-1;if(x(G)){if(Y){const{destroy:Z,cleanup:J}=L(G,V,q);T.push(Z),S(G)&&K&&h.push(J)}function B(t){t&&"AbortError"!==t.name&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code&&$(t)}G.on("error",B),S(G)&&K&&h.push((()=>{G.removeListener("error",B)}))}if(0===H)if("function"==typeof G){if(P=G({signal:l}),!v(P))throw new p("Iterable, AsyncIterable or Stream","source",P)}else P=v(G)||E(G)||A(G)?G:c.from(G);else if("function"==typeof G){var U;if(A(P))P=D(null===(U=P)||void 0===U?void 0:U.readable);else P=D(P);if(P=G(P,{signal:l}),V){if(!v(P,!0))throw new p("AsyncIterable",`transform[${H-1}]`,P)}else{var z;M||(M=r(4183));const Q=new M({objectMode:!0}),X=null===(z=P)||void 0===z?void 0:z.then;if("function"==typeof X)j++,X.call(P,(t=>{w=t,null!=t&&Q.write(t),Y&&Q.end(),n.nextTick($)}),(t=>{Q.destroy(t),n.nextTick($,t)}));else if(v(P,!0))j++,C(P,Q,$,{end:Y});else{if(!O(P)&&!A(P))throw new p("AsyncIterable or Promise","destination",P);{const rt=P.readable||P;j++,C(rt,Q,$,{end:Y})}}P=Q;const{destroy:tt,cleanup:et}=L(P,!1,!0);T.push(tt),K&&h.push(et)}}else if(x(G)){if(E(P)){j+=2;const nt=F(P,G,$,{end:Y});S(G)&&K&&h.push(nt)}else if(A(P)||O(P)){const it=P.readable||P;j++,C(it,G,$,{end:Y})}else{if(!v(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,C(P,G,$,{end:Y})}P=G}else if(R(G)){if(E(P))j++,N(D(P),G,$,{end:Y});else if(O(P)||v(P))j++,N(P,G,$,{end:Y});else{if(!A(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,N(P.readable,G,$,{end:Y})}P=G}else P=c.from(G)}return(null!=l&&l.aborted||null!=u&&u.aborted)&&n.nextTick(d),P}function F(t,e,r,{end:i}){let s=!1;if(e.on("close",(()=>{s||r(new m)})),t.pipe(e,{end:!1}),i){function o(){s=!0,e.end()}T(t)?n.nextTick(o):t.once("end",o)}else r();return l(t,{readable:!0,writable:!1},(e=>{const n=t._readableState;e&&"ERR_STREAM_PREMATURE_CLOSE"===e.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?t.once("end",r).once("error",r):r(e)})),l(e,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:j,pipeline:function(...t){return j(t,u(function(t){return w(t[t.length-1],"streams[stream.length - 1]"),t.pop()}(t)))}}},9088(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeIndexOf:i,NumberIsInteger:s,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:u,ObjectSetPrototypeOf:h,Promise:c,SafeSet:d,SymbolAsyncDispose:f,SymbolAsyncIterator:p,Symbol:g}=r(7518);t.exports=H,H.ReadableState=z;const{EventEmitter:b}=r(4434),{Stream:m,prependListener:y}=r(8091),{Buffer:w}=r(181),{addAbortSignal:_}=r(3835),v=r(4742);let S=r(248).debuglog("stream",(t=>{S=t}));const E=r(8145),x=r(4016),{getHighWaterMark:A,getDefaultHighWaterMark:R}=r(1859),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:k,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:I},AbortError:L}=r(4251),{validateObject:D}=r(9453),C=g("kPaused"),{StringDecoder:N}=r(3141),j=r(4620);h(H.prototype,m.prototype),h(H,m);const F=()=>{},{errorOrDestroy:$}=x,W=2048,B=4096;function U(t){return{enumerable:!1,get(){return!!(this.state&t)},set(e){e?this.state|=t:this.state&=~t}}}function z(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7074)),this.state=6192,t&&t.objectMode&&(this.state|=1),n&&t&&t.readableObjectMode&&(this.state|=1),this.highWaterMark=t?A(this,t,"readableHighWaterMark",n):R(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,t&&!1===t.emitClose&&(this.state&=-2049),t&&!1===t.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new N(t.encoding),this.encoding=t.encoding)}function H(t){if(!(this instanceof H))return new H(t);const e=this instanceof r(7074);this._readableState=new z(t,this,e),t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&!e&&_(t.signal,this)),m.call(this,t),x.construct(this,(()=>{this._readableState.needReadable&&Z(this,this._readableState)}))}function G(t,e,r,n){S("readableAddChunk",e);const i=t._readableState;let s;if(1&i.state||("string"==typeof e?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=w.from(e,r).toString(i.encoding):(e=w.from(e,r),r=""))):e instanceof w?r="":m._isUint8Array(e)?(e=m._uint8ArrayToBuffer(e),r=""):null!=e&&(s=new T("chunk",["string","Buffer","Uint8Array"],e))),s)$(t,s);else if(null===e)i.state&=-9,function(t,e){if(S("onEofChunk"),e.ended)return;if(e.decoder){const t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?Y(t):(e.needReadable=!1,e.emittedReadable=!0,K(t))}(t,i);else if(1&i.state||e&&e.length>0)if(n)if(4&i.state)$(t,new I);else{if(i.destroyed||i.errored)return!1;V(t,i,e,!0)}else if(i.ended)$(t,new P);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||0!==e.length?V(t,i,e,!1):Z(t,i)):V(t,i,e,!1)}else n||(i.state&=-9,Z(t,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function V(t,e,r,n){e.flowing&&0===e.length&&!e.sync&&t.listenerCount("data")>0?(65536&e.state?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),64&e.state&&Y(t)),Z(t,e)}l(z.prototype,{objectMode:U(1),ended:U(2),endEmitted:U(4),reading:U(8),constructed:U(16),sync:U(32),needReadable:U(64),emittedReadable:U(128),readableListening:U(256),resumeScheduled:U(512),errorEmitted:U(1024),emitClose:U(W),autoDestroy:U(B),destroyed:U(8192),closed:U(16384),closeEmitted:U(32768),multiAwaitDrain:U(65536),readingMore:U(1<<17),dataEmitted:U(1<<18)}),H.prototype.destroy=x.destroy,H.prototype._undestroy=x.undestroy,H.prototype._destroy=function(t,e){e(t)},H.prototype[b.captureRejectionSymbol]=function(t){this.destroy(t)},H.prototype[f]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new L,this.destroy(t)),new c(((e,r)=>v(this,(n=>n&&n!==t?r(n):e(null)))))},H.prototype.push=function(t,e){return G(this,t,e,!1)},H.prototype.unshift=function(t,e){return G(this,t,e,!0)},H.prototype.isPaused=function(){const t=this._readableState;return!0===t[C]||!1===t.flowing},H.prototype.setEncoding=function(t){const e=new N(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const t of r)n+=e.write(t);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function q(t,e){return t<=0||0===e.length&&e.ended?0:1&e.state?1:o(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}function Y(t){const e=t._readableState;S("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(S("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(K,t))}function K(t){const e=t._readableState;S("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||e.errored||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,et(t)}function Z(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,n.nextTick(J,t,e))}function J(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){const r=e.length;if(S("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function Q(t){const e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!1===e[C]?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function X(t){S("readable nexttick read 0"),t.read(0)}function tt(t,e){S("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),et(t),e.flowing&&!e.reading&&t.read(0)}function et(t){const e=t._readableState;for(S("flow",e.flowing);e.flowing&&null!==t.read(););}function rt(t,e){"function"!=typeof t.read&&(t=H.wrap(t,{objectMode:!0}));const r=async function*(t,e){let r,n=F;function i(e){this===t?(n(),n=F):n=e}t.on("readable",i);const s=v(t,{writable:!1},(t=>{r=t?O(r,t):null,n(),n=F}));try{for(;;){const e=t.destroyed?null:t.read();if(null!==e)yield e;else{if(r)throw r;if(null===r)return;await new c(i)}}}catch(t){throw r=O(r,t),r}finally{!r&&!1===(null==e?void 0:e.destroyOnReturn)||void 0!==r&&!t._readableState.autoDestroy?(t.off("readable",i),s()):x.destroyer(t,null)}}(t,e);return r.stream=t,r}function nt(t,e){if(0===e.length)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function it(t){const e=t._readableState;S("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(st,e,t))}function st(t,e){if(S("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&0===t.length)if(t.endEmitted=!0,e.emit("end"),e.writable&&!1===e.allowHalfOpen)n.nextTick(ot,e);else if(t.autoDestroy){const t=e._writableState;(!t||t.autoDestroy&&(t.finished||!1===t.writable))&&e.destroy()}}function ot(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}let at;function lt(){return void 0===at&&(at={}),at}H.prototype.read=function(t){S("read",t),void 0===t?t=NaN:s(t)||(t=a(t,10));const e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=function(t){if(t>1073741824)throw new M("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,++t}(t)),0!==t&&(e.state&=-129),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return S("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?it(this):Y(this),null;if(0===(t=q(t,e))&&e.ended)return 0===e.length&&it(this),null;let n,i=!!(64&e.state);if(S("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,S("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),e.state|=40,0===e.length&&(e.state|=64);try{this._read(e.highWaterMark)}catch(t){$(this,t)}e.state&=-33,e.reading||(t=q(r,e))}return n=t>0?nt(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&it(this)),null===n||e.errorEmitted||e.closeEmitted||(e.dataEmitted=!0,this.emit("data",n)),n},H.prototype._read=function(t){throw new k("_read()")},H.prototype.pipe=function(t,e){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),S("pipe count=%d opts=%j",i.pipes.length,e);const s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?a:b;function o(e,n){S("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),l&&t.removeListener("drain",l);t.removeListener("error",f),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}())}function a(){S("onend"),t.end()}let l;i.endEmitted?n.nextTick(s):r.once("end",s),t.on("unpipe",o);let u=!1;function h(){u||(1===i.pipes.length&&i.pipes[0]===t?(S("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=function(t,e){return function(){const r=t._readableState;r.awaitDrainWriters===e?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!t.listenerCount("data")||t.resume()}}(r,t),t.on("drain",l))}function c(e){S("ondata");const r=t.write(e);S("dest.write",r),!1===r&&h()}function f(e){if(S("onerror",e),b(),t.removeListener("error",f),0===t.listenerCount("error")){const r=t._writableState||t._readableState;r&&!r.errorEmitted?$(t,e):t.emit("error",e)}}function p(){t.removeListener("finish",g),b()}function g(){S("onfinish"),t.removeListener("close",p),b()}function b(){S("unpipe"),r.unpipe(t)}return r.on("data",c),y(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",r),!0===t.writableNeedDrain?h():i.flowing||(S("pipe resume"),r.resume()),t},H.prototype.unpipe=function(t){const e=this._readableState;if(0===e.pipes.length)return this;if(!t){const t=e.pipes;e.pipes=[],this.pause();for(let e=0;e<t.length;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(e.pipes,t);return-1===r||(e.pipes.splice(r,1),0===e.pipes.length&&this.pause(),t.emit("unpipe",this,{hasUnpiped:!1})),this},H.prototype.on=function(t,e){const r=m.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Y(this):i.reading||n.nextTick(X,this))),r},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(t,e){const r=m.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(Q,this),r},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(t){const e=m.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(Q,this),e},H.prototype.resume=function(){const t=this._readableState;return t.flowing||(S("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(tt,t,e))}(this,t)),t[C]=!1,this},H.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[C]=!0,this},H.prototype.wrap=function(t){let e=!1;t.on("data",(r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())})),t.on("end",(()=>{this.push(null)})),t.on("error",(t=>{$(this,t)})),t.on("close",(()=>{this.destroy()})),t.on("destroy",(()=>{this.destroy()})),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};const r=u(t);for(let e=1;e<r.length;e++){const n=r[e];void 0===this[n]&&"function"==typeof t[n]&&(this[n]=t[n].bind(t))}return this},H.prototype[p]=function(){return rt(this)},H.prototype.iterator=function(t){return void 0!==t&&D(t,"options"),rt(this,t)},l(H.prototype,{readable:{__proto__:null,get(){const t=this._readableState;return!(!t||!1===t.readable||t.destroyed||t.errorEmitted||t.endEmitted)},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(z.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[C]},set(t){this[C]=!!t}}}),H._fromList=nt,H.from=function(t,e){return j(H,t,e)},H.fromWeb=function(t,e){return lt().newStreamReadableFromReadableStream(t,e)},H.toWeb=function(t,e){return lt().newReadableStreamFromStreamReadable(t,e)},H.wrap=function(t,e){var r,n;return new H({objectMode:null===(r=null!==(n=t.readableObjectMode)&&void 0!==n?n:t.objectMode)||void 0===r||r,...e,destroy(e,r){x.destroyer(t,e),r(e)}}).wrap(t)}},1859(t,e,r){"use strict";const{MathFloor:n,NumberIsInteger:i}=r(7518),{validateInteger:s}=r(9453),{ERR_INVALID_ARG_VALUE:o}=r(4251).codes;let a=16384,l=16;function u(t){return t?l:a}t.exports={getHighWaterMark:function(t,e,r,s){const a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,s,r);if(null!=a){if(!i(a)||a<0){throw new o(s?`options.${r}`:"options.highWaterMark",a)}return n(a)}return u(t.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(t,e){s(e,"value",0),t?l=e:a=e}}},9710(t,e,r){"use strict";const{ObjectSetPrototypeOf:n,Symbol:i}=r(7518);t.exports=u;const{ERR_METHOD_NOT_IMPLEMENTED:s}=r(4251).codes,o=r(7074),{getHighWaterMark:a}=r(1859);n(u.prototype,o.prototype),n(u,o);const l=i("kCallback");function u(t){if(!(this instanceof u))return new u(t);const e=t?a(this,t,"readableHighWaterMark",!0):null;0===e&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),o.call(this,t),this._readableState.sync=!1,this[l]=null,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function h(t){"function"!=typeof this._flush||this.destroyed?(this.push(null),t&&t()):this._flush(((e,r)=>{e?t?t(e):this.destroy(e):(null!=r&&this.push(r),this.push(null),t&&t())}))}function c(){this._final!==h&&h.call(this)}u.prototype._final=h,u.prototype._transform=function(t,e,r){throw new s("_transform()")},u.prototype._write=function(t,e,r){const n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,((t,e)=>{t?r(t):(null!=e&&this.push(e),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},u.prototype._read=function(){if(this[l]){const t=this[l];this[l]=null,t()}}},4331(t,e,r){"use strict";const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r(7518),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),u=s("nodejs.stream.writable"),h=s("nodejs.stream.disturbed"),c=s("nodejs.webstream.isClosedPromise"),d=s("nodejs.webstream.controllerErrorFunction");function f(t,e=!1){var r;return!(!t||"function"!=typeof t.pipe||"function"!=typeof t.on||e&&("function"!=typeof t.pause||"function"!=typeof t.resume)||t._writableState&&!1===(null===(r=t._readableState)||void 0===r?void 0:r.readable)||t._writableState&&!t._readableState)}function p(t){var e;return!(!t||"function"!=typeof t.write||"function"!=typeof t.on||t._readableState&&!1===(null===(e=t._writableState)||void 0===e?void 0:e.writable))}function g(t){return t&&(t._readableState||t._writableState||"function"==typeof t.write&&"function"==typeof t.on||"function"==typeof t.pipe&&"function"==typeof t.on)}function b(t){return!(!t||g(t)||"function"!=typeof t.pipeThrough||"function"!=typeof t.getReader||"function"!=typeof t.cancel)}function m(t){return!(!t||g(t)||"function"!=typeof t.getWriter||"function"!=typeof t.abort)}function y(t){return!(!t||g(t)||"object"!=typeof t.readable||"object"!=typeof t.writable)}function w(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[o]||null!=n&&n.destroyed)}function _(t){if(!p(t))return null;if(!0===t.writableEnded)return!0;const e=t._writableState;return(null==e||!e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)}function v(t,e){if(!f(t))return null;const r=t._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===e&&!0===r.ended&&0===r.length))}function S(t){return t&&null!=t[l]?t[l]:"boolean"!=typeof(null==t?void 0:t.readable)?null:!w(t)&&(f(t)&&t.readable&&!v(t))}function E(t){return t&&null!=t[u]?t[u]:"boolean"!=typeof(null==t?void 0:t.writable)?null:!w(t)&&(p(t)&&t.writable&&!_(t))}function x(t){return"boolean"==typeof t._closed&&"boolean"==typeof t._defaultKeepAlive&&"boolean"==typeof t._removedConnection&&"boolean"==typeof t._removedContLen}function A(t){return"boolean"==typeof t._sent100&&x(t)}t.exports={isDestroyed:w,kIsDestroyed:o,isDisturbed:function(t){var e;return!(!t||!(null!==(e=t[h])&&void 0!==e?e:t.readableDidRead||t.readableAborted))},kIsDisturbed:h,isErrored:function(t){var e,r,n,i,s,o,l,u,h,c;return!(!t||!(null!==(e=null!==(r=null!==(n=null!==(i=null!==(s=null!==(o=t[a])&&void 0!==o?o:t.readableErrored)&&void 0!==s?s:t.writableErrored)&&void 0!==i?i:null===(l=t._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=t._writableState)||void 0===u?void 0:u.errorEmitted)&&void 0!==r?r:null===(h=t._readableState)||void 0===h?void 0:h.errored)&&void 0!==e?e:null===(c=t._writableState)||void 0===c?void 0:c.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:d,kIsWritable:u,isClosed:function(t){if(!g(t))return null;if("boolean"==typeof t.closed)return t.closed;const e=t._writableState,r=t._readableState;return"boolean"==typeof(null==e?void 0:e.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==e?void 0:e.closed)||(null==r?void 0:r.closed):"boolean"==typeof t._closed&&x(t)?t._closed:null},isDuplexNodeStream:function(t){return!(!t||"function"!=typeof t.pipe||!t._readableState||"function"!=typeof t.on||"function"!=typeof t.write)},isFinished:function(t,e){return g(t)?!!w(t)||(!1===(null==e?void 0:e.readable)||!S(t))&&(!1===(null==e?void 0:e.writable)||!E(t)):null},isIterable:function(t,e){return null!=t&&(!0===e?"function"==typeof t[n]:!1===e?"function"==typeof t[i]:"function"==typeof t[n]||"function"==typeof t[i])},isReadableNodeStream:f,isReadableStream:b,isReadableEnded:function(t){if(!f(t))return null;if(!0===t.readableEnded)return!0;const e=t._readableState;return!(!e||e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)},isReadableFinished:v,isReadableErrored:function(t){var e,r;return g(t)?t.readableErrored?t.readableErrored:null!==(e=null===(r=t._readableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isNodeStream:g,isWebStream:function(t){return b(t)||m(t)||y(t)},isWritable:E,isWritableNodeStream:p,isWritableStream:m,isWritableEnded:_,isWritableFinished:function(t,e){if(!p(t))return null;if(!0===t.writableFinished)return!0;const r=t._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===e&&!0===r.ended&&0===r.length))},isWritableErrored:function(t){var e,r;return g(t)?t.writableErrored?t.writableErrored:null!==(e=null===(r=t._writableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isServerRequest:function(t){var e;return"boolean"==typeof t._consuming&&"boolean"==typeof t._dumped&&void 0===(null===(e=t.req)||void 0===e?void 0:e.upgradeOrConnect)},isServerResponse:A,willEmitClose:function(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&A(t)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:y}},4144(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeSlice:i,Error:s,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:h,Symbol:c,SymbolHasInstance:d}=r(7518);t.exports=D,D.WritableState=I;const{EventEmitter:f}=r(4434),p=r(8091).Stream,{Buffer:g}=r(181),b=r(4016),{addAbortSignal:m}=r(3835),{getHighWaterMark:y,getDefaultHighWaterMark:w}=r(1859),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:T}=r(4251).codes,{errorOrDestroy:k}=b;function M(){}u(D.prototype,p.prototype),u(D,p);const P=c("kOnFinished");function I(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7074)),this.objectMode=!(!t||!t.objectMode),n&&(this.objectMode=this.objectMode||!(!t||!t.writableObjectMode)),this.highWaterMark=t?y(this,t,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!t||!1!==t.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||!1!==t.emitClose,this.autoDestroy=!t||!1!==t.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function L(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}function D(t){const e=this instanceof r(7074);if(!e&&!o(D,this))return new D(t);this._writableState=new I(t,this,e),t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&m(t.signal,this)),p.call(this,t),b.construct(this,(()=>{const t=this._writableState;t.writing||U(this,t),G(this,t)}))}function C(t,e,r,i){const s=t._writableState;if("function"==typeof r)i=r,r=s.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new T(r)}else r=s.defaultEncoding;"function"!=typeof i&&(i=M)}if(null===e)throw new R;if(!s.objectMode)if("string"==typeof e)!1!==s.decodeStrings&&(e=g.from(e,r),r="buffer");else if(e instanceof g)r="buffer";else{if(!p._isUint8Array(e))throw new _("chunk",["string","Buffer","Uint8Array"],e);e=p._uint8ArrayToBuffer(e),r="buffer"}let o;return s.ending?o=new O:s.destroyed&&(o=new x("write")),o?(n.nextTick(i,o),k(t,o,!0),o):(s.pendingcb++,function(t,e,r,n,i){const s=e.objectMode?1:r.length;e.length+=s;const o=e.length<e.highWaterMark;o||(e.needDrain=!0);e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:n,callback:i}),e.allBuffers&&"buffer"!==n&&(e.allBuffers=!1),e.allNoop&&i!==M&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(r,n,e.onwrite),e.sync=!1);return o&&!e.errored&&!e.destroyed}(t,s,e,r,i))}function N(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function j(t,e,r,n){--e.pendingcb,n(r),B(e),k(t,r)}function F(t,e){const r=t._writableState,i=r.sync,s=r.writecb;"function"==typeof s?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?n.nextTick(j,t,r,e,s):j(t,r,e,s)):(r.buffered.length>r.bufferedIndex&&U(t,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:t,state:r},n.nextTick($,r.afterWriteTickInfo)):W(t,r,1,s))):k(t,new S)}function $({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,W(t,e,r,n)}function W(t,e,r,n){for(!e.ending&&!t.destroyed&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&B(e),G(t,e)}function B(t){if(t.writing)return;for(let r=t.bufferedIndex;r<t.buffered.length;++r){var e;const{chunk:n,callback:i}=t.buffered[r],s=t.objectMode?1:n.length;t.length-=s,i(null!==(e=t.errored)&&void 0!==e?e:new x("write"))}const r=t[P].splice(0);for(let e=0;e<r.length;e++){var n;r[e](null!==(n=t.errored)&&void 0!==n?n:new x("end"))}L(t)}function U(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:s}=e,o=r.length-n;if(!o)return;let a=n;if(e.bufferProcessing=!0,o>1&&t._writev){e.pendingcb-=o-1;const n=e.allNoop?M:t=>{for(let e=a;e<r.length;++e)r[e].callback(t)},s=e.allNoop&&0===a?r:i(r,a);s.allBuffers=e.allBuffers,N(t,e,!0,e.length,s,"",n),L(e)}else{do{const{chunk:n,encoding:i,callback:o}=r[a];r[a++]=null;N(t,e,!1,s?1:n.length,n,i,o)}while(a<r.length&&!e.writing);a===r.length?L(e):a>256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}function z(t){return t.ending&&!t.destroyed&&t.constructed&&0===t.length&&!t.errored&&0===t.buffered.length&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function H(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.finalCalled=!0,function(t,e){let r=!1;function i(i){if(r)k(t,null!=i?i:S());else if(r=!0,e.pendingcb--,i){const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t](i);k(t,i,e.sync)}else z(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,n.nextTick(V,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(t){i(t)}e.sync=!1}(t,e)))}function G(t,e,r){z(e)&&(H(t,e),0===e.pendingcb&&(r?(e.pendingcb++,n.nextTick(((t,e)=>{z(e)?V(t,e):e.pendingcb--}),t,e)):z(e)&&(e.pendingcb++,V(t,e))))}function V(t,e){e.pendingcb--,e.finished=!0;const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t]();if(t.emit("finish"),e.autoDestroy){const e=t._readableState;(!e||e.autoDestroy&&(e.endEmitted||!1===e.readable))&&t.destroy()}}I.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(D,d,{__proto__:null,value:function(t){return!!o(this,t)||this===D&&(t&&t._writableState instanceof I)}}),D.prototype.pipe=function(){k(this,new E)},D.prototype.write=function(t,e,r){return!0===C(this,t,e,r)},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){const t=this._writableState;t.corked&&(t.corked--,t.writing||U(this,t))},D.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=h(t)),!g.isEncoding(t))throw new T(t);return this._writableState.defaultEncoding=t,this},D.prototype._write=function(t,e,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:t,encoding:e}],r)},D.prototype._writev=null,D.prototype.end=function(t,e,r){const i=this._writableState;let o;if("function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t){const r=C(this,t,e);r instanceof s&&(o=r)}return i.corked&&(i.corked=1,this.uncork()),o||(i.errored||i.ending?i.finished?o=new A("end"):i.destroyed&&(o=new x("end")):(i.ending=!0,G(this,i,!0),i.ended=!0)),"function"==typeof r&&(o||i.finished?n.nextTick(r,o):i[P].push(r)),this},l(D.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){const t=this._writableState;return!(!t||!1===t.writable||t.destroyed||t.errored||t.ending||t.ended)},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const t=this._writableState;return!!t&&(!t.destroyed&&!t.ending&&t.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=b.destroy;let Y;function K(){return void 0===Y&&(Y={}),Y}D.prototype.destroy=function(t,e){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&n.nextTick(B,r),q.call(this,t,e),this},D.prototype._undestroy=b.undestroy,D.prototype._destroy=function(t,e){e(t)},D.prototype[f.captureRejectionSymbol]=function(t){this.destroy(t)},D.fromWeb=function(t,e){return K().newStreamWritableFromWritableStream(t,e)},D.toWeb=function(t){return K().newWritableStreamFromStreamWritable(t)}},9453(t,e,r){"use strict";const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:h,NumberParseInt:c,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:g,StringPrototypeTrim:b}=r(7518),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(4251),{normalizeEncoding:E}=r(248),{isAsyncFunction:x,isArrayBufferView:A}=r(248).types,R={};const O=/^[0-7]+$/;const T=m(((t,e,r=h,n=u)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),k=m(((t,e,r=-2147483648,n=2147483647)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),M=m(((t,e,r=!1)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);const n=r?1:0,i=4294967295;if(t<n||t>i)throw new v(e,`>= ${n} && <= ${i}`,t)}));function P(t,e){if("string"!=typeof t)throw new w(e,"string",t)}const I=m(((t,e,r)=>{if(!i(r,t)){const n=s(o(r,(t=>"string"==typeof t?`'${t}'`:p(t))),", ");throw new _(e,t,"must be one of: "+n)}}));function L(t,e){if("boolean"!=typeof t)throw new w(e,"boolean",t)}function D(t,e,r){return null!=t&&d(t,e)?t[e]:r}const C=m(((t,e,r=null)=>{const i=D(r,"allowArray",!1),s=D(r,"allowFunction",!1);if(!D(r,"nullable",!1)&&null===t||!i&&n(t)||"object"!=typeof t&&(!s||"function"!=typeof t))throw new w(e,"Object",t)})),N=m(((t,e)=>{if(null!=t&&"object"!=typeof t&&"function"!=typeof t)throw new w(e,"a dictionary",t)})),j=m(((t,e,r=0)=>{if(!n(t))throw new w(e,"Array",t);if(t.length<r){throw new _(e,t,`must be longer than ${r}`)}}));const F=m(((t,e="buffer")=>{if(!A(t))throw new w(e,["Buffer","TypedArray","DataView"],t)}));const $=m(((t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new w(e,"AbortSignal",t)})),W=m(((t,e)=>{if("function"!=typeof t)throw new w(e,"Function",t)})),B=m(((t,e)=>{if("function"!=typeof t||x(t))throw new w(e,"Function",t)})),U=m(((t,e)=>{if(void 0!==t)throw new w(e,"undefined",t)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function H(t,e){if(void 0===t||!f(z,t))throw new _(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:function(t){return t===(0|t)},isUint32:function(t){return t===t>>>0},parseFileMode:function(t,e,r){if(void 0===t&&(t=r),"string"==typeof t){if(null===f(O,t))throw new _(e,t,"must be a 32-bit unsigned integer or an octal string");t=c(t,8)}return M(t,e),t},validateArray:j,validateStringArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)P(t[r],`${e}[${r}]`)},validateBooleanArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)L(t[r],`${e}[${r}]`)},validateAbortSignalArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++){const n=t[r],i=`${e}[${r}]`;if(null==n)throw new w(i,"AbortSignal",n);$(n,i)}},validateBoolean:L,validateBuffer:F,validateDictionary:N,validateEncoding:function(t,e){const r=E(e),n=t.length;if("hex"===r&&n%2!=0)throw new _("encoding",e,`is invalid for data of length ${n}`)},validateFunction:W,validateInt32:k,validateInteger:T,validateNumber:function(t,e,r=void 0,n){if("number"!=typeof t)throw new w(e,"number",t);if(null!=r&&t<r||null!=n&&t>n||(null!=r||null!=n)&&l(t))throw new v(e,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,t)},validateObject:C,validateOneOf:I,validatePlainFunction:B,validatePort:function(t,e="Port",r=!0){if("number"!=typeof t&&"string"!=typeof t||"string"==typeof t&&0===b(t).length||+t!=+t>>>0||t>65535||0===t&&!r)throw new y(e,t,r);return 0|t},validateSignalName:function(t,e="signal"){if(P(t,e),void 0===R[t]){if(void 0!==R[g(t)])throw new S(t+" (signals must use all capital letters)");throw new S(t)}},validateString:P,validateUint32:M,validateUndefined:U,validateUnion:function(t,e,r){if(!i(r,t))throw new w(e,`('${s(r,"|")}')`,t)},validateAbortSignal:$,validateLinkHeaderValue:function(t){if("string"==typeof t)return H(t,"hints"),t;if(n(t)){const e=t.length;let r="";if(0===e)return r;for(let n=0;n<e;n++){const i=t[n];H(i,"hints"),r+=i,n!==e-1&&(r+=", ")}return r}throw new _("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},4251(t,e,r){"use strict";const{format:n,inspect:i}=r(9751),{AggregateError:s}=r(7518),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,h={};function c(t,e){if(!t)throw new h.ERR_INTERNAL_ASSERTION(e)}function d(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function f(t,e,r){r||(r=Error);class i extends r{constructor(...r){super(function(t,e,r){if("function"==typeof e)return c(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const i=(e.match(/%[dfijoOs]/g)||[]).length;return c(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?e:n(e,...r)}(t,e,r))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[a]=!0,h[t]=i}function p(t){const e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t}class g extends Error{constructor(t="The operation was aborted",e=void 0){if(void 0!==e&&"object"!=typeof e)throw new h.ERR_INVALID_ARG_TYPE("options","Object",e);super(t,e),this.code="ABORT_ERR",this.name="AbortError"}}f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",((t,e,r)=>{c("string"==typeof t,"'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const s=[],o=[],a=[];for(const t of e)c("string"==typeof t,"All expected entries have to be of type string"),l.includes(t)?s.push(t.toLowerCase()):u.test(t)?o.push(t):(c("object"!==t,'The value "object" should be written as "Object"'),a.push(t));if(o.length>0){const t=s.indexOf("object");-1!==t&&(s.splice(s,t,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{const t=s.pop();n+=`one of type ${s.join(", ")}, or ${t}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const t=o.pop();n+=`an instance of ${o.join(", ")}, or ${t}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const t=a.pop();n+=`one of ${a.join(", ")}, or ${t}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var h;if(null!==(h=r.constructor)&&void 0!==h&&h.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let t=i(r,{colors:!1});t.length>25&&(t=`${t.slice(0,25)}...`),n+=`. Received type ${typeof r} (${t})`}return n}),TypeError),f("ERR_INVALID_ARG_VALUE",((t,e,r="is invalid")=>{let n=i(e);n.length>128&&(n=n.slice(0,128)+"...");return`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`}),TypeError),f("ERR_INVALID_RETURN_VALUE",((t,e,r)=>{var n;return`Expected ${t} to be returned from the "${e}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),f("ERR_MISSING_ARGS",((...t)=>{let e;c(t.length>0,"At least one arg needs to be specified");const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map((t=>`"${t}"`)).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}}return`${e} must be specified`}),TypeError),f("ERR_OUT_OF_RANGE",((t,e,r)=>{let n;if(c(e,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32)n=d(String(r));else if("bigint"==typeof r){n=String(r);const t=BigInt(2)**BigInt(32);(r>t||r<-t)&&(n=d(n)),n+="n"}else n=i(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${n}`}),RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:g,aggregateTwoErrors:p((function(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new o([e,t],e.message);return r.code=e.code,r}return t||e})),hideStackFrames:p,codes:h}},4614(t,e,r){"use strict";const n=r(2203);if(n&&"disable"===process.env.READABLE_STREAM){const e=n.promises;t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>e}),t.exports.Stream=n.Stream}else{const e=r(2618),n=r(6463),i=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=i,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get:()=>n}),t.exports.Stream=e.Stream}t.exports.default=t.exports},7518(t){"use strict";class e extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError("Expected input to be an Array, got "+typeof t);let e="";for(let r=0;r<t.length;r++)e+=` ${t[r].stack}\n`;super(e),this.name="AggregateError",this.errors=t}}t.exports={AggregateError:e,ArrayIsArray:t=>Array.isArray(t),ArrayPrototypeIncludes:(t,e)=>t.includes(e),ArrayPrototypeIndexOf:(t,e)=>t.indexOf(e),ArrayPrototypeJoin:(t,e)=>t.join(e),ArrayPrototypeMap:(t,e)=>t.map(e),ArrayPrototypePop:(t,e)=>t.pop(e),ArrayPrototypePush:(t,e)=>t.push(e),ArrayPrototypeSlice:(t,e,r)=>t.slice(e,r),Error,FunctionPrototypeCall:(t,e,...r)=>t.call(e,...r),FunctionPrototypeSymbolHasInstance:(t,e)=>Function.prototype[Symbol.hasInstance].call(t,e),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(t,e)=>Object.defineProperties(t,e),ObjectDefineProperty:(t,e,r)=>Object.defineProperty(t,e,r),ObjectGetOwnPropertyDescriptor:(t,e)=>Object.getOwnPropertyDescriptor(t,e),ObjectKeys:t=>Object.keys(t),ObjectSetPrototypeOf:(t,e)=>Object.setPrototypeOf(t,e),Promise,PromisePrototypeCatch:(t,e)=>t.catch(e),PromisePrototypeThen:(t,e,r)=>t.then(e,r),PromiseReject:t=>Promise.reject(t),PromiseResolve:t=>Promise.resolve(t),ReflectApply:Reflect.apply,RegExpPrototypeTest:(t,e)=>t.test(e),SafeSet:Set,String,StringPrototypeSlice:(t,e,r)=>t.slice(e,r),StringPrototypeToLowerCase:t=>t.toLowerCase(),StringPrototypeToUpperCase:t=>t.toUpperCase(),StringPrototypeTrim:t=>t.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(t,e,r)=>t.set(e,r),Boolean,Uint8Array}},248(t,e,r){"use strict";const n=r(181),{format:i,inspect:s}=r(9751),{codes:{ERR_INVALID_ARG_TYPE:o}}=r(4251),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:u}=r(7518),h=globalThis.AbortSignal||r(6584).AbortSignal,c=globalThis.AbortController||r(6584).AbortController,d=Object.getPrototypeOf((async function(){})).constructor,f=globalThis.Blob||n.Blob,p=void 0!==f?function(t){return t instanceof f}:function(t){return!1},g=(t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new o(e,"AbortSignal",t)};t.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise(((r,n)=>{t=r,e=n})),resolve:t,reject:e}},promisify:t=>new Promise(((e,r)=>{t(((t,...n)=>t?r(t):e(...n)))})),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:t=>t instanceof d,isArrayBufferView:t=>ArrayBuffer.isView(t)},isBlob:p,deprecate:(t,e)=>t,addAbortListener:r(4434).addAbortListener||function(t,e){if(void 0===t)throw new o("signal","AbortSignal",t);let r;return g(t,"signal"),((t,e)=>{if("function"!=typeof t)throw new o(e,"Function",t)})(e,"listener"),t.aborted?queueMicrotask((()=>e())):(t.addEventListener("abort",e,{__proto__:null,once:!0,[a]:!0}),r=()=>{t.removeEventListener("abort",e)}),{__proto__:null,[u](){var t;null===(t=r)||void 0===t||t()}}},AbortSignalAny:h.any||function(t){if(1===t.length)return t[0];const e=new c,r=()=>e.abort();return t.forEach((t=>{g(t,"signals"),t.addEventListener("abort",r,{once:!0})})),e.signal.addEventListener("abort",(()=>{t.forEach((t=>t.removeEventListener("abort",r)))}),{once:!0}),e.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},9751(t){"use strict";t.exports={format:(t,...e)=>t.replace(/%([sdifj])/g,(function(...[t,r]){const n=e.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(t){switch(typeof t){case"string":if(t.includes("'")){if(!t.includes('"'))return`"${t}"`;if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}},2618(t,e,r){"use strict";const{Buffer:n}=r(181),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r(7518),{promisify:{custom:a}}=r(248),{streamReturningOperators:l,promiseReturningOperators:u}=r(5551),{codes:{ERR_ILLEGAL_CONSTRUCTOR:h}}=r(4251),c=r(3262),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:f}=r(1859),{pipeline:p}=r(2502),{destroyer:g}=r(4016),b=r(4742),m=r(6463),y=r(4331),w=t.exports=r(8091).Stream;w.isDestroyed=y.isDestroyed,w.isDisturbed=y.isDisturbed,w.isErrored=y.isErrored,w.isReadable=y.isReadable,w.isWritable=y.isWritable,w.Readable=r(9088);for(const v of s(l)){const S=l[v];function E(...t){if(new.target)throw h();return w.Readable.from(o(S,this,t))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(w.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of s(u)){const A=u[x];function R(...t){if(new.target)throw h();return o(A,this,t)}i(R,"name",{__proto__:null,value:A.name}),i(R,"length",{__proto__:null,value:A.length}),i(w.Readable.prototype,x,{__proto__:null,value:R,enumerable:!1,configurable:!0,writable:!0})}w.Writable=r(4144),w.Duplex=r(7074),w.Transform=r(9710),w.PassThrough=r(4183),w.pipeline=p;const{addAbortSignal:_}=r(3835);w.addAbortSignal=_,w.finished=b,w.destroy=g,w.compose=c,w.setDefaultHighWaterMark=d,w.getDefaultHighWaterMark=f,i(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>m}),i(p,a,{__proto__:null,enumerable:!0,get:()=>m.pipeline}),i(b,a,{__proto__:null,enumerable:!0,get:()=>m.finished}),w.Stream=w,w._isUint8Array=function(t){return t instanceof Uint8Array},w._uint8ArrayToBuffer=function(t){return n.from(t.buffer,t.byteOffset,t.byteLength)}},6463(t,e,r){"use strict";const{ArrayPrototypePop:n,Promise:i}=r(7518),{isIterable:s,isNodeStream:o,isWebStream:a}=r(4331),{pipelineImpl:l}=r(2502),{finished:u}=r(4742);r(2618),t.exports={finished:u,pipeline:function(...t){return new i(((e,r)=>{let i,u;const h=t[t.length-1];if(h&&"object"==typeof h&&!o(h)&&!s(h)&&!a(h)){const e=n(t);i=e.signal,u=e.end}l(t,((t,n)=>{t?r(t):e(n)}),{signal:i,end:u})}))}}},7042(t){function e(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}t.exports={isBuffer:function(t){return Buffer.isBuffer(t)||t instanceof Uint8Array},isEncoding:function(t){return Buffer.isEncoding(t)},alloc:function(t,e,r){return Buffer.alloc(t,e,r)},allocUnsafe:function(t){return Buffer.allocUnsafe(t)},allocUnsafeSlow:function(t){return Buffer.allocUnsafeSlow(t)},byteLength:function(t,e){return Buffer.byteLength(t,e)},compare:function(t,e){return Buffer.compare(t,e)},concat:function(t,e){return Buffer.concat(t,e)},copy:function(t,r,n,i,s){return e(t).copy(r,n,i,s)},equals:function(t,r){return e(t).equals(r)},fill:function(t,r,n,i,s){return e(t).fill(r,n,i,s)},from:function(t,e,r){return Buffer.from(t,e,r)},includes:function(t,r,n,i){return e(t).includes(r,n,i)},indexOf:function(t,r,n,i){return e(t).indexOf(r,n,i)},lastIndexOf:function(t,r,n,i){return e(t).lastIndexOf(r,n,i)},swap16:function(t){return e(t).swap16()},swap32:function(t){return e(t).swap32()},swap64:function(t){return e(t).swap64()},toBuffer:e,toString:function(t,r,n,i){return e(t).toString(r,n,i)},write:function(t,r,n,i,s){return e(t).write(r,n,i,s)},writeDoubleLE:function(t,r,n){return e(t).writeDoubleLE(r,n)},writeFloatLE:function(t,r,n){return e(t).writeFloatLE(r,n)},writeUInt32LE:function(t,r,n){return e(t).writeUInt32LE(r,n)},writeInt32LE:function(t,r,n){return e(t).writeInt32LE(r,n)},readDoubleLE:function(t,r){return e(t).readDoubleLE(r)},readFloatLE:function(t,r){return e(t).readFloatLE(r)},readUInt32LE:function(t,r){return e(t).readUInt32LE(r)},readInt32LE:function(t,r){return e(t).readInt32LE(r)},writeDoubleBE:function(t,r,n){return e(t).writeDoubleBE(r,n)},writeFloatBE:function(t,r,n){return e(t).writeFloatBE(r,n)},writeUInt32BE:function(t,r,n){return e(t).writeUInt32BE(r,n)},writeInt32BE:function(t,r,n){return e(t).writeInt32BE(r,n)},readDoubleBE:function(t,r){return e(t).readDoubleBE(r)},readFloatBE:function(t,r){return e(t).readFloatBE(r)},readUInt32BE:function(t,r){return e(t).readUInt32BE(r)},readInt32BE:function(t,r){return e(t).readInt32BE(r)}}},8505(t){"use strict";function e(t,e,i){t instanceof RegExp&&(t=r(t,i)),e instanceof RegExp&&(e=r(e,i));var s=n(t,e,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+t.length,s[1]),post:i.slice(s[1]+e.length)}}function r(t,e){var r=e.match(t);return r?r[0]:null}function n(t,e,r){var n,i,s,o,a,l=r.indexOf(t),u=r.indexOf(e,l+1),h=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;h>=0&&!a;)h==l?(n.push(h),l=r.indexOf(t,h+1)):1==n.length?a=[n.pop(),u]:((i=n.pop())<s&&(s=i,o=u),u=r.indexOf(e,h+1)),h=l<u&&l>=0?l:u;n.length&&(a=[s,o])}return a}t.exports=e,e.range=n},8928(t,e,r){var n=r(8505);t.exports=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return b(function(t){return t.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(o).split("\\,").join(a).split("\\.").join(l)}(t),!0).map(h)};var i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function u(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function h(t){return t.split(i).join("\\").split(s).join("{").split(o).join("}").split(a).join(",").split(l).join(".")}function c(t){if(!t)return[""];var e=[],r=n("{","}",t);if(!r)return t.split(",");var i=r.pre,s=r.body,o=r.post,a=i.split(",");a[a.length-1]+="{"+s+"}";var l=c(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),e.push.apply(e,a),e}function d(t){return"{"+t+"}"}function f(t){return/^-?0\d/.test(t)}function p(t,e){return t<=e}function g(t,e){return t>=e}function b(t,e){var r=[],i=n("{","}",t);if(!i)return[t];var s=i.pre,a=i.post.length?b(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<a.length;l++){var h=s+"{"+i.body+"}"+a[l];r.push(h)}else{var m,y,w=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),_=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),v=w||_,S=i.body.indexOf(",")>=0;if(!v&&!S)return i.post.match(/,(?!,).*\}/)?b(t=i.pre+"{"+i.body+o+i.post):[t];if(v)m=i.body.split(/\.\./);else if(1===(m=c(i.body)).length&&1===(m=b(m[0],!1).map(d)).length)return a.map((function(t){return i.pre+m[0]+t}));if(v){var E=u(m[0]),x=u(m[1]),A=Math.max(m[0].length,m[1].length),R=3==m.length?Math.abs(u(m[2])):1,O=p;x<E&&(R*=-1,O=g);var T=m.some(f);y=[];for(var k=E;O(k,x);k+=R){var M;if(_)"\\"===(M=String.fromCharCode(k))&&(M="");else if(M=String(k),T){var P=A-M.length;if(P>0){var I=new Array(P+1).join("0");M=k<0?"-"+I+M.slice(1):I+M}}y.push(M)}}else{y=[];for(var L=0;L<m.length;L++)y.push.apply(y,b(m[L],!1))}for(L=0;L<y.length;L++)for(l=0;l<a.length;l++){h=s+y[L]+a[l];(!e||v||h)&&r.push(h)}}return r}},5248(t,e,r){"use strict";const n=r(4083),{stdout:i,stderr:s}=r(7687),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(4058),{isArray:l}=Array,u=["ansi","ansi","ansi256","ansi16m"],h=Object.create(null);class c{constructor(t){return d(t)}}const d=t=>{const e={};return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=i?i.level:0;t.level=void 0===e.level?r:e.level})(e,t),e.template=(...t)=>_(e.template,...t),Object.setPrototypeOf(e,f.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=c,e.template};function f(t){return d(t)}for(const[t,e]of Object.entries(n))h[t]={get(){const r=m(this,b(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};h.visible={get(){const t=m(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of p)h[t]={get(){const{level:e}=this;return function(...r){const i=b(n.color[u[e]][t](...r),n.color.close,this._styler);return m(this,i,this._isEmpty)}}};for(const t of p){h["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const i=b(n.bgColor[u[e]][t](...r),n.bgColor.close,this._styler);return m(this,i,this._isEmpty)}}}}const g=Object.defineProperties((()=>{}),{...h,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),b=(t,e,r)=>{let n,i;return void 0===r?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},m=(t,e,r)=>{const n=(...t)=>l(t[0])&&l(t[0].raw)?y(n,_(n,...t)):y(n,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(n,g),n._generator=t,n._styler=e,n._isEmpty=r,n},y=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(void 0===r)return e;const{openAll:n,closeAll:i}=r;if(-1!==e.indexOf(""))for(;void 0!==r;)e=o(e,r.close,r.open),r=r.parent;const s=e.indexOf("\n");return-1!==s&&(e=a(e,i,n,s)),n+e+i};let w;const _=(t,...e)=>{const[n]=e;if(!l(n)||!l(n.raw))return e.join(" ");const i=e.slice(1),s=[n.raw[0]];for(let t=1;t<n.length;t++)s.push(String(i[t-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[t]));return void 0===w&&(w=r(2991)),w(t,s.join(""))};Object.defineProperties(f.prototype,h);const v=f();v.supportsColor=i,v.stderr=f({level:s?s.level:0}),v.stderr.supportsColor=s,t.exports=v},2991(t){"use strict";const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function o(t){const e="u"===t[0],r="{"===t[1];return e&&!r&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):s.get(t)||t}function a(t,e){const r=[],s=e.trim().split(/\s*,\s*/g);let a;for(const e of s){const s=Number(e);if(Number.isNaN(s)){if(!(a=e.match(n)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(a[2].replace(i,((t,e,r)=>e?o(e):r)))}else r.push(s)}return r}function l(t){r.lastIndex=0;const e=[];let n;for(;null!==(n=r.exec(t));){const t=n[1];if(n[2]){const r=a(t,n[2]);e.push([t].concat(r))}else e.push([t])}return e}function u(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const[t,e]of Object.entries(r))if(Array.isArray(e)){if(!(t in n))throw new Error(`Unknown Chalk style: ${t}`);n=e.length>0?n[t](...e):n[t]}return n}t.exports=(t,r)=>{const n=[],i=[];let s=[];if(r.replace(e,((e,r,a,h,c,d)=>{if(r)s.push(o(r));else if(h){const e=s.join("");s=[],i.push(0===n.length?e:u(t,n)(e)),n.push({inverse:a,styles:l(h)})}else if(c){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(u(t,n)(s.join(""))),s=[],n.pop()}else s.push(d)})),i.push(s.join("")),n.length>0){const t=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(t)}return i.join("")}},4058(t){"use strict";t.exports={stringReplaceAll:(t,e,r)=>{let n=t.indexOf(e);if(-1===n)return t;const i=e.length;let s=0,o="";do{o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s)}while(-1!==n);return o+=t.substr(s),o},stringEncaseCRLFWithFirstIndex:(t,e,r,n)=>{let i=0,s="";do{const o="\r"===t[n-1];s+=t.substr(i,(o?n-1:n)-i)+e+(o?"\r\n":"\n")+r,i=n+1,n=t.indexOf("\n",i)}while(-1!==n);return s+=t.substr(i),s}}},5659(t,e,r){const n=r(8156),i={};for(const t of Object.keys(n))i[n[t]]=t;const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=s;for(const t of Object.keys(s)){if(!("channels"in s[t]))throw new Error("missing channels property: "+t);if(!("labels"in s[t]))throw new Error("missing channel labels property: "+t);if(s[t].labels.length!==s[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=s[t];delete s[t].channels,delete s[t].labels,Object.defineProperty(s[t],"channels",{value:e}),Object.defineProperty(s[t],"labels",{value:r})}s.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i;let a,l;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(60*a,360),a<0&&(a+=360);const u=(i+s)/2;return l=s===i?0:u<=.5?o/(s+i):o/(2-s-i),[a,100*l,100*u]},s.rgb.hsv=function(t){let e,r,n,i,s;const o=t[0]/255,a=t[1]/255,l=t[2]/255,u=Math.max(o,a,l),h=u-Math.min(o,a,l),c=function(t){return(u-t)/6/h+.5};return 0===h?(i=0,s=0):(s=h/u,e=c(o),r=c(a),n=c(l),o===u?i=n-r:a===u?i=1/3+e-n:l===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*s,100*u]},s.rgb.hwb=function(t){const e=t[0],r=t[1];let n=t[2];const i=s.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},s.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n);return[100*((1-e-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},s.rgb.keyword=function(t){const e=i[t];if(e)return e;let r,s=1/0;for(const e of Object.keys(n)){const i=n[e],l=(a=i,((o=t)[0]-a[0])**2+(o[1]-a[1])**2+(o[2]-a[2])**2);l<s&&(s=l,r=e)}var o,a;return r},s.keyword.rgb=function(t){return n[t]},s.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},s.rgb.lab=function(t){const e=s.rgb.xyz(t);let r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(r-n),200*(n-i)]},s.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;let i,s,o;if(0===r)return o=255*n,[o,o,o];i=n<.5?n*(1+r):n+r-n*r;const a=2*n-i,l=[0,0,0];for(let t=0;t<3;t++)s=e+1/3*-(t-1),s<0&&s++,s>1&&s--,o=6*s<1?a+6*(i-a)*s:2*s<1?i:3*s<2?a+(i-a)*(2/3-s)*6:a,l[t]=255*o;return l},s.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,n=t[2]/100,i=r;const s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;return[e,100*(0===n?2*i/(s+i):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let n=t[2]/100;const i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}},s.hsv.hsl=function(t){const e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01);let s,o;o=(2-r)*n;const a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,100*s,100*o]},s.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,n=t[2]/100;const i=r+n;let s;i>1&&(r/=i,n/=i);const o=Math.floor(6*e),a=1-n;s=6*e-o,1&o&&(s=1-s);const l=r+s*(a-r);let u,h,c;switch(o){default:case 6:case 0:u=a,h=l,c=r;break;case 1:u=l,h=a,c=r;break;case 2:u=r,h=a,c=l;break;case 3:u=r,h=l,c=a;break;case 4:u=l,h=r,c=a;break;case 5:u=a,h=r,c=l}return[255*u,255*h,255*c]},s.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},s.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100;let i,s,o;return i=3.2406*e+-1.5372*r+-.4986*n,s=-.9689*e+1.8758*r+.0415*n,o=.0557*e+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*i,255*s,255*o]},s.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(e-r),200*(r-n)]},s.lab.xyz=function(t){let e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;const i=r**3,s=e**3,o=n**3;return r=i>.008856?i:(r-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},s.lab.lch=function(t){const e=t[0],r=t[1],n=t[2];let i;i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360);return[e,Math.sqrt(r*r+n*n),i]},s.lch.lab=function(t){const e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},s.rgb.ansi16=function(t,e=null){const[r,n,i]=t;let o=null===e?s.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(a+=60),a},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.rgb.ansi256=function(t){const e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},s.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},s.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},s.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];3===e[0].length&&(r=r.split("").map((t=>t+t)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s;let a,l;return a=o<1?s/(1-o):0,l=o<=0?0:i===e?(r-n)/o%6:i===r?2+(n-e)/o:4+(e-r)/o,l/=6,l%=1,[360*l,100*o,100*a]},s.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},s.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=e*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},s.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],s=e%1*6,o=s%1,a=1-o;let l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[255*(r*i[0]+l),255*(r*i[1]+l),255*(r*i[2]+l)]},s.hcg.hsv=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);let n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},s.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},s.hcg.hwb=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},s.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,n=r-e;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=function(t){return[0,0,t[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},734(t,e,r){const n=r(5659),i=r(8507),s={};Object.keys(n).forEach((t=>{s[t]={},Object.defineProperty(s[t],"channels",{value:n[t].channels}),Object.defineProperty(s[t],"labels",{value:n[t].labels});const e=i(t);Object.keys(e).forEach((r=>{const n=e[r];s[t][r]=function(t){const e=function(...e){const r=e[0];if(null==r)return r;r.length>1&&(e=r);const n=t(e);if("object"==typeof n)for(let t=n.length,e=0;e<t;e++)n[e]=Math.round(n[e]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(n),s[t][r].raw=function(t){const e=function(...e){const r=e[0];return null==r?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=s},8507(t,e,r){const n=r(5659);function i(t){const e=function(){const t={},e=Object.keys(n);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;){const t=r.pop(),i=Object.keys(n[t]);for(let n=i.length,s=0;s<n;s++){const n=i[s],o=e[n];-1===o.distance&&(o.distance=e[t].distance+1,o.parent=t,r.unshift(n))}}return e}function s(t,e){return function(r){return e(t(r))}}function o(t,e){const r=[e[t].parent,t];let i=n[e[t].parent][t],o=e[t].parent;for(;e[o].parent;)r.unshift(e[o].parent),i=s(n[e[o].parent][o],i),o=e[o].parent;return i.conversion=r,i}t.exports=function(t){const e=i(t),r={},n=Object.keys(e);for(let t=n.length,i=0;i<t;i++){const t=n[i];null!==e[t].parent&&(r[t]=o(t,e))}return r}},8156(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},3543(t){var e=t.exports=function(){};e.prototype.getName=function(){},e.prototype.getSize=function(){},e.prototype.getLastModifiedDate=function(){},e.prototype.isDirectory=function(){}},587(t,e,r){var n=r(9023).inherits,i=r(1232),s=r(1169).Transform,o=r(3543),a=r(8575),l=t.exports=function(t){if(!(this instanceof l))return new l(t);s.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};n(l,s),l.prototype._appendBuffer=function(t,e,r){},l.prototype._appendStream=function(t,e,r){},l.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)},l.prototype._finish=function(t){},l.prototype._normalizeEntry=function(t){},l.prototype._transform=function(t,e,r){r(null,t)},l.prototype.entry=function(t,e,r){if(e=e||null,"function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),t instanceof o)if(this._archive.finish||this._archive.finished)r(new Error("unacceptable entry after finish"));else{if(!this._archive.processing){if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=a.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else{if(!i(e))return this._archive.processing=!1,void r(new Error("input source must be valid Stream or Buffer instance"));this._appendStream(t,e,r)}return this}r(new Error("already processing an entry"))}else r(new Error("not a valid instance of ArchiveEntry"))},l.prototype.finish=function(){this._archive.processing?this._archive.finish=!0:this._finish()},l.prototype.getBytesWritten=function(){return this.offset},l.prototype.write=function(t,e){return t&&(this.offset+=t.length),s.prototype.write.call(this,t,e)}},4909(t){t.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},9933(t,e,r){var n=r(5026),i=t.exports=function(){return this instanceof i?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new i};i.prototype.encode=function(){return n.getShortBytes((this.descriptor?8:0)|(this.utf8?2048:0)|(this.encryption?1:0)|(this.strongEncryption?64:0))},i.prototype.parse=function(t,e){var r=n.getShortBytesValue(t,e),s=new i;return s.useDataDescriptor(!!(8&r)),s.useUTF8ForNames(!!(2048&r)),s.useStrongEncryption(!!(64&r)),s.useEncryption(!!(1&r)),s.setSlidingDictionarySize(2&r?8192:4096),s.setNumberOfShannonFanoTrees(4&r?3:2),s},i.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t},i.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},i.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t},i.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},i.prototype.useDataDescriptor=function(t){this.descriptor=t},i.prototype.usesDataDescriptor=function(){return this.descriptor},i.prototype.useEncryption=function(t){this.encryption=t},i.prototype.usesEncryption=function(){return this.encryption},i.prototype.useStrongEncryption=function(t){this.strongEncryption=t},i.prototype.usesStrongEncryption=function(){return this.strongEncryption},i.prototype.useUTF8ForNames=function(t){this.utf8=t},i.prototype.usesUTF8ForNames=function(){return this.utf8}},6247(t){t.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},5026(t){var e=t.exports={};e.dateToDos=function(t,e){var r=(e=e||!1)?t.getFullYear():t.getUTCFullYear();return r<1980?2162688:r>=2044?2141175677:r-1980<<25|(e?t.getMonth():t.getUTCMonth())+1<<21|(e?t.getDate():t.getUTCDate())<<16|(e?t.getHours():t.getUTCHours())<<11|(e?t.getMinutes():t.getUTCMinutes())<<5|(e?t.getSeconds():t.getUTCSeconds())/2},e.dosToDate=function(t){return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)},e.fromDosTime=function(t){return e.dosToDate(t.readUInt32LE(0))},e.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e},e.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((65535&t)>>>0,0),e},e.getShortBytesValue=function(t,e){return t.readUInt16LE(e)},e.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((4294967295&t)>>>0,0),e},e.getLongBytesValue=function(t,e){return t.readUInt32LE(e)},e.toDosTime=function(t){return e.getLongBytes(e.dateToDos(t))}},7149(t,e,r){var n=r(9023).inherits,i=r(4100),s=r(3543),o=r(9933),a=r(6247),l=r(4909),u=r(5026),h=t.exports=function(t){if(!(this instanceof h))return new h(t);s.call(this),this.platform=l.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new o,this.crc=0,this.time=-1,this.minver=l.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};n(h,s),h.prototype.getCentralDirectoryExtra=function(){return this.getExtra()},h.prototype.getComment=function(){return null!==this.comment?this.comment:""},h.prototype.getCompressedSize=function(){return this.csize},h.prototype.getCrc=function(){return this.crc},h.prototype.getExternalAttributes=function(){return this.exattr},h.prototype.getExtra=function(){return null!==this.extra?this.extra:l.EMPTY},h.prototype.getGeneralPurposeBit=function(){return this.gpb},h.prototype.getInternalAttributes=function(){return this.inattr},h.prototype.getLastModifiedDate=function(){return this.getTime()},h.prototype.getLocalFileDataExtra=function(){return this.getExtra()},h.prototype.getMethod=function(){return this.method},h.prototype.getName=function(){return this.name},h.prototype.getPlatform=function(){return this.platform},h.prototype.getSize=function(){return this.size},h.prototype.getTime=function(){return-1!==this.time?u.dosToDate(this.time):-1},h.prototype.getTimeDos=function(){return-1!==this.time?this.time:0},h.prototype.getUnixMode=function(){return this.platform!==l.PLATFORM_UNIX?0:this.getExternalAttributes()>>l.SHORT_SHIFT&l.SHORT_MASK},h.prototype.getVersionNeededToExtract=function(){return this.minver},h.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t},h.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t},h.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t},h.prototype.setExternalAttributes=function(t){this.exattr=t>>>0},h.prototype.setExtra=function(t){this.extra=t},h.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof o))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t},h.prototype.setInternalAttributes=function(t){this.inattr=t},h.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t},h.prototype.setName=function(t,e=!1){t=i(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t},h.prototype.setPlatform=function(t){this.platform=t},h.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t},h.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=u.dateToDos(t,e)},h.prototype.setUnixMode=function(t){var e=0;e|=(t|=this.isDirectory()?l.S_IFDIR:l.S_IFREG)<<l.SHORT_SHIFT|(this.isDirectory()?l.S_DOS_D:l.S_DOS_A),this.setExternalAttributes(e),this.mode=t&l.MODE_MASK,this.platform=l.PLATFORM_UNIX},h.prototype.setVersionNeededToExtract=function(t){this.minver=t},h.prototype.isDirectory=function(){return"/"===this.getName().slice(-1)},h.prototype.isUnixSymlink=function(){return(this.getUnixMode()&a.FILE_TYPE_FLAG)===a.LINK_FLAG},h.prototype.isZip64=function(){return this.csize>l.ZIP64_MAGIC||this.size>l.ZIP64_MAGIC}},3349(t,e,r){var n=r(9023).inherits,i=r(2566),{CRC32Stream:s}=r(71),{DeflateCRC32Stream:o}=r(71),a=r(587),l=(r(7149),r(9933),r(4909)),u=(r(8575),r(5026)),h=t.exports=function(t){if(!(this instanceof h))return new h(t);t=this.options=this._defaults(t),a.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};n(h,a),h.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},h.prototype._appendBuffer=function(t,e,r){0===e.length&&t.setMethod(l.METHOD_STORED);var n=t.getMethod();return n===l.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(i.buf(e)>>>0)),this._writeLocalFileHeader(t),n===l.METHOD_STORED?(this.write(e),this._afterAppend(t),void r(null,t)):n===l.METHOD_DEFLATED?void this._smartStream(t,r).end(e):void r(new Error("compression method "+n+" not implemented"))},h.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(l.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var n=this._smartStream(t,r);e.once("error",(function(t){n.emit("error",t),n.end()})),e.pipe(n)},h.prototype._defaults=function(t){return"object"!=typeof t&&(t={}),"object"!=typeof t.zlib&&(t.zlib={}),"number"!=typeof t.zlib.level&&(t.zlib.level=l.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t},h.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},h.prototype._normalizeEntry=function(t){-1===t.getMethod()&&t.setMethod(l.METHOD_DEFLATED),t.getMethod()===l.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(l.MIN_VERSION_DATA_DESCRIPTOR)),-1===t.getTime()&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}},h.prototype._smartStream=function(t,e){var r=t.getMethod()===l.METHOD_DEFLATED?new o(this.options.zlib):new s,n=null;return r.once("end",function(){var i=r.digest().readUInt32BE(0);t.setCrc(i),t.setSize(r.size()),t.setCompressedSize(r.size(!0)),this._afterAppend(t),e(n,t)}.bind(this)),r.once("error",(function(t){n=t})),r.pipe(this,{end:!1}),r},h.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=l.ZIP64_MAGIC_SHORT,e=l.ZIP64_MAGIC,r=l.ZIP64_MAGIC),this.write(u.getLongBytes(l.SIG_EOCD)),this.write(l.SHORT_ZERO),this.write(l.SHORT_ZERO),this.write(u.getShortBytes(t)),this.write(u.getShortBytes(t)),this.write(u.getLongBytes(e)),this.write(u.getLongBytes(r));var n=this.getComment(),i=Buffer.byteLength(n);this.write(u.getShortBytes(i)),this.write(n)},h.prototype._writeCentralDirectoryZip64=function(){this.write(u.getLongBytes(l.SIG_ZIP64_EOCD)),this.write(u.getEightBytes(44)),this.write(u.getShortBytes(l.MIN_VERSION_ZIP64)),this.write(u.getShortBytes(l.MIN_VERSION_ZIP64)),this.write(l.LONG_ZERO),this.write(l.LONG_ZERO),this.write(u.getEightBytes(this._entries.length)),this.write(u.getEightBytes(this._entries.length)),this.write(u.getEightBytes(this._archive.centralLength)),this.write(u.getEightBytes(this._archive.centralOffset)),this.write(u.getLongBytes(l.SIG_ZIP64_EOCD_LOC)),this.write(l.LONG_ZERO),this.write(u.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(u.getLongBytes(1))},h.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),n=t._offsets.file,i=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||n>l.ZIP64_MAGIC){i=l.ZIP64_MAGIC,s=l.ZIP64_MAGIC,n=l.ZIP64_MAGIC,t.setVersionNeededToExtract(l.MIN_VERSION_ZIP64);var o=Buffer.concat([u.getShortBytes(l.ZIP64_EXTRA_ID),u.getShortBytes(24),u.getEightBytes(t.getSize()),u.getEightBytes(t.getCompressedSize()),u.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(u.getLongBytes(l.SIG_CFH)),this.write(u.getShortBytes(t.getPlatform()<<8|l.VERSION_MADEBY)),this.write(u.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(u.getShortBytes(r)),this.write(u.getLongBytes(t.getTimeDos())),this.write(u.getLongBytes(t.getCrc())),this.write(u.getLongBytes(s)),this.write(u.getLongBytes(i));var a=t.getName(),h=t.getComment(),c=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),h=Buffer.from(h)),this.write(u.getShortBytes(a.length)),this.write(u.getShortBytes(c.length)),this.write(u.getShortBytes(h.length)),this.write(l.SHORT_ZERO),this.write(u.getShortBytes(t.getInternalAttributes())),this.write(u.getLongBytes(t.getExternalAttributes())),this.write(u.getLongBytes(n)),this.write(a),this.write(c),this.write(h)},h.prototype._writeDataDescriptor=function(t){this.write(u.getLongBytes(l.SIG_DD)),this.write(u.getLongBytes(t.getCrc())),t.isZip64()?(this.write(u.getEightBytes(t.getCompressedSize())),this.write(u.getEightBytes(t.getSize()))):(this.write(u.getLongBytes(t.getCompressedSize())),this.write(u.getLongBytes(t.getSize())))},h.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),n=t.getName(),i=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(l.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(n=Buffer.from(n)),t._offsets.file=this.offset,this.write(u.getLongBytes(l.SIG_LFH)),this.write(u.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(u.getShortBytes(r)),this.write(u.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(l.LONG_ZERO),this.write(l.LONG_ZERO),this.write(l.LONG_ZERO)):(this.write(u.getLongBytes(t.getCrc())),this.write(u.getLongBytes(t.getCompressedSize())),this.write(u.getLongBytes(t.getSize()))),this.write(u.getShortBytes(n.length)),this.write(u.getShortBytes(i.length)),this.write(n),this.write(i),t._offsets.contents=this.offset},h.prototype.getComment=function(t){return null!==this._archive.comment?this._archive.comment:""},h.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>l.ZIP64_MAGIC_SHORT||this._archive.centralLength>l.ZIP64_MAGIC||this._archive.centralOffset>l.ZIP64_MAGIC},h.prototype.setComment=function(t){this._archive.comment=t}},8351(t,e,r){t.exports={ArchiveEntry:r(3543),ZipArchiveEntry:r(7149),ArchiveOutputStream:r(587),ZipArchiveOutputStream:r(3349)}},8575(t,e,r){r(2203).Stream;var n=r(1169).PassThrough,i=r(1232);(t.exports={}).normalizeInputSource=function(t){if(null===t)return Buffer.alloc(0);if("string"==typeof t)return Buffer.from(t);if(i(t)&&!t._readableState){var e=new n;return t.pipe(e),e}return t}},6066(t,e,r){"use strict";const{SymbolDispose:n}=r(5801),{AbortError:i,codes:s}=r(2918),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:l}=r(48),u=r(9661),{ERR_INVALID_ARG_TYPE:h}=s;let c;t.exports.addAbortSignal=function(e,r){if(((t,e)=>{if("object"!=typeof t||!("aborted"in t))throw new h(e,"AbortSignal",t)})(e,"signal"),!o(r)&&!a(r))throw new h("stream",["ReadableStream","WritableStream","Stream"],r);return t.exports.addAbortSignalNoValidate(e,r)},t.exports.addAbortSignalNoValidate=function(t,e){if("object"!=typeof t||!("aborted"in t))return e;const s=o(e)?()=>{e.destroy(new i(void 0,{cause:t.reason}))}:()=>{e[l](new i(void 0,{cause:t.reason}))};if(t.aborted)s();else{c=c||r(4953).addAbortListener;const i=c(t,s);u(e,i[n])}return e}},586(t,e,r){"use strict";const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r(5801),{Buffer:a}=r(181),{inspect:l}=r(4953);t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}unshift(t){const e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}shift(){if(0===this.length)return;const t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(0===this.length)return"";let e=this.head,r=""+e.data;for(;null!==(e=e.next);)r+=t+e.data;return r}concat(t){if(0===this.length)return a.alloc(0);const e=a.allocUnsafe(t>>>0);let r=this.head,n=0;for(;r;)s(e,r.data,n),n+=r.data.length,r=r.next;return e}consume(t,e){const r=this.head.data;if(t<r.length){const e=r.slice(0,t);return this.head.data=r.slice(t),e}return t===r.length?this.shift():e?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[i](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let e="",r=this.head,i=0;do{const s=r.data;if(!(t>s.length)){t===s.length?(e+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(e+=n(s,0,t),this.head=r,r.data=n(s,t));break}e+=s,t-=s.length,++i}while(null!==(r=r.next));return this.length-=i,e}_getBuffer(t){const e=a.allocUnsafe(t),r=t;let n=this.head,i=0;do{const a=n.data;if(!(t>a.length)){t===a.length?(s(e,a,r-t),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(e,new o(a.buffer,a.byteOffset,t),r-t),this.head=n,n.data=a.slice(t));break}s(e,a,r-t),t-=a.length,++i}while(null!==(n=n.next));return this.length-=i,e}[Symbol.for("nodejs.util.inspect.custom")](t,e){return l(this,{...e,depth:0,customInspect:!1})}}},5953(t,e,r){"use strict";const{pipeline:n}=r(4503),i=r(1599),{destroyer:s}=r(8071),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:u,isTransformStream:h,isWritableStream:c,isReadableStream:d}=r(48),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:g}}=r(2918),b=r(9661);t.exports=function(...t){if(0===t.length)throw new g("streams");if(1===t.length)return i.from(t[0]);const e=[...t];if("function"==typeof t[0]&&(t[0]=i.from(t[0])),"function"==typeof t[t.length-1]){const e=t.length-1;t[e]=i.from(t[e])}for(let r=0;r<t.length;++r)if(o(t[r])||u(t[r])){if(r<t.length-1&&!(a(t[r])||d(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be readable");if(r>0&&!(l(t[r])||c(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be writable")}let r,m,y,w,_;const v=t[0],S=n(t,(function(t){const e=w;w=null,e?e(t):t?_.destroy(t):x||E||_.destroy()})),E=!!(l(v)||c(v)||h(v)),x=!!(a(S)||d(S)||h(S));if(_=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(o(v))_._write=function(t,e,n){v.write(t,e)?n():r=n},_._final=function(t){v.end(),m=t},v.on("drain",(function(){if(r){const t=r;r=null,t()}}));else if(u(v)){const t=(h(v)?v.writable:v).getWriter();_._write=async function(e,r,n){try{await t.ready,t.write(e).catch((()=>{})),n()}catch(t){n(t)}},_._final=async function(e){try{await t.ready,t.close().catch((()=>{})),m=e}catch(t){e(t)}}}const t=h(S)?S.readable:S;b(t,(()=>{if(m){const t=m;m=null,t()}}))}if(x)if(o(S))S.on("readable",(function(){if(y){const t=y;y=null,t()}})),S.on("end",(function(){_.push(null)})),_._read=function(){for(;;){const t=S.read();if(null===t)return void(y=_._read);if(!_.push(t))return}};else if(u(S)){const t=(h(S)?S.readable:S).getReader();_._read=async function(){for(;;)try{const{value:e,done:r}=await t.read();if(!_.push(e))return;if(r)return void _.push(null)}catch{return}}}return _._destroy=function(t,e){t||null===w||(t=new f),y=null,r=null,m=null,null===w?e(t):(w=e,o(S)&&s(S,t))},_}},8071(t,e,r){"use strict";const n=r(4422),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r(2918),{Symbol:a}=r(5801),{kIsDestroyed:l,isDestroyed:u,isFinished:h,isServerRequest:c}=r(48),d=a("kDestroy"),f=a("kConstruct");function p(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function g(t,e,r){let i=!1;function s(e){if(i)return;i=!0;const s=t._readableState,o=t._writableState;p(e,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(e),e?n.nextTick(b,t,e):n.nextTick(m,t)}try{t._destroy(e||null,s)}catch(e){s(e)}}function b(t,e){y(t,e),m(t)}function m(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(null!=r&&r.emitClose||null!=e&&e.emitClose)&&t.emit("close")}function y(t,e){const r=t._readableState,n=t._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function w(t,e,r){const i=t._readableState,s=t._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?t.destroy(e):e&&(e.stack,s&&!s.errored&&(s.errored=e),i&&!i.errored&&(i.errored=e),r?n.nextTick(y,t,e):y(t,e))}function _(t){let e=!1;function r(r){if(e)return void w(t,null!=r?r:new s);e=!0;const i=t._readableState,o=t._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?t.emit(d,r):r?w(t,r,!0):n.nextTick(v,t)}try{t._construct((t=>{n.nextTick(r,t)}))}catch(t){n.nextTick(r,t)}}function v(t){t.emit(f)}function S(t){return(null==t?void 0:t.setHeader)&&"function"==typeof t.abort}function E(t){t.emit("close")}function x(t,e){t.emit("error",e),n.nextTick(E,t)}t.exports={construct:function(t,e){if("function"!=typeof t._construct)return;const r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(f,e),t.listenerCount(f)>1||n.nextTick(_,t)},destroyer:function(t,e){t&&!u(t)&&(e||h(t)||(e=new o),c(t)?(t.socket=null,t.destroy(e)):S(t)?t.abort():S(t.req)?t.req.abort():"function"==typeof t.destroy?t.destroy(e):"function"==typeof t.close?t.close():e?n.nextTick(x,t,e):n.nextTick(E,t),t.destroyed||(t[l]=!0))},destroy:function(t,e){const r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof e&&e(),this):(p(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?g(this,t,e):this.once(d,(function(r){g(this,i(r,t),e)})),this)},undestroy:function(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=!1===t.readable,t.endEmitted=!1===t.readable),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=!1===e.writable,e.ending=!1===e.writable,e.finished=!1===e.writable)},errorOrDestroy:w}},1599(t,e,r){"use strict";const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:s,ObjectSetPrototypeOf:o}=r(5801);t.exports=u;const a=r(1117),l=r(8941);o(u.prototype,a.prototype),o(u,a);{const t=s(l.prototype);for(let e=0;e<t.length;e++){const r=t[e];u.prototype[r]||(u.prototype[r]=l.prototype[r])}}function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),l.call(this,t),t?(this.allowHalfOpen=!1!==t.allowHalfOpen,!1===t.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===t.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let h,c;function d(){return void 0===h&&(h={}),h}n(u.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}}),u.fromWeb=function(t,e){return d().newStreamDuplexFromReadableWritablePair(t,e)},u.toWeb=function(t){return d().newReadableWritablePairFromDuplex(t)},u.from=function(t){return c||(c=r(4445)),c(t,"body")}},4445(t,e,r){const n=r(4422),i=r(181),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:u,isWritableNodeStream:h,isDuplexNodeStream:c,isReadableStream:d,isWritableStream:f}=r(48),p=r(9661),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=r(2918),{destroyer:y}=r(8071),w=r(1599),_=r(1117),v=r(8941),{createDeferredPromise:S}=r(4953),E=r(5509),x=globalThis.Blob||i.Blob,A=void 0!==x?function(t){return t instanceof x}:function(t){return!1},R=globalThis.AbortController||r(6584).AbortController,{FunctionPrototypeCall:O}=r(5801);class T extends w{constructor(t){super(t),!1===(null==t?void 0:t.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==t?void 0:t.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function k(t){const e=t.readable&&"function"!=typeof t.readable.read?_.wrap(t.readable):t.readable,r=t.writable;let n,i,a,l,u,h=!!s(e),c=!!o(r);function d(t){const e=l;l=null,e?e(t):t&&u.destroy(t)}return u=new T({readableObjectMode:!(null==e||!e.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:h,writable:c}),c&&(p(r,(t=>{c=!1,t&&y(e,t),d(t)})),u._write=function(t,e,i){r.write(t,e)?i():n=i},u._final=function(t){r.end(),i=t},r.on("drain",(function(){if(n){const t=n;n=null,t()}})),r.on("finish",(function(){if(i){const t=i;i=null,t()}}))),h&&(p(e,(t=>{h=!1,t&&y(e,t),d(t)})),e.on("readable",(function(){if(a){const t=a;a=null,t()}})),e.on("end",(function(){u.push(null)})),u._read=function(){for(;;){const t=e.read();if(null===t)return void(a=u._read);if(!u.push(t))return}}),u._destroy=function(t,s){t||null===l||(t=new g),a=null,n=null,i=null,null===l?s(t):(l=s,y(r,t),y(e,t))},u}t.exports=function t(e,r){if(c(e))return e;if(u(e))return k({readable:e});if(h(e))return k({writable:e});if(l(e))return k({writable:!1,readable:!1});if(d(e))return k({readable:_.fromWeb(e)});if(f(e))return k({writable:v.fromWeb(e)});if("function"==typeof e){const{value:t,write:i,final:s,destroy:o}=function(t){let{promise:e,resolve:r}=S();const i=new R,s=i.signal,o=t(async function*(){for(;;){const t=e;e=null;const{chunk:i,done:o,cb:a}=await t;if(n.nextTick(a),o)return;if(s.aborted)throw new g(void 0,{cause:s.reason});({promise:e,resolve:r}=S()),yield i}}(),{signal:s});return{value:o,write(t,e,n){const i=r;r=null,i({chunk:t,done:!1,cb:n})},final(t){const e=r;r=null,e({done:!0,cb:t})},destroy(t,e){i.abort(),e(t)}}}(e);if(a(t))return E(T,t,{objectMode:!0,write:i,final:s,destroy:o});const l=null==t?void 0:t.then;if("function"==typeof l){let e;const r=O(l,t,(t=>{if(null!=t)throw new m("nully","body",t)}),(t=>{y(e,t)}));return e=new T({objectMode:!0,readable:!1,write:i,final(t){s((async()=>{try{await r,n.nextTick(t,null)}catch(e){n.nextTick(t,e)}}))},destroy:o})}throw new m("Iterable, AsyncIterable or AsyncFunction",r,t)}if(A(e))return t(e.arrayBuffer());if(a(e))return E(T,e,{objectMode:!0,writable:!1});if(d(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return T.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable)){return k({readable:null!=e&&e.readable?u(null==e?void 0:e.readable)?null==e?void 0:e.readable:t(e.readable):void 0,writable:null!=e&&e.writable?h(null==e?void 0:e.writable)?null==e?void 0:e.writable:t(e.writable):void 0})}const i=null==e?void 0:e.then;if("function"==typeof i){let t;return O(i,e,(e=>{null!=e&&t.push(e),t.push(null)}),(e=>{y(t,e)})),t=new T({objectMode:!0,writable:!1,read(){}})}throw new b(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},9661(t,e,r){"use strict";const n=r(4422),{AbortError:i,codes:s}=r(2918),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:l,once:u}=r(4953),{validateAbortSignal:h,validateFunction:c,validateObject:d,validateBoolean:f}=r(6232),{Promise:p,PromisePrototypeThen:g,SymbolDispose:b}=r(5801),{isClosed:m,isReadable:y,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:A,isWritableFinished:R,isWritableErrored:O,isNodeStream:T,willEmitClose:k,kIsClosedPromise:M}=r(48);let P;const I=()=>{};function L(t,e,s){var f,p;if(2===arguments.length?(s=e,e=l):null==e?e=l:d(e,"options"),c(s,"callback"),h(e.signal,"options.signal"),s=u(s),_(t)||A(t))return function(t,e,s){let o=!1,a=I;if(e.signal)if(a=()=>{o=!0,s.call(t,new i(void 0,{cause:e.signal.reason}))},e.signal.aborted)n.nextTick(a);else{P=P||r(4953).addAbortListener;const n=P(e.signal,a),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}const l=(...e)=>{o||n.nextTick((()=>s.apply(t,e)))};return g(t[M].promise,l,l),I}(t,e,s);if(!T(t))throw new o("stream",["ReadableStream","WritableStream","Stream"],t);const L=null!==(f=e.readable)&&void 0!==f?f:w(t),D=null!==(p=e.writable)&&void 0!==p?p:x(t),C=t._writableState,N=t._readableState,j=()=>{t.writable||W()};let F=k(t)&&w(t)===L&&x(t)===D,$=R(t,!1);const W=()=>{$=!0,t.destroyed&&(F=!1),(!F||t.readable&&!L)&&(L&&!B||s.call(t))};let B=v(t,!1);const U=()=>{B=!0,t.destroyed&&(F=!1),(!F||t.writable&&!D)&&(D&&!$||s.call(t))},z=e=>{s.call(t,e)};let H=m(t);const G=()=>{H=!0;const e=O(t)||S(t);return e&&"boolean"!=typeof e?s.call(t,e):L&&!B&&w(t,!0)&&!v(t,!1)?s.call(t,new a):!D||$||R(t,!1)?void s.call(t):s.call(t,new a)},V=()=>{H=!0;const e=O(t)||S(t);if(e&&"boolean"!=typeof e)return s.call(t,e);s.call(t)},q=()=>{t.req.on("finish",W)};!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?D&&!C&&(t.on("end",j),t.on("close",j)):(t.on("complete",W),F||t.on("abort",G),t.req?q():t.on("request",q)),F||"boolean"!=typeof t.aborted||t.on("aborted",G),t.on("end",U),t.on("finish",W),!1!==e.error&&t.on("error",z),t.on("close",G),H?n.nextTick(G):null!=C&&C.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(L||F&&!y(t)||!$&&!1!==E(t))&&(D||F&&!E(t)||!B&&!1!==y(t))?N&&t.req&&t.aborted&&n.nextTick(V):n.nextTick(V);const Y=()=>{s=I,t.removeListener("aborted",G),t.removeListener("complete",W),t.removeListener("abort",G),t.removeListener("request",q),t.req&&t.req.removeListener("finish",W),t.removeListener("end",j),t.removeListener("close",j),t.removeListener("finish",W),t.removeListener("end",U),t.removeListener("error",z),t.removeListener("close",G)};if(e.signal&&!H){const o=()=>{const r=s;Y(),r.call(t,new i(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)n.nextTick(o);else{P=P||r(4953).addAbortListener;const n=P(e.signal,o),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}}return Y}t.exports=L,t.exports.finished=function(t,e){var r;let n=!1;return null===e&&(e=l),null!==(r=e)&&void 0!==r&&r.cleanup&&(f(e.cleanup,"cleanup"),n=e.cleanup),new p(((r,i)=>{const s=L(t,e,(t=>{n&&s(),t?i(t):r()}))}))}},5509(t,e,r){"use strict";const n=r(4422),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r(5801),{Buffer:a}=r(181),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:u}=r(2918).codes;t.exports=function(t,e,r){let h,c;if("string"==typeof e||e instanceof a)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});if(e&&e[s])c=!0,h=e[s]();else{if(!e||!e[o])throw new l("iterable",["Iterable"],e);c=!1,h=e[o]()}const d=new t({objectMode:!0,highWaterMark:1,...r});let f=!1;return d._read=function(){f||(f=!0,async function(){for(;;){try{const{value:t,done:e}=c?await h.next():h.next();if(e)d.push(null);else{const e=t&&"function"==typeof t.then?await t:t;if(null===e)throw f=!1,new u;if(d.push(e))continue;f=!1}}catch(t){d.destroy(t)}break}}())},d._destroy=function(t,e){i(async function(t){const e=null!=t,r="function"==typeof h.throw;if(e&&r){const{value:e,done:r}=await h.throw(t);if(await e,r)return}if("function"==typeof h.return){const{value:t}=await h.return();await t}}(t),(()=>n.nextTick(e,t)),(r=>n.nextTick(e,r||t)))},d}},5926(t,e,r){"use strict";const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(5801),{EventEmitter:s}=r(4434);function o(t){s.call(this,t)}function a(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?n(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}i(o.prototype,s.prototype),i(o,s),o.prototype.pipe=function(t,e){const r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",l),r.on("close",u));let o=!1;function l(){o||(o=!0,t.end())}function u(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){c(),0===s.listenerCount(this,"error")&&this.emit("error",t)}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return a(r,"error",h),a(t,"error",h),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t},t.exports={Stream:o,prependListener:a}},4204(t,e,r){"use strict";const n=globalThis.AbortController||r(6584).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r(2918),{validateAbortSignal:u,validateInteger:h,validateObject:c}=r(6232),d=r(5801).Symbol("kWeak"),f=r(5801).Symbol("kResistStopPropagation"),{finished:p}=r(9661),g=r(5953),{addAbortSignalNoValidate:b}=r(6066),{isWritable:m,isNodeStream:y}=r(48),{deprecate:w}=r(4953),{ArrayPrototypePush:_,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:T,Symbol:k}=r(5801),M=k("kEmpty"),P=k("kEof");function I(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");let n=1;null!=(null==e?void 0:e.concurrency)&&(n=S(e.concurrency));let i=n-1;return null!=(null==e?void 0:e.highWaterMark)&&(i=S(e.highWaterMark)),h(n,"options.concurrency",1),h(i,"options.highWaterMark",0),i+=n,async function*(){const s=r(4953).AbortSignalAny([null==e?void 0:e.signal].filter(v)),o=this,a=[],u={signal:s};let h,c,d=!1,f=0;function p(){d=!0,g()}function g(){f-=1,b()}function b(){c&&!d&&f<n&&a.length<i&&(c(),c=null)}!async function(){try{for await(let e of o){if(d)return;if(s.aborted)throw new l;try{if(e=t(e,u),e===M)continue;e=O(e)}catch(t){e=R(t)}f+=1,T(e,g,p),a.push(e),h&&(h(),h=null),!d&&(a.length>=i||f>=n)&&await new A((t=>{c=t}))}a.push(P)}catch(t){const e=R(t);T(e,g,p),a.push(e)}finally{d=!0,h&&(h(),h=null)}}();try{for(;;){for(;a.length>0;){const t=await a[0];if(t===P)return;if(s.aborted)throw new l;t!==M&&(yield t),a.shift(),b()}await new A((t=>{h=t}))}}finally{d=!0,c&&(c(),c=null)}}.call(this)}async function L(t,e=void 0){for await(const r of D.call(this,t,e))return!0;return!1}function D(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return I.call(this,(async function(e,r){return await t(e,r)?e:M}),e)}class C extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(t){if(t=E(t),x(t))return 0;if(t<0)throw new a("number",">= 0",t);return t}t.exports.streamReturningOperators={asIndexedPairs:w((function(t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),async function*(){let e=0;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l({cause:t.signal.reason});yield[e++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;t--<=0&&(yield r)}}.call(this)},filter:D,flatMap:function(t,e){const r=I.call(this,t,e);return async function*(){for await(const t of r)yield*t}.call(this)},map:I,take:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;if(t-- >0&&(yield r),t<=0)return}}.call(this)},compose:function(t,e){if(null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),y(t)&&!m(t))throw new i("stream",t,"must be writable");const r=g(this,t);return null!=e&&e.signal&&b(e.signal,r),r}},t.exports.promiseReturningOperators={every:async function(t,e=void 0){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return!await L.call(this,(async(...e)=>!await t(...e)),e)},forEach:async function(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);for await(const r of I.call(this,(async function(e,r){return await t(e,r),M}),e));},reduce:async function(t,e,r){var i;if("function"!=typeof t)throw new s("reducer",["Function","AsyncFunction"],t);null!=r&&c(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let o=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const t=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(t)),t}const a=new n,h=a.signal;if(null!=r&&r.signal){const t={once:!0,[d]:this,[f]:!0};r.signal.addEventListener("abort",(()=>a.abort()),t)}let g=!1;try{for await(const n of this){var b;if(g=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;o?e=await t(e,n,{signal:h}):(e=n,o=!0)}if(!g&&!o)throw new C}finally{a.abort()}return e},toArray:async function(t){null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:t.signal.reason});_(e,n)}return e},some:L,find:async function(t,e){for await(const r of D.call(this,t,e))return r}}},4675(t,e,r){"use strict";const{ObjectSetPrototypeOf:n}=r(5801);t.exports=s;const i=r(7105);function s(t){if(!(this instanceof s))return new s(t);i.call(this,t)}n(s.prototype,i.prototype),n(s,i),s.prototype._transform=function(t,e,r){r(null,t)}},4503(t,e,r){const n=r(4422),{ArrayIsArray:i,Promise:s,SymbolAsyncIterator:o,SymbolDispose:a}=r(5801),l=r(9661),{once:u}=r(4953),h=r(8071),c=r(1599),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:m},AbortError:y}=r(2918),{validateFunction:w,validateAbortSignal:_}=r(6232),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:A,isWebStream:R,isReadableStream:O,isReadableFinished:T}=r(48),k=globalThis.AbortController||r(6584).AbortController;let M,P,I;function L(t,e,r){let n=!1;t.on("close",(()=>{n=!0}));return{destroy:e=>{n||(n=!0,h.destroyer(t,e||new b("pipe")))},cleanup:l(t,{readable:e,writable:r},(t=>{n=!t}))}}function D(t){if(v(t))return t;if(E(t))return async function*(t){P||(P=r(1117));yield*P.prototype[o].call(t)}(t);throw new f("val",["Readable","Iterable","AsyncIterable"],t)}async function C(t,e,r,{end:n}){let i,o=null;const a=t=>{if(t&&(i=t),o){const t=o;o=null,t()}},u=()=>new s(((t,e)=>{i?e(i):o=()=>{i?e(i):t()}}));e.on("drain",a);const h=l(e,{readable:!1},a);try{e.writableNeedDrain&&await u();for await(const r of t)e.write(r)||await u();n&&(e.end(),await u()),r()}catch(t){r(i!==t?d(i,t):t)}finally{h(),e.off("drain",a)}}async function N(t,e,r,{end:n}){A(e)&&(e=e.writable);const i=e.getWriter();try{for await(const e of t)await i.ready,i.write(e).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(t){try{await i.abort(t),r(t)}catch(t){r(t)}}}function j(t,e,s){if(1===t.length&&i(t[0])&&(t=t[0]),t.length<2)throw new g("streams");const o=new k,l=o.signal,u=null==s?void 0:s.signal,h=[];function d(){W(new y)}let b,m,w;_(u,"options.signal"),I=I||r(4953).addAbortListener,u&&(b=I(u,d));const T=[];let P,j=0;function $(t){W(t,0==--j)}function W(t,r){var i;if(!t||m&&"ERR_STREAM_PREMATURE_CLOSE"!==m.code||(m=t),m||r){for(;T.length;)T.shift()(m);null===(i=b)||void 0===i||i[a](),o.abort(),r&&(m||h.forEach((t=>t())),n.nextTick(e,m,w))}}for(let H=0;H<t.length;H++){const G=t[H],V=H<t.length-1,q=H>0,Y=V||!1!==(null==s?void 0:s.end),K=H===t.length-1;if(x(G)){if(Y){const{destroy:Z,cleanup:J}=L(G,V,q);T.push(Z),S(G)&&K&&h.push(J)}function B(t){t&&"AbortError"!==t.name&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code&&$(t)}G.on("error",B),S(G)&&K&&h.push((()=>{G.removeListener("error",B)}))}if(0===H)if("function"==typeof G){if(P=G({signal:l}),!v(P))throw new p("Iterable, AsyncIterable or Stream","source",P)}else P=v(G)||E(G)||A(G)?G:c.from(G);else if("function"==typeof G){var U;if(A(P))P=D(null===(U=P)||void 0===U?void 0:U.readable);else P=D(P);if(P=G(P,{signal:l}),V){if(!v(P,!0))throw new p("AsyncIterable",`transform[${H-1}]`,P)}else{var z;M||(M=r(4675));const Q=new M({objectMode:!0}),X=null===(z=P)||void 0===z?void 0:z.then;if("function"==typeof X)j++,X.call(P,(t=>{w=t,null!=t&&Q.write(t),Y&&Q.end(),n.nextTick($)}),(t=>{Q.destroy(t),n.nextTick($,t)}));else if(v(P,!0))j++,C(P,Q,$,{end:Y});else{if(!O(P)&&!A(P))throw new p("AsyncIterable or Promise","destination",P);{const rt=P.readable||P;j++,C(rt,Q,$,{end:Y})}}P=Q;const{destroy:tt,cleanup:et}=L(P,!1,!0);T.push(tt),K&&h.push(et)}}else if(x(G)){if(E(P)){j+=2;const nt=F(P,G,$,{end:Y});S(G)&&K&&h.push(nt)}else if(A(P)||O(P)){const it=P.readable||P;j++,C(it,G,$,{end:Y})}else{if(!v(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,C(P,G,$,{end:Y})}P=G}else if(R(G)){if(E(P))j++,N(D(P),G,$,{end:Y});else if(O(P)||v(P))j++,N(P,G,$,{end:Y});else{if(!A(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,N(P.readable,G,$,{end:Y})}P=G}else P=c.from(G)}return(null!=l&&l.aborted||null!=u&&u.aborted)&&n.nextTick(d),P}function F(t,e,r,{end:i}){let s=!1;if(e.on("close",(()=>{s||r(new m)})),t.pipe(e,{end:!1}),i){function o(){s=!0,e.end()}T(t)?n.nextTick(o):t.once("end",o)}else r();return l(t,{readable:!0,writable:!1},(e=>{const n=t._readableState;e&&"ERR_STREAM_PREMATURE_CLOSE"===e.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?t.once("end",r).once("error",r):r(e)})),l(e,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:j,pipeline:function(...t){return j(t,u(function(t){return w(t[t.length-1],"streams[stream.length - 1]"),t.pop()}(t)))}}},1117(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeIndexOf:i,NumberIsInteger:s,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:u,ObjectSetPrototypeOf:h,Promise:c,SafeSet:d,SymbolAsyncDispose:f,SymbolAsyncIterator:p,Symbol:g}=r(5801);t.exports=H,H.ReadableState=z;const{EventEmitter:b}=r(4434),{Stream:m,prependListener:y}=r(5926),{Buffer:w}=r(181),{addAbortSignal:_}=r(6066),v=r(9661);let S=r(4953).debuglog("stream",(t=>{S=t}));const E=r(586),x=r(8071),{getHighWaterMark:A,getDefaultHighWaterMark:R}=r(8488),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:k,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:I},AbortError:L}=r(2918),{validateObject:D}=r(6232),C=g("kPaused"),{StringDecoder:N}=r(3141),j=r(5509);h(H.prototype,m.prototype),h(H,m);const F=()=>{},{errorOrDestroy:$}=x,W=2048,B=4096;function U(t){return{enumerable:!1,get(){return!!(this.state&t)},set(e){e?this.state|=t:this.state&=~t}}}function z(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(1599)),this.state=6192,t&&t.objectMode&&(this.state|=1),n&&t&&t.readableObjectMode&&(this.state|=1),this.highWaterMark=t?A(this,t,"readableHighWaterMark",n):R(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,t&&!1===t.emitClose&&(this.state&=-2049),t&&!1===t.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new N(t.encoding),this.encoding=t.encoding)}function H(t){if(!(this instanceof H))return new H(t);const e=this instanceof r(1599);this._readableState=new z(t,this,e),t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&!e&&_(t.signal,this)),m.call(this,t),x.construct(this,(()=>{this._readableState.needReadable&&Z(this,this._readableState)}))}function G(t,e,r,n){S("readableAddChunk",e);const i=t._readableState;let s;if(1&i.state||("string"==typeof e?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=w.from(e,r).toString(i.encoding):(e=w.from(e,r),r=""))):e instanceof w?r="":m._isUint8Array(e)?(e=m._uint8ArrayToBuffer(e),r=""):null!=e&&(s=new T("chunk",["string","Buffer","Uint8Array"],e))),s)$(t,s);else if(null===e)i.state&=-9,function(t,e){if(S("onEofChunk"),e.ended)return;if(e.decoder){const t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?Y(t):(e.needReadable=!1,e.emittedReadable=!0,K(t))}(t,i);else if(1&i.state||e&&e.length>0)if(n)if(4&i.state)$(t,new I);else{if(i.destroyed||i.errored)return!1;V(t,i,e,!0)}else if(i.ended)$(t,new P);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||0!==e.length?V(t,i,e,!1):Z(t,i)):V(t,i,e,!1)}else n||(i.state&=-9,Z(t,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function V(t,e,r,n){e.flowing&&0===e.length&&!e.sync&&t.listenerCount("data")>0?(65536&e.state?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),64&e.state&&Y(t)),Z(t,e)}l(z.prototype,{objectMode:U(1),ended:U(2),endEmitted:U(4),reading:U(8),constructed:U(16),sync:U(32),needReadable:U(64),emittedReadable:U(128),readableListening:U(256),resumeScheduled:U(512),errorEmitted:U(1024),emitClose:U(W),autoDestroy:U(B),destroyed:U(8192),closed:U(16384),closeEmitted:U(32768),multiAwaitDrain:U(65536),readingMore:U(1<<17),dataEmitted:U(1<<18)}),H.prototype.destroy=x.destroy,H.prototype._undestroy=x.undestroy,H.prototype._destroy=function(t,e){e(t)},H.prototype[b.captureRejectionSymbol]=function(t){this.destroy(t)},H.prototype[f]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new L,this.destroy(t)),new c(((e,r)=>v(this,(n=>n&&n!==t?r(n):e(null)))))},H.prototype.push=function(t,e){return G(this,t,e,!1)},H.prototype.unshift=function(t,e){return G(this,t,e,!0)},H.prototype.isPaused=function(){const t=this._readableState;return!0===t[C]||!1===t.flowing},H.prototype.setEncoding=function(t){const e=new N(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const t of r)n+=e.write(t);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function q(t,e){return t<=0||0===e.length&&e.ended?0:1&e.state?1:o(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}function Y(t){const e=t._readableState;S("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(S("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(K,t))}function K(t){const e=t._readableState;S("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||e.errored||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,et(t)}function Z(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,n.nextTick(J,t,e))}function J(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){const r=e.length;if(S("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function Q(t){const e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!1===e[C]?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function X(t){S("readable nexttick read 0"),t.read(0)}function tt(t,e){S("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),et(t),e.flowing&&!e.reading&&t.read(0)}function et(t){const e=t._readableState;for(S("flow",e.flowing);e.flowing&&null!==t.read(););}function rt(t,e){"function"!=typeof t.read&&(t=H.wrap(t,{objectMode:!0}));const r=async function*(t,e){let r,n=F;function i(e){this===t?(n(),n=F):n=e}t.on("readable",i);const s=v(t,{writable:!1},(t=>{r=t?O(r,t):null,n(),n=F}));try{for(;;){const e=t.destroyed?null:t.read();if(null!==e)yield e;else{if(r)throw r;if(null===r)return;await new c(i)}}}catch(t){throw r=O(r,t),r}finally{!r&&!1===(null==e?void 0:e.destroyOnReturn)||void 0!==r&&!t._readableState.autoDestroy?(t.off("readable",i),s()):x.destroyer(t,null)}}(t,e);return r.stream=t,r}function nt(t,e){if(0===e.length)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function it(t){const e=t._readableState;S("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(st,e,t))}function st(t,e){if(S("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&0===t.length)if(t.endEmitted=!0,e.emit("end"),e.writable&&!1===e.allowHalfOpen)n.nextTick(ot,e);else if(t.autoDestroy){const t=e._writableState;(!t||t.autoDestroy&&(t.finished||!1===t.writable))&&e.destroy()}}function ot(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}let at;function lt(){return void 0===at&&(at={}),at}H.prototype.read=function(t){S("read",t),void 0===t?t=NaN:s(t)||(t=a(t,10));const e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=function(t){if(t>1073741824)throw new M("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,++t}(t)),0!==t&&(e.state&=-129),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return S("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?it(this):Y(this),null;if(0===(t=q(t,e))&&e.ended)return 0===e.length&&it(this),null;let n,i=!!(64&e.state);if(S("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,S("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),e.state|=40,0===e.length&&(e.state|=64);try{this._read(e.highWaterMark)}catch(t){$(this,t)}e.state&=-33,e.reading||(t=q(r,e))}return n=t>0?nt(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&it(this)),null===n||e.errorEmitted||e.closeEmitted||(e.dataEmitted=!0,this.emit("data",n)),n},H.prototype._read=function(t){throw new k("_read()")},H.prototype.pipe=function(t,e){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),S("pipe count=%d opts=%j",i.pipes.length,e);const s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?a:b;function o(e,n){S("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),l&&t.removeListener("drain",l);t.removeListener("error",f),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}())}function a(){S("onend"),t.end()}let l;i.endEmitted?n.nextTick(s):r.once("end",s),t.on("unpipe",o);let u=!1;function h(){u||(1===i.pipes.length&&i.pipes[0]===t?(S("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=function(t,e){return function(){const r=t._readableState;r.awaitDrainWriters===e?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!t.listenerCount("data")||t.resume()}}(r,t),t.on("drain",l))}function c(e){S("ondata");const r=t.write(e);S("dest.write",r),!1===r&&h()}function f(e){if(S("onerror",e),b(),t.removeListener("error",f),0===t.listenerCount("error")){const r=t._writableState||t._readableState;r&&!r.errorEmitted?$(t,e):t.emit("error",e)}}function p(){t.removeListener("finish",g),b()}function g(){S("onfinish"),t.removeListener("close",p),b()}function b(){S("unpipe"),r.unpipe(t)}return r.on("data",c),y(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",r),!0===t.writableNeedDrain?h():i.flowing||(S("pipe resume"),r.resume()),t},H.prototype.unpipe=function(t){const e=this._readableState;if(0===e.pipes.length)return this;if(!t){const t=e.pipes;e.pipes=[],this.pause();for(let e=0;e<t.length;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(e.pipes,t);return-1===r||(e.pipes.splice(r,1),0===e.pipes.length&&this.pause(),t.emit("unpipe",this,{hasUnpiped:!1})),this},H.prototype.on=function(t,e){const r=m.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Y(this):i.reading||n.nextTick(X,this))),r},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(t,e){const r=m.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(Q,this),r},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(t){const e=m.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(Q,this),e},H.prototype.resume=function(){const t=this._readableState;return t.flowing||(S("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(tt,t,e))}(this,t)),t[C]=!1,this},H.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[C]=!0,this},H.prototype.wrap=function(t){let e=!1;t.on("data",(r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())})),t.on("end",(()=>{this.push(null)})),t.on("error",(t=>{$(this,t)})),t.on("close",(()=>{this.destroy()})),t.on("destroy",(()=>{this.destroy()})),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};const r=u(t);for(let e=1;e<r.length;e++){const n=r[e];void 0===this[n]&&"function"==typeof t[n]&&(this[n]=t[n].bind(t))}return this},H.prototype[p]=function(){return rt(this)},H.prototype.iterator=function(t){return void 0!==t&&D(t,"options"),rt(this,t)},l(H.prototype,{readable:{__proto__:null,get(){const t=this._readableState;return!(!t||!1===t.readable||t.destroyed||t.errorEmitted||t.endEmitted)},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(z.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[C]},set(t){this[C]=!!t}}}),H._fromList=nt,H.from=function(t,e){return j(H,t,e)},H.fromWeb=function(t,e){return lt().newStreamReadableFromReadableStream(t,e)},H.toWeb=function(t,e){return lt().newReadableStreamFromStreamReadable(t,e)},H.wrap=function(t,e){var r,n;return new H({objectMode:null===(r=null!==(n=t.readableObjectMode)&&void 0!==n?n:t.objectMode)||void 0===r||r,...e,destroy(e,r){x.destroyer(t,e),r(e)}}).wrap(t)}},8488(t,e,r){"use strict";const{MathFloor:n,NumberIsInteger:i}=r(5801),{validateInteger:s}=r(6232),{ERR_INVALID_ARG_VALUE:o}=r(2918).codes;let a=16384,l=16;function u(t){return t?l:a}t.exports={getHighWaterMark:function(t,e,r,s){const a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,s,r);if(null!=a){if(!i(a)||a<0){throw new o(s?`options.${r}`:"options.highWaterMark",a)}return n(a)}return u(t.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(t,e){s(e,"value",0),t?l=e:a=e}}},7105(t,e,r){"use strict";const{ObjectSetPrototypeOf:n,Symbol:i}=r(5801);t.exports=u;const{ERR_METHOD_NOT_IMPLEMENTED:s}=r(2918).codes,o=r(1599),{getHighWaterMark:a}=r(8488);n(u.prototype,o.prototype),n(u,o);const l=i("kCallback");function u(t){if(!(this instanceof u))return new u(t);const e=t?a(this,t,"readableHighWaterMark",!0):null;0===e&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),o.call(this,t),this._readableState.sync=!1,this[l]=null,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function h(t){"function"!=typeof this._flush||this.destroyed?(this.push(null),t&&t()):this._flush(((e,r)=>{e?t?t(e):this.destroy(e):(null!=r&&this.push(r),this.push(null),t&&t())}))}function c(){this._final!==h&&h.call(this)}u.prototype._final=h,u.prototype._transform=function(t,e,r){throw new s("_transform()")},u.prototype._write=function(t,e,r){const n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,((t,e)=>{t?r(t):(null!=e&&this.push(e),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},u.prototype._read=function(){if(this[l]){const t=this[l];this[l]=null,t()}}},48(t,e,r){"use strict";const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r(5801),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),u=s("nodejs.stream.writable"),h=s("nodejs.stream.disturbed"),c=s("nodejs.webstream.isClosedPromise"),d=s("nodejs.webstream.controllerErrorFunction");function f(t,e=!1){var r;return!(!t||"function"!=typeof t.pipe||"function"!=typeof t.on||e&&("function"!=typeof t.pause||"function"!=typeof t.resume)||t._writableState&&!1===(null===(r=t._readableState)||void 0===r?void 0:r.readable)||t._writableState&&!t._readableState)}function p(t){var e;return!(!t||"function"!=typeof t.write||"function"!=typeof t.on||t._readableState&&!1===(null===(e=t._writableState)||void 0===e?void 0:e.writable))}function g(t){return t&&(t._readableState||t._writableState||"function"==typeof t.write&&"function"==typeof t.on||"function"==typeof t.pipe&&"function"==typeof t.on)}function b(t){return!(!t||g(t)||"function"!=typeof t.pipeThrough||"function"!=typeof t.getReader||"function"!=typeof t.cancel)}function m(t){return!(!t||g(t)||"function"!=typeof t.getWriter||"function"!=typeof t.abort)}function y(t){return!(!t||g(t)||"object"!=typeof t.readable||"object"!=typeof t.writable)}function w(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[o]||null!=n&&n.destroyed)}function _(t){if(!p(t))return null;if(!0===t.writableEnded)return!0;const e=t._writableState;return(null==e||!e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)}function v(t,e){if(!f(t))return null;const r=t._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===e&&!0===r.ended&&0===r.length))}function S(t){return t&&null!=t[l]?t[l]:"boolean"!=typeof(null==t?void 0:t.readable)?null:!w(t)&&(f(t)&&t.readable&&!v(t))}function E(t){return t&&null!=t[u]?t[u]:"boolean"!=typeof(null==t?void 0:t.writable)?null:!w(t)&&(p(t)&&t.writable&&!_(t))}function x(t){return"boolean"==typeof t._closed&&"boolean"==typeof t._defaultKeepAlive&&"boolean"==typeof t._removedConnection&&"boolean"==typeof t._removedContLen}function A(t){return"boolean"==typeof t._sent100&&x(t)}t.exports={isDestroyed:w,kIsDestroyed:o,isDisturbed:function(t){var e;return!(!t||!(null!==(e=t[h])&&void 0!==e?e:t.readableDidRead||t.readableAborted))},kIsDisturbed:h,isErrored:function(t){var e,r,n,i,s,o,l,u,h,c;return!(!t||!(null!==(e=null!==(r=null!==(n=null!==(i=null!==(s=null!==(o=t[a])&&void 0!==o?o:t.readableErrored)&&void 0!==s?s:t.writableErrored)&&void 0!==i?i:null===(l=t._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=t._writableState)||void 0===u?void 0:u.errorEmitted)&&void 0!==r?r:null===(h=t._readableState)||void 0===h?void 0:h.errored)&&void 0!==e?e:null===(c=t._writableState)||void 0===c?void 0:c.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:d,kIsWritable:u,isClosed:function(t){if(!g(t))return null;if("boolean"==typeof t.closed)return t.closed;const e=t._writableState,r=t._readableState;return"boolean"==typeof(null==e?void 0:e.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==e?void 0:e.closed)||(null==r?void 0:r.closed):"boolean"==typeof t._closed&&x(t)?t._closed:null},isDuplexNodeStream:function(t){return!(!t||"function"!=typeof t.pipe||!t._readableState||"function"!=typeof t.on||"function"!=typeof t.write)},isFinished:function(t,e){return g(t)?!!w(t)||(!1===(null==e?void 0:e.readable)||!S(t))&&(!1===(null==e?void 0:e.writable)||!E(t)):null},isIterable:function(t,e){return null!=t&&(!0===e?"function"==typeof t[n]:!1===e?"function"==typeof t[i]:"function"==typeof t[n]||"function"==typeof t[i])},isReadableNodeStream:f,isReadableStream:b,isReadableEnded:function(t){if(!f(t))return null;if(!0===t.readableEnded)return!0;const e=t._readableState;return!(!e||e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)},isReadableFinished:v,isReadableErrored:function(t){var e,r;return g(t)?t.readableErrored?t.readableErrored:null!==(e=null===(r=t._readableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isNodeStream:g,isWebStream:function(t){return b(t)||m(t)||y(t)},isWritable:E,isWritableNodeStream:p,isWritableStream:m,isWritableEnded:_,isWritableFinished:function(t,e){if(!p(t))return null;if(!0===t.writableFinished)return!0;const r=t._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===e&&!0===r.ended&&0===r.length))},isWritableErrored:function(t){var e,r;return g(t)?t.writableErrored?t.writableErrored:null!==(e=null===(r=t._writableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isServerRequest:function(t){var e;return"boolean"==typeof t._consuming&&"boolean"==typeof t._dumped&&void 0===(null===(e=t.req)||void 0===e?void 0:e.upgradeOrConnect)},isServerResponse:A,willEmitClose:function(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&A(t)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:y}},8941(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeSlice:i,Error:s,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:h,Symbol:c,SymbolHasInstance:d}=r(5801);t.exports=D,D.WritableState=I;const{EventEmitter:f}=r(4434),p=r(5926).Stream,{Buffer:g}=r(181),b=r(8071),{addAbortSignal:m}=r(6066),{getHighWaterMark:y,getDefaultHighWaterMark:w}=r(8488),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:T}=r(2918).codes,{errorOrDestroy:k}=b;function M(){}u(D.prototype,p.prototype),u(D,p);const P=c("kOnFinished");function I(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(1599)),this.objectMode=!(!t||!t.objectMode),n&&(this.objectMode=this.objectMode||!(!t||!t.writableObjectMode)),this.highWaterMark=t?y(this,t,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!t||!1!==t.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||!1!==t.emitClose,this.autoDestroy=!t||!1!==t.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function L(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}function D(t){const e=this instanceof r(1599);if(!e&&!o(D,this))return new D(t);this._writableState=new I(t,this,e),t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&m(t.signal,this)),p.call(this,t),b.construct(this,(()=>{const t=this._writableState;t.writing||U(this,t),G(this,t)}))}function C(t,e,r,i){const s=t._writableState;if("function"==typeof r)i=r,r=s.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new T(r)}else r=s.defaultEncoding;"function"!=typeof i&&(i=M)}if(null===e)throw new R;if(!s.objectMode)if("string"==typeof e)!1!==s.decodeStrings&&(e=g.from(e,r),r="buffer");else if(e instanceof g)r="buffer";else{if(!p._isUint8Array(e))throw new _("chunk",["string","Buffer","Uint8Array"],e);e=p._uint8ArrayToBuffer(e),r="buffer"}let o;return s.ending?o=new O:s.destroyed&&(o=new x("write")),o?(n.nextTick(i,o),k(t,o,!0),o):(s.pendingcb++,function(t,e,r,n,i){const s=e.objectMode?1:r.length;e.length+=s;const o=e.length<e.highWaterMark;o||(e.needDrain=!0);e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:n,callback:i}),e.allBuffers&&"buffer"!==n&&(e.allBuffers=!1),e.allNoop&&i!==M&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(r,n,e.onwrite),e.sync=!1);return o&&!e.errored&&!e.destroyed}(t,s,e,r,i))}function N(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function j(t,e,r,n){--e.pendingcb,n(r),B(e),k(t,r)}function F(t,e){const r=t._writableState,i=r.sync,s=r.writecb;"function"==typeof s?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?n.nextTick(j,t,r,e,s):j(t,r,e,s)):(r.buffered.length>r.bufferedIndex&&U(t,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:t,state:r},n.nextTick($,r.afterWriteTickInfo)):W(t,r,1,s))):k(t,new S)}function $({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,W(t,e,r,n)}function W(t,e,r,n){for(!e.ending&&!t.destroyed&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&B(e),G(t,e)}function B(t){if(t.writing)return;for(let r=t.bufferedIndex;r<t.buffered.length;++r){var e;const{chunk:n,callback:i}=t.buffered[r],s=t.objectMode?1:n.length;t.length-=s,i(null!==(e=t.errored)&&void 0!==e?e:new x("write"))}const r=t[P].splice(0);for(let e=0;e<r.length;e++){var n;r[e](null!==(n=t.errored)&&void 0!==n?n:new x("end"))}L(t)}function U(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:s}=e,o=r.length-n;if(!o)return;let a=n;if(e.bufferProcessing=!0,o>1&&t._writev){e.pendingcb-=o-1;const n=e.allNoop?M:t=>{for(let e=a;e<r.length;++e)r[e].callback(t)},s=e.allNoop&&0===a?r:i(r,a);s.allBuffers=e.allBuffers,N(t,e,!0,e.length,s,"",n),L(e)}else{do{const{chunk:n,encoding:i,callback:o}=r[a];r[a++]=null;N(t,e,!1,s?1:n.length,n,i,o)}while(a<r.length&&!e.writing);a===r.length?L(e):a>256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}function z(t){return t.ending&&!t.destroyed&&t.constructed&&0===t.length&&!t.errored&&0===t.buffered.length&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function H(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.finalCalled=!0,function(t,e){let r=!1;function i(i){if(r)k(t,null!=i?i:S());else if(r=!0,e.pendingcb--,i){const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t](i);k(t,i,e.sync)}else z(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,n.nextTick(V,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(t){i(t)}e.sync=!1}(t,e)))}function G(t,e,r){z(e)&&(H(t,e),0===e.pendingcb&&(r?(e.pendingcb++,n.nextTick(((t,e)=>{z(e)?V(t,e):e.pendingcb--}),t,e)):z(e)&&(e.pendingcb++,V(t,e))))}function V(t,e){e.pendingcb--,e.finished=!0;const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t]();if(t.emit("finish"),e.autoDestroy){const e=t._readableState;(!e||e.autoDestroy&&(e.endEmitted||!1===e.readable))&&t.destroy()}}I.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(D,d,{__proto__:null,value:function(t){return!!o(this,t)||this===D&&(t&&t._writableState instanceof I)}}),D.prototype.pipe=function(){k(this,new E)},D.prototype.write=function(t,e,r){return!0===C(this,t,e,r)},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){const t=this._writableState;t.corked&&(t.corked--,t.writing||U(this,t))},D.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=h(t)),!g.isEncoding(t))throw new T(t);return this._writableState.defaultEncoding=t,this},D.prototype._write=function(t,e,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:t,encoding:e}],r)},D.prototype._writev=null,D.prototype.end=function(t,e,r){const i=this._writableState;let o;if("function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t){const r=C(this,t,e);r instanceof s&&(o=r)}return i.corked&&(i.corked=1,this.uncork()),o||(i.errored||i.ending?i.finished?o=new A("end"):i.destroyed&&(o=new x("end")):(i.ending=!0,G(this,i,!0),i.ended=!0)),"function"==typeof r&&(o||i.finished?n.nextTick(r,o):i[P].push(r)),this},l(D.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){const t=this._writableState;return!(!t||!1===t.writable||t.destroyed||t.errored||t.ending||t.ended)},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const t=this._writableState;return!!t&&(!t.destroyed&&!t.ending&&t.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=b.destroy;let Y;function K(){return void 0===Y&&(Y={}),Y}D.prototype.destroy=function(t,e){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&n.nextTick(B,r),q.call(this,t,e),this},D.prototype._undestroy=b.undestroy,D.prototype._destroy=function(t,e){e(t)},D.prototype[f.captureRejectionSymbol]=function(t){this.destroy(t)},D.fromWeb=function(t,e){return K().newStreamWritableFromWritableStream(t,e)},D.toWeb=function(t){return K().newWritableStreamFromStreamWritable(t)}},6232(t,e,r){"use strict";const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:h,NumberParseInt:c,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:g,StringPrototypeTrim:b}=r(5801),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(2918),{normalizeEncoding:E}=r(4953),{isAsyncFunction:x,isArrayBufferView:A}=r(4953).types,R={};const O=/^[0-7]+$/;const T=m(((t,e,r=h,n=u)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),k=m(((t,e,r=-2147483648,n=2147483647)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),M=m(((t,e,r=!1)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);const n=r?1:0,i=4294967295;if(t<n||t>i)throw new v(e,`>= ${n} && <= ${i}`,t)}));function P(t,e){if("string"!=typeof t)throw new w(e,"string",t)}const I=m(((t,e,r)=>{if(!i(r,t)){const n=s(o(r,(t=>"string"==typeof t?`'${t}'`:p(t))),", ");throw new _(e,t,"must be one of: "+n)}}));function L(t,e){if("boolean"!=typeof t)throw new w(e,"boolean",t)}function D(t,e,r){return null!=t&&d(t,e)?t[e]:r}const C=m(((t,e,r=null)=>{const i=D(r,"allowArray",!1),s=D(r,"allowFunction",!1);if(!D(r,"nullable",!1)&&null===t||!i&&n(t)||"object"!=typeof t&&(!s||"function"!=typeof t))throw new w(e,"Object",t)})),N=m(((t,e)=>{if(null!=t&&"object"!=typeof t&&"function"!=typeof t)throw new w(e,"a dictionary",t)})),j=m(((t,e,r=0)=>{if(!n(t))throw new w(e,"Array",t);if(t.length<r){throw new _(e,t,`must be longer than ${r}`)}}));const F=m(((t,e="buffer")=>{if(!A(t))throw new w(e,["Buffer","TypedArray","DataView"],t)}));const $=m(((t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new w(e,"AbortSignal",t)})),W=m(((t,e)=>{if("function"!=typeof t)throw new w(e,"Function",t)})),B=m(((t,e)=>{if("function"!=typeof t||x(t))throw new w(e,"Function",t)})),U=m(((t,e)=>{if(void 0!==t)throw new w(e,"undefined",t)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function H(t,e){if(void 0===t||!f(z,t))throw new _(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:function(t){return t===(0|t)},isUint32:function(t){return t===t>>>0},parseFileMode:function(t,e,r){if(void 0===t&&(t=r),"string"==typeof t){if(null===f(O,t))throw new _(e,t,"must be a 32-bit unsigned integer or an octal string");t=c(t,8)}return M(t,e),t},validateArray:j,validateStringArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)P(t[r],`${e}[${r}]`)},validateBooleanArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)L(t[r],`${e}[${r}]`)},validateAbortSignalArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++){const n=t[r],i=`${e}[${r}]`;if(null==n)throw new w(i,"AbortSignal",n);$(n,i)}},validateBoolean:L,validateBuffer:F,validateDictionary:N,validateEncoding:function(t,e){const r=E(e),n=t.length;if("hex"===r&&n%2!=0)throw new _("encoding",e,`is invalid for data of length ${n}`)},validateFunction:W,validateInt32:k,validateInteger:T,validateNumber:function(t,e,r=void 0,n){if("number"!=typeof t)throw new w(e,"number",t);if(null!=r&&t<r||null!=n&&t>n||(null!=r||null!=n)&&l(t))throw new v(e,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,t)},validateObject:C,validateOneOf:I,validatePlainFunction:B,validatePort:function(t,e="Port",r=!0){if("number"!=typeof t&&"string"!=typeof t||"string"==typeof t&&0===b(t).length||+t!=+t>>>0||t>65535||0===t&&!r)throw new y(e,t,r);return 0|t},validateSignalName:function(t,e="signal"){if(P(t,e),void 0===R[t]){if(void 0!==R[g(t)])throw new S(t+" (signals must use all capital letters)");throw new S(t)}},validateString:P,validateUint32:M,validateUndefined:U,validateUnion:function(t,e,r){if(!i(r,t))throw new w(e,`('${s(r,"|")}')`,t)},validateAbortSignal:$,validateLinkHeaderValue:function(t){if("string"==typeof t)return H(t,"hints"),t;if(n(t)){const e=t.length;let r="";if(0===e)return r;for(let n=0;n<e;n++){const i=t[n];H(i,"hints"),r+=i,n!==e-1&&(r+=", ")}return r}throw new _("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},2918(t,e,r){"use strict";const{format:n,inspect:i}=r(6238),{AggregateError:s}=r(5801),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,h={};function c(t,e){if(!t)throw new h.ERR_INTERNAL_ASSERTION(e)}function d(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function f(t,e,r){r||(r=Error);class i extends r{constructor(...r){super(function(t,e,r){if("function"==typeof e)return c(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const i=(e.match(/%[dfijoOs]/g)||[]).length;return c(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?e:n(e,...r)}(t,e,r))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[a]=!0,h[t]=i}function p(t){const e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t}class g extends Error{constructor(t="The operation was aborted",e=void 0){if(void 0!==e&&"object"!=typeof e)throw new h.ERR_INVALID_ARG_TYPE("options","Object",e);super(t,e),this.code="ABORT_ERR",this.name="AbortError"}}f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",((t,e,r)=>{c("string"==typeof t,"'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const s=[],o=[],a=[];for(const t of e)c("string"==typeof t,"All expected entries have to be of type string"),l.includes(t)?s.push(t.toLowerCase()):u.test(t)?o.push(t):(c("object"!==t,'The value "object" should be written as "Object"'),a.push(t));if(o.length>0){const t=s.indexOf("object");-1!==t&&(s.splice(s,t,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{const t=s.pop();n+=`one of type ${s.join(", ")}, or ${t}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const t=o.pop();n+=`an instance of ${o.join(", ")}, or ${t}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const t=a.pop();n+=`one of ${a.join(", ")}, or ${t}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var h;if(null!==(h=r.constructor)&&void 0!==h&&h.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let t=i(r,{colors:!1});t.length>25&&(t=`${t.slice(0,25)}...`),n+=`. Received type ${typeof r} (${t})`}return n}),TypeError),f("ERR_INVALID_ARG_VALUE",((t,e,r="is invalid")=>{let n=i(e);n.length>128&&(n=n.slice(0,128)+"...");return`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`}),TypeError),f("ERR_INVALID_RETURN_VALUE",((t,e,r)=>{var n;return`Expected ${t} to be returned from the "${e}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),f("ERR_MISSING_ARGS",((...t)=>{let e;c(t.length>0,"At least one arg needs to be specified");const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map((t=>`"${t}"`)).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}}return`${e} must be specified`}),TypeError),f("ERR_OUT_OF_RANGE",((t,e,r)=>{let n;if(c(e,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32)n=d(String(r));else if("bigint"==typeof r){n=String(r);const t=BigInt(2)**BigInt(32);(r>t||r<-t)&&(n=d(n)),n+="n"}else n=i(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${n}`}),RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:g,aggregateTwoErrors:p((function(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new o([e,t],e.message);return r.code=e.code,r}return t||e})),hideStackFrames:p,codes:h}},1169(t,e,r){"use strict";const n=r(2203);if(n&&"disable"===process.env.READABLE_STREAM){const e=n.promises;t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>e}),t.exports.Stream=n.Stream}else{const e=r(5297),n=r(2098),i=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=i,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get:()=>n}),t.exports.Stream=e.Stream}t.exports.default=t.exports},5801(t){"use strict";class e extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError("Expected input to be an Array, got "+typeof t);let e="";for(let r=0;r<t.length;r++)e+=` ${t[r].stack}\n`;super(e),this.name="AggregateError",this.errors=t}}t.exports={AggregateError:e,ArrayIsArray:t=>Array.isArray(t),ArrayPrototypeIncludes:(t,e)=>t.includes(e),ArrayPrototypeIndexOf:(t,e)=>t.indexOf(e),ArrayPrototypeJoin:(t,e)=>t.join(e),ArrayPrototypeMap:(t,e)=>t.map(e),ArrayPrototypePop:(t,e)=>t.pop(e),ArrayPrototypePush:(t,e)=>t.push(e),ArrayPrototypeSlice:(t,e,r)=>t.slice(e,r),Error,FunctionPrototypeCall:(t,e,...r)=>t.call(e,...r),FunctionPrototypeSymbolHasInstance:(t,e)=>Function.prototype[Symbol.hasInstance].call(t,e),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(t,e)=>Object.defineProperties(t,e),ObjectDefineProperty:(t,e,r)=>Object.defineProperty(t,e,r),ObjectGetOwnPropertyDescriptor:(t,e)=>Object.getOwnPropertyDescriptor(t,e),ObjectKeys:t=>Object.keys(t),ObjectSetPrototypeOf:(t,e)=>Object.setPrototypeOf(t,e),Promise,PromisePrototypeCatch:(t,e)=>t.catch(e),PromisePrototypeThen:(t,e,r)=>t.then(e,r),PromiseReject:t=>Promise.reject(t),PromiseResolve:t=>Promise.resolve(t),ReflectApply:Reflect.apply,RegExpPrototypeTest:(t,e)=>t.test(e),SafeSet:Set,String,StringPrototypeSlice:(t,e,r)=>t.slice(e,r),StringPrototypeToLowerCase:t=>t.toLowerCase(),StringPrototypeToUpperCase:t=>t.toUpperCase(),StringPrototypeTrim:t=>t.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(t,e,r)=>t.set(e,r),Boolean,Uint8Array}},4953(t,e,r){"use strict";const n=r(181),{format:i,inspect:s}=r(6238),{codes:{ERR_INVALID_ARG_TYPE:o}}=r(2918),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:u}=r(5801),h=globalThis.AbortSignal||r(6584).AbortSignal,c=globalThis.AbortController||r(6584).AbortController,d=Object.getPrototypeOf((async function(){})).constructor,f=globalThis.Blob||n.Blob,p=void 0!==f?function(t){return t instanceof f}:function(t){return!1},g=(t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new o(e,"AbortSignal",t)};t.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise(((r,n)=>{t=r,e=n})),resolve:t,reject:e}},promisify:t=>new Promise(((e,r)=>{t(((t,...n)=>t?r(t):e(...n)))})),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:t=>t instanceof d,isArrayBufferView:t=>ArrayBuffer.isView(t)},isBlob:p,deprecate:(t,e)=>t,addAbortListener:r(4434).addAbortListener||function(t,e){if(void 0===t)throw new o("signal","AbortSignal",t);let r;return g(t,"signal"),((t,e)=>{if("function"!=typeof t)throw new o(e,"Function",t)})(e,"listener"),t.aborted?queueMicrotask((()=>e())):(t.addEventListener("abort",e,{__proto__:null,once:!0,[a]:!0}),r=()=>{t.removeEventListener("abort",e)}),{__proto__:null,[u](){var t;null===(t=r)||void 0===t||t()}}},AbortSignalAny:h.any||function(t){if(1===t.length)return t[0];const e=new c,r=()=>e.abort();return t.forEach((t=>{g(t,"signals"),t.addEventListener("abort",r,{once:!0})})),e.signal.addEventListener("abort",(()=>{t.forEach((t=>t.removeEventListener("abort",r)))}),{once:!0}),e.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},6238(t){"use strict";t.exports={format:(t,...e)=>t.replace(/%([sdifj])/g,(function(...[t,r]){const n=e.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(t){switch(typeof t){case"string":if(t.includes("'")){if(!t.includes('"'))return`"${t}"`;if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}},5297(t,e,r){"use strict";const{Buffer:n}=r(181),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r(5801),{promisify:{custom:a}}=r(4953),{streamReturningOperators:l,promiseReturningOperators:u}=r(4204),{codes:{ERR_ILLEGAL_CONSTRUCTOR:h}}=r(2918),c=r(5953),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:f}=r(8488),{pipeline:p}=r(4503),{destroyer:g}=r(8071),b=r(9661),m=r(2098),y=r(48),w=t.exports=r(5926).Stream;w.isDestroyed=y.isDestroyed,w.isDisturbed=y.isDisturbed,w.isErrored=y.isErrored,w.isReadable=y.isReadable,w.isWritable=y.isWritable,w.Readable=r(1117);for(const v of s(l)){const S=l[v];function E(...t){if(new.target)throw h();return w.Readable.from(o(S,this,t))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(w.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of s(u)){const A=u[x];function R(...t){if(new.target)throw h();return o(A,this,t)}i(R,"name",{__proto__:null,value:A.name}),i(R,"length",{__proto__:null,value:A.length}),i(w.Readable.prototype,x,{__proto__:null,value:R,enumerable:!1,configurable:!0,writable:!0})}w.Writable=r(8941),w.Duplex=r(1599),w.Transform=r(7105),w.PassThrough=r(4675),w.pipeline=p;const{addAbortSignal:_}=r(6066);w.addAbortSignal=_,w.finished=b,w.destroy=g,w.compose=c,w.setDefaultHighWaterMark=d,w.getDefaultHighWaterMark=f,i(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>m}),i(p,a,{__proto__:null,enumerable:!0,get:()=>m.pipeline}),i(b,a,{__proto__:null,enumerable:!0,get:()=>m.finished}),w.Stream=w,w._isUint8Array=function(t){return t instanceof Uint8Array},w._uint8ArrayToBuffer=function(t){return n.from(t.buffer,t.byteOffset,t.byteLength)}},2098(t,e,r){"use strict";const{ArrayPrototypePop:n,Promise:i}=r(5801),{isIterable:s,isNodeStream:o,isWebStream:a}=r(48),{pipelineImpl:l}=r(4503),{finished:u}=r(9661);r(5297),t.exports={finished:u,pipeline:function(...t){return new i(((e,r)=>{let i,u;const h=t[t.length-1];if(h&&"object"==typeof h&&!o(h)&&!s(h)&&!a(h)){const e=n(t);i=e.signal,u=e.end}l(t,((t,n)=>{t?r(t):e(n)}),{signal:i,end:u})}))}}},5622(t,e){function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===r(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===r(t)},e.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=Buffer.isBuffer},2566(t,e){var r;r=function(t){t.version="1.2.2";var e=function(){for(var t=0,e=new Array(256),r=0;256!=r;++r)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=r)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[r]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}(),r=function(t){var e=0,r=0,n=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)i[n]=t[n];for(n=0;256!=n;++n)for(r=t[n],e=256+n;e<4096;e+=256)r=i[e]=r>>>8^t[255&r];var s=[];for(n=1;16!=n;++n)s[n-1]="undefined"!=typeof Int32Array?i.subarray(256*n,256*n+256):i.slice(256*n,256*n+256);return s}(e),n=r[0],i=r[1],s=r[2],o=r[3],a=r[4],l=r[5],u=r[6],h=r[7],c=r[8],d=r[9],f=r[10],p=r[11],g=r[12],b=r[13],m=r[14];t.table=e,t.bstr=function(t,r){for(var n=~r,i=0,s=t.length;i<s;)n=n>>>8^e[255&(n^t.charCodeAt(i++))];return~n},t.buf=function(t,r){for(var y=~r,w=t.length-15,_=0;_<w;)y=m[t[_++]^255&y]^b[t[_++]^y>>8&255]^g[t[_++]^y>>16&255]^p[t[_++]^y>>>24]^f[t[_++]]^d[t[_++]]^c[t[_++]]^h[t[_++]]^u[t[_++]]^l[t[_++]]^a[t[_++]]^o[t[_++]]^s[t[_++]]^i[t[_++]]^n[t[_++]]^e[t[_++]];for(w+=15;_<w;)y=y>>>8^e[255&(y^t[_++])];return~y},t.str=function(t,r){for(var n=~r,i=0,s=t.length,o=0,a=0;i<s;)(o=t.charCodeAt(i++))<128?n=n>>>8^e[255&(n^o)]:o<2048?n=(n=n>>>8^e[255&(n^(192|o>>6&31))])>>>8^e[255&(n^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),a=1023&t.charCodeAt(i++),n=(n=(n=(n=n>>>8^e[255&(n^(240|o>>8&7))])>>>8^e[255&(n^(128|o>>2&63))])>>>8^e[255&(n^(128|a>>6&15|(3&o)<<4))])>>>8^e[255&(n^(128|63&a))]):n=(n=(n=n>>>8^e[255&(n^(224|o>>12&15))])>>>8^e[255&(n^(128|o>>6&63))])>>>8^e[255&(n^(128|63&o))];return~n}},"undefined"==typeof DO_NOT_EXPORT_CRC?r(e):r({})},5485(t,e,r){"use strict";const{Transform:n}=r(404),i=r(2566);t.exports=class extends n{constructor(t){super(t),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(t,e,r){t&&(this.checksum=i.buf(t,this.checksum)>>>0,this.rawSize+=t.length),r(null,t)}digest(t){const e=Buffer.allocUnsafe(4);return e.writeUInt32BE(this.checksum>>>0,0),t?e.toString(t):e}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}},951(t,e,r){"use strict";const{DeflateRaw:n}=r(3106),i=r(2566);t.exports=class extends n{constructor(t){super(t),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(t,e){return t&&(this.compressedSize+=t.length),super.push(t,e)}_transform(t,e,r){t&&(this.checksum=i.buf(t,this.checksum)>>>0,this.rawSize+=t.length),super._transform(t,e,r)}digest(t){const e=Buffer.allocUnsafe(4);return e.writeUInt32BE(this.checksum>>>0,0),t?e.toString(t):e}hex(){return this.digest("hex").toUpperCase()}size(t=!1){return t?this.compressedSize:this.rawSize}}},71(t,e,r){"use strict";t.exports={CRC32Stream:r(5485),DeflateCRC32Stream:r(951)}},4769(t,e,r){"use strict";const{SymbolDispose:n}=r(7744),{AbortError:i,codes:s}=r(3845),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:l}=r(2225),u=r(9327),{ERR_INVALID_ARG_TYPE:h}=s;let c;t.exports.addAbortSignal=function(e,r){if(((t,e)=>{if("object"!=typeof t||!("aborted"in t))throw new h(e,"AbortSignal",t)})(e,"signal"),!o(r)&&!a(r))throw new h("stream",["ReadableStream","WritableStream","Stream"],r);return t.exports.addAbortSignalNoValidate(e,r)},t.exports.addAbortSignalNoValidate=function(t,e){if("object"!=typeof t||!("aborted"in t))return e;const s=o(e)?()=>{e.destroy(new i(void 0,{cause:t.reason}))}:()=>{e[l](new i(void 0,{cause:t.reason}))};if(t.aborted)s();else{c=c||r(7206).addAbortListener;const i=c(t,s);u(e,i[n])}return e}},4115(t,e,r){"use strict";const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r(7744),{Buffer:a}=r(181),{inspect:l}=r(7206);t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}unshift(t){const e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}shift(){if(0===this.length)return;const t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(0===this.length)return"";let e=this.head,r=""+e.data;for(;null!==(e=e.next);)r+=t+e.data;return r}concat(t){if(0===this.length)return a.alloc(0);const e=a.allocUnsafe(t>>>0);let r=this.head,n=0;for(;r;)s(e,r.data,n),n+=r.data.length,r=r.next;return e}consume(t,e){const r=this.head.data;if(t<r.length){const e=r.slice(0,t);return this.head.data=r.slice(t),e}return t===r.length?this.shift():e?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[i](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let e="",r=this.head,i=0;do{const s=r.data;if(!(t>s.length)){t===s.length?(e+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(e+=n(s,0,t),this.head=r,r.data=n(s,t));break}e+=s,t-=s.length,++i}while(null!==(r=r.next));return this.length-=i,e}_getBuffer(t){const e=a.allocUnsafe(t),r=t;let n=this.head,i=0;do{const a=n.data;if(!(t>a.length)){t===a.length?(s(e,a,r-t),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(e,new o(a.buffer,a.byteOffset,t),r-t),this.head=n,n.data=a.slice(t));break}s(e,a,r-t),t-=a.length,++i}while(null!==(n=n.next));return this.length-=i,e}[Symbol.for("nodejs.util.inspect.custom")](t,e){return l(this,{...e,depth:0,customInspect:!1})}}},8504(t,e,r){"use strict";const{pipeline:n}=r(5232),i=r(7400),{destroyer:s}=r(8118),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:u,isTransformStream:h,isWritableStream:c,isReadableStream:d}=r(2225),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:g}}=r(3845),b=r(9327);t.exports=function(...t){if(0===t.length)throw new g("streams");if(1===t.length)return i.from(t[0]);const e=[...t];if("function"==typeof t[0]&&(t[0]=i.from(t[0])),"function"==typeof t[t.length-1]){const e=t.length-1;t[e]=i.from(t[e])}for(let r=0;r<t.length;++r)if(o(t[r])||u(t[r])){if(r<t.length-1&&!(a(t[r])||d(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be readable");if(r>0&&!(l(t[r])||c(t[r])||h(t[r])))throw new p(`streams[${r}]`,e[r],"must be writable")}let r,m,y,w,_;const v=t[0],S=n(t,(function(t){const e=w;w=null,e?e(t):t?_.destroy(t):x||E||_.destroy()})),E=!!(l(v)||c(v)||h(v)),x=!!(a(S)||d(S)||h(S));if(_=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(o(v))_._write=function(t,e,n){v.write(t,e)?n():r=n},_._final=function(t){v.end(),m=t},v.on("drain",(function(){if(r){const t=r;r=null,t()}}));else if(u(v)){const t=(h(v)?v.writable:v).getWriter();_._write=async function(e,r,n){try{await t.ready,t.write(e).catch((()=>{})),n()}catch(t){n(t)}},_._final=async function(e){try{await t.ready,t.close().catch((()=>{})),m=e}catch(t){e(t)}}}const t=h(S)?S.readable:S;b(t,(()=>{if(m){const t=m;m=null,t()}}))}if(x)if(o(S))S.on("readable",(function(){if(y){const t=y;y=null,t()}})),S.on("end",(function(){_.push(null)})),_._read=function(){for(;;){const t=S.read();if(null===t)return void(y=_._read);if(!_.push(t))return}};else if(u(S)){const t=(h(S)?S.readable:S).getReader();_._read=async function(){for(;;)try{const{value:e,done:r}=await t.read();if(!_.push(e))return;if(r)return void _.push(null)}catch{return}}}return _._destroy=function(t,e){t||null===w||(t=new f),y=null,r=null,m=null,null===w?e(t):(w=e,o(S)&&s(S,t))},_}},8118(t,e,r){"use strict";const n=r(4422),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r(3845),{Symbol:a}=r(7744),{kIsDestroyed:l,isDestroyed:u,isFinished:h,isServerRequest:c}=r(2225),d=a("kDestroy"),f=a("kConstruct");function p(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function g(t,e,r){let i=!1;function s(e){if(i)return;i=!0;const s=t._readableState,o=t._writableState;p(e,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(e),e?n.nextTick(b,t,e):n.nextTick(m,t)}try{t._destroy(e||null,s)}catch(e){s(e)}}function b(t,e){y(t,e),m(t)}function m(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(null!=r&&r.emitClose||null!=e&&e.emitClose)&&t.emit("close")}function y(t,e){const r=t._readableState,n=t._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function w(t,e,r){const i=t._readableState,s=t._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?t.destroy(e):e&&(e.stack,s&&!s.errored&&(s.errored=e),i&&!i.errored&&(i.errored=e),r?n.nextTick(y,t,e):y(t,e))}function _(t){let e=!1;function r(r){if(e)return void w(t,null!=r?r:new s);e=!0;const i=t._readableState,o=t._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?t.emit(d,r):r?w(t,r,!0):n.nextTick(v,t)}try{t._construct((t=>{n.nextTick(r,t)}))}catch(t){n.nextTick(r,t)}}function v(t){t.emit(f)}function S(t){return(null==t?void 0:t.setHeader)&&"function"==typeof t.abort}function E(t){t.emit("close")}function x(t,e){t.emit("error",e),n.nextTick(E,t)}t.exports={construct:function(t,e){if("function"!=typeof t._construct)return;const r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(f,e),t.listenerCount(f)>1||n.nextTick(_,t)},destroyer:function(t,e){t&&!u(t)&&(e||h(t)||(e=new o),c(t)?(t.socket=null,t.destroy(e)):S(t)?t.abort():S(t.req)?t.req.abort():"function"==typeof t.destroy?t.destroy(e):"function"==typeof t.close?t.close():e?n.nextTick(x,t,e):n.nextTick(E,t),t.destroyed||(t[l]=!0))},destroy:function(t,e){const r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof e&&e(),this):(p(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?g(this,t,e):this.once(d,(function(r){g(this,i(r,t),e)})),this)},undestroy:function(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=!1===t.readable,t.endEmitted=!1===t.readable),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=!1===e.writable,e.ending=!1===e.writable,e.finished=!1===e.writable)},errorOrDestroy:w}},7400(t,e,r){"use strict";const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:s,ObjectSetPrototypeOf:o}=r(7744);t.exports=u;const a=r(2382),l=r(9282);o(u.prototype,a.prototype),o(u,a);{const t=s(l.prototype);for(let e=0;e<t.length;e++){const r=t[e];u.prototype[r]||(u.prototype[r]=l.prototype[r])}}function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),l.call(this,t),t?(this.allowHalfOpen=!1!==t.allowHalfOpen,!1===t.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===t.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let h,c;function d(){return void 0===h&&(h={}),h}n(u.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}}),u.fromWeb=function(t,e){return d().newStreamDuplexFromReadableWritablePair(t,e)},u.toWeb=function(t){return d().newReadableWritablePairFromDuplex(t)},u.from=function(t){return c||(c=r(5048)),c(t,"body")}},5048(t,e,r){const n=r(4422),i=r(181),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:u,isWritableNodeStream:h,isDuplexNodeStream:c,isReadableStream:d,isWritableStream:f}=r(2225),p=r(9327),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=r(3845),{destroyer:y}=r(8118),w=r(7400),_=r(2382),v=r(9282),{createDeferredPromise:S}=r(7206),E=r(8806),x=globalThis.Blob||i.Blob,A=void 0!==x?function(t){return t instanceof x}:function(t){return!1},R=globalThis.AbortController||r(6584).AbortController,{FunctionPrototypeCall:O}=r(7744);class T extends w{constructor(t){super(t),!1===(null==t?void 0:t.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==t?void 0:t.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function k(t){const e=t.readable&&"function"!=typeof t.readable.read?_.wrap(t.readable):t.readable,r=t.writable;let n,i,a,l,u,h=!!s(e),c=!!o(r);function d(t){const e=l;l=null,e?e(t):t&&u.destroy(t)}return u=new T({readableObjectMode:!(null==e||!e.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:h,writable:c}),c&&(p(r,(t=>{c=!1,t&&y(e,t),d(t)})),u._write=function(t,e,i){r.write(t,e)?i():n=i},u._final=function(t){r.end(),i=t},r.on("drain",(function(){if(n){const t=n;n=null,t()}})),r.on("finish",(function(){if(i){const t=i;i=null,t()}}))),h&&(p(e,(t=>{h=!1,t&&y(e,t),d(t)})),e.on("readable",(function(){if(a){const t=a;a=null,t()}})),e.on("end",(function(){u.push(null)})),u._read=function(){for(;;){const t=e.read();if(null===t)return void(a=u._read);if(!u.push(t))return}}),u._destroy=function(t,s){t||null===l||(t=new g),a=null,n=null,i=null,null===l?s(t):(l=s,y(r,t),y(e,t))},u}t.exports=function t(e,r){if(c(e))return e;if(u(e))return k({readable:e});if(h(e))return k({writable:e});if(l(e))return k({writable:!1,readable:!1});if(d(e))return k({readable:_.fromWeb(e)});if(f(e))return k({writable:v.fromWeb(e)});if("function"==typeof e){const{value:t,write:i,final:s,destroy:o}=function(t){let{promise:e,resolve:r}=S();const i=new R,s=i.signal,o=t(async function*(){for(;;){const t=e;e=null;const{chunk:i,done:o,cb:a}=await t;if(n.nextTick(a),o)return;if(s.aborted)throw new g(void 0,{cause:s.reason});({promise:e,resolve:r}=S()),yield i}}(),{signal:s});return{value:o,write(t,e,n){const i=r;r=null,i({chunk:t,done:!1,cb:n})},final(t){const e=r;r=null,e({done:!0,cb:t})},destroy(t,e){i.abort(),e(t)}}}(e);if(a(t))return E(T,t,{objectMode:!0,write:i,final:s,destroy:o});const l=null==t?void 0:t.then;if("function"==typeof l){let e;const r=O(l,t,(t=>{if(null!=t)throw new m("nully","body",t)}),(t=>{y(e,t)}));return e=new T({objectMode:!0,readable:!1,write:i,final(t){s((async()=>{try{await r,n.nextTick(t,null)}catch(e){n.nextTick(t,e)}}))},destroy:o})}throw new m("Iterable, AsyncIterable or AsyncFunction",r,t)}if(A(e))return t(e.arrayBuffer());if(a(e))return E(T,e,{objectMode:!0,writable:!1});if(d(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return T.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable)){return k({readable:null!=e&&e.readable?u(null==e?void 0:e.readable)?null==e?void 0:e.readable:t(e.readable):void 0,writable:null!=e&&e.writable?h(null==e?void 0:e.writable)?null==e?void 0:e.writable:t(e.writable):void 0})}const i=null==e?void 0:e.then;if("function"==typeof i){let t;return O(i,e,(e=>{null!=e&&t.push(e),t.push(null)}),(e=>{y(t,e)})),t=new T({objectMode:!0,writable:!1,read(){}})}throw new b(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},9327(t,e,r){"use strict";const n=r(4422),{AbortError:i,codes:s}=r(3845),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:l,once:u}=r(7206),{validateAbortSignal:h,validateFunction:c,validateObject:d,validateBoolean:f}=r(3299),{Promise:p,PromisePrototypeThen:g,SymbolDispose:b}=r(7744),{isClosed:m,isReadable:y,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:A,isWritableFinished:R,isWritableErrored:O,isNodeStream:T,willEmitClose:k,kIsClosedPromise:M}=r(2225);let P;const I=()=>{};function L(t,e,s){var f,p;if(2===arguments.length?(s=e,e=l):null==e?e=l:d(e,"options"),c(s,"callback"),h(e.signal,"options.signal"),s=u(s),_(t)||A(t))return function(t,e,s){let o=!1,a=I;if(e.signal)if(a=()=>{o=!0,s.call(t,new i(void 0,{cause:e.signal.reason}))},e.signal.aborted)n.nextTick(a);else{P=P||r(7206).addAbortListener;const n=P(e.signal,a),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}const l=(...e)=>{o||n.nextTick((()=>s.apply(t,e)))};return g(t[M].promise,l,l),I}(t,e,s);if(!T(t))throw new o("stream",["ReadableStream","WritableStream","Stream"],t);const L=null!==(f=e.readable)&&void 0!==f?f:w(t),D=null!==(p=e.writable)&&void 0!==p?p:x(t),C=t._writableState,N=t._readableState,j=()=>{t.writable||W()};let F=k(t)&&w(t)===L&&x(t)===D,$=R(t,!1);const W=()=>{$=!0,t.destroyed&&(F=!1),(!F||t.readable&&!L)&&(L&&!B||s.call(t))};let B=v(t,!1);const U=()=>{B=!0,t.destroyed&&(F=!1),(!F||t.writable&&!D)&&(D&&!$||s.call(t))},z=e=>{s.call(t,e)};let H=m(t);const G=()=>{H=!0;const e=O(t)||S(t);return e&&"boolean"!=typeof e?s.call(t,e):L&&!B&&w(t,!0)&&!v(t,!1)?s.call(t,new a):!D||$||R(t,!1)?void s.call(t):s.call(t,new a)},V=()=>{H=!0;const e=O(t)||S(t);if(e&&"boolean"!=typeof e)return s.call(t,e);s.call(t)},q=()=>{t.req.on("finish",W)};!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?D&&!C&&(t.on("end",j),t.on("close",j)):(t.on("complete",W),F||t.on("abort",G),t.req?q():t.on("request",q)),F||"boolean"!=typeof t.aborted||t.on("aborted",G),t.on("end",U),t.on("finish",W),!1!==e.error&&t.on("error",z),t.on("close",G),H?n.nextTick(G):null!=C&&C.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(L||F&&!y(t)||!$&&!1!==E(t))&&(D||F&&!E(t)||!B&&!1!==y(t))?N&&t.req&&t.aborted&&n.nextTick(V):n.nextTick(V);const Y=()=>{s=I,t.removeListener("aborted",G),t.removeListener("complete",W),t.removeListener("abort",G),t.removeListener("request",q),t.req&&t.req.removeListener("finish",W),t.removeListener("end",j),t.removeListener("close",j),t.removeListener("finish",W),t.removeListener("end",U),t.removeListener("error",z),t.removeListener("close",G)};if(e.signal&&!H){const o=()=>{const r=s;Y(),r.call(t,new i(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)n.nextTick(o);else{P=P||r(7206).addAbortListener;const n=P(e.signal,o),i=s;s=u(((...e)=>{n[b](),i.apply(t,e)}))}}return Y}t.exports=L,t.exports.finished=function(t,e){var r;let n=!1;return null===e&&(e=l),null!==(r=e)&&void 0!==r&&r.cleanup&&(f(e.cleanup,"cleanup"),n=e.cleanup),new p(((r,i)=>{const s=L(t,e,(t=>{n&&s(),t?i(t):r()}))}))}},8806(t,e,r){"use strict";const n=r(4422),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r(7744),{Buffer:a}=r(181),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:u}=r(3845).codes;t.exports=function(t,e,r){let h,c;if("string"==typeof e||e instanceof a)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});if(e&&e[s])c=!0,h=e[s]();else{if(!e||!e[o])throw new l("iterable",["Iterable"],e);c=!1,h=e[o]()}const d=new t({objectMode:!0,highWaterMark:1,...r});let f=!1;return d._read=function(){f||(f=!0,async function(){for(;;){try{const{value:t,done:e}=c?await h.next():h.next();if(e)d.push(null);else{const e=t&&"function"==typeof t.then?await t:t;if(null===e)throw f=!1,new u;if(d.push(e))continue;f=!1}}catch(t){d.destroy(t)}break}}())},d._destroy=function(t,e){i(async function(t){const e=null!=t,r="function"==typeof h.throw;if(e&&r){const{value:e,done:r}=await h.throw(t);if(await e,r)return}if("function"==typeof h.return){const{value:t}=await h.return();await t}}(t),(()=>n.nextTick(e,t)),(r=>n.nextTick(e,r||t)))},d}},6233(t,e,r){"use strict";const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(7744),{EventEmitter:s}=r(4434);function o(t){s.call(this,t)}function a(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?n(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}i(o.prototype,s.prototype),i(o,s),o.prototype.pipe=function(t,e){const r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",l),r.on("close",u));let o=!1;function l(){o||(o=!0,t.end())}function u(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){c(),0===s.listenerCount(this,"error")&&this.emit("error",t)}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return a(r,"error",h),a(t,"error",h),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t},t.exports={Stream:o,prependListener:a}},5533(t,e,r){"use strict";const n=globalThis.AbortController||r(6584).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r(3845),{validateAbortSignal:u,validateInteger:h,validateObject:c}=r(3299),d=r(7744).Symbol("kWeak"),f=r(7744).Symbol("kResistStopPropagation"),{finished:p}=r(9327),g=r(8504),{addAbortSignalNoValidate:b}=r(4769),{isWritable:m,isNodeStream:y}=r(2225),{deprecate:w}=r(7206),{ArrayPrototypePush:_,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:T,Symbol:k}=r(7744),M=k("kEmpty"),P=k("kEof");function I(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");let n=1;null!=(null==e?void 0:e.concurrency)&&(n=S(e.concurrency));let i=n-1;return null!=(null==e?void 0:e.highWaterMark)&&(i=S(e.highWaterMark)),h(n,"options.concurrency",1),h(i,"options.highWaterMark",0),i+=n,async function*(){const s=r(7206).AbortSignalAny([null==e?void 0:e.signal].filter(v)),o=this,a=[],u={signal:s};let h,c,d=!1,f=0;function p(){d=!0,g()}function g(){f-=1,b()}function b(){c&&!d&&f<n&&a.length<i&&(c(),c=null)}!async function(){try{for await(let e of o){if(d)return;if(s.aborted)throw new l;try{if(e=t(e,u),e===M)continue;e=O(e)}catch(t){e=R(t)}f+=1,T(e,g,p),a.push(e),h&&(h(),h=null),!d&&(a.length>=i||f>=n)&&await new A((t=>{c=t}))}a.push(P)}catch(t){const e=R(t);T(e,g,p),a.push(e)}finally{d=!0,h&&(h(),h=null)}}();try{for(;;){for(;a.length>0;){const t=await a[0];if(t===P)return;if(s.aborted)throw new l;t!==M&&(yield t),a.shift(),b()}await new A((t=>{h=t}))}}finally{d=!0,c&&(c(),c=null)}}.call(this)}async function L(t,e=void 0){for await(const r of D.call(this,t,e))return!0;return!1}function D(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return I.call(this,(async function(e,r){return await t(e,r)?e:M}),e)}class C extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(t){if(t=E(t),x(t))return 0;if(t<0)throw new a("number",">= 0",t);return t}t.exports.streamReturningOperators={asIndexedPairs:w((function(t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),async function*(){let e=0;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l({cause:t.signal.reason});yield[e++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;t--<=0&&(yield r)}}.call(this)},filter:D,flatMap:function(t,e){const r=I.call(this,t,e);return async function*(){for await(const t of r)yield*t}.call(this)},map:I,take:function(t,e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=N(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;if(t-- >0&&(yield r),t<=0)return}}.call(this)},compose:function(t,e){if(null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),y(t)&&!m(t))throw new i("stream",t,"must be writable");const r=g(this,t);return null!=e&&e.signal&&b(e.signal,r),r}},t.exports.promiseReturningOperators={every:async function(t,e=void 0){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);return!await L.call(this,(async(...e)=>!await t(...e)),e)},forEach:async function(t,e){if("function"!=typeof t)throw new s("fn",["Function","AsyncFunction"],t);for await(const r of I.call(this,(async function(e,r){return await t(e,r),M}),e));},reduce:async function(t,e,r){var i;if("function"!=typeof t)throw new s("reducer",["Function","AsyncFunction"],t);null!=r&&c(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let o=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const t=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(t)),t}const a=new n,h=a.signal;if(null!=r&&r.signal){const t={once:!0,[d]:this,[f]:!0};r.signal.addEventListener("abort",(()=>a.abort()),t)}let g=!1;try{for await(const n of this){var b;if(g=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;o?e=await t(e,n,{signal:h}):(e=n,o=!0)}if(!g&&!o)throw new C}finally{a.abort()}return e},toArray:async function(t){null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:t.signal.reason});_(e,n)}return e},some:L,find:async function(t,e){for await(const r of D.call(this,t,e))return r}}},6410(t,e,r){"use strict";const{ObjectSetPrototypeOf:n}=r(7744);t.exports=s;const i=r(4552);function s(t){if(!(this instanceof s))return new s(t);i.call(this,t)}n(s.prototype,i.prototype),n(s,i),s.prototype._transform=function(t,e,r){r(null,t)}},5232(t,e,r){const n=r(4422),{ArrayIsArray:i,Promise:s,SymbolAsyncIterator:o,SymbolDispose:a}=r(7744),l=r(9327),{once:u}=r(7206),h=r(8118),c=r(7400),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:m},AbortError:y}=r(3845),{validateFunction:w,validateAbortSignal:_}=r(3299),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:A,isWebStream:R,isReadableStream:O,isReadableFinished:T}=r(2225),k=globalThis.AbortController||r(6584).AbortController;let M,P,I;function L(t,e,r){let n=!1;t.on("close",(()=>{n=!0}));return{destroy:e=>{n||(n=!0,h.destroyer(t,e||new b("pipe")))},cleanup:l(t,{readable:e,writable:r},(t=>{n=!t}))}}function D(t){if(v(t))return t;if(E(t))return async function*(t){P||(P=r(2382));yield*P.prototype[o].call(t)}(t);throw new f("val",["Readable","Iterable","AsyncIterable"],t)}async function C(t,e,r,{end:n}){let i,o=null;const a=t=>{if(t&&(i=t),o){const t=o;o=null,t()}},u=()=>new s(((t,e)=>{i?e(i):o=()=>{i?e(i):t()}}));e.on("drain",a);const h=l(e,{readable:!1},a);try{e.writableNeedDrain&&await u();for await(const r of t)e.write(r)||await u();n&&(e.end(),await u()),r()}catch(t){r(i!==t?d(i,t):t)}finally{h(),e.off("drain",a)}}async function N(t,e,r,{end:n}){A(e)&&(e=e.writable);const i=e.getWriter();try{for await(const e of t)await i.ready,i.write(e).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(t){try{await i.abort(t),r(t)}catch(t){r(t)}}}function j(t,e,s){if(1===t.length&&i(t[0])&&(t=t[0]),t.length<2)throw new g("streams");const o=new k,l=o.signal,u=null==s?void 0:s.signal,h=[];function d(){W(new y)}let b,m,w;_(u,"options.signal"),I=I||r(7206).addAbortListener,u&&(b=I(u,d));const T=[];let P,j=0;function $(t){W(t,0==--j)}function W(t,r){var i;if(!t||m&&"ERR_STREAM_PREMATURE_CLOSE"!==m.code||(m=t),m||r){for(;T.length;)T.shift()(m);null===(i=b)||void 0===i||i[a](),o.abort(),r&&(m||h.forEach((t=>t())),n.nextTick(e,m,w))}}for(let H=0;H<t.length;H++){const G=t[H],V=H<t.length-1,q=H>0,Y=V||!1!==(null==s?void 0:s.end),K=H===t.length-1;if(x(G)){if(Y){const{destroy:Z,cleanup:J}=L(G,V,q);T.push(Z),S(G)&&K&&h.push(J)}function B(t){t&&"AbortError"!==t.name&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code&&$(t)}G.on("error",B),S(G)&&K&&h.push((()=>{G.removeListener("error",B)}))}if(0===H)if("function"==typeof G){if(P=G({signal:l}),!v(P))throw new p("Iterable, AsyncIterable or Stream","source",P)}else P=v(G)||E(G)||A(G)?G:c.from(G);else if("function"==typeof G){var U;if(A(P))P=D(null===(U=P)||void 0===U?void 0:U.readable);else P=D(P);if(P=G(P,{signal:l}),V){if(!v(P,!0))throw new p("AsyncIterable",`transform[${H-1}]`,P)}else{var z;M||(M=r(6410));const Q=new M({objectMode:!0}),X=null===(z=P)||void 0===z?void 0:z.then;if("function"==typeof X)j++,X.call(P,(t=>{w=t,null!=t&&Q.write(t),Y&&Q.end(),n.nextTick($)}),(t=>{Q.destroy(t),n.nextTick($,t)}));else if(v(P,!0))j++,C(P,Q,$,{end:Y});else{if(!O(P)&&!A(P))throw new p("AsyncIterable or Promise","destination",P);{const rt=P.readable||P;j++,C(rt,Q,$,{end:Y})}}P=Q;const{destroy:tt,cleanup:et}=L(P,!1,!0);T.push(tt),K&&h.push(et)}}else if(x(G)){if(E(P)){j+=2;const nt=F(P,G,$,{end:Y});S(G)&&K&&h.push(nt)}else if(A(P)||O(P)){const it=P.readable||P;j++,C(it,G,$,{end:Y})}else{if(!v(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,C(P,G,$,{end:Y})}P=G}else if(R(G)){if(E(P))j++,N(D(P),G,$,{end:Y});else if(O(P)||v(P))j++,N(P,G,$,{end:Y});else{if(!A(P))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);j++,N(P.readable,G,$,{end:Y})}P=G}else P=c.from(G)}return(null!=l&&l.aborted||null!=u&&u.aborted)&&n.nextTick(d),P}function F(t,e,r,{end:i}){let s=!1;if(e.on("close",(()=>{s||r(new m)})),t.pipe(e,{end:!1}),i){function o(){s=!0,e.end()}T(t)?n.nextTick(o):t.once("end",o)}else r();return l(t,{readable:!0,writable:!1},(e=>{const n=t._readableState;e&&"ERR_STREAM_PREMATURE_CLOSE"===e.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?t.once("end",r).once("error",r):r(e)})),l(e,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:j,pipeline:function(...t){return j(t,u(function(t){return w(t[t.length-1],"streams[stream.length - 1]"),t.pop()}(t)))}}},2382(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeIndexOf:i,NumberIsInteger:s,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:u,ObjectSetPrototypeOf:h,Promise:c,SafeSet:d,SymbolAsyncDispose:f,SymbolAsyncIterator:p,Symbol:g}=r(7744);t.exports=H,H.ReadableState=z;const{EventEmitter:b}=r(4434),{Stream:m,prependListener:y}=r(6233),{Buffer:w}=r(181),{addAbortSignal:_}=r(4769),v=r(9327);let S=r(7206).debuglog("stream",(t=>{S=t}));const E=r(4115),x=r(8118),{getHighWaterMark:A,getDefaultHighWaterMark:R}=r(2073),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:k,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:I},AbortError:L}=r(3845),{validateObject:D}=r(3299),C=g("kPaused"),{StringDecoder:N}=r(3141),j=r(8806);h(H.prototype,m.prototype),h(H,m);const F=()=>{},{errorOrDestroy:$}=x,W=2048,B=4096;function U(t){return{enumerable:!1,get(){return!!(this.state&t)},set(e){e?this.state|=t:this.state&=~t}}}function z(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7400)),this.state=6192,t&&t.objectMode&&(this.state|=1),n&&t&&t.readableObjectMode&&(this.state|=1),this.highWaterMark=t?A(this,t,"readableHighWaterMark",n):R(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,t&&!1===t.emitClose&&(this.state&=-2049),t&&!1===t.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new N(t.encoding),this.encoding=t.encoding)}function H(t){if(!(this instanceof H))return new H(t);const e=this instanceof r(7400);this._readableState=new z(t,this,e),t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&!e&&_(t.signal,this)),m.call(this,t),x.construct(this,(()=>{this._readableState.needReadable&&Z(this,this._readableState)}))}function G(t,e,r,n){S("readableAddChunk",e);const i=t._readableState;let s;if(1&i.state||("string"==typeof e?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=w.from(e,r).toString(i.encoding):(e=w.from(e,r),r=""))):e instanceof w?r="":m._isUint8Array(e)?(e=m._uint8ArrayToBuffer(e),r=""):null!=e&&(s=new T("chunk",["string","Buffer","Uint8Array"],e))),s)$(t,s);else if(null===e)i.state&=-9,function(t,e){if(S("onEofChunk"),e.ended)return;if(e.decoder){const t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?Y(t):(e.needReadable=!1,e.emittedReadable=!0,K(t))}(t,i);else if(1&i.state||e&&e.length>0)if(n)if(4&i.state)$(t,new I);else{if(i.destroyed||i.errored)return!1;V(t,i,e,!0)}else if(i.ended)$(t,new P);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||0!==e.length?V(t,i,e,!1):Z(t,i)):V(t,i,e,!1)}else n||(i.state&=-9,Z(t,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function V(t,e,r,n){e.flowing&&0===e.length&&!e.sync&&t.listenerCount("data")>0?(65536&e.state?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),64&e.state&&Y(t)),Z(t,e)}l(z.prototype,{objectMode:U(1),ended:U(2),endEmitted:U(4),reading:U(8),constructed:U(16),sync:U(32),needReadable:U(64),emittedReadable:U(128),readableListening:U(256),resumeScheduled:U(512),errorEmitted:U(1024),emitClose:U(W),autoDestroy:U(B),destroyed:U(8192),closed:U(16384),closeEmitted:U(32768),multiAwaitDrain:U(65536),readingMore:U(1<<17),dataEmitted:U(1<<18)}),H.prototype.destroy=x.destroy,H.prototype._undestroy=x.undestroy,H.prototype._destroy=function(t,e){e(t)},H.prototype[b.captureRejectionSymbol]=function(t){this.destroy(t)},H.prototype[f]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new L,this.destroy(t)),new c(((e,r)=>v(this,(n=>n&&n!==t?r(n):e(null)))))},H.prototype.push=function(t,e){return G(this,t,e,!1)},H.prototype.unshift=function(t,e){return G(this,t,e,!0)},H.prototype.isPaused=function(){const t=this._readableState;return!0===t[C]||!1===t.flowing},H.prototype.setEncoding=function(t){const e=new N(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const t of r)n+=e.write(t);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function q(t,e){return t<=0||0===e.length&&e.ended?0:1&e.state?1:o(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}function Y(t){const e=t._readableState;S("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(S("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(K,t))}function K(t){const e=t._readableState;S("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||e.errored||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,et(t)}function Z(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,n.nextTick(J,t,e))}function J(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){const r=e.length;if(S("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function Q(t){const e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!1===e[C]?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function X(t){S("readable nexttick read 0"),t.read(0)}function tt(t,e){S("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),et(t),e.flowing&&!e.reading&&t.read(0)}function et(t){const e=t._readableState;for(S("flow",e.flowing);e.flowing&&null!==t.read(););}function rt(t,e){"function"!=typeof t.read&&(t=H.wrap(t,{objectMode:!0}));const r=async function*(t,e){let r,n=F;function i(e){this===t?(n(),n=F):n=e}t.on("readable",i);const s=v(t,{writable:!1},(t=>{r=t?O(r,t):null,n(),n=F}));try{for(;;){const e=t.destroyed?null:t.read();if(null!==e)yield e;else{if(r)throw r;if(null===r)return;await new c(i)}}}catch(t){throw r=O(r,t),r}finally{!r&&!1===(null==e?void 0:e.destroyOnReturn)||void 0!==r&&!t._readableState.autoDestroy?(t.off("readable",i),s()):x.destroyer(t,null)}}(t,e);return r.stream=t,r}function nt(t,e){if(0===e.length)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function it(t){const e=t._readableState;S("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(st,e,t))}function st(t,e){if(S("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&0===t.length)if(t.endEmitted=!0,e.emit("end"),e.writable&&!1===e.allowHalfOpen)n.nextTick(ot,e);else if(t.autoDestroy){const t=e._writableState;(!t||t.autoDestroy&&(t.finished||!1===t.writable))&&e.destroy()}}function ot(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}let at;function lt(){return void 0===at&&(at={}),at}H.prototype.read=function(t){S("read",t),void 0===t?t=NaN:s(t)||(t=a(t,10));const e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=function(t){if(t>1073741824)throw new M("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,++t}(t)),0!==t&&(e.state&=-129),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return S("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?it(this):Y(this),null;if(0===(t=q(t,e))&&e.ended)return 0===e.length&&it(this),null;let n,i=!!(64&e.state);if(S("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,S("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),e.state|=40,0===e.length&&(e.state|=64);try{this._read(e.highWaterMark)}catch(t){$(this,t)}e.state&=-33,e.reading||(t=q(r,e))}return n=t>0?nt(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&it(this)),null===n||e.errorEmitted||e.closeEmitted||(e.dataEmitted=!0,this.emit("data",n)),n},H.prototype._read=function(t){throw new k("_read()")},H.prototype.pipe=function(t,e){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),S("pipe count=%d opts=%j",i.pipes.length,e);const s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?a:b;function o(e,n){S("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),l&&t.removeListener("drain",l);t.removeListener("error",f),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}())}function a(){S("onend"),t.end()}let l;i.endEmitted?n.nextTick(s):r.once("end",s),t.on("unpipe",o);let u=!1;function h(){u||(1===i.pipes.length&&i.pipes[0]===t?(S("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=function(t,e){return function(){const r=t._readableState;r.awaitDrainWriters===e?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!t.listenerCount("data")||t.resume()}}(r,t),t.on("drain",l))}function c(e){S("ondata");const r=t.write(e);S("dest.write",r),!1===r&&h()}function f(e){if(S("onerror",e),b(),t.removeListener("error",f),0===t.listenerCount("error")){const r=t._writableState||t._readableState;r&&!r.errorEmitted?$(t,e):t.emit("error",e)}}function p(){t.removeListener("finish",g),b()}function g(){S("onfinish"),t.removeListener("close",p),b()}function b(){S("unpipe"),r.unpipe(t)}return r.on("data",c),y(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",r),!0===t.writableNeedDrain?h():i.flowing||(S("pipe resume"),r.resume()),t},H.prototype.unpipe=function(t){const e=this._readableState;if(0===e.pipes.length)return this;if(!t){const t=e.pipes;e.pipes=[],this.pause();for(let e=0;e<t.length;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(e.pipes,t);return-1===r||(e.pipes.splice(r,1),0===e.pipes.length&&this.pause(),t.emit("unpipe",this,{hasUnpiped:!1})),this},H.prototype.on=function(t,e){const r=m.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Y(this):i.reading||n.nextTick(X,this))),r},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(t,e){const r=m.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(Q,this),r},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(t){const e=m.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(Q,this),e},H.prototype.resume=function(){const t=this._readableState;return t.flowing||(S("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(tt,t,e))}(this,t)),t[C]=!1,this},H.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[C]=!0,this},H.prototype.wrap=function(t){let e=!1;t.on("data",(r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())})),t.on("end",(()=>{this.push(null)})),t.on("error",(t=>{$(this,t)})),t.on("close",(()=>{this.destroy()})),t.on("destroy",(()=>{this.destroy()})),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};const r=u(t);for(let e=1;e<r.length;e++){const n=r[e];void 0===this[n]&&"function"==typeof t[n]&&(this[n]=t[n].bind(t))}return this},H.prototype[p]=function(){return rt(this)},H.prototype.iterator=function(t){return void 0!==t&&D(t,"options"),rt(this,t)},l(H.prototype,{readable:{__proto__:null,get(){const t=this._readableState;return!(!t||!1===t.readable||t.destroyed||t.errorEmitted||t.endEmitted)},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(z.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[C]},set(t){this[C]=!!t}}}),H._fromList=nt,H.from=function(t,e){return j(H,t,e)},H.fromWeb=function(t,e){return lt().newStreamReadableFromReadableStream(t,e)},H.toWeb=function(t,e){return lt().newReadableStreamFromStreamReadable(t,e)},H.wrap=function(t,e){var r,n;return new H({objectMode:null===(r=null!==(n=t.readableObjectMode)&&void 0!==n?n:t.objectMode)||void 0===r||r,...e,destroy(e,r){x.destroyer(t,e),r(e)}}).wrap(t)}},2073(t,e,r){"use strict";const{MathFloor:n,NumberIsInteger:i}=r(7744),{validateInteger:s}=r(3299),{ERR_INVALID_ARG_VALUE:o}=r(3845).codes;let a=16384,l=16;function u(t){return t?l:a}t.exports={getHighWaterMark:function(t,e,r,s){const a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,s,r);if(null!=a){if(!i(a)||a<0){throw new o(s?`options.${r}`:"options.highWaterMark",a)}return n(a)}return u(t.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(t,e){s(e,"value",0),t?l=e:a=e}}},4552(t,e,r){"use strict";const{ObjectSetPrototypeOf:n,Symbol:i}=r(7744);t.exports=u;const{ERR_METHOD_NOT_IMPLEMENTED:s}=r(3845).codes,o=r(7400),{getHighWaterMark:a}=r(2073);n(u.prototype,o.prototype),n(u,o);const l=i("kCallback");function u(t){if(!(this instanceof u))return new u(t);const e=t?a(this,t,"readableHighWaterMark",!0):null;0===e&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),o.call(this,t),this._readableState.sync=!1,this[l]=null,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function h(t){"function"!=typeof this._flush||this.destroyed?(this.push(null),t&&t()):this._flush(((e,r)=>{e?t?t(e):this.destroy(e):(null!=r&&this.push(r),this.push(null),t&&t())}))}function c(){this._final!==h&&h.call(this)}u.prototype._final=h,u.prototype._transform=function(t,e,r){throw new s("_transform()")},u.prototype._write=function(t,e,r){const n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,((t,e)=>{t?r(t):(null!=e&&this.push(e),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},u.prototype._read=function(){if(this[l]){const t=this[l];this[l]=null,t()}}},2225(t,e,r){"use strict";const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r(7744),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),u=s("nodejs.stream.writable"),h=s("nodejs.stream.disturbed"),c=s("nodejs.webstream.isClosedPromise"),d=s("nodejs.webstream.controllerErrorFunction");function f(t,e=!1){var r;return!(!t||"function"!=typeof t.pipe||"function"!=typeof t.on||e&&("function"!=typeof t.pause||"function"!=typeof t.resume)||t._writableState&&!1===(null===(r=t._readableState)||void 0===r?void 0:r.readable)||t._writableState&&!t._readableState)}function p(t){var e;return!(!t||"function"!=typeof t.write||"function"!=typeof t.on||t._readableState&&!1===(null===(e=t._writableState)||void 0===e?void 0:e.writable))}function g(t){return t&&(t._readableState||t._writableState||"function"==typeof t.write&&"function"==typeof t.on||"function"==typeof t.pipe&&"function"==typeof t.on)}function b(t){return!(!t||g(t)||"function"!=typeof t.pipeThrough||"function"!=typeof t.getReader||"function"!=typeof t.cancel)}function m(t){return!(!t||g(t)||"function"!=typeof t.getWriter||"function"!=typeof t.abort)}function y(t){return!(!t||g(t)||"object"!=typeof t.readable||"object"!=typeof t.writable)}function w(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[o]||null!=n&&n.destroyed)}function _(t){if(!p(t))return null;if(!0===t.writableEnded)return!0;const e=t._writableState;return(null==e||!e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)}function v(t,e){if(!f(t))return null;const r=t._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===e&&!0===r.ended&&0===r.length))}function S(t){return t&&null!=t[l]?t[l]:"boolean"!=typeof(null==t?void 0:t.readable)?null:!w(t)&&(f(t)&&t.readable&&!v(t))}function E(t){return t&&null!=t[u]?t[u]:"boolean"!=typeof(null==t?void 0:t.writable)?null:!w(t)&&(p(t)&&t.writable&&!_(t))}function x(t){return"boolean"==typeof t._closed&&"boolean"==typeof t._defaultKeepAlive&&"boolean"==typeof t._removedConnection&&"boolean"==typeof t._removedContLen}function A(t){return"boolean"==typeof t._sent100&&x(t)}t.exports={isDestroyed:w,kIsDestroyed:o,isDisturbed:function(t){var e;return!(!t||!(null!==(e=t[h])&&void 0!==e?e:t.readableDidRead||t.readableAborted))},kIsDisturbed:h,isErrored:function(t){var e,r,n,i,s,o,l,u,h,c;return!(!t||!(null!==(e=null!==(r=null!==(n=null!==(i=null!==(s=null!==(o=t[a])&&void 0!==o?o:t.readableErrored)&&void 0!==s?s:t.writableErrored)&&void 0!==i?i:null===(l=t._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=t._writableState)||void 0===u?void 0:u.errorEmitted)&&void 0!==r?r:null===(h=t._readableState)||void 0===h?void 0:h.errored)&&void 0!==e?e:null===(c=t._writableState)||void 0===c?void 0:c.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:d,kIsWritable:u,isClosed:function(t){if(!g(t))return null;if("boolean"==typeof t.closed)return t.closed;const e=t._writableState,r=t._readableState;return"boolean"==typeof(null==e?void 0:e.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==e?void 0:e.closed)||(null==r?void 0:r.closed):"boolean"==typeof t._closed&&x(t)?t._closed:null},isDuplexNodeStream:function(t){return!(!t||"function"!=typeof t.pipe||!t._readableState||"function"!=typeof t.on||"function"!=typeof t.write)},isFinished:function(t,e){return g(t)?!!w(t)||(!1===(null==e?void 0:e.readable)||!S(t))&&(!1===(null==e?void 0:e.writable)||!E(t)):null},isIterable:function(t,e){return null!=t&&(!0===e?"function"==typeof t[n]:!1===e?"function"==typeof t[i]:"function"==typeof t[n]||"function"==typeof t[i])},isReadableNodeStream:f,isReadableStream:b,isReadableEnded:function(t){if(!f(t))return null;if(!0===t.readableEnded)return!0;const e=t._readableState;return!(!e||e.errored)&&("boolean"!=typeof(null==e?void 0:e.ended)?null:e.ended)},isReadableFinished:v,isReadableErrored:function(t){var e,r;return g(t)?t.readableErrored?t.readableErrored:null!==(e=null===(r=t._readableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isNodeStream:g,isWebStream:function(t){return b(t)||m(t)||y(t)},isWritable:E,isWritableNodeStream:p,isWritableStream:m,isWritableEnded:_,isWritableFinished:function(t,e){if(!p(t))return null;if(!0===t.writableFinished)return!0;const r=t._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===e&&!0===r.ended&&0===r.length))},isWritableErrored:function(t){var e,r;return g(t)?t.writableErrored?t.writableErrored:null!==(e=null===(r=t._writableState)||void 0===r?void 0:r.errored)&&void 0!==e?e:null:null},isServerRequest:function(t){var e;return"boolean"==typeof t._consuming&&"boolean"==typeof t._dumped&&void 0===(null===(e=t.req)||void 0===e?void 0:e.upgradeOrConnect)},isServerResponse:A,willEmitClose:function(t){if(!g(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&A(t)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:y}},9282(t,e,r){"use strict";const n=r(4422),{ArrayPrototypeSlice:i,Error:s,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:h,Symbol:c,SymbolHasInstance:d}=r(7744);t.exports=D,D.WritableState=I;const{EventEmitter:f}=r(4434),p=r(6233).Stream,{Buffer:g}=r(181),b=r(8118),{addAbortSignal:m}=r(4769),{getHighWaterMark:y,getDefaultHighWaterMark:w}=r(2073),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:T}=r(3845).codes,{errorOrDestroy:k}=b;function M(){}u(D.prototype,p.prototype),u(D,p);const P=c("kOnFinished");function I(t,e,n){"boolean"!=typeof n&&(n=e instanceof r(7400)),this.objectMode=!(!t||!t.objectMode),n&&(this.objectMode=this.objectMode||!(!t||!t.writableObjectMode)),this.highWaterMark=t?y(this,t,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!t||!1!==t.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||!1!==t.emitClose,this.autoDestroy=!t||!1!==t.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function L(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}function D(t){const e=this instanceof r(7400);if(!e&&!o(D,this))return new D(t);this._writableState=new I(t,this,e),t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&m(t.signal,this)),p.call(this,t),b.construct(this,(()=>{const t=this._writableState;t.writing||U(this,t),G(this,t)}))}function C(t,e,r,i){const s=t._writableState;if("function"==typeof r)i=r,r=s.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new T(r)}else r=s.defaultEncoding;"function"!=typeof i&&(i=M)}if(null===e)throw new R;if(!s.objectMode)if("string"==typeof e)!1!==s.decodeStrings&&(e=g.from(e,r),r="buffer");else if(e instanceof g)r="buffer";else{if(!p._isUint8Array(e))throw new _("chunk",["string","Buffer","Uint8Array"],e);e=p._uint8ArrayToBuffer(e),r="buffer"}let o;return s.ending?o=new O:s.destroyed&&(o=new x("write")),o?(n.nextTick(i,o),k(t,o,!0),o):(s.pendingcb++,function(t,e,r,n,i){const s=e.objectMode?1:r.length;e.length+=s;const o=e.length<e.highWaterMark;o||(e.needDrain=!0);e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:n,callback:i}),e.allBuffers&&"buffer"!==n&&(e.allBuffers=!1),e.allNoop&&i!==M&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(r,n,e.onwrite),e.sync=!1);return o&&!e.errored&&!e.destroyed}(t,s,e,r,i))}function N(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function j(t,e,r,n){--e.pendingcb,n(r),B(e),k(t,r)}function F(t,e){const r=t._writableState,i=r.sync,s=r.writecb;"function"==typeof s?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?n.nextTick(j,t,r,e,s):j(t,r,e,s)):(r.buffered.length>r.bufferedIndex&&U(t,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:t,state:r},n.nextTick($,r.afterWriteTickInfo)):W(t,r,1,s))):k(t,new S)}function $({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,W(t,e,r,n)}function W(t,e,r,n){for(!e.ending&&!t.destroyed&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&B(e),G(t,e)}function B(t){if(t.writing)return;for(let r=t.bufferedIndex;r<t.buffered.length;++r){var e;const{chunk:n,callback:i}=t.buffered[r],s=t.objectMode?1:n.length;t.length-=s,i(null!==(e=t.errored)&&void 0!==e?e:new x("write"))}const r=t[P].splice(0);for(let e=0;e<r.length;e++){var n;r[e](null!==(n=t.errored)&&void 0!==n?n:new x("end"))}L(t)}function U(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:s}=e,o=r.length-n;if(!o)return;let a=n;if(e.bufferProcessing=!0,o>1&&t._writev){e.pendingcb-=o-1;const n=e.allNoop?M:t=>{for(let e=a;e<r.length;++e)r[e].callback(t)},s=e.allNoop&&0===a?r:i(r,a);s.allBuffers=e.allBuffers,N(t,e,!0,e.length,s,"",n),L(e)}else{do{const{chunk:n,encoding:i,callback:o}=r[a];r[a++]=null;N(t,e,!1,s?1:n.length,n,i,o)}while(a<r.length&&!e.writing);a===r.length?L(e):a>256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}function z(t){return t.ending&&!t.destroyed&&t.constructed&&0===t.length&&!t.errored&&0===t.buffered.length&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function H(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.finalCalled=!0,function(t,e){let r=!1;function i(i){if(r)k(t,null!=i?i:S());else if(r=!0,e.pendingcb--,i){const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t](i);k(t,i,e.sync)}else z(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,n.nextTick(V,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(t){i(t)}e.sync=!1}(t,e)))}function G(t,e,r){z(e)&&(H(t,e),0===e.pendingcb&&(r?(e.pendingcb++,n.nextTick(((t,e)=>{z(e)?V(t,e):e.pendingcb--}),t,e)):z(e)&&(e.pendingcb++,V(t,e))))}function V(t,e){e.pendingcb--,e.finished=!0;const r=e[P].splice(0);for(let t=0;t<r.length;t++)r[t]();if(t.emit("finish"),e.autoDestroy){const e=t._readableState;(!e||e.autoDestroy&&(e.endEmitted||!1===e.readable))&&t.destroy()}}I.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(D,d,{__proto__:null,value:function(t){return!!o(this,t)||this===D&&(t&&t._writableState instanceof I)}}),D.prototype.pipe=function(){k(this,new E)},D.prototype.write=function(t,e,r){return!0===C(this,t,e,r)},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){const t=this._writableState;t.corked&&(t.corked--,t.writing||U(this,t))},D.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=h(t)),!g.isEncoding(t))throw new T(t);return this._writableState.defaultEncoding=t,this},D.prototype._write=function(t,e,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:t,encoding:e}],r)},D.prototype._writev=null,D.prototype.end=function(t,e,r){const i=this._writableState;let o;if("function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t){const r=C(this,t,e);r instanceof s&&(o=r)}return i.corked&&(i.corked=1,this.uncork()),o||(i.errored||i.ending?i.finished?o=new A("end"):i.destroyed&&(o=new x("end")):(i.ending=!0,G(this,i,!0),i.ended=!0)),"function"==typeof r&&(o||i.finished?n.nextTick(r,o):i[P].push(r)),this},l(D.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){const t=this._writableState;return!(!t||!1===t.writable||t.destroyed||t.errored||t.ending||t.ended)},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const t=this._writableState;return!!t&&(!t.destroyed&&!t.ending&&t.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=b.destroy;let Y;function K(){return void 0===Y&&(Y={}),Y}D.prototype.destroy=function(t,e){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&n.nextTick(B,r),q.call(this,t,e),this},D.prototype._undestroy=b.undestroy,D.prototype._destroy=function(t,e){e(t)},D.prototype[f.captureRejectionSymbol]=function(t){this.destroy(t)},D.fromWeb=function(t,e){return K().newStreamWritableFromWritableStream(t,e)},D.toWeb=function(t){return K().newWritableStreamFromStreamWritable(t)}},3299(t,e,r){"use strict";const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:h,NumberParseInt:c,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:g,StringPrototypeTrim:b}=r(7744),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(3845),{normalizeEncoding:E}=r(7206),{isAsyncFunction:x,isArrayBufferView:A}=r(7206).types,R={};const O=/^[0-7]+$/;const T=m(((t,e,r=h,n=u)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),k=m(((t,e,r=-2147483648,n=2147483647)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);if(t<r||t>n)throw new v(e,`>= ${r} && <= ${n}`,t)})),M=m(((t,e,r=!1)=>{if("number"!=typeof t)throw new w(e,"number",t);if(!a(t))throw new v(e,"an integer",t);const n=r?1:0,i=4294967295;if(t<n||t>i)throw new v(e,`>= ${n} && <= ${i}`,t)}));function P(t,e){if("string"!=typeof t)throw new w(e,"string",t)}const I=m(((t,e,r)=>{if(!i(r,t)){const n=s(o(r,(t=>"string"==typeof t?`'${t}'`:p(t))),", ");throw new _(e,t,"must be one of: "+n)}}));function L(t,e){if("boolean"!=typeof t)throw new w(e,"boolean",t)}function D(t,e,r){return null!=t&&d(t,e)?t[e]:r}const C=m(((t,e,r=null)=>{const i=D(r,"allowArray",!1),s=D(r,"allowFunction",!1);if(!D(r,"nullable",!1)&&null===t||!i&&n(t)||"object"!=typeof t&&(!s||"function"!=typeof t))throw new w(e,"Object",t)})),N=m(((t,e)=>{if(null!=t&&"object"!=typeof t&&"function"!=typeof t)throw new w(e,"a dictionary",t)})),j=m(((t,e,r=0)=>{if(!n(t))throw new w(e,"Array",t);if(t.length<r){throw new _(e,t,`must be longer than ${r}`)}}));const F=m(((t,e="buffer")=>{if(!A(t))throw new w(e,["Buffer","TypedArray","DataView"],t)}));const $=m(((t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new w(e,"AbortSignal",t)})),W=m(((t,e)=>{if("function"!=typeof t)throw new w(e,"Function",t)})),B=m(((t,e)=>{if("function"!=typeof t||x(t))throw new w(e,"Function",t)})),U=m(((t,e)=>{if(void 0!==t)throw new w(e,"undefined",t)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function H(t,e){if(void 0===t||!f(z,t))throw new _(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:function(t){return t===(0|t)},isUint32:function(t){return t===t>>>0},parseFileMode:function(t,e,r){if(void 0===t&&(t=r),"string"==typeof t){if(null===f(O,t))throw new _(e,t,"must be a 32-bit unsigned integer or an octal string");t=c(t,8)}return M(t,e),t},validateArray:j,validateStringArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)P(t[r],`${e}[${r}]`)},validateBooleanArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++)L(t[r],`${e}[${r}]`)},validateAbortSignalArray:function(t,e){j(t,e);for(let r=0;r<t.length;r++){const n=t[r],i=`${e}[${r}]`;if(null==n)throw new w(i,"AbortSignal",n);$(n,i)}},validateBoolean:L,validateBuffer:F,validateDictionary:N,validateEncoding:function(t,e){const r=E(e),n=t.length;if("hex"===r&&n%2!=0)throw new _("encoding",e,`is invalid for data of length ${n}`)},validateFunction:W,validateInt32:k,validateInteger:T,validateNumber:function(t,e,r=void 0,n){if("number"!=typeof t)throw new w(e,"number",t);if(null!=r&&t<r||null!=n&&t>n||(null!=r||null!=n)&&l(t))throw new v(e,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,t)},validateObject:C,validateOneOf:I,validatePlainFunction:B,validatePort:function(t,e="Port",r=!0){if("number"!=typeof t&&"string"!=typeof t||"string"==typeof t&&0===b(t).length||+t!=+t>>>0||t>65535||0===t&&!r)throw new y(e,t,r);return 0|t},validateSignalName:function(t,e="signal"){if(P(t,e),void 0===R[t]){if(void 0!==R[g(t)])throw new S(t+" (signals must use all capital letters)");throw new S(t)}},validateString:P,validateUint32:M,validateUndefined:U,validateUnion:function(t,e,r){if(!i(r,t))throw new w(e,`('${s(r,"|")}')`,t)},validateAbortSignal:$,validateLinkHeaderValue:function(t){if("string"==typeof t)return H(t,"hints"),t;if(n(t)){const e=t.length;let r="";if(0===e)return r;for(let n=0;n<e;n++){const i=t[n];H(i,"hints"),r+=i,n!==e-1&&(r+=", ")}return r}throw new _("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},3845(t,e,r){"use strict";const{format:n,inspect:i}=r(4917),{AggregateError:s}=r(7744),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,h={};function c(t,e){if(!t)throw new h.ERR_INTERNAL_ASSERTION(e)}function d(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function f(t,e,r){r||(r=Error);class i extends r{constructor(...r){super(function(t,e,r){if("function"==typeof e)return c(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const i=(e.match(/%[dfijoOs]/g)||[]).length;return c(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?e:n(e,...r)}(t,e,r))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[a]=!0,h[t]=i}function p(t){const e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t}class g extends Error{constructor(t="The operation was aborted",e=void 0){if(void 0!==e&&"object"!=typeof e)throw new h.ERR_INVALID_ARG_TYPE("options","Object",e);super(t,e),this.code="ABORT_ERR",this.name="AbortError"}}f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",((t,e,r)=>{c("string"==typeof t,"'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const s=[],o=[],a=[];for(const t of e)c("string"==typeof t,"All expected entries have to be of type string"),l.includes(t)?s.push(t.toLowerCase()):u.test(t)?o.push(t):(c("object"!==t,'The value "object" should be written as "Object"'),a.push(t));if(o.length>0){const t=s.indexOf("object");-1!==t&&(s.splice(s,t,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{const t=s.pop();n+=`one of type ${s.join(", ")}, or ${t}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const t=o.pop();n+=`an instance of ${o.join(", ")}, or ${t}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const t=a.pop();n+=`one of ${a.join(", ")}, or ${t}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var h;if(null!==(h=r.constructor)&&void 0!==h&&h.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let t=i(r,{colors:!1});t.length>25&&(t=`${t.slice(0,25)}...`),n+=`. Received type ${typeof r} (${t})`}return n}),TypeError),f("ERR_INVALID_ARG_VALUE",((t,e,r="is invalid")=>{let n=i(e);n.length>128&&(n=n.slice(0,128)+"...");return`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`}),TypeError),f("ERR_INVALID_RETURN_VALUE",((t,e,r)=>{var n;return`Expected ${t} to be returned from the "${e}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),f("ERR_MISSING_ARGS",((...t)=>{let e;c(t.length>0,"At least one arg needs to be specified");const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map((t=>`"${t}"`)).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}}return`${e} must be specified`}),TypeError),f("ERR_OUT_OF_RANGE",((t,e,r)=>{let n;if(c(e,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32)n=d(String(r));else if("bigint"==typeof r){n=String(r);const t=BigInt(2)**BigInt(32);(r>t||r<-t)&&(n=d(n)),n+="n"}else n=i(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${n}`}),RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:g,aggregateTwoErrors:p((function(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new o([e,t],e.message);return r.code=e.code,r}return t||e})),hideStackFrames:p,codes:h}},404(t,e,r){"use strict";const n=r(2203);if(n&&"disable"===process.env.READABLE_STREAM){const e=n.promises;t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>e}),t.exports.Stream=n.Stream}else{const e=r(4028),n=r(4593),i=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=i,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get:()=>n}),t.exports.Stream=e.Stream}t.exports.default=t.exports},7744(t){"use strict";class e extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError("Expected input to be an Array, got "+typeof t);let e="";for(let r=0;r<t.length;r++)e+=` ${t[r].stack}\n`;super(e),this.name="AggregateError",this.errors=t}}t.exports={AggregateError:e,ArrayIsArray:t=>Array.isArray(t),ArrayPrototypeIncludes:(t,e)=>t.includes(e),ArrayPrototypeIndexOf:(t,e)=>t.indexOf(e),ArrayPrototypeJoin:(t,e)=>t.join(e),ArrayPrototypeMap:(t,e)=>t.map(e),ArrayPrototypePop:(t,e)=>t.pop(e),ArrayPrototypePush:(t,e)=>t.push(e),ArrayPrototypeSlice:(t,e,r)=>t.slice(e,r),Error,FunctionPrototypeCall:(t,e,...r)=>t.call(e,...r),FunctionPrototypeSymbolHasInstance:(t,e)=>Function.prototype[Symbol.hasInstance].call(t,e),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(t,e)=>Object.defineProperties(t,e),ObjectDefineProperty:(t,e,r)=>Object.defineProperty(t,e,r),ObjectGetOwnPropertyDescriptor:(t,e)=>Object.getOwnPropertyDescriptor(t,e),ObjectKeys:t=>Object.keys(t),ObjectSetPrototypeOf:(t,e)=>Object.setPrototypeOf(t,e),Promise,PromisePrototypeCatch:(t,e)=>t.catch(e),PromisePrototypeThen:(t,e,r)=>t.then(e,r),PromiseReject:t=>Promise.reject(t),PromiseResolve:t=>Promise.resolve(t),ReflectApply:Reflect.apply,RegExpPrototypeTest:(t,e)=>t.test(e),SafeSet:Set,String,StringPrototypeSlice:(t,e,r)=>t.slice(e,r),StringPrototypeToLowerCase:t=>t.toLowerCase(),StringPrototypeToUpperCase:t=>t.toUpperCase(),StringPrototypeTrim:t=>t.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(t,e,r)=>t.set(e,r),Boolean,Uint8Array}},7206(t,e,r){"use strict";const n=r(181),{format:i,inspect:s}=r(4917),{codes:{ERR_INVALID_ARG_TYPE:o}}=r(3845),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:u}=r(7744),h=globalThis.AbortSignal||r(6584).AbortSignal,c=globalThis.AbortController||r(6584).AbortController,d=Object.getPrototypeOf((async function(){})).constructor,f=globalThis.Blob||n.Blob,p=void 0!==f?function(t){return t instanceof f}:function(t){return!1},g=(t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new o(e,"AbortSignal",t)};t.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise(((r,n)=>{t=r,e=n})),resolve:t,reject:e}},promisify:t=>new Promise(((e,r)=>{t(((t,...n)=>t?r(t):e(...n)))})),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:t=>t instanceof d,isArrayBufferView:t=>ArrayBuffer.isView(t)},isBlob:p,deprecate:(t,e)=>t,addAbortListener:r(4434).addAbortListener||function(t,e){if(void 0===t)throw new o("signal","AbortSignal",t);let r;return g(t,"signal"),((t,e)=>{if("function"!=typeof t)throw new o(e,"Function",t)})(e,"listener"),t.aborted?queueMicrotask((()=>e())):(t.addEventListener("abort",e,{__proto__:null,once:!0,[a]:!0}),r=()=>{t.removeEventListener("abort",e)}),{__proto__:null,[u](){var t;null===(t=r)||void 0===t||t()}}},AbortSignalAny:h.any||function(t){if(1===t.length)return t[0];const e=new c,r=()=>e.abort();return t.forEach((t=>{g(t,"signals"),t.addEventListener("abort",r,{once:!0})})),e.signal.addEventListener("abort",(()=>{t.forEach((t=>t.removeEventListener("abort",r)))}),{once:!0}),e.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},4917(t){"use strict";t.exports={format:(t,...e)=>t.replace(/%([sdifj])/g,(function(...[t,r]){const n=e.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(t){switch(typeof t){case"string":if(t.includes("'")){if(!t.includes('"'))return`"${t}"`;if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}},4028(t,e,r){"use strict";const{Buffer:n}=r(181),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r(7744),{promisify:{custom:a}}=r(7206),{streamReturningOperators:l,promiseReturningOperators:u}=r(5533),{codes:{ERR_ILLEGAL_CONSTRUCTOR:h}}=r(3845),c=r(8504),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:f}=r(2073),{pipeline:p}=r(5232),{destroyer:g}=r(8118),b=r(9327),m=r(4593),y=r(2225),w=t.exports=r(6233).Stream;w.isDestroyed=y.isDestroyed,w.isDisturbed=y.isDisturbed,w.isErrored=y.isErrored,w.isReadable=y.isReadable,w.isWritable=y.isWritable,w.Readable=r(2382);for(const v of s(l)){const S=l[v];function E(...t){if(new.target)throw h();return w.Readable.from(o(S,this,t))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(w.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of s(u)){const A=u[x];function R(...t){if(new.target)throw h();return o(A,this,t)}i(R,"name",{__proto__:null,value:A.name}),i(R,"length",{__proto__:null,value:A.length}),i(w.Readable.prototype,x,{__proto__:null,value:R,enumerable:!1,configurable:!0,writable:!0})}w.Writable=r(9282),w.Duplex=r(7400),w.Transform=r(4552),w.PassThrough=r(6410),w.pipeline=p;const{addAbortSignal:_}=r(4769);w.addAbortSignal=_,w.finished=b,w.destroy=g,w.compose=c,w.setDefaultHighWaterMark=d,w.getDefaultHighWaterMark=f,i(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>m}),i(p,a,{__proto__:null,enumerable:!0,get:()=>m.pipeline}),i(b,a,{__proto__:null,enumerable:!0,get:()=>m.finished}),w.Stream=w,w._isUint8Array=function(t){return t instanceof Uint8Array},w._uint8ArrayToBuffer=function(t){return n.from(t.buffer,t.byteOffset,t.byteLength)}},4593(t,e,r){"use strict";const{ArrayPrototypePop:n,Promise:i}=r(7744),{isIterable:s,isNodeStream:o,isWebStream:a}=r(2225),{pipelineImpl:l}=r(5232),{finished:u}=r(9327);r(4028),t.exports={finished:u,pipeline:function(...t){return new i(((e,r)=>{let i,u;const h=t[t.length-1];if(h&&"object"==typeof h&&!o(h)&&!s(h)&&!a(h)){const e=n(t);i=e.signal,u=e.end}l(t,((t,n)=>{t?r(t):e(n)}),{signal:i,end:u})}))}}},7791(t){"use strict";t.exports=class{constructor({processMessage:t}){this.processMessage=t,this.buffer=[],this.enabled=!1,this.begin=this.begin.bind(this),this.commit=this.commit.bind(this),this.reject=this.reject.bind(this)}addMessage(t){this.buffer.push(t)}begin(){this.enabled=[]}commit(){this.enabled=!1,this.buffer.forEach((t=>this.processMessage(t))),this.buffer=[]}reject(){this.enabled=!1,this.buffer=[]}}},885(t,e,r){"use strict";const n=r(61),i=r(7791);class s{static instances={};dependencies={};errorHandler=null;eventLogger=null;functions={};hooks=[];isDev=!1;levels=null;logId=null;scope=null;transports={};variables={};constructor({allowUnknownLevel:t=!1,dependencies:e={},errorHandler:r,eventLogger:o,initializeFn:a,isDev:l=!1,levels:u=["error","warn","info","verbose","debug","silly"],logId:h,transportFactories:c={},variables:d}={}){this.addLevel=this.addLevel.bind(this),this.create=this.create.bind(this),this.initialize=this.initialize.bind(this),this.logData=this.logData.bind(this),this.processMessage=this.processMessage.bind(this),this.allowUnknownLevel=t,this.buffering=new i(this),this.dependencies=e,this.initializeFn=a,this.isDev=l,this.levels=u,this.logId=h,this.scope=n(this),this.transportFactories=c,this.variables=d||{};for(const t of this.levels)this.addLevel(t,!1);this.log=this.info,this.functions.log=this.log,this.errorHandler=r,r?.setOptions({...e,logFn:this.error}),this.eventLogger=o,o?.setOptions({...e,logger:this});for(const[t,r]of Object.entries(c))this.transports[t]=r(this,e);s.instances[h]=this}static getInstance({logId:t}){return this.instances[t]||this.instances.default}addLevel(t,e=this.levels.length){!1!==e&&this.levels.splice(e,0,t),this[t]=(...e)=>this.logData(e,{level:t}),this.functions[t]=this[t]}catchErrors(t){return this.processMessage({data:["log.catchErrors is deprecated. Use log.errorHandler instead"],level:"warn"},{transports:["console"]}),this.errorHandler.startCatching(t)}create(t){return"string"==typeof t&&(t={logId:t}),new s({dependencies:this.dependencies,errorHandler:this.errorHandler,initializeFn:this.initializeFn,isDev:this.isDev,transportFactories:this.transportFactories,variables:{...this.variables},...t})}compareLevels(t,e,r=this.levels){const n=r.indexOf(t),i=r.indexOf(e);return-1===i||-1===n||i<=n}initialize(t={}){this.initializeFn({logger:this,...this.dependencies,...t})}logData(t,e={}){this.buffering.enabled?this.buffering.addMessage({data:t,...e}):this.processMessage({data:t,...e})}processMessage(t,{transports:e=this.transports}={}){if("errorHandler"===t.cmd)return void this.errorHandler.handle(t.error,{errorName:t.errorName,processType:"renderer",showDialog:Boolean(t.showDialog)});let r=t.level;this.allowUnknownLevel||(r=this.levels.includes(t.level)?t.level:"info");const n={date:new Date,logId:this.logId,...t,level:r,variables:{...this.variables,...t.variables}};for(const[r,i]of this.transportEntries(e))if("function"==typeof i&&!1!==i.level&&this.compareLevels(i.level,t.level))try{const t=this.hooks.reduce(((t,e)=>t?e(t,i,r):t),n);t&&i({...t,data:[...t.data]})}catch(t){this.processInternalErrorFn(t)}}processInternalErrorFn(t){}transportEntries(t=this.transports){return(Array.isArray(t)?t:Object.entries(t)).map((t=>{switch(typeof t){case"string":return this.transports[t]?[t,this.transports[t]]:null;case"function":return[t.name,t];default:return Array.isArray(t)?t:null}})).filter(Boolean)}}t.exports=s},61(t){"use strict";t.exports=function(t){return Object.defineProperties(e,{defaultLabel:{value:"",writable:!0},labelPadding:{value:!0,writable:!0},maxLabelLength:{value:0,writable:!0},labelLength:{get(){switch(typeof e.labelPadding){case"boolean":return e.labelPadding?e.maxLabelLength:0;case"number":return e.labelPadding;default:return 0}}}});function e(r){e.maxLabelLength=Math.max(e.maxLabelLength,r.length);const n={};for(const e of t.levels)n[e]=(...n)=>t.logData(n,{level:e,scope:r});return n.log=n.info,n}}},329(t,e,r){"use strict";const n="undefined"==typeof process||"renderer"===process.type||"worker"===process.type,i="object"==typeof process&&"browser"===process.type;n?(r(8308),t.exports=r(6393)):t.exports=r(i?7295:4746)},2088(t,e,r){"use strict";const n=r(6928),i=r(407);t.exports=class extends i{electron=void 0;constructor({electron:t}={}){super(),this.electron=t}getAppName(){let t;try{t=this.appName||this.electron.app?.name||this.electron.app?.getName()}catch{}return t||super.getAppName()}getAppUserDataPath(t){return this.getPath("userData")||super.getAppUserDataPath(t)}getAppVersion(){let t;try{t=this.electron.app?.getVersion()}catch{}return t||super.getAppVersion()}getElectronLogPath(){return this.getPath("logs")||super.getElectronLogPath()}getPath(t){try{return this.electron.app?.getPath(t)}catch{return}}getVersions(){return{app:`${this.getAppName()} ${this.getAppVersion()}`,electron:`Electron ${process.versions.electron}`,os:this.getOsVersion()}}getSystemPathAppData(){return this.getPath("appData")||super.getSystemPathAppData()}isDev(){if(void 0!==this.electron.app?.isPackaged)return!this.electron.app.isPackaged;if("string"==typeof process.execPath){return n.basename(process.execPath).toLowerCase().startsWith("electron")}return super.isDev()}onAppEvent(t,e){return this.electron.app?.on(t,e),()=>{this.electron.app?.off(t,e)}}onAppReady(t){this.electron.app?.isReady()?t():this.electron.app?.once?this.electron.app?.once("ready",t):t()}onEveryWebContentsEvent(t,e){return this.electron.webContents?.getAllWebContents()?.forEach((r=>{r.on(t,e)})),this.electron.app?.on("web-contents-created",r),()=>{this.electron.webContents?.getAllWebContents().forEach((r=>{r.off(t,e)})),this.electron.app?.off("web-contents-created",r)};function r(r,n){n.on(t,e)}}onIpc(t,e){this.electron.ipcMain?.on(t,e)}onIpcInvoke(t,e){this.electron.ipcMain?.handle?.(t,e)}openUrl(t,e=console.error){this.electron.shell?.openExternal(t).catch(e)}setPreloadFileForSessions({filePath:t,includeFutureSession:e=!0,getSessions:r=()=>[this.electron.session?.defaultSession]}){for(const t of r().filter(Boolean))n(t);function n(e){e.setPreloads([...e.getPreloads(),t])}e&&this.onAppEvent("session-created",(t=>{n(t)}))}sendIpc(t,e){this.electron.BrowserWindow?.getAllWindows()?.forEach((r=>{!1===r.webContents?.isDestroyed()&&r.webContents.send(t,e)}))}showErrorBox(t,e){this.electron.dialog?.showErrorBox(t,e)}}},7295(t,e,r){"use strict";const n=r(1207),i=r(2088),{initialize:s}=r(6029),o=r(8559),a=new i({electron:n}),l=o({dependencies:{externalApi:a},initializeFn:s});function u(t){l.Logger.getInstance(t)?.processMessage(t)}t.exports=l,a.onIpc("__ELECTRON_LOG__",((t,e)=>{e.scope&&l.Logger.getInstance(e).scope(e.scope);const r=new Date(e.date);u({...e,date:r.getTime()?r:new Date})})),a.onIpcInvoke("__ELECTRON_LOG__",((t,{cmd:e="",logId:r})=>{if("getOptions"===e){return{levels:l.Logger.getInstance({logId:r}).levels,logId:r}}return u({data:[`Unknown cmd '${e}'`],level:"error"}),{}}))},6029(t,e,r){"use strict";const n=r(9896),i=r(857),s=r(6928),o=r(8308);t.exports={initialize({externalApi:t,getSessions:e,includeFutureSession:r,logger:a,preload:l=!0,spyRendererConsole:u=!1}){t.onAppReady((()=>{try{l&&function({externalApi:t,getSessions:e,includeFutureSession:r,preloadOption:a}){let l="string"==typeof a?a:void 0;try{l=s.resolve(__dirname,"../renderer/electron-log-preload.js")}catch{}if(!l||!n.existsSync(l)){l=s.join(t.getAppUserDataPath()||i.tmpdir(),"electron-log-preload.js");const e=`\n try {\n (${o.toString()})(require('electron'));\n } catch(e) {\n console.error(e);\n }\n `;n.writeFileSync(l,e,"utf8")}t.setPreloadFileForSessions({filePath:l,includeFutureSession:r,getSessions:e})}({externalApi:t,getSessions:e,includeFutureSession:r,preloadOption:l}),u&&function({externalApi:t,logger:e}){const r=["verbose","info","warning","error"];t.onEveryWebContentsEvent("console-message",((t,n,i)=>{e.processMessage({data:[i],level:r[n],variables:{processType:"renderer"}})}))}({externalApi:t,logger:a})}catch(t){a.warn(t)}}))}}},4454(t){"use strict";t.exports=class{externalApi=void 0;isActive=!1;logFn=void 0;onError=void 0;showDialog=!0;constructor({externalApi:t,logFn:e,onError:r,showDialog:n}={}){this.createIssue=this.createIssue.bind(this),this.handleError=this.handleError.bind(this),this.handleRejection=this.handleRejection.bind(this),this.setOptions({externalApi:t,logFn:e,onError:r,showDialog:n}),this.startCatching=this.startCatching.bind(this),this.stopCatching=this.stopCatching.bind(this)}handle(t,{logFn:e=this.logFn,onError:r=this.onError,processType:n="browser",showDialog:i=this.showDialog,errorName:s=""}={}){t=function(t){if(t instanceof Error)return t;if(t&&"object"==typeof t){if(t.message)return Object.assign(new Error(t.message),t);try{return new Error(JSON.stringify(t))}catch(e){return new Error(`Couldn't normalize error ${String(t)}: ${e}`)}}return new Error(`Can't normalize error ${String(t)}`)}(t);try{if("function"==typeof r){const e=this.externalApi?.getVersions()||{},i=this.createIssue;if(!1===r({createIssue:i,error:t,errorName:s,processType:n,versions:e}))return}s?e(s,t):e(t),i&&!s.includes("rejection")&&this.externalApi&&this.externalApi.showErrorBox(`A JavaScript error occurred in the ${n} process`,t.stack)}catch{console.error(t)}}setOptions({externalApi:t,logFn:e,onError:r,showDialog:n}){"object"==typeof t&&(this.externalApi=t),"function"==typeof e&&(this.logFn=e),"function"==typeof r&&(this.onError=r),"boolean"==typeof n&&(this.showDialog=n)}startCatching({onError:t,showDialog:e}={}){this.isActive||(this.isActive=!0,this.setOptions({onError:t,showDialog:e}),process.on("uncaughtException",this.handleError),process.on("unhandledRejection",this.handleRejection))}stopCatching(){this.isActive=!1,process.removeListener("uncaughtException",this.handleError),process.removeListener("unhandledRejection",this.handleRejection)}createIssue(t,e){this.externalApi?.openUrl(`${t}?${new URLSearchParams(e).toString()}`)}handleError(t){this.handle(t,{errorName:"Unhandled"})}handleRejection(t){const e=t instanceof Error?t:new Error(JSON.stringify(t));this.handle(e,{errorName:"Unhandled rejection"})}}},2050(t){"use strict";t.exports=class{disposers=[];format="{eventSource}#{eventName}:";formatters={app:{"certificate-error":({args:t})=>this.arrayToObject(t.slice(1,4),["url","error","certificate"]),"child-process-gone":({args:t})=>1===t.length?t[0]:t,"render-process-gone":({args:[t,e]})=>e&&"object"==typeof e?{...e,...this.getWebContentsDetails(t)}:[]},webContents:{"console-message":({args:[t,e,r,n]})=>{if(!(t<3))return{message:e,source:`${n}:${r}`}},"did-fail-load":({args:t})=>this.arrayToObject(t,["errorCode","errorDescription","validatedURL","isMainFrame","frameProcessId","frameRoutingId"]),"did-fail-provisional-load":({args:t})=>this.arrayToObject(t,["errorCode","errorDescription","validatedURL","isMainFrame","frameProcessId","frameRoutingId"]),"plugin-crashed":({args:t})=>this.arrayToObject(t,["name","version"]),"preload-error":({args:t})=>this.arrayToObject(t,["preloadPath","error"])}};events={app:{"certificate-error":!0,"child-process-gone":!0,"render-process-gone":!0},webContents:{"did-fail-load":!0,"did-fail-provisional-load":!0,"plugin-crashed":!0,"preload-error":!0,unresponsive:!0}};externalApi=void 0;level="error";scope="";constructor(t={}){this.setOptions(t)}setOptions({events:t,externalApi:e,level:r,logger:n,format:i,formatters:s,scope:o}){"object"==typeof t&&(this.events=t),"object"==typeof e&&(this.externalApi=e),"string"==typeof r&&(this.level=r),"object"==typeof n&&(this.logger=n),"string"!=typeof i&&"function"!=typeof i||(this.format=i),"object"==typeof s&&(this.formatters=s),"string"==typeof o&&(this.scope=o)}startLogging(t={}){this.setOptions(t),this.disposeListeners();for(const t of this.getEventNames(this.events.app))this.disposers.push(this.externalApi.onAppEvent(t,((...e)=>{this.handleEvent({eventSource:"app",eventName:t,handlerArgs:e})})));for(const t of this.getEventNames(this.events.webContents))this.disposers.push(this.externalApi.onEveryWebContentsEvent(t,((...e)=>{this.handleEvent({eventSource:"webContents",eventName:t,handlerArgs:e})})))}stopLogging(){this.disposeListeners()}arrayToObject(t,e){const r={};return e.forEach(((e,n)=>{r[e]=t[n]})),t.length>e.length&&(r.unknownArgs=t.slice(e.length)),r}disposeListeners(){this.disposers.forEach((t=>t())),this.disposers=[]}formatEventLog({eventName:t,eventSource:e,handlerArgs:r}){const[n,...i]=r;if("function"==typeof this.format)return this.format({args:i,event:n,eventName:t,eventSource:e});const s=this.formatters[e]?.[t];let o=i;if("function"==typeof s&&(o=s({args:i,event:n,eventName:t,eventSource:e})),!o)return;const a={};Array.isArray(o)?a.args=o:"object"==typeof o&&Object.assign(a,o),"webContents"===e&&Object.assign(a,this.getWebContentsDetails(n?.sender));return[this.format.replace("{eventSource}","app"===e?"App":"WebContents").replace("{eventName}",t),a]}getEventNames(t){return t&&"object"==typeof t?Object.entries(t).filter((([t,e])=>e)).map((([t])=>t)):[]}getWebContentsDetails(t){if(!t?.loadURL)return{};try{return{webContents:{id:t.id,url:t.getURL()}}}catch{return{}}}handleEvent({eventName:t,eventSource:e,handlerArgs:r}){const n=this.formatEventLog({eventName:t,eventSource:e,handlerArgs:r});if(n){const t=this.scope?this.logger.scope(this.scope):this.logger;t?.[this.level]?.(...n)}}}},407(t,e,r){"use strict";const n=r(5317),i=r(857),s=r(6928),o=r(9084);t.exports=class{appName=void 0;appPackageJson=void 0;platform=process.platform;getAppLogPath(t=this.getAppName()){return"darwin"===this.platform?s.join(this.getSystemPathHome(),"Library/Logs",t):s.join(this.getAppUserDataPath(t),"logs")}getAppName(){const t=this.appName||this.getAppPackageJson()?.name;if(!t)throw new Error("electron-log can't determine the app name. It tried these methods:\n1. Use `electron.app.name`\n2. Use productName or name from the nearest package.json`\nYou can also set it through log.transports.file.setAppName()");return t}getAppPackageJson(){return"object"!=typeof this.appPackageJson&&(this.appPackageJson=o.findAndReadPackageJson()),this.appPackageJson}getAppUserDataPath(t=this.getAppName()){return t?s.join(this.getSystemPathAppData(),t):void 0}getAppVersion(){return this.getAppPackageJson()?.version}getElectronLogPath(){return this.getAppLogPath()}getMacOsVersion(){const t=Number(i.release().split(".")[0]);return t<=19?"10."+(t-4):t-9}getOsVersion(){let t=i.type().replace("_"," "),e=i.release();return"Darwin"===t&&(t="macOS",e=this.getMacOsVersion()),`${t} ${e}`}getPathVariables(){const t=this.getAppName(),e=this.getAppVersion(),r=this;return{appData:this.getSystemPathAppData(),appName:t,appVersion:e,get electronDefaultDir(){return r.getElectronLogPath()},home:this.getSystemPathHome(),libraryDefaultDir:this.getAppLogPath(t),libraryTemplate:this.getAppLogPath("{appName}"),temp:this.getSystemPathTemp(),userData:this.getAppUserDataPath(t)}}getSystemPathAppData(){const t=this.getSystemPathHome();switch(this.platform){case"darwin":return s.join(t,"Library/Application Support");case"win32":return process.env.APPDATA||s.join(t,"AppData/Roaming");default:return process.env.XDG_CONFIG_HOME||s.join(t,".config")}}getSystemPathHome(){return i.homedir?.()||process.env.HOME}getSystemPathTemp(){return i.tmpdir()}getVersions(){return{app:`${this.getAppName()} ${this.getAppVersion()}`,electron:void 0,os:this.getOsVersion()}}isDev(){return"1"===process.env.ELECTRON_IS_DEV}isElectron(){return Boolean(process.versions.electron)}onAppEvent(t,e){}onAppReady(t){t()}onEveryWebContentsEvent(t,e){}onIpc(t,e){}onIpcInvoke(t,e){}openUrl(t,e=console.error){const r={darwin:"open",win32:"start",linux:"xdg-open"}[process.platform]||"xdg-open";n.exec(`${r} ${t}`,{},(t=>{t&&e(t)}))}setAppName(t){this.appName=t}setPlatform(t){this.platform=t}setPreloadFileForSessions({filePath:t,includeFutureSession:e=!0,getSessions:r=()=>[]}){}sendIpc(t,e){}showErrorBox(t,e){}}},8559(t,e,r){"use strict";const n=r(885),i=r(4454),s=r(2050),o=r(9456),a=r(1548),l=r(4631),u=r(9359);t.exports=function({dependencies:t,initializeFn:e}){const r=new n({dependencies:t,errorHandler:new i,eventLogger:new s,initializeFn:e,isDev:t.externalApi?.isDev(),logId:"default",transportFactories:{console:o,file:a,ipc:l,remote:u},variables:{processType:"main"}});return r.default=r,r.Logger=n,r.processInternalErrorFn=t=>{r.transports.console.writeFn({message:{data:["Unhandled electron-log error",t],level:"error"}})},r}},4746(t,e,r){"use strict";const n=r(407),i=r(8559)({dependencies:{externalApi:new n}});t.exports=i},9084(t,e,r){"use strict";const n=r(9896),i=r(6928);function s(...t){if(t[0])try{const e=function(t,e){let r=e;for(;;){const e=i.parse(r),s=e.root,o=e.dir;if(n.existsSync(i.join(r,t)))return i.resolve(i.join(r,t));if(r===s)return null;r=o}}("package.json",i.join(...t));if(!e)return;const r=JSON.parse(n.readFileSync(e,"utf8")),s=r?.productName||r?.name;if(!s||"electron"===s.toLowerCase())return;return s?{name:s,version:r?.version}:void 0}catch(t){return}}t.exports={findAndReadPackageJson:function(){return s(function(){try{return r.c[r.s]?.filename}catch{return}}())||s(function(){const t=process.argv.filter((t=>0===t.indexOf("--user-data-dir=")));if(0===t.length||"string"!=typeof t[0])return null;return t[0].replace("--user-data-dir=","")}())||s(process.resourcesPath,"app.asar")||s(process.resourcesPath,"app")||s(process.cwd())||{name:void 0,version:void 0}},tryReadJsonAt:s}},1935(t,e,r){"use strict";const{transform:n}=r(8018);function i(t){const e=Math.abs(t);return`${t>0?"-":"+"}${Math.floor(e/60).toString().padStart(2,"0")}:${(e%60).toString().padStart(2,"0")}`}function s({data:t,logger:e,message:r}){const{defaultLabel:n,labelLength:i}=e?.scope||{},s=t[0];let o,a=r.scope;return a||(a=n),o=""===a?i>0?"".padEnd(i+3):"":"string"==typeof a?` (${a})`.padEnd(i+3):"",t[0]=s.replace("{scope}",o),t}function o({data:t,message:e}){let r=t[0];if("string"!=typeof r)return t;r=r.replace("{level}]",`${e.level}]`.padEnd(6," "));const n=e.date||new Date;return t[0]=r.replace(/\{(\w+)}/g,((t,r)=>{switch(r){case"level":return e.level||"info";case"logId":return e.logId;case"y":return n.getFullYear().toString(10);case"m":return(n.getMonth()+1).toString(10).padStart(2,"0");case"d":return n.getDate().toString(10).padStart(2,"0");case"h":return n.getHours().toString(10).padStart(2,"0");case"i":return n.getMinutes().toString(10).padStart(2,"0");case"s":return n.getSeconds().toString(10).padStart(2,"0");case"ms":return n.getMilliseconds().toString(10).padStart(3,"0");case"z":return i(n.getTimezoneOffset());case"iso":return n.toISOString();default:return e.variables?.[r]||t}})).trim(),t}function a({data:t}){const e=t[0];if("string"!=typeof e)return t;if(e.lastIndexOf("{text}")===e.length-6)return t[0]=e.replace(/\s?{text}/,""),""===t[0]&&t.shift(),t;const r=e.split("{text}");let n=[];return""!==r[0]&&n.push(r[0]),n=n.concat(t.slice(1)),""!==r[1]&&n.push(r[1]),n}t.exports={concatFirstStringElements:function({data:t}){if("string"!=typeof t[0]||"string"!=typeof t[1])return t;if(t[0].match(/%[1cdfiOos]/))return t;return[`${t[0]} ${t[1]}`,...t.slice(2)]},formatScope:s,formatText:a,formatVariables:o,timeZoneFromOffset:i,format({message:t,logger:e,transport:r,data:i=t?.data}){switch(typeof r.format){case"string":return n({message:t,logger:e,transforms:[o,s,a],transport:r,initialData:[r.format,...i]});case"function":return r.format({data:i,level:t?.level||"info",logger:e,message:t,transport:r});default:return i}}}},8915(t,e,r){"use strict";const n=r(9023);function i(t={}){const e=new WeakSet;return function(r,n){if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return s(r,n,t)}}function s(t,e,r={}){const n=!1!==r?.serializeMapAndSet;return e instanceof Error?e.stack:e?"function"==typeof e?`[function] ${e.toString()}`:e instanceof Date?e.toISOString():n&&e instanceof Map&&Object.fromEntries?Object.fromEntries(e):n&&e instanceof Set&&Array.from?Array.from(e):e:e}t.exports={serialize:s,maxDepth({data:e,transport:r,depth:n=r?.depth??6}){if(!e)return e;if(n<1)return Array.isArray(e)?"[array]":"object"==typeof e&&e?"[object]":e;if(Array.isArray(e))return e.map((e=>t.exports.maxDepth({data:e,depth:n-1})));if("object"!=typeof e)return e;if(e&&"function"==typeof e.toISOString)return e;if(null===e)return null;if(e instanceof Error)return e;const i={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=t.exports.maxDepth({data:e[r],depth:n-1}));return i},toJSON:({data:t})=>JSON.parse(JSON.stringify(t,i())),toString({data:t,transport:e}){const r=e?.inspectOptions||{},s=t.map((t=>{if(void 0!==t)try{const e=JSON.stringify(t,i()," ");return void 0===e?void 0:JSON.parse(e)}catch(e){return t}}));return n.formatWithOptions(r,...s)}}},8503(t){"use strict";t.exports={transformStyles:i,applyAnsiStyles:({data:t})=>i(t,r,n),removeStyles:({data:t})=>i(t,(()=>""))};const e={unset:"[0m",black:"[30m",red:"[31m",green:"[32m",yellow:"[33m",blue:"[34m",magenta:"[35m",cyan:"[36m",white:"[37m"};function r(t){const r=t.replace(/color:\s*(\w+).*/,"$1").toLowerCase();return e[r]||""}function n(t){return t+e.unset}function i(t,e,r){const n={};return t.reduce(((t,i,s,o)=>{if(n[s])return t;if("string"==typeof i){let t=s,a=!1;i=i.replace(/%[1cdfiOos]/g,(r=>{if(t+=1,"%c"!==r)return r;const s=o[t];return"string"==typeof s?(n[t]=!0,a=!0,e(s,i)):r})),a&&r&&(i=r(i))}return t.push(i),t}),[])}},8018(t){"use strict";t.exports={transform:function({logger:t,message:e,transport:r,initialData:n=e?.data||[],transforms:i=r?.transforms}){return i.reduce(((n,i)=>"function"==typeof i?i({data:n,logger:t,message:e,transport:r}):n),n)}}},9456(t,e,r){"use strict";const{concatFirstStringElements:n,format:i}=r(1935),{maxDepth:s,toJSON:o}=r(8915),{applyAnsiStyles:a,removeStyles:l}=r(8503),{transform:u}=r(8018),h={error:console.error,warn:console.warn,info:console.info,verbose:console.info,debug:console.debug,silly:console.debug,log:console.log};t.exports=d;const c=`%c{h}:{i}:{s}.{ms}{scope}%c ${"win32"===process.platform?">":"›"} {text}`;function d(t){return Object.assign((function e(r){const n=u({logger:t,message:r,transport:e});e.writeFn({message:{...r,data:n}})}),{format:c,level:"silly",transforms:[f,i,p,n,s,o],useStyles:process.env.FORCE_STYLES,writeFn({message:t}){(h[t.level]||h.info)(...t.data)}})}function f({data:t,message:e,transport:r}){return r.format!==c?t:[`color:${g(e.level)}`,"color:unset",...t]}function p(t){const{message:e,transport:r}=t;return(function(t,e){if("boolean"==typeof t)return t;const r="error"===e||"warn"===e?process.stderr:process.stdout;return r&&r.isTTY}(r.useStyles,e.level)?a:l)(t)}function g(t){const e={error:"red",warn:"yellow",info:"cyan",default:"unset"};return e[t]||e.default}Object.assign(d,{DEFAULT_FORMAT:c})},7364(t,e,r){"use strict";const n=r(4434),i=r(9896),s=r(857);t.exports=class extends n{asyncWriteQueue=[];bytesWritten=0;hasActiveAsyncWriting=!1;path=null;initialSize=void 0;writeOptions=null;writeAsync=!1;constructor({path:t,writeOptions:e={encoding:"utf8",flag:"a",mode:438},writeAsync:r=!1}){super(),this.path=t,this.writeOptions=e,this.writeAsync=r}get size(){return this.getSize()}clear(){try{return i.writeFileSync(this.path,"",{mode:this.writeOptions.mode,flag:"w"}),this.reset(),!0}catch(t){return"ENOENT"===t.code||(this.emit("error",t,this),!1)}}crop(t){try{const e=function(t,e){const r=Buffer.alloc(e),n=i.statSync(t),s=Math.min(n.size,e),o=Math.max(0,n.size-e),a=i.openSync(t,"r"),l=i.readSync(a,r,0,s,o);return i.closeSync(a),r.toString("utf8",0,l)}(this.path,t||4096);this.clear(),this.writeLine(`[log cropped]${s.EOL}${e}`)}catch(t){this.emit("error",new Error(`Couldn't crop file ${this.path}. ${t.message}`),this)}}getSize(){if(void 0===this.initialSize)try{const t=i.statSync(this.path);this.initialSize=t.size}catch(t){this.initialSize=0}return this.initialSize+this.bytesWritten}increaseBytesWrittenCounter(t){this.bytesWritten+=Buffer.byteLength(t,this.writeOptions.encoding)}isNull(){return!1}nextAsyncWrite(){const t=this;if(this.hasActiveAsyncWriting||0===this.asyncWriteQueue.length)return;const e=this.asyncWriteQueue.join("");this.asyncWriteQueue=[],this.hasActiveAsyncWriting=!0,i.writeFile(this.path,e,this.writeOptions,(r=>{t.hasActiveAsyncWriting=!1,r?t.emit("error",new Error(`Couldn't write to ${t.path}. ${r.message}`),this):t.increaseBytesWrittenCounter(e),t.nextAsyncWrite()}))}reset(){this.initialSize=void 0,this.bytesWritten=0}toString(){return this.path}writeLine(t){if(t+=s.EOL,this.writeAsync)return this.asyncWriteQueue.push(t),void this.nextAsyncWrite();try{i.writeFileSync(this.path,t,this.writeOptions),this.increaseBytesWrittenCounter(t)}catch(t){this.emit("error",new Error(`Couldn't write to ${this.path}. ${t.message}`),this)}}}},5255(t,e,r){"use strict";const n=r(4434),i=r(9896),s=r(6928),o=r(7364),a=r(8369);t.exports=class extends n{store={};constructor(){super(),this.emitError=this.emitError.bind(this)}provide({filePath:t,writeOptions:e={},writeAsync:r=!1}){let n;try{if(t=s.resolve(t),this.store[t])return this.store[t];n=this.createFile({filePath:t,writeOptions:e,writeAsync:r})}catch(e){n=new a({path:t}),this.emitError(e,n)}return n.on("error",this.emitError),this.store[t]=n,n}createFile({filePath:t,writeOptions:e,writeAsync:r}){return this.testFileWriting({filePath:t,writeOptions:e}),new o({path:t,writeOptions:e,writeAsync:r})}emitError(t,e){this.emit("error",t,e)}testFileWriting({filePath:t,writeOptions:e}){i.mkdirSync(s.dirname(t),{recursive:!0}),i.writeFileSync(t,"",{flag:"a",mode:e.mode})}}},8369(t,e,r){"use strict";const n=r(7364);t.exports=class extends n{clear(){}crop(){}getSize(){return 0}isNull(){return!0}writeLine(){}}},1548(t,e,r){"use strict";const n=r(9896),i=r(857),s=r(6928),o=r(5255),{transform:a}=r(8018),{removeStyles:l}=r(8503),{format:u,concatFirstStringElements:h}=r(1935),{toString:c}=r(8915);t.exports=function(t,{registry:e=d,externalApi:r}={}){let o;e.listenerCount("error")<1&&e.on("error",((t,e)=>{b(`Can't write to ${e}`,t)}));return Object.assign(p,{fileName:f(t.variables.processType),format:"[{y}-{m}-{d} {h}:{i}:{s}.{ms}] [{level}]{scope} {text}",getFile:m,inspectOptions:{depth:5},level:"silly",maxSize:1048576,readAllLogs:function({fileFilter:t=t=>t.endsWith(".log")}={}){g();const e=s.dirname(p.resolvePathFn(o));if(!n.existsSync(e))return[];return n.readdirSync(e).map((t=>s.join(e,t))).filter(t).map((t=>{try{return{path:t,lines:n.readFileSync(t,"utf8").split(i.EOL)}}catch{return null}})).filter(Boolean)},sync:!0,transforms:[l,u,h,c],writeOptions:{flag:"a",mode:438,encoding:"utf8"},archiveLogFn(t){const e=t.toString(),r=s.parse(e);try{n.renameSync(e,s.join(r.dir,`${r.name}.old${r.ext}`))}catch(e){b("Could not rotate log",e);const r=Math.round(p.maxSize/4);t.crop(Math.min(r,262144))}},resolvePathFn:t=>s.join(t.libraryDefaultDir,t.fileName),setAppName(e){t.dependencies.externalApi.setAppName(e)}});function p(e){const r=m(e);p.maxSize>0&&r.size>p.maxSize&&(p.archiveLogFn(r),r.reset());const n=a({logger:t,message:e,transport:p});r.writeLine(n)}function g(){o||(o=Object.create(Object.prototype,{...Object.getOwnPropertyDescriptors(r.getPathVariables()),fileName:{get:()=>p.fileName,enumerable:!0}}),"function"==typeof p.archiveLog&&(p.archiveLogFn=p.archiveLog,b("archiveLog is deprecated. Use archiveLogFn instead")),"function"==typeof p.resolvePath&&(p.resolvePathFn=p.resolvePath,b("resolvePath is deprecated. Use resolvePathFn instead")))}function b(e,r=null,n="error"){const i=[`electron-log.transports.file: ${e}`];r&&i.push(r),t.transports.console({data:i,date:new Date,level:n})}function m(t){g();const r=p.resolvePathFn(o,t);return e.provide({filePath:r,writeAsync:!p.sync,writeOptions:p.writeOptions})}};const d=new o;function f(t=process.type){switch(t){case"renderer":return"renderer.log";case"worker":return"worker.log";default:return"main.log"}}},4631(t,e,r){"use strict";const{maxDepth:n,toJSON:i}=r(8915),{transform:s}=r(8018);t.exports=function(t,{externalApi:e}){return Object.assign(r,{depth:3,eventId:"__ELECTRON_LOG_IPC__",level:!!t.isDev&&"silly",transforms:[i,n]}),e?.isElectron()?r:void 0;function r(n){"renderer"!==n?.variables?.processType&&e?.sendIpc(r.eventId,{...n,data:s({logger:t,message:n,transport:r})})}}},9359(t,e,r){"use strict";const n=r(8611),i=r(5692),{transform:s}=r(8018),{removeStyles:o}=r(8503),{toJSON:a,maxDepth:l}=r(8915);t.exports=function(t){return Object.assign(e,{client:{name:"electron-application"},depth:6,level:!1,requestOptions:{},transforms:[o,a,l],makeBodyFn:({message:t})=>JSON.stringify({client:e.client,data:t.data,date:t.date.getTime(),level:t.level,scope:t.scope,variables:t.variables}),processErrorFn({error:r}){t.processMessage({data:[`electron-log: can't POST ${e.url}`,r],level:"warn"},{transports:["console","file"]})},sendRequestFn({serverUrl:t,requestOptions:e,body:r}){const s=(t.startsWith("https:")?i:n).request(t,{method:"POST",...e,headers:{"Content-Type":"application/json","Content-Length":r.length,...e.headers}});return s.write(r),s.end(),s}});function e(r){if(!e.url)return;const n=e.makeBodyFn({logger:t,message:{...r,data:s({logger:t,message:r,transport:e})},transport:e}),i=e.sendRequestFn({serverUrl:e.url,requestOptions:e.requestOptions,body:Buffer.from(n,"utf8")});i.on("error",(n=>e.processErrorFn({error:n,logger:t,message:r,request:i,transport:e})))}}},8308(t,e,r){"use strict";let n={};try{n=r(1207)}catch(t){}function i({contextBridge:t,ipcRenderer:e}){if(!e)return;e.on("__ELECTRON_LOG_IPC__",((t,e)=>{window.postMessage({cmd:"message",...e})})),e.invoke("__ELECTRON_LOG__",{cmd:"getOptions"}).catch((t=>console.error(new Error(`electron-log isn't initialized in the main process. Please call log.initialize() before. ${t.message}`))));const r={sendToMain(t){try{e.send("__ELECTRON_LOG__",t)}catch(r){console.error("electronLog.sendToMain ",r,"data:",t),e.send("__ELECTRON_LOG__",{cmd:"errorHandler",error:{message:r?.message,stack:r?.stack},errorName:"sendToMain"})}},log(...t){r.sendToMain({data:t,level:"info"})}};for(const t of["error","warn","info","verbose","debug","silly"])r[t]=(...e)=>r.sendToMain({data:e,level:t});if(t&&process.contextIsolated)try{t.exposeInMainWorld("__electronLog",r)}catch{}"object"==typeof window?window.__electronLog=r:__electronLog=r}n.ipcRenderer&&i(n),t.exports=i},6393(t,e,r){"use strict";const n=r(885),i=r(3616),s=r(4857),o=r(6954);t.exports=function(){const t=new n({allowUnknownLevel:!0,errorHandler:new i,initializeFn:()=>{},logId:"default",transportFactories:{console:s,ipc:o},variables:{processType:"renderer"}});t.errorHandler.setOptions({logFn({error:e,errorName:r,showDialog:n}){t.transports.console({data:[r,e].filter(Boolean),level:"error"}),t.transports.ipc({cmd:"errorHandler",error:{cause:e?.cause,code:e?.code,name:e?.name,message:e?.message,stack:e?.stack},errorName:r,logId:t.logId,showDialog:n})}}),"object"==typeof window&&window.addEventListener("message",(t=>{const{cmd:e,logId:r,...i}=t.data||{},s=n.getInstance({logId:r});"message"===e&&s.processMessage(i,{transports:["console"]})}));return new Proxy(t,{get:(e,r)=>void 0!==e[r]?e[r]:(...e)=>t.logData(e,{level:r})})}(),t.exports.Logger=n,t.exports.default=t.exports},3616(t){"use strict";const e=console.error;t.exports=class{logFn=null;onError=null;showDialog=!1;preventDefault=!0;constructor({logFn:t=null}={}){this.handleError=this.handleError.bind(this),this.handleRejection=this.handleRejection.bind(this),this.startCatching=this.startCatching.bind(this),this.logFn=t}handle(t,{logFn:r=this.logFn,errorName:n="",onError:i=this.onError,showDialog:s=this.showDialog}={}){try{!1!==i?.({error:t,errorName:n,processType:"renderer"})&&r({error:t,errorName:n,showDialog:s})}catch{e(t)}}setOptions({logFn:t,onError:e,preventDefault:r,showDialog:n}){"function"==typeof t&&(this.logFn=t),"function"==typeof e&&(this.onError=e),"boolean"==typeof r&&(this.preventDefault=r),"boolean"==typeof n&&(this.showDialog=n)}startCatching({onError:t,showDialog:e}={}){this.isActive||(this.isActive=!0,this.setOptions({onError:t,showDialog:e}),window.addEventListener("error",(t=>{this.preventDefault&&t.preventDefault?.(),this.handleError(t.error||t)})),window.addEventListener("unhandledrejection",(t=>{this.preventDefault&&t.preventDefault?.(),this.handleRejection(t.reason||t)})))}handleError(t){this.handle(t,{errorName:"Unhandled"})}handleRejection(t){const e=t instanceof Error?t:new Error(JSON.stringify(t));this.handle(e,{errorName:"Unhandled rejection"})}}},4857(t){"use strict";t.exports=function(t){return Object.assign(r,{format:"{h}:{i}:{s}.{ms}{scope} › {text}",formatDataFn:({data:e=[],date:n=new Date,format:i=r.format,logId:s=t.logId,scope:o=t.scopeName,...a})=>"function"==typeof i?i({...a,data:e,date:n,logId:s,scope:o}):("string"!=typeof i||(e.unshift(i),"string"==typeof e[1]&&e[1].match(/%[1cdfiOos]/)&&(e=[`${e[0]} ${e[1]}`,...e.slice(2)]),e[0]=e[0].replace(/\{(\w+)}/g,((t,e)=>{switch(e){case"level":return a.level;case"logId":return s;case"scope":return o?` (${o})`:"";case"text":return"";case"y":return n.getFullYear().toString(10);case"m":return(n.getMonth()+1).toString(10).padStart(2,"0");case"d":return n.getDate().toString(10).padStart(2,"0");case"h":return n.getHours().toString(10).padStart(2,"0");case"i":return n.getMinutes().toString(10).padStart(2,"0");case"s":return n.getSeconds().toString(10).padStart(2,"0");case"ms":return n.getMilliseconds().toString(10).padStart(3,"0");case"iso":return n.toISOString();default:return a.variables?.[e]||t}})).trim()),e),writeFn({message:{level:t,data:r}}){const n=e[t]||e.info;setTimeout((()=>n(...r)))}});function r(t){r.writeFn({message:{...t,data:r.formatDataFn(t)}})}};const e={error:console.error,warn:console.warn,info:console.info,verbose:console.info,debug:console.debug,silly:console.debug,log:console.log}},6954(t){"use strict";t.exports=function(t){return Object.assign(n,{depth:5,serializeFn:(t,{depth:i=5,seen:s=new WeakSet}={})=>s.has(t)?"[Circular]":i<1?r(t)?t:Array.isArray(t)?"[Array]":`[${typeof t}]`:["function","symbol"].includes(typeof t)?t.toString():r(t)?t:e.has(t.constructor)?`[${t.constructor.name}]`:Array.isArray(t)?t.map((t=>n.serializeFn(t,{depth:i-1,seen:s}))):t instanceof Date?t.toISOString():t instanceof Error?t.stack:t instanceof Map?new Map(Array.from(t).map((([t,e])=>[n.serializeFn(t,{depth:i-1,seen:s}),n.serializeFn(e,{depth:i-1,seen:s})]))):t instanceof Set?new Set(Array.from(t).map((t=>n.serializeFn(t,{depth:i-1,seen:s})))):(s.add(t),Object.fromEntries(Object.entries(t).map((([t,e])=>[t,n.serializeFn(e,{depth:i-1,seen:s})]))))});function n(e){if(window.__electronLog)try{__electronLog.sendToMain(n.serializeFn(e,{depth:n.depth}))}catch(r){t.transports.console({data:["electronLog.transports.ipc",r,"data:",e.data],level:"error"})}else t.processMessage({data:["electron-log: logger isn't initialized in the main process"],level:"error"},{transports:["console"]})}};const e=new Set([Promise,WeakMap,WeakSet]);function r(t){return Object(t)!==t}},1207(t,e,r){const n=r(9896),i=r(6928),s=i.join(__dirname,"path.txt");t.exports=function(){let t;if(n.existsSync(s)&&(t=n.readFileSync(s,"utf-8")),process.env.ELECTRON_OVERRIDE_DIST_PATH)return i.join(process.env.ELECTRON_OVERRIDE_DIST_PATH,t||"electron");if(t)return i.join(__dirname,"dist",t);throw new Error("Electron failed to install correctly, please delete node_modules/electron and try installing again")}()},4988(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=new WeakMap,n=new WeakMap;function i(t){const e=r.get(t);return console.assert(null!=e,"'this' is expected an Event object, but got",t),e}function s(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function o(t,e){r.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=Object.keys(e);for(let t=0;t<n.length;++t){const e=n[t];e in this||Object.defineProperty(this,e,a(e))}}function a(t){return{get(){return i(this).event[t]},set(e){i(this).event[t]=e},configurable:!0,enumerable:!0}}function l(t){return{value(){const e=i(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function u(t){if(null==t||t===Object.prototype)return o;let e=n.get(t);return null==e&&(e=function(t,e){const r=Object.keys(e);if(0===r.length)return t;function n(e,r){t.call(this,e,r)}n.prototype=Object.create(t.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let i=0;i<r.length;++i){const s=r[i];if(!(s in t.prototype)){const t="function"==typeof Object.getOwnPropertyDescriptor(e,s).value;Object.defineProperty(n.prototype,s,t?l(s):a(s))}}return n}(u(Object.getPrototypeOf(t)),t),n.set(t,e)),e}function h(t){return i(t).immediateStopped}function c(t,e){i(t).passiveListener=e}o.prototype={get type(){return i(this).event.type},get target(){return i(this).eventTarget},get currentTarget(){return i(this).currentTarget},composedPath(){const t=i(this).currentTarget;return null==t?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return i(this).eventPhase},stopPropagation(){const t=i(this);t.stopped=!0,"function"==typeof t.event.stopPropagation&&t.event.stopPropagation()},stopImmediatePropagation(){const t=i(this);t.stopped=!0,t.immediateStopped=!0,"function"==typeof t.event.stopImmediatePropagation&&t.event.stopImmediatePropagation()},get bubbles(){return Boolean(i(this).event.bubbles)},get cancelable(){return Boolean(i(this).event.cancelable)},preventDefault(){s(i(this))},get defaultPrevented(){return i(this).canceled},get composed(){return Boolean(i(this).event.composed)},get timeStamp(){return i(this).timeStamp},get srcElement(){return i(this).eventTarget},get cancelBubble(){return i(this).stopped},set cancelBubble(t){if(!t)return;const e=i(this);e.stopped=!0,"boolean"==typeof e.event.cancelBubble&&(e.event.cancelBubble=!0)},get returnValue(){return!i(this).canceled},set returnValue(t){t||s(i(this))},initEvent(){}},Object.defineProperty(o.prototype,"constructor",{value:o,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(o.prototype,window.Event.prototype),n.set(window.Event.prototype,o));const d=new WeakMap;function f(t){return null!==t&&"object"==typeof t}function p(t){const e=d.get(t);if(null==e)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function g(t,e){Object.defineProperty(t,`on${e}`,function(t){return{get(){let e=p(this).get(t);for(;null!=e;){if(3===e.listenerType)return e.listener;e=e.next}return null},set(e){"function"==typeof e||f(e)||(e=null);const r=p(this);let n=null,i=r.get(t);for(;null!=i;)3===i.listenerType?null!==n?n.next=i.next:null!==i.next?r.set(t,i.next):r.delete(t):n=i,i=i.next;if(null!==e){const i={listener:e,listenerType:3,passive:!1,once:!1,next:null};null===n?r.set(t,i):n.next=i}},configurable:!0,enumerable:!0}}(e))}function b(t){function e(){m.call(this)}e.prototype=Object.create(m.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)g(e.prototype,t[r]);return e}function m(){if(!(this instanceof m)){if(1===arguments.length&&Array.isArray(arguments[0]))return b(arguments[0]);if(arguments.length>0){const t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return b(t)}throw new TypeError("Cannot call a class as a function")}d.set(this,new Map)}m.prototype={addEventListener(t,e,r){if(null==e)return;if("function"!=typeof e&&!f(e))throw new TypeError("'listener' should be a function or an object.");const n=p(this),i=f(r),s=(i?Boolean(r.capture):Boolean(r))?1:2,o={listener:e,listenerType:s,passive:i&&Boolean(r.passive),once:i&&Boolean(r.once),next:null};let a=n.get(t);if(void 0===a)return void n.set(t,o);let l=null;for(;null!=a;){if(a.listener===e&&a.listenerType===s)return;l=a,a=a.next}l.next=o},removeEventListener(t,e,r){if(null==e)return;const n=p(this),i=(f(r)?Boolean(r.capture):Boolean(r))?1:2;let s=null,o=n.get(t);for(;null!=o;){if(o.listener===e&&o.listenerType===i)return void(null!==s?s.next=o.next:null!==o.next?n.set(t,o.next):n.delete(t));s=o,o=o.next}},dispatchEvent(t){if(null==t||"string"!=typeof t.type)throw new TypeError('"event.type" should be a string.');const e=p(this),r=t.type;let n=e.get(r);if(null==n)return!0;const s=function(t,e){return new(u(Object.getPrototypeOf(e)))(t,e)}(this,t);let o=null;for(;null!=n;){if(n.once?null!==o?o.next=n.next:null!==n.next?e.set(r,n.next):e.delete(r):o=n,c(s,n.passive?n.listener:null),"function"==typeof n.listener)try{n.listener.call(this,s)}catch(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t)}else 3!==n.listenerType&&"function"==typeof n.listener.handleEvent&&n.listener.handleEvent(s);if(h(s))break;n=n.next}return c(s,null),function(t,e){i(t).eventPhase=e}(s,0),function(t,e){i(t).currentTarget=e}(s,null),!s.defaultPrevented}},Object.defineProperty(m.prototype,"constructor",{value:m,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(m.prototype,window.EventTarget.prototype),e.defineEventAttribute=g,e.EventTarget=m,e.default=m,t.exports=m,t.exports.EventTarget=t.exports.default=m,t.exports.defineEventAttribute=g},8190(t){t.exports=class{constructor(t){if(!(t>0)||t-1&t)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(t),this.mask=t-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(t){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=t,this.top=this.top+1&this.mask,!0)}shift(){const t=this.buffer[this.btm];if(void 0!==t)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,t}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},6080(t,e,r){const n=r(8190);t.exports=class{constructor(t){this.hwm=t||16,this.head=new n(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(t){if(this.length++,!this.head.push(t)){const e=this.head;this.head=e.next=new n(2*this.head.buffer.length),this.head.push(t)}}shift(){0!==this.length&&this.length--;const t=this.tail.shift();if(void 0===t&&this.tail.next){const t=this.tail.next;return this.tail.next=null,this.tail=t,this.tail.shift()}return t}peek(){const t=this.tail.peek();return void 0===t&&this.tail.next?this.tail.next.peek():t}isEmpty(){return 0===this.length}}},1283(t){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var r={__proto__:e(t)};else r=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))})),r};var e=Object.getPrototypeOf||function(t){return t.__proto__}},3735(t,e,r){var n,i,s=r(9896),o=r(9106),a=r(1995),l=r(1283),u=r(9023);function h(t,e){Object.defineProperty(t,n,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var c,d=function(){};if(u.debuglog?d=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var t=u.format.apply(u,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),!s[n]){var f=global[n]||[];h(s,f),s.close=function(t){function e(e,r){return t.call(s,e,(function(t){t||b(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(e,i,{value:t}),e}(s.close),s.closeSync=function(t){function e(e){t.apply(s,arguments),b()}return Object.defineProperty(e,i,{value:t}),e}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(s[n]),r(2613).equal(s[n].length,0)}))}function p(t){o(t),t.gracefulify=p,t.createReadStream=function(e,r){return new t.ReadStream(e,r)},t.createWriteStream=function(e,r){return new t.WriteStream(e,r)};var e=t.readFile;t.readFile=function(t,r,n){"function"==typeof r&&(n=r,r=null);return function t(r,n,i,s){return e(r,n,(function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?"function"==typeof i&&i.apply(this,arguments):g([t,[r,n,i],e,s||Date.now(),Date.now()])}))}(t,r,n)};var r=t.writeFile;t.writeFile=function(t,e,n,i){"function"==typeof n&&(i=n,n=null);return function t(e,n,i,s,o){return r(e,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):g([t,[e,n,i,s],r,o||Date.now(),Date.now()])}))}(t,e,n,i)};var n=t.appendFile;n&&(t.appendFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=null);return function t(e,r,i,s,o){return n(e,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):g([t,[e,r,i,s],n,o||Date.now(),Date.now()])}))}(t,e,r,i)});var i=t.copyFile;i&&(t.copyFile=function(t,e,r,n){"function"==typeof r&&(n=r,r=0);return function t(e,r,n,s,o){return i(e,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof s&&s.apply(this,arguments):g([t,[e,r,n,s],i,o||Date.now(),Date.now()])}))}(t,e,r,n)});var s=t.readdir;t.readdir=function(t,e,r){"function"==typeof e&&(r=e,e=null);var n=l.test(process.version)?function(t,e,r,n){return s(t,i(t,e,r,n))}:function(t,e,r,n){return s(t,e,i(t,e,r,n))};return n(t,e,r);function i(t,e,r,i){return function(s,o){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(o&&o.sort&&o.sort(),"function"==typeof r&&r.call(this,s,o)):g([n,[t,e,r],s,i||Date.now(),Date.now()])}}};var l=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var u=a(t);b=u.ReadStream,m=u.WriteStream}var h=t.ReadStream;h&&(b.prototype=Object.create(h.prototype),b.prototype.open=function(){var t=this;w(t.path,t.flags,t.mode,(function(e,r){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r),t.read())}))});var c=t.WriteStream;c&&(m.prototype=Object.create(c.prototype),m.prototype.open=function(){var t=this;w(t.path,t.flags,t.mode,(function(e,r){e?(t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r))}))}),Object.defineProperty(t,"ReadStream",{get:function(){return b},set:function(t){b=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return m},set:function(t){m=t},enumerable:!0,configurable:!0});var d=b;Object.defineProperty(t,"FileReadStream",{get:function(){return d},set:function(t){d=t},enumerable:!0,configurable:!0});var f=m;function b(t,e){return this instanceof b?(h.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function m(t,e){return this instanceof m?(c.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return f},set:function(t){f=t},enumerable:!0,configurable:!0});var y=t.open;function w(t,e,r,n){return"function"==typeof r&&(n=r,r=null),function t(e,r,n,i,s){return y(e,r,n,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):g([t,[e,r,n,i],o,s||Date.now(),Date.now()])}))}(t,e,r,n)}return t.open=w,t}function g(t){d("ENQUEUE",t[0].name,t[1]),s[n].push(t),m()}function b(){for(var t=Date.now(),e=0;e<s[n].length;++e)s[n][e].length>2&&(s[n][e][3]=t,s[n][e][4]=t);m()}function m(){if(clearTimeout(c),c=void 0,0!==s[n].length){var t=s[n].shift(),e=t[0],r=t[1],i=t[2],o=t[3],a=t[4];if(void 0===o)d("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-o>=6e4){d("TIMEOUT",e.name,r);var l=r.pop();"function"==typeof l&&l.call(null,i)}else{var u=Date.now()-a,h=Math.max(a-o,1);u>=Math.min(1.2*h,100)?(d("RETRY",e.name,r),e.apply(null,r.concat([o]))):s[n].push(t)}void 0===c&&(c=setTimeout(m,0))}}global[n]||h(global,s[n]),t.exports=p(l(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(t.exports=p(s),s.__patched=!0)},1995(t,e,r){var n=r(2203).Stream;t.exports=function(t){return{ReadStream:function e(r,i){if(!(this instanceof e))return new e(r,i);n.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var o=Object.keys(i),a=0,l=o.length;a<l;a++){var u=o[a];this[u]=i[u]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){s._read()}));t.open(this.path,this.flags,this.mode,(function(t,e){if(t)return s.emit("error",t),void(s.readable=!1);s.fd=e,s.emit("open",e),s._read()}))},WriteStream:function e(r,i){if(!(this instanceof e))return new e(r,i);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=i[l]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},9106(t,e,r){var n=r(9140),i=process.cwd,s=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(t){s=null,a.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}t.exports=function(t){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,r,i){t.open(e,n.O_WRONLY|n.O_SYMLINK,r,(function(e,n){e?i&&i(e):t.fchmod(n,r,(function(e){t.close(n,(function(t){i&&i(e||t)}))}))}))},t.lchmodSync=function(e,r){var i,s=t.openSync(e,n.O_WRONLY|n.O_SYMLINK,r),o=!0;try{i=t.fchmodSync(s,r),o=!1}finally{if(o)try{t.closeSync(s)}catch(t){}else t.closeSync(s)}return i}}(t);t.lutimes||function(t){n.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(e,r,i,s){t.open(e,n.O_SYMLINK,(function(e,n){e?s&&s(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){s&&s(e||t)}))}))}))},t.lutimesSync=function(e,r,i){var s,o=t.openSync(e,n.O_SYMLINK),a=!0;try{s=t.futimesSync(o,r,i),a=!1}finally{if(a)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return s}):t.futimes&&(t.lutimes=function(t,e,r,n){n&&process.nextTick(n)},t.lutimesSync=function(){})}(t);t.chown=i(t.chown),t.fchown=i(t.fchown),t.lchown=i(t.lchown),t.chmod=e(t.chmod),t.fchmod=e(t.fchmod),t.lchmod=e(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=r(t.chmodSync),t.fchmodSync=r(t.fchmodSync),t.lchmodSync=r(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(t,e,r){r&&process.nextTick(r)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(t,e,r,n){n&&process.nextTick(n)},t.lchownSync=function(){});"win32"===o&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function r(r,n,i){var s=Date.now(),o=0;e(r,n,(function a(l){if(l&&("EACCES"===l.code||"EPERM"===l.code||"EBUSY"===l.code)&&Date.now()-s<6e4)return setTimeout((function(){t.stat(n,(function(t,s){t&&"ENOENT"===t.code?e(r,n,a):i(l)}))}),o),void(o<100&&(o+=10));i&&i(l)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.rename));function e(e){return e?function(r,n,i){return e.call(t,r,n,(function(t){u(t)&&(t=null),i&&i.apply(this,arguments)}))}:e}function r(e){return e?function(r,n){try{return e.call(t,r,n)}catch(t){if(!u(t))throw t}}:e}function i(e){return e?function(r,n,i,s){return e.call(t,r,n,i,(function(t){u(t)&&(t=null),s&&s.apply(this,arguments)}))}:e}function s(e){return e?function(r,n,i){try{return e.call(t,r,n,i)}catch(t){if(!u(t))throw t}}:e}function a(e){return e?function(r,n,i){function s(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?e.call(t,r,n,s):e.call(t,r,s)}:e}function l(e){return e?function(r,n){var i=n?e.call(t,r,n):e.call(t,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:e}function u(t){return!t||("ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code))}t.read="function"!=typeof t.read?t.read:function(e){function r(r,n,i,s,o,a){var l;if(a&&"function"==typeof a){var u=0;l=function(h,c,d){if(h&&"EAGAIN"===h.code&&u<10)return u++,e.call(t,r,n,i,s,o,l);a.apply(this,arguments)}}return e.call(t,r,n,i,s,o,l)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(h=t.readSync,function(e,r,n,i,s){for(var o=0;;)try{return h.call(t,e,r,n,i,s)}catch(t){if("EAGAIN"===t.code&&o<10){o++;continue}throw t}});var h}},5884(t){"use strict";t.exports=(t,e=process.argv)=>{const r=t.startsWith("-")?"":1===t.length?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return-1!==n&&(-1===i||n<i)}},2017(t,e,r){try{var n=r(9023);if("function"!=typeof n.inherits)throw"";t.exports=n.inherits}catch(e){t.exports=r(6698)}},6698(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},1232(t){"use strict";const e=t=>null!==t&&"object"==typeof t&&"function"==typeof t.pipe;e.writable=t=>e(t)&&!1!==t.writable&&"function"==typeof t._write&&"object"==typeof t._writableState,e.readable=t=>e(t)&&!1!==t.readable&&"function"==typeof t._read&&"object"==typeof t._readableState,e.duplex=t=>e.writable(t)&&e.readable(t),e.transform=t=>e.duplex(t)&&"function"==typeof t._transform,t.exports=e},1394(t){"use strict";const{FORCE_COLOR:e,NODE_DISABLE_COLORS:r,TERM:n}=process.env,i={enabled:!r&&"dumb"!==n&&"0"!==e,reset:o(0,0),bold:o(1,22),dim:o(2,22),italic:o(3,23),underline:o(4,24),inverse:o(7,27),hidden:o(8,28),strikethrough:o(9,29),black:o(30,39),red:o(31,39),green:o(32,39),yellow:o(33,39),blue:o(34,39),magenta:o(35,39),cyan:o(36,39),white:o(37,39),gray:o(90,39),grey:o(90,39),bgBlack:o(40,49),bgRed:o(41,49),bgGreen:o(42,49),bgYellow:o(43,49),bgBlue:o(44,49),bgMagenta:o(45,49),bgCyan:o(46,49),bgWhite:o(47,49)};function s(t,e){let r,n=0,i="",s="";for(;n<t.length;n++)r=t[n],i+=r.open,s+=r.close,e.includes(r.close)&&(e=e.replace(r.rgx,r.close+r.open));return i+e+s}function o(t,e){let r={open:`[${t}m`,close:`[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(e){return void 0!==this&&void 0!==this.has?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),void 0===e?this:i.enabled?s(this.keys,e+""):e+""):void 0===e?function(t,e){let r={has:t,keys:e};return r.reset=i.reset.bind(r),r.bold=i.bold.bind(r),r.dim=i.dim.bind(r),r.italic=i.italic.bind(r),r.underline=i.underline.bind(r),r.inverse=i.inverse.bind(r),r.hidden=i.hidden.bind(r),r.strikethrough=i.strikethrough.bind(r),r.black=i.black.bind(r),r.red=i.red.bind(r),r.green=i.green.bind(r),r.yellow=i.yellow.bind(r),r.blue=i.blue.bind(r),r.magenta=i.magenta.bind(r),r.cyan=i.cyan.bind(r),r.white=i.white.bind(r),r.gray=i.gray.bind(r),r.grey=i.grey.bind(r),r.bgBlack=i.bgBlack.bind(r),r.bgRed=i.bgRed.bind(r),r.bgGreen=i.bgGreen.bind(r),r.bgYellow=i.bgYellow.bind(r),r.bgBlue=i.bgBlue.bind(r),r.bgMagenta=i.bgMagenta.bind(r),r.bgCyan=i.bgCyan.bind(r),r.bgWhite=i.bgWhite.bind(r),r}([t],[r]):i.enabled?s([r],e+""):e+""}}t.exports=i},85(t,e,r){var n=r(9023),i=r(8768);function s(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function o(t,e){if(!(this instanceof o))return new o(t,e);i.call(this,e),s(this,"_read",(function(){var r=t.call(this,e),n=this.emit.bind(this,"error");r.on("error",n),r.pipe(this)})),this.emit("readable")}function a(t,e){if(!(this instanceof a))return new a(t,e);i.call(this,e),s(this,"_write",(function(){var r=t.call(this,e),n=this.emit.bind(this,"error");r.on("error",n),this.pipe(r)})),this.emit("writable")}t.exports={Readable:o,Writable:a},n.inherits(o,i),n.inherits(a,i)},148(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},2676(t,e,r){"use strict";var n=r(3225),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var s=Object.create(r(5622));s.inherits=r(2017);var o=r(2922),a=r(4734);s.inherits(c,o);for(var l=i(a.prototype),u=0;u<l.length;u++){var h=l[u];c.prototype[h]||(c.prototype[h]=a.prototype[h])}function c(t){if(!(this instanceof c))return new c(t);o.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),c.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},6462(t,e,r){"use strict";t.exports=s;var n=r(5828),i=Object.create(r(5622));function s(t){if(!(this instanceof s))return new s(t);n.call(this,t)}i.inherits=r(2017),i.inherits(s,n),s.prototype._transform=function(t,e,r){r(null,t)}},2922(t,e,r){"use strict";var n=r(3225);t.exports=y;var i,s=r(148);y.ReadableState=m;r(4434).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=r(7354),l=r(6347).Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h=Object.create(r(5622));h.inherits=r(2017);var c=r(9023),d=void 0;d=c&&c.debuglog?c.debuglog("stream"):function(){};var f,p=r(4156),g=r(8762);h.inherits(y,a);var b=["error","close","destroy","pause","resume"];function m(t,e){t=t||{};var n=e instanceof(i=i||r(2676));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var s=t.highWaterMark,o=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:n&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=r(8247).I),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function y(t){if(i=i||r(2676),!(this instanceof y))return new y(t);this._readableState=new m(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function w(t,e,r,n,i){var s,o=t._readableState;null===e?(o.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,E(t)}(t,o)):(i||(s=function(t,e){var r;n=e,l.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,e)),s?t.emit("error",s):o.objectMode||e&&e.length>0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),n?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?_(t,o,e,!1):A(t,o)):_(t,o,e,!1))):n||(o.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(o)}function _(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&E(t)),A(t,e)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(t,e){this.push(null),e(t)},y.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=l.from(t,e),e=""),r=!0),w(this,t,e,!1,r)},y.prototype.unshift=function(t){return w(this,t,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(t){return f||(f=r(8247).I),this._readableState.decoder=new f(t),this._readableState.encoding=t,this};var v=8388608;function S(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=v?t=v:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function E(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?n.nextTick(x,t):x(t))}function x(t){d("emit readable"),t.emit("readable"),k(t)}function A(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(R,t,e))}function R(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function O(t){d("readable nexttick read 0"),t.read(0)}function T(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),k(t),e.flowing&&!e.reading&&t.read(0)}function k(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function M(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),0===(t-=o)){o===s.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=l.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var s=n.data,o=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,o),0===(t-=o)){o===s.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=s.slice(o));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,n.nextTick(I,e,t))}function I(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function L(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}y.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):E(this),null;if(0===(t=S(t,e))&&e.ended)return 0===e.length&&P(this),null;var n,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",i=!0),e.ended||e.reading?d("reading or ended",i=!1):i&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=S(r,e))),null===(n=t>0?M(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&P(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,d("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:y;function l(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",b),t.removeListener("finish",m),t.removeListener("drain",h),t.removeListener("error",g),t.removeListener("unpipe",l),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",p),c=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function u(){d("onend"),t.end()}i.endEmitted?n.nextTick(a):r.once("end",a),t.on("unpipe",l);var h=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,k(t))}}(r);t.on("drain",h);var c=!1;var f=!1;function p(e){d("ondata"),f=!1,!1!==t.write(e)||f||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==L(i.pipes,t))&&!c&&(d("false write response, pause",i.awaitDrain),i.awaitDrain++,f=!0),r.pause())}function g(e){d("onerror",e),y(),t.removeListener("error",g),0===o(t,"error")&&t.emit("error",e)}function b(){t.removeListener("finish",m),y()}function m(){d("onfinish"),t.removeListener("close",b),y()}function y(){d("unpipe"),r.unpipe(t)}return r.on("data",p),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",g),t.once("close",b),t.once("finish",m),t.emit("pipe",r),i.flowing||(d("pipe resume"),r.resume()),t},y.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=L(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},y.prototype.on=function(t,e){var r=a.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&E(this):n.nextTick(O,this))}return r},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(T,t,e))}(this,t)),this},y.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(d("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var s=0;s<b.length;s++)t.on(b[s],this.emit.bind(this,b[s]));return this._read=function(e){d("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=M},5828(t,e,r){"use strict";t.exports=o;var n=r(2676),i=Object.create(r(5622));function s(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);n.call(this,t),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){l(t,e,r)})):l(this,null,null)}function l(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=r(2017),i.inherits(o,n),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))}},4734(t,e,r){"use strict";var n=r(3225);function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=b;var s,o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;b.WritableState=g;var a=Object.create(r(5622));a.inherits=r(2017);var l={deprecate:r(7983)},u=r(7354),h=r(6347).Buffer,c=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var d,f=r(8762);function p(){}function g(t,e){s=s||r(2676),t=t||{};var a=e instanceof s;this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var l=t.highWaterMark,u=t.writableHighWaterMark,h=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:a&&(u||0===u)?u:h,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,i=r.sync,s=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,i,s){--e.pendingcb,r?(n.nextTick(s,i),n.nextTick(S,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(s(i),t._writableState.errorEmitted=!0,t.emit("error",i),S(t,e))}(t,r,i,e,s);else{var a=_(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(t,r),i?o(y,t,r,a,s):y(t,r,a,s)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function b(t){if(s=s||r(2676),!(d.call(b,this)||this instanceof s))return new b(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function m(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function y(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),S(t,e)}function w(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,s=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)s[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;s.allBuffers=l,m(t,e,!0,e.length,s,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,h=r.encoding,c=r.callback;if(m(t,e,!1,e.objectMode?1:u.length,u,h,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function _(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function v(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),S(t,e)}))}function S(t,e){var r=_(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,n.nextTick(v,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}a.inherits(b,u),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===b&&(t&&t._writableState instanceof g)}})):d=function(t){return t instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(t,e,r){var i,s=this._writableState,o=!1,a=!s.objectMode&&(i=t,h.isBuffer(i)||i instanceof c);return a&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"==typeof e&&(r=e,e=null),a?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof r&&(r=p),s.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),n.nextTick(e,r)}(this,r):(a||function(t,e,r,i){var s=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),n.nextTick(i,o),s=!1),s}(this,s,t,r))&&(s.pendingcb++,o=function(t,e,r,n,i,s){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=h.from(e,r));return e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else m(t,e,!1,a,n,i,s);return l}(this,s,a,t,e,r)),o},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||w(this,t))},b.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(t,e,r){var i=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,r){e.ending=!0,S(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,i,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=f.destroy,b.prototype._undestroy=f.undestroy,b.prototype._destroy=function(t,e){this.end(),e(t)}},4156(t,e,r){"use strict";var n=r(6347).Buffer,i=r(9023);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i,s=n.allocUnsafe(t>>>0),o=this.head,a=0;o;)e=o.data,r=s,i=a,e.copy(r,i),a+=o.data.length,o=o.next;return s},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},8762(t,e,r){"use strict";var n=r(3225);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},7354(t,e,r){t.exports=r(2203)},8768(t,e,r){t.exports=r(3940).PassThrough},3940(t,e,r){var n=r(2203);"disable"===process.env.READABLE_STREAM&&n?(t.exports=n,(e=t.exports=n.Readable).Readable=n.Readable,e.Writable=n.Writable,e.Duplex=n.Duplex,e.Transform=n.Transform,e.PassThrough=n.PassThrough,e.Stream=n):((e=t.exports=r(2922)).Stream=n||e,e.Readable=e,e.Writable=r(4734),e.Duplex=r(2676),e.Transform=r(5828),e.PassThrough=r(6462))},6347(t,e,r){var n=r(181),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},8247(t,e,r){"use strict";var n=r(6347).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=c,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.I=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=o(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},1549(t,e,r){var n=r(2032),i=r(3862),s=r(6721),o=r(2749),a=r(5749);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,t.exports=l},79(t,e,r){var n=r(3702),i=r(80),s=r(4739),o=r(8655),a=r(1175);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,t.exports=l},8223(t,e,r){var n=r(6110)(r(9325),"Map");t.exports=n},3661(t,e,r){var n=r(3040),i=r(7670),s=r(289),o=r(4509),a=r(2949);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,t.exports=l},6545(t,e,r){var n=r(6110)(r(9325),"Set");t.exports=n},8859(t,e,r){var n=r(3661),i=r(1380),s=r(1459);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=s,t.exports=o},1873(t,e,r){var n=r(9325).Symbol;t.exports=n},1033(t){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},5325(t,e,r){var n=r(6131);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},9905(t){t.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}},695(t,e,r){var n=r(8096),i=r(2428),s=r(6449),o=r(3656),a=r(361),l=r(7167),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=s(t),h=!r&&i(t),c=!r&&!h&&o(t),d=!r&&!h&&!c&&l(t),f=r||h||c||d,p=f?n(t.length,String):[],g=p.length;for(var b in t)!e&&!u.call(t,b)||f&&("length"==b||c&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||a(b,g))||p.push(b);return p}},4932(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},4528(t){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},6025(t,e,r){var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},3915(t,e,r){var n=r(8859),i=r(5325),s=r(9905),o=r(4932),a=r(7301),l=r(9219);t.exports=function(t,e,r,u){var h=-1,c=i,d=!0,f=t.length,p=[],g=e.length;if(!f)return p;r&&(e=o(e,a(r))),u?(c=s,d=!1):e.length>=200&&(c=l,d=!1,e=new n(e));t:for(;++h<f;){var b=t[h],m=null==r?b:r(b);if(b=u||0!==b?b:0,d&&m==m){for(var y=g;y--;)if(e[y]===m)continue t;p.push(b)}else c(e,m,u)||p.push(b)}return p}},2523(t){t.exports=function(t,e,r,n){for(var i=t.length,s=r+(n?1:-1);n?s--:++s<i;)if(e(t[s],s,t))return s;return-1}},3120(t,e,r){var n=r(4528),i=r(5891);t.exports=function t(e,r,s,o,a){var l=-1,u=e.length;for(s||(s=i),a||(a=[]);++l<u;){var h=e[l];r>0&&s(h)?r>1?t(h,r-1,s,o,a):n(a,h):o||(a[a.length]=h)}return a}},2552(t,e,r){var n=r(1873),i=r(659),s=r(9350),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):s(t)}},6131(t,e,r){var n=r(2523),i=r(5463),s=r(6959);t.exports=function(t,e,r){return e==e?s(t,e,r):n(t,i,r)}},7534(t,e,r){var n=r(2552),i=r(346);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},5463(t){t.exports=function(t){return t!=t}},5083(t,e,r){var n=r(1882),i=r(7296),s=r(3805),o=r(7473),a=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,h=l.toString,c=u.hasOwnProperty,d=RegExp("^"+h.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||i(t))&&(n(t)?d:a).test(o(t))}},4901(t,e,r){var n=r(2552),i=r(294),s=r(346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return s(t)&&i(t.length)&&!!o[n(t)]}},2903(t,e,r){var n=r(3805),i=r(5527),s=r(2562),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return s(t);var e=i(t),r=[];for(var a in t)("constructor"!=a||!e&&o.call(t,a))&&r.push(a);return r}},9302(t,e,r){var n=r(3488),i=r(6757),s=r(2865);t.exports=function(t,e){return s(i(t,e,n),t+"")}},9570(t,e,r){var n=r(7334),i=r(3243),s=r(3488),o=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:s;t.exports=o},8096(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7301(t){t.exports=function(t){return function(e){return t(e)}}},5765(t,e,r){var n=r(8859),i=r(5325),s=r(9905),o=r(9219),a=r(4517),l=r(4247);t.exports=function(t,e,r){var u=-1,h=i,c=t.length,d=!0,f=[],p=f;if(r)d=!1,h=s;else if(c>=200){var g=e?null:a(t);if(g)return l(g);d=!1,h=o,p=new n}else p=e?[]:f;t:for(;++u<c;){var b=t[u],m=e?e(b):b;if(b=r||0!==b?b:0,d&&m==m){for(var y=p.length;y--;)if(p[y]===m)continue t;e&&p.push(m),f.push(b)}else h(p,m,r)||(p!==f&&p.push(m),f.push(b))}return f}},9219(t){t.exports=function(t,e){return t.has(e)}},5481(t,e,r){var n=r(9325)["__core-js_shared__"];t.exports=n},4517(t,e,r){var n=r(6545),i=r(3950),s=r(4247),o=n&&1/s(new n([,-0]))[1]==1/0?function(t){return new n(t)}:i;t.exports=o},3243(t,e,r){var n=r(6110),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},4840(t){var e="object"==typeof global&&global&&global.Object===Object&&global;t.exports=e},2651(t,e,r){var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},6110(t,e,r){var n=r(5083),i=r(392);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},8879(t,e,r){var n=r(4335)(Object.getPrototypeOf,Object);t.exports=n},659(t,e,r){var n=r(1873),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=o.call(t);return n&&(e?t[a]=r:delete t[a]),i}},392(t){t.exports=function(t,e){return null==t?void 0:t[e]}},2032(t,e,r){var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721(t,e,r){var n=r(1042),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},2749(t,e,r){var n=r(1042),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},5749(t,e,r){var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5891(t,e,r){var n=r(1873),i=r(2428),s=r(6449),o=n?n.isConcatSpreadable:void 0;t.exports=function(t){return s(t)||i(t)||!!(o&&t&&t[o])}},361(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},6800(t,e,r){var n=r(5288),i=r(4894),s=r(361),o=r(3805);t.exports=function(t,e,r){if(!o(r))return!1;var a=typeof e;return!!("number"==a?i(r)&&s(e,r.length):"string"==a&&e in r)&&n(r[e],t)}},4218(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296(t,e,r){var n,i=r(5481),s=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!s&&s in t}},5527(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3702(t){t.exports=function(){this.__data__=[],this.size=0}},80(t,e,r){var n=r(6025),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},4739(t,e,r){var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},8655(t,e,r){var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175(t,e,r){var n=r(6025);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},3040(t,e,r){var n=r(1549),i=r(79),s=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||i),string:new n}}},7670(t,e,r){var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},289(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},2949(t,e,r){var n=r(2651);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},1042(t,e,r){var n=r(6110)(Object,"create");t.exports=n},2562(t){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},6009(t,e,r){t=r.nmd(t);var n=r(4840),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,o=s&&s.exports===i&&n.process,a=function(){try{var t=s&&s.require&&s.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},9350(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335(t){t.exports=function(t,e){return function(r){return t(e(r))}}},6757(t,e,r){var n=r(1033),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var s=arguments,o=-1,a=i(s.length-e,0),l=Array(a);++o<a;)l[o]=s[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=s[o];return u[e]=r(l),n(t,this,u)}}},9325(t,e,r){var n=r(4840),i="object"==typeof self&&self&&self.Object===Object&&self,s=n||i||Function("return this")();t.exports=s},1380(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459(t){t.exports=function(t){return this.__data__.has(t)}},4247(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},2865(t,e,r){var n=r(9570),i=r(1811)(n);t.exports=i},1811(t){var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var i=e(),s=16-(i-n);if(n=i,s>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},6959(t){t.exports=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}},7473(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7334(t){t.exports=function(t){return function(){return t}}},4684(t,e,r){var n=r(9302),i=r(5288),s=r(6800),o=r(7241),a=Object.prototype,l=a.hasOwnProperty,u=n((function(t,e){t=Object(t);var r=-1,n=e.length,u=n>2?e[2]:void 0;for(u&&s(e[0],e[1],u)&&(n=1);++r<n;)for(var h=e[r],c=o(h),d=-1,f=c.length;++d<f;){var p=c[d],g=t[p];(void 0===g||i(g,a[p])&&!l.call(t,p))&&(t[p]=h[p])}return t}));t.exports=u},6245(t,e,r){var n=r(3915),i=r(3120),s=r(9302),o=r(6074),a=s((function(t,e){return o(t)?n(t,i(e,1,o,!0)):[]}));t.exports=a},5288(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},5970(t,e,r){var n=r(3120);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},3488(t){t.exports=function(t){return t}},2428(t,e,r){var n=r(7534),i=r(346),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(t){return i(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},6449(t){var e=Array.isArray;t.exports=e},4894(t,e,r){var n=r(1882),i=r(294);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},6074(t,e,r){var n=r(4894),i=r(346);t.exports=function(t){return i(t)&&n(t)}},3656(t,e,r){t=r.nmd(t);var n=r(9325),i=r(9935),s=e&&!e.nodeType&&e,o=s&&t&&!t.nodeType&&t,a=o&&o.exports===s?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;t.exports=l},1882(t,e,r){var n=r(2552),i=r(3805);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},294(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346(t){t.exports=function(t){return null!=t&&"object"==typeof t}},1331(t,e,r){var n=r(2552),i=r(8879),s=r(346),o=Function.prototype,a=Object.prototype,l=o.toString,u=a.hasOwnProperty,h=l.call(Object);t.exports=function(t){if(!s(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=u.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==h}},7167(t,e,r){var n=r(4901),i=r(7301),s=r(6009),o=s&&s.isTypedArray,a=o?i(o):n;t.exports=a},7241(t,e,r){var n=r(695),i=r(2903),s=r(4894);t.exports=function(t){return s(t)?n(t,!0):i(t)}},3950(t){t.exports=function(){}},9935(t){t.exports=function(){return!1}},299(t,e,r){var n=r(3120),i=r(9302),s=r(5765),o=r(6074),a=i((function(t){return s(n(t,1,o,!0))}));t.exports=a},4100(t){t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected path to be a string");if("\\"===t||"/"===t)return"/";var r=t.length;if(r<=1)return t;var n="";if(r>4&&"\\"===t[3]){var i=t[2];"?"!==i&&"."!==i||"\\\\"!==t.slice(0,2)||(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return!1!==e&&""===s[s.length-1]&&s.pop(),n+s.join("/")}},3225(t){"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?t.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,s,o=arguments.length;switch(o){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick((function(){t.call(null,e)}));case 3:return process.nextTick((function(){t.call(null,e,r)}));case 4:return process.nextTick((function(){t.call(null,e,r,n)}));default:for(i=new Array(o-1),s=0;s<i.length;)i[s++]=arguments[s];return process.nextTick((function(){t.apply(null,i)}))}}}:t.exports=process},4422(t){t.exports=global.process},323(t){"use strict";class e{constructor({token:t,date:e,parts:r,locales:n}){this.token=t,this.date=e||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>t&&r instanceof e))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,n)=>n>r&&t instanceof e))}toString(){return String(this.date)}}t.exports=e},1458(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return"DD"===this.token?String(t).padStart(2,"0"):"Do"===this.token?t+(r=t,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?e+1:"ddd"===this.token?this.locales.weekdaysShort[e]:"dddd"===this.token?this.locales.weekdays[e]:t;var r}}},9199(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}},1908(t,e,r){"use strict";t.exports={DatePart:r(323),Meridiem:r(5404),Day:r(1458),Hours:r(9199),Milliseconds:r(3988),Minutes:r(6781),Month:r(4906),Seconds:r(3217),Year:r(8775)}},5404(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}},3988(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},6781(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}},4906(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return 2===e?String(t+1).padStart(2,"0"):3===e?this.locales.monthsShort[t]:4===e?this.locales.months[t]:String(t+1)}}},3217(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}},8775(t,e,r){"use strict";const n=r(323);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?t.substr(-2):t}}},1679(t,e,r){"use strict";function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}const i=r(1394),s=r(4597),o=r(723),a=o.erase,l=o.cursor,u=r(4586),h=u.style,c=u.clear,d=u.figures,f=u.wrap,p=u.entriesToDisplay,g=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),b=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial="number"==typeof t.initial?t.initial:((t,e)=>{const r=t.findIndex((t=>t.value===e||t.title===e));return r>-1?r:void 0})(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=h.render(t.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=c("",this.out.columns),this.complete(this.render),this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return"number"==typeof this._fb?t=this.choices[this._fb]:"string"==typeof this._fb&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=g(this.suggestions,t):this.value=this.fallback.value,this.fire()}complete(t){var e,r=this;return(e=function*(){const e=r.completing=r.suggest(r.input,r.choices),n=yield e;if(r.completing!==e)return;r.suggestions=n.map(((t,e,r)=>({title:b(r,e),value:g(r,e),description:t.description}))),r.completing=!1;const i=Math.max(n.length-1,0);r.moveSelect(Math.min(i,r.select)),t&&t()},function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))})()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${t}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(t,e,r,n){let s,o=r?d.arrowUp:n?d.arrowDown:" ",a=e?i.cyan().underline(t.title):t.title;return o=(e?i.cyan(d.pointer)+" ":" ")+o,t.description&&(s=` - ${t.description}`,(o.length+a.length+s.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(s="\n"+f(t.description,{margin:3,width:this.out.columns}))),o+" "+a+i.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(l.hide):this.out.write(c(this.outputText,this.out.columns)),super.render();let t=p(this.select,this.choices.length,this.limit),e=t.startIndex,r=t.endIndex;if(this.outputText=[h.symbol(this.done,this.aborted,this.exited),i.bold(this.msg),h.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const t=this.suggestions.slice(e,r).map(((t,n)=>this.renderOption(t,this.select===n+e,0===n&&e>0,n+e===r-1&&r<this.choices.length))).join("\n");this.outputText+="\n"+(t||i.gray(this.fallback.title))}this.out.write(a.line+l.to(0)+this.outputText)}}},6854(t,e,r){"use strict";const n=r(1394),i=r(723).cursor,s=r(6818),o=r(4586),a=o.clear,l=o.style,u=o.figures;t.exports=class extends s{constructor(t={}){t.overrideRender=!0,super(t),this.inputValue="",this.clear=a("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>!this.inputValue||(!("string"!=typeof t.title||!t.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof t.value||!t.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const e=this.filteredOptions.findIndex((e=>e===t));this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){" "===t?this.handleSpaceToggle():this.handleInputChange(t)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(t,e,r){let i;return i=e.disabled?t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):t===r?n.cyan().underline(e.title):e.title,(e.selected?n.green(u.radioOn):u.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=a(t,this.out.columns)}}},9331(t,e,r){"use strict";const n=r(1394),i=r(4597),s=r(4586),o=s.style,a=s.clear,l=r(723),u=l.erase,h=l.cursor;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){return"y"===t.toLowerCase()?(this.value=!0,this.submit()):"n"===t.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(h.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(u.line+h.to(0)+this.outputText))}}},5359(t,e,r){"use strict";function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(1394),o=r(4597),a=r(4586),l=a.style,u=a.clear,h=a.figures,c=r(723),d=c.erase,f=c.cursor,p=r(1908),g=p.DatePart,b=p.Meridiem,m=p.Day,y=p.Hours,w=p.Milliseconds,_=p.Minutes,v=p.Month,S=p.Seconds,E=p.Year,x=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,A={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new m(t),3:t=>new v(t),4:t=>new E(t),5:t=>new b(t),6:t=>new y(t),7:t=>new _(t),8:t=>new S(t),9:t=>new w(t)},R={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};t.exports=class extends o{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(R,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.mask||"YYYY-MM-DD HH:mm:ss",this.clear=u("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=x.exec(t);){let t=e.shift(),r=e.findIndex((t=>null!=t));this.parts.push(r in A?A[r]({token:e[r]||t,date:this.date,parts:this.parts,locales:this.locales}):e[r]||t)}let r=this.parts.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof g))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(yield t.validate(),t.error)return t.color="red",t.fire(),void t.render();t.done=!0,t.aborted=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let t=this.parts[this.cursor].prev();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof g))),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(f.hide):this.out.write(u(this.outputText,this.out.columns)),super.render(),this.outputText=[l.symbol(this.done,this.aborted),s.bold(this.msg),l.delimiter(!1),this.parts.reduce(((t,e,r)=>t.concat(r!==this.cursor||this.done?e:s.cyan().underline(e.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":h.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(d.line+f.to(0)+this.outputText))}}},3847(t,e,r){"use strict";t.exports={TextPrompt:r(7160),SelectPrompt:r(3179),TogglePrompt:r(5319),DatePrompt:r(5359),NumberPrompt:r(8158),MultiselectPrompt:r(6818),AutocompletePrompt:r(1679),AutocompleteMultiselectPrompt:r(6854),ConfirmPrompt:r(9331)}},6818(t,e,r){"use strict";const n=r(1394),i=r(723).cursor,s=r(4597),o=r(4586),a=o.clear,l=o.figures,u=o.style,h=o.wrap,c=o.entriesToDisplay;t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(void 0===t.value?e:t.value),selected:t&&t.selected,disabled:t&&t.disabled}))),this.clear=a("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map((t=>!t.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const t=this.value.filter((t=>t.selected));this.minSelected&&t.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((e=>e.selected=t)),this.render()}_(t,e){if(" "===t)this.handleSpaceToggle();else{if("a"!==t)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,e,r,i){const s=(e.selected?n.green(l.radioOn):l.radioOff)+" "+i+" ";let o,a;return e.disabled?o=t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):(o=t===r?n.cyan().underline(e.title):e.title,t===r&&e.description&&(a=` - ${e.description}`,(s.length+o.length+a.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(a="\n"+h(e.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(a||"")}paginateOptions(t){if(0===t.length)return n.red("No matches for this query.");let e,r=c(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,o=[];for(let r=i;r<s;r++)e=r===i&&i>0?l.arrowUp:r===s-1&&s<t.length?l.arrowDown:" ",o.push(this.renderOption(this.cursor,t[r],r,e));return"\n"+o.join("\n")}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=a(t,this.out.columns)}}},8158(t,e,r){"use strict";function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(1394),o=r(4597),a=r(723),l=a.cursor,u=a.erase,h=r(4586),c=h.style,d=h.figures,f=h.clear,p=h.lines,g=/[0-9]/,b=t=>void 0!==t,m=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r};t.exports=class extends o{constructor(t={}){super(t),this.transform=c.render(t.style),this.msg=t.message,this.initial=b(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=b(t.min)?t.min:-1/0,this.max=b(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${m(t,this.round)}`),this._value=m(t,this.round)):(this.placeholder=!0,this.rendered=s.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return"-"===t||"."===t&&this.float||g.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=""!==t?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(yield t.validate(),t.error)return t.color="red",t.fire(),void t.render();let e=t.value;t.value=""!==e?e:t.initial,t.done=!0,t.aborted=!1,t.error=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let t=this.value.toString();if(0===t.length)return this.bell();this.value=this.parse(t=t.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(t,e){if(!this.valid(t))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=r,this.color="cyan","."===t)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(l.down(p(this.outputError,this.out.columns)-1)+f(this.outputError,this.out.columns)),this.out.write(f(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[c.symbol(this.done,this.aborted),s.bold(this.msg),c.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:s[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":d.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore))}}},4597(t,e,r){"use strict";const n=r(3785),i=r(4586).action,s=r(4434),o=r(723),a=o.beep,l=o.cursor,u=r(1394);t.exports=class extends s{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(t,e)=>{let n=i(e,r);!1===n?this._&&this._(t,e):"function"==typeof this[n]?this[n](e):this.bell()};this.close=()=>{this.out.write(l.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(a)}render(){this.onRender(u),this.firstRender&&(this.firstRender=!1)}}},3179(t,e,r){"use strict";const n=r(1394),i=r(4597),s=r(4586),o=s.style,a=s.clear,l=s.figures,u=s.wrap,h=s.entriesToDisplay,c=r(723).cursor;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),value:t&&(void 0===t.value?e:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}))),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=a("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(t,e){if(" "===t)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(c.hide):this.out.write(a(this.outputText,this.out.columns)),super.render();let t=h(this.cursor,this.choices.length,this.optionsPerPage),e=t.startIndex,r=t.endIndex;if(this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let t=e;t<r;t++){let i,s,o="",a=this.choices[t];s=t===e&&e>0?l.arrowUp:t===r-1&&r<this.choices.length?l.arrowDown:" ",a.disabled?(i=this.cursor===t?n.gray().underline(a.title):n.strikethrough().gray(a.title),s=(this.cursor===t?n.bold().gray(l.pointer)+" ":" ")+s):(i=this.cursor===t?n.cyan().underline(a.title):a.title,s=(this.cursor===t?n.cyan(l.pointer)+" ":" ")+s,a.description&&this.cursor===t&&(o=` - ${a.description}`,(s.length+i.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o="\n"+u(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},7160(t,e,r){"use strict";function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(1394),o=r(4597),a=r(723),l=a.erase,u=a.cursor,h=r(4586),c=h.style,d=h.clear,f=h.lines,p=h.figures;t.exports=class extends o{constructor(t={}){super(t),this.transform=c.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=d("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=s.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(t.value=t.value||t.initial,t.cursorOffset=0,t.cursor=t.rendered.length,yield t.validate(),t.error)return t.red=!0,t.fire(),void t.render();t.done=!0,t.aborted=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${t}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(u.down(f(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns)),this.out.write(d(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[c.symbol(this.done,this.aborted),s.bold(this.msg),c.delimiter(this.done),this.red?s.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":p.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore+u.move(this.cursorOffset,0)))}}},5319(t,e,r){"use strict";const n=r(1394),i=r(4597),s=r(4586),o=s.style,a=s.clear,l=r(723),u=l.cursor,h=l.erase;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(t,e){if(" "===t)this.value=!this.value;else if("1"===t)this.value=!0;else{if("0"!==t)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(u.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "),this.out.write(h.line+u.to(0)+this.outputText))}}},4409(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){l=!0,s=t},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw s}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var s=t.apply(e,r);function o(t){l(s,n,i,o,a,"next",t)}function a(t){l(s,n,i,o,a,"throw",t)}o(void 0)}))}}const h=r(3258),c=["suggest","format","onState","validate","onRender","type"],d=()=>{};function f(){return p.apply(this,arguments)}function p(){return p=u((function*(t=[],{onSubmit:e=d,onCancel:r=d}={}){const n={},s=f._override||{};let a,l,p,b,m,y;t=[].concat(t);const w=function(){var t=u((function*(t,e,r=!1){if(r||!t.validate||!0===t.validate(e))return t.format?yield t.format(e,n):e}));return function(e,r){return t.apply(this,arguments)}}();var _,v=o(t);try{for(v.s();!(_=v.n()).done;){l=_.value;var S=l;if(b=S.name,m=S.type,"function"==typeof m&&(m=yield m(a,i({},n),l),l.type=m),m){for(let t in l){if(c.includes(t))continue;let e=l[t];l[t]="function"==typeof e?yield e(a,i({},n),y):e}if(y=l,"string"!=typeof l.message)throw new Error("prompt message is required");var E=l;if(b=E.name,m=E.type,void 0===h[m])throw new Error(`prompt type (${m}) is not defined`);if(void 0===s[l.name]||(a=yield w(l,s[l.name]),void 0===a)){try{a=f._injected?g(f._injected,l.initial):yield h[m](l),n[b]=a=yield w(l,a,!0),p=yield e(l,a,n)}catch(t){p=!(yield r(l,n))}if(p)return n}else n[b]=a}}}catch(t){v.e(t)}finally{v.f()}return n})),p.apply(this,arguments)}function g(t,e){const r=t.shift();if(r instanceof Error)throw r;return void 0===r?e:r}t.exports=Object.assign(f,{prompt:f,prompts:h,inject:function(t){f._injected=(f._injected||[]).concat(t)},override:function(t){f._override=Object.assign({},t)}})},3258(t,e,r){"use strict";const n=e,i=r(3847),s=t=>t;function o(t,e,r={}){return new Promise(((n,o)=>{const a=new i[t](e),l=r.onAbort||s,u=r.onSubmit||s,h=r.onExit||s;a.on("state",e.onState||s),a.on("submit",(t=>n(u(t)))),a.on("exit",(t=>n(h(t)))),a.on("abort",(t=>o(l(t))))}))}n.text=t=>o("TextPrompt",t),n.password=t=>(t.style="password",n.text(t)),n.invisible=t=>(t.style="invisible",n.text(t)),n.number=t=>o("NumberPrompt",t),n.date=t=>o("DatePrompt",t),n.confirm=t=>o("ConfirmPrompt",t),n.list=t=>{const e=t.separator||",";return o("TextPrompt",t,{onSubmit:t=>t.split(e).map((t=>t.trim()))})},n.toggle=t=>o("TogglePrompt",t),n.select=t=>o("SelectPrompt",t),n.multiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("MultiselectPrompt",t,{onAbort:e,onSubmit:e})},n.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};const a=(t,e)=>Promise.resolve(e.filter((e=>e.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));n.autocomplete=t=>(t.suggest=t.suggest||a,t.choices=[].concat(t.choices||[]),o("AutocompletePrompt",t))},2522(t){"use strict";t.exports=(t,e)=>{if(!t.meta||"escape"===t.name){if(t.ctrl){if("a"===t.name)return"first";if("c"===t.name)return"abort";if("d"===t.name)return"abort";if("e"===t.name)return"last";if("g"===t.name)return"reset"}if(e){if("j"===t.name)return"down";if("k"===t.name)return"up"}return"return"===t.name||"enter"===t.name?"submit":"backspace"===t.name?"delete":"delete"===t.name?"deleteForward":"abort"===t.name?"abort":"escape"===t.name?"exit":"tab"===t.name?"next":"pagedown"===t.name?"nextPage":"pageup"===t.name?"prevPage":"home"===t.name?"home":"end"===t.name?"end":"up"===t.name?"up":"down"===t.name?"down":"right"===t.name?"right":"left"===t.name&&"left"}}},4515(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const s=r(7096),o=r(723),a=o.erase,l=o.cursor;t.exports=function(t,e){if(!e)return a.line+l.to(0);let r=0;var i,o=n(t.split(/\r?\n/));try{for(o.s();!(i=o.n()).done;){let t=i.value;r+=1+Math.floor(Math.max([...s(t)].length-1,0)/e)}}catch(t){o.e(t)}finally{o.f()}return a.lines(r)}},769(t){"use strict";t.exports=(t,e,r)=>{r=r||e;let n=Math.min(e-r,t-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,e)}}},9599(t){"use strict";const e={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},r={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},n="win32"===process.platform?r:e;t.exports=n},4586(t,e,r){"use strict";t.exports={action:r(2522),clear:r(4515),style:r(9939),strip:r(7096),figures:r(9599),lines:r(65),wrap:r(1416),entriesToDisplay:r(769)}},65(t,e,r){"use strict";const n=r(7096);t.exports=function(t,e){let r=String(n(t)||"").split(/\r?\n/);return e?r.map((t=>Math.ceil(t.length/e))).reduce(((t,e)=>t+e)):r.length}},7096(t){"use strict";t.exports=t=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return"string"==typeof t?t.replace(r,""):t}},9939(t,e,r){"use strict";const n=r(1394),i=r(9599),s=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});t.exports={styles:s,render:t=>s[t]||s.default,symbols:o,symbol:(t,e,r)=>e?o.aborted:r?o.exited:t?o.done:o.default,delimiter:t=>n.gray(t?i.ellipsis:i.pointerSmall),item:(t,e)=>n.gray(t?e?i.pointerSmall:"+":i.line)}},1416(t){"use strict";t.exports=(t,e={})=>{const r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",n=e.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,e)=>(e.length+r.length>=n||t[t.length-1].length+e.length+1<n?t[t.length-1]+=` ${e}`:t.push(`${r}${e}`),t)),[r]).join("\n"))).join("\n")}},9240(t,e,r){t.exports=function(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(r[e]>t[e])return!1;if(t[e]>r[e])return!0}return!1}("8.6.0")?r(4409):r(8404)},5568(t){"use strict";class e{constructor({token:t,date:e,parts:r,locales:n}){this.token=t,this.date=e||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>t&&r instanceof e))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,n)=>n>r&&t instanceof e))}toString(){return String(this.date)}}t.exports=e},1715(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return"DD"===this.token?String(t).padStart(2,"0"):"Do"===this.token?t+(r=t,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?e+1:"ddd"===this.token?this.locales.weekdaysShort[e]:"dddd"===this.token?this.locales.weekdays[e]:t;var r}}},6694(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}},7957(t,e,r){"use strict";t.exports={DatePart:r(5568),Meridiem:r(5135),Day:r(1715),Hours:r(6694),Milliseconds:r(1980),Minutes:r(2672),Month:r(2287),Seconds:r(2376),Year:r(2368)}},5135(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}},1980(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},2672(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}},2287(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return 2===e?String(t+1).padStart(2,"0"):3===e?this.locales.monthsShort[t]:4===e?this.locales.months[t]:String(t+1)}}},2376(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}},2368(t,e,r){"use strict";const n=r(5568);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?t.substr(-2):t}}},4230(t,e,r){"use strict";const n=r(1394),i=r(4872),{erase:s,cursor:o}=r(723),{style:a,clear:l,figures:u,wrap:h,entriesToDisplay:c}=r(1189),d=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),f=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial="number"==typeof t.initial?t.initial:((t,e)=>{const r=t.findIndex((t=>t.value===e||t.title===e));return r>-1?r:void 0})(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=a.render(t.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=l("",this.out.columns),this.complete(this.render),this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return"number"==typeof this._fb?t=this.choices[this._fb]:"string"==typeof this._fb&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=d(this.suggestions,t):this.value=this.fallback.value,this.fire()}async complete(t){const e=this.completing=this.suggest(this.input,this.choices),r=await e;if(this.completing!==e)return;this.suggestions=r.map(((t,e,r)=>({title:f(r,e),value:d(r,e),description:t.description}))),this.completing=!1;const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select)),t&&t()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${t}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(t,e,r,i){let s,o=r?u.arrowUp:i?u.arrowDown:" ",a=e?n.cyan().underline(t.title):t.title;return o=(e?n.cyan(u.pointer)+" ":" ")+o,t.description&&(s=` - ${t.description}`,(o.length+a.length+s.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(s="\n"+h(t.description,{margin:3,width:this.out.columns}))),o+" "+a+n.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(o.hide):this.out.write(l(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=c(this.select,this.choices.length,this.limit);if(this.outputText=[a.symbol(this.done,this.aborted,this.exited),n.bold(this.msg),a.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const r=this.suggestions.slice(t,e).map(((r,n)=>this.renderOption(r,this.select===n+t,0===n&&t>0,n+t===e-1&&e<this.choices.length))).join("\n");this.outputText+="\n"+(r||n.gray(this.fallback.title))}this.out.write(s.line+o.to(0)+this.outputText)}}},2869(t,e,r){"use strict";const n=r(1394),{cursor:i}=r(723),s=r(405),{clear:o,style:a,figures:l}=r(1189);t.exports=class extends s{constructor(t={}){t.overrideRender=!0,super(t),this.inputValue="",this.clear=o("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>!this.inputValue||(!("string"!=typeof t.title||!t.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof t.value||!t.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const e=this.filteredOptions.findIndex((e=>e===t));this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){" "===t?this.handleSpaceToggle():this.handleInputChange(t)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(t,e,r){let i;return i=e.disabled?t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):t===r?n.cyan().underline(e.title):e.title,(e.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=o(t,this.out.columns)}}},948(t,e,r){const n=r(1394),i=r(4872),{style:s,clear:o}=r(1189),{erase:a,cursor:l}=r(723);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){return"y"===t.toLowerCase()?(this.value=!0,this.submit()):"n"===t.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(l.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(a.line+l.to(0)+this.outputText))}}},2378(t,e,r){"use strict";const n=r(1394),i=r(4872),{style:s,clear:o,figures:a}=r(1189),{erase:l,cursor:u}=r(723),{DatePart:h,Meridiem:c,Day:d,Hours:f,Milliseconds:p,Minutes:g,Month:b,Seconds:m,Year:y}=r(7957),w=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,_={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new d(t),3:t=>new b(t),4:t=>new y(t),5:t=>new c(t),6:t=>new f(t),7:t=>new g(t),8:t=>new m(t),9:t=>new p(t)},v={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(v,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.mask||"YYYY-MM-DD HH:mm:ss",this.clear=o("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=w.exec(t);){let t=e.shift(),r=e.findIndex((t=>null!=t));this.parts.push(r in _?_[r]({token:e[r]||t,date:this.date,parts:this.parts,locales:this.locales}):e[r]||t)}let r=this.parts.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof h))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let t=this.parts[this.cursor].prev();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof h))),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(u.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.parts.reduce(((t,e,r)=>t.concat(r!==this.cursor||this.done?e:n.cyan().underline(e.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":a.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(l.line+u.to(0)+this.outputText))}}},2064(t,e,r){"use strict";t.exports={TextPrompt:r(4785),SelectPrompt:r(5646),TogglePrompt:r(1494),DatePrompt:r(2378),NumberPrompt:r(7679),MultiselectPrompt:r(405),AutocompletePrompt:r(4230),AutocompleteMultiselectPrompt:r(2869),ConfirmPrompt:r(948)}},405(t,e,r){"use strict";const n=r(1394),{cursor:i}=r(723),s=r(4872),{clear:o,figures:a,style:l,wrap:u,entriesToDisplay:h}=r(1189);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(void 0===t.value?e:t.value),selected:t&&t.selected,disabled:t&&t.disabled}))),this.clear=o("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map((t=>!t.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const t=this.value.filter((t=>t.selected));this.minSelected&&t.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((e=>e.selected=t)),this.render()}_(t,e){if(" "===t)this.handleSpaceToggle();else{if("a"!==t)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,e,r,i){const s=(e.selected?n.green(a.radioOn):a.radioOff)+" "+i+" ";let o,l;return e.disabled?o=t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):(o=t===r?n.cyan().underline(e.title):e.title,t===r&&e.description&&(l=` - ${e.description}`,(s.length+o.length+l.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(l="\n"+u(e.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(l||"")}paginateOptions(t){if(0===t.length)return n.red("No matches for this query.");let e,{startIndex:r,endIndex:i}=h(this.cursor,t.length,this.optionsPerPage),s=[];for(let n=r;n<i;n++)e=n===r&&r>0?a.arrowUp:n===i-1&&i<t.length?a.arrowDown:" ",s.push(this.renderOption(this.cursor,t[n],n,e));return"\n"+s.join("\n")}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=o(t,this.out.columns)}}},7679(t,e,r){const n=r(1394),i=r(4872),{cursor:s,erase:o}=r(723),{style:a,figures:l,clear:u,lines:h}=r(1189),c=/[0-9]/,d=t=>void 0!==t,f=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r};t.exports=class extends i{constructor(t={}){super(t),this.transform=a.render(t.style),this.msg=t.message,this.initial=d(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=d(t.min)?t.min:-1/0,this.max=d(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${f(t,this.round)}`),this._value=f(t,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return"-"===t||"."===t&&this.float||c.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=""!==t?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let t=this.value;this.value=""!==t?t:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let t=this.value.toString();if(0===t.length)return this.bell();this.value=this.parse(t=t.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(t,e){if(!this.valid(t))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=r,this.color="cyan","."===t)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(s.down(h(this.outputError,this.out.columns)-1)+u(this.outputError,this.out.columns)),this.out.write(u(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:n[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":l.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore))}}},4872(t,e,r){"use strict";const n=r(3785),{action:i}=r(1189),s=r(4434),{beep:o,cursor:a}=r(723),l=r(1394);t.exports=class extends s{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(t,e)=>{let n=i(e,r);!1===n?this._&&this._(t,e):"function"==typeof this[n]?this[n](e):this.bell()};this.close=()=>{this.out.write(a.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(o)}render(){this.onRender(l),this.firstRender&&(this.firstRender=!1)}}},5646(t,e,r){"use strict";const n=r(1394),i=r(4872),{style:s,clear:o,figures:a,wrap:l,entriesToDisplay:u}=r(1189),{cursor:h}=r(723);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),value:t&&(void 0===t.value?e:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}))),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(t,e){if(" "===t)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(h.hide):this.out.write(o(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=u(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let r=t;r<e;r++){let i,s,o="",u=this.choices[r];s=r===t&&t>0?a.arrowUp:r===e-1&&e<this.choices.length?a.arrowDown:" ",u.disabled?(i=this.cursor===r?n.gray().underline(u.title):n.strikethrough().gray(u.title),s=(this.cursor===r?n.bold().gray(a.pointer)+" ":" ")+s):(i=this.cursor===r?n.cyan().underline(u.title):u.title,s=(this.cursor===r?n.cyan(a.pointer)+" ":" ")+s,u.description&&this.cursor===r&&(o=` - ${u.description}`,(s.length+i.length+o.length>=this.out.columns||u.description.split(/\r?\n/).length>1)&&(o="\n"+l(u.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},4785(t,e,r){const n=r(1394),i=r(4872),{erase:s,cursor:o}=r(723),{style:a,clear:l,lines:u,figures:h}=r(1189);t.exports=class extends i{constructor(t={}){super(t),this.transform=a.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=l("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error)return this.red=!0,this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${t}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(o.down(u(this.outputError,this.out.columns)-1)+l(this.outputError,this.out.columns)),this.out.write(l(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":h.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore+o.move(this.cursorOffset,0)))}}},1494(t,e,r){const n=r(1394),i=r(4872),{style:s,clear:o}=r(1189),{cursor:a,erase:l}=r(723);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(t,e){if(" "===t)this.value=!this.value;else if("1"===t)this.value=!0;else{if("0"!==t)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(a.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "),this.out.write(l.line+a.to(0)+this.outputText))}}},8404(t,e,r){"use strict";const n=r(9083),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function o(t=[],{onSubmit:e=s,onCancel:r=s}={}){const l={},u=o._override||{};let h,c,d,f,p,g;t=[].concat(t);const b=async(t,e,r=!1)=>{if(r||!t.validate||!0===t.validate(e))return t.format?await t.format(e,l):e};for(c of t)if(({name:f,type:p}=c),"function"==typeof p&&(p=await p(h,{...l},c),c.type=p),p){for(let t in c){if(i.includes(t))continue;let e=c[t];c[t]="function"==typeof e?await e(h,{...l},g):e}if(g=c,"string"!=typeof c.message)throw new Error("prompt message is required");if(({name:f,type:p}=c),void 0===n[p])throw new Error(`prompt type (${p}) is not defined`);if(void 0===u[c.name]||(h=await b(c,u[c.name]),void 0===h)){try{h=o._injected?a(o._injected,c.initial):await n[p](c),l[f]=h=await b(c,h,!0),d=await e(c,h,l)}catch(t){d=!await r(c,l)}if(d)return l}else l[f]=h}return l}function a(t,e){const r=t.shift();if(r instanceof Error)throw r;return void 0===r?e:r}t.exports=Object.assign(o,{prompt:o,prompts:n,inject:function(t){o._injected=(o._injected||[]).concat(t)},override:function(t){o._override=Object.assign({},t)}})},9083(t,e,r){"use strict";const n=e,i=r(2064),s=t=>t;function o(t,e,r={}){return new Promise(((n,o)=>{const a=new i[t](e),l=r.onAbort||s,u=r.onSubmit||s,h=r.onExit||s;a.on("state",e.onState||s),a.on("submit",(t=>n(u(t)))),a.on("exit",(t=>n(h(t)))),a.on("abort",(t=>o(l(t))))}))}n.text=t=>o("TextPrompt",t),n.password=t=>(t.style="password",n.text(t)),n.invisible=t=>(t.style="invisible",n.text(t)),n.number=t=>o("NumberPrompt",t),n.date=t=>o("DatePrompt",t),n.confirm=t=>o("ConfirmPrompt",t),n.list=t=>{const e=t.separator||",";return o("TextPrompt",t,{onSubmit:t=>t.split(e).map((t=>t.trim()))})},n.toggle=t=>o("TogglePrompt",t),n.select=t=>o("SelectPrompt",t),n.multiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("MultiselectPrompt",t,{onAbort:e,onSubmit:e})},n.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};const a=(t,e)=>Promise.resolve(e.filter((e=>e.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));n.autocomplete=t=>(t.suggest=t.suggest||a,t.choices=[].concat(t.choices||[]),o("AutocompletePrompt",t))},3075(t){"use strict";t.exports=(t,e)=>{if(!t.meta||"escape"===t.name){if(t.ctrl){if("a"===t.name)return"first";if("c"===t.name)return"abort";if("d"===t.name)return"abort";if("e"===t.name)return"last";if("g"===t.name)return"reset"}if(e){if("j"===t.name)return"down";if("k"===t.name)return"up"}return"return"===t.name||"enter"===t.name?"submit":"backspace"===t.name?"delete":"delete"===t.name?"deleteForward":"abort"===t.name?"abort":"escape"===t.name?"exit":"tab"===t.name?"next":"pagedown"===t.name?"nextPage":"pageup"===t.name?"prevPage":"home"===t.name?"home":"end"===t.name?"end":"up"===t.name?"up":"down"===t.name?"down":"right"===t.name?"right":"left"===t.name&&"left"}}},8868(t,e,r){"use strict";const n=r(5815),{erase:i,cursor:s}=r(723);t.exports=function(t,e){if(!e)return i.line+s.to(0);let r=0;const o=t.split(/\r?\n/);for(let t of o)r+=1+Math.floor(Math.max([...n(t)].length-1,0)/e);return i.lines(r)}},4536(t){"use strict";t.exports=(t,e,r)=>{r=r||e;let n=Math.min(e-r,t-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,e)}}},5992(t){"use strict";const e={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},r={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},n="win32"===process.platform?r:e;t.exports=n},1189(t,e,r){"use strict";t.exports={action:r(3075),clear:r(8868),style:r(4792),strip:r(5815),figures:r(5992),lines:r(4182),wrap:r(869),entriesToDisplay:r(4536)}},4182(t,e,r){"use strict";const n=r(5815);t.exports=function(t,e){let r=String(n(t)||"").split(/\r?\n/);return e?r.map((t=>Math.ceil(t.length/e))).reduce(((t,e)=>t+e)):r.length}},5815(t){"use strict";t.exports=t=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return"string"==typeof t?t.replace(r,""):t}},4792(t,e,r){"use strict";const n=r(1394),i=r(5992),s=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});t.exports={styles:s,render:t=>s[t]||s.default,symbols:o,symbol:(t,e,r)=>e?o.aborted:r?o.exited:t?o.done:o.default,delimiter:t=>n.gray(t?i.ellipsis:i.pointerSmall),item:(t,e)=>n.gray(t?e?i.pointerSmall:"+":i.line)}},869(t){"use strict";t.exports=(t,e={})=>{const r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",n=e.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,e)=>(e.length+r.length>=n||t[t.length-1].length+e.length+1<n?t[t.length-1]+=` ${e}`:t.push(`${r}${e}`),t)),[r]).join("\n"))).join("\n")}},6965(t,e,r){t.exports=h;const n=r(9896),{EventEmitter:i}=r(4434),{Minimatch:s}=r(5835),{resolve:o}=r(6928);function a(t,e){return new Promise(((r,i)=>{(e?n.stat:n.lstat)(t,((n,i)=>{if(n)if("ENOENT"===n.code)r(e?a(t,!1):null);else r(null);else r(i)}))}))}async function*l(t,e,r,i,s,o){let u=await function(t,e){return new Promise(((r,i)=>{n.readdir(t,{withFileTypes:!0},((t,n)=>{if(t)switch(t.code){case"ENOTDIR":e?i(t):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(t)}else r(n)}))}))}(e+t,o);for(const n of u){let o=n.name;void 0===o&&(o=n,i=!0);const u=t+"/"+o,h=u.slice(1),c=e+"/"+h;let d=null;(i||r)&&(d=await a(c,r)),d||void 0===n.name||(d=n),null===d&&(d={isDirectory:()=>!1}),d.isDirectory()?s(h)||(yield{relative:h,absolute:c,stats:d},yield*l(u,e,r,i,s,!1)):yield{relative:h,absolute:c,stats:d}}}class u extends i{constructor(t,e,r){if(super(),"function"==typeof e&&(r=e,e=null),this.options=function(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}(e||{}),this.matchers=[],this.options.pattern){const t=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=t.map((t=>new s(t,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}if(this.ignoreMatchers=[],this.options.ignore){const t=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=t.map((t=>new s(t,{dot:!0})))}if(this.skipMatchers=[],this.options.skip){const t=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=t.map((t=>new s(t,{dot:!0})))}this.iterator=async function*(t,e,r,n){yield*l("",t,e,r,n,!0)}(o(t||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,r&&(this._matches=[],this.on("match",(t=>this._matches.push(this.options.absolute?t.absolute:t.relative))),this.on("error",(t=>r(t))),this.on("end",(()=>r(null,this._matches)))),setTimeout((()=>this._next()),0)}_shouldSkipDirectory(t){return this.skipMatchers.some((e=>e.match(t)))}_fileMatches(t,e){const r=t+(e?"/":"");return(0===this.matchers.length||this.matchers.some((t=>t.match(r))))&&!this.ignoreMatchers.some((t=>t.match(r)))&&(!this.options.nodir||!e)}_next(){this.paused||this.aborted?this.inactive=!0:this.iterator.next().then((t=>{if(t.done)this.emit("end");else{const e=t.value.stats.isDirectory();if(this._fileMatches(t.value.relative,e)){let r=t.value.relative,n=t.value.absolute;this.options.mark&&e&&(r+="/",n+="/"),this.options.stat?this.emit("match",{relative:r,absolute:n,stat:t.value.stats}):this.emit("match",{relative:r,absolute:n})}this._next(this.iterator)}})).catch((t=>{this.abort(),this.emit("error",t),t.code||this.options.silent||console.error(t)}))}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}}function h(t,e,r){return new u(t,e,r)}h.ReaddirGlob=u},8664(t){const e="object"==typeof process&&process&&"win32"===process.platform;t.exports=e?{sep:"\\"}:{sep:"/"}},5835(t,e,r){const n=t.exports=(t,e,r={})=>(b(e),!(!r.nocomment&&"#"===e.charAt(0))&&new w(e,r).match(t));t.exports=n;const i=r(8664);n.sep=i.sep;const s=Symbol("globstar **");n.GLOBSTAR=s;const o=r(8928),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},l="[^/]",u=l+"*?",h=t=>t.split("").reduce(((t,e)=>(t[e]=!0,t)),{}),c=h("().*{}+?[]^$\\!"),d=h("[.("),f=/\/+/;n.filter=(t,e={})=>(r,i,s)=>n(r,t,e);const p=(t,e={})=>{const r={};return Object.keys(t).forEach((e=>r[e]=t[e])),Object.keys(e).forEach((t=>r[t]=e[t])),r};n.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return n;const e=n,r=(r,n,i)=>e(r,n,p(t,i));return(r.Minimatch=class extends e.Minimatch{constructor(e,r){super(e,p(t,r))}}).defaults=r=>e.defaults(p(t,r)).Minimatch,r.filter=(r,n)=>e.filter(r,p(t,n)),r.defaults=r=>e.defaults(p(t,r)),r.makeRe=(r,n)=>e.makeRe(r,p(t,n)),r.braceExpand=(r,n)=>e.braceExpand(r,p(t,n)),r.match=(r,n,i)=>e.match(r,n,p(t,i)),r},n.braceExpand=(t,e)=>g(t,e);const g=(t,e={})=>(b(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:o(t)),b=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},m=Symbol("subparse");n.makeRe=(t,e)=>new w(t,e||{}).makeRe(),n.match=(t,e,r={})=>{const n=new w(e,r);return t=t.filter((t=>n.match(t))),n.options.nonull&&!t.length&&t.push(e),t};const y=t=>t.replace(/[[\]\\]/g,"\\$&");class w{constructor(t,e){b(t),e||(e={}),this.options=e,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}debug(){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();let r=this.globSet=this.braceExpand();e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,r),r=this.globParts=r.map((t=>t.split(f))),this.debug(this.pattern,r),r=r.map(((t,e,r)=>t.map(this.parse,this))),this.debug(this.pattern,r),r=r.filter((t=>-1===t.indexOf(!1))),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;const t=this.pattern;let e=!1,r=0;for(let n=0;n<t.length&&"!"===t.charAt(n);n++)e=!e,r++;r&&(this.pattern=t.slice(r)),this.negate=e}matchOne(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,o=0,a=t.length,l=e.length;i<a&&o<l;i++,o++){this.debug("matchOne loop");var u,h=e[o],c=t[i];if(this.debug(e,h,c),!1===h)return!1;if(h===s){this.debug("GLOBSTAR",[e,h,c]);var d=i,f=o+1;if(f===l){for(this.debug("** at the end");i<a;i++)if("."===t[i]||".."===t[i]||!n.dot&&"."===t[i].charAt(0))return!1;return!0}for(;d<a;){var p=t[d];if(this.debug("\nglobstar while",t,d,e,f,p),this.matchOne(t.slice(d),e.slice(f),r))return this.debug("globstar found match!",d,a,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,d,e,f);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",t,d,e,f),d!==a))}if("string"==typeof h?(u=c===h,this.debug("string match",h,c,u)):(u=c.match(h),this.debug("pattern match",h,c,u)),!u)return!1}if(i===a&&o===l)return!0;if(i===a)return r;if(o===l)return i===a-1&&""===t[i];throw new Error("wtf?")}braceExpand(){return g(this.pattern,this.options)}parse(t,e){b(t);const r=this.options;if("**"===t){if(!r.noglobstar)return s;t="*"}if(""===t)return"";let n="",i=!1,o=!1;const h=[],f=[];let p,g,w,_,v=!1,S=-1,E=-1,x="."===t.charAt(0),A=r.dot||x;const R=t=>"."===t.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",O=()=>{if(p){switch(p){case"*":n+=u,i=!0;break;case"?":n+=l,i=!0;break;default:n+="\\"+p}this.debug("clearStateChar %j %j",p,n),p=!1}};for(let e,s=0;s<t.length&&(e=t.charAt(s));s++)if(this.debug("%s\t%s %s %j",t,s,n,e),o){if("/"===e)return!1;c[e]&&(n+="\\"),n+=e,o=!1}else switch(e){case"/":return!1;case"\\":if(v&&"-"===t.charAt(s+1)){n+=e;continue}O(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",t,s,n,e),v){this.debug(" in class"),"!"===e&&s===E+1&&(e="^"),n+=e;continue}if("*"===e&&"*"===p)continue;this.debug("call clearStateChar %j",p),O(),p=e,r.noext&&O();continue;case"(":{if(v){n+="(";continue}if(!p){n+="\\(";continue}const e={type:p,start:s-1,reStart:n.length,open:a[p].open,close:a[p].close};this.debug(this.pattern,"\t",e),h.push(e),n+=e.open,0===e.start&&"!"!==e.type&&(x=!0,n+=R(t.slice(s+1))),this.debug("plType %j %j",p,n),p=!1;continue}case")":{const t=h[h.length-1];if(v||!t){n+="\\)";continue}h.pop(),O(),i=!0,w=t,n+=w.close,"!"===w.type&&f.push(Object.assign(w,{reEnd:n.length}));continue}case"|":{const e=h[h.length-1];if(v||!e){n+="\\|";continue}O(),n+="|",0===e.start&&"!"!==e.type&&(x=!0,n+=R(t.slice(s+1)));continue}case"[":if(O(),v){n+="\\"+e;continue}v=!0,E=s,S=n.length,n+=e;continue;case"]":if(s===E+1||!v){n+="\\"+e;continue}g=t.substring(E+1,s);try{RegExp("["+y(g.replace(/\\([^-\]])/g,"$1"))+"]"),n+=e}catch(t){n=n.substring(0,S)+"(?:$.)"}i=!0,v=!1;continue;default:O(),!c[e]||"^"===e&&v||(n+="\\"),n+=e}for(v&&(g=t.slice(E+1),_=this.parse(g,m),n=n.substring(0,S)+"\\["+_[0],i=i||_[1]),w=h.pop();w;w=h.pop()){let t;t=n.slice(w.reStart+w.open.length),this.debug("setting tail",n,w),t=t.replace(/((?:\\{2}){0,64})(\\?)\|/g,((t,e,r)=>(r||(r="\\"),e+e+r+"|"))),this.debug("tail=%j\n %s",t,t,w,n);const e="*"===w.type?u:"?"===w.type?l:"\\"+w.type;i=!0,n=n.slice(0,w.reStart)+e+"\\("+t}O(),o&&(n+="\\\\");const T=d[n.charAt(0)];for(let t=f.length-1;t>-1;t--){const r=f[t],i=n.slice(0,r.reStart),s=n.slice(r.reStart,r.reEnd-8);let o=n.slice(r.reEnd);const a=n.slice(r.reEnd-8,r.reEnd)+o,l=i.split(")").length,u=i.split("(").length-l;let h=o;for(let t=0;t<u;t++)h=h.replace(/\)[+*?]?/,"");o=h;n=i+s+o+(""===o&&e!==m?"(?:$|\\/)":"")+a}if(""!==n&&i&&(n="(?=.)"+n),T&&(n=(x?"":A?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+n),e===m)return[n,i];if(r.nocase&&!i&&(i=t.toUpperCase()!==t.toLowerCase()),!i)return(t=>t.replace(/\\(.)/g,"$1"))(t);const k=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",k),{_glob:t,_src:n})}catch(t){return new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,r=e.noglobstar?u:e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=e.nocase?"i":"";let i=t.map((t=>(t=t.map((t=>"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===s?s:t._src)).reduce(((t,e)=>(t[t.length-1]===s&&e===s||t.push(e),t)),[]),t.forEach(((e,n)=>{e===s&&t[n-1]!==s&&(0===n?t.length>1?t[n+1]="(?:\\/|"+r+"\\/)?"+t[n+1]:t[n]=r:n===t.length-1?t[n-1]+="(?:\\/|"+r+")?":(t[n-1]+="(?:\\/|\\/"+r+"\\/)"+t[n+1],t[n+1]=s))})),t.filter((t=>t!==s)).join("/")))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(t){this.regexp=!1}return this.regexp}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const r=this.options;"/"!==i.sep&&(t=t.split(i.sep).join("/")),t=t.split(f),this.debug(this.pattern,"split",t);const n=this.set;let s;this.debug(this.pattern,"set",n);for(let e=t.length-1;e>=0&&(s=t[e],!s);e--);for(let i=0;i<n.length;i++){const o=n[i];let a=t;r.matchBase&&1===o.length&&(a=[s]);if(this.matchOne(a,o,e))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(t){return n.defaults(t).Minimatch}}n.Minimatch=w},2861(t,e,r){var n=r(181),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},723(t){"use strict";const e="[",r={to:(t,r)=>r?`${e}${r+1};${t+1}H`:`${e}${t+1}G`,move(t,r){let n="";return t<0?n+=`${e}${-t}D`:t>0&&(n+=`${e}${t}C`),r<0?n+=`${e}${-r}A`:r>0&&(n+=`${e}${r}B`),n},up:(t=1)=>`${e}${t}A`,down:(t=1)=>`${e}${t}B`,forward:(t=1)=>`${e}${t}C`,backward:(t=1)=>`${e}${t}D`,nextLine:(t=1)=>`${e}E`.repeat(t),prevLine:(t=1)=>`${e}F`.repeat(t),left:`${e}G`,hide:`${e}?25l`,show:`${e}?25h`,save:"7",restore:"8"},n={up:(t=1)=>`${e}S`.repeat(t),down:(t=1)=>`${e}T`.repeat(t)},i={screen:`${e}2J`,up:(t=1)=>`${e}1J`.repeat(t),down:(t=1)=>`${e}J`.repeat(t),line:`${e}2K`,lineEnd:`${e}K`,lineStart:`${e}1K`,lines(t){let e="";for(let n=0;n<t;n++)e+=this.line+(n<t-1?r.up():"");return t&&(e+=r.left),e}};t.exports={cursor:r,scroll:n,erase:i,beep:""}},8179(t,e,r){const{EventEmitter:n}=r(4434),i=new Error("Stream was destroyed"),s=new Error("Premature close"),o=r(6080),a=r(5335),l=536870911,u=1^l,h=2^l,c=32,d=64,f=128,p=256,g=1024,b=2048,m=4096,y=8192,w=16384,_=32768,v=131072,S=131328,E=16^l,x=536805375,A=768^l,R=536838143,O=536739839,T=1<<18,k=2<<18,M=4<<18,P=8<<18,I=16<<18,L=32<<18,D=64<<18,C=128<<18,N=256<<18,j=512<<18,F=1024<<18,$=535822335,W=503316479,B=268435455,U=262160,z=536608751,H=8404992,G=14,V=15,q=8405006,Y=33587200,K=33587215,Z=2359296,J=270794767,Q=Symbol.asyncIterator||Symbol("asyncIterator");class X{constructor(t,{highWaterMark:e=16384,map:r=null,mapWritable:n,byteLength:i,byteLengthWritable:s}={}){this.stream=t,this.queue=new o,this.highWaterMark=e,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=s||i||Et,this.map=n||r,this.afterWrite=ot.bind(this),this.afterUpdateNextTick=ut.bind(this)}get ended(){return!!(this.stream._duplexState&L)}push(t){return!(142606350&this.stream._duplexState)&&(null!==this.map&&(t=this.map(t)),this.buffered+=this.byteLength(t),this.queue.push(t),this.buffered<this.highWaterMark?(this.stream._duplexState|=P,!0):(this.stream._duplexState|=6291456,!1))}shift(){const t=this.queue.shift();return this.buffered-=this.byteLength(t),0===this.buffered&&(this.stream._duplexState&=534773759),t}end(t){"function"==typeof t?this.stream.once("finish",t):null!=t&&this.push(t),this.stream._duplexState=(this.stream._duplexState|j)&$}autoBatch(t,e){const r=[],n=this.stream;for(r.push(t);(n._duplexState&J)===Z;)r.push(n._writableState.shift());if(n._duplexState&V)return e(null);n._writev(r,e)}update(){const t=this.stream;t._duplexState|=k;do{for(;(t._duplexState&J)===P;){const e=this.shift();t._duplexState|=67371008,t._write(e,this.afterWrite)}1310720&t._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());t._duplexState&=536346623}updateNonPrimary(){const t=this.stream;if((144965647&t._duplexState)===j)return t._duplexState=t._duplexState|T,void t._final(it.bind(this));4!=(t._duplexState&G)?1==(t._duplexState&K)&&(t._duplexState=(t._duplexState|U)&u,t._open(ht.bind(this))):t._duplexState&Y||(t._duplexState|=U,t._destroy(st.bind(this)))}continueUpdate(){return!!(this.stream._duplexState&C)&&(this.stream._duplexState&=W,!0)}updateCallback(){(35127311&this.stream._duplexState)===M?this.update():this.updateNextTick()}updateNextTick(){this.stream._duplexState&C||(this.stream._duplexState|=C,this.stream._duplexState&k||queueMicrotask(this.afterUpdateNextTick))}}class tt{constructor(t,{highWaterMark:e=16384,map:r=null,mapReadable:n,byteLength:i,byteLengthReadable:s}={}){this.stream=t,this.queue=new o,this.highWaterMark=0===e?1:e,this.buffered=0,this.readAhead=e>0,this.error=null,this.pipeline=null,this.byteLength=s||i||Et,this.map=n||r,this.pipeTo=null,this.afterRead=at.bind(this),this.afterUpdateNextTick=lt.bind(this)}get ended(){return!!(this.stream._duplexState&w)}pipe(t,e){if(null!==this.pipeTo)throw new Error("Can only pipe to one destination");if("function"!=typeof e&&(e=null),this.stream._duplexState|=512,this.pipeTo=t,this.pipeline=new rt(this.stream,t,e),e&&this.stream.on("error",xt),St(t))t._writableState.pipeline=this.pipeline,e&&t.on("error",xt),t.on("finish",this.pipeline.finished.bind(this.pipeline));else{const e=this.pipeline.done.bind(this.pipeline,t),r=this.pipeline.done.bind(this.pipeline,t,null);t.on("error",e),t.on("close",r),t.on("finish",this.pipeline.finished.bind(this.pipeline))}t.on("drain",nt.bind(this)),this.stream.emit("piping",t),t.emit("pipe",this.stream)}push(t){const e=this.stream;return null===t?(this.highWaterMark=0,e._duplexState=536805311&e._duplexState|1024,!1):null!==this.map&&null===(t=this.map(t))?(e._duplexState&=x,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(t),this.queue.push(t),e._duplexState=(e._duplexState|f)&x,this.buffered<this.highWaterMark)}shift(){const t=this.queue.shift();return this.buffered-=this.byteLength(t),0===this.buffered&&(this.stream._duplexState&=536862591),t}unshift(t){const e=[null!==this.map?this.map(t):t];for(;this.buffered>0;)e.push(this.shift());for(let t=0;t<e.length-1;t++){const r=e[t];this.buffered+=this.byteLength(r),this.queue.push(r)}this.push(e[e.length-1])}read(){const t=this.stream;if((16527&t._duplexState)===f){const e=this.shift();return null!==this.pipeTo&&!1===this.pipeTo.write(e)&&(t._duplexState&=A),t._duplexState&b&&t.emit("data",e),e}return!1===this.readAhead&&(t._duplexState|=v,this.updateNextTick()),null}drain(){const t=this.stream;for(;(16527&t._duplexState)===f&&768&t._duplexState;){const e=this.shift();null!==this.pipeTo&&!1===this.pipeTo.write(e)&&(t._duplexState&=A),t._duplexState&b&&t.emit("data",e)}}update(){const t=this.stream;t._duplexState|=c;do{for(this.drain();this.buffered<this.highWaterMark&&(214047&t._duplexState)===v;)t._duplexState|=65552,t._read(this.afterRead),this.drain();4224==(12431&t._duplexState)&&(t._duplexState|=y,t.emit("readable")),80&t._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());t._duplexState&=536870879}updateNonPrimary(){const t=this.stream;(1167&t._duplexState)===g&&(t._duplexState=536869887&t._duplexState|16384,t.emit("end"),(t._duplexState&q)===H&&(t._duplexState|=4),null!==this.pipeTo&&this.pipeTo.end()),4!=(t._duplexState&G)?1==(t._duplexState&K)&&(t._duplexState=(t._duplexState|U)&u,t._open(ht.bind(this))):t._duplexState&Y||(t._duplexState|=U,t._destroy(st.bind(this)))}continueUpdate(){return!!(this.stream._duplexState&_)&&(this.stream._duplexState&=R,!0)}updateCallback(){(32879&this.stream._duplexState)===d?this.update():this.updateNextTick()}updateNextTickIfOpen(){32769&this.stream._duplexState||(this.stream._duplexState|=_,this.stream._duplexState&c||queueMicrotask(this.afterUpdateNextTick))}updateNextTick(){this.stream._duplexState&_||(this.stream._duplexState|=_,this.stream._duplexState&c||queueMicrotask(this.afterUpdateNextTick))}}class et{constructor(t){this.data=null,this.afterTransform=ct.bind(t),this.afterFinal=null}}class rt{constructor(t,e,r){this.from=t,this.to=e,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(t,e){e&&(this.error=e),t!==this.to||(this.to=null,null===this.from)?t!==this.from||(this.from=null,null===this.to)?(null!==this.afterPipe&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null):t._duplexState&w||this.to.destroy(this.error||new Error("Readable stream closed before ending")):this.from._duplexState&w&&this.pipeToFinished||this.from.destroy(this.error||new Error("Writable stream closed prematurely"))}}function nt(){this.stream._duplexState|=512,this.updateCallback()}function it(t){const e=this.stream;t&&e.destroy(t),e._duplexState&G||(e._duplexState|=L,e.emit("finish")),(e._duplexState&q)===H&&(e._duplexState|=4),e._duplexState&=402391039,e._duplexState&k?this.updateNextTick():this.update()}function st(t){const e=this.stream;t||this.error===i||(t=this.error),t&&e.emit("error",t),e._duplexState|=8,e.emit("close");const r=e._readableState,n=e._writableState;if(null!==r&&null!==r.pipeline&&r.pipeline.done(e,t),null!==n){for(;null!==n.drains&&n.drains.length>0;)n.drains.shift().resolve(!1);null!==n.pipeline&&n.pipeline.done(e,t)}}function ot(t){const e=this.stream;t&&e.destroy(t),e._duplexState&=469499903,null!==this.drains&&function(t){for(let e=0;e<t.length;e++)0==--t[e].writes&&(t.shift().resolve(!0),e--)}(this.drains),(6553615&e._duplexState)===I&&(e._duplexState&=532676607,(e._duplexState&D)===D&&e.emit("drain")),this.updateCallback()}function at(t){t&&this.stream.destroy(t),this.stream._duplexState&=E,!1!==this.readAhead||this.stream._duplexState&p||(this.stream._duplexState&=O),this.updateCallback()}function lt(){this.stream._duplexState&c||(this.stream._duplexState&=R,this.update())}function ut(){this.stream._duplexState&k||(this.stream._duplexState&=W,this.update())}function ht(t){const e=this.stream;t&&e.destroy(t),4&e._duplexState||(17423&e._duplexState||(e._duplexState|=d),142606351&e._duplexState||(e._duplexState|=M),e.emit("open")),e._duplexState&=z,null!==e._writableState&&e._writableState.updateCallback(),null!==e._readableState&&e._readableState.updateCallback()}function ct(t,e){null!=e&&this.push(e),this._writableState.afterWrite(t)}function dt(t){null!==this._readableState&&("data"===t&&(this._duplexState|=133376,this._readableState.updateNextTick()),"readable"===t&&(this._duplexState|=m,this._readableState.updateNextTick())),null!==this._writableState&&"drain"===t&&(this._duplexState|=D,this._writableState.updateNextTick())}class ft extends n{constructor(t){super(),this._duplexState=0,this._readableState=null,this._writableState=null,t&&(t.open&&(this._open=t.open),t.destroy&&(this._destroy=t.destroy),t.predestroy&&(this._predestroy=t.predestroy),t.signal&&t.signal.addEventListener("abort",At.bind(this))),this.on("newListener",dt)}_open(t){t(null)}_destroy(t){t(null)}_predestroy(){}get readable(){return null!==this._readableState||void 0}get writable(){return null!==this._writableState||void 0}get destroyed(){return!!(8&this._duplexState)}get destroying(){return!!(this._duplexState&G)}destroy(t){this._duplexState&G||(t||(t=i),this._duplexState=535822271&this._duplexState|4,null!==this._readableState&&(this._readableState.highWaterMark=0,this._readableState.error=t),null!==this._writableState&&(this._writableState.highWaterMark=0,this._writableState.error=t),this._duplexState|=2,this._predestroy(),this._duplexState&=h,null!==this._readableState&&this._readableState.updateNextTick(),null!==this._writableState&&this._writableState.updateNextTick())}}class pt extends ft{constructor(t){super(t),this._duplexState|=8519681,this._readableState=new tt(this,t),t&&(!1===this._readableState.readAhead&&(this._duplexState&=O),t.read&&(this._read=t.read),t.eagerOpen&&this._readableState.updateNextTick(),t.encoding&&this.setEncoding(t.encoding))}setEncoding(t){const e=new a(t),r=this._readableState.map||_t;return this._readableState.map=function(t){const n=e.push(t);return""===n&&(0!==t.byteLength||e.remaining>0)?null:r(n)},this}_read(t){t(null)}pipe(t,e){return this._readableState.updateNextTick(),this._readableState.pipe(t,e),t}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(t){return this._readableState.updateNextTickIfOpen(),this._readableState.push(t)}unshift(t){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(t)}resume(){return this._duplexState|=S,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=!1===this._readableState.readAhead?536739583:536870655,this}static _fromAsyncIterator(t,e){let r;const n=new pt({...e,read(e){t.next().then(i).then(e.bind(null,null)).catch(e)},predestroy(){r=t.return()},destroy(t){if(!r)return t(null);r.then(t.bind(null,null)).catch(t)}});return n;function i(t){t.done?n.push(null):n.push(t.value)}}static from(t,e){if(St(r=t)&&r.readable)return t;var r;if(t[Q])return this._fromAsyncIterator(t[Q](),e);Array.isArray(t)||(t=void 0===t?[]:[t]);let n=0;return new pt({...e,read(e){this.push(n===t.length?null:t[n++]),e(null)}})}static isBackpressured(t){return!!(17422&t._duplexState)||t._readableState.buffered>=t._readableState.highWaterMark}static isPaused(t){return!(t._duplexState&p)}[Q](){const t=this;let e=null,r=null,n=null;return this.on("error",(t=>{e=t})),this.on("readable",(function(){null!==r&&s(t.read())})),this.on("close",(function(){null!==r&&s(null)})),{[Q](){return this},next:()=>new Promise((function(e,i){r=e,n=i;const o=t.read();null!==o?s(o):8&t._duplexState&&s(null)})),return:()=>o(null),throw:t=>o(t)};function s(s){null!==n&&(e?n(e):null!==s||t._duplexState&w?r({value:s,done:null===s}):n(i),n=r=null)}function o(e){return t.destroy(e),new Promise(((r,n)=>{if(8&t._duplexState)return r({value:void 0,done:!0});t.once("close",(function(){e?n(e):r({value:void 0,done:!0})}))}))}}}class gt extends ft{constructor(t){super(t),this._duplexState|=16385,this._writableState=new X(this,t),t&&(t.writev&&(this._writev=t.writev),t.write&&(this._write=t.write),t.final&&(this._final=t.final),t.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=F}uncork(){this._duplexState&=B,this._writableState.updateNextTick()}_writev(t,e){e(null)}_write(t,e){this._writableState.autoBatch(t,e)}_final(t){t(null)}static isBackpressured(t){return!!(146800654&t._duplexState)}static drained(t){if(t.destroyed)return Promise.resolve(!1);const e=t._writableState;var r;const n=((r=t)._writev!==gt.prototype._writev&&r._writev!==bt.prototype._writev?Math.min(1,e.queue.length):e.queue.length)+(t._duplexState&N?1:0);return 0===n?Promise.resolve(!0):(null===e.drains&&(e.drains=[]),new Promise((t=>{e.drains.push({writes:n,resolve:t})})))}write(t){return this._writableState.updateNextTick(),this._writableState.push(t)}end(t){return this._writableState.updateNextTick(),this._writableState.end(t),this}}class bt extends pt{constructor(t){super(t),this._duplexState=1|this._duplexState&v,this._writableState=new X(this,t),t&&(t.writev&&(this._writev=t.writev),t.write&&(this._write=t.write),t.final&&(this._final=t.final))}cork(){this._duplexState|=F}uncork(){this._duplexState&=B,this._writableState.updateNextTick()}_writev(t,e){e(null)}_write(t,e){this._writableState.autoBatch(t,e)}_final(t){t(null)}write(t){return this._writableState.updateNextTick(),this._writableState.push(t)}end(t){return this._writableState.updateNextTick(),this._writableState.end(t),this}}class mt extends bt{constructor(t){super(t),this._transformState=new et(this),t&&(t.transform&&(this._transform=t.transform),t.flush&&(this._flush=t.flush))}_write(t,e){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=t:this._transform(t,this._transformState.afterTransform)}_read(t){if(null!==this._transformState.data){const e=this._transformState.data;this._transformState.data=null,t(null),this._transform(e,this._transformState.afterTransform)}else t(null)}destroy(t){super.destroy(t),null!==this._transformState.data&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(t,e){e(null,t)}_flush(t){t(null)}_final(t){this._transformState.afterFinal=t,this._flush(yt.bind(this))}}function yt(t,e){const r=this._transformState.afterFinal;if(t)return r(t);null!=e&&this.push(e),this.push(null),r(null)}function wt(t,...e){const r=Array.isArray(t)?[...t,...e]:[t,...e],n=r.length&&"function"==typeof r[r.length-1]?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],o=null,a=null;for(let t=1;t<r.length;t++)o=r[t],St(i)?i.pipe(o,u):(l(i,!0,t>1,u),i.pipe(o)),i=o;if(n){let t=!1;const e=St(o)||!(!o._writableState||!o._writableState.autoDestroy);o.on("error",(t=>{null===a&&(a=t)})),o.on("finish",(()=>{t=!0,e||n(a)})),e&&o.on("close",(()=>n(a||(t?null:s))))}return o;function l(t,e,r,n){t.on("error",n),t.on("close",(function(){if(e&&t._readableState&&!t._readableState.ended)return n(s);if(r&&t._writableState&&!t._writableState.ended)return n(s)}))}function u(t){if(t&&!a){a=t;for(const e of r)e.destroy(t)}}}function _t(t){return t}function vt(t){return!!t._readableState||!!t._writableState}function St(t){return"number"==typeof t._duplexState&&vt(t)}function Et(t){return function(t){return"object"==typeof t&&null!==t&&"number"==typeof t.byteLength}(t)?t.byteLength:1024}function xt(){}function At(){this.destroy(new Error("Stream aborted."))}t.exports={pipeline:wt,pipelinePromise:function(...t){return new Promise(((e,r)=>wt(...t,(t=>{if(t)return r(t);e()}))))},isStream:vt,isStreamx:St,isEnded:function(t){return!!t._readableState&&t._readableState.ended},isFinished:function(t){return!!t._writableState&&t._writableState.ended},isDisturbed:function(t){return!!(1&~t._duplexState)||!!(t._duplexState&Y)},getStreamError:function(t,e={}){const r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return e.all||r!==i?r:null},Stream:ft,Writable:gt,Readable:pt,Duplex:bt,Transform:mt,PassThrough:class extends mt{}}},3141(t,e,r){"use strict";var n=r(2861).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=c,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=o(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},7687(t,e,r){"use strict";const n=r(857),i=r(2018),s=r(5884),{env:o}=process;let a;function l(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function u(t,e){if(0===a)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(t&&!e&&void 0===a)return 0;const r=a||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const t=n.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}s("no-color")||s("no-colors")||s("color=false")||s("color=never")?a=0:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),t.exports={supportsColor:function(t){return l(u(t,t&&t.isTTY))},stdout:l(u(!0,i.isatty(1))),stderr:l(u(!0,i.isatty(2)))}},1837(t,e,r){const n={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{t.exports=r(9896).constants||n}catch{t.exports=n}},2414(t,e,r){const{Writable:n,Readable:i,getStreamError:s}=r(8179),o=r(6080),a=r(7042),l=r(3481),u=a.alloc(0);class h{constructor(){this.buffered=0,this.shifted=0,this.queue=new o,this._offset=0}push(t){this.buffered+=t.byteLength,this.queue.push(t)}shiftFirst(t){return 0===this._buffered?null:this._next(t)}shift(t){if(t>this.buffered)return null;if(0===t)return u;let e=this._next(t);if(t===e.byteLength)return e;const r=[e];for(;(t-=e.byteLength)>0;)e=this._next(t),r.push(e);return a.concat(r)}_next(t){const e=this.queue.peek(),r=e.byteLength-this._offset;if(t>=r){const t=this._offset?e.subarray(this._offset,e.byteLength):e;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,t}return this.buffered-=t,this.shifted+=t,e.subarray(this._offset,this._offset+=t)}}class c extends i{constructor(t,e,r){super(),this.header=e,this.offset=r,this._parent=t}_read(t){0===this.header.size&&this.push(null),this._parent._stream===this&&this._parent._update(),t(null)}_predestroy(){this._parent.destroy(s(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=p(this.header.size),this._parent._update())}_destroy(t){this._detach(),t(null)}}class d extends n{constructor(t){super(t),t||(t={}),this._buffer=new h,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=f,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=t.filenameEncoding||"utf-8",this._allowUnknownFormat=!!t.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(t){if(this._locked=!1,t)return this.destroy(t),void this._continueWrite(t);this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=l.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(t){return this._continueWrite(t),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),0===this._header.size||"directory"===this._header.type?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(t){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=l.decodeLongPath(t,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=l.decodeLongPath(t,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=l.decodePax(t);break;case"pax-header":this._pax=null===this._paxGlobal?l.decodePax(t):Object.assign({},this._paxGlobal,l.decodePax(t))}}_consumeLongHeader(){this._longHeader=!1,this._missing=p(this._header.size);const t=this._buffer.shift(this._header.size);try{this._decodeLongHeader(t)}catch(t){return this._continueWrite(t),!1}return!0}_consumeStream(){const t=this._buffer.shiftFirst(this._missing);if(null===t)return!1;this._missing-=t.byteLength;const e=this._stream.push(t);return 0===this._missing?(this._stream.push(null),e&&this._stream._detach(),e&&!1===this._locked):e}_createStream(){return new c(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;)if(this._missing>0){if(null!==this._stream){if(!1===this._consumeStream())return;continue}if(!0===this._longHeader){if(this._missing>this._buffer.buffered)break;if(!1===this._consumeLongHeader())return!1;continue}const t=this._buffer.shiftFirst(this._missing);null!==t&&(this._missing-=t.byteLength)}else{if(this._buffer.buffered<512)break;if(null!==this._stream||!1===this._consumeHeader())return}this._continueWrite(null)}_continueWrite(t){const e=this._callback;this._callback=f,e(t)}_write(t,e){this._callback=e,this._buffer.push(t),this._update()}_final(t){this._finished=0===this._missing&&0===this._buffer.buffered,t(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(t){this._stream&&this._stream.destroy(s(this)),t(null)}[Symbol.asyncIterator](){let t=null,e=null,r=null,n=null,i=null;const s=this;return this.on("entry",(function(t,s,o){i=o,s.on("error",f),e?(e({value:s,done:!1}),e=r=null):n=s})),this.on("error",(e=>{t=e})),this.on("close",(function(){if(o(t),!e)return;t?r(t):e({value:void 0,done:!0});e=r=null})),{[Symbol.asyncIterator](){return this},next:()=>new Promise(a),return:()=>l(null),throw:t=>l(t)};function o(t){if(!i)return;const e=i;i=null,e(t)}function a(i,a){return t?a(t):n?(i({value:n,done:!1}),void(n=null)):(e=i,r=a,o(null),void(s._finished&&e&&(e({value:void 0,done:!0}),e=r=null)))}function l(t){return s.destroy(t),o(t),new Promise(((e,r)=>{if(s.destroyed)return e({value:void 0,done:!0});s.once("close",(function(){t?r(t):e({value:void 0,done:!0})}))}))}}}function f(){}function p(t){return(t&=511)&&512-t}t.exports=function(t){return new d(t)}},3481(t,e,r){const n=r(7042),i="0".charCodeAt(0),s=n.from([117,115,116,97,114,0]),o=n.from([i,i]),a=n.from([117,115,116,97,114,32]),l=n.from([32,0]),u=257,h=263;function c(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function d(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function f(t,e){return(t=t.toString(8)).length>e?"7777777777777777777".slice(0,e)+" ":"0000000000000000000".slice(0,e-t.length)+t+" "}function p(t,e,r){if(128&(t=t.subarray(e,e+r))[e=0])return function(t){let e;if(128===t[0])e=!0;else{if(255!==t[0])return null;e=!1}const r=[];let n;for(n=t.length-1;n>0;n--){const i=t[n];e?r.push(i):r.push(255-i)}let i=0;const s=r.length;for(n=0;n<s;n++)i+=r[n]*Math.pow(256,n);return e?i:-1*i}(t);{for(;e<t.length&&32===t[e];)e++;const r=(i=c(t,32,e,t.length),s=t.length,o=t.length,"number"!=typeof i?o:(i=~~i)>=s?s:i>=0||(i+=s)>=0?i:0);for(;e<r&&0===t[e];)e++;return r===e?0:parseInt(n.toString(t.subarray(e,r)),8)}var i,s,o}function g(t,e,r,i){return n.toString(t.subarray(e,c(t,0,e,e+r)),i)}function b(t){const e=n.byteLength(t);let r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}e.decodeLongPath=function(t,e){return g(t,0,t.length,e)},e.encodePax=function(t){let e="";t.name&&(e+=b(" path="+t.name+"\n")),t.linkname&&(e+=b(" linkpath="+t.linkname+"\n"));const r=t.pax;if(r)for(const t in r)e+=b(" "+t+"="+r[t]+"\n");return n.from(e)},e.decodePax=function(t){const e={};for(;t.length;){let r=0;for(;r<t.length&&32!==t[r];)r++;const i=parseInt(n.toString(t.subarray(0,r)),10);if(!i)return e;const s=n.toString(t.subarray(r+1,i-1)),o=s.indexOf("=");if(-1===o)return e;e[s.slice(0,o)]=s.slice(o+1),t=t.subarray(i)}return e},e.encode=function(t){const e=n.alloc(512);let r=t.name,a="";if(5===t.typeflag&&"/"!==r[r.length-1]&&(r+="/"),n.byteLength(r)!==r.length)return null;for(;n.byteLength(r)>100;){const t=r.indexOf("/");if(-1===t)return null;a+=a?"/"+r.slice(0,t):r.slice(0,t),r=r.slice(t+1)}return n.byteLength(r)>100||n.byteLength(a)>155||t.linkname&&n.byteLength(t.linkname)>100?null:(n.write(e,r),n.write(e,f(4095&t.mode,6),100),n.write(e,f(t.uid,6),108),n.write(e,f(t.gid,6),116),function(t,e,r){t.toString(8).length>11?function(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=255&t,t=Math.floor(t/256)}(t,e,r):n.write(e,f(t,11),r)}(t.size,e,124),n.write(e,f(t.mtime.getTime()/1e3|0,11),136),e[156]=i+function(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(t.type),t.linkname&&n.write(e,t.linkname,157),n.copy(s,e,u),n.copy(o,e,263),t.uname&&n.write(e,t.uname,265),t.gname&&n.write(e,t.gname,297),n.write(e,f(t.devmajor||0,6),329),n.write(e,f(t.devminor||0,6),337),a&&n.write(e,a,345),n.write(e,f(d(e),6),148),e)},e.decode=function(t,e,r){let o=0===t[156]?0:t[156]-i,c=g(t,0,100,e);const f=p(t,100,8),b=p(t,108,8),m=p(t,116,8),y=p(t,124,12),w=p(t,136,12),_=function(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(o),v=0===t[157]?null:g(t,157,100,e),S=g(t,265,32),E=g(t,297,32),x=p(t,329,8),A=p(t,337,8),R=d(t);if(256===R)return null;if(R!==p(t,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(function(t){return n.equals(s,t.subarray(u,263))}(t))t[345]&&(c=g(t,345,155,e)+"/"+c);else if(function(t){return n.equals(a,t.subarray(u,263))&&n.equals(l,t.subarray(h,265))}(t));else if(!r)throw new Error("Invalid tar header: unknown format.");return 0===o&&c&&"/"===c[c.length-1]&&(o=5),{name:c,mode:f,uid:b,gid:m,size:y,mtime:new Date(1e3*w),type:_,linkname:v,uname:S,gname:E,devmajor:x,devminor:A,pax:null}}},4231(t,e,r){e.extract=r(2414),e.pack=r(446)},446(t,e,r){const{Readable:n,Writable:i,getStreamError:s}=r(8179),o=r(7042),a=r(1837),l=r(3481),u=o.alloc(1024);class h extends i{constructor(t,e,r){super({mapWritable:p,eagerOpen:!0}),this.written=0,this.header=e,this._callback=r,this._linkname=null,this._isLinkname="symlink"===e.type&&!e.linkname,this._isVoid="file"!==e.type&&"contiguous-file"!==e.type,this._finished=!1,this._pack=t,this._openCallback=null,null===this._pack._stream?this._pack._stream=this:this._pack._pending.push(this)}_open(t){this._openCallback=t,this._pack._stream===this&&this._continueOpen()}_continuePack(t){if(null===this._callback)return;const e=this._callback;this._callback=null,e(t)}_continueOpen(){null===this._pack._stream&&(this._pack._stream=this);const t=this._openCallback;if(this._openCallback=null,null!==t){if(this._pack.destroying)return t(new Error("pack stream destroyed"));if(this._pack._finalized)return t(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),t(null)}}_write(t,e){return this._isLinkname?(this._linkname=this._linkname?o.concat([this._linkname,t]):t,e(null)):this._isVoid?t.byteLength>0?e(new Error("No body allowed for this entry")):e():(this.written+=t.byteLength,this._pack.push(t)?e():void(this._pack._drain=e))}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?o.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),f(this._pack,this.header.size),this._pack._done(this))}_final(t){if(this.written!==this.header.size)return t(new Error("Size mismatch"));this._finish(),t(null)}_getError(){return s(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(t){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),t()}}class c extends n{constructor(t){super(t),this._drain=d,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(t,e,r){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");"function"==typeof e&&(r=e,e=null),r||(r=d),t.size&&"symlink"!==t.type||(t.size=0),t.type||(t.type=function(t){switch(t&a.S_IFMT){case a.S_IFBLK:return"block-device";case a.S_IFCHR:return"character-device";case a.S_IFDIR:return"directory";case a.S_IFIFO:return"fifo";case a.S_IFLNK:return"symlink"}return"file"}(t.mode)),t.mode||(t.mode="directory"===t.type?493:420),t.uid||(t.uid=0),t.gid||(t.gid=0),t.mtime||(t.mtime=new Date),"string"==typeof e&&(e=o.from(e));const n=new h(this,t,r);return o.isBuffer(e)?(t.size=e.byteLength,n.write(e),n.end(),n):(n._isVoid,n)}finalize(){this._stream||this._pending.length>0?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(u),this.push(null))}_done(t){t===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(t){if(!t.pax){const e=l.encode(t);if(e)return void this.push(e)}this._encodePax(t)}_encodePax(t){const e=l.encodePax({name:t.name,linkname:t.linkname,pax:t.pax}),r={name:"PaxHeader",mode:t.mode,uid:t.uid,gid:t.gid,size:e.byteLength,mtime:t.mtime,type:"pax-header",linkname:t.linkname&&"PaxHeader",uname:t.uname,gname:t.gname,devmajor:t.devmajor,devminor:t.devminor};this.push(l.encode(r)),this.push(e),f(this,e.byteLength),r.size=t.size,r.type=t.type,this.push(l.encode(r))}_doDrain(){const t=this._drain;this._drain=d,t()}_predestroy(){const t=s(this);for(this._stream&&this._stream.destroy(t);this._pending.length;){const e=this._pending.shift();e.destroy(t),e._continueOpen()}this._doDrain()}_read(t){this._doDrain(),t()}}function d(){}function f(t,e){(e&=511)&&t.push(u.subarray(0,512-e))}function p(t){return o.isBuffer(t)?t:o.from(t)}t.exports=function(t){return new c(t)}},5335(t,e,r){const n=r(4611),i=r(6045);t.exports=class{constructor(t="utf8"){switch(this.encoding=function(t){switch(t=t.toLowerCase()){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}(t),this.encoding){case"utf8":this.decoder=new i;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new n(this.encoding)}}get remaining(){return this.decoder.remaining}push(t){return"string"==typeof t?t:this.decoder.decode(t)}write(t){return this.push(t)}end(t){let e="";return t&&(e=this.push(t)),e+=this.decoder.flush(),e}}},4611(t,e,r){const n=r(7042);t.exports=class{constructor(t){this.encoding=t}get remaining(){return 0}decode(t){return n.toString(t,this.encoding)}flush(){return""}}},6045(t,e,r){const n=r(7042);t.exports=class{constructor(){this.codePoint=0,this.bytesSeen=0,this.bytesNeeded=0,this.lowerBoundary=128,this.upperBoundary=191}get remaining(){return this.bytesSeen}decode(t){if(0===this.bytesNeeded){let e=!0;for(let r=Math.max(0,t.byteLength-4),n=t.byteLength;r<n&&e;r++)e=t[r]<=127;if(e)return n.toString(t,"utf8")}let e="";for(let r=0,n=t.byteLength;r<n;r++){const n=t[r];0!==this.bytesNeeded?n<this.lowerBoundary||n>this.upperBoundary?(this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,e+="�"):(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|63&n,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(e+=String.fromCodePoint(this.codePoint),this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0)):n<=127?e+=String.fromCharCode(n):(this.bytesSeen=1,n>=194&&n<=223?(this.bytesNeeded=2,this.codePoint=31&n):n>=224&&n<=239?(224===n?this.lowerBoundary=160:237===n&&(this.upperBoundary=159),this.bytesNeeded=3,this.codePoint=15&n):n>=240&&n<=244?(240===n&&(this.lowerBoundary=144),244===n&&(this.upperBoundary=143),this.bytesNeeded=4,this.codePoint=7&n):e+="�")}return e}flush(){const t=this.bytesNeeded>0?"�":"";return this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,t}}},3720(t,e,r){"use strict";var n=r(2116);const{DM:i,gu:s,er:o,Ww:a,b7:l,Di:u,a2:h,uB:c,ef:d,c$:f,_V:p}=n;var g=r(9240),b=r.n(g),m=r(6928),y=r.n(m),w=r(9896),_=r.n(w),v=r(5248),S=r.n(v);const E="undefined"!=typeof process&&process.versions&&"electron"in process.versions;const x={error:S().red,warn:S().yellow,info:S().cyan,success:S().green,debug:S().gray};function A(t,e){const r=x[t]||S().white;return(...t)=>{const n=t.join(" ");e(r(n))}}let R;if(E){const t=r(329);t.transports.console.level="warn",t.transports.file.level="info",t.transports.console.format="[{y}-{m}-{d} {h}:{i}:{s}] [{level}] {text}",t.transports.file.format="[{y}-{m}-{d} {h}:{i}:{s}] [{level}] {text}",t.success=(...e)=>{t.info("[SUCCESS]",...e)},R=t}else R={error:A("error",console.error),warn:A("warn",console.warn),info:A("info",console.log),success:A("success",console.log),debug:A("debug",console.log)};const O=R,T=require("crypto");var k=r.n(T),M=r(9023),P=r(9133),I=r.n(P);const L=require("@node-rs/argon2");class D extends Error{constructor(){super(),this.name="DecryptionWrongPasswordError"}}class C extends Error{constructor(){super(),this.name="EncryptedFileMissingMetadataError"}}class N extends Error{operation;constructor(t){super(),this.name="FileReadError",this.operation=t}}class j extends Error{operation;constructor(t){super(),this.name="FileWriteError",this.operation=t}}class F extends Error{version;constructor(t){super(),this.name="UnsupportedDeadboltFileVersion",this.version=t}}class $ extends Error{constructor(){super(),this.name="Argon2OutOfMemoryError"}}var W=r(857);const B=".deadbolt",U=".dbolt",z="DEADBOLT_V",H=13;function G(t){if(null==t)return O.error("filePath is null in prettyPrintFilePath"),"";O.debug("prettyPrintFilePath","{",t,"}");let e=t;if(e.startsWith((0,W.homedir)())&&(e=e.replace((0,W.homedir)(),"~")),e.length>60){const t=e.split(y().sep),r=e.startsWith("~/")?`~${y().sep}${t[1]}`:t[1],n=t[t.length-1],i="...";return`${r}${y().sep}${i}${y().sep}${n}`}return e}function V(t,e,r){const n=t.lastIndexOf(e);return-1===n?t:t.substring(0,n)+r+t.substring(n+e.length)}function q(t){const e=(r=t).endsWith(B)?V(r,B,""):r.endsWith(U)?V(r,U,""):r;var r;const n=e.lastIndexOf("."),i=-1!==n?e.slice(0,n):e,s=-1!==n?e.slice(n):"";let o=e,a=1;for(;_().existsSync(o);)o=`${i}-${a}${s}`,a+=1;return o}var Y;!function(t){t.ENCRYPTION="encryption",t.DECRYPTION_VERIFICATION_OF_ENCRYPTION="verification of encryption (which requires decryption)",t.DECRYPTION="decryption"}(Y||(Y={}));const K=Y,Z="aes-256-gcm",J="1"===process.env.DEADBOLT_ARGON2_TEST_PARAMS,Q=`${z}002`,X={"001":{kdfType:"pbkdf2",pbkdf2Iterations:1e4,saltOffset:0,ivOffset:64,authTagOffset:80,metadataLength:96},"002":{kdfType:"argon2id",argon2Params:{memoryCost:J?64:2097152,timeCost:1,parallelism:J?1:4},saltOffset:H,ivOffset:29,authTagOffset:45,metadataLength:61}},tt="ERROR_FROM_ELECTRON_MAIN_THREAD";function et(t,e){const r=G(e);switch(!0){case t instanceof D:return`${tt}: Failed to decrypt \`${r}\`\nIs the password correct? The file may also be corrupted.`;case t instanceof C:return`${tt}: \`${r}\` is missing metadata.\nIt's likely corrupted.`;case t instanceof N:return`${tt}: Failed to retrieve file contents of \`${r}\` for ${t.operation}.`;case t instanceof F:return`${tt}: \`${r}\` is detected as being V${t.version}, which is not a supported value. Valid values: ${Object.keys(X).join(", ")}.`;case t instanceof $:return`${tt}: \`${r}\` could not be processed: Argon2id ran out of memory.\nDeadbolt requires ~2 GiB of free RAM. Close other applications and try again.`;case t instanceof j:return`${tt}: \`${r}\` failed to be written during \`${t.operation}\`.`;default:return`${tt}: Unhandled error!!! Please report this to https://github.com/alichtman/deadbolt/issues/new with as much detail about what you were doing as possible. \`${t}\``}}function rt(t,e){return new Promise(((r,n)=>{const i=_().createWriteStream(t,{flags:"w+"});i.on("error",n),i.write(e,(e=>{e?n(e):r(t)}))}))}function nt(t){return new Promise(((e,r)=>{_().readFile(t,((t,n)=>{t?r(t):e(n)}))}))}function it(t){return k().createHash("sha256").update(t).digest("hex")}async function st(t,e,r){switch(r.kdfType){case"argon2id":try{const i=(n=e,Buffer.isBuffer(n)?n:"string"==typeof n?Buffer.from(n,"utf8"):Buffer.from(n.buffer,n.byteOffset,n.byteLength));return await L.hashRaw(i,{algorithm:L.Algorithm.Argon2id,memoryCost:r.argon2Params.memoryCost,timeCost:r.argon2Params.timeCost,parallelism:r.argon2Params.parallelism,outputLen:32,salt:t})}catch(t){const e=t;if(O.error("Failed to load or execute argon2:",e.message),e.message.toLowerCase().includes("memory allocation"))throw new $;throw t}case"pbkdf2":return k().pbkdf2Sync(e,t,r.pbkdf2Iterations,32,"sha512");default:throw new Error("Unsupported KDF type")}var n}async function ot(t,e,r=!1){const{detectedFileFormat:n}=function(t){let e=null;try{e=_().openSync(t,"r");const r=Buffer.alloc(H);_().readSync(e,r,0,H,0);const n=r.toString("ascii");if(n.startsWith(z)){const t=n.substring(10),e=X[t];if(!e)throw new F(t);return{version:t,detectedFileFormat:e}}return{version:"001",detectedFileFormat:X["001"]}}finally{if(null!==e)try{_().closeSync(e)}catch(t){O.error("Failed to close file descriptor:",t)}}}(t),i=_().openSync(t,"r"),s=n.ivOffset-n.saltOffset,o=Buffer.alloc(s);_().readSync(i,o,0,s,n.saltOffset);const a=Buffer.alloc(16);_().readSync(i,a,0,16,n.ivOffset);const l=Buffer.alloc(16);_().readSync(i,l,0,16,n.authTagOffset),_().closeSync(i);const u=await st(o,e,n),h=k().createDecipheriv(Z,u,a);h.setAuthTag(l);const c=await nt(t).then((t=>{if(t.length<n.metadataLength&&t.length>0)throw new C;if(0===t.length)throw new N(r?K.DECRYPTION_VERIFICATION_OF_ENCRYPTION:K.DECRYPTION);return t.subarray(n.metadataLength)})).catch((t=>{throw t}));try{const t=h.update(c);return h.final(),t}catch(t){throw new D}}async function at(t,e){let r,n,i=t,s=!1;try{n=(await(0,M.promisify)(_().stat)(t)).isDirectory()}catch(e){const r=e,n=G(t);return"EACCES"===r.code||"EPERM"===r.code?`${tt}: Permission denied when trying to read \`${n}\`.\nPlease check file permissions.`:`${tt}: Failed to access \`${n}\`: ${r.message}`}if(n){const e=function(t){let e=`${t}.zip`,r=1;for(;_().existsSync(e);)e=`${t}-${r}.zip`,r+=1;return e}(t);try{await(o=t,a=e,new Promise(((t,e)=>{const r=_().createWriteStream(a),n=I()("zip",{zlib:{level:9}});r.on("close",(()=>{t()})),n.on("error",(t=>{e(t)})),n.pipe(r),n.directory(o,!1),n.finalize()}))),i=e,s=!0}catch(r){return _().existsSync(e)&&_().unlinkSync(e),`${tt}: Failed to encrypt ${t}. Something went wrong while zipping the folder.`}}var o,a;try{r=await nt(i).then((t=>t)).catch((t=>{throw s&&i.endsWith(".zip")&&_().unlinkSync(i),t}))}catch(e){return n?`${tt}: Failed to encrypt ${t}. Something went wrong while zipping the folder.`:`${tt}: ${i} failed to be opened for reading.`}const l=X["002"],u=l.ivOffset-l.saltOffset,h=k().randomBytes(u);let c;try{c=await st(h,e,l)}catch(e){return et(e,t)}const d=k().randomBytes(16),f=k().createCipheriv(Z,c,d),p=function(t){const e=`${t}${B}`,r=t.lastIndexOf(".");if(-1===r){let r=e,n=1;for(;_().existsSync(r);)r=`${t}-${n}${B}`,n+=1;return r}const n=t.substring(r),i=t.substring(0,r);let s=e,o=1;for(;_().existsSync(s);)s=`${i}-${o}${n}${B}`,o+=1;return s}(i),g=it(r),b=f.update(r);f.final();const m=f.getAuthTag(),y=Buffer.concat([Buffer.from(Q,"ascii"),h,d,Buffer.from(m),b]);try{await rt(p,y).catch((t=>{try{_().unlinkSync(p)}catch(e){throw t}}))}catch(t){return`${tt}: ${p} failed to be written (error inside writeFileWithPromise()).`}if(!_().existsSync(p))return`${tt}: ${p} failed to be written.`;if(s&&i.endsWith(".zip"))try{O.debug("Cleaning up temporary zip file:",i),_().unlinkSync(i)}catch(t){O.error("Failed to clean up temporary zip file:",i)}const w=await ot(p,e,!0).catch((t=>et(t,p)));if("string"==typeof w)return w;const v=it(w);return g!==v?(_().unlinkSync(p),`${tt}: ${p} failed to be verified after encryption. It's likely corrupted. The hash of the data before encryption was ${g}, and the hash of the data after decryption was ${v}.`):(O.success("Successfully encrypted file: ",p),p)}async function lt(t,e){try{if(!function(t){if(!_().existsSync(t))return!1;const e=_().statSync(t);if(e.size<61)return!1;let r,n=null;try{n=_().openSync(t,"r");const e=Buffer.alloc(H);_().readSync(n,e,0,H,0),r=e.toString("ascii")}finally{if(null!==n)try{_().closeSync(n)}catch(t){O.error("Failed to close file descriptor:",t)}}return!(!r.startsWith(z)||!/^\d{3}$/.test(r.substring(10)))||!!((t.endsWith(B)||t.endsWith(U))&&e.size>=96)}(t)){const e=G(t);return`${tt}: \`${e}\` is not a valid deadbolt encrypted file.\nPlease ensure you've selected a file encrypted with deadbolt.`}}catch(e){const r=G(t),n=e;return"EACCES"===n.code||"EPERM"===n.code?`${tt}: Permission denied when trying to read \`${r}\`.\nPlease check file permissions.`:`${tt}: Failed to read \`${r}\`: ${n.message}`}const r=q(t);let n;try{n=await ot(t,e)}catch(e){return et(e,t)}try{return await rt(r,n).catch((t=>{throw t})),_().existsSync(r)?(O.success("Successfully decrypted file: ",r),r):`${tt}: ${r} failed to be written.`}catch(t){return`${tt}: ${r} failed to be written.`}}const ut=new c;function ht(t){const e=y().resolve(t);return _().existsSync(e)||(O.error(`Error: File not found: ${e}`),process.exit(1)),e}function ct(t){if(!t)return;const e=y().resolve(t),r=y().dirname(e);return _().existsSync(r)||(O.error(`Error: Output directory does not exist: ${r}`),process.exit(1)),e}function dt(t,e){if(t.startsWith(tt)){const r=t.substring(32);O.error(`\n${e} failed:`),O.error(r),process.exit(1)}}function ft(t,e){try{return _().renameSync(t,e),e}catch(e){return O.warn(`Warning: Failed to move file to output path: ${e}`),O.warn(`File is available at: ${t}`),t}}async function pt(t,e){return t?(t.length<8&&(O.error("Error: Password must be at least 8 characters"),1)&&process.exit(1),t):await async function(t=!1){let e;for(;!e;){const t=await b()({type:"password",name:"password",message:"Enter password: "},{onCancel:()=>{O.warn("\nOperation cancelled."),process.exit(0)}});t.password||(O.warn("\nOperation cancelled."),process.exit(0)),t.password.length<8?O.error("Password must be at least 8 characters\n"):e=t.password}if(t)for(;;){const t=await b()({type:"password",name:"confirmPassword",message:"Confirm password:"},{onCancel:()=>{O.warn("\nOperation cancelled."),process.exit(0)}});if(t.confirmPassword||(O.warn("\nOperation cancelled."),process.exit(0)),t.confirmPassword===e)break;O.error("Passwords do not match\n")}return e}(e)}ut.name("deadbolt").description("Encrypt and decrypt files using AES-256-GCM encryption").version("2.1.2","-v, --version","Output the current version").option("-d, --verbose","Enable verbose logging (debug mode)").addHelpText("after",'\nExamples:\n $ deadbolt encrypt secret.pdf\n $ deadbolt encrypt secret.pdf --password "my-password"\n $ deadbolt decrypt secret.pdf.deadbolt\n $ deadbolt decrypt secret.pdf.deadbolt --password "my-password"\n $ deadbolt encrypt secret.pdf --verbose\n\nPassword Prompting:\n If --password is not provided, you will be prompted to enter it securely.\n Using --password directly may log your password in shell history.\n\nVerbose Mode:\n Use --verbose or -d to enable debug logging for troubleshooting.\n\nDocumentation:\n https://github.com/alichtman/deadbolt\n'),ut.command("encrypt [file]").description("Encrypt a file or folder using AES-256-GCM").option("-f, --file <path>","Path to the file or folder to encrypt").option("-p, --password <password>","Password for encryption (will prompt if not provided)").option("-o, --output <path>","Output file (optional, defaults to <file>.deadbolt)").addHelpText("after",'\nExamples:\n $ deadbolt encrypt secret.pdf\n $ deadbolt encrypt secret.pdf --password "secure-password"\n $ deadbolt encrypt ~/folder --password "pass123"\n $ deadbolt encrypt data.txt --output encrypted.deadbolt\n $ deadbolt encrypt --file secret.pdf (alternative syntax)\n\nNotes:\n - Folders are automatically zipped before encryption\n - Password will be prompted securely if not provided via --password\n - Using --password directly may log your password in shell history\n - Encrypted files have .deadbolt extension\n - Use strong passwords for better security\n').action((async(t,e)=>{const r=t||e.file;r||(O.error("Error: file or directory path is required"),O.error("Usage: deadbolt encrypt <file> [options]"),O.error(" or: deadbolt encrypt --file <file> [options]"),process.exit(1));const n=ht(r),i=ct(e.output),s=await pt(e.password,!0);O.info("Encrypting...");const o=await at(n,s);let a=o;i&&!o.startsWith(tt)&&(a=ft(o,i)),dt(a,"Encryption")})),ut.command("decrypt [file]").description("Decrypt a .deadbolt or .dbolt file").option("-f, --file <path>","Path to the encrypted file").option("-p, --password <password>","Password for decryption (will prompt if not provided)").option("-o, --output <path>","Output file (optional, defaults to original filename)").addHelpText("after",'\nExamples:\n $ deadbolt decrypt secret.pdf.deadbolt\n $ deadbolt decrypt secret.pdf.deadbolt --password "secure-password"\n $ deadbolt decrypt encrypted.deadbolt --password "pass123"\n $ deadbolt decrypt data.deadbolt --output decrypted.txt\n $ deadbolt decrypt --file secret.pdf.deadbolt (alternative syntax)\n\nNotes:\n - Works with both .deadbolt and .dbolt files\n - Password will be prompted securely if not provided via --password\n - Using --password directly may log your password in shell history\n - Password must match the one used for encryption\n - Decrypted folders will be .zip files (unzip manually)\n').action((async(t,e)=>{const r=t||e.file;r||(O.error("Error: file path is required"),O.error("Usage: deadbolt decrypt <file> [options]"),O.error(" or: deadbolt decrypt --file <file> [options]"),process.exit(1));const n=ht(r);!function(t){t.endsWith(B)||t.endsWith(U)||(O.error("Error: File is not an encrypted file"),O.error(`Expected file extension: ${B} or ${U}`),O.error(`Received: ${y().basename(t)}`),process.exit(1))}(n);const i=ct(e.output);try{const t=_().openSync(n,"r"),e=Buffer.alloc(13);_().readSync(t,e,0,13,0),_().closeSync(t);!e.toString("ascii").startsWith("DEADBOLT_V")&&(console.log(S().yellow("\n⚠️ Legacy V001 Format Detected")),console.log(S().yellow("For better security, consider re-encrypting this file.")),console.log(S().yellow("V001 uses PBKDF2 (10K iterations). V002 uses Argon2id with 2 GiB memory, 1 iteration, and 4-lane parallelism (RFC 9106 FIRST recommendation), making password cracking significantly more expensive for GPU/ASIC attackers.\n")))}catch(t){const e=t instanceof Error?t.message:String(t);O.debug(`Could not check file format version: ${e}`)}const s=await pt(e.password,!1);O.info("Decrypting...");const o=await lt(n,s);let a=o;i&&!o.startsWith(tt)&&(a=ft(o,i)),dt(a,"Decryption")})),ut.parse()},7983(t,e,r){t.exports=r(9023).deprecate},8919(t,e,r){var n=r(9023).inherits,i=r(8351).ZipArchiveOutputStream,s=r(8351).ZipArchiveEntry,o=r(1789),a=t.exports=function(t){if(!(this instanceof a))return new a(t);(t=this.options=t||{}).zlib=t.zlib||{},i.call(this,t),"number"==typeof t.level&&t.level>=0&&(t.zlib.level=t.level,delete t.level),t.forceZip64||"number"!=typeof t.zlib.level||0!==t.zlib.level||(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};n(a,i),a.prototype._normalizeFileData=function(t){var e="directory"===(t=o.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""})).type,r="symlink"===t.type;return t.name&&(t.name=o.sanitizePath(t.name),r||"/"!==t.name.slice(-1)?e&&(t.name+="/"):(e=!0,t.type="directory")),(e||r)&&(t.store=!0),t.date=o.dateify(t.date),t},a.prototype.entry=function(t,e,r){if("function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),"file"===(e=this._normalizeFileData(e)).type||"directory"===e.type||"symlink"===e.type)if("string"==typeof e.name&&0!==e.name.length){if("symlink"!==e.type||"string"==typeof e.linkname){var n=new s(e.name);return n.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&n.setName(e.name,!0),e.store&&n.setMethod(0),e.comment.length>0&&n.setComment(e.comment),"symlink"===e.type&&"number"!=typeof e.mode&&(e.mode=40960),"number"==typeof e.mode&&("symlink"===e.type&&(e.mode|=40960),n.setUnixMode(e.mode)),"symlink"===e.type&&"string"==typeof e.linkname&&(t=Buffer.from(e.linkname)),i.prototype.entry.call(this,n,t,r)}r(new Error("entry linkname must be a non-empty string value when type equals symlink"))}else r(new Error("entry name must be a non-empty string value"));else r(new Error(e.type+" entries not currently supported"))},a.prototype.finalize=function(){this.finish()}},2613(t){"use strict";t.exports=require("assert")},181(t){"use strict";t.exports=require("buffer")},5317(t){"use strict";t.exports=require("child_process")},9140(t){"use strict";t.exports=require("constants")},4434(t){"use strict";t.exports=require("events")},9896(t){"use strict";t.exports=require("fs")},8611(t){"use strict";t.exports=require("http")},5692(t){"use strict";t.exports=require("https")},1421(t){"use strict";t.exports=require("node:child_process")},8474(t){"use strict";t.exports=require("node:events")},3024(t){"use strict";t.exports=require("node:fs")},1455(t){"use strict";t.exports=require("node:fs/promises")},6760(t){"use strict";t.exports=require("node:path")},1708(t){"use strict";t.exports=require("node:process")},7075(t){"use strict";t.exports=require("node:stream")},6193(t){"use strict";t.exports=require("node:string_decoder")},3136(t){"use strict";t.exports=require("node:url")},857(t){"use strict";t.exports=require("os")},6928(t){"use strict";t.exports=require("path")},3785(t){"use strict";t.exports=require("readline")},2203(t){"use strict";t.exports=require("stream")},2018(t){"use strict";t.exports=require("tty")},9023(t){"use strict";t.exports=require("util")},3106(t){"use strict";t.exports=require("zlib")},8286(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.range=e.balanced=void 0;e.balanced=(t,n,i)=>{const s=t instanceof RegExp?r(t,i):t,o=n instanceof RegExp?r(n,i):n,a=null!==s&&null!=o&&(0,e.range)(s,o,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+s.length,a[1]),post:i.slice(a[1]+o.length)}};const r=(t,e)=>{const r=e.match(t);return r?r[0]:null};e.range=(t,e,r)=>{let n,i,s,o,a,l=r.indexOf(t),u=r.indexOf(e,l+1),h=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;h>=0&&!a;){if(h===l)n.push(h),l=r.indexOf(t,h+1);else if(1===n.length){const t=n.pop();void 0!==t&&(a=[t,u])}else i=n.pop(),void 0!==i&&i<s&&(s=i,o=u),u=r.indexOf(e,h+1);h=l<u&&l>=0?l:u}n.length&&void 0!==o&&(a=[s,o])}return a}},1697(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EXPANSION_MAX=void 0,e.expand=function(t,r={}){if(!t)return[];const{max:n=e.EXPANSION_MAX}=r;"{}"===t.slice(0,2)&&(t="\\{\\}"+t.slice(2));return R(function(t){return t.replace(p,i).replace(g,s).replace(b,o).replace(m,a).replace(y,l)}(t),n,!0).map(_)};const n=r(8286),i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0",u=new RegExp(i,"g"),h=new RegExp(s,"g"),c=new RegExp(o,"g"),d=new RegExp(a,"g"),f=new RegExp(l,"g"),p=/\\\\/g,g=/\\{/g,b=/\\}/g,m=/\\,/g,y=/\\./g;function w(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function _(t){return t.replace(u,"\\").replace(h,"{").replace(c,"}").replace(d,",").replace(f,".")}function v(t){if(!t)return[""];const e=[],r=(0,n.balanced)("{","}",t);if(!r)return t.split(",");const{pre:i,body:s,post:o}=r,a=i.split(",");a[a.length-1]+="{"+s+"}";const l=v(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),e.push.apply(e,a),e}function S(t){return"{"+t+"}"}function E(t){return/^-?0\d/.test(t)}function x(t,e){return t<=e}function A(t,e){return t>=e}function R(t,e,r){const i=[],s=(0,n.balanced)("{","}",t);if(!s)return[t];const a=s.pre,l=s.post.length?R(s.post,e,!1):[""];if(/\$$/.test(s.pre))for(let t=0;t<l.length&&t<e;t++){const e=a+"{"+s.body+"}"+l[t];i.push(e)}else{const n=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),h=n||u,c=s.body.indexOf(",")>=0;if(!h&&!c)return s.post.match(/,(?!,).*\}/)?R(t=s.pre+"{"+s.body+o+s.post,e,!0):[t];let d,f;if(h)d=s.body.split(/\.\./);else if(d=v(s.body),1===d.length&&void 0!==d[0]&&(d=R(d[0],e,!1).map(S),1===d.length))return l.map((t=>s.pre+d[0]+t));if(h&&void 0!==d[0]&&void 0!==d[1]){const t=w(d[0]),e=w(d[1]),r=Math.max(d[0].length,d[1].length);let n=3===d.length&&void 0!==d[2]?Math.abs(w(d[2])):1,i=x;e<t&&(n*=-1,i=A);const s=d.some(E);f=[];for(let o=t;i(o,e);o+=n){let t;if(u)t=String.fromCharCode(o),"\\"===t&&(t="");else if(t=String(o),s){const e=r-t.length;if(e>0){const r=new Array(e+1).join("0");t=o<0?"-"+r+t.slice(1):r+t}}f.push(t)}}else{f=[];for(let t=0;t<d.length;t++)f.push.apply(f,R(d[t],e,!1))}for(let t=0;t<f.length;t++)for(let n=0;n<l.length&&i.length<e;n++){const e=a+f[t]+l[n];(!r||h||e)&&i.push(e)}}return i}e.EXPANSION_MAX=1e5},6564(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Glob=void 0;const n=r(4018),i=r(3136),s=r(8576),o=r(5566),a=r(400),l="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class u{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,i.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.includeChildMatches=!1!==e.includeChildMatches,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof t&&(t=[t]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(t=t.map((t=>t.replace(/\\/g,"/")))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");t=t.map((t=>t.includes("/")?t:`./**/${t}`))}if(this.pattern=t,this.platform=e.platform||l,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,void 0!==e.nocase&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const t="win32"===e.platform?s.PathScurryWin32:"darwin"===e.platform?s.PathScurryDarwin:e.platform?s.PathScurryPosix:s.PathScurry;this.scurry=new t(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;const r="darwin"===this.platform||"win32"===this.platform,a={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},u=this.pattern.map((t=>new n.Minimatch(t,a))),[h,c]=u.reduce(((t,e)=>(t[0].push(...e.set),t[1].push(...e.globParts),t)),[[],[]]);this.patterns=h.map(((t,e)=>{const r=c[e];if(!r)throw new Error("invalid pattern object");return new o.Pattern(t,r,0,this.platform)}))}async walk(){return[...await new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}e.Glob=u},2150(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasMagic=void 0;const n=r(4018);e.hasMagic=(t,e={})=>{Array.isArray(t)||(t=[t]);for(const r of t)if(new n.Minimatch(r,e).hasMagic())return!0;return!1}},9348(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Ignore=void 0;const n=r(4018),i=r(5566),s="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";e.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:e,nocase:r,noext:n,noglobstar:i,platform:o=s}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:e,nocase:r,noext:n,noglobstar:i,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(const e of t)this.add(e)}add(t){const e=new n.Minimatch(t,this.mmopts);for(let t=0;t<e.set.length;t++){const r=e.set[t],s=e.globParts[t];if(!r||!s)throw new Error("invalid pattern object");for(;"."===r[0]&&"."===s[0];)r.shift(),s.shift();const o=new i.Pattern(r,s,0,this.platform),a=new n.Minimatch(o.globString(),this.mmopts),l="**"===s[s.length-1],u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){const e=t.fullpath(),r=`${e}/`,n=t.relative()||".",i=`${n}/`;for(const t of this.relative)if(t.match(n)||t.match(i))return!0;for(const t of this.absolute)if(t.match(e)||t.match(r))return!0;return!1}childrenIgnored(t){const e=t.fullpath()+"/",r=(t.relative()||".")+"/";for(const t of this.relativeChildren)if(t.match(r))return!0;for(const t of this.absoluteChildren)if(t.match(e))return!0;return!1}}},6492(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.glob=e.sync=e.iterate=e.iterateSync=e.stream=e.streamSync=e.Ignore=e.hasMagic=e.Glob=e.unescape=e.escape=void 0,e.globStreamSync=h,e.globStream=c,e.globSync=d,e.globIterateSync=p,e.globIterate=g;const n=r(4018),i=r(6564),s=r(2150);var o=r(4018);Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,"unescape",{enumerable:!0,get:function(){return o.unescape}});var a=r(6564);Object.defineProperty(e,"Glob",{enumerable:!0,get:function(){return a.Glob}});var l=r(2150);Object.defineProperty(e,"hasMagic",{enumerable:!0,get:function(){return l.hasMagic}});var u=r(9348);function h(t,e={}){return new i.Glob(t,e).streamSync()}function c(t,e={}){return new i.Glob(t,e).stream()}function d(t,e={}){return new i.Glob(t,e).walkSync()}async function f(t,e={}){return new i.Glob(t,e).walk()}function p(t,e={}){return new i.Glob(t,e).iterateSync()}function g(t,e={}){return new i.Glob(t,e).iterate()}Object.defineProperty(e,"Ignore",{enumerable:!0,get:function(){return u.Ignore}}),e.streamSync=h,e.stream=Object.assign(c,{sync:h}),e.iterateSync=p,e.iterate=Object.assign(g,{sync:p}),e.sync=Object.assign(d,{stream:h,iterate:p}),e.glob=Object.assign(f,{glob:f,globSync:d,sync:e.sync,globStream:c,stream:e.stream,globStreamSync:h,streamSync:e.streamSync,globIterate:g,iterate:e.iterate,globIterateSync:p,iterateSync:e.iterateSync,Glob:i.Glob,hasMagic:s.hasMagic,escape:n.escape,unescape:n.unescape}),e.glob.glob=e.glob},5566(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pattern=void 0;const n=r(4018);class i{#t;#e;#r;length;#n;#i;#s;#o;#a;#l;#u=!0;constructor(t,e,r,n){if(!(t.length>=1))throw new TypeError("empty pattern list");if(!(e.length>=1))throw new TypeError("empty glob list");if(e.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#t=t,this.#e=e,this.#r=r,this.#n=n,0===this.#r)if(this.isUNC()){const[t,e,r,n,...i]=this.#t,[s,o,a,l,...u]=this.#e;""===i[0]&&(i.shift(),u.shift());const h=[t,e,r,n,""].join("/"),c=[s,o,a,l,""].join("/");this.#t=[h,...i],this.#e=[c,...u],this.length=this.#t.length}else if(this.isDrive()||this.isAbsolute()){const[t,...e]=this.#t,[r,...n]=this.#e;""===e[0]&&(e.shift(),n.shift());const i=t+"/",s=r+"/";this.#t=[i,...e],this.#e=[s,...n],this.length=this.#t.length}}pattern(){return this.#t[this.#r]}isString(){return"string"==typeof this.#t[this.#r]}isGlobstar(){return this.#t[this.#r]===n.GLOBSTAR}isRegExp(){return this.#t[this.#r]instanceof RegExp}globString(){return this.#s=this.#s||(0===this.#r?this.isAbsolute()?this.#e[0]+this.#e.slice(1).join("/"):this.#e.join("/"):this.#e.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return void 0!==this.#i?this.#i:this.hasMore()?(this.#i=new i(this.#t,this.#e,this.#r+1,this.#n),this.#i.#l=this.#l,this.#i.#a=this.#a,this.#i.#o=this.#o,this.#i):this.#i=null}isUNC(){const t=this.#t;return void 0!==this.#a?this.#a:this.#a="win32"===this.#n&&0===this.#r&&""===t[0]&&""===t[1]&&"string"==typeof t[2]&&!!t[2]&&"string"==typeof t[3]&&!!t[3]}isDrive(){const t=this.#t;return void 0!==this.#o?this.#o:this.#o="win32"===this.#n&&0===this.#r&&this.length>1&&"string"==typeof t[0]&&/^[a-z]:$/i.test(t[0])}isAbsolute(){const t=this.#t;return void 0!==this.#l?this.#l:this.#l=""===t[0]&&t.length>1||this.isDrive()||this.isUNC()}root(){const t=this.#t[0];return"string"==typeof t&&this.isAbsolute()&&0===this.#r?t:""}checkFollowGlobstar(){return!(0===this.#r||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){return!(0===this.#r||!this.isGlobstar()||!this.#u)&&(this.#u=!1,!0)}}e.Pattern=i},1120(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Processor=e.SubWalks=e.MatchRecord=e.HasWalkedCache=void 0;const n=r(4018);class i{store;constructor(t=new Map){this.store=t}copy(){return new i(new Map(this.store))}hasWalked(t,e){return this.store.get(t.fullpath())?.has(e.globString())}storeWalked(t,e){const r=t.fullpath(),n=this.store.get(r);n?n.add(e.globString()):this.store.set(r,new Set([e.globString()]))}}e.HasWalkedCache=i;class s{store=new Map;add(t,e,r){const n=(e?2:0)|(r?1:0),i=this.store.get(t);this.store.set(t,void 0===i?n:n&i)}entries(){return[...this.store.entries()].map((([t,e])=>[t,!!(2&e),!!(1&e)]))}}e.MatchRecord=s;class o{store=new Map;add(t,e){if(!t.canReaddir())return;const r=this.store.get(t);r?r.find((t=>t.globString()===e.globString()))||r.push(e):this.store.set(t,[e])}get(t){const e=this.store.get(t);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map((t=>[t,this.store.get(t)]))}keys(){return[...this.store.keys()].filter((t=>t.canReaddir()))}}e.SubWalks=o;class a{hasWalkedCache;matches=new s;subwalks=new o;patterns;follow;dot;opts;constructor(t,e){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=e?e.copy():new i}processPatterns(t,e){this.patterns=e;const r=e.map((e=>[t,e]));for(let[t,e]of r){this.hasWalkedCache.storeWalked(t,e);const r=e.root(),i=e.isAbsolute()&&!1!==this.opts.absolute;if(r){t=t.resolve("/"===r&&void 0!==this.opts.root?this.opts.root:r);const n=e.rest();if(!n){this.matches.add(t,!0,!1);continue}e=n}if(t.isENOENT())continue;let s,o,a=!1;for(;"string"==typeof(s=e.pattern())&&(o=e.rest());){const r=t.resolve(s);t=r,e=o,a=!0}if(s=e.pattern(),o=e.rest(),a){if(this.hasWalkedCache.hasWalked(t,e))continue;this.hasWalkedCache.storeWalked(t,e)}if("string"!=typeof s)if(s===n.GLOBSTAR){(!t.isSymbolicLink()||this.follow||e.checkFollowGlobstar())&&this.subwalks.add(t,e);const r=o?.pattern(),n=o?.rest();if(o&&(""!==r&&"."!==r||n)){if(".."===r){const e=t.parent||t;n?this.hasWalkedCache.hasWalked(e,n)||this.subwalks.add(e,n):this.matches.add(e,i,!0)}}else this.matches.add(t,i,""===r||"."===r)}else s instanceof RegExp&&this.subwalks.add(t,e);else{const e=".."===s||""===s||"."===s;this.matches.add(t.resolve(s),i,e)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new a(this.opts,this.hasWalkedCache)}filterEntries(t,e){const r=this.subwalks.get(t),i=this.child();for(const t of e)for(const e of r){const r=e.isAbsolute(),s=e.pattern(),o=e.rest();s===n.GLOBSTAR?i.testGlobstar(t,e,o,r):s instanceof RegExp?i.testRegExp(t,s,o,r):i.testString(t,s,o,r)}return i}testGlobstar(t,e,r,n){if(!this.dot&&t.name.startsWith(".")||(e.hasMore()||this.matches.add(t,n,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,e):t.isSymbolicLink()&&(r&&e.checkFollowGlobstar()?this.subwalks.add(t,r):e.markFollowGlobstar()&&this.subwalks.add(t,e)))),r){const e=r.pattern();if("string"==typeof e&&".."!==e&&""!==e&&"."!==e)this.testString(t,e,r.rest(),n);else if(".."===e){const e=t.parent||t;this.subwalks.add(e,r)}else e instanceof RegExp&&this.testRegExp(t,e,r.rest(),n)}}testRegExp(t,e,r,n){e.test(t.name)&&(r?this.subwalks.add(t,r):this.matches.add(t,n,!1))}testString(t,e,r,n){t.isNamed(e)&&(r?this.subwalks.add(t,r):this.matches.add(t,n,!1))}}e.Processor=a},400(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobStream=e.GlobWalker=e.GlobUtil=void 0;const n=r(3244),i=r(9348),s=r(1120);class o{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#h=[];#c;#d;signal;maxDepth;includeChildMatches;constructor(t,e,r){if(this.patterns=t,this.path=e,this.opts=r,this.#d=r.posix||"win32"!==r.platform?"/":"\\",this.includeChildMatches=!1!==r.includeChildMatches,(r.ignore||!this.includeChildMatches)&&(this.#c=((t,e)=>"string"==typeof t?new i.Ignore([t],e):Array.isArray(t)?new i.Ignore(t,e):t)(r.ignore??[],r),!this.includeChildMatches&&"function"!=typeof this.#c.add)){throw new Error("cannot ignore child matches, ignore lacks add() method.")}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",(()=>{this.#h.length=0})))}#f(t){return this.seen.has(t)||!!this.#c?.ignored?.(t)}#p(t){return!!this.#c?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let t;for(this.paused=!1;!this.paused&&(t=this.#h.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#h.push(t):t())}async matchCheck(t,e){if(e&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=t.realpathCached()||await t.realpath(),!r)return;t=r}const n=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){const t=await n.realpath();t&&(t.isUnknown()||this.opts.stat)&&await t.lstat()}return this.matchCheckTest(n,e)}matchCheckTest(t,e){return!t||!(this.maxDepth===1/0||t.depth()<=this.maxDepth)||e&&!t.canReaddir()||this.opts.nodir&&t.isDirectory()||this.opts.nodir&&this.opts.follow&&t.isSymbolicLink()&&t.realpathCached()?.isDirectory()||this.#f(t)?void 0:t}matchCheckSync(t,e){if(e&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=t.realpathCached()||t.realpathSync(),!r)return;t=r}const n=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){const t=n.realpathSync();t&&(t?.isUnknown()||this.opts.stat)&&t.lstatSync()}return this.matchCheckTest(n,e)}matchFinish(t,e){if(this.#f(t))return;if(!this.includeChildMatches&&this.#c?.add){const e=`${t.relativePosix()}/**`;this.#c.add(e)}const r=void 0===this.opts.absolute?e:this.opts.absolute;this.seen.add(t);const n=this.opts.mark&&t.isDirectory()?this.#d:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(r){const e=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(e+n)}else{const e=this.opts.posix?t.relativePosix():t.relative(),r=this.opts.dotRelative&&!e.startsWith(".."+this.#d)?"."+this.#d:"";this.matchEmit(e?r+e+n:"."+n)}}async match(t,e,r){const n=await this.matchCheck(t,r);n&&this.matchFinish(n,e)}matchSync(t,e,r){const n=this.matchCheckSync(t,r);n&&this.matchFinish(n,e)}walkCB(t,e,r){this.signal?.aborted&&r(),this.walkCB2(t,e,new s.Processor(this.opts),r)}walkCB2(t,e,r,n){if(this.#p(t))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2(t,e,r,n)));r.processPatterns(t,e);let i=1;const s=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#f(t)||(i++,this.match(t,e,n).then((()=>s())));for(const t of r.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;i++;const e=t.readdirCached();t.calledReaddir()?this.walkCB3(t,e,r,s):t.readdirCB(((e,n)=>this.walkCB3(t,n,r,s)),!0)}s()}walkCB3(t,e,r,n){r=r.filterEntries(t,e);let i=1;const s=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#f(t)||(i++,this.match(t,e,n).then((()=>s())));for(const[t,e]of r.subwalks.entries())i++,this.walkCB2(t,e,r.child(),s);s()}walkCBSync(t,e,r){this.signal?.aborted&&r(),this.walkCB2Sync(t,e,new s.Processor(this.opts),r)}walkCB2Sync(t,e,r,n){if(this.#p(t))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2Sync(t,e,r,n)));r.processPatterns(t,e);let i=1;const s=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#f(t)||this.matchSync(t,e,n);for(const t of r.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;i++;const e=t.readdirSync();this.walkCB3Sync(t,e,r,s)}s()}walkCB3Sync(t,e,r,n){r=r.filterEntries(t,e);let i=1;const s=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#f(t)||this.matchSync(t,e,n);for(const[t,e]of r.subwalks.entries())i++,this.walkCB2Sync(t,e,r.child(),s);s()}}e.GlobUtil=o;e.GlobWalker=class extends o{matches=new Set;constructor(t,e,r){super(t,e,r)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((t,e)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?e(this.signal.reason):t(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}};e.GlobStream=class extends o{results;constructor(t,e,r){super(t,e,r),this.results=new n.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){const t=this.path;return t.isUnknown()?t.lstat().then((()=>{this.walkCB(t,this.patterns,(()=>this.results.end()))})):this.walkCB(t,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}},9850(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertValidPattern=void 0;e.assertValidPattern=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")}},9178(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AST=void 0;const n=r(5491),i=r(7876),s=new Set(["!","?","+","*","@"]),o=t=>s.has(t),a="(?!\\.)",l=new Set(["[","."]),u=new Set(["..","."]),h=new Set("().*{}+?[]^$\\!"),c="[^/]",d=c+"*?",f=c+"+?";class p{type;#g;#b;#m=!1;#y=[];#w;#_;#v;#S=!1;#E;#x;#A=!1;constructor(t,e,r={}){this.type=t,t&&(this.#b=!0),this.#w=e,this.#g=this.#w?this.#w.#g:this,this.#E=this.#g===this?r:this.#g.#E,this.#v=this.#g===this?[]:this.#g.#v,"!"!==t||this.#g.#S||this.#v.push(this),this.#_=this.#w?this.#w.#y.length:0}get hasMagic(){if(void 0!==this.#b)return this.#b;for(const t of this.#y)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#b=!0;return this.#b}toString(){return void 0!==this.#x?this.#x:this.type?this.#x=this.type+"("+this.#y.map((t=>String(t))).join("|")+")":this.#x=this.#y.map((t=>String(t))).join("")}#R(){if(this!==this.#g)throw new Error("should only call on root");if(this.#S)return this;let t;for(this.toString(),this.#S=!0;t=this.#v.pop();){if("!"!==t.type)continue;let e=t,r=e.#w;for(;r;){for(let n=e.#_+1;!r.type&&n<r.#y.length;n++)for(const e of t.#y){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(r.#y[n])}e=r,r=e.#w}}return this}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof p&&e.#w===this))throw new Error("invalid part: "+e);this.#y.push(e)}}toJSON(){const t=null===this.type?this.#y.slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...this.#y.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#g||this.#g.#S&&"!"===this.#w?.type)&&t.push({}),t}isStart(){if(this.#g===this)return!0;if(!this.#w?.isStart())return!1;if(0===this.#_)return!0;const t=this.#w;for(let e=0;e<this.#_;e++){const r=t.#y[e];if(!(r instanceof p&&"!"===r.type))return!1}return!0}isEnd(){if(this.#g===this)return!0;if("!"===this.#w?.type)return!0;if(!this.#w?.isEnd())return!1;if(!this.type)return this.#w?.isEnd();const t=this.#w?this.#w.#y.length:0;return this.#_===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new p(this.type,t);for(const t of this.#y)e.copyIn(t);return e}static#O(t,e,r,n){let i=!1,s=!1,a=-1,l=!1;if(null===e.type){let u=r,h="";for(;u<t.length;){const r=t.charAt(u++);if(i||"\\"===r)i=!i,h+=r;else if(s)u===a+1?"^"!==r&&"!"!==r||(l=!0):"]"!==r||u===a+2&&l||(s=!1),h+=r;else if("["!==r)if(n.noext||!o(r)||"("!==t.charAt(u))h+=r;else{e.push(h),h="";const i=new p(r,e);u=p.#O(t,i,u,n),e.push(i)}else s=!0,a=u,l=!1,h+=r}return e.push(h),u}let u=r+1,h=new p(null,e);const c=[];let d="";for(;u<t.length;){const r=t.charAt(u++);if(i||"\\"===r)i=!i,d+=r;else if(s)u===a+1?"^"!==r&&"!"!==r||(l=!0):"]"!==r||u===a+2&&l||(s=!1),d+=r;else if("["!==r)if(o(r)&&"("===t.charAt(u)){h.push(d),d="";const e=new p(r,h);h.push(e),u=p.#O(t,e,u,n)}else if("|"!==r){if(")"===r)return""===d&&0===e.#y.length&&(e.#A=!0),h.push(d),d="",e.push(...c,h),u;d+=r}else h.push(d),d="",c.push(h),h=new p(null,e);else s=!0,a=u,l=!1,d+=r}return e.type=null,e.#b=void 0,e.#y=[t.substring(r-1)],u}static fromGlob(t,e={}){const r=new p(null,void 0,e);return p.#O(t,r,0,e),r}toMMPattern(){if(this!==this.#g)return this.#g.toMMPattern();const t=this.toString(),[e,r,n,i]=this.toRegExpSource();if(!(n||this.#b||this.#E.nocase&&!this.#E.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;const s=(this.#E.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${e}$`,s),{_src:e,_glob:t})}get options(){return this.#E}toRegExpSource(t){const e=t??!!this.#E.dot;if(this.#g===this&&this.#R(),!this.type){const r=this.isStart()&&this.isEnd(),n=this.#y.map((e=>{const[n,i,s,o]="string"==typeof e?p.#T(e,this.#b,r):e.toRegExpSource(t);return this.#b=this.#b||s,this.#m=this.#m||o,n})).join("");let s="";if(this.isStart()&&"string"==typeof this.#y[0]){if(!(1===this.#y.length&&u.has(this.#y[0]))){const r=l,i=e&&r.has(n.charAt(0))||n.startsWith("\\.")&&r.has(n.charAt(2))||n.startsWith("\\.\\.")&&r.has(n.charAt(4)),o=!e&&!t&&r.has(n.charAt(0));s=i?"(?!(?:^|/)\\.\\.?(?:$|/))":o?a:""}}let o="";this.isEnd()&&this.#g.#S&&"!"===this.#w?.type&&(o="(?:$|\\/)");return[s+n+o,(0,i.unescape)(n),this.#b=!!this.#b,this.#m]}const r="*"===this.type||"+"===this.type,n="!"===this.type?"(?:(?!(?:":"(?:";let s=this.#k(e);if(this.isStart()&&this.isEnd()&&!s&&"!"!==this.type){const t=this.toString();return this.#y=[t],this.type=null,this.#b=void 0,[t,(0,i.unescape)(this.toString()),!1,!1]}let o=!r||t||e?"":this.#k(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let h="";if("!"===this.type&&this.#A)h=(this.isStart()&&!e?a:"")+f;else{h=n+s+("!"===this.type?"))"+(!this.isStart()||e||t?"":a)+d+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&o?")":"*"===this.type&&o?")?":`)${this.type}`)}return[h,(0,i.unescape)(s),this.#b=!!this.#b,this.#m]}#k(t){return this.#y.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[r,n,i,s]=e.toRegExpSource(t);return this.#m=this.#m||s,r})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#T(t,e,r=!1){let s=!1,o="",a=!1,l=!1;for(let i=0;i<t.length;i++){const u=t.charAt(i);if(s)s=!1,o+=(h.has(u)?"\\":"")+u,l=!1;else if("\\"!==u){if("["===u){const[r,s,u,h]=(0,n.parseClass)(t,i);if(u){o+=r,a=a||s,i+=u-1,e=e||h,l=!1;continue}}if("*"!==u)l=!1,"?"!==u?o+=u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(o+=c,e=!0);else{if(l)continue;l=!0,o+=r&&/^[*]+$/.test(t)?f:d,e=!0}}else i===t.length-1?o+="\\\\":s=!0}return[o,(0,i.unescape)(t),!!e,a]}}e.AST=p},5491(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseClass=void 0;const r={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},n=t=>t.replace(/[[\]\\-]/g,"\\$&"),i=t=>t.join("");e.parseClass=(t,e)=>{const s=e;if("["!==t.charAt(s))throw new Error("not in a brace expression");const o=[],a=[];let l=s+1,u=!1,h=!1,c=!1,d=!1,f=s,p="";t:for(;l<t.length;){const e=t.charAt(l);if("!"!==e&&"^"!==e||l!==s+1){if("]"===e&&u&&!c){f=l+1;break}if(u=!0,"\\"!==e||c){if("["===e&&!c)for(const[e,[n,i,u]]of Object.entries(r))if(t.startsWith(e,l)){if(p)return["$.",!1,t.length-s,!0];l+=e.length,u?a.push(n):o.push(n),h=h||i;continue t}c=!1,p?(e>p?o.push(n(p)+"-"+n(e)):e===p&&o.push(n(e)),p="",l++):t.startsWith("-]",l+1)?(o.push(n(e+"-")),l+=2):t.startsWith("-",l+1)?(p=e,l+=2):(o.push(n(e)),l++)}else c=!0,l++}else d=!0,l++}if(f<l)return["",!1,0,!1];if(!o.length&&!a.length)return["$.",!1,t.length-s,!0];if(0===a.length&&1===o.length&&/^\\?.$/.test(o[0])&&!d){const t=2===o[0].length?o[0].slice(-1):o[0];return[(g=t,g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,f-s,!1]}var g;const b="["+(d?"^":"")+i(o)+"]",m="["+(d?"":"^")+i(a)+"]";return[o.length&&a.length?"("+b+"|"+m+")":o.length?b:m,h,f-s,!0]}},6619(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escape=void 0;e.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&")},4018(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=e.escape=e.AST=e.Minimatch=e.match=e.makeRe=e.braceExpand=e.defaults=e.filter=e.GLOBSTAR=e.sep=e.minimatch=void 0;const n=r(1697),i=r(9850),s=r(9178),o=r(6619),a=r(7876);e.minimatch=(t,e,r={})=>((0,i.assertValidPattern)(e),!(!r.nocomment&&"#"===e.charAt(0))&&new L(e,r).match(t));const l=/^\*+([^+@!?\*\[\(]*)$/,u=t=>e=>!e.startsWith(".")&&e.endsWith(t),h=t=>e=>e.endsWith(t),c=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),d=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),f=/^\*+\.\*+$/,p=t=>!t.startsWith(".")&&t.includes("."),g=t=>"."!==t&&".."!==t&&t.includes("."),b=/^\.\*+$/,m=t=>"."!==t&&".."!==t&&t.startsWith("."),y=/^\*+$/,w=t=>0!==t.length&&!t.startsWith("."),_=t=>0!==t.length&&"."!==t&&".."!==t,v=/^\?+([^+@!?\*\[\(]*)?$/,S=([t,e=""])=>{const r=R([t]);return e?(e=e.toLowerCase(),t=>r(t)&&t.toLowerCase().endsWith(e)):r},E=([t,e=""])=>{const r=O([t]);return e?(e=e.toLowerCase(),t=>r(t)&&t.toLowerCase().endsWith(e)):r},x=([t,e=""])=>{const r=O([t]);return e?t=>r(t)&&t.endsWith(e):r},A=([t,e=""])=>{const r=R([t]);return e?t=>r(t)&&t.endsWith(e):r},R=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},O=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},T="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",k={sep:"\\"},M={sep:"/"};e.sep="win32"===T?k.sep:M.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol("globstar **"),e.minimatch.GLOBSTAR=e.GLOBSTAR;e.filter=(t,r={})=>n=>(0,e.minimatch)(n,t,r),e.minimatch.filter=e.filter;const P=(t,e={})=>Object.assign({},t,e);e.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return e.minimatch;const r=e.minimatch;return Object.assign(((e,n,i={})=>r(e,n,P(t,i))),{Minimatch:class extends r.Minimatch{constructor(e,r={}){super(e,P(t,r))}static defaults(e){return r.defaults(P(t,e)).Minimatch}},AST:class extends r.AST{constructor(e,r,n={}){super(e,r,P(t,n))}static fromGlob(e,n={}){return r.AST.fromGlob(e,P(t,n))}},unescape:(e,n={})=>r.unescape(e,P(t,n)),escape:(e,n={})=>r.escape(e,P(t,n)),filter:(e,n={})=>r.filter(e,P(t,n)),defaults:e=>r.defaults(P(t,e)),makeRe:(e,n={})=>r.makeRe(e,P(t,n)),braceExpand:(e,n={})=>r.braceExpand(e,P(t,n)),match:(e,n,i={})=>r.match(e,n,P(t,i)),sep:r.sep,GLOBSTAR:e.GLOBSTAR})},e.minimatch.defaults=e.defaults;e.braceExpand=(t,e={})=>((0,i.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,n.expand)(t)),e.minimatch.braceExpand=e.braceExpand;e.makeRe=(t,e={})=>new L(t,e).makeRe(),e.minimatch.makeRe=e.makeRe;e.match=(t,e,r={})=>{const n=new L(e,r);return t=t.filter((t=>n.match(t))),n.options.nonull&&!t.length&&t.push(e),t},e.minimatch.match=e.match;const I=/[?*]|[+@!]\(.*?\)|\[|\]/;class L{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){(0,i.assertValidPattern)(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||T,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const r=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map(((t,e,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&I.test(t[2])||I.test(t[3])),r=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(r)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,n),this.set=n.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let r=0;r<t[e].length;r++)"**"===t[e][r]&&(t[e][r]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let r=e;for(;"**"===t[r+1];)r++;r!==e&&t.splice(e,r-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const r=t[t.length-1];return"**"===e&&"**"===r?t:".."===e&&r&&".."!==r&&"."!==r&&"**"!==r?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let r=1;r<t.length-1;r++){const n=t[r];1===r&&""===n&&""===t[0]||("."!==n&&""!==n||(e=!0,t.splice(r,1),r--))}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let r=0;for(;-1!==(r=t.indexOf("..",r+1));){const n=t[r-1];n&&"."!==n&&".."!==n&&"**"!==n&&(e=!0,t.splice(r-1,2),r-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let r of t){let n=-1;for(;-1!==(n=r.indexOf("**",n+1));){let i=n;for(;"**"===r[i+1];)i++;i>n&&r.splice(n+1,i-n);let s=r[n+1];const o=r[n+2],a=r[n+3];if(".."!==s)continue;if(!o||"."===o||".."===o||!a||"."===a||".."===a)continue;e=!0,r.splice(n,1);const l=r.slice(0);l[n]="**",t.push(l),n--}if(!this.preserveMultipleSlashes){for(let t=1;t<r.length-1;t++){const n=r[t];1===t&&""===n&&""===r[0]||("."!==n&&""!==n||(e=!0,r.splice(t,1),t--))}"."!==r[0]||2!==r.length||"."!==r[1]&&""!==r[1]||(e=!0,r.pop())}let i=0;for(;-1!==(i=r.indexOf("..",i+1));){const t=r[i-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===i&&"**"===r[i+1]?["."]:[];r.splice(i-1,2,...t),0===r.length&&r.push(""),i-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let r=e+1;r<t.length;r++){const n=this.partsMatch(t[e],t[r],!this.preserveMultipleSlashes);if(n){t[e]=[],t[r]=n;break}}return t.filter((t=>t.length))}partsMatch(t,e,r=!1){let n=0,i=0,s=[],o="";for(;n<t.length&&i<e.length;)if(t[n]===e[i])s.push("b"===o?e[i]:t[n]),n++,i++;else if(r&&"**"===t[n]&&e[i]===t[n+1])s.push(t[n]),n++;else if(r&&"**"===e[i]&&t[n]===e[i+1])s.push(e[i]),i++;else if("*"!==t[n]||!e[i]||!this.options.dot&&e[i].startsWith(".")||"**"===e[i]){if("*"!==e[i]||!t[n]||!this.options.dot&&t[n].startsWith(".")||"**"===t[n])return!1;if("a"===o)return!1;o="b",s.push(e[i]),n++,i++}else{if("b"===o)return!1;o="a",s.push(t[n]),n++,i++}return t.length===e.length&&s}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,r=0;for(let n=0;n<t.length&&"!"===t.charAt(n);n++)e=!e,r++;r&&(this.pattern=t.slice(r)),this.negate=e}matchOne(t,r,n=!1){const i=this.options;if(this.isWindows){const e="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),n=!e&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),i="string"==typeof r[0]&&/^[a-z]:$/i.test(r[0]),s=n?3:e?0:void 0,o=!i&&""===r[0]&&""===r[1]&&"?"===r[2]&&"string"==typeof r[3]&&/^[a-z]:$/i.test(r[3])?3:i?0:void 0;if("number"==typeof s&&"number"==typeof o){const[e,n]=[t[s],r[o]];e.toLowerCase()===n.toLowerCase()&&(r[o]=e,o>s?r=r.slice(o):s>o&&(t=t.slice(s)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var o=0,a=0,l=t.length,u=r.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");var h=r[a],c=t[o];if(this.debug(r,h,c),!1===h)return!1;if(h===e.GLOBSTAR){this.debug("GLOBSTAR",[r,h,c]);var d=o,f=a+1;if(f===u){for(this.debug("** at the end");o<l;o++)if("."===t[o]||".."===t[o]||!i.dot&&"."===t[o].charAt(0))return!1;return!0}for(;d<l;){var p=t[d];if(this.debug("\nglobstar while",t,d,r,f,p),this.matchOne(t.slice(d),r.slice(f),n))return this.debug("globstar found match!",d,l,p),!0;if("."===p||".."===p||!i.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,d,r,f);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!n||(this.debug("\n>>> no match, partial?",t,d,r,f),d!==l))}let s;if("string"==typeof h?(s=c===h,this.debug("string match",h,c,s)):(s=h.test(c),this.debug("pattern match",h,c,s)),!s)return!1}if(o===l&&a===u)return!0;if(o===l)return n;if(a===u)return o===l-1&&""===t[o];throw new Error("wtf?")}braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}parse(t){(0,i.assertValidPattern)(t);const r=this.options;if("**"===t)return e.GLOBSTAR;if(""===t)return"";let n,o=null;(n=t.match(y))?o=r.dot?_:w:(n=t.match(l))?o=(r.nocase?r.dot?d:c:r.dot?h:u)(n[1]):(n=t.match(v))?o=(r.nocase?r.dot?E:S:r.dot?x:A)(n):(n=t.match(f))?o=r.dot?g:p:(n=t.match(b))&&(o=m);const a=s.AST.fromGlob(t,this.options).toMMPattern();return o&&"object"==typeof a&&Reflect.defineProperty(a,"test",{value:o}),a}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(r.nocase?["i"]:[]);let s=t.map((t=>{const r=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))i.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===e.GLOBSTAR?e.GLOBSTAR:t._src}));return r.forEach(((t,i)=>{const s=r[i+1],o=r[i-1];t===e.GLOBSTAR&&o!==e.GLOBSTAR&&(void 0===o?void 0!==s&&s!==e.GLOBSTAR?r[i+1]="(?:\\/|"+n+"\\/)?"+s:r[i]=n:void 0===s?r[i-1]=o+"(?:\\/|"+n+")?":s!==e.GLOBSTAR&&(r[i-1]=o+"(?:\\/|\\/"+n+"\\/)"+s,r[i+1]=e.GLOBSTAR))})),r.filter((t=>t!==e.GLOBSTAR)).join("/")})).join("|");const[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const r=this.options;this.isWindows&&(t=t.split("\\").join("/"));const n=this.slashSplit(t);this.debug(this.pattern,"split",n);const i=this.set;this.debug(this.pattern,"set",i);let s=n[n.length-1];if(!s)for(let t=n.length-2;!s&&t>=0;t--)s=n[t];for(let t=0;t<i.length;t++){const o=i[t];let a=n;r.matchBase&&1===o.length&&(a=[s]);if(this.matchOne(a,o,e))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(t){return e.minimatch.defaults(t).Minimatch}}e.Minimatch=L;var D=r(9178);Object.defineProperty(e,"AST",{enumerable:!0,get:function(){return D.AST}});var C=r(6619);Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return C.escape}});var N=r(7876);Object.defineProperty(e,"unescape",{enumerable:!0,get:function(){return N.unescape}}),e.minimatch.AST=s.AST,e.minimatch.Minimatch=L,e.minimatch.escape=o.escape,e.minimatch.unescape=a.unescape},7876(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=void 0;e.unescape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},3244(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Minipass=e.isWritable=e.isReadable=e.isStream=void 0;const i="object"==typeof process&&process?process:{stdout:null,stderr:null},s=r(8474),o=n(r(7075)),a=r(6193);e.isStream=t=>!!t&&"object"==typeof t&&(t instanceof z||t instanceof o.default||(0,e.isReadable)(t)||(0,e.isWritable)(t));e.isReadable=t=>!!t&&"object"==typeof t&&t instanceof s.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==o.default.Writable.prototype.pipe;e.isWritable=t=>!!t&&"object"==typeof t&&t instanceof s.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end;const l=Symbol("EOF"),u=Symbol("maybeEmitEnd"),h=Symbol("emittedEnd"),c=Symbol("emittingEnd"),d=Symbol("emittedError"),f=Symbol("closed"),p=Symbol("read"),g=Symbol("flush"),b=Symbol("flushChunk"),m=Symbol("encoding"),y=Symbol("decoder"),w=Symbol("flowing"),_=Symbol("paused"),v=Symbol("resume"),S=Symbol("buffer"),E=Symbol("pipes"),x=Symbol("bufferLength"),A=Symbol("bufferPush"),R=Symbol("bufferShift"),O=Symbol("objectMode"),T=Symbol("destroyed"),k=Symbol("error"),M=Symbol("emitData"),P=Symbol("emitEnd"),I=Symbol("emitEnd2"),L=Symbol("async"),D=Symbol("abort"),C=Symbol("aborted"),N=Symbol("signal"),j=Symbol("dataListeners"),F=Symbol("discarded"),$=t=>Promise.resolve().then(t),W=t=>t();class B{src;dest;opts;ondrain;constructor(t,e,r){this.src=t,this.dest=e,this.opts=r,this.ondrain=()=>t[v](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class U extends B{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,r){super(t,e,r),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class z extends s.EventEmitter{[w]=!1;[_]=!1;[E]=[];[S]=[];[O];[m];[L];[y];[l]=!1;[h]=!1;[c]=!1;[f]=!1;[d]=null;[x]=0;[T]=!1;[N];[C]=!1;[j]=0;[F]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");e.objectMode?(this[O]=!0,this[m]=null):(t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding)(e)?(this[m]=e.encoding,this[O]=!1):(this[O]=!1,this[m]=null),this[L]=!!e.async,this[y]=this[m]?new a.StringDecoder(this[m]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[S]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[E]});const{signal:r}=e;r&&(this[N]=r,r.aborted?this[D]():r.addEventListener("abort",(()=>this[D]())))}get bufferLength(){return this[x]}get encoding(){return this[m]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[O]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[L]}set async(t){this[L]=this[L]||!!t}[D](){this[C]=!0,this.emit("abort",this[N]?.reason),this.destroy(this[N]?.reason)}get aborted(){return this[C]}set aborted(t){}write(t,e,r){if(this[C])return!1;if(this[l])throw new Error("write after end");if(this[T])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(r=e,e="utf8"),e||(e="utf8");const n=this[L]?$:W;if(!this[O]&&!Buffer.isBuffer(t))if(i=t,!Buffer.isBuffer(i)&&ArrayBuffer.isView(i))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var i;return this[O]?(this[w]&&0!==this[x]&&this[g](!0),this[w]?this.emit("data",t):this[A](t),0!==this[x]&&this.emit("readable"),r&&n(r),this[w]):t.length?("string"!=typeof t||e===this[m]&&!this[y]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[m]&&(t=this[y].write(t)),this[w]&&0!==this[x]&&this[g](!0),this[w]?this.emit("data",t):this[A](t),0!==this[x]&&this.emit("readable"),r&&n(r),this[w]):(0!==this[x]&&this.emit("readable"),r&&n(r),this[w])}read(t){if(this[T])return null;if(this[F]=!1,0===this[x]||0===t||t&&t>this[x])return this[u](),null;this[O]&&(t=null),this[S].length>1&&!this[O]&&(this[S]=[this[m]?this[S].join(""):Buffer.concat(this[S],this[x])]);const e=this[p](t||null,this[S][0]);return this[u](),e}[p](t,e){if(this[O])this[R]();else{const r=e;t===r.length||null===t?this[R]():"string"==typeof r?(this[S][0]=r.slice(t),e=r.slice(0,t),this[x]-=t):(this[S][0]=r.subarray(t),e=r.subarray(0,t),this[x]-=t)}return this.emit("data",e),this[S].length||this[l]||this.emit("drain"),e}end(t,e,r){return"function"==typeof t&&(r=t,t=void 0),"function"==typeof e&&(r=e,e="utf8"),void 0!==t&&this.write(t,e),r&&this.once("end",r),this[l]=!0,this.writable=!1,!this[w]&&this[_]||this[u](),this}[v](){this[T]||(this[j]||this[E].length||(this[F]=!0),this[_]=!1,this[w]=!0,this.emit("resume"),this[S].length?this[g]():this[l]?this[u]():this.emit("drain"))}resume(){return this[v]()}pause(){this[w]=!1,this[_]=!0,this[F]=!1}get destroyed(){return this[T]}get flowing(){return this[w]}get paused(){return this[_]}[A](t){this[O]?this[x]+=1:this[x]+=t.length,this[S].push(t)}[R](){return this[O]?this[x]-=1:this[x]-=this[S][0].length,this[S].shift()}[g](t=!1){do{}while(this[b](this[R]())&&this[S].length);t||this[S].length||this[l]||this.emit("drain")}[b](t){return this.emit("data",t),this[w]}pipe(t,e){if(this[T])return t;this[F]=!1;const r=this[h];return e=e||{},t===i.stdout||t===i.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,r?e.end&&t.end():(this[E].push(e.proxyErrors?new U(this,t,e):new B(this,t,e)),this[L]?$((()=>this[v]())):this[v]()),t}unpipe(t){const e=this[E].find((e=>e.dest===t));e&&(1===this[E].length?(this[w]&&0===this[j]&&(this[w]=!1),this[E]=[]):this[E].splice(this[E].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const r=super.on(t,e);if("data"===t)this[F]=!1,this[j]++,this[E].length||this[w]||this[v]();else if("readable"===t&&0!==this[x])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[h])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[d]){const t=e;this[L]?$((()=>t.call(this,this[d]))):t.call(this,this[d])}return r}removeListener(t,e){return this.off(t,e)}off(t,e){const r=super.off(t,e);return"data"===t&&(this[j]=this.listeners("data").length,0!==this[j]||this[F]||this[E].length||(this[w]=!1)),r}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[j]=0,this[F]||this[E].length||(this[w]=!1)),e}get emittedEnd(){return this[h]}[u](){this[c]||this[h]||this[T]||0!==this[S].length||!this[l]||(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[f]&&this.emit("close"),this[c]=!1)}emit(t,...e){const r=e[0];if("error"!==t&&"close"!==t&&t!==T&&this[T])return!1;if("data"===t)return!(!this[O]&&!r)&&(this[L]?($((()=>this[M](r))),!0):this[M](r));if("end"===t)return this[P]();if("close"===t){if(this[f]=!0,!this[h]&&!this[T])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[d]=r,super.emit(k,r);const t=!(this[N]&&!this.listeners("error").length)&&super.emit("error",r);return this[u](),t}if("resume"===t){const t=super.emit("resume");return this[u](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const n=super.emit(t,...e);return this[u](),n}[M](t){for(const e of this[E])!1===e.dest.write(t)&&this.pause();const e=!this[F]&&super.emit("data",t);return this[u](),e}[P](){return!this[h]&&(this[h]=!0,this.readable=!1,this[L]?($((()=>this[I]())),!0):this[I]())}[I](){if(this[y]){const t=this[y].end();if(t){for(const e of this[E])e.dest.write(t);this[F]||super.emit("data",t)}}for(const t of this[E])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[O]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[O]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[O])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[m]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(T,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[F]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const r=this.read();if(null!==r)return Promise.resolve({done:!1,value:r});if(this[l])return e();let n,i;const s=t=>{this.off("data",o),this.off("end",a),this.off(T,u),e(),i(t)},o=t=>{this.off("error",s),this.off("end",a),this.off(T,u),this.pause(),n({value:t,done:!!this[l]})},a=()=>{this.off("error",s),this.off("data",o),this.off(T,u),e(),n({done:!0,value:void 0})},u=()=>s(new Error("stream destroyed"));return new Promise(((t,e)=>{i=e,n=t,this.once(T,u),this.once("error",s),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[F]=!1;let t=!1;const e=()=>(this.pause(),this.off(k,e),this.off(T,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(k,e),this.once(T,e),{next:()=>{if(t)return e();const r=this.read();return null===r?e():{done:!1,value:r}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){if(this[T])return t?this.emit("error",t):this.emit(T),this;this[T]=!0,this[F]=!0,this[S].length=0,this[x]=0;return"function"!=typeof this.close||this[f]||this.close(),t?this.emit("error",t):this.emit(T),this}static get isStream(){return e.isStream}}e.Minipass=z},9120(t){"use strict";function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const r=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function n(t){if(Buffer.isBuffer(t))return t;if("number"==typeof t)return Buffer.alloc(t);if("string"==typeof t)return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function i(t,e){t=n(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let i=~e;for(var s=0;s<t.length;s++)i=r[255&(i^t[s])]^i>>>8;return~i}function s(){return function(t){const e=n(4);return e.writeInt32BE(t,0),e}(i.apply(null,arguments))}s.signed=function(){return i.apply(null,arguments)},s.unsigned=function(){return i.apply(null,arguments)>>>0};const o=e(s);t.exports=o},2116(t,e,r){const{Argument:n}=r(9297),{Command:i}=r(3749),{CommanderError:s,InvalidArgumentError:o}=r(3666),{Help:a}=r(3693),{Option:l}=r(5019);e.DM=new i,e.gu=t=>new i(t),e.Ww=(t,e)=>new l(t,e),e.er=(t,e)=>new n(t,e),e.uB=i,e.c$=l,e.ef=n,e._V=a,e.b7=s,e.Di=o,e.a2=o},9297(t,e,r){const{InvalidArgumentError:n}=r(3666);e.Argument=class{constructor(t,e){switch(this.description=e||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,e){return e!==this.defaultValue&&Array.isArray(e)?(e.push(t),e):[t]}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(t,e)=>{if(!this.argChoices.includes(t))throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(t,e):t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},e.humanReadableArgName=function(t){const e=t.name()+(!0===t.variadic?"...":"");return t.required?"<"+e+">":"["+e+"]"}},3749(t,e,r){const n=r(8474).EventEmitter,i=r(1421),s=r(6760),o=r(3024),a=r(1708),{Argument:l,humanReadableArgName:u}=r(9297),{CommanderError:h}=r(3666),{Help:c,stripColor:d}=r(3693),{Option:f,DualOptions:p}=r(5019),{suggestSimilar:g}=r(7369);class b extends n{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:t=>a.stdout.write(t),writeErr:t=>a.stderr.write(t),outputError:(t,e)=>e(t),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:void 0,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:void 0,getOutHasColors:()=>y()??(a.stdout.isTTY&&a.stdout.hasColors?.()),getErrHasColors:()=>y()??(a.stderr.isTTY&&a.stderr.hasColors?.()),stripColor:t=>d(t)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){const t=[];for(let e=this;e;e=e.parent)t.push(e);return t}command(t,e,r){let n=e,i=r;"object"==typeof n&&null!==n&&(i=n,n=null),i=i||{};const[,s,o]=t.match(/([^ ]+) *(.*)/),a=this.createCommand(s);return n&&(a.description(n),a._executableHandler=!0),i.isDefault&&(this._defaultCommandName=a._name),a._hidden=!(!i.noHelp&&!i.hidden),a._executableFile=i.executableFile||null,o&&a.arguments(o),this._registerCommand(a),a.parent=this,a.copyInheritedSettings(this),n?this:a}createCommand(t){return new b(t)}createHelp(){return Object.assign(new c,this.configureHelp())}configureHelp(t){return void 0===t?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return void 0===t?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return"string"!=typeof t&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,e){if(!t._name)throw new Error("Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()");return(e=e||{}).isDefault&&(this._defaultCommandName=t._name),(e.noHelp||e.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,e){return new l(t,e)}argument(t,e,r,n){const i=this.createArgument(t,e);return"function"==typeof r?i.default(n).argParser(r):i.default(r),this.addArgument(i),this}arguments(t){return t.trim().split(/ +/).forEach((t=>{this.argument(t)})),this}addArgument(t){const e=this.registeredArguments.slice(-1)[0];if(e?.variadic)throw new Error(`only the last argument can be variadic '${e.name()}'`);if(t.required&&void 0!==t.defaultValue&&void 0===t.parseArg)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,e){if("boolean"==typeof t)return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;const r=t??"help [command]",[,n,i]=r.match(/([^ ]+) *(.*)/),s=e??"display help for command",o=this.createCommand(n);return o.helpOption(!1),i&&o.arguments(i),s&&o.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=o,(t||e)&&this._initCommandGroup(o),this}addHelpCommand(t,e){return"object"!=typeof t?(this.helpCommand(t,e),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(void 0===this._helpCommand&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,e){const r=["preSubcommand","preAction","postAction"];if(!r.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.\nExpecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(e):this._lifeCycleHooks[t]=[e],this}exitOverride(t){return this._exitCallback=t||(t=>{if("commander.executeSubCommandAsync"!==t.code)throw t}),this}_exit(t,e,r){this._exitCallback&&this._exitCallback(new h(t,e,r)),a.exit(t)}action(t){return this._actionHandler=e=>{const r=this.registeredArguments.length,n=e.slice(0,r);return this._storeOptionsAsProperties?n[r]=this:n[r]=this.opts(),n.push(this),t.apply(this,n)},this}createOption(t,e){return new f(t,e)}_callParseArg(t,e,r,n){try{return t.parseArg(e,r)}catch(t){if("commander.invalidArgument"===t.code){const e=`${n} ${t.message}`;this.error(e,{exitCode:t.exitCode,code:t.code})}throw t}}_registerOption(t){const e=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(e){const r=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${r}'\n- already used by option '${e.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){const e=t=>[t.name()].concat(t.aliases()),r=e(t).find((t=>this._findCommand(t)));if(r){const n=e(this._findCommand(r)).join("|"),i=e(t).join("|");throw new Error(`cannot add command '${i}' as already have command '${n}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);const e=t.name(),r=t.attributeName();if(t.negate){const e=t.long.replace(/^--no-/,"--");this._findOption(e)||this.setOptionValueWithSource(r,void 0===t.defaultValue||t.defaultValue,"default")}else void 0!==t.defaultValue&&this.setOptionValueWithSource(r,t.defaultValue,"default");const n=(e,n,i)=>{null==e&&void 0!==t.presetArg&&(e=t.presetArg);const s=this.getOptionValue(r);null!==e&&t.parseArg?e=this._callParseArg(t,e,s,n):null!==e&&t.variadic&&(e=t._collectValue(e,s)),null==e&&(e=!t.negate&&(!(!t.isBoolean()&&!t.optional)||"")),this.setOptionValueWithSource(r,e,i)};return this.on("option:"+e,(e=>{const r=`error: option '${t.flags}' argument '${e}' is invalid.`;n(e,r,"cli")})),t.envVar&&this.on("optionEnv:"+e,(e=>{const r=`error: option '${t.flags}' value '${e}' from env '${t.envVar}' is invalid.`;n(e,r,"env")})),this}_optionEx(t,e,r,n,i){if("object"==typeof e&&e instanceof f)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");const s=this.createOption(e,r);if(s.makeOptionMandatory(!!t.mandatory),"function"==typeof n)s.default(i).argParser(n);else if(n instanceof RegExp){const t=n;n=(e,r)=>{const n=t.exec(e);return n?n[0]:r},s.default(i).argParser(n)}else s.default(n);return this.addOption(s)}option(t,e,r,n){return this._optionEx({},t,e,r,n)}requiredOption(t,e,r,n){return this._optionEx({mandatory:!0},t,e,r,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,e){return this.setOptionValueWithSource(t,e,void 0)}setOptionValueWithSource(t,e,r){return this._storeOptionsAsProperties?this[t]=e:this._optionValues[t]=e,this._optionValueSources[t]=r,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let e;return this._getCommandAndAncestors().forEach((r=>{void 0!==r.getOptionValueSource(t)&&(e=r.getOptionValueSource(t))})),e}_prepareUserArgs(t,e){if(void 0!==t&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(e=e||{},void 0===t&&void 0===e.from){a.versions?.electron&&(e.from="electron");const t=a.execArgv??[];(t.includes("-e")||t.includes("--eval")||t.includes("-p")||t.includes("--print"))&&(e.from="eval")}let r;switch(void 0===t&&(t=a.argv),this.rawArgs=t.slice(),e.from){case void 0:case"node":this._scriptPath=t[1],r=t.slice(2);break;case"electron":a.defaultApp?(this._scriptPath=t[1],r=t.slice(2)):r=t.slice(1);break;case"user":r=t.slice(0);break;case"eval":r=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${e.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",r}parse(t,e){this._prepareForParse();const r=this._prepareUserArgs(t,e);return this._parseCommand([],r),this}async parseAsync(t,e){this._prepareForParse();const r=this._prepareUserArgs(t,e);return await this._parseCommand([],r),this}_prepareForParse(){null===this._savedState?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error("Can not call parse again when storeOptionsAsProperties is true.\n- either make a new Command for each call to parse, or stop storing options as properties");this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,e,r){if(o.existsSync(t))return;throw new Error(`'${t}' does not exist\n - if '${r}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${e?`searched for local subcommand relative to directory '${e}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory"}`)}_executeSubCommand(t,e){e=e.slice();let r=!1;const n=[".js",".ts",".tsx",".mjs",".cjs"];function l(t,e){const r=s.resolve(t,e);if(o.existsSync(r))return r;if(n.includes(s.extname(e)))return;const i=n.find((t=>o.existsSync(`${r}${t}`)));return i?`${r}${i}`:void 0}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let u,c=t._executableFile||`${this._name}-${t._name}`,d=this._executableDir||"";if(this._scriptPath){let t;try{t=o.realpathSync(this._scriptPath)}catch{t=this._scriptPath}d=s.resolve(s.dirname(t),d)}if(d){let e=l(d,c);if(!e&&!t._executableFile&&this._scriptPath){const r=s.basename(this._scriptPath,s.extname(this._scriptPath));r!==this._name&&(e=l(d,`${r}-${t._name}`))}c=e||c}if(r=n.includes(s.extname(c)),"win32"!==a.platform?r?(e.unshift(c),e=m(a.execArgv).concat(e),u=i.spawn(a.argv[0],e,{stdio:"inherit"})):u=i.spawn(c,e,{stdio:"inherit"}):(this._checkForMissingExecutable(c,d,t._name),e.unshift(c),e=m(a.execArgv).concat(e),u=i.spawn(a.execPath,e,{stdio:"inherit"})),!u.killed){["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((t=>{a.on(t,(()=>{!1===u.killed&&null===u.exitCode&&u.kill(t)}))}))}const f=this._exitCallback;u.on("close",(t=>{t=t??1,f?f(new h(t,"commander.executeSubCommandAsync","(close)")):a.exit(t)})),u.on("error",(e=>{if("ENOENT"===e.code)this._checkForMissingExecutable(c,d,t._name);else if("EACCES"===e.code)throw new Error(`'${c}' not executable`);if(f){const t=new h(1,"commander.executeSubCommandAsync","(error)");t.nestedError=e,f(t)}else a.exit(1)})),this.runningCommand=u}_dispatchSubcommand(t,e,r){const n=this._findCommand(t);let i;return n||this.help({error:!0}),n._prepareForParse(),i=this._chainOrCallSubCommandHook(i,n,"preSubcommand"),i=this._chainOrCall(i,(()=>{if(!n._executableHandler)return n._parseCommand(e,r);this._executeSubCommand(n,e.concat(r))})),i}_dispatchHelpCommand(t){t||this.help();const e=this._findCommand(t);return e&&!e._executableHandler&&e.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach(((t,e)=>{t.required&&null==this.args[e]&&this.missingArgument(t.name())})),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic||this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){const t=(t,e,r)=>{let n=e;if(null!==e&&t.parseArg){const i=`error: command-argument value '${e}' is invalid for argument '${t.name()}'.`;n=this._callParseArg(t,e,r,i)}return n};this._checkNumberOfArguments();const e=[];this.registeredArguments.forEach(((r,n)=>{let i=r.defaultValue;r.variadic?n<this.args.length?(i=this.args.slice(n),r.parseArg&&(i=i.reduce(((e,n)=>t(r,n,e)),r.defaultValue))):void 0===i&&(i=[]):n<this.args.length&&(i=this.args[n],r.parseArg&&(i=t(r,i,r.defaultValue))),e[n]=i})),this.processedArgs=e}_chainOrCall(t,e){return t?.then&&"function"==typeof t.then?t.then((()=>e())):e()}_chainOrCallHooks(t,e){let r=t;const n=[];return this._getCommandAndAncestors().reverse().filter((t=>void 0!==t._lifeCycleHooks[e])).forEach((t=>{t._lifeCycleHooks[e].forEach((e=>{n.push({hookedCommand:t,callback:e})}))})),"postAction"===e&&n.reverse(),n.forEach((t=>{r=this._chainOrCall(r,(()=>t.callback(t.hookedCommand,this)))})),r}_chainOrCallSubCommandHook(t,e,r){let n=t;return void 0!==this._lifeCycleHooks[r]&&this._lifeCycleHooks[r].forEach((t=>{n=this._chainOrCall(n,(()=>t(this,e)))})),n}_parseCommand(t,e){const r=this.parseOptions(e);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(r.operands),e=r.unknown,this.args=t.concat(e),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),e);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(e),this._dispatchSubcommand(this._defaultCommandName,t,e);!this.commands.length||0!==this.args.length||this._actionHandler||this._defaultCommandName||this.help({error:!0}),this._outputHelpIfRequested(r.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();const n=()=>{r.unknown.length>0&&this.unknownOption(r.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){let r;return n(),this._processArguments(),r=this._chainOrCallHooks(r,"preAction"),r=this._chainOrCall(r,(()=>this._actionHandler(this.processedArgs))),this.parent&&(r=this._chainOrCall(r,(()=>{this.parent.emit(i,t,e)}))),r=this._chainOrCallHooks(r,"postAction"),r}if(this.parent?.listenerCount(i))n(),this._processArguments(),this.parent.emit(i,t,e);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,e);this.listenerCount("command:*")?this.emit("command:*",t,e):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find((e=>e._name===t||e._aliases.includes(t)))}_findOption(t){return this.options.find((e=>e.is(t)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((t=>{t.options.forEach((e=>{e.mandatory&&void 0===t.getOptionValue(e.attributeName())&&t.missingMandatoryOptionValue(e)}))}))}_checkForConflictingLocalOptions(){const t=this.options.filter((t=>{const e=t.attributeName();return void 0!==this.getOptionValue(e)&&"default"!==this.getOptionValueSource(e)}));t.filter((t=>t.conflictsWith.length>0)).forEach((e=>{const r=t.find((t=>e.conflictsWith.includes(t.attributeName())));r&&this._conflictingOption(e,r)}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((t=>{t._checkForConflictingLocalOptions()}))}parseOptions(t){const e=[],r=[];let n=e;function i(t){return t.length>1&&"-"===t[0]}const s=t=>!!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(t)&&!this._getCommandAndAncestors().some((t=>t.options.map((t=>t.short)).some((t=>/^-\d$/.test(t)))));let o=null,a=null,l=0;for(;l<t.length||a;){const u=a??t[l++];if(a=null,"--"===u){n===r&&n.push(u),n.push(...t.slice(l));break}if(!o||i(u)&&!s(u)){if(o=null,i(u)){const e=this._findOption(u);if(e){if(e.required){const r=t[l++];void 0===r&&this.optionMissingArgument(e),this.emit(`option:${e.name()}`,r)}else if(e.optional){let r=null;l<t.length&&(!i(t[l])||s(t[l]))&&(r=t[l++]),this.emit(`option:${e.name()}`,r)}else this.emit(`option:${e.name()}`);o=e.variadic?e:null;continue}}if(u.length>2&&"-"===u[0]&&"-"!==u[1]){const t=this._findOption(`-${u[1]}`);if(t){t.required||t.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${t.name()}`,u.slice(2)):(this.emit(`option:${t.name()}`),a=`-${u.slice(2)}`);continue}}if(/^--[^=]+=/.test(u)){const t=u.indexOf("="),e=this._findOption(u.slice(0,t));if(e&&(e.required||e.optional)){this.emit(`option:${e.name()}`,u.slice(t+1));continue}}if(n!==e||!i(u)||0===this.commands.length&&s(u)||(n=r),(this._enablePositionalOptions||this._passThroughOptions)&&0===e.length&&0===r.length){if(this._findCommand(u)){e.push(u),r.push(...t.slice(l));break}if(this._getHelpCommand()&&u===this._getHelpCommand().name()){e.push(u,...t.slice(l));break}if(this._defaultCommandName){r.push(u,...t.slice(l));break}}if(this._passThroughOptions){n.push(u,...t.slice(l));break}n.push(u)}else this.emit(`option:${o.name()}`,u)}return{operands:e,unknown:r}}opts(){if(this._storeOptionsAsProperties){const t={},e=this.options.length;for(let r=0;r<e;r++){const e=this.options[r].attributeName();t[e]=e===this._versionOptionName?this._version:this[e]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((t,e)=>Object.assign(t,e.opts())),{})}error(t,e){this._outputConfiguration.outputError(`${t}\n`,this._outputConfiguration.writeErr),"string"==typeof this._showHelpAfterError?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr("\n"),this.outputHelp({error:!0}));const r=e||{},n=r.exitCode||1,i=r.code||"commander.error";this._exit(n,i,t)}_parseOptionsEnv(){this.options.forEach((t=>{if(t.envVar&&t.envVar in a.env){const e=t.attributeName();(void 0===this.getOptionValue(e)||["default","config","env"].includes(this.getOptionValueSource(e)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,a.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}}))}_parseOptionsImplied(){const t=new p(this.options),e=t=>void 0!==this.getOptionValue(t)&&!["default","implied"].includes(this.getOptionValueSource(t));this.options.filter((r=>void 0!==r.implied&&e(r.attributeName())&&t.valueFromOption(this.getOptionValue(r.attributeName()),r))).forEach((t=>{Object.keys(t.implied).filter((t=>!e(t))).forEach((e=>{this.setOptionValueWithSource(e,t.implied[e],"implied")}))}))}missingArgument(t){const e=`error: missing required argument '${t}'`;this.error(e,{code:"commander.missingArgument"})}optionMissingArgument(t){const e=`error: option '${t.flags}' argument missing`;this.error(e,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){const e=`error: required option '${t.flags}' not specified`;this.error(e,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,e){const r=t=>{const e=t.attributeName(),r=this.getOptionValue(e),n=this.options.find((t=>t.negate&&e===t.attributeName())),i=this.options.find((t=>!t.negate&&e===t.attributeName()));return n&&(void 0===n.presetArg&&!1===r||void 0!==n.presetArg&&r===n.presetArg)?n:i||t},n=t=>{const e=r(t),n=e.attributeName();return"env"===this.getOptionValueSource(n)?`environment variable '${e.envVar}'`:`option '${e.flags}'`},i=`error: ${n(t)} cannot be used with ${n(e)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let e="";if(t.startsWith("--")&&this._showSuggestionAfterError){let r=[],n=this;do{const t=n.createHelp().visibleOptions(n).filter((t=>t.long)).map((t=>t.long));r=r.concat(t),n=n.parent}while(n&&!n._enablePositionalOptions);e=g(t,r)}const r=`error: unknown option '${t}'${e}`;this.error(r,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;const e=this.registeredArguments.length,r=1===e?"":"s",n=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${e} argument${r} but got ${t.length}.`;this.error(n,{code:"commander.excessArguments"})}unknownCommand(){const t=this.args[0];let e="";if(this._showSuggestionAfterError){const r=[];this.createHelp().visibleCommands(this).forEach((t=>{r.push(t.name()),t.alias()&&r.push(t.alias())})),e=g(t,r)}const r=`error: unknown command '${t}'${e}`;this.error(r,{code:"commander.unknownCommand"})}version(t,e,r){if(void 0===t)return this._version;this._version=t,e=e||"-V, --version",r=r||"output the version number";const n=this.createOption(e,r);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),(()=>{this._outputConfiguration.writeOut(`${t}\n`),this._exit(0,"commander.version",t)})),this}description(t,e){return void 0===t&&void 0===e?this._description:(this._description=t,e&&(this._argsDescription=e),this)}summary(t){return void 0===t?this._summary:(this._summary=t,this)}alias(t){if(void 0===t)return this._aliases[0];let e=this;if(0!==this.commands.length&&this.commands[this.commands.length-1]._executableHandler&&(e=this.commands[this.commands.length-1]),t===e._name)throw new Error("Command alias can't be the same as its name");const r=this.parent?._findCommand(t);if(r){const e=[r.name()].concat(r.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${e}'`)}return e._aliases.push(t),this}aliases(t){return void 0===t?this._aliases:(t.forEach((t=>this.alias(t))),this)}usage(t){if(void 0===t){if(this._usage)return this._usage;const t=this.registeredArguments.map((t=>u(t)));return[].concat(this.options.length||null!==this._helpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=t,this}name(t){return void 0===t?this._name:(this._name=t,this)}helpGroup(t){return void 0===t?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return void 0===t?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return void 0===t?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=s.basename(t,s.extname(t)),this}executableDir(t){return void 0===t?this._executableDir:(this._executableDir=t,this)}helpInformation(t){const e=this.createHelp(),r=this._getOutputContext(t);e.prepareContext({error:r.error,helpWidth:r.helpWidth,outputHasColors:r.hasColors});const n=e.formatHelp(this,e);return r.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){const e=!!(t=t||{}).error;let r,n,i;e?(r=t=>this._outputConfiguration.writeErr(t),n=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(r=t=>this._outputConfiguration.writeOut(t),n=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth());return{error:e,write:t=>(n||(t=this._outputConfiguration.stripColor(t)),r(t)),hasColors:n,helpWidth:i}}outputHelp(t){let e;"function"==typeof t&&(e=t,t=void 0);const r=this._getOutputContext(t),n={error:r.error,write:r.write,command:this};this._getCommandAndAncestors().reverse().forEach((t=>t.emit("beforeAllHelp",n))),this.emit("beforeHelp",n);let i=this.helpInformation({error:r.error});if(e&&(i=e(i),"string"!=typeof i&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");r.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach((t=>t.emit("afterAllHelp",n)))}helpOption(t,e){return"boolean"==typeof t?(t?(null===this._helpOption&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",e??"display help for command"),(t||e)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return void 0===this._helpOption&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let e=Number(a.exitCode??0);0===e&&t&&"function"!=typeof t&&t.error&&(e=1),this._exit(e,"commander.help","(outputHelp)")}addHelpText(t,e){const r=["beforeAll","before","after","afterAll"];if(!r.includes(t))throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${r.join("', '")}'`);const n=`${t}Help`;return this.on(n,(t=>{let r;r="function"==typeof e?e({error:t.error,command:t.command}):e,r&&t.write(`${r}\n`)})),this}_outputHelpIfRequested(t){const e=this._getHelpOption();e&&t.find((t=>e.is(t)))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}}function m(t){return t.map((t=>{if(!t.startsWith("--inspect"))return t;let e,r,n="127.0.0.1",i="9229";return null!==(r=t.match(/^(--inspect(-brk)?)$/))?e=r[1]:null!==(r=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))?(e=r[1],/^\d+$/.test(r[3])?i=r[3]:n=r[3]):null!==(r=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(e=r[1],n=r[3],i=r[4]),e&&"0"!==i?`${e}=${n}:${parseInt(i)+1}`:t}))}function y(){return!a.env.NO_COLOR&&"0"!==a.env.FORCE_COLOR&&"false"!==a.env.FORCE_COLOR&&(!(!a.env.FORCE_COLOR&&void 0===a.env.CLICOLOR_FORCE)||void 0)}e.Command=b,e.useColor=y},3666(t,e){class r extends Error{constructor(t,e,r){super(r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=e,this.exitCode=t,this.nestedError=void 0}}e.CommanderError=r,e.InvalidArgumentError=class extends r{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}},3693(t,e,r){const{humanReadableArgName:n}=r(9297);function i(t){return t.replace(/\x1b\[\d*(;\d*)*m/g,"")}e.Help=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){const e=t.commands.filter((t=>!t._hidden)),r=t._getHelpCommand();return r&&!r._hidden&&e.push(r),this.sortSubcommands&&e.sort(((t,e)=>t.name().localeCompare(e.name()))),e}compareOptions(t,e){const r=t=>t.short?t.short.replace(/^-/,""):t.long.replace(/^--/,"");return r(t).localeCompare(r(e))}visibleOptions(t){const e=t.options.filter((t=>!t.hidden)),r=t._getHelpOption();if(r&&!r.hidden){const n=r.short&&t._findOption(r.short),i=r.long&&t._findOption(r.long);n||i?r.long&&!i?e.push(t.createOption(r.long,r.description)):r.short&&!n&&e.push(t.createOption(r.short,r.description)):e.push(r)}return this.sortOptions&&e.sort(this.compareOptions),e}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];const e=[];for(let r=t.parent;r;r=r.parent){const t=r.options.filter((t=>!t.hidden));e.push(...t)}return this.sortOptions&&e.sort(this.compareOptions),e}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach((e=>{e.description=e.description||t._argsDescription[e.name()]||""})),t.registeredArguments.find((t=>t.description))?t.registeredArguments:[]}subcommandTerm(t){const e=t.registeredArguments.map((t=>n(t))).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(e?" "+e:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,e){return e.visibleCommands(t).reduce(((t,r)=>Math.max(t,this.displayWidth(e.styleSubcommandTerm(e.subcommandTerm(r))))),0)}longestOptionTermLength(t,e){return e.visibleOptions(t).reduce(((t,r)=>Math.max(t,this.displayWidth(e.styleOptionTerm(e.optionTerm(r))))),0)}longestGlobalOptionTermLength(t,e){return e.visibleGlobalOptions(t).reduce(((t,r)=>Math.max(t,this.displayWidth(e.styleOptionTerm(e.optionTerm(r))))),0)}longestArgumentTermLength(t,e){return e.visibleArguments(t).reduce(((t,r)=>Math.max(t,this.displayWidth(e.styleArgumentTerm(e.argumentTerm(r))))),0)}commandUsage(t){let e=t._name;t._aliases[0]&&(e=e+"|"+t._aliases[0]);let r="";for(let e=t.parent;e;e=e.parent)r=e.name()+" "+r;return r+e+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){const e=[];if(t.argChoices&&e.push(`choices: ${t.argChoices.map((t=>JSON.stringify(t))).join(", ")}`),void 0!==t.defaultValue){(t.required||t.optional||t.isBoolean()&&"boolean"==typeof t.defaultValue)&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`)}if(void 0!==t.presetArg&&t.optional&&e.push(`preset: ${JSON.stringify(t.presetArg)}`),void 0!==t.envVar&&e.push(`env: ${t.envVar}`),e.length>0){const r=`(${e.join(", ")})`;return t.description?`${t.description} ${r}`:r}return t.description}argumentDescription(t){const e=[];if(t.argChoices&&e.push(`choices: ${t.argChoices.map((t=>JSON.stringify(t))).join(", ")}`),void 0!==t.defaultValue&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),e.length>0){const r=`(${e.join(", ")})`;return t.description?`${t.description} ${r}`:r}return t.description}formatItemList(t,e,r){return 0===e.length?[]:[r.styleTitle(t),...e,""]}groupItems(t,e,r){const n=new Map;return t.forEach((t=>{const e=r(t);n.has(e)||n.set(e,[])})),e.forEach((t=>{const e=r(t);n.has(e)||n.set(e,[]),n.get(e).push(t)})),n}formatHelp(t,e){const r=e.padWidth(t,e),n=e.helpWidth??80;function i(t,n){return e.formatItem(t,r,n,e)}let s=[`${e.styleTitle("Usage:")} ${e.styleUsage(e.commandUsage(t))}`,""];const o=e.commandDescription(t);o.length>0&&(s=s.concat([e.boxWrap(e.styleCommandDescription(o),n),""]));const a=e.visibleArguments(t).map((t=>i(e.styleArgumentTerm(e.argumentTerm(t)),e.styleArgumentDescription(e.argumentDescription(t)))));s=s.concat(this.formatItemList("Arguments:",a,e));if(this.groupItems(t.options,e.visibleOptions(t),(t=>t.helpGroupHeading??"Options:")).forEach(((t,r)=>{const n=t.map((t=>i(e.styleOptionTerm(e.optionTerm(t)),e.styleOptionDescription(e.optionDescription(t)))));s=s.concat(this.formatItemList(r,n,e))})),e.showGlobalOptions){const r=e.visibleGlobalOptions(t).map((t=>i(e.styleOptionTerm(e.optionTerm(t)),e.styleOptionDescription(e.optionDescription(t)))));s=s.concat(this.formatItemList("Global Options:",r,e))}return this.groupItems(t.commands,e.visibleCommands(t),(t=>t.helpGroup()||"Commands:")).forEach(((t,r)=>{const n=t.map((t=>i(e.styleSubcommandTerm(e.subcommandTerm(t)),e.styleSubcommandDescription(e.subcommandDescription(t)))));s=s.concat(this.formatItemList(r,n,e))})),s.join("\n")}displayWidth(t){return i(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map((t=>"[options]"===t?this.styleOptionText(t):"[command]"===t?this.styleSubcommandText(t):"["===t[0]||"<"===t[0]?this.styleArgumentText(t):this.styleCommandText(t))).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map((t=>"[options]"===t?this.styleOptionText(t):"["===t[0]||"<"===t[0]?this.styleArgumentText(t):this.styleSubcommandText(t))).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,e){return Math.max(e.longestOptionTermLength(t,e),e.longestGlobalOptionTermLength(t,e),e.longestSubcommandTermLength(t,e),e.longestArgumentTermLength(t,e))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,e,r,n){const i=" ".repeat(2);if(!r)return i+t;const s=t.padEnd(e+t.length-n.displayWidth(t)),o=(this.helpWidth??80)-e-2-2;let a;if(o<this.minWidthToWrap||n.preformatted(r))a=r;else{a=n.boxWrap(r,o).replace(/\n/g,"\n"+" ".repeat(e+2))}return i+s+" ".repeat(2)+a.replace(/\n/g,`\n${i}`)}boxWrap(t,e){if(e<this.minWidthToWrap)return t;const r=t.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,i=[];return r.forEach((t=>{const r=t.match(n);if(null===r)return void i.push("");let s=[r.shift()],o=this.displayWidth(s[0]);r.forEach((t=>{const r=this.displayWidth(t);if(o+r<=e)return s.push(t),void(o+=r);i.push(s.join(""));const n=t.trimStart();s=[n],o=this.displayWidth(n)})),i.push(s.join(""))})),i.join("\n")}},e.stripColor=i},5019(t,e,r){const{InvalidArgumentError:n}=r(3666);function i(t){return t.split("-").reduce(((t,e)=>t+e[0].toUpperCase()+e.slice(1)))}e.Option=class{constructor(t,e){this.flags=t,this.description=e||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;const r=function(t){let e,r;const n=/^-[^-]$/,i=/^--[^-]/,s=t.split(/[ |,]+/).concat("guard");n.test(s[0])&&(e=s.shift());i.test(s[0])&&(r=s.shift());!e&&n.test(s[0])&&(e=s.shift());!e&&i.test(s[0])&&(e=r,r=s.shift());if(s[0].startsWith("-")){const e=s[0],r=`option creation failed due to '${e}' in option flags '${t}'`;if(/^-[^-][^-]/.test(e))throw new Error(`${r}\n- a short flag is a single dash and a single character\n - either use a single dash and a single character (for a short flag)\n - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(n.test(e))throw new Error(`${r}\n- too many short flags`);if(i.test(e))throw new Error(`${r}\n- too many long flags`);throw new Error(`${r}\n- unrecognised flag format`)}if(void 0===e&&void 0===r)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:e,longFlag:r}}(t);this.short=r.shortFlag,this.long=r.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let e=t;return"string"==typeof t&&(e={[t]:!0}),this.implied=Object.assign(this.implied||{},e),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,e){return e!==this.defaultValue&&Array.isArray(e)?(e.push(t),e):[t]}choices(t){return this.argChoices=t.slice(),this.parseArg=(t,e)=>{if(!this.argChoices.includes(t))throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(t,e):t},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?i(this.name().replace(/^no-/,"")):i(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},e.DualOptions=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach((t=>{t.negate?this.negativeOptions.set(t.attributeName(),t):this.positiveOptions.set(t.attributeName(),t)})),this.negativeOptions.forEach(((t,e)=>{this.positiveOptions.has(e)&&this.dualOptions.add(e)}))}valueFromOption(t,e){const r=e.attributeName();if(!this.dualOptions.has(r))return!0;const n=this.negativeOptions.get(r).presetArg,i=void 0!==n&&n;return e.negate===(i===t)}}},7369(t,e){e.suggestSimilar=function(t,e){if(!e||0===e.length)return"";e=Array.from(new Set(e));const r=t.startsWith("--");r&&(t=t.slice(2),e=e.map((t=>t.slice(2))));let n=[],i=3;return e.forEach((e=>{if(e.length<=1)return;const r=function(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);const r=[];for(let e=0;e<=t.length;e++)r[e]=[e];for(let t=0;t<=e.length;t++)r[0][t]=t;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;s=t[i-1]===e[n-1]?0:1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}(t,e),s=Math.max(t.length,e.length);(s-r)/s>.4&&(r<i?(i=r,n=[e]):r===i&&n.push(e))})),n.sort(((t,e)=>t.localeCompare(e))),r&&(n=n.map((t=>`--${t}`))),n.length>1?`\n(Did you mean one of ${n.join(", ")}?)`:1===n.length?`\n(Did you mean ${n[0]}?)`:""}},8576(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.PathScurry=e.Path=e.PathScurryDarwin=e.PathScurryPosix=e.PathScurryWin32=e.PathScurryBase=e.PathPosix=e.PathWin32=e.PathBase=e.ChildrenCache=e.ResolveCache=void 0;const o=r(9950),a=r(6760),l=r(3136),u=r(9896),h=s(r(3024)),c=u.realpathSync.native,d=r(1455),f=r(5313),p={lstatSync:u.lstatSync,readdir:u.readdir,readdirSync:u.readdirSync,readlinkSync:u.readlinkSync,realpathSync:c,promises:{lstat:d.lstat,readdir:d.readdir,readlink:d.readlink,realpath:d.realpath}},g=t=>t&&t!==p&&t!==h?{...p,...t,promises:{...p.promises,...t.promises||{}}}:p,b=/^\\\\\?\\([a-z]:)\\?$/i,m=/[\\\/]/,y=10,w=15,_=-16,v=128,S=256,E=512,x=t=>t.isFile()?8:t.isDirectory()?4:t.isSymbolicLink()?y:t.isCharacterDevice()?2:t.isBlockDevice()?6:t.isSocket()?12:t.isFIFO()?1:0,A=new Map,R=t=>{const e=A.get(t);if(e)return e;const r=t.normalize("NFKD");return A.set(t,r),r},O=new Map,T=t=>{const e=O.get(t);if(e)return e;const r=R(t.toLowerCase());return O.set(t,r),r};class k extends o.LRUCache{constructor(){super({max:256})}}e.ResolveCache=k;class M extends o.LRUCache{constructor(t=16384){super({maxSize:t,sizeCalculation:t=>t.length+1})}}e.ChildrenCache=M;const P=Symbol("PathScurry setAsCwd");class I{name;root;roots;parent;nocase;isCWD=!1;#M;#P;get dev(){return this.#P}#I;get mode(){return this.#I}#L;get nlink(){return this.#L}#D;get uid(){return this.#D}#C;get gid(){return this.#C}#N;get rdev(){return this.#N}#j;get blksize(){return this.#j}#F;get ino(){return this.#F}#$;get size(){return this.#$}#W;get blocks(){return this.#W}#B;get atimeMs(){return this.#B}#U;get mtimeMs(){return this.#U}#z;get ctimeMs(){return this.#z}#H;get birthtimeMs(){return this.#H}#G;get atime(){return this.#G}#V;get mtime(){return this.#V}#q;get ctime(){return this.#q}#Y;get birthtime(){return this.#Y}#K;#Z;#J;#Q;#X;#tt;#et;#rt;#nt;#it;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,e=0,r,n,i,s,o){this.name=t,this.#K=i?T(t):R(t),this.#et=1023&e,this.nocase=i,this.roots=n,this.root=r||this,this.#rt=s,this.#J=o.fullpath,this.#X=o.relative,this.#tt=o.relativePosix,this.parent=o.parent,this.parent?this.#M=this.parent.#M:this.#M=g(o.fs)}depth(){return void 0!==this.#Z?this.#Z:this.parent?this.#Z=this.parent.depth()+1:this.#Z=0}childrenCache(){return this.#rt}resolve(t){if(!t)return this;const e=this.getRootString(t),r=t.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#st(r):this.#st(r)}#st(t){let e=this;for(const r of t)e=e.child(r);return e}children(){const t=this.#rt.get(this);if(t)return t;const e=Object.assign([],{provisional:0});return this.#rt.set(this,e),this.#et&=-17,e}child(t,e){if(""===t||"."===t)return this;if(".."===t)return this.parent||this;const r=this.children(),n=this.nocase?T(t):R(t);for(const t of r)if(t.#K===n)return t;const i=this.parent?this.sep:"",s=this.#J?this.#J+i+t:void 0,o=this.newChild(t,0,{...e,parent:this,fullpath:s});return this.canReaddir()||(o.#et|=v),r.push(o),o}relative(){if(this.isCWD)return"";if(void 0!==this.#X)return this.#X;const t=this.name,e=this.parent;if(!e)return this.#X=this.name;const r=e.relative();return r+(r&&e.parent?this.sep:"")+t}relativePosix(){if("/"===this.sep)return this.relative();if(this.isCWD)return"";if(void 0!==this.#tt)return this.#tt;const t=this.name,e=this.parent;if(!e)return this.#tt=this.fullpathPosix();const r=e.relativePosix();return r+(r&&e.parent?"/":"")+t}fullpath(){if(void 0!==this.#J)return this.#J;const t=this.name,e=this.parent;if(!e)return this.#J=this.name;const r=e.fullpath()+(e.parent?this.sep:"")+t;return this.#J=r}fullpathPosix(){if(void 0!==this.#Q)return this.#Q;if("/"===this.sep)return this.#Q=this.fullpath();if(!this.parent){const t=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(t)?this.#Q=`//?/${t}`:this.#Q=t}const t=this.parent,e=t.fullpathPosix(),r=e+(e&&t.parent?"/":"")+this.name;return this.#Q=r}isUnknown(){return!(this.#et&w)}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#et&w)}isDirectory(){return 4==(this.#et&w)}isCharacterDevice(){return 2==(this.#et&w)}isBlockDevice(){return 6==(this.#et&w)}isFIFO(){return 1==(this.#et&w)}isSocket(){return 12==(this.#et&w)}isSymbolicLink(){return(this.#et&y)===y}lstatCached(){return 32&this.#et?this:void 0}readlinkCached(){return this.#nt}realpathCached(){return this.#it}readdirCached(){const t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#nt)return!0;if(!this.parent)return!1;const t=this.#et&w;return!(0!==t&&t!==y||this.#et&S||this.#et&v)}calledReaddir(){return!!(16&this.#et)}isENOENT(){return!!(this.#et&v)}isNamed(t){return this.nocase?this.#K===T(t):this.#K===R(t)}async readlink(){const t=this.#nt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=await this.#M.promises.readlink(this.fullpath()),e=(await this.parent.realpath())?.resolve(t);if(e)return this.#nt=e}catch(t){return void this.#ot(t.code)}}readlinkSync(){const t=this.#nt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=this.#M.readlinkSync(this.fullpath()),e=this.parent.realpathSync()?.resolve(t);if(e)return this.#nt=e}catch(t){return void this.#ot(t.code)}}#at(t){this.#et|=16;for(let e=t.provisional;e<t.length;e++){const r=t[e];r&&r.#lt()}}#lt(){this.#et&v||(this.#et=(this.#et|v)&_,this.#ut())}#ut(){const t=this.children();t.provisional=0;for(const e of t)e.#lt()}#ht(){this.#et|=E,this.#ct()}#ct(){if(64&this.#et)return;let t=this.#et;4==(t&w)&&(t&=_),this.#et=64|t,this.#ut()}#dt(t=""){"ENOTDIR"===t||"EPERM"===t?this.#ct():"ENOENT"===t?this.#lt():this.children().provisional=0}#ft(t=""){if("ENOTDIR"===t){this.parent.#ct()}else"ENOENT"===t&&this.#lt()}#ot(t=""){let e=this.#et;e|=S,"ENOENT"===t&&(e|=v),"EINVAL"!==t&&"UNKNOWN"!==t||(e&=_),this.#et=e,"ENOTDIR"===t&&this.parent&&this.parent.#ct()}#pt(t,e){return this.#gt(t,e)||this.#bt(t,e)}#bt(t,e){const r=x(t),n=this.newChild(t.name,r,{parent:this}),i=n.#et&w;return 4!==i&&i!==y&&0!==i&&(n.#et|=64),e.unshift(n),e.provisional++,n}#gt(t,e){for(let r=e.provisional;r<e.length;r++){const n=e[r];if((this.nocase?T(t.name):R(t.name))===n.#K)return this.#mt(t,n,r,e)}}#mt(t,e,r,n){const i=e.name;return e.#et=e.#et&_|x(t),i!==t.name&&(e.name=t.name),r!==n.provisional&&(r===n.length-1?n.pop():n.splice(r,1),n.unshift(e)),n.provisional++,e}async lstat(){if(!(this.#et&v))try{return this.#yt(await this.#M.promises.lstat(this.fullpath())),this}catch(t){this.#ft(t.code)}}lstatSync(){if(!(this.#et&v))try{return this.#yt(this.#M.lstatSync(this.fullpath())),this}catch(t){this.#ft(t.code)}}#yt(t){const{atime:e,atimeMs:r,birthtime:n,birthtimeMs:i,blksize:s,blocks:o,ctime:a,ctimeMs:l,dev:u,gid:h,ino:c,mode:d,mtime:f,mtimeMs:p,nlink:g,rdev:b,size:m,uid:w}=t;this.#G=e,this.#B=r,this.#Y=n,this.#H=i,this.#j=s,this.#W=o,this.#q=a,this.#z=l,this.#P=u,this.#C=h,this.#F=c,this.#I=d,this.#V=f,this.#U=p,this.#L=g,this.#N=b,this.#$=m,this.#D=w;const v=x(t);this.#et=this.#et&_|v|32,0!==v&&4!==v&&v!==y&&(this.#et|=64)}#wt=[];#_t=!1;#vt(t){this.#_t=!1;const e=this.#wt.slice();this.#wt.length=0,e.forEach((e=>e(null,t)))}readdirCB(t,e=!1){if(!this.canReaddir())return void(e?t(null,[]):queueMicrotask((()=>t(null,[]))));const r=this.children();if(this.calledReaddir()){const n=r.slice(0,r.provisional);return void(e?t(null,n):queueMicrotask((()=>t(null,n))))}if(this.#wt.push(t),this.#_t)return;this.#_t=!0;const n=this.fullpath();this.#M.readdir(n,{withFileTypes:!0},((t,e)=>{if(t)this.#dt(t.code),r.provisional=0;else{for(const t of e)this.#pt(t,r);this.#at(r)}this.#vt(r.slice(0,r.provisional))}))}#St;async readdir(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();if(this.#St)await this.#St;else{let r=()=>{};this.#St=new Promise((t=>r=t));try{for(const r of await this.#M.promises.readdir(e,{withFileTypes:!0}))this.#pt(r,t);this.#at(t)}catch(e){this.#dt(e.code),t.provisional=0}this.#St=void 0,r()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();try{for(const r of this.#M.readdirSync(e,{withFileTypes:!0}))this.#pt(r,t);this.#at(t)}catch(e){this.#dt(e.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(704&this.#et)return!1;const t=w&this.#et;return 0===t||4===t||t===y}shouldWalk(t,e){return!(4&~this.#et)&&!(704&this.#et)&&!t.has(this)&&(!e||e(this))}async realpath(){if(this.#it)return this.#it;if(!(896&this.#et))try{const t=await this.#M.promises.realpath(this.fullpath());return this.#it=this.resolve(t)}catch(t){this.#ht()}}realpathSync(){if(this.#it)return this.#it;if(!(896&this.#et))try{const t=this.#M.realpathSync(this.fullpath());return this.#it=this.resolve(t)}catch(t){this.#ht()}}[P](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;const e=new Set([]);let r=[],n=this;for(;n&&n.parent;)e.add(n),n.#X=r.join(this.sep),n.#tt=r.join("/"),n=n.parent,r.push("..");for(n=t;n&&n.parent&&!e.has(n);)n.#X=void 0,n.#tt=void 0,n=n.parent}}e.PathBase=I;class L extends I{sep="\\";splitSep=m;constructor(t,e=0,r,n,i,s,o){super(t,e,r,n,i,s,o)}newChild(t,e=0,r={}){return new L(t,e,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(t){return a.win32.parse(t).root}getRoot(t){if((t=(t=>t.replace(/\//g,"\\").replace(b,"$1\\"))(t.toUpperCase()))===this.root.name)return this.root;for(const[e,r]of Object.entries(this.roots))if(this.sameRoot(t,e))return this.roots[t]=r;return this.roots[t]=new N(t,this).root}sameRoot(t,e=this.root.name){return(t=t.toUpperCase().replace(/\//g,"\\").replace(b,"$1\\"))===e}}e.PathWin32=L;class D extends I{splitSep="/";sep="/";constructor(t,e=0,r,n,i,s,o){super(t,e,r,n,i,s,o)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,e=0,r={}){return new D(t,e,this.root,this.roots,this.nocase,this.childrenCache(),r)}}e.PathPosix=D;class C{root;rootPath;roots;cwd;#Et;#xt;#rt;nocase;#M;constructor(t=process.cwd(),e,r,{nocase:n,childrenCacheSize:i=16384,fs:s=p}={}){this.#M=g(s),(t instanceof URL||t.startsWith("file://"))&&(t=(0,l.fileURLToPath)(t));const o=e.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#Et=new k,this.#xt=new k,this.#rt=new M(i);const a=o.substring(this.rootPath.length).split(r);if(1!==a.length||a[0]||a.pop(),void 0===n)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#M),this.roots[this.rootPath]=this.root;let u=this.root,h=a.length-1;const c=e.sep;let d=this.rootPath,f=!1;for(const t of a){const e=h--;u=u.child(t,{relative:new Array(e).fill("..").join(c),relativePosix:new Array(e).fill("..").join("/"),fullpath:d+=(f?"":c)+t}),f=!0}this.cwd=u}depth(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#rt}resolve(...t){let e="";for(let r=t.length-1;r>=0;r--){const n=t[r];if(n&&"."!==n&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}const r=this.#Et.get(e);if(void 0!==r)return r;const n=this.cwd.resolve(e).fullpath();return this.#Et.set(e,n),n}resolvePosix(...t){let e="";for(let r=t.length-1;r>=0;r--){const n=t[r];if(n&&"."!==n&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}const r=this.#xt.get(e);if(void 0!==r)return r;const n=this.cwd.resolve(e).fullpathPosix();return this.#xt.set(e,n),n}relative(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r}=e;if(t.canReaddir()){const e=await t.readdir();return r?e:e.map((t=>t.name))}return[]}readdirSync(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0}=e;return t.canReaddir()?r?t.readdirSync():t.readdirSync().map((t=>t.name)):[]}async lstat(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t.withFileTypes,t=this.cwd);const r=await t.readlink();return e?r:r?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t.withFileTypes,t=this.cwd);const r=t.readlinkSync();return e?r:r?.fullpath()}async realpath(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t.withFileTypes,t=this.cwd);const r=await t.realpath();return e?r:r?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t.withFileTypes,t=this.cwd);const r=t.realpathSync();return e?r:r?.fullpath()}async walk(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:s}=e,o=[];i&&!i(t)||o.push(r?t:t.fullpath());const a=new Set,l=(t,e)=>{a.add(t),t.readdirCB(((t,u)=>{if(t)return e(t);let h=u.length;if(!h)return e();const c=()=>{0==--h&&e()};for(const t of u)i&&!i(t)||o.push(r?t:t.fullpath()),n&&t.isSymbolicLink()?t.realpath().then((t=>t?.isUnknown()?t.lstat():t)).then((t=>t?.shouldWalk(a,s)?l(t,c):c())):t.shouldWalk(a,s)?l(t,c):c()}),!0)},u=t;return new Promise(((t,e)=>{l(u,(r=>{if(r)return e(r);t(o)}))}))}walkSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:s}=e,o=[];i&&!i(t)||o.push(r?t:t.fullpath());const a=new Set([t]);for(const t of a){const e=t.readdirSync();for(const t of e){i&&!i(t)||o.push(r?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,s)&&a.add(e)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,e={}){return"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd),this.stream(t,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:s}=e;i&&!i(t)||(yield r?t:t.fullpath());const o=new Set([t]);for(const t of o){const e=t.readdirSync();for(const t of e){i&&!i(t)||(yield r?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(o,s)&&o.add(e)}}}stream(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:s}=e,o=new f.Minipass({objectMode:!0});i&&!i(t)||o.write(r?t:t.fullpath());const a=new Set,l=[t];let u=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===u&&o.end());u++,a.add(e);const c=(e,f,p=!1)=>{if(e)return o.emit("error",e);if(n&&!p){const t=[];for(const e of f)e.isSymbolicLink()&&t.push(e.realpath().then((t=>t?.isUnknown()?t.lstat():t)));if(t.length)return void Promise.all(t).then((()=>c(null,f,!0)))}for(const e of f)!e||i&&!i(e)||o.write(r?e:e.fullpath())||(t=!0);u--;for(const t of f){const e=t.realpathCached()||t;e.shouldWalk(a,s)&&l.push(e)}t&&!o.flowing?o.once("drain",h):d||h()};let d=!0;e.readdirCB(c,!0),d=!1}};return h(),o}streamSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof I||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:s}=e,o=new f.Minipass({objectMode:!0}),a=new Set;i&&!i(t)||o.write(r?t:t.fullpath());const l=[t];let u=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===u&&o.end());u++,a.add(e);const h=e.readdirSync();for(const e of h)i&&!i(e)||o.write(r?e:e.fullpath())||(t=!0);u--;for(const t of h){let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,s)&&l.push(e)}}t&&!o.flowing&&o.once("drain",h)};return h(),o}chdir(t=this.cwd){const e=this.cwd;this.cwd="string"==typeof t?this.cwd.resolve(t):t,this.cwd[P](e)}}e.PathScurryBase=C;class N extends C{sep="\\";constructor(t=process.cwd(),e={}){const{nocase:r=!0}=e;super(t,a.win32,"\\",{...e,nocase:r}),this.nocase=r;for(let t=this.cwd;t;t=t.parent)t.nocase=this.nocase}parseRootPath(t){return a.win32.parse(t).root.toUpperCase()}newRoot(t){return new L(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}}e.PathScurryWin32=N;class j extends C{sep="/";constructor(t=process.cwd(),e={}){const{nocase:r=!1}=e;super(t,a.posix,"/",{...e,nocase:r}),this.nocase=r}parseRootPath(t){return"/"}newRoot(t){return new D(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}}e.PathScurryPosix=j;class F extends j{constructor(t=process.cwd(),e={}){const{nocase:r=!0}=e;super(t,{...e,nocase:r})}}e.PathScurryDarwin=F,e.Path="win32"===process.platform?L:D,e.PathScurry="win32"===process.platform?N:"darwin"===process.platform?F:j},9950(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n=new Set,i="object"==typeof process&&process?process:{},s=(t,e,r,n)=>{"function"==typeof i.emitWarning?i.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)};let o=globalThis.AbortController,a=globalThis.AbortSignal;if(void 0===o){a=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},o=class{constructor(){e()}signal=new a;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==i.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,s("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const l=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),u=t=>l(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?h:null:null;class h extends Array{constructor(t){super(t),this.fill(0)}}class c{heap;length;static#At=!1;static create(t){const e=u(t);if(!e)return[];c.#At=!0;const r=new c(t,e);return c.#At=!1,r}constructor(t,e){if(!c.#At)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class d{#Rt;#Ot;#Tt;#kt;#Mt;#Pt;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#$;#It;#Lt;#Dt;#Ct;#Nt;#jt;#Ft;#$t;#Wt;#Bt;#Ut;#zt;#Ht;#Gt;#Vt;#qt;static unsafeExposeInternals(t){return{starts:t.#zt,ttls:t.#Ht,sizes:t.#Ut,keyMap:t.#Lt,keyList:t.#Dt,valList:t.#Ct,next:t.#Nt,prev:t.#jt,get head(){return t.#Ft},get tail(){return t.#$t},free:t.#Wt,isBackgroundFetch:e=>t.#Yt(e),backgroundFetch:(e,r,n,i)=>t.#Kt(e,r,n,i),moveToTail:e=>t.#Zt(e),indexes:e=>t.#Jt(e),rindexes:e=>t.#Qt(e),isStale:e=>t.#Xt(e)}}get max(){return this.#Rt}get maxSize(){return this.#Ot}get calculatedSize(){return this.#It}get size(){return this.#$}get fetchMethod(){return this.#Mt}get memoMethod(){return this.#Pt}get dispose(){return this.#Tt}get disposeAfter(){return this.#kt}constructor(t){const{max:e=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:h,allowStale:f,dispose:p,disposeAfter:g,noDisposeOnSet:b,noUpdateTTL:m,maxSize:y=0,maxEntrySize:w=0,sizeCalculation:_,fetchMethod:v,memoMethod:S,noDeleteOnFetchRejection:E,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:R,ignoreFetchAbort:O}=t;if(0!==e&&!l(e))throw new TypeError("max option must be a nonnegative integer");const T=e?u(e):Array;if(!T)throw new Error("invalid max value: "+e);if(this.#Rt=e,this.#Ot=y,this.maxEntrySize=w||this.#Ot,this.sizeCalculation=_,this.sizeCalculation){if(!this.#Ot&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==S&&"function"!=typeof S)throw new TypeError("memoMethod must be a function if defined");if(this.#Pt=S,void 0!==v&&"function"!=typeof v)throw new TypeError("fetchMethod must be a function if specified");if(this.#Mt=v,this.#Vt=!!v,this.#Lt=new Map,this.#Dt=new Array(e).fill(void 0),this.#Ct=new Array(e).fill(void 0),this.#Nt=new T(e),this.#jt=new T(e),this.#Ft=0,this.#$t=0,this.#Wt=c.create(e),this.#$=0,this.#It=0,"function"==typeof p&&(this.#Tt=p),"function"==typeof g?(this.#kt=g,this.#Bt=[]):(this.#kt=void 0,this.#Bt=void 0),this.#Gt=!!this.#Tt,this.#qt=!!this.#kt,this.noDisposeOnSet=!!b,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!E,this.allowStaleOnFetchRejection=!!A,this.allowStaleOnFetchAbort=!!R,this.ignoreFetchAbort=!!O,0!==this.maxEntrySize){if(0!==this.#Ot&&!l(this.#Ot))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#te()}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!h,this.ttlResolution=l(i)||0===i?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#ee()}if(0===this.#Rt&&0===this.ttl&&0===this.#Ot)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#Rt&&!this.#Ot){const t="LRU_CACHE_UNBOUNDED";if((t=>!n.has(t))(t)){n.add(t);s("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,d)}}}getRemainingTTL(t){return this.#Lt.has(t)?1/0:0}#ee(){const t=new h(this.#Rt),e=new h(this.#Rt);this.#Ht=t,this.#zt=e,this.#re=(n,i,s=r.now())=>{if(e[n]=0!==i?s:0,t[n]=i,0!==i&&this.ttlAutopurge){const t=setTimeout((()=>{this.#Xt(n)&&this.#ne(this.#Dt[n],"expire")}),i+1);t.unref&&t.unref()}},this.#ie=n=>{e[n]=0!==t[n]?r.now():0},this.#se=(r,s)=>{if(t[s]){const o=t[s],a=e[s];if(!o||!a)return;r.ttl=o,r.start=a,r.now=n||i();const l=r.now-a;r.remainingTTL=o-l}};let n=0;const i=()=>{const t=r.now();if(this.ttlResolution>0){n=t;const e=setTimeout((()=>n=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=r=>{const s=this.#Lt.get(r);if(void 0===s)return 0;const o=t[s],a=e[s];if(!o||!a)return 1/0;return o-((n||i())-a)},this.#Xt=r=>{const s=e[r],o=t[r];return!!o&&!!s&&(n||i())-s>o}}#ie=()=>{};#se=()=>{};#re=()=>{};#Xt=()=>!1;#te(){const t=new h(this.#Rt);this.#It=0,this.#Ut=t,this.#oe=e=>{this.#It-=t[e],t[e]=0},this.#ae=(t,e,r,n)=>{if(this.#Yt(e))return 0;if(!l(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(e,t),!l(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.#le=(e,r,n)=>{if(t[e]=r,this.#Ot){const r=this.#Ot-t[e];for(;this.#It>r;)this.#ue(!0)}this.#It+=t[e],n&&(n.entrySize=r,n.totalCalculatedSize=this.#It)}}#oe=t=>{};#le=(t,e,r)=>{};#ae=(t,e,r,n)=>{if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#Jt({allowStale:t=this.allowStale}={}){if(this.#$)for(let e=this.#$t;this.#he(e)&&(!t&&this.#Xt(e)||(yield e),e!==this.#Ft);)e=this.#jt[e]}*#Qt({allowStale:t=this.allowStale}={}){if(this.#$)for(let e=this.#Ft;this.#he(e)&&(!t&&this.#Xt(e)||(yield e),e!==this.#$t);)e=this.#Nt[e]}#he(t){return void 0!==t&&this.#Lt.get(this.#Dt[t])===t}*entries(){for(const t of this.#Jt())void 0===this.#Ct[t]||void 0===this.#Dt[t]||this.#Yt(this.#Ct[t])||(yield[this.#Dt[t],this.#Ct[t]])}*rentries(){for(const t of this.#Qt())void 0===this.#Ct[t]||void 0===this.#Dt[t]||this.#Yt(this.#Ct[t])||(yield[this.#Dt[t],this.#Ct[t]])}*keys(){for(const t of this.#Jt()){const e=this.#Dt[t];void 0===e||this.#Yt(this.#Ct[t])||(yield e)}}*rkeys(){for(const t of this.#Qt()){const e=this.#Dt[t];void 0===e||this.#Yt(this.#Ct[t])||(yield e)}}*values(){for(const t of this.#Jt()){void 0===this.#Ct[t]||this.#Yt(this.#Ct[t])||(yield this.#Ct[t])}}*rvalues(){for(const t of this.#Qt()){void 0===this.#Ct[t]||this.#Yt(this.#Ct[t])||(yield this.#Ct[t])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const r of this.#Jt()){const n=this.#Ct[r],i=this.#Yt(n)?n.__staleWhileFetching:n;if(void 0!==i&&t(i,this.#Dt[r],this))return this.get(this.#Dt[r],e)}}forEach(t,e=this){for(const r of this.#Jt()){const n=this.#Ct[r],i=this.#Yt(n)?n.__staleWhileFetching:n;void 0!==i&&t.call(e,i,this.#Dt[r],this)}}rforEach(t,e=this){for(const r of this.#Qt()){const n=this.#Ct[r],i=this.#Yt(n)?n.__staleWhileFetching:n;void 0!==i&&t.call(e,i,this.#Dt[r],this)}}purgeStale(){let t=!1;for(const e of this.#Qt({allowStale:!0}))this.#Xt(e)&&(this.#ne(this.#Dt[e],"expire"),t=!0);return t}info(t){const e=this.#Lt.get(t);if(void 0===e)return;const n=this.#Ct[e],i=this.#Yt(n)?n.__staleWhileFetching:n;if(void 0===i)return;const s={value:i};if(this.#Ht&&this.#zt){const t=this.#Ht[e],n=this.#zt[e];if(t&&n){const e=t-(r.now()-n);s.ttl=e,s.start=Date.now()}}return this.#Ut&&(s.size=this.#Ut[e]),s}dump(){const t=[];for(const e of this.#Jt({allowStale:!0})){const n=this.#Dt[e],i=this.#Ct[e],s=this.#Yt(i)?i.__staleWhileFetching:i;if(void 0===s||void 0===n)continue;const o={value:s};if(this.#Ht&&this.#zt){o.ttl=this.#Ht[e];const t=r.now()-this.#zt[e];o.start=Math.floor(Date.now()-t)}this.#Ut&&(o.size=this.#Ut[e]),t.unshift([n,o])}return t}load(t){this.clear();for(const[e,n]of t){if(n.start){const t=Date.now()-n.start;n.start=r.now()-t}this.set(e,n.value,n)}}set(t,e,r={}){if(void 0===e)return this.delete(t),this;const{ttl:n=this.ttl,start:i,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=r;let{noUpdateTTL:l=this.noUpdateTTL}=r;const u=this.#ae(t,e,r.size||0,o);if(this.maxEntrySize&&u>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#ne(t,"set"),this;let h=0===this.#$?void 0:this.#Lt.get(t);if(void 0===h)h=0===this.#$?this.#$t:0!==this.#Wt.length?this.#Wt.pop():this.#$===this.#Rt?this.#ue(!1):this.#$,this.#Dt[h]=t,this.#Ct[h]=e,this.#Lt.set(t,h),this.#Nt[this.#$t]=h,this.#jt[h]=this.#$t,this.#$t=h,this.#$++,this.#le(h,u,a),a&&(a.set="add"),l=!1;else{this.#Zt(h);const r=this.#Ct[h];if(e!==r){if(this.#Vt&&this.#Yt(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=r;void 0===e||s||(this.#Gt&&this.#Tt?.(e,t,"set"),this.#qt&&this.#Bt?.push([e,t,"set"]))}else s||(this.#Gt&&this.#Tt?.(r,t,"set"),this.#qt&&this.#Bt?.push([r,t,"set"]));if(this.#oe(h),this.#le(h,u,a),this.#Ct[h]=e,a){a.set="replace";const t=r&&this.#Yt(r)?r.__staleWhileFetching:r;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===n||this.#Ht||this.#ee(),this.#Ht&&(l||this.#re(h,n,i),a&&this.#se(a,h)),!s&&this.#qt&&this.#Bt){const t=this.#Bt;let e;for(;e=t?.shift();)this.#kt?.(...e)}return this}pop(){try{for(;this.#$;){const t=this.#Ct[this.#Ft];if(this.#ue(!0),this.#Yt(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#qt&&this.#Bt){const t=this.#Bt;let e;for(;e=t?.shift();)this.#kt?.(...e)}}}#ue(t){const e=this.#Ft,r=this.#Dt[e],n=this.#Ct[e];return this.#Vt&&this.#Yt(n)?n.__abortController.abort(new Error("evicted")):(this.#Gt||this.#qt)&&(this.#Gt&&this.#Tt?.(n,r,"evict"),this.#qt&&this.#Bt?.push([n,r,"evict"])),this.#oe(e),t&&(this.#Dt[e]=void 0,this.#Ct[e]=void 0,this.#Wt.push(e)),1===this.#$?(this.#Ft=this.#$t=0,this.#Wt.length=0):this.#Ft=this.#Nt[e],this.#Lt.delete(r),this.#$--,e}has(t,e={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=e,i=this.#Lt.get(t);if(void 0!==i){const t=this.#Ct[i];if(this.#Yt(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#Xt(i))return r&&this.#ie(i),n&&(n.has="hit",this.#se(n,i)),!0;n&&(n.has="stale",this.#se(n,i))}else n&&(n.has="miss");return!1}peek(t,e={}){const{allowStale:r=this.allowStale}=e,n=this.#Lt.get(t);if(void 0===n||!r&&this.#Xt(n))return;const i=this.#Ct[n];return this.#Yt(i)?i.__staleWhileFetching:i}#Kt(t,e,r,n){const i=void 0===e?void 0:this.#Ct[e];if(this.#Yt(i))return i;const s=new o,{signal:a}=r;a?.addEventListener("abort",(()=>s.abort(a.reason)),{signal:s.signal});const l={signal:s.signal,options:r,context:n},u=(n,i=!1)=>{const{aborted:o}=s.signal,a=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(o&&!i?(r.status.fetchAborted=!0,r.status.fetchError=s.signal.reason,a&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),o&&!a&&!i)return h(s.signal.reason);const u=c;return this.#Ct[e]===c&&(void 0===n?u.__staleWhileFetching?this.#Ct[e]=u.__staleWhileFetching:this.#ne(t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,n,l.options))),n},h=n=>{const{aborted:i}=s.signal,o=i&&r.allowStaleOnFetchAbort,a=o||r.allowStaleOnFetchRejection,l=a||r.noDeleteOnFetchRejection,u=c;if(this.#Ct[e]===c){!l||void 0===u.__staleWhileFetching?this.#ne(t,"fetch"):o||(this.#Ct[e]=u.__staleWhileFetching)}if(a)return r.status&&void 0!==u.__staleWhileFetching&&(r.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw n};r.status&&(r.status.fetchDispatched=!0);const c=new Promise(((e,n)=>{const o=this.#Mt?.(t,i,l);o&&o instanceof Promise&&o.then((t=>e(void 0===t?void 0:t)),n),s.signal.addEventListener("abort",(()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(e(void 0),r.allowStaleOnFetchAbort&&(e=t=>u(t,!0)))}))})).then(u,(t=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=t),h(t)))),d=Object.assign(c,{__abortController:s,__staleWhileFetching:i,__returned:void 0});return void 0===e?(this.set(t,d,{...l.options,status:void 0}),e=this.#Lt.get(t)):this.#Ct[e]=d,d}#Yt(t){if(!this.#Vt)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof o}async fetch(t,e={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:b,signal:m}=e;if(!this.#Vt)return b&&(b.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:b});const y={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:s,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:f,ignoreFetchAbort:d,status:b,signal:m};let w=this.#Lt.get(t);if(void 0===w){b&&(b.fetch="miss");const e=this.#Kt(t,w,y,p);return e.__returned=e}{const e=this.#Ct[w];if(this.#Yt(e)){const t=r&&void 0!==e.__staleWhileFetching;return b&&(b.fetch="inflight",t&&(b.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const i=this.#Xt(w);if(!g&&!i)return b&&(b.fetch="hit"),this.#Zt(w),n&&this.#ie(w),b&&this.#se(b,w),e;const s=this.#Kt(t,w,y,p),o=void 0!==s.__staleWhileFetching&&r;return b&&(b.fetch=i?"stale":"refresh",o&&i&&(b.returnedStale=!0)),o?s.__staleWhileFetching:s.__returned=s}}async forceFetch(t,e={}){const r=await this.fetch(t,e);if(void 0===r)throw new Error("fetch() returned undefined");return r}memo(t,e={}){const r=this.#Pt;if(!r)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:i,...s}=e,o=this.get(t,s);if(!i&&void 0!==o)return o;const a=r(t,o,{options:s,context:n});return this.set(t,a,s),a}get(t,e={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:s}=e,o=this.#Lt.get(t);if(void 0!==o){const e=this.#Ct[o],a=this.#Yt(e);return s&&this.#se(s,o),this.#Xt(o)?(s&&(s.get="stale"),a?(s&&r&&void 0!==e.__staleWhileFetching&&(s.returnedStale=!0),r?e.__staleWhileFetching:void 0):(i||this.#ne(t,"expire"),s&&r&&(s.returnedStale=!0),r?e:void 0)):(s&&(s.get="hit"),a?e.__staleWhileFetching:(this.#Zt(o),n&&this.#ie(o),e))}s&&(s.get="miss")}#ce(t,e){this.#jt[e]=t,this.#Nt[t]=e}#Zt(t){t!==this.#$t&&(t===this.#Ft?this.#Ft=this.#Nt[t]:this.#ce(this.#jt[t],this.#Nt[t]),this.#ce(this.#$t,t),this.#$t=t)}delete(t){return this.#ne(t,"delete")}#ne(t,e){let r=!1;if(0!==this.#$){const n=this.#Lt.get(t);if(void 0!==n)if(r=!0,1===this.#$)this.#de(e);else{this.#oe(n);const r=this.#Ct[n];if(this.#Yt(r)?r.__abortController.abort(new Error("deleted")):(this.#Gt||this.#qt)&&(this.#Gt&&this.#Tt?.(r,t,e),this.#qt&&this.#Bt?.push([r,t,e])),this.#Lt.delete(t),this.#Dt[n]=void 0,this.#Ct[n]=void 0,n===this.#$t)this.#$t=this.#jt[n];else if(n===this.#Ft)this.#Ft=this.#Nt[n];else{const t=this.#jt[n];this.#Nt[t]=this.#Nt[n];const e=this.#Nt[n];this.#jt[e]=this.#jt[n]}this.#$--,this.#Wt.push(n)}}if(this.#qt&&this.#Bt?.length){const t=this.#Bt;let e;for(;e=t?.shift();)this.#kt?.(...e)}return r}clear(){return this.#de("delete")}#de(t){for(const e of this.#Qt({allowStale:!0})){const r=this.#Ct[e];if(this.#Yt(r))r.__abortController.abort(new Error("deleted"));else{const n=this.#Dt[e];this.#Gt&&this.#Tt?.(r,n,t),this.#qt&&this.#Bt?.push([r,n,t])}}if(this.#Lt.clear(),this.#Ct.fill(void 0),this.#Dt.fill(void 0),this.#Ht&&this.#zt&&(this.#Ht.fill(0),this.#zt.fill(0)),this.#Ut&&this.#Ut.fill(0),this.#Ft=0,this.#$t=0,this.#Wt.length=0,this.#It=0,this.#$=0,this.#qt&&this.#Bt){const t=this.#Bt;let e;for(;e=t?.shift();)this.#kt?.(...e)}}}e.LRUCache=d},5313(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Minipass=e.isWritable=e.isReadable=e.isStream=void 0;const i="object"==typeof process&&process?process:{stdout:null,stderr:null},s=r(8474),o=n(r(7075)),a=r(6193);e.isStream=t=>!!t&&"object"==typeof t&&(t instanceof z||t instanceof o.default||(0,e.isReadable)(t)||(0,e.isWritable)(t));e.isReadable=t=>!!t&&"object"==typeof t&&t instanceof s.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==o.default.Writable.prototype.pipe;e.isWritable=t=>!!t&&"object"==typeof t&&t instanceof s.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end;const l=Symbol("EOF"),u=Symbol("maybeEmitEnd"),h=Symbol("emittedEnd"),c=Symbol("emittingEnd"),d=Symbol("emittedError"),f=Symbol("closed"),p=Symbol("read"),g=Symbol("flush"),b=Symbol("flushChunk"),m=Symbol("encoding"),y=Symbol("decoder"),w=Symbol("flowing"),_=Symbol("paused"),v=Symbol("resume"),S=Symbol("buffer"),E=Symbol("pipes"),x=Symbol("bufferLength"),A=Symbol("bufferPush"),R=Symbol("bufferShift"),O=Symbol("objectMode"),T=Symbol("destroyed"),k=Symbol("error"),M=Symbol("emitData"),P=Symbol("emitEnd"),I=Symbol("emitEnd2"),L=Symbol("async"),D=Symbol("abort"),C=Symbol("aborted"),N=Symbol("signal"),j=Symbol("dataListeners"),F=Symbol("discarded"),$=t=>Promise.resolve().then(t),W=t=>t();class B{src;dest;opts;ondrain;constructor(t,e,r){this.src=t,this.dest=e,this.opts=r,this.ondrain=()=>t[v](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class U extends B{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,r){super(t,e,r),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class z extends s.EventEmitter{[w]=!1;[_]=!1;[E]=[];[S]=[];[O];[m];[L];[y];[l]=!1;[h]=!1;[c]=!1;[f]=!1;[d]=null;[x]=0;[T]=!1;[N];[C]=!1;[j]=0;[F]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");e.objectMode?(this[O]=!0,this[m]=null):(t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding)(e)?(this[m]=e.encoding,this[O]=!1):(this[O]=!1,this[m]=null),this[L]=!!e.async,this[y]=this[m]?new a.StringDecoder(this[m]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[S]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[E]});const{signal:r}=e;r&&(this[N]=r,r.aborted?this[D]():r.addEventListener("abort",(()=>this[D]())))}get bufferLength(){return this[x]}get encoding(){return this[m]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[O]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[L]}set async(t){this[L]=this[L]||!!t}[D](){this[C]=!0,this.emit("abort",this[N]?.reason),this.destroy(this[N]?.reason)}get aborted(){return this[C]}set aborted(t){}write(t,e,r){if(this[C])return!1;if(this[l])throw new Error("write after end");if(this[T])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(r=e,e="utf8"),e||(e="utf8");const n=this[L]?$:W;if(!this[O]&&!Buffer.isBuffer(t))if(i=t,!Buffer.isBuffer(i)&&ArrayBuffer.isView(i))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var i;return this[O]?(this[w]&&0!==this[x]&&this[g](!0),this[w]?this.emit("data",t):this[A](t),0!==this[x]&&this.emit("readable"),r&&n(r),this[w]):t.length?("string"!=typeof t||e===this[m]&&!this[y]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[m]&&(t=this[y].write(t)),this[w]&&0!==this[x]&&this[g](!0),this[w]?this.emit("data",t):this[A](t),0!==this[x]&&this.emit("readable"),r&&n(r),this[w]):(0!==this[x]&&this.emit("readable"),r&&n(r),this[w])}read(t){if(this[T])return null;if(this[F]=!1,0===this[x]||0===t||t&&t>this[x])return this[u](),null;this[O]&&(t=null),this[S].length>1&&!this[O]&&(this[S]=[this[m]?this[S].join(""):Buffer.concat(this[S],this[x])]);const e=this[p](t||null,this[S][0]);return this[u](),e}[p](t,e){if(this[O])this[R]();else{const r=e;t===r.length||null===t?this[R]():"string"==typeof r?(this[S][0]=r.slice(t),e=r.slice(0,t),this[x]-=t):(this[S][0]=r.subarray(t),e=r.subarray(0,t),this[x]-=t)}return this.emit("data",e),this[S].length||this[l]||this.emit("drain"),e}end(t,e,r){return"function"==typeof t&&(r=t,t=void 0),"function"==typeof e&&(r=e,e="utf8"),void 0!==t&&this.write(t,e),r&&this.once("end",r),this[l]=!0,this.writable=!1,!this[w]&&this[_]||this[u](),this}[v](){this[T]||(this[j]||this[E].length||(this[F]=!0),this[_]=!1,this[w]=!0,this.emit("resume"),this[S].length?this[g]():this[l]?this[u]():this.emit("drain"))}resume(){return this[v]()}pause(){this[w]=!1,this[_]=!0,this[F]=!1}get destroyed(){return this[T]}get flowing(){return this[w]}get paused(){return this[_]}[A](t){this[O]?this[x]+=1:this[x]+=t.length,this[S].push(t)}[R](){return this[O]?this[x]-=1:this[x]-=this[S][0].length,this[S].shift()}[g](t=!1){do{}while(this[b](this[R]())&&this[S].length);t||this[S].length||this[l]||this.emit("drain")}[b](t){return this.emit("data",t),this[w]}pipe(t,e){if(this[T])return t;this[F]=!1;const r=this[h];return e=e||{},t===i.stdout||t===i.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,r?e.end&&t.end():(this[E].push(e.proxyErrors?new U(this,t,e):new B(this,t,e)),this[L]?$((()=>this[v]())):this[v]()),t}unpipe(t){const e=this[E].find((e=>e.dest===t));e&&(1===this[E].length?(this[w]&&0===this[j]&&(this[w]=!1),this[E]=[]):this[E].splice(this[E].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const r=super.on(t,e);if("data"===t)this[F]=!1,this[j]++,this[E].length||this[w]||this[v]();else if("readable"===t&&0!==this[x])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[h])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[d]){const t=e;this[L]?$((()=>t.call(this,this[d]))):t.call(this,this[d])}return r}removeListener(t,e){return this.off(t,e)}off(t,e){const r=super.off(t,e);return"data"===t&&(this[j]=this.listeners("data").length,0!==this[j]||this[F]||this[E].length||(this[w]=!1)),r}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[j]=0,this[F]||this[E].length||(this[w]=!1)),e}get emittedEnd(){return this[h]}[u](){this[c]||this[h]||this[T]||0!==this[S].length||!this[l]||(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[f]&&this.emit("close"),this[c]=!1)}emit(t,...e){const r=e[0];if("error"!==t&&"close"!==t&&t!==T&&this[T])return!1;if("data"===t)return!(!this[O]&&!r)&&(this[L]?($((()=>this[M](r))),!0):this[M](r));if("end"===t)return this[P]();if("close"===t){if(this[f]=!0,!this[h]&&!this[T])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[d]=r,super.emit(k,r);const t=!(this[N]&&!this.listeners("error").length)&&super.emit("error",r);return this[u](),t}if("resume"===t){const t=super.emit("resume");return this[u](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const n=super.emit(t,...e);return this[u](),n}[M](t){for(const e of this[E])!1===e.dest.write(t)&&this.pause();const e=!this[F]&&super.emit("data",t);return this[u](),e}[P](){return!this[h]&&(this[h]=!0,this.readable=!1,this[L]?($((()=>this[I]())),!0):this[I]())}[I](){if(this[y]){const t=this[y].end();if(t){for(const e of this[E])e.dest.write(t);this[F]||super.emit("data",t)}}for(const t of this[E])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[O]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[O]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[O])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[m]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(T,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[F]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const r=this.read();if(null!==r)return Promise.resolve({done:!1,value:r});if(this[l])return e();let n,i;const s=t=>{this.off("data",o),this.off("end",a),this.off(T,u),e(),i(t)},o=t=>{this.off("error",s),this.off("end",a),this.off(T,u),this.pause(),n({value:t,done:!!this[l]})},a=()=>{this.off("error",s),this.off("data",o),this.off(T,u),e(),n({done:!0,value:void 0})},u=()=>s(new Error("stream destroyed"));return new Promise(((t,e)=>{i=e,n=t,this.once(T,u),this.once("error",s),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[F]=!1;let t=!1;const e=()=>(this.pause(),this.off(k,e),this.off(T,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(k,e),this.once(T,e),{next:()=>{if(t)return e();const r=this.read();return null===r?e():{done:!1,value:r}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){if(this[T])return t?this.emit("error",t):this.emit(T),this;this[T]=!0,this[F]=!0,this[S].length=0,this[x]=0;return"function"!=typeof this.close||this[f]||this.close(),t?this.emit("error",t):this.emit(T),this}static get isStream(){return e.isStream}}e.Minipass=z},2268(t,e,r){"use strict";function n(t,...e){return(...r)=>t(...e,...r)}function i(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}r.r(e),r.d(e,{all:()=>gt,allLimit:()=>bt,allSeries:()=>mt,any:()=>te,anyLimit:()=>ee,anySeries:()=>re,apply:()=>n,applyEach:()=>P,applyEachSeries:()=>D,asyncify:()=>c,auto:()=>j,autoInject:()=>U,cargo:()=>V,cargoQueue:()=>q,compose:()=>Z,concat:()=>X,concatLimit:()=>Q,concatSeries:()=>tt,constant:()=>et,default:()=>pe,detect:()=>nt,detectLimit:()=>it,detectSeries:()=>st,dir:()=>at,doDuring:()=>lt,doUntil:()=>ut,doWhilst:()=>lt,during:()=>ce,each:()=>ct,eachLimit:()=>dt,eachOf:()=>k,eachOfLimit:()=>R,eachOfSeries:()=>I,eachSeries:()=>ft,ensureAsync:()=>pt,every:()=>gt,everyLimit:()=>bt,everySeries:()=>mt,filter:()=>vt,filterLimit:()=>St,filterSeries:()=>Et,find:()=>nt,findLimit:()=>it,findSeries:()=>st,flatMap:()=>X,flatMapLimit:()=>Q,flatMapSeries:()=>tt,foldl:()=>Y,foldr:()=>zt,forEach:()=>ct,forEachLimit:()=>dt,forEachOf:()=>k,forEachOfLimit:()=>R,forEachOfSeries:()=>I,forEachSeries:()=>ft,forever:()=>xt,groupBy:()=>Rt,groupByLimit:()=>At,groupBySeries:()=>Ot,inject:()=>Y,log:()=>Tt,map:()=>M,mapLimit:()=>J,mapSeries:()=>L,mapValues:()=>Mt,mapValuesLimit:()=>kt,mapValuesSeries:()=>Pt,memoize:()=>It,nextTick:()=>Lt,parallel:()=>Ct,parallelLimit:()=>Nt,priorityQueue:()=>Bt,queue:()=>jt,race:()=>Ut,reduce:()=>Y,reduceRight:()=>zt,reflect:()=>Ht,reflectAll:()=>Gt,reject:()=>qt,rejectLimit:()=>Yt,rejectSeries:()=>Kt,retry:()=>Jt,retryable:()=>Qt,select:()=>vt,selectLimit:()=>St,selectSeries:()=>Et,seq:()=>K,series:()=>Xt,setImmediate:()=>h,some:()=>te,someLimit:()=>ee,someSeries:()=>re,sortBy:()=>ne,timeout:()=>ie,times:()=>oe,timesLimit:()=>se,timesSeries:()=>ae,transform:()=>le,tryEach:()=>ue,unmemoize:()=>he,until:()=>de,waterfall:()=>fe,whilst:()=>ce,wrapSync:()=>c});var s="function"==typeof queueMicrotask&&queueMicrotask,o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function l(t){setTimeout(t,0)}function u(t){return(e,...r)=>t((()=>e(...r)))}var h=u(s?queueMicrotask:o?setImmediate:a?process.nextTick:l);function c(t){return p(t)?function(...e){const r=e.pop();return d(t.apply(this,e),r)}:i((function(e,r){var n;try{n=t.apply(this,e)}catch(t){return r(t)}if(n&&"function"==typeof n.then)return d(n,r);r(null,n)}))}function d(t,e){return t.then((t=>{f(e,null,t)}),(t=>{f(e,t&&(t instanceof Error||t.message)?t:new Error(t))}))}function f(t,e,r){try{t(e,r)}catch(t){h((t=>{throw t}),t)}}function p(t){return"AsyncFunction"===t[Symbol.toStringTag]}function g(t){if("function"!=typeof t)throw new Error("expected a function");return p(t)?c(t):t}function b(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");return function(...r){return"function"==typeof r[e-1]?t.apply(this,r):new Promise(((n,i)=>{r[e-1]=(t,...e)=>{if(t)return i(t);n(e.length>1?e:e[0])},t.apply(this,r)}))}}function m(t){return function(e,...r){return b((function(n){var i=this;return t(e,((t,e)=>{g(t).apply(i,r.concat(e))}),n)}))}}function y(t,e,r,n){e=e||[];var i=[],s=0,o=g(r);return t(e,((t,e,r)=>{var n=s++;o(t,((t,e)=>{i[n]=e,r(t)}))}),(t=>{n(t,i)}))}function w(t){return t&&"number"==typeof t.length&&t.length>=0&&t.length%1==0}const _={};function v(t){function e(...e){if(null!==t){var r=t;t=null,r.apply(this,e)}}return Object.assign(e,t),e}function S(t){if(w(t))return function(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}(t);var e,r,n,i,s=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}(t);return s?function(t){var e=-1;return function(){var r=t.next();return r.done?null:(e++,{value:r.value,key:e})}}(s):(r=(e=t)?Object.keys(e):[],n=-1,i=r.length,function t(){var s=r[++n];return"__proto__"===s?t():n<i?{value:e[s],key:s}:null})}function E(t){return function(...e){if(null===t)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function x(t,e,r,n){let i=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||i||(o=!0,t.next().then((({value:t,done:e})=>{if(!s&&!i){if(o=!1,e)return i=!0,void(a<=0&&n(null));a++,r(t,l,h),l++,u()}})).catch(c))}function h(t,e){if(a-=1,!s)return t?c(t):!1===t?(i=!0,void(s=!0)):e===_||i&&a<=0?(i=!0,n(null)):void u()}function c(t){s||(o=!1,i=!0,n(t))}u()}var A=t=>(e,r,n)=>{if(n=v(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if("AsyncGenerator"===e[Symbol.toStringTag])return x(e,t,r,n);if(function(t){return"function"==typeof t[Symbol.asyncIterator]}(e))return x(e[Symbol.asyncIterator](),t,r,n);var i=S(e),s=!1,o=!1,a=0,l=!1;function u(t,e){if(!o)if(a-=1,t)s=!0,n(t);else if(!1===t)s=!0,o=!0;else{if(e===_||s&&a<=0)return s=!0,n(null);l||h()}}function h(){for(l=!0;a<t&&!s;){var e=i();if(null===e)return s=!0,void(a<=0&&n(null));a+=1,r(e.value,e.key,E(u))}l=!1}h()};var R=b((function(t,e,r,n){return A(e)(t,g(r),n)}),4);function O(t,e,r){r=v(r);var n=0,i=0,{length:s}=t,o=!1;function a(t,e){!1===t&&(o=!0),!0!==o&&(t?r(t):++i!==s&&e!==_||r(null))}for(0===s&&r(null);n<s;n++)e(t[n],n,E(a))}function T(t,e,r){return R(t,1/0,e,r)}var k=b((function(t,e,r){return(w(t)?O:T)(t,g(e),r)}),3);var M=b((function(t,e,r){return y(k,t,e,r)}),3),P=m(M);var I=b((function(t,e,r){return R(t,1,e,r)}),3);var L=b((function(t,e,r){return y(I,t,e,r)}),3),D=m(L);const C=Symbol("promiseCallback");function N(){let t,e;function r(r,...n){if(r)return e(r);t(n.length>1?n:n[0])}return r[C]=new Promise(((r,n)=>{t=r,e=n})),r}function j(t,e,r){"number"!=typeof e&&(r=e,e=null),r=v(r||N());var n=Object.keys(t).length;if(!n)return r(null);e||(e=n);var i={},s=0,o=!1,a=!1,l=Object.create(null),u=[],h=[],c={};function d(t,e){u.push((()=>function(t,e){if(a)return;var n=E(((e,...n)=>{if(s--,!1!==e)if(n.length<2&&([n]=n),e){var u={};if(Object.keys(i).forEach((t=>{u[t]=i[t]})),u[t]=n,a=!0,l=Object.create(null),o)return;r(e,u)}else i[t]=n,(l[t]||[]).forEach((t=>t())),f();else o=!0}));s++;var u=g(e[e.length-1]);e.length>1?u(i,n):u(n)}(t,e)))}function f(){if(!o){if(0===u.length&&0===s)return r(null,i);for(;u.length&&s<e;){u.shift()()}}}function p(e){var r=[];return Object.keys(t).forEach((n=>{const i=t[n];Array.isArray(i)&&i.indexOf(e)>=0&&r.push(n)})),r}return Object.keys(t).forEach((e=>{var r=t[e];if(!Array.isArray(r))return d(e,[r]),void h.push(e);var n=r.slice(0,r.length-1),i=n.length;if(0===i)return d(e,r),void h.push(e);c[e]=i,n.forEach((s=>{if(!t[s])throw new Error("async.auto task `"+e+"` has a non-existent dependency `"+s+"` in "+n.join(", "));!function(t,e){var r=l[t];r||(r=l[t]=[]);r.push(e)}(s,(()=>{0===--i&&d(e,r)}))}))})),function(){var t=0;for(;h.length;)t++,p(h.pop()).forEach((t=>{0==--c[t]&&h.push(t)}));if(t!==n)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),f(),r[C]}var F=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,$=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,W=/,/,B=/(=.+)?(\s*)$/;function U(t,e){var r={};return Object.keys(t).forEach((e=>{var n,i=t[e],s=p(i),o=!s&&1===i.length||s&&0===i.length;if(Array.isArray(i))n=[...i],i=n.pop(),r[e]=n.concat(n.length>0?a:i);else if(o)r[e]=i;else{if(n=function(t){const e=function(t){let e="",r=0,n=t.indexOf("*/");for(;r<t.length;)if("/"===t[r]&&"/"===t[r+1]){let e=t.indexOf("\n",r);r=-1===e?t.length:e}else if(-1!==n&&"/"===t[r]&&"*"===t[r+1]){let i=t.indexOf("*/",r);-1!==i?(r=i+2,n=t.indexOf("*/",r)):(e+=t[r],r++)}else e+=t[r],r++;return e}(t.toString());let r=e.match(F);if(r||(r=e.match($)),!r)throw new Error("could not parse args in autoInject\nSource:\n"+e);let[,n]=r;return n.replace(/\s/g,"").split(W).map((t=>t.replace(B,"").trim()))}(i),0===i.length&&!s&&0===n.length)throw new Error("autoInject task functions require explicit parameters.");s||n.pop(),r[e]=n.concat(a)}function a(t,e){var r=n.map((e=>t[e]));r.push(e),g(i)(...r)}})),j(r,e)}class z{constructor(){this.head=this.tail=null,this.length=0}removeLink(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t}empty(){for(;this.head;)this.shift();return this}insertAfter(t,e){e.prev=t,e.next=t.next,t.next?t.next.prev=e:this.tail=e,t.next=e,this.length+=1}insertBefore(t,e){e.prev=t.prev,e.next=t,t.prev?t.prev.next=e:this.head=e,t.prev=e,this.length+=1}unshift(t){this.head?this.insertBefore(this.head,t):H(this,t)}push(t){this.tail?this.insertAfter(this.tail,t):H(this,t)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var t=this.head;t;)yield t.data,t=t.next}remove(t){for(var e=this.head;e;){var{next:r}=e;t(e)&&this.removeLink(e),e=r}return this}}function H(t,e){t.length=1,t.head=t.tail=e}function G(t,e,r){if(null==e)e=1;else if(0===e)throw new RangeError("Concurrency must not be zero");var n=g(t),i=0,s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(t,e){return t?e?void(o[t]=o[t].filter((t=>t!==e))):o[t]=[]:Object.keys(o).forEach((t=>o[t]=[]))}function l(t,...e){o[t].forEach((t=>t(...e)))}var u=!1;function c(t,e,r,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");var i,s;function o(t,...e){return t?r?s(t):i():e.length<=1?i(e[0]):void i(e)}m.started=!0;var a=m._createTaskItem(t,r?o:n||o);if(e?m._tasks.unshift(a):m._tasks.push(a),u||(u=!0,h((()=>{u=!1,m.process()}))),r||!n)return new Promise(((t,e)=>{i=t,s=e}))}function d(t){return function(e,...r){i-=1;for(var n=0,o=t.length;n<o;n++){var a=t[n],u=s.indexOf(a);0===u?s.shift():u>0&&s.splice(u,1),a.callback(e,...r),null!=e&&l("error",e,a.data)}i<=m.concurrency-m.buffer&&l("unsaturated"),m.idle()&&l("drain"),m.process()}}function f(t){return!(0!==t.length||!m.idle())&&(h((()=>l("drain"))),!0)}const p=t=>e=>{if(!e)return new Promise(((e,r)=>{!function(t,e){const r=(...n)=>{a(t,r),e(...n)};o[t].push(r)}(t,((t,n)=>{if(t)return r(t);e(n)}))}));a(t),function(t,e){o[t].push(e)}(t,e)};var b=!1,m={_tasks:new z,_createTaskItem:(t,e)=>({data:t,callback:e}),*[Symbol.iterator](){yield*m._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(t,e){if(Array.isArray(t)){if(f(t))return;return t.map((t=>c(t,!1,!1,e)))}return c(t,!1,!1,e)},pushAsync(t,e){if(Array.isArray(t)){if(f(t))return;return t.map((t=>c(t,!1,!0,e)))}return c(t,!1,!0,e)},kill(){a(),m._tasks.empty()},unshift(t,e){if(Array.isArray(t)){if(f(t))return;return t.map((t=>c(t,!0,!1,e)))}return c(t,!0,!1,e)},unshiftAsync(t,e){if(Array.isArray(t)){if(f(t))return;return t.map((t=>c(t,!0,!0,e)))}return c(t,!0,!0,e)},remove(t){m._tasks.remove(t)},process(){if(!b){for(b=!0;!m.paused&&i<m.concurrency&&m._tasks.length;){var t=[],e=[],r=m._tasks.length;m.payload&&(r=Math.min(r,m.payload));for(var o=0;o<r;o++){var a=m._tasks.shift();t.push(a),s.push(a),e.push(a.data)}i+=1,0===m._tasks.length&&l("empty"),i===m.concurrency&&l("saturated");var u=E(d(t));n(e,u)}b=!1}},length:()=>m._tasks.length,running:()=>i,workersList:()=>s,idle:()=>m._tasks.length+i===0,pause(){m.paused=!0},resume(){!1!==m.paused&&(m.paused=!1,h(m.process))}};return Object.defineProperties(m,{saturated:{writable:!1,value:p("saturated")},unsaturated:{writable:!1,value:p("unsaturated")},empty:{writable:!1,value:p("empty")},drain:{writable:!1,value:p("drain")},error:{writable:!1,value:p("error")}}),m}function V(t,e){return G(t,1,e)}function q(t,e,r){return G(t,e,r)}var Y=b((function(t,e,r,n){n=v(n);var i=g(r);return I(t,((t,r,n)=>{i(e,t,((t,r)=>{e=r,n(t)}))}),(t=>n(t,e)))}),4);function K(...t){var e=t.map(g);return function(...t){var r=this,n=t[t.length-1];return"function"==typeof n?t.pop():n=N(),Y(e,t,((t,e,n)=>{e.apply(r,t.concat(((t,...e)=>{n(t,e)})))}),((t,e)=>n(t,...e))),n[C]}}function Z(...t){return K(...t.reverse())}var J=b((function(t,e,r,n){return y(A(e),t,r,n)}),4);var Q=b((function(t,e,r,n){var i=g(r);return J(t,e,((t,e)=>{i(t,((t,...r)=>t?e(t):e(t,r)))}),((t,e)=>{for(var r=[],i=0;i<e.length;i++)e[i]&&(r=r.concat(...e[i]));return n(t,r)}))}),4);var X=b((function(t,e,r){return Q(t,1/0,e,r)}),3);var tt=b((function(t,e,r){return Q(t,1,e,r)}),3);function et(...t){return function(...e){return e.pop()(null,...t)}}function rt(t,e){return(r,n,i,s)=>{var o,a=!1;const l=g(i);r(n,((r,n,i)=>{l(r,((n,s)=>n||!1===n?i(n):t(s)&&!o?(a=!0,o=e(!0,r),i(null,_)):void i()))}),(t=>{if(t)return s(t);s(null,a?o:e(!1))}))}}var nt=b((function(t,e,r){return rt((t=>t),((t,e)=>e))(k,t,e,r)}),3);var it=b((function(t,e,r,n){return rt((t=>t),((t,e)=>e))(A(e),t,r,n)}),4);var st=b((function(t,e,r){return rt((t=>t),((t,e)=>e))(A(1),t,e,r)}),3);function ot(t){return(e,...r)=>g(e)(...r,((e,...r)=>{"object"==typeof console&&(e?console.error&&console.error(e):console[t]&&r.forEach((e=>console[t](e))))}))}var at=ot("dir");var lt=b((function(t,e,r){r=E(r);var n,i=g(t),s=g(e);function o(t,...e){if(t)return r(t);!1!==t&&(n=e,s(...e,a))}function a(t,e){return t?r(t):!1!==t?e?void i(o):r(null,...n):void 0}return a(null,!0)}),3);function ut(t,e,r){const n=g(e);return lt(t,((...t)=>{const e=t.pop();n(...t,((t,r)=>e(t,!r)))}),r)}function ht(t){return(e,r,n)=>t(e,n)}var ct=b((function(t,e,r){return k(t,ht(g(e)),r)}),3);var dt=b((function(t,e,r,n){return A(e)(t,ht(g(r)),n)}),4);var ft=b((function(t,e,r){return dt(t,1,e,r)}),3);function pt(t){return p(t)?t:function(...e){var r=e.pop(),n=!0;e.push(((...t)=>{n?h((()=>r(...t))):r(...t)})),t.apply(this,e),n=!1}}var gt=b((function(t,e,r){return rt((t=>!t),(t=>!t))(k,t,e,r)}),3);var bt=b((function(t,e,r,n){return rt((t=>!t),(t=>!t))(A(e),t,r,n)}),4);var mt=b((function(t,e,r){return rt((t=>!t),(t=>!t))(I,t,e,r)}),3);function yt(t,e,r,n){var i=new Array(e.length);t(e,((t,e,n)=>{r(t,((t,r)=>{i[e]=!!r,n(t)}))}),(t=>{if(t)return n(t);for(var r=[],s=0;s<e.length;s++)i[s]&&r.push(e[s]);n(null,r)}))}function wt(t,e,r,n){var i=[];t(e,((t,e,n)=>{r(t,((r,s)=>{if(r)return n(r);s&&i.push({index:e,value:t}),n(r)}))}),(t=>{if(t)return n(t);n(null,i.sort(((t,e)=>t.index-e.index)).map((t=>t.value)))}))}function _t(t,e,r,n){return(w(e)?yt:wt)(t,e,g(r),n)}var vt=b((function(t,e,r){return _t(k,t,e,r)}),3);var St=b((function(t,e,r,n){return _t(A(e),t,r,n)}),4);var Et=b((function(t,e,r){return _t(I,t,e,r)}),3);var xt=b((function(t,e){var r=E(e),n=g(pt(t));return function t(e){if(e)return r(e);!1!==e&&n(t)}()}),2);var At=b((function(t,e,r,n){var i=g(r);return J(t,e,((t,e)=>{i(t,((r,n)=>r?e(r):e(r,{key:n,val:t})))}),((t,e)=>{for(var r={},{hasOwnProperty:i}=Object.prototype,s=0;s<e.length;s++)if(e[s]){var{key:o}=e[s],{val:a}=e[s];i.call(r,o)?r[o].push(a):r[o]=[a]}return n(t,r)}))}),4);function Rt(t,e,r){return At(t,1/0,e,r)}function Ot(t,e,r){return At(t,1,e,r)}var Tt=ot("log");var kt=b((function(t,e,r,n){n=v(n);var i={},s=g(r);return A(e)(t,((t,e,r)=>{s(t,e,((t,n)=>{if(t)return r(t);i[e]=n,r(t)}))}),(t=>n(t,i)))}),4);function Mt(t,e,r){return kt(t,1/0,e,r)}function Pt(t,e,r){return kt(t,1,e,r)}function It(t,e=t=>t){var r=Object.create(null),n=Object.create(null),s=g(t),o=i(((t,i)=>{var o=e(...t);o in r?h((()=>i(null,...r[o]))):o in n?n[o].push(i):(n[o]=[i],s(...t,((t,...e)=>{t||(r[o]=e);var i=n[o];delete n[o];for(var s=0,a=i.length;s<a;s++)i[s](t,...e)})))}));return o.memo=r,o.unmemoized=t,o}var Lt=u(a?process.nextTick:o?setImmediate:l),Dt=b(((t,e,r)=>{var n=w(e)?[]:{};t(e,((t,e,r)=>{g(t)(((t,...i)=>{i.length<2&&([i]=i),n[e]=i,r(t)}))}),(t=>r(t,n)))}),3);function Ct(t,e){return Dt(k,t,e)}function Nt(t,e,r){return Dt(A(e),t,r)}function jt(t,e){var r=g(t);return G(((t,e)=>{r(t[0],e)}),e,1)}class Ft{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(t){let e;for(;t>0&&Wt(this.heap[t],this.heap[e=$t(t)]);){let r=this.heap[t];this.heap[t]=this.heap[e],this.heap[e]=r,t=e}}percDown(t){let e;for(;(e=1+(t<<1))<this.heap.length&&(e+1<this.heap.length&&Wt(this.heap[e+1],this.heap[e])&&(e+=1),!Wt(this.heap[t],this.heap[e]));){let r=this.heap[t];this.heap[t]=this.heap[e],this.heap[e]=r,t=e}}push(t){t.pushCount=++this.pushCount,this.heap.push(t),this.percUp(this.heap.length-1)}unshift(t){return this.heap.push(t)}shift(){let[t]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),t}toArray(){return[...this]}*[Symbol.iterator](){for(let t=0;t<this.heap.length;t++)yield this.heap[t].data}remove(t){let e=0;for(let r=0;r<this.heap.length;r++)t(this.heap[r])||(this.heap[e]=this.heap[r],e++);this.heap.splice(e);for(let t=$t(this.heap.length-1);t>=0;t--)this.percDown(t);return this}}function $t(t){return(t+1>>1)-1}function Wt(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function Bt(t,e){var r=jt(t,e),{push:n,pushAsync:i}=r;function s(t,e){return Array.isArray(t)?t.map((t=>({data:t,priority:e}))):{data:t,priority:e}}return r._tasks=new Ft,r._createTaskItem=({data:t,priority:e},r)=>({data:t,priority:e,callback:r}),r.push=function(t,e=0,r){return n(s(t,e),r)},r.pushAsync=function(t,e=0,r){return i(s(t,e),r)},delete r.unshift,delete r.unshiftAsync,r}var Ut=b((function(t,e){if(e=v(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,n=t.length;r<n;r++)g(t[r])(e)}),2);function zt(t,e,r,n){var i=[...t].reverse();return Y(i,e,r,n)}function Ht(t){var e=g(t);return i((function(t,r){return t.push(((t,...e)=>{let n={};if(t&&(n.error=t),e.length>0){var i=e;e.length<=1&&([i]=e),n.value=i}r(null,n)})),e.apply(this,t)}))}function Gt(t){var e;return Array.isArray(t)?e=t.map(Ht):(e={},Object.keys(t).forEach((r=>{e[r]=Ht.call(this,t[r])}))),e}function Vt(t,e,r,n){const i=g(r);return _t(t,e,((t,e)=>{i(t,((t,r)=>{e(t,!r)}))}),n)}var qt=b((function(t,e,r){return Vt(k,t,e,r)}),3);var Yt=b((function(t,e,r,n){return Vt(A(e),t,r,n)}),4);var Kt=b((function(t,e,r){return Vt(I,t,e,r)}),3);function Zt(t){return function(){return t}}function Jt(t,e,r){var n={times:5,intervalFunc:Zt(0)};if(arguments.length<3&&"function"==typeof t?(r=e||N(),e=t):(!function(t,e){if("object"==typeof e)t.times=+e.times||5,t.intervalFunc="function"==typeof e.interval?e.interval:Zt(+e.interval||0),t.errorFilter=e.errorFilter;else{if("number"!=typeof e&&"string"!=typeof e)throw new Error("Invalid arguments for async.retry");t.times=+e||5}}(n,t),r=r||N()),"function"!=typeof e)throw new Error("Invalid arguments for async.retry");var i=g(e),s=1;return function t(){i(((e,...i)=>{!1!==e&&(e&&s++<n.times&&("function"!=typeof n.errorFilter||n.errorFilter(e))?setTimeout(t,n.intervalFunc(s-1)):r(e,...i))}))}(),r[C]}function Qt(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;p(e)&&(r+=1);var n=g(e);return i(((e,i)=>{function s(t){n(...e,t)}return(e.length<r-1||null==i)&&(e.push(i),i=N()),t?Jt(t,s,i):Jt(s,i),i[C]}))}function Xt(t,e){return Dt(I,t,e)}var te=b((function(t,e,r){return rt(Boolean,(t=>t))(k,t,e,r)}),3);var ee=b((function(t,e,r,n){return rt(Boolean,(t=>t))(A(e),t,r,n)}),4);var re=b((function(t,e,r){return rt(Boolean,(t=>t))(I,t,e,r)}),3);var ne=b((function(t,e,r){var n=g(e);return M(t,((t,e)=>{n(t,((r,n)=>{if(r)return e(r);e(r,{value:t,criteria:n})}))}),((t,e)=>{if(t)return r(t);r(null,e.sort(i).map((t=>t.value)))}));function i(t,e){var r=t.criteria,n=e.criteria;return r<n?-1:r>n?1:0}}),3);function ie(t,e,r){var n=g(t);return i(((i,s)=>{var o,a=!1;i.push(((...t)=>{a||(s(...t),clearTimeout(o))})),o=setTimeout((function(){var e=t.name||"anonymous",n=new Error('Callback function "'+e+'" timed out.');n.code="ETIMEDOUT",r&&(n.info=r),a=!0,s(n)}),e),n(...i)}))}function se(t,e,r,n){var i=g(r);return J(function(t){for(var e=Array(t);t--;)e[t]=t;return e}(t),e,i,n)}function oe(t,e,r){return se(t,1/0,e,r)}function ae(t,e,r){return se(t,1,e,r)}function le(t,e,r,n){arguments.length<=3&&"function"==typeof e&&(n=r,r=e,e=Array.isArray(t)?[]:{}),n=v(n||N());var i=g(r);return k(t,((t,r,n)=>{i(e,t,r,n)}),(t=>n(t,e))),n[C]}var ue=b((function(t,e){var r,n=null;return ft(t,((t,e)=>{g(t)(((t,...i)=>{if(!1===t)return e(t);i.length<2?[r]=i:r=i,n=t,e(t?null:{})}))}),(()=>e(n,r)))}));function he(t){return(...e)=>(t.unmemoized||t)(...e)}var ce=b((function(t,e,r){r=E(r);var n=g(e),i=g(t),s=[];function o(t,...e){if(t)return r(t);s=e,!1!==t&&i(a)}function a(t,e){return t?r(t):!1!==t?e?void n(o):r(null,...s):void 0}return i(a)}),3);function de(t,e,r){const n=g(t);return ce((t=>n(((e,r)=>t(e,!r)))),e,r)}var fe=b((function(t,e){if(e=v(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function n(e){g(t[r++])(...e,E(i))}function i(i,...s){if(!1!==i)return i||r===t.length?e(i,...s):void n(s)}n([])})),pe={apply:n,applyEach:P,applyEachSeries:D,asyncify:c,auto:j,autoInject:U,cargo:V,cargoQueue:q,compose:Z,concat:X,concatLimit:Q,concatSeries:tt,constant:et,detect:nt,detectLimit:it,detectSeries:st,dir:at,doUntil:ut,doWhilst:lt,each:ct,eachLimit:dt,eachOf:k,eachOfLimit:R,eachOfSeries:I,eachSeries:ft,ensureAsync:pt,every:gt,everyLimit:bt,everySeries:mt,filter:vt,filterLimit:St,filterSeries:Et,forever:xt,groupBy:Rt,groupByLimit:At,groupBySeries:Ot,log:Tt,map:M,mapLimit:J,mapSeries:L,mapValues:Mt,mapValuesLimit:kt,mapValuesSeries:Pt,memoize:It,nextTick:Lt,parallel:Ct,parallelLimit:Nt,priorityQueue:Bt,queue:jt,race:Ut,reduce:Y,reduceRight:zt,reflect:Ht,reflectAll:Gt,reject:qt,rejectLimit:Yt,rejectSeries:Kt,retry:Jt,retryable:Qt,seq:K,series:Xt,setImmediate:h,some:te,someLimit:ee,someSeries:re,sortBy:ne,timeout:ie,times:oe,timesLimit:se,timesSeries:ae,transform:le,tryEach:ue,unmemoize:he,until:de,waterfall:fe,whilst:ce,all:gt,allLimit:bt,allSeries:mt,any:te,anyLimit:ee,anySeries:re,find:nt,findLimit:it,findSeries:st,flatMap:X,flatMapLimit:Q,flatMapSeries:tt,forEach:ct,forEachSeries:ft,forEachLimit:dt,forEachOf:k,forEachOfSeries:I,forEachOfLimit:R,inject:Y,foldl:Y,foldr:zt,select:vt,selectLimit:St,selectSeries:Et,wrapSync:c,during:ce,doDuring:lt}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.c=e,r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n=r(r.s=3720);module.exports=n})();
|