2
0
Fork 0
mirror of https://code.forgejo.org/docker/build-push-action.git synced 2025-08-11 17:10:54 +00:00
docker-build-push-action/dist/index.js

104 lines
3.3 MiB
JavaScript
Raw Normal View History

require('./sourcemap-register.js');(()=>{var __webpack_modules__={6587:function(i,p,d){"use strict";var y=this&&this.__createBinding||(Object.create?function(i,p,d,y){if(y===undefined)y=d;var v=Object.getOwnPropertyDescriptor(p,d);if(!v||("get"in v?!p.__esModule:v.writable||v.configurable)){v={enumerable:true,get:function(){return p[d]}}}Object.defineProperty(i,y,v)}:function(i,p,d,y){if(y===undefined)y=d;i[y]=p[d]});var v=this&&this.__exportStar||function(i,p){for(var d in i)if(d!=="default"&&!Object.prototype.hasOwnProperty.call(p,d))y(p,i,d)};Object.defineProperty(p,"__esModule",{value:true});const D=d(1408);v(d(44417),p);v(d(56582),p);v(d(1408),p);const M=new D.DefaultArtifactClient;p["default"]=M},73087:(i,p,d)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});p.Timestamp=void 0;const y=d(66765);const v=d(66765);const D=d(66765);const M=d(66765);const U=d(66765);const j=d(66765);const V=d(66765);class Timestamp$Type extends V.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const i=this.create();const p=Date.now();i.seconds=j.PbLong.from(Math.floor(p/1e3)).toString();i.nanos=p%1e3*1e6;return i}toDate(i){return new Date(j.PbLong.from(i.seconds).toNumber()*1e3+Math.ceil(i.nanos/1e6))}fromDate(i){const p=this.create();const d=i.getTime();p.seconds=j.PbLong.from(Math.floor(d/1e3)).toString();p.nanos=d%1e3*1e6;return p}internalJsonWrite(i,p){let d=j.PbLong.from(i.seconds).toNumber()*1e3;if(d<Date.parse("0001-01-01T00:00:00Z")||d>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(i.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let y="Z";if(i.nanos>0){let p=(i.nanos+1e9).toString().substring(1);if(p.substring(3)==="000000")y="."+p.substring(0,3)+"Z";else if(p.substring(6)==="000")y="."+p.substring(0,6)+"Z";else y="."+p+"Z"}return new Date(d).toISOString().replace(".000Z",y)}internalJsonRead(i,p,d){if(typeof i!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,U.typeofJsonValue)(i)+".");let y=i.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!y)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let v=Date.parse(y[1]+"-"+y[2]+"-"+y[3]+"T"+y[4]+":"+y[5]+":"+y[6]+(y[8]?y[8]:"Z"));if(Number.isNaN(v))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(v<Date.parse("0001-01-01T00:00:00Z")||v>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!d)d=this.create();d.seconds=j.PbLong.from(v/1e3).toString();d.nanos=0;if(y[7])d.nanos=parseInt("1"+y[7]+"0".repeat(9-y[7].length))-1e9;return d}create(i){const p={seconds:"0",nanos:0};globalThis.Object.defineProperty(p,M.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,D.reflectionMergePartial)(this,p,i);return p}internalBinaryRead(i,p,d,y){let D=y!==null&&y!==void 0?y:this.create(),M=i.pos+p;while(i.pos<M){let[p,y]=i.tag();switch(p){case 1:D.seconds=i.int64().toString();break;case 2:D.nanos=i.int32();break;default:let M=d.readUnknownField;if(M==="throw")throw new globalThis.Error(`Unknown field ${p} (wire type ${y}) for ${this.typeName}`);let U=i.skip(y);if(M!==false)(M===true?v.UnknownFieldHandler.onRead:M)(this.typeName,D,p,y,U)}}return D}internalBinaryWrite(i,p,d){if(i.seconds!=="0")p.tag(1,y.WireType.Varint).int64(i.seconds);if(i.nanos!==0)p.tag(2,y.WireType.Varint).int32(i.nanos);let D=d.writeUnknownFields;if(D!==false)(D==true?v.UnknownFieldHandler.onWrite:D)(this.typeName,i,p);return p}}p.Timestamp=new Timestamp$Type},68647:(i,p,d)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});p.BytesValue=p.StringValue=p.BoolValue=p.UInt32Value=p.Int32Value=p.UInt64Value=p.Int64Value=p.FloatValue=p.DoubleValue=void 0;const y=d(6676
/**
* Archiver Vending
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var y=d(34781);var v={};var vending=function(i,p){return vending.create(i,p)};vending.create=function(i,p){if(v[i]){var d=new y(i,p);d.setFormat(i);d.setModule(new v[i](p));return d}else{throw new Error("create("+i+"): format not registered")}};vending.registerFormat=function(i,p){if(v[i]){throw new Error("register("+i+"): format already registered")}if(typeof p!=="function"){throw new Error("register("+i+"): format module invalid")}if(typeof p.prototype.append!=="function"||typeof p.prototype.finalize!=="function"){throw new Error("register("+i+"): format module missing methods")}v[i]=p};vending.isRegisteredFormat=function(i){if(v[i]){return true}return false};vending.registerFormat("zip",d(83964));vending.registerFormat("tar",d(38628));vending.registerFormat("json",d(98957));i.exports=vending},34781:(i,p,d)=>{
/**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var y=d(79896);var v=d(68975);var D=d(95990);var M=d(16928);var U=d(34747);var j=d(39023).inherits;var V=d(86574);var K=d(88523).Transform;var ee=process.platform==="win32";var Archiver=function(i,p){if(!(this instanceof Archiver)){return new Archiver(i,p)}if(typeof i!=="string"){p=i;i="zip"}p=this.options=U.defaults(p,{highWaterMark:1024*1024,statConcurrency:4});K.call(this,p);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=D.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=D.queue(this._onStatQueueTask.bind(this),p.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};j(Archiver,K);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(i,p){p=p||{};var d={source:null,filepath:i};if(!p.name){p.name=i}p.sourcePath=i;d.data=p;this._entriesCount++;if(p.stats&&p.stats instanceof y.Stats){d=this._updateQueueTaskWithStats(d,p.stats);if(d){if(p.stats.size){this._fsEntriesTotalBytes+=p.stats.size}this._queue.push(d)}}else{this._statQueue.push(d)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(i,p,d){if(this._state.aborted){d();return}this._module.append(i,p,function(i){this._task=null;if(this._state.aborted){this._shutdown();return}if(i){this.emit("error",i);setImmediate(d);return}this.emit("entry",p);this._entriesProcessedCount++;if(p.stats&&p.stats.size){this._fsEntriesProcessedBytes+=p.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(d)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new V("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(i){if(!this._module.supports||!this._module.supports[i]){return false}return this._module.supports[i]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(i,p){i=U.defaults(i,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(p&&i.stats===false){i.stats=p}var d=i.type==="directory";if(i.name){if(typeof i.prefix==="string"&&""!==i.prefix){i.name=i.prefix+"/"+i.name;i.prefix=null}i.name=U.sanitizePath(i.name);if(i.type!=="symlink"&&i.name.slice(-1)==="/"){d=true;i.type="directory"}else if(d){i.name+="/"}}if(typeof i.mode==="number"){if(ee){i.mode&=511}else{i.mode&=4095}}else if(i.stats&&i.mode===null){if(ee){i.mode=i.stats.mode&511}else{i.mode=i.stats.mode&4095}if(ee&&d){i.mode=493}}else if(i.mode===null){i.mode=d?493:420}if(i.stats&&i.date===null){i.date=i.stats.mtime}else{i.date=U.dateify(i.date)}return i};Archiver.prototype._onModuleError=function(i){this.emit("error",i)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&t
/**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var y=d(39023);const v={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 ArchiverError(i,p){Error.captureStackTrace(this,this.constructor);this.message=v[i]||i;this.code=i;this.data=p}y.inherits(ArchiverError,Error);p=i.exports=ArchiverError},98957:(i,p,d)=>{
/**
* JSON Format Plugin
*
* @module plugins/json
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var y=d(39023).inherits;var v=d(88523).Transform;var D=d(97965);var M=d(34747);var Json=function(i){if(!(this instanceof Json)){return new Json(i)}i=this.options=M.defaults(i,{});v.call(this,i);this.supports={directory:true,symlink:true};this.files=[]};y(Json,v);Json.prototype._transform=function(i,p,d){d(null,i)};Json.prototype._writeStringified=function(){var i=JSON.stringify(this.files);this.write(i)};Json.prototype.append=function(i,p,d){var y=this;p.crc32=0;function onend(i,v){if(i){d(i);return}p.size=v.length||0;p.crc32=D.unsigned(v);y.files.push(p);d(null,p)}if(p.sourceType==="buffer"){onend(null,i)}else if(p.sourceType==="stream"){M.collectStream(i,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};i.exports=Json},38628:(i,p,d)=>{
/**
* TAR Format Plugin
*
* @module plugins/tar
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var y=d(43106);var v=d(82753);var D=d(34747);var Tar=function(i){if(!(this instanceof Tar)){return new Tar(i)}i=this.options=D.defaults(i,{gzip:false});if(typeof i.gzipOptions!=="object"){i.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=v.pack(i);this.compressor=false;if(i.gzip){this.compressor=y.createGzip(i.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(i){this.engine.emit("error",i)};Tar.prototype.append=function(i,p,d){var y=this;p.mtime=p.date;function append(i,v){if(i){d(i);return}y.engine.entry(p,v,(function(i){d(i,p)}))}if(p.sourceType==="buffer"){append(null,i)}else if(p.sourceType==="stream"&&p.stats){p.size=p.stats.size;var v=y.engine.entry(p,(function(i){d(i,p)}));i.pipe(v)}else if(p.sourceType==="stream"){D.collectStream(i,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(i,p){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(i,p)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};i.exports=Tar},83964:(i,p,d)=>{
/**
* ZIP Format Plugin
*
* @module plugins/zip
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var y=d(88599);var v=d(34747);var Zip=function(i){if(!(this instanceof Zip)){return new Zip(i)}i=this.options=v.defaults(i,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new y(i)};Zip.prototype.append=function(i,p,d){this.engine.entry(i,p,d)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};i.exports=Zip},95990:function(i,p){(function(i,d){true?d(p):0})(this,(function(i){"use strict";function apply(i,...p){return(...d)=>i(...p,...d)}function initialParams(i){return function(...p){var d=p.pop();return i.call(this,p,d)}}var p=typeof queueMicrotask==="function"&&queueMicrotask;var d=typeof setImmediate==="function"&&setImmediate;var y=typeof process==="object"&&typeof process.nextTick==="function";function fallback(i){setTimeout(i,0)}function wrap(i){return(p,...d)=>i((()=>p(...d)))}var v;if(p){v=queueMicrotask}else if(d){v=setImmediate}else if(y){v=process.nextTick}else{v=fallback}var D=wrap(v);function asyncify(i){if(isAsync(i)){return function(...p){const d=p.pop();const y=i.apply(this,p);return handlePromise(y,d)}}return initialParams((function(p,d){var y;try{y=i.apply(this,p)}catch(i){return d(i)}if(y&&typeof y.then==="function"){return handlePromise(y,d)}else{d(null,y)}}))}function handlePromise(i,p){return i.then((i=>{invokeCallback(p,null,i)}),(i=>{invokeCallback(p,i&&(i instanceof Error||i.message)?i:new Error(i))}))}function invokeCallback(i,p,d){try{i(p,d)}catch(i){D((i=>{throw i}),i)}}function isAsync(i){return i[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(i){return i[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(i){return typeof i[Symbol.asyncIterator]==="function"}function wrapAsync(i){if(typeof i!=="function")throw new Error("expected a function");return isAsync(i)?asyncify(i):i}function awaitify(i,p){if(!p)p=i.length;if(!p)throw new Error("arity is undefined");function awaitable(...d){if(typeof d[p-1]==="function"){return i.apply(this,d)}return new Promise(((y,v)=>{d[p-1]=(i,...p)=>{if(i)return v(i);y(p.length>1?p:p[0])};i.apply(this,d)}))}return awaitable}function applyEach$1(i){return function applyEach(p,...d){const y=awaitify((function(y){var v=this;return i(p,((i,p)=>{wrapAsync(i).apply(v,d.concat(p))}),y)}));return y}}function _asyncMap(i,p,d,y){p=p||[];var v=[];var D=0;var M=wrapAsync(d);return i(p,((i,p,d)=>{var y=D++;M(i,((i,p)=>{v[y]=p;d(i)}))}),(i=>{y(i,v)}))}function isArrayLike(i){return i&&typeof i.length==="number"&&i.length>=0&&i.length%1===0}const M={};function once(i){function wrapper(...p){if(i===null)return;var d=i;i=null;d.apply(this,p)}Object.assign(wrapper,i);return wrapper}function getIterator(i){return i[Symbol.iterator]&&i[Symbol.iterator]()}function createArrayIterator(i){var p=-1;var d=i.length;return function next(){return++p<d?{value:i[p],key:p}:null}}function createES2015Iterator(i){var p=-1;return function next(){var d=i.next();if(d.done)return null;p++;return{value:d.value,key:p}}}function createObjectIterator(i){var p=i?Object.keys(i):[];var d=-1;var y=p.length;return function next(){var v=p[++d];if(v==="__proto__"){return next()}return d<y?{value:i[v],key:v}:null}}function createIterator(i){if(isArrayLike(i)){return createArrayIterator(i)}var p=getIterator(i);return p?createES2015Iterator(p):createObjectIterator(i)}function onlyOnce(i){return function(...p){if(i===null)throw new Error("Callback was already called.");var d=i;i=null;d.apply(this,p)}}function asyncEachOfLimit(i,p,d,y){let v=false;let D=false;let U=false;let j=0;let V=0;function replenish(){if(j>=p||U||v)return;U=true;i.next().then((({value:i,done:p})=>{if(D||v)return;U=false;if(p){v=true;if(j<=0){y(null)}return}j++;d(i,V,iterateeCallback);V++;replenish()})).catch(handleError)}function iterateeCallback(i,p){j-=1;if(D)return;if(i)return handleErr
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
var d;(function(i){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){i(p)}else{}}else{i(d={})}})((function(i){i.version="1.2.2";function signed_crc_table(){var i=0,p=new Array(256);for(var d=0;d!=256;++d){i=d;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;p[d]=i}return typeof Int32Array!=="undefined"?new Int32Array(p):p}var p=signed_crc_table();function slice_by_16_tables(i){var p=0,d=0,y=0,v=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(y=0;y!=256;++y)v[y]=i[y];for(y=0;y!=256;++y){d=i[y];for(p=256+y;p<4096;p+=256)d=v[p]=d>>>8^i[d&255]}var D=[];for(y=1;y!=16;++y)D[y-1]=typeof Int32Array!=="undefined"?v.subarray(y*256,y*256+256):v.slice(y*256,y*256+256);return D}var d=slice_by_16_tables(p);var y=d[0],v=d[1],D=d[2],M=d[3],U=d[4];var j=d[5],V=d[6],K=d[7],ee=d[8],te=d[9];var re=d[10],ne=d[11],ie=d[12],oe=d[13],se=d[14];function crc32_bstr(i,d){var y=d^-1;for(var v=0,D=i.length;v<D;)y=y>>>8^p[(y^i.charCodeAt(v++))&255];return~y}function crc32_buf(i,d){var ae=d^-1,le=i.length-15,ce=0;for(;ce<le;)ae=se[i[ce++]^ae&255]^oe[i[ce++]^ae>>8&255]^ie[i[ce++]^ae>>16&255]^ne[i[ce++]^ae>>>24]^re[i[ce++]]^te[i[ce++]]^ee[i[ce++]]^K[i[ce++]]^V[i[ce++]]^j[i[ce++]]^U[i[ce++]]^M[i[ce++]]^D[i[ce++]]^v[i[ce++]]^y[i[ce++]]^p[i[ce++]];le+=15;while(ce<le)ae=ae>>>8^p[(ae^i[ce++])&255];return~ae}function crc32_str(i,d){var y=d^-1;for(var v=0,D=i.length,M=0,U=0;v<D;){M=i.charCodeAt(v++);if(M<128){y=y>>>8^p[(y^M)&255]}else if(M<2048){y=y>>>8^p[(y^(192|M>>6&31))&255];y=y>>>8^p[(y^(128|M&63))&255]}else if(M>=55296&&M<57344){M=(M&1023)+64;U=i.charCodeAt(v++)&1023;y=y>>>8^p[(y^(240|M>>8&7))&255];y=y>>>8^p[(y^(128|M>>2&63))&255];y=y>>>8^p[(y^(128|U>>6&15|(M&3)<<4))&255];y=y>>>8^p[(y^(128|U&63))&255]}else{y=y>>>8^p[(y^(224|M>>12&15))&255];y=y>>>8^p[(y^(128|M>>6&63))&255];y=y>>>8^p[(y^(128|M&63))&255]}}return~y}i.table=p;i.bstr=crc32_bstr;i.buf=crc32_buf;i.str=crc32_str}))},8896:(i,p,d)=>{"use strict";const{Transform:y}=d(88523);const v=d(83778);class CRC32Stream extends y{constructor(i){super(i);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(i,p,d){if(i){this.checksum=v.buf(i,this.checksum)>>>0;this.rawSize+=i.length}d(null,i)}digest(i){const p=Buffer.allocUnsafe(4);p.writeUInt32BE(this.checksum>>>0,0);return i?p.toString(i):p}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}i.exports=CRC32Stream},48378:(i,p,d)=>{"use strict";const{DeflateRaw:y}=d(43106);const v=d(83778);class DeflateCRC32Stream extends y{constructor(i){super(i);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(i,p){if(i){this.compressedSize+=i.length}return super.push(i,p)}_transform(i,p,d){if(i){this.checksum=v.buf(i,this.checksum)>>>0;this.rawSize+=i.length}super._transform(i,p,d)}digest(i){const p=Buffer.allocUnsafe(4);p.writeUInt32BE(this.checksum>>>0,0);return i?p.toString(i):p}hex(){return this.digest("hex").toUpperCase()}size(i=false){if(i){return this.compressedSize}else{return this.rawSize}}}i.exports=DeflateCRC32Stream},6504:(i,p,d)=>{"use strict";i.exports={CRC32Stream:d(8896),DeflateCRC32Stream:d(48378)}},44468:(i,p,d)=>{p.formatArgs=formatArgs;p.save=save;p.load=load;p.useColors=useColors;p.storage=localstorage();p.destroy=(()=>{let i=false;return()=>{if(!i){i=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();p.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* @copyright 2015 Toru Nagashima. All rights reserved.
* See LICENSE file in root directory for full license.
*/Object.defineProperty(p,"__esModule",{value:true});const d=new WeakMap;const y=new WeakMap;function pd(i){const p=d.get(i);console.assert(p!=null,"'this' is expected an Event object, but got",i);return p}function setCancelFlag(i){if(i.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",i.passiveListener)}return}if(!i.event.cancelable){return}i.canceled=true;if(typeof i.event.preventDefault==="function"){i.event.preventDefault()}}function Event(i,p){d.set(this,{eventTarget:i,event:p,eventPhase:2,currentTarget:i,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:p.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const y=Object.keys(p);for(let i=0;i<y.length;++i){const p=y[i];if(!(p in this)){Object.defineProperty(this,p,defineRedirectDescriptor(p))}}}Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const i=pd(this).currentTarget;if(i==null){return[]}return[i]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const i=pd(this);i.stopped=true;if(typeof i.event.stopPropagation==="function"){i.event.stopPropagation()}},stopImmediatePropagation(){const i=pd(this);i.stopped=true;i.immediateStopped=true;if(typeof i.event.stopImmediatePropagation==="function"){i.event.stopImmediatePropagation()}},get bubbles(){return Boolean(pd(this).event.bubbles)},get cancelable(){return Boolean(pd(this).event.cancelable)},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return Boolean(pd(this).event.composed)},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(i){if(!i){return}const p=pd(this);p.stopped=true;if(typeof p.event.cancelBubble==="boolean"){p.event.cancelBubble=true}},get returnValue(){return!pd(this).canceled},set returnValue(i){if(!i){setCancelFlag(pd(this))}},initEvent(){}};Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(Event.prototype,window.Event.prototype);y.set(window.Event.prototype,Event)}function defineRedirectDescriptor(i){return{get(){return pd(this).event[i]},set(p){pd(this).event[i]=p},configurable:true,enumerable:true}}function defineCallDescriptor(i){return{value(){const p=pd(this).event;return p[i].apply(p,arguments)},configurable:true,enumerable:true}}function defineWrapper(i,p){const d=Object.keys(p);if(d.length===0){return i}function CustomEvent(p,d){i.call(this,p,d)}CustomEvent.prototype=Object.create(i.prototype,{constructor:{value:CustomEvent,configurable:true,writable:true}});for(let y=0;y<d.length;++y){const v=d[y];if(!(v in i.prototype)){const i=Object.getOwnPropertyDescriptor(p,v);const d=typeof i.value==="function";Object.defineProperty(CustomEvent.prototype,v,d?defineCallDescriptor(v):defineRedirectDescriptor(v))}}return CustomEvent}function getWrapper(i){if(i==null||i===Object.prototype){return Event}let p=y.get(i);if(p==null){p=defineWrapper(getWrapper(Object.getPrototypeOf(i)),i);y.set(i,p)}return p}function wrapEvent(i,p){const d=getWrapper(Object.getPrototypeOf(p));return new d(i,p)}function isStopped(i){return pd(i).immediateStopped}function setEventPhase(i,p){pd(i).eventPhase=p}function setCurrentTarget(i,p){pd(i).currentTarget=p}function setPassiveListener(i,p){pd(i).passiveListener=p}const v=new WeakMap;const D=1;const M=2;const U=3;function isObject(i){return i!==null&&typeof i==="object"}function getListeners(i){const p=v.get(i);if(p==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return p}function defineEventAttributeDescri
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(d){var y=true&&p;var v=true&&i&&i.exports==y&&i;var D=typeof global=="object"&&global;if(D.global===D||D.window===D){d=D}var M=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var U=/[\x01-\x7F]/g;var j=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;var V=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g;var K={"­":"shy","":"zwnj","":"zwj","":"lrm","":"ic","":"it","":"af","":"rlm","":"ZeroWidthSpace","":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine","":"puncsp","":"MediumSpace","":"thinsp","":"hairsp","":"emsp13","":"ensp","":"emsp14","":"emsp","":"numsp"," ":"nbsp","":"ThickSpace","‾":"oline",_:"lowbar","":"dash","":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(i){return Object.prototype.toString.call(i)==="[object Object]"}function isPlainObject(i){var p,d;if(isObject(i)===false)return false;p=i.constructor;if(p===undefined)return true;d=p.prototype;if(isObject(d)===false)return false;if(d.hasOwnProperty("isPrototypeOf")===false){return false}return true}p.isPlainObject=isPlainObject},36758:i=>{"use strict";const p=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);i.exports=i=>!p.has(i&&i.code)},53187:i=>{"use strict";const isStream=i=>i!==null&&typeof i==="object"&&typeof i.pipe==="function";isStream.writable=i=>isStream(i)&&i.writable!==false&&typeof i._write==="function"&&typeof i._writableState==="object";isStream.readable=i=>isStream(i)&&i.readable!==false&&typeof i._read==="function"&&typeof i._readableState==="object";isStream.duplex=i=>isStream.writable(i)&&isStream.readable(i);isStream.transform=i=>isStream.duplex(i)&&typeof i._transform==="function";i.exports=isStream},94057:i=>{var p={}.toString;i.exports=Array.isArray||function(i){return p.call(i)=="[object Array]"}},39885:(i,p,d)=>{"use strict";var y=d(71426);var v=d(6032);function renamed(i,p){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. "+"Use yaml."+p+" instead, which is now safe by default.")}}i.exports.Type=d(54841);i.exports.Schema=d(86498);i.exports.FAILSAFE_SCHEMA=d(34780);i.exports.JSON_SCHEMA=d(19091);i.exports.CORE_SCHEMA=d(14070);i.exports.DEFAULT_SCHEMA=d(70100);i.exports.load=y.load;i.exports.loadAll=y.loadAll;i.exports.dump=v.dump;i.exports.YAMLException=d(51140);i.exports.types={binary:d(49921),float:d(36492),map:d(26664),null:d(56481),pairs:d(18951),set:d(94706),timestamp:d(17466),bool:d(9404),int:d(94891),merge:d(35170),omap:d(55837),seq:d(5469),str:d(42301)};i.exports.safeLoad=renamed("safeLoad","load");i.exports.safeLoadAll=renamed("safeLoadAll","loadAll");i.exports.safeDump=renamed("safeDump","dump")},29652:i=>{"use strict";function isNothing(i){return typeof i==="undefined"||i===null}function isObject(i){return typeof i==="object"&&i!==null}function toArray(i){if(Array.isArray(i))return i;else if(isNothing(i))return[];return[i]}function extend(i,p){var d,y,v,D;if(p){D=Object.keys(p);for(d=0,y=D.length;d<y;d+=1){v=D[d];i[v]=p[v]}}return i}function repeat(i,p){var d="",y;for(y=0;y<p;y+=1){d+=i}return d}function isNegativeZero(i){return i===0&&Number.NEGATIVE_INFINITY===1/i}i.exports.isNothing=isNothing;i.exports.isObject=isObject;i.exports.toArray=toArray;i.exports.repeat=repeat;i.exports.isNegativeZero=isNegativeZero;i.exports.extend=extend},6032:(i,p,d)=>{"use strict";var y=d(29652);var v=d(51140);var D=d(70100);var M=Object.prototype.toString;var U=Object.prototype.hasOwnProperty;var j=65279;var V=9;var K=10;var ee=13;var te=32;var re=33;var ne=34;var ie=35;var oe=37;var se=38;var ae=39;var le=42;var ce=44;var ue=45;var pe=58;var de=61;var fe=62;var me=63;var he=64;var Ae=91;var ge=93;var ye=96;var be=123;var Ee=124;var ve=125;var Ce={};Ce[0]="\\0";Ce[7]="\\a";Ce[8]="\\b";Ce[9]="\\t";Ce[10]="\\n";Ce[11]="\\v";Ce[12]="\\f";Ce[13]="\\r";Ce[27]="\\e";Ce[34]='\\"';Ce[92]="\\\\";Ce[133]="\\N";Ce[160]="\\_";Ce[8232]="\\L";Ce[8233]="\\P";var we=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var Se=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(i,p){var d,y,v,D,M,j,V;if(p===null)return{};d={};y=Object.keys(p);for(v
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/
i.exports=d(47080)},56553:(i,p,d)=>{"use strict";
/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var y=d(18936);var v=d(16928).extname;var D=/^\s*([^;\s]*)(?:;|\s|$)/;var M=/^text\//i;p.charset=charset;p.charsets={lookup:charset};p.contentType=contentType;p.extension=extension;p.extensions=Object.create(null);p.lookup=lookup;p.types=Object.create(null);populateMaps(p.extensions,p.types);function charset(i){if(!i||typeof i!=="string"){return false}var p=D.exec(i);var d=p&&y[p[1].toLowerCase()];if(d&&d.charset){return d.charset}if(p&&M.test(p[1])){return"UTF-8"}return false}function contentType(i){if(!i||typeof i!=="string"){return false}var d=i.indexOf("/")===-1?p.lookup(i):i;if(!d){return false}if(d.indexOf("charset")===-1){var y=p.charset(d);if(y)d+="; charset="+y.toLowerCase()}return d}function extension(i){if(!i||typeof i!=="string"){return false}var d=D.exec(i);var y=d&&p.extensions[d[1].toLowerCase()];if(!y||!y.length){return false}return y[0]}function lookup(i){if(!i||typeof i!=="string"){return false}var d=v("x."+i).toLowerCase().substr(1);if(!d){return false}return p.types[d]||false}function populateMaps(i,p){var d=["nginx","apache",undefined,"iana"];Object.keys(y).forEach((function forEachMimeType(v){var D=y[v];var M=D.extensions;if(!M||!M.length){return}i[v]=M;for(var U=0;U<M.length;U++){var j=M[U];if(p[j]){var V=d.indexOf(y[p[j]].source);var K=d.indexOf(D.source);if(p[j]!=="application/octet-stream"&&(V>K||V===K&&p[j].substr(0,12)==="application/")){continue}}p[j]=v}}))}},96274:(i,p,d)=>{i.exports=minimatch;minimatch.Minimatch=Minimatch;var y=function(){try{return d(16928)}catch(i){}}()||{sep:"/"};minimatch.sep=y.sep;var v=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var D=d(73443);var M={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var U="[^/]";var j=U+"*?";var V="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var K="(?:(?!(?:\\/|^)\\.).)*?";var ee=charSet("().*{}+?[]^$\\!");function charSet(i){return i.split("").reduce((function(i,p){i[p]=true;return i}),{})}var te=/\/+/;minimatch.filter=filter;function filter(i,p){p=p||{};return function(d,y,v){return minimatch(d,i,p)}}function ext(i,p){p=p||{};var d={};Object.keys(i).forEach((function(p){d[p]=i[p]}));Object.keys(p).forEach((function(i){d[i]=p[i]}));return d}minimatch.defaults=function(i){if(!i||typeof i!=="object"||!Object.keys(i).length){return minimatch}var p=minimatch;var d=function minimatch(d,y,v){return p(d,y,ext(i,v))};d.Minimatch=function Minimatch(d,y){return new p.Minimatch(d,ext(i,y))};d.Minimatch.defaults=function defaults(d){return p.defaults(ext(i,d)).Minimatch};d.filter=function filter(d,y){return p.filter(d,ext(i,y))};d.defaults=function defaults(d){return p.defaults(ext(i,d))};d.makeRe=function makeRe(d,y){return p.makeRe(d,ext(i,y))};d.braceExpand=function braceExpand(d,y){return p.braceExpand(d,ext(i,y))};d.match=function(d,y,v){return p.match(d,y,ext(i,v))};return d};Minimatch.defaults=function(i){return minimatch.defaults(i).Minimatch};function minimatch(i,p,d){assertValidPattern(p);if(!d)d={};if(!d.nocomment&&p.charAt(0)==="#"){return false}return new Minimatch(p,d).match(i)}function Minimatch(i,p){if(!(this instanceof Minimatch)){return new Minimatch(i,p)}assertValidPattern(i);if(!p)p={};i=i.trim();if(!p.allowWindowsEscape&&y.sep!=="/"){i=i.split(y.sep).join("/")}this.options=p;this.set=[];this.pattern=i;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!p.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var i=this.pattern;var p=this.options;if(!p.nocomment&&i.charAt(0)==="#"){this.comment=true;return}if(!i){this.empty=true;return}this.parseNegate();var d=this.globSet=this.braceExpand();if(p.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,d);d=this.globParts=d.map((function(i){return i.split(te)}));this.debug(this.pattern,d);d=d.map((function(i,p,d){return i.map(this.parse,this)}),this);this.debug(this.pattern,d);d=d.filter((function(i){return i.indexOf(false)===-1}));this.debug(this.patter
/*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*/
i.exports=function(i,p){if(typeof i!=="string"){throw new TypeError("expected path to be a string")}if(i==="\\"||i==="/")return"/";var d=i.length;if(d<=1)return i;var y="";if(d>4&&i[3]==="\\"){var v=i[2];if((v==="?"||v===".")&&i.slice(0,2)==="\\\\"){i=i.slice(2);y="//"}}var D=i.split(/[/\\]+/);if(p!==false&&D[D.length-1]===""){D.pop()}return y+D.join("/")}},98068:(i,p,d)=>{var y=d(58092);i.exports=y(once);i.exports.strict=y(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(i){var f=function(){if(f.called)return f.value;f.called=true;return f.value=i.apply(this,arguments)};f.called=false;return f}function onceStrict(i){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=i.apply(this,arguments)};var p=i.name||"Function wrapped with `once`";f.onceError=p+" shouldn't be called more than once";f.called=false;return f}},11847:i=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){i.exports={nextTick:nextTick}}else{i.exports=process}function nextTick(i,p,d,y){if(typeof i!=="function"){throw new TypeError('"callback" argument must be a function')}var v=arguments.length;var D,M;switch(v){case 0:case 1:return process.nextTick(i);case 2:return process.nextTick((function afterTickOne(){i.call(null,p)}));case 3:return process.nextTick((function afterTickTwo(){i.call(null,p,d)}));case 4:return process.nextTick((function afterTickThree(){i.call(null,p,d,y)}));default:D=new Array(v-1);M=0;while(M<D.length){D[M++]=arguments[M]}return process.nextTick((function afterTick(){i.apply(null,D)}))}}},10125:i=>{i.exports=global.process},47561:(i,p,d)=>{"use strict";var y=d(11847);var v=Object.keys||function(i){var p=[];for(var d in i){p.push(d)}return p};i.exports=Duplex;var D=Object.create(d(19810));D.inherits=d(84070);var M=d(36319);var U=d(50227);D.inherits(Duplex,M);{var j=v(U.prototype);for(var V=0;V<j.length;V++){var K=j[V];if(!Duplex.prototype[K])Duplex.prototype[K]=U.prototype[K]}}function Duplex(i){if(!(this instanceof Duplex))return new Duplex(i);M.call(this,i);U.call(this,i);if(i&&i.readable===false)this.readable=false;if(i&&i.writable===false)this.writable=false;this.allowHalfOpen=true;if(i&&i.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;y.nextTick(onEndNT,this)}function onEndNT(i){i.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(i){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=i;this._writableState.destroyed=i}});Duplex.prototype._destroy=function(i,p){this.push(null);this.end();y.nextTick(p,i)}},67741:(i,p,d)=>{"use strict";i.exports=PassThrough;var y=d(55167);var v=Object.create(d(19810));v.inherits=d(84070);v.inherits(PassThrough,y);function PassThrough(i){if(!(this instanceof PassThrough))return new PassThrough(i);y.call(this,i)}PassThrough.prototype._transform=function(i,p,d){d(null,i)}},36319:(i,p,d)=>{"use strict";var y=d(11847);i.exports=Readable;var v=d(94057);var D;Readable.ReadableState=ReadableState;var M=d(24434).EventEmitter;var EElistenerCount=function(i,p){return i.listeners(p).length};var U=d(48705);var j=d(56912).Buffer;var V=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(i){return j.from(i)}function _isUint8Array(i){return j.isBuffer(i)||i inst
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var y=d(20181);var v=y.Buffer;function copyProps(i,p){for(var d in i){p[d]=i[d]}}if(v.from&&v.alloc&&v.allocUnsafe&&v.allocUnsafeSlow){i.exports=y}else{copyProps(y,p);p.Buffer=SafeBuffer}function SafeBuffer(i,p,d){return v(i,p,d)}SafeBuffer.prototype=Object.create(v.prototype);copyProps(v,SafeBuffer);SafeBuffer.from=function(i,p,d){if(typeof i==="number"){throw new TypeError("Argument must not be a number")}return v(i,p,d)};SafeBuffer.alloc=function(i,p,d){if(typeof i!=="number"){throw new TypeError("Argument must be a number")}var y=v(i);if(p!==undefined){if(typeof d==="string"){y.fill(p,d)}else{y.fill(p)}}else{y.fill(0)}return y};SafeBuffer.allocUnsafe=function(i){if(typeof i!=="number"){throw new TypeError("Argument must be a number")}return v(i)};SafeBuffer.allocUnsafeSlow=function(i){if(typeof i!=="number"){throw new TypeError("Argument must be a number")}return y.SlowBuffer(i)}},88804:(i,p)=>{p=i.exports=SemVer;var d;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){d=function(){var i=Array.prototype.slice.call(arguments,0);i.unshift("SEMVER");console.log.apply(console,i)}}else{d=function(){}}p.SEMVER_SPEC_VERSION="2.0.0";var y=256;var v=Number.MAX_SAFE_INTEGER||9007199254740991;var D=16;var M=y-6;var U=p.re=[];var j=p.safeRe=[];var V=p.src=[];var K=p.tokens={};var ee=0;function tok(i){K[i]=ee++}var te="[a-zA-Z0-9-]";var re=[["\\s",1],["\\d",y],[te,M]];function makeSafeRe(i){for(var p=0;p<re.length;p++){var d=re[p][0];var y=re[p][1];i=i.split(d+"*").join(d+"{0,"+y+"}").split(d+"+").join(d+"{1,"+y+"}")}return i}tok("NUMERICIDENTIFIER");V[K.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");V[K.NUMERICIDENTIFIERLOOSE]="\\d+";tok("NONNUMERICIDENTIFIER");V[K.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+te+"*";tok("MAINVERSION");V[K.MAINVERSION]="("+V[K.NUMERICIDENTIFIER]+")\\."+"("+V[K.NUMERICIDENTIFIER]+")\\."+"("+V[K.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");V[K.MAINVERSIONLOOSE]="("+V[K.NUMERICIDENTIFIERLOOSE]+")\\."+"("+V[K.NUMERICIDENTIFIERLOOSE]+")\\."+"("+V[K.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");V[K.PRERELEASEIDENTIFIER]="(?:"+V[K.NUMERICIDENTIFIER]+"|"+V[K.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");V[K.PRERELEASEIDENTIFIERLOOSE]="(?:"+V[K.NUMERICIDENTIFIERLOOSE]+"|"+V[K.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");V[K.PRERELEASE]="(?:-("+V[K.PRERELEASEIDENTIFIER]+"(?:\\."+V[K.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");V[K.PRERELEASELOOSE]="(?:-?("+V[K.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+V[K.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");V[K.BUILDIDENTIFIER]=te+"+";tok("BUILD");V[K.BUILD]="(?:\\+("+V[K.BUILDIDENTIFIER]+"(?:\\."+V[K.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");V[K.FULLPLAIN]="v?"+V[K.MAINVERSION]+V[K.PRERELEASE]+"?"+V[K.BUILD]+"?";V[K.FULL]="^"+V[K.FULLPLAIN]+"$";tok("LOOSEPLAIN");V[K.LOOSEPLAIN]="[v=\\s]*"+V[K.MAINVERSIONLOOSE]+V[K.PRERELEASELOOSE]+"?"+V[K.BUILD]+"?";tok("LOOSE");V[K.LOOSE]="^"+V[K.LOOSEPLAIN]+"$";tok("GTLT");V[K.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");V[K.XRANGEIDENTIFIERLOOSE]=V[K.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");V[K.XRANGEIDENTIFIER]=V[K.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");V[K.XRANGEPLAIN]="[v=\\s]*("+V[K.XRANGEIDENTIFIER]+")"+"(?:\\.("+V[K.XRANGEIDENTIFIER]+")"+"(?:\\.("+V[K.XRANGEIDENTIFIER]+")"+"(?:"+V[K.PRERELEASE]+")?"+V[K.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");V[K.XRANGEPLAINLOOSE]="[v=\\s]*("+V[K.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+V[K.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+V[K.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+V[K.PRERELEASELOOSE]+")?"+V[K.BUILD]+"?"+")?)?";tok("XRANGE");V[K.XRANGE]="^"+V[K.GTLT]+"\\s*"+V[K.XRANGEPLAIN]+"$";tok("XRANGELOOSE");V[K.XRANGELOOSE]="^"+V[K.GTLT]+"\\s*"+V[K.XRANGEPLAINLOOSE]+"$";tok("COERCE");V[K.COERCE]="(^|[^\\d])"+"(\\d{1,"+D+"})"+"(?:\\.(\\d{1,"+D+"}))?"+"(?:\\.(\\d{1,"+D+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");U[K.COERCERTL]=new RegExp(V[K.COERCE],"g");j[K.COERCERTL]=new RegExp(makeSafeRe(V[K.COERCE]),"g");tok("LONETILDE");V[K.LONETILDE]="(?:~>?)";tok("TILDE
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/
const y=d(79896);const v=d(70857);const D=d(16928);const M=d(76982);const U={fs:y.constants,os:v.constants};const j="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",V=/XXXXXX/,K=3,ee=(U.O_CREAT||U.fs.O_CREAT)|(U.O_EXCL||U.fs.O_EXCL)|(U.O_RDWR||U.fs.O_RDWR),te=v.platform()==="win32",re=U.EBADF||U.os.errno.EBADF,ne=U.ENOENT||U.os.errno.ENOENT,ie=448,oe=384,se="exit",ae=[],le=y.rmdirSync.bind(y);let ce=false;function rimraf(i,p){return y.rm(i,{recursive:true},p)}function FN_RIMRAF_SYNC(i){return y.rmSync(i,{recursive:true})}function tmpName(i,p){const d=_parseArguments(i,p),v=d[0],D=d[1];try{_assertAndSanitizeOptions(v)}catch(i){return D(i)}let M=v.tries;(function _getUniqueName(){try{const i=_generateTmpName(v);y.stat(i,(function(p){if(!p){if(M-- >0)return _getUniqueName();return D(new Error("Could not get a unique tmp filename, max tries reached "+i))}D(null,i)}))}catch(i){D(i)}})()}function tmpNameSync(i){const p=_parseArguments(i),d=p[0];_assertAndSanitizeOptions(d);let v=d.tries;do{const i=_generateTmpName(d);try{y.statSync(i)}catch(p){return i}}while(v-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(i,p){const d=_parseArguments(i,p),v=d[0],D=d[1];tmpName(v,(function _tmpNameCreated(i,p){if(i)return D(i);y.open(p,ee,v.mode||oe,(function _fileCreated(i,d){if(i)return D(i);if(v.discardDescriptor){return y.close(d,(function _discardCallback(i){return D(i,p,undefined,_prepareTmpFileRemoveCallback(p,-1,v,false))}))}else{const i=v.discardDescriptor||v.detachDescriptor;D(null,p,d,_prepareTmpFileRemoveCallback(p,i?-1:d,v,false))}}))}))}function fileSync(i){const p=_parseArguments(i),d=p[0];const v=d.discardDescriptor||d.detachDescriptor;const D=tmpNameSync(d);var M=y.openSync(D,ee,d.mode||oe);if(d.discardDescriptor){y.closeSync(M);M=undefined}return{name:D,fd:M,removeCallback:_prepareTmpFileRemoveCallback(D,v?-1:M,d,true)}}function dir(i,p){const d=_parseArguments(i,p),v=d[0],D=d[1];tmpName(v,(function _tmpNameCreated(i,p){if(i)return D(i);y.mkdir(p,v.mode||ie,(function _dirCreated(i){if(i)return D(i);D(null,p,_prepareTmpDirRemoveCallback(p,v,false))}))}))}function dirSync(i){const p=_parseArguments(i),d=p[0];const v=tmpNameSync(d);y.mkdirSync(v,d.mode||ie);return{name:v,removeCallback:_prepareTmpDirRemoveCallback(v,d,true)}}function _removeFileAsync(i,p){const _handler=function(i){if(i&&!_isENOENT(i)){return p(i)}p()};if(0<=i[0])y.close(i[0],(function(){y.unlink(i[1],_handler)}));else y.unlink(i[1],_handler)}function _removeFileSync(i){let p=null;try{if(0<=i[0])y.closeSync(i[0])}catch(i){if(!_isEBADF(i)&&!_isENOENT(i))throw i}finally{try{y.unlinkSync(i[1])}catch(i){if(!_isENOENT(i))p=i}}if(p!==null){throw p}}function _prepareTmpFileRemoveCallback(i,p,d,y){const v=_prepareRemoveCallback(_removeFileSync,[p,i],y);const D=_prepareRemoveCallback(_removeFileAsync,[p,i],y,v);if(!d.keep)ae.unshift(v);return y?v:D}function _prepareTmpDirRemoveCallback(i,p,d){const v=p.unsafeCleanup?rimraf:y.rmdir.bind(y);const D=p.unsafeCleanup?FN_RIMRAF_SYNC:le;const M=_prepareRemoveCallback(D,i,d);const U=_prepareRemoveCallback(v,i,d,M);if(!p.keep)ae.unshift(M);return d?M:U}function _prepareRemoveCallback(i,p,d,y){let v=false;return function _cleanupCallback(D){if(!v){const M=y||_cleanupCallback;const U=ae.indexOf(M);if(U>=0)ae.splice(U,1);v=true;if(d||i===le||i===FN_RIMRAF_SYNC){return i(p)}else{return i(p,D||function(){})}}}}function _garbageCollector(){if(!ce)return;while(ae.length){try{ae[0]()}catch(i){}}}function _randomChars(i){let p=[],d=null;try{d=M.randomBytes(i)}catch(p){d=M.pseudoRandomBytes(i)}for(var y=0;y<i;y++){p.push(j[d[y]%j.length])}return p.join("")}function _isBlank(i){return i===null||_isUndefined(i)||!i.trim()}function _isUndefined(i){return typeof i==="undefined"}function _parseArguments(i,p){if(typeof i==="function"){return[{},i]}if(_isUndefined(i)){return[{},p]}const d={};for(const p of Object.getOwnPropertyNames(i)){d[p]=i[p]}return[d,p]}function _generateTmpName(i){const p=i.tmpdir;if(!_isUndefined(i.name))return D.join(p,i.dir,i.name);if(!_isUndefined(i.templa
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=i=>i.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=i=>i.replace(/\r?\n|\r/g,"\r\n");const y=[];const v=new Uint8Array([13,10]);ee=0;let D=false;for(const[p,M]of i){if(typeof M==="string"){const i=ye.encode(d+`; name="${escape(normalizeLinefeeds(p))}"`+`\r\n\r\n${normalizeLinefeeds(M)}\r\n`);y.push(i);ee+=i.byteLength}else{const i=ye.encode(`${d}; name="${escape(normalizeLinefeeds(p))}"`+(M.name?`; filename="${escape(M.name)}"`:"")+"\r\n"+`Content-Type: ${M.type||"application/octet-stream"}\r\n\r\n`);y.push(i,M,v);if(typeof M.size==="number"){ee+=i.byteLength+M.size+v.byteLength}else{D=true}}}const M=ye.encode(`--${p}--`);y.push(M);ee+=M.byteLength;if(D){ee=null}K=i;V=async function*(){for(const i of y){if(i.stream){yield*i.stream()}else{yield i}}};te="multipart/form-data; boundary="+p}else if(M(i)){K=i;ee=i.size;if(i.type){te=i.type}}else if(typeof i[Symbol.asyncIterator]==="function"){if(p){throw new TypeError("keepalive")}if(v.isDisturbed(i)||i.locked){throw new TypeError("Response body object should not be disturbed or locked")}y=i instanceof Ae?i:D(i)}if(typeof K==="string"||v.isBuffer(K)){ee=Buffer.byteLength(K)}if(V!=null){let p;y=new Ae({async start(){p=V(i)[Symbol.asyncIterator]()},async pull(i){const{value:d,done:v}=await p.next();if(v){queueMicrotask((()=>{i.close()}))}else{if(!ce(y)){i.enqueue(new Uint8Array(d))}}return i.desiredSize>0},async cancel(i){await p.return()},type:undefined})}const re={stream:y,source:K,length:ee};return[re,te]}function safelyExtractBody(i,p=false){if(!Ae){Ae=d(63774).ReadableStream}if(i instanceof Ae){le(!v.isDisturbed(i),"The body has already been consumed.");le(!i.locked,"The stream is locked.")}return extractBody(i,p)}function cloneBody(i){const[p,d]=i.stream.tee();const y=ie(d,{transfer:[d]});const[,v]=y.tee();i.stream=p;return{stream:v,length:i.length,source:i.source}}async function*consumeBody(i){if(i){if(ue(i)){yield i}else{const p=i.stream;if(v.isDisturbed(p)){throw new TypeError("The body has already been consumed.")}if(p.locked){throw new TypeError("The stream is locked.")}p[ae]=true;yield*p}}}function throwIfAborted(i){if(i.aborted){throw new ne("The operation was aborted.","AbortError")}}function bodyMixinMethods(i){const p={blob(){return specConsumeBody(this,(i=>{let p=bodyMimeType(this);if(p==="failure"){p=""}else if(p){p=me(p)}return new oe([i],{type:p})}),i)},arrayBuffer(){return specConsumeBody(this,(i=>new Uint8Array(i).buffer),i)},text(){return specConsumeBody(this,utf8DecodeBytes,i)},json(){return specConsumeBody(this,parseJSONFromBytes,i)},async formData(){re.brandCheck(this,i);throwIfAborted(this[te]);const p=this.headers.get("Content-Type");if(/multipart\/form-data/.test(p)){const i={};for(const[p,d]of this.headers)i[p.toLowerCase()]=d;const p=new ee;let d;try{d=new y({headers:i,preservePath:true})}catch(i){throw new ne(`${i}`,"AbortError")}d.on("field",((i,d)=>{p.append(i,d)}));d.on("file",((i,d,y,v,D)=>{const M=[];if(v==="base64"||v.toLowerCase()==="base64"){let v="";d.on("data",(i=>{v+=i.toString().replace(/[\r\n]/gm,"");const p=v.length-v.length%4;M.push(Buffer.from(v.slice(0,p),"base64"));v=v.slice(p)}));d.on("end",(()=>{M.push(Buffer.from(v,"base64"));p.append(i,new ge(M,y,{type:D}))}))}else{d.on("data",(i=>{M.push(i)}));d.on("end",(()=>{p.append(i,new ge(M,y,{type:D}))}))}}));const v=new Promise(((i,p)=>{d.on("finish",i);d.on("error",(i=>p(new TypeError(i))))}));if(this.body!==null)for await(const i of consumeBody(this[te].body))d.write(i);d.end();await v;return p}else if(/application\/x-www-form-urlencoded/.test(p)){let i;try{let p="";const d=new TextDecoder("utf-8",{ignoreBOM:true});for await(const i of consumeBody(this[te].body)){if(!ue(i)){throw new TypeError("Expected Uint8Array chunk")}p+=d.decode(i,{stream:true})}p+=d.decode();i=new URLSearchParams(p)}catch(i){throw Object.assign(new TypeError,{cause:i})}const p=new ee;for(const[d,y]of i){p.append(d,y)}return p}else{await Promise.resolve();throwIfAbor
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */D[v-4]=this.maskKey[0];D[v-3]=this.maskKey[1];D[v-2]=this.maskKey[2];D[v-1]=this.maskKey[3];D[1]=d;if(d===126){D.writeUInt16BE(p,2)}else if(d===127){D[2]=D[3]=0;D.writeUIntBE(p,4,6)}D[1]|=128;for(let i=0;i<p;i++){D[v+i]=this.frameData[i]^this.maskKey[i%4]}return D}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},60833:(i,p,d)=>{"use strict";const{Writable:y}=d(2203);const v=d(31637);const{parserStates:D,opcodes:M,states:U,emptyBuffer:j}=d(67875);const{kReadyState:V,kSentClose:K,kResponse:ee,kReceivedClose:te}=d(16063);const{isValidStatusCode:re,failWebsocketConnection:ne,websocketMessageReceived:ie}=d(10588);const{WebsocketFrameSend:oe}=d(54391);const se={};se.ping=v.channel("undici:websocket:ping");se.pong=v.channel("undici:websocket:pong");class ByteParser extends y{#s=[];#a=0;#l=D.INFO;#c={};#u=[];constructor(i){super();this.ws=i}_write(i,p,d){this.#s.push(i);this.#a+=i.length;this.run(d)}run(i){while(true){if(this.#l===D.INFO){if(this.#a<2){return i()}const p=this.consume(2);this.#c.fin=(p[0]&128)!==0;this.#c.opcode=p[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==M.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==M.BINARY&&this.#c.opcode!==M.TEXT){ne(this.ws,"Invalid frame type was fragmented.");return}const d=p[1]&127;if(d<=125){this.#c.payloadLength=d;this.#l=D.READ_DATA}else if(d===126){this.#l=D.PAYLOADLENGTH_16}else if(d===127){this.#l=D.PAYLOADLENGTH_64}if(this.#c.fragmented&&d>125){ne(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===M.PING||this.#c.opcode===M.PONG||this.#c.opcode===M.CLOSE)&&d>125){ne(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===M.CLOSE){if(d===1){ne(this.ws,"Received close frame with a 1-byte body.");return}const i=this.consume(d);this.#c.closeInfo=this.parseCloseBody(false,i);if(!this.ws[K]){const i=Buffer.allocUnsafe(2);i.writeUInt16BE(this.#c.closeInfo.code,0);const p=new oe(i);this.ws[ee].socket.write(p.createFrame(M.CLOSE),(i=>{if(!i){this.ws[K]=true}}))}this.ws[V]=U.CLOSING;this.ws[te]=true;this.end();return}else if(this.#c.opcode===M.PING){const p=this.consume(d);if(!this.ws[te]){const i=new oe(p);this.ws[ee].socket.write(i.createFrame(M.PONG));if(se.ping.hasSubscribers){se.ping.publish({payload:p})}}this.#l=D.INFO;if(this.#a>0){continue}else{i();return}}else if(this.#c.opcode===M.PONG){const p=this.consume(d);if(se.pong.hasSubscribers){se.pong.publish({payload:p})}if(this.#a>0){continue}else{i();return}}}else if(this.#l===D.PAYLOADLENGTH_16){if(this.#a<2){return i()}const p=this.consume(2);this.#c.payloadLength=p.readUInt16BE(0);this.#l=D.READ_DATA}else if(this.#l===D.PAYLOADLENGTH_64){if(this.#a<8){return i()}const p=this.consume(8);const d=p.readUInt32BE(0);if(d>2**31-1){ne(this.ws,"Received payload length > 2^31 bytes.");return}const y=p.readUInt32BE(4);this.#c.payloadLength=(d<<8)+y;this.#l=D.READ_DATA}else if(this.#l===D.READ_DATA){if(this.#a<this.#c.payloadLength){return i()}else if(this.#a>=this.#c.payloadLength){const i=this.consume(this.#c.payloadLength);this.#u.push(i);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===M.CONTINUATION){const i=Buffer.concat(this.#u);ie(this.ws,this.#c.originalOpcode,i);this.#c={};this.#u.length=0}this.#l=D.INFO}}if(this.#a>0){continue}else{i();break}}}consume(i){if(i>this.#a){return null}else if(i===0){return j}if(this.#s[0].length===i){this.#a-=this.#s[0].length;return this.#s.shift()}const p=Buffer.allocUnsafe(i);let d=0;while(d!==i){const y=this.#s[0];const{length:v}=y;if(v+d===i){p.set(this.#s.shift(),d);break}else if(v+d>i){p.set(y.subarray(0,i-d),d);this.#s[0]=y.subarray(i-d);break}else{p.set(this.#s.shift(),d);d+=y.length}}this.#a-=i;return p}parseCloseBody(i,p){let d;if(p.length>=2){d=p.readUInt16BE(0)}if(i){if(!re(d)){return null}return{code:d}}let y=p.subarray(2);if(y[0]===239&&y[1]===187&&y[2]===191){y=y.subarray(3)}if(d!==undefined&&!re(d)){return null}try{y=new TextDecoder("utf-8",{fatal:true}).decode(y)}catch{return null}retu
/**
* ZipStream
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
* @copyright (c) 2014 Chris Talkington, contributors.
*/
var y=d(39023).inherits;var v=d(83223).ZipArchiveOutputStream;var D=d(83223).ZipArchiveEntry;var M=d(34747);var U=i.exports=function(i){if(!(this instanceof U)){return new U(i)}i=this.options=i||{};i.zlib=i.zlib||{};v.call(this,i);if(typeof i.level==="number"&&i.level>=0){i.zlib.level=i.level;delete i.level}if(!i.forceZip64&&typeof i.zlib.level==="number"&&i.zlib.level===0){i.store=true}i.namePrependSlash=i.namePrependSlash||false;if(i.comment&&i.comment.length>0){this.setComment(i.comment)}};y(U,v);U.prototype._normalizeFileData=function(i){i=M.defaults(i,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var p=i.type==="directory";var d=i.type==="symlink";if(i.name){i.name=M.sanitizePath(i.name);if(!d&&i.name.slice(-1)==="/"){p=true;i.type="directory"}else if(p){i.name+="/"}}if(p||d){i.store=true}i.date=M.dateify(i.date);return i};U.prototype.entry=function(i,p,d){if(typeof d!=="function"){d=this._emitErrorCallback.bind(this)}p=this._normalizeFileData(p);if(p.type!=="file"&&p.type!=="directory"&&p.type!=="symlink"){d(new Error(p.type+" entries not currently supported"));return}if(typeof p.name!=="string"||p.name.length===0){d(new Error("entry name must be a non-empty string value"));return}if(p.type==="symlink"&&typeof p.linkname!=="string"){d(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var y=new D(p.name);y.setTime(p.date,this.options.forceLocalTime);if(p.namePrependSlash){y.setName(p.name,true)}if(p.store){y.setMethod(0)}if(p.comment.length>0){y.setComment(p.comment)}if(p.type==="symlink"&&typeof p.mode!=="number"){p.mode=40960}if(typeof p.mode==="number"){if(p.type==="symlink"){p.mode|=40960}y.setUnixMode(p.mode)}if(p.type==="symlink"&&typeof p.linkname==="string"){i=Buffer.from(p.linkname)}return v.prototype.entry.call(this,y,i,d)};U.prototype.finalize=function(){this.finish()}},39840:(i,p,d)=>{p.formatArgs=formatArgs;p.save=save;p.load=load;p.useColors=useColors;p.storage=localstorage();p.destroy=(()=>{let i=false;return()=>{if(!i){i=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();p.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let i;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(p){p[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+p[0]+(this.useColors?"%c ":" ")+"+"+i.exports.humanize(this.diff);if(!this.useColors){return}const d="color: "+this.color;p.splice(1,0,d,"color: inherit"
//# sourceMappingURL=index.js.map