mirror of
https://github.com/docker/setup-docker-action.git
synced 2026-10-24 10:01:28 +02:00
chore: update generated content
This commit is contained in:
1 parent
d628ef03a6
commit
f524fc8e8f
3 files changed
+36
-2004
No files matched your search
+9
-85
@@ -1,92 +1,16 @@
|
||||
import './sourcemap-register.cjs';import{createRequire as i}from"module";var c={76846:function(i,c,A){var d=this&&this.__createBinding||(Object.create?function(i,c,A,d){if(d===undefined)d=A;var p=Object.getOwnPropertyDescriptor(c,A);if(!p||("get"in p?!c.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return c[A]}}}Object.defineProperty(i,d,p)}:function(i,c,A,d){if(d===undefined)d=A;i[d]=c[A]});var p=this&&this.__exportStar||function(i,c){for(var A in i)if(A!=="default"&&!Object.prototype.hasOwnProperty.call(c,A))d(c,i,A)};Object.defineProperty(c,"__esModule",{value:true});const C=A(64487);p(A(13776),c);p(A(45655),c);p(A(64487),c);const S=new C.DefaultArtifactClient;c["default"]=S},35592:(i,c,A)=>{Object.defineProperty(c,"__esModule",{value:true});c.Timestamp=void 0;const d=A(68886);const p=A(68886);const C=A(68886);const S=A(68886);const v=A(68886);const T=A(68886);const _=A(68886);class Timestamp$Type extends _.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 c=Date.now();i.seconds=T.PbLong.from(Math.floor(c/1e3)).toString();i.nanos=c%1e3*1e6;return i}toDate(i){return new Date(T.PbLong.from(i.seconds).toNumber()*1e3+Math.ceil(i.nanos/1e6))}fromDate(i){const c=this.create();const A=i.getTime();c.seconds=T.PbLong.from(Math.floor(A/1e3)).toString();c.nanos=A%1e3*1e6;return c}internalJsonWrite(i,c){let A=T.PbLong.from(i.seconds).toNumber()*1e3;if(A<Date.parse("0001-01-01T00:00:00Z")||A>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 d="Z";if(i.nanos>0){let c=(i.nanos+1e9).toString().substring(1);if(c.substring(3)==="000000")d="."+c.substring(0,3)+"Z";else if(c.substring(6)==="000")d="."+c.substring(0,6)+"Z";else d="."+c+"Z"}return new Date(A).toISOString().replace(".000Z",d)}internalJsonRead(i,c,A){if(typeof i!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,v.typeofJsonValue)(i)+".");let d=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(!d)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let p=Date.parse(d[1]+"-"+d[2]+"-"+d[3]+"T"+d[4]+":"+d[5]+":"+d[6]+(d[8]?d[8]:"Z"));if(Number.isNaN(p))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(p<Date.parse("0001-01-01T00:00:00Z")||p>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(!A)A=this.create();A.seconds=T.PbLong.from(p/1e3).toString();A.nanos=0;if(d[7])A.nanos=parseInt("1"+d[7]+"0".repeat(9-d[7].length))-1e9;return A}create(i){const c={seconds:"0",nanos:0};globalThis.Object.defineProperty(c,S.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,C.reflectionMergePartial)(this,c,i);return c}internalBinaryRead(i,c,A,d){let C=d!==null&&d!==void 0?d:this.create(),S=i.pos+c;while(i.pos<S){let[c,d]=i.tag();switch(c){case 1:C.seconds=i.int64().toString();break;case 2:C.nanos=i.int32();break;default:let S=A.readUnknownField;if(S==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${d}) for ${this.typeName}`);let v=i.skip(d);if(S!==false)(S===true?p.UnknownFieldHandler.onRead:S)(this.typeName,C,c,d,v)}}return C}internalBinaryWrite(i,c,A){if(i.seconds!=="0")c.tag(1,d.WireType.Varint).int64(i.seconds);if(i.nanos!==0)c.tag(2,d.WireType.Varint).int32(i.nanos);let C=A.writeUnknownFields;if(C!==false)(C==true?p.UnknownFieldHandler.onWrite:C)(this.typeName,i,c);return c}}c.Timestamp=new Timestamp$Type},78806:(i,c,A)=>{Object.defineProperty(c,"__esModule",{value:true});c.BytesValue=c.StringValue=c.BoolValue=c.UInt32Value=c.Int32Value=c.UInt64Value=c.Int64Value=c.FloatValue=c.DoubleValue=void 0;const d=A(68886);const p=A(68886);const C=A(68886);const S=A(68886);const v=A(68886);const T=A(68886);const _=A(68886);class DoubleValue$Type extends _.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(i,c){return this.refJsonWriter.scalar(2,i.value,"value",false,true)}internalJsonRead(i,c,A){if(!A)A=this.create();A.value=this.refJsonReader.scalar(i,1,undefined,"value");return A}create(i){const c={value:0};globalThis.Object.defineProperty(c,T.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,v.reflectionMergePartial)(this,c,i);return c}internalBinaryRead(i,c,A,d){let p=d!==null&&d!==void 0?d:this.create(),C=i.pos+c;while(i.pos<C){let[c,d]=i.tag();switch(c){case 1:p.value=i.double();break;default:let C=A.readUnknownField;if(C==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${d}) for ${this.typeName}`);let v=i.skip(d);if(C!==Line truncated
|
||||
/*! 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 d=[];const p=new Uint8Array([13,10]);V=0;let C=false;for(const[c,S]of i){if(typeof S==="string"){const i=ue.encode(A+`; name="${escape(normalizeLinefeeds(c))}"`+`\r\n\r\n${normalizeLinefeeds(S)}\r\n`);d.push(i);V+=i.byteLength}else{const i=ue.encode(`${A}; name="${escape(normalizeLinefeeds(c))}"`+(S.name?`; filename="${escape(S.name)}"`:"")+"\r\n"+`Content-Type: ${S.type||"application/octet-stream"}\r\n\r\n`);d.push(i,S,p);if(typeof S.size==="number"){V+=i.byteLength+S.size+p.byteLength}else{C=true}}}const S=ue.encode(`--${c}--\r\n`);d.push(S);V+=S.byteLength;if(C){V=null}_=i;T=async function*(){for(const i of d){if(i.stream){yield*i.stream()}else{yield i}}};K=`multipart/form-data; boundary=${c}`}else if(C(i)){_=i;V=i.size;if(i.type){K=i.type}}else if(typeof i[Symbol.asyncIterator]==="function"){if(c){throw new TypeError("keepalive")}if(d.isDisturbed(i)||i.locked){throw new TypeError("Response body object should not be disturbed or locked")}A=i instanceof ReadableStream?i:p(i)}if(typeof _==="string"||d.isBuffer(_)){V=Buffer.byteLength(_)}if(T!=null){let c;A=new ReadableStream({async start(){c=T(i)[Symbol.asyncIterator]()},async pull(i){const{value:d,done:p}=await c.next();if(p){queueMicrotask((()=>{i.close();i.byobRequest?.respond(0)}))}else{if(!se(A)){const c=new Uint8Array(d);if(c.byteLength){i.enqueue(c)}}}return i.desiredSize>0},async cancel(i){await c.return()},type:"bytes"})}const ee={stream:A,source:_,length:V};return[ee,K]}function safelyExtractBody(i,c=false){if(i instanceof ReadableStream){ie(!d.isDisturbed(i),"The body has already been consumed.");ie(!i.locked,"The stream is locked.")}return extractBody(i,c)}function cloneBody(i,c){const[A,d]=c.stream.tee();c.stream=A;return{stream:d,length:c.length,source:c.source}}function throwIfAborted(i){if(i.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(i){const c={blob(){return consumeBody(this,(i=>{let c=bodyMimeType(this);if(c===null){c=""}else if(c){c=ce(c)}return new ne([i],{type:c})}),i)},arrayBuffer(){return consumeBody(this,(i=>new Uint8Array(i).buffer),i)},text(){return consumeBody(this,K,i)},json(){return consumeBody(this,parseJSONFromBytes,i)},formData(){return consumeBody(this,(i=>{const c=bodyMimeType(this);if(c!==null){switch(c.essence){case"multipart/form-data":{const A=le(i,c);if(A==="failure"){throw new TypeError("Failed to parse body as FormData.")}const d=new ee;d[te]=A;return d}case"application/x-www-form-urlencoded":{const c=new URLSearchParams(i.toString());const A=new ee;for(const[i,d]of c){A.append(i,d)}return A}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),i)},bytes(){return consumeBody(this,(i=>new Uint8Array(i)),i)}};return c}function mixinBody(i){Object.assign(i.prototype,bodyMixinMethods(i))}async function consumeBody(i,c,A){re.brandCheck(i,A);if(bodyUnusable(i)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(i[te]);const d=T();const errorSteps=i=>d.reject(i);const successSteps=i=>{try{d.resolve(c(i))}catch(i){errorSteps(i)}};if(i[te].body==null){successSteps(Buffer.allocUnsafe(0));return d.promise}await _(i[te].body,successSteps,errorSteps);return d.promise}function bodyUnusable(i){const c=i[te].body;return c!=null&&(c.stream.locked||d.isDisturbed(c.stream))}function parseJSONFromBytes(i){return JSON.parse(K(i))}function bodyMimeType(i){const c=i[te].headersList;const A=V(c);if(A==="failure"){return null}return A}i.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:fe,hasFinalizationRegistry:de,bodyUnusable:bodyUnusable}},74832:i=>{const c=["GET","HEAD","POST"];const A=new Set(c);const d=[101,204,205,304];const p=[301,302,303,307,308];const C=new Set(p);const S=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const v=new Set(S);const T=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const _=new Set(T);const V=["follow","manual","error"];const K=["GET","HEAD","OPTIONS","TRACE"];const ee=new Set(K);const te=["navigate","same-origin","no-cors","cors"];const re=["omit","same-origin","include"];const ne=["default","no-store","Line truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */v[S-4]=A[0];v[S-3]=A[1];v[S-2]=A[2];v[S-1]=A[3];v[1]=C;if(C===126){v.writeUInt16BE(p,2)}else if(C===127){v[2]=v[3]=0;v.writeUIntBE(p,4,6)}v[1]|=128;for(let i=0;i<p;++i){v[S+i]=c[i]^A[i&3]}return v}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},10908:(i,c,A)=>{const{createInflateRaw:d,Z_DEFAULT_WINDOWBITS:p}=A(38522);const{isValidClientWindowBits:C}=A(51484);const S=Buffer.from([0,0,255,255]);const v=Symbol("kBuffer");const T=Symbol("kLength");class PerMessageDeflate{#$;#f={};constructor(i){this.#f.serverNoContextTakeover=i.has("server_no_context_takeover");this.#f.serverMaxWindowBits=i.get("server_max_window_bits")}decompress(i,c,A){if(!this.#$){let i=p;if(this.#f.serverMaxWindowBits){if(!C(this.#f.serverMaxWindowBits)){A(new Error("Invalid server_max_window_bits"));return}i=Number.parseInt(this.#f.serverMaxWindowBits)}this.#$=d({windowBits:i});this.#$[v]=[];this.#$[T]=0;this.#$.on("data",(i=>{this.#$[v].push(i);this.#$[T]+=i.length}));this.#$.on("error",(i=>{this.#$=null;A(i)}))}this.#$.write(i);if(c){this.#$.write(S)}this.#$.flush((()=>{const i=Buffer.concat(this.#$[v],this.#$[T]);this.#$[v].length=0;this.#$[T]=0;A(null,i)}))}}i.exports={PerMessageDeflate:PerMessageDeflate}},21601:(i,c,A)=>{const{Writable:d}=A(57075);const p=A(34589);const{parserStates:C,opcodes:S,states:v,emptyBuffer:T,sentCloseFrameState:_}=A(23715);const{kReadyState:V,kSentClose:K,kResponse:ee,kReceivedClose:te}=A(21503);const{channels:re}=A(92527);const{isValidStatusCode:ne,isValidOpcode:ie,failWebsocketConnection:se,websocketMessageReceived:oe,utf8Decode:ae,isControlFrame:ce,isTextBinaryFrame:le,isContinuationFrame:Ae}=A(51484);const{WebsocketFrameSend:ue}=A(29879);const{closeWebSocketConnection:de}=A(60896);const{PerMessageDeflate:fe}=A(10908);class ByteParser extends d{#K=[];#X=0;#Z=false;#C=C.INFO;#ee={};#te=[];#re;constructor(i,c){super();this.ws=i;this.#re=c==null?new Map:c;if(this.#re.has("permessage-deflate")){this.#re.set("permessage-deflate",new fe(c))}}_write(i,c,A){this.#K.push(i);this.#X+=i.length;this.#Z=true;this.run(A)}run(i){while(this.#Z){if(this.#C===C.INFO){if(this.#X<2){return i()}const c=this.consume(2);const A=(c[0]&128)!==0;const d=c[0]&15;const p=(c[1]&128)===128;const v=!A&&d!==S.CONTINUATION;const T=c[1]&127;const _=c[0]&64;const V=c[0]&32;const K=c[0]&16;if(!ie(d)){se(this.ws,"Invalid opcode received");return i()}if(p){se(this.ws,"Frame cannot be masked");return i()}if(_!==0&&!this.#re.has("permessage-deflate")){se(this.ws,"Expected RSV1 to be clear.");return}if(V!==0||K!==0){se(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(v&&!le(d)){se(this.ws,"Invalid frame type was fragmented.");return}if(le(d)&&this.#te.length>0){se(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&v){se(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((T>125||v)&&ce(d)){se(this.ws,"Control frame either too large or fragmented");return}if(Ae(d)&&this.#te.length===0&&!this.#ee.compressed){se(this.ws,"Unexpected continuation frame");return}if(T<=125){this.#ee.payloadLength=T;this.#C=C.READ_DATA}else if(T===126){this.#C=C.PAYLOADLENGTH_16}else if(T===127){this.#C=C.PAYLOADLENGTH_64}if(le(d)){this.#ee.binaryType=d;this.#ee.compressed=_!==0}this.#ee.opcode=d;this.#ee.masked=p;this.#ee.fin=A;this.#ee.fragmented=v}else if(this.#C===C.PAYLOADLENGTH_16){if(this.#X<2){return i()}const c=this.consume(2);this.#ee.payloadLength=c.readUInt16BE(0);this.#C=C.READ_DATA}else if(this.#C===C.PAYLOADLENGTH_64){if(this.#X<8){return i()}const c=this.consume(8);const A=c.readUInt32BE(0);if(A>2**31-1){se(this.ws,"Received payload length > 2^31 bytes.");return}const d=c.readUInt32BE(4);this.#ee.payloadLength=(A<<8)+d;this.#C=C.READ_DATA}else if(this.#C===C.READ_DATA){if(this.#X<this.#ee.payloadLength){return i()}const c=this.consume(this.#ee.payloadLength);if(ce(this.#ee.opcode)){this.#Z=this.parseControlFrame(c);this.#C=C.INFO}else{if(!this.#ee.compressed){this.#te.push(c);if(!this.#ee.fragmented&&this.#ee.fin){const i=Buffer.concat(this.#te);oe(this.ws,this.#ee.binaryType,i);this.#te.length=0}this.#C=C.INFO}else{this.#re.get("permessage-deflate").decompress(c,this.#ee.fin,((c,A)=>{if(c){de(this.ws,1007,c.message,c.message.length);return}this.#te.push(A);if(!this.#ee.fin){this.#C=C.INFO;this.#Z=true;this.run(i);return}oe(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#Z=true;this.#C=C.INFO;this.#te.length=0;this.run(i)}));this.#Z=false;break}}}}}consume(i){if(i>this.#X){throw new Error("Called consume() before buffers satiated.")}else if(i===0){return T}if(this.#K[0].length===i){this.#X-=this.#K[0].length;return this.#K.shift()}const c=Buffer.allocUnsafe(i);let A=0;while(A!==i){const d=this.#K[0];const{length:p}=d;if(p+A===i){c.set(this.#K.shift(),A);break}else if(p+A>i){c.set(d.subarray(0,i-A),A);this.#K[0]=d.subarray(i-A);break}else{c.set(this.#K.shift(),A);A+=d.length}}this.#X-=i;return c}parseCloseBody(i){p(i.length!==1);let c;if(i.length>=2){Line truncated
|
||||
/**
|
||||
* Archiver Vending
|
||||
*
|
||||
* @ignore
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
||||
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var d=A(50549);var p={};var vending=function(i,c){return vending.create(i,c)};vending.create=function(i,c){if(p[i]){var A=new d(i,c);A.setFormat(i);A.setModule(new p[i](c));return A}else{throw new Error("create("+i+"): format not registered")}};vending.registerFormat=function(i,c){if(p[i]){throw new Error("register("+i+"): format already registered")}if(typeof c!=="function"){throw new Error("register("+i+"): format module invalid")}if(typeof c.prototype.append!=="function"||typeof c.prototype.finalize!=="function"){throw new Error("register("+i+"): format module missing methods")}p[i]=c};vending.isRegisteredFormat=function(i){if(p[i]){return true}return false};vending.registerFormat("zip",A(22836));vending.registerFormat("tar",A(10396));vending.registerFormat("json",A(54693));i.exports=vending},50549:(i,c,A)=>{
|
||||
/**
|
||||
* Archiver Core
|
||||
*
|
||||
* @ignore
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
||||
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var d=A(79896);var p=A(51364);var C=A(97329);var S=A(16928);var v=A(53296);var T=A(39023).inherits;var _=A(13110);var V=A(29963).Transform;var K=process.platform==="win32";var Archiver=function(i,c){if(!(this instanceof Archiver)){return new Archiver(i,c)}if(typeof i!=="string"){c=i;i="zip"}c=this.options=v.defaults(c,{highWaterMark:1024*1024,statConcurrency:4});V.call(this,c);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=C.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=C.queue(this._onStatQueueTask.bind(this),c.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};T(Archiver,V);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,c){c=c||{};var A={source:null,filepath:i};if(!c.name){c.name=i}c.sourcePath=i;A.data=c;this._entriesCount++;if(c.stats&&c.stats instanceof d.Stats){A=this._updateQueueTaskWithStats(A,c.stats);if(A){if(c.stats.size){this._fsEntriesTotalBytes+=c.stats.size}this._queue.push(A)}}else{this._statQueue.push(A)}};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,c,A){if(this._state.aborted){A();return}this._module.append(i,c,function(i){this._task=null;if(this._state.aborted){this._shutdown();return}if(i){this.emit("error",i);setImmediate(A);return}this.emit("entry",c);this._entriesProcessedCount++;if(c.stats&&c.stats.size){this._fsEntriesProcessedBytes+=c.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(A)}.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 _("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,c){i=v.defaults(i,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(c&&i.stats===false){i.stats=c}var A=i.type==="directory";if(i.name){if(typeof i.prefix==="string"&&""!==i.prefix){i.name=i.prefix+"/"+i.name;i.prefix=null}i.name=v.sanitizePath(i.name);if(i.type!=="symlink"&&i.name.slice(-1)==="/"){A=true;i.type="directory"}else if(A){i.name+="/"}}if(typeof i.mode==="number"){if(K){i.mode&=511}else{i.mode&=4095}}else if(i.stats&&i.mode===null){if(K){i.mode=i.stats.mode&511}else{i.mode=i.stats.mode&4095}if(K&&A){i.mode=493}}else if(i.mode===null){i.mode=A?493:420}if(i.stats&&i.date===null){i.date=i.stats.mtime}else{i.date=v.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()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(i,c){var fullCallback=()=>{if(i.data.callback){i.data.callback()}c()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=i;this._moduleAppend(i.source,i.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(i,c){if(this._state.finalizing||this._state.finalized||this._state.aborted){c();return}d.lstat(i.filepath,function(A,d){if(this._state.aborted){setImmediate(c);return}if(A){this._entriesCount--;this.emit("warning",A);setImmediate(c);return}i=this._updateQueueTaskWithStats(i,d);if(i){if(d.size){this._fsEntriesTotalBytes+=d.size}this._queue.push(i)}setImmediate(c)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(i,c,A){if(i){this._pointer+=i.length}A(null,i)};Archiver.prototLine truncated
|
||||
/**
|
||||
* Archiver Core
|
||||
*
|
||||
* @ignore
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
||||
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var d=A(39023);const p={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,c){Error.captureStackTrace(this,this.constructor);this.message=p[i]||i;this.code=i;this.data=c}d.inherits(ArchiverError,Error);c=i.exports=ArchiverError},54693:(i,c,A)=>{
|
||||
/**
|
||||
* 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 d=A(39023).inherits;var p=A(29963).Transform;var C=A(84928);var S=A(53296);var Json=function(i){if(!(this instanceof Json)){return new Json(i)}i=this.options=S.defaults(i,{});p.call(this,i);this.supports={directory:true,symlink:true};this.files=[]};d(Json,p);Json.prototype._transform=function(i,c,A){A(null,i)};Json.prototype._writeStringified=function(){var i=JSON.stringify(this.files);this.write(i)};Json.prototype.append=function(i,c,A){var d=this;c.crc32=0;function onend(i,p){if(i){A(i);return}c.size=p.length||0;c.crc32=C.unsigned(p);d.files.push(c);A(null,c)}if(c.sourceType==="buffer"){onend(null,i)}else if(c.sourceType==="stream"){S.collectStream(i,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};i.exports=Json},10396:(i,c,A)=>{
|
||||
/**
|
||||
* 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 d=A(43106);var p=A(56118);var C=A(53296);var Tar=function(i){if(!(this instanceof Tar)){return new Tar(i)}i=this.options=C.defaults(i,{gzip:false});if(typeof i.gzipOptions!=="object"){i.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=p.pack(i);this.compressor=false;if(i.gzip){this.compressor=d.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,c,A){var d=this;c.mtime=c.date;function append(i,p){if(i){A(i);return}d.engine.entry(c,p,(function(i){A(i,c)}))}if(c.sourceType==="buffer"){append(null,i)}else if(c.sourceType==="stream"&&c.stats){c.size=c.stats.size;var p=d.engine.entry(c,(function(i){A(i,c)}));i.pipe(p)}else if(c.sourceType==="stream"){C.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,c){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(i,c)}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},22836:(i,c,A)=>{
|
||||
/**
|
||||
* 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 d=A(41622);var p=A(53296);var Zip=function(i){if(!(this instanceof Zip)){return new Zip(i)}i=this.options=p.defaults(i,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new d(i)};Zip.prototype.append=function(i,c,A){this.engine.entry(i,c,A)};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},45195:(i,c,A)=>{var d=A(52455);function retry(i,c){function run(A,p){var C=c||{};var S;if(!("randomize"in C)){C.randomize=true}S=d.operation(C);function bail(i){p(i||new Error("Aborted"))}function onError(i,c){if(i.bail){bail(i);return}if(!S.retry(i)){p(S.mainError())}else if(C.onRetry){C.onRetry(i,c)}}function runAttempt(c){var d;try{d=i(bail,c)}catch(i){onError(i,c);return}Promise.resolve(d).then(A).catch((function catchIt(i){onError(i,c)}))}S.attempt(runAttempt)}return new Promise(run)}i.exports=retry},52455:(i,c,A)=>{i.exports=A(76185)},76185:(i,c,A)=>{var d=A(42399);c.operation=function(i){var A=c.timeouts(i);return new d(A,{forever:i&&(i.forever||i.retries===Infinity),unref:i&&i.unref,maxRetryTime:i&&i.maxRetryTime})};c.timeouts=function(i){if(i instanceof Array){return[].concat(i)}var c={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var A in i){c[A]=i[A]}if(c.minTimeout>c.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var d=[];for(var p=0;p<c.retries;p++){d.push(this.createTimeout(p,c))}if(i&&i.forever&&!d.length){d.push(this.createTimeout(p,c))}d.sort((function(i,c){return i-c}));return d};c.createTimeout=function(i,c){var A=c.randomize?Math.random()+1:1;var d=Math.round(A*Math.max(c.minTimeout,1)*Math.pow(c.factor,i));d=Math.min(d,c.maxTimeout);return d};c.wrap=function(i,A,d){if(A instanceof Array){d=A;A=null}if(!d){d=[];for(var p in i){if(typeof i[p]==="function"){d.push(p)}}}for(var C=0;C<d.length;C++){var S=d[C];var v=i[S];i[S]=function retryWrapper(d){var p=c.operation(A);var C=Array.prototype.slice.call(arguments,1);var S=C.pop();C.push((function(i){if(p.retry(i)){return}if(i){arguments[0]=p.mainError()}S.apply(this,arguments)}));p.attempt((function(){d.apply(i,C)}))}.bind(i,v);i[S].options=A}}},42399:i=>{function RetryOperation(i,c){if(typeof c==="boolean"){c={forever:c}}this._originalTimeouts=JSON.parse(JSON.stringify(i));this._timeouts=i;this._options=c||{};this._maxRetryTime=c&&c.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;this._timer=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}i.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts.slice(0)};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}if(this._timer){clearTimeout(this._timer)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(i){if(this._timeout){clearTimeout(this._timeout)}if(!i){return false}var c=(new Date).getTime();if(i&&c-this._operationStart>=this._maxRetryTime){this._errors.push(i);this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(i);var A=this._timeouts.shift();if(A===undefined){if(this._cachedTimeouts){this._errors.splice(0,this._errors.length-1);A=this._cachedTimeouts.slice(-1)}else{return false}}var d=this;this._timer=setTimeout((function(){d._attempts++;if(d._operationTimeoutCb){d._timeout=setTimeout((function(){d._operationTimeoutCb(d._attempts)}),d._operationTimeout);if(d._options.unref){d._timeout.unref()}}d._fn(d._attempts)}),A);if(this._options.unref){this._timer.unref()}return true};RetryOperation.prototype.attempt=function(i,c){this._fn=i;if(c){if(c.timeout){this._operationTimeout=c.timeout}if(c.cb){this._operationTimeoutCb=c.cb}}var A=this;if(this._operationTimeoutCb){this._timeout=setTimeout((function(){A._operationTimeoutCb()}),A._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated");this.attempt(i)};RetryOperation.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated");this.attempt(i)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var i={};var c=null;var A=0;for(var d=0;d<this._errors.length;d++){var p=this._errors[d];var C=p.message;var S=(i[C]||0)+1;i[C]=S;if(S>=A){c=p;A=S}}return c}},97329:function(Line truncated
|
||||
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
|
||||
var A;(function(i){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){i(c)}else{}}else{i(A={})}})((function(i){i.version="1.2.2";function signed_crc_table(){var i=0,c=new Array(256);for(var A=0;A!=256;++A){i=A;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;c[A]=i}return typeof Int32Array!=="undefined"?new Int32Array(c):c}var c=signed_crc_table();function slice_by_16_tables(i){var c=0,A=0,d=0,p=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(d=0;d!=256;++d)p[d]=i[d];for(d=0;d!=256;++d){A=i[d];for(c=256+d;c<4096;c+=256)A=p[c]=A>>>8^i[A&255]}var C=[];for(d=1;d!=16;++d)C[d-1]=typeof Int32Array!=="undefined"?p.subarray(d*256,d*256+256):p.slice(d*256,d*256+256);return C}var A=slice_by_16_tables(c);var d=A[0],p=A[1],C=A[2],S=A[3],v=A[4];var T=A[5],_=A[6],V=A[7],K=A[8],ee=A[9];var te=A[10],re=A[11],ne=A[12],ie=A[13],se=A[14];function crc32_bstr(i,A){var d=A^-1;for(var p=0,C=i.length;p<C;)d=d>>>8^c[(d^i.charCodeAt(p++))&255];return~d}function crc32_buf(i,A){var oe=A^-1,ae=i.length-15,ce=0;for(;ce<ae;)oe=se[i[ce++]^oe&255]^ie[i[ce++]^oe>>8&255]^ne[i[ce++]^oe>>16&255]^re[i[ce++]^oe>>>24]^te[i[ce++]]^ee[i[ce++]]^K[i[ce++]]^V[i[ce++]]^_[i[ce++]]^T[i[ce++]]^v[i[ce++]]^S[i[ce++]]^C[i[ce++]]^p[i[ce++]]^d[i[ce++]]^c[i[ce++]];ae+=15;while(ce<ae)oe=oe>>>8^c[(oe^i[ce++])&255];return~oe}function crc32_str(i,A){var d=A^-1;for(var p=0,C=i.length,S=0,v=0;p<C;){S=i.charCodeAt(p++);if(S<128){d=d>>>8^c[(d^S)&255]}else if(S<2048){d=d>>>8^c[(d^(192|S>>6&31))&255];d=d>>>8^c[(d^(128|S&63))&255]}else if(S>=55296&&S<57344){S=(S&1023)+64;v=i.charCodeAt(p++)&1023;d=d>>>8^c[(d^(240|S>>8&7))&255];d=d>>>8^c[(d^(128|S>>2&63))&255];d=d>>>8^c[(d^(128|v>>6&15|(S&3)<<4))&255];d=d>>>8^c[(d^(128|v&63))&255]}else{d=d>>>8^c[(d^(224|S>>12&15))&255];d=d>>>8^c[(d^(128|S>>6&63))&255];d=d>>>8^c[(d^(128|S&63))&255]}}return~d}i.table=c;i.bstr=crc32_bstr;i.buf=crc32_buf;i.str=crc32_str}))},3662:(i,c,A)=>{const{Transform:d}=A(29963);const p=A(84891);class CRC32Stream extends d{constructor(i){super(i);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(i,c,A){if(i){this.checksum=p.buf(i,this.checksum)>>>0;this.rawSize+=i.length}A(null,i)}digest(i){const c=Buffer.allocUnsafe(4);c.writeUInt32BE(this.checksum>>>0,0);return i?c.toString(i):c}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}i.exports=CRC32Stream},76252:(i,c,A)=>{const{DeflateRaw:d}=A(43106);const p=A(84891);class DeflateCRC32Stream extends d{constructor(i){super(i);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(i,c){if(i){this.compressedSize+=i.length}return super.push(i,c)}_transform(i,c,A){if(i){this.checksum=p.buf(i,this.checksum)>>>0;this.rawSize+=i.length}super._transform(i,c,A)}digest(i){const c=Buffer.allocUnsafe(4);c.writeUInt32BE(this.checksum>>>0,0);return i?c.toString(i):c}hex(){return this.digest("hex").toUpperCase()}size(i=false){if(i){return this.compressedSize}else{return this.rawSize}}}i.exports=DeflateCRC32Stream},82770:(i,c,A)=>{i.exports={CRC32Stream:A(3662),DeflateCRC32Stream:A(76252)}},66867:i=>{var c=1e3;var A=c*60;var d=A*60;var p=d*24;var C=p*7;var S=p*365.25;i.exports=function(i,c){c=c||{};var A=typeof i;if(A==="string"&&i.length>0){return parse(i)}else if(A==="number"&&isFinite(i)){return c.long?fmtLong(i):fmtShort(i)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function parse(i){i=String(i);if(i.length>100){return}var v=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!v){return}var T=parseFloat(v[1]);var _=(v[2]||"ms").toLowerCase();switch(_){case"years":case"year":case"yrs":case"yr":case"y":return T*S;case"weeks":case"week":case"w":return T*C;case"days":case"day":case"d":return T*p;case"hours":case"hour":case"hrs":case"hr":case"h":return T*d;case"minutes":case"minute":case"mins":case"min":case"m":return T*A;case"seconds":case"second":case"secs":case"sec":case"s":return T*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return T;default:return undefined}}function fmtShort(i){var C=Math.abs(i);if(C>=p){return Math.round(i/p)+"d"}if(C>=d){return Math.round(i/d)+"h"}if(C>=A){return Math.round(i/A)+"m"}if(C>=c){return Math.round(i/c)+"s"}return i+"ms"}function fmtLong(i){var C=Math.abs(i);if(C>=p){return plural(i,C,p,"day")}if(C>=d){return plural(i,C,d,"hour")}if(C>=A){return plural(i,C,A,"minute")}if(C>=c){return plural(i,C,c,"second")}return i+" ms"}function plural(i,c,A,d){var p=c>=A*1.5;return Math.round(i/A)+" "+d+(p?"s":"")}},6110:(i,c,A)=>{c.formatArgs=formatArgs;c.save=save;c.load=load;c.useColors=useColors;c.storage=localstorage();c.destroy=(()=>{let i=false;return()=>{if(!iLine truncated
|
||||
/**
|
||||
* @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(c,"__esModule",{value:true});const A=new WeakMap;const d=new WeakMap;function pd(i){const c=A.get(i);console.assert(c!=null,"'this' is expected an Event object, but got",i);return c}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,c){A.set(this,{eventTarget:i,event:c,eventPhase:2,currentTarget:i,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:c.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const d=Object.keys(c);for(let i=0;i<d.length;++i){const c=d[i];if(!(c in this)){Object.defineProperty(this,c,defineRedirectDescriptor(c))}}}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 c=pd(this);c.stopped=true;if(typeof c.event.cancelBubble==="boolean"){c.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);d.set(window.Event.prototype,Event)}function defineRedirectDescriptor(i){return{get(){return pd(this).event[i]},set(c){pd(this).event[i]=c},configurable:true,enumerable:true}}function defineCallDescriptor(i){return{value(){const c=pd(this).event;return c[i].apply(c,arguments)},configurable:true,enumerable:true}}function defineWrapper(i,c){const A=Object.keys(c);if(A.length===0){return i}function CustomEvent(c,A){i.call(this,c,A)}CustomEvent.prototype=Object.create(i.prototype,{constructor:{value:CustomEvent,configurable:true,writable:true}});for(let d=0;d<A.length;++d){const p=A[d];if(!(p in i.prototype)){const i=Object.getOwnPropertyDescriptor(c,p);const A=typeof i.value==="function";Object.defineProperty(CustomEvent.prototype,p,A?defineCallDescriptor(p):defineRedirectDescriptor(p))}}return CustomEvent}function getWrapper(i){if(i==null||i===Object.prototype){return Event}let c=d.get(i);if(c==null){c=defineWrapper(getWrapper(Object.getPrototypeOf(i)),i);d.set(i,c)}return c}function wrapEvent(i,c){const A=getWrapper(Object.getPrototypeOf(c));return new A(i,c)}function isStopped(i){return pd(i).immediateStopped}function setEventPhase(i,c){pd(i).eventPhase=c}function setCurrentTarget(i,c){pd(i).currentTarget=c}function setPassiveListener(i,c){pd(i).passiveListener=c}const p=new WeakMap;const C=1;const S=2;const v=3;function isObject(i){return i!==null&&typeof i==="object"}function getListeners(i){const c=p.get(i);if(c==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return c}function defineEventAttributeDescriptor(i){return{get(){const c=getListeners(this);let A=c.get(i);while(A!=null){if(A.listenerType===v){return A.listener}A=A.next}return null},set(c){if(typeof c!=="function"&&!isObject(c)){c=null}const A=getListeners(this);let d=null;let p=A.get(i);while(p!=null){if(p.listenerType===v){if(d!==null){d.next=p.next}else if(p.next!==null){A.set(i,p.next)}else{A.delete(i)}}else{d=p}p=p.next}if(c!==null){const p={listener:c,listenerType:v,passive:false,once:false,next:null};if(d===null){A.set(i,p)}else{d.next=p}}},configurable:true,enumerable:true}}function defineEventAttribute(i,c){Object.defineProperty(i,`on${c}`,defineEventAttributeDescriptor(c))}function defineCustomEventTarget(i){function CustomEventTarget(){EventTarget.call(this)}CustomEventTarget.prototype=Object.create(EventTarget.prototype,{constructor:{value:CustomEventTarget,configurable:true,writable:true}});for(let c=0;c<i.length;++c){defLine truncated
|
||||
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(A){var d=true&&c;var p=true&&i&&i.exports==d&&i;var C=typeof global=="object"&&global;if(C.global===C||C.window===C){A=C}var S=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var v=/[\x01-\x7F]/g;var T=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;var _=/<\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 V={"":"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","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprimeLine truncated
|
||||
/*!
|
||||
* 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 c,A;if(isObject(i)===false)return false;c=i.constructor;if(c===undefined)return true;A=c.prototype;if(isObject(A)===false)return false;if(A.hasOwnProperty("isPrototypeOf")===false){return false}return true}c.isPlainObject=isPlainObject},96543:i=>{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},82513:i=>{var c={}.toString;i.exports=Array.isArray||function(i){return c.call(i)=="[object Array]"}},74281:(i,c,A)=>{var d=A(91950);var p=A(59980);function renamed(i,c){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. "+"Use yaml."+c+" instead, which is now safe by default.")}}i.exports.Type=A(9557);i.exports.Schema=A(62046);i.exports.FAILSAFE_SCHEMA=A(69832);i.exports.JSON_SCHEMA=A(58927);i.exports.CORE_SCHEMA=A(55746);i.exports.DEFAULT_SCHEMA=A(97336);i.exports.load=d.load;i.exports.loadAll=d.loadAll;i.exports.dump=p.dump;i.exports.YAMLException=A(41248);i.exports.types={binary:A(8149),float:A(57584),map:A(47316),null:A(4333),pairs:A(16267),set:A(78758),timestamp:A(28966),bool:A(67296),int:A(62271),merge:A(76854),omap:A(58649),seq:A(77161),str:A(53929)};i.exports.safeLoad=renamed("safeLoad","load");i.exports.safeLoadAll=renamed("safeLoadAll","loadAll");i.exports.safeDump=renamed("safeDump","dump")},19816:i=>{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,c){var A,d,p,C;if(c){C=Object.keys(c);for(A=0,d=C.length;A<d;A+=1){p=C[A];i[p]=c[p]}}return i}function repeat(i,c){var A="",d;for(d=0;d<c;d+=1){A+=i}return A}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},59980:(i,c,A)=>{var d=A(19816);var p=A(41248);var C=A(97336);var S=Object.prototype.toString;var v=Object.prototype.hasOwnProperty;var T=65279;var _=9;var V=10;var K=13;var ee=32;var te=33;var re=34;var ne=35;var ie=37;var se=38;var oe=39;var ae=42;var ce=44;var le=45;var Ae=58;var ue=61;var de=62;var fe=63;var he=64;var pe=91;var ge=93;var me=96;var Ee=123;var ye=124;var Ce=125;var Ie={};Ie[0]="\\0";Ie[7]="\\a";Ie[8]="\\b";Ie[9]="\\t";Ie[10]="\\n";Ie[11]="\\v";Ie[12]="\\f";Ie[13]="\\r";Ie[27]="\\e";Ie[34]='\\"';Ie[92]="\\\\";Ie[133]="\\N";Ie[160]="\\_";Ie[8232]="\\L";Ie[8233]="\\P";var be=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var Be=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(i,c){var A,d,p,C,S,T,_;if(c===null)return{};A={};d=Object.keys(c);for(p=0,C=d.length;p<C;p+=1){S=d[p];T=String(c[S]);if(S.slice(0,2)==="!!"){S="tag:yaml.org,2002:"+S.slice(2)}_=i.compiledTypeMap["fallback"][S];if(_&&v.call(_.styleAliases,T)){T=_.styleAliases[T]}A[S]=T}return A}function encodeHex(i){var c,A,C;c=i.toString(16).toUpperCase();if(i<=255){A="x";C=2}else if(i<=65535){A="u";C=4}else if(i<=4294967295){A="U";C=8}else{throw new p("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+A+d.repeat("0",C-c.length)+c}var we=1,Qe=2;function State(i){this.schema=i["schema"]||C;this.indent=Math.max(1,i["indent"]||2);this.noArrayIndent=i["noArrayIndent"]||false;this.skipInvalid=i["skipInvalid"]||false;this.flowLevel=d.isNothing(i["flowLevel"])?-1:i["flowLevel"];this.styleMap=compileStyleMap(this.schema,i["styles"]||null);this.sortKeys=i["sortKeys"]||false;this.lineWidth=i["lineWidth"]||80;this.noRefs=i["noRefs"]||false;this.noCompatMode=i["noCompatMode"]||false;this.condenseFlow=i["condenseFlow"]||false;this.quotingType=i["quotingType"]==='"'?Qe:we;this.forceQuotes=i["forceQuotes"]||false;this.replacer=typeof i["replacer"]==="function"?i["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(i,c){var A=d.repeat(" ",c),p=0,C=-1,S="",v,T=i.length;while(p<T){C=i.indexOf("\n",p);if(C===-1){v=i.slice(p);p=T}else{v=i.slice(p,C+1);p=C+1}if(v.length&&v!=="\n")S+=A;S+=v}return S}function generateNextLine(i,c){return"\n"+d.repeat(" ",i.indent*c)}function testImplicitResolving(i,c){var A,d,p;for(A=0,d=i.implicitTypes.length;A<d;A+=1){p=i.implicitTypes[A];if(p.resolve(c)){return true}}return false}function isWhitespace(i){return i===ee||Line truncated
|
||||
/*!
|
||||
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
||||
*
|
||||
* Copyright (c) 2014-2018, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
i.exports=function(i,c){if(typeof i!=="string"){throw new TypeError("expected path to be a string")}if(i==="\\"||i==="/")return"/";var A=i.length;if(A<=1)return i;var d="";if(A>4&&i[3]==="\\"){var p=i[2];if((p==="?"||p===".")&&i.slice(0,2)==="\\\\"){i=i.slice(2);d="//"}}var C=i.split(/[/\\]+/);if(c!==false&&C[C.length-1]===""){C.pop()}return d+C.join("/")}},55560:(i,c,A)=>{var d=A(58264);i.exports=d(once);i.exports.strict=d(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 c=i.name||"Function wrapped with `once`";f.onceError=c+" shouldn't be called more than once";f.called=false;return f}},19183:i=>{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,c,A,d){if(typeof i!=="function"){throw new TypeError('"callback" argument must be a function')}var p=arguments.length;var C,S;switch(p){case 0:case 1:return process.nextTick(i);case 2:return process.nextTick((function afterTickOne(){i.call(null,c)}));case 3:return process.nextTick((function afterTickTwo(){i.call(null,c,A)}));case 4:return process.nextTick((function afterTickThree(){i.call(null,c,A,d)}));default:C=new Array(p-1);S=0;while(S<C.length){C[S++]=arguments[S]}return process.nextTick((function afterTick(){i.apply(null,C)}))}}},7945:i=>{i.exports=global.process},5506:(i,c,A)=>{i.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):A(36828)},36828:i=>{i.exports=typeof queueMicrotask==="function"?queueMicrotask:i=>Promise.resolve().then(i)},80652:(i,c,A)=>{const{SymbolDispose:d}=A(50999);const{AbortError:p,codes:C}=A(69220);const{isNodeStream:S,isWebStream:v,kControllerErrorFunction:T}=A(83426);const _=A(36815);const{ERR_INVALID_ARG_TYPE:V}=C;let K;const validateAbortSignal=(i,c)=>{if(typeof i!=="object"||!("aborted"in i)){throw new V(c,"AbortSignal",i)}};i.exports.addAbortSignal=function addAbortSignal(c,A){validateAbortSignal(c,"signal");if(!S(A)&&!v(A)){throw new V("stream",["ReadableStream","WritableStream","Stream"],A)}return i.exports.addAbortSignalNoValidate(c,A)};i.exports.addAbortSignalNoValidate=function(i,c){if(typeof i!=="object"||!("aborted"in i)){return c}const C=S(c)?()=>{c.destroy(new p(undefined,{cause:i.reason}))}:()=>{c[T](new p(undefined,{cause:i.reason}))};if(i.aborted){C()}else{K=K||A(23539).addAbortListener;const p=K(i,C);_(c,p[d])}return c}},77336:(i,c,A)=>{const{StringPrototypeSlice:d,SymbolIterator:p,TypedArrayPrototypeSet:C,Uint8Array:S}=A(50999);const{Buffer:v}=A(20181);const{inspect:T}=A(23539);i.exports=class BufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(i){const c={data:i,next:null};if(this.length>0)this.tail.next=c;else this.head=c;this.tail=c;++this.length}unshift(i){const c={data:i,next:this.head};if(this.length===0)this.tail=c;this.head=c;++this.length}shift(){if(this.length===0)return;const i=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return i}clear(){this.head=this.tail=null;this.length=0}join(i){if(this.length===0)return"";let c=this.head;let A=""+c.data;while((c=c.next)!==null)A+=i+c.data;return A}concat(i){if(this.length===0)return v.alloc(0);const c=v.allocUnsafe(i>>>0);let A=this.head;let d=0;while(A){C(c,A.data,d);d+=A.data.length;A=A.next}return c}consume(i,c){const A=this.head.data;if(i<A.length){const c=A.slice(0,i);this.head.data=A.slice(i);return c}if(i===A.length){return this.shift()}return c?this._getString(i):this._getBuffer(i)}first(){return this.head.data}*[p](){for(let i=this.head;i;i=i.next){yield i.data}}_getString(i){let c="";let A=this.head;let p=0;do{const C=A.data;if(i>C.length){c+=C;i-=C.length}else{if(i===C.length){c+=C;++p;if(A.next)this.head=A.next;else this.head=this.tail=null}else{c+=d(C,0,i);this.head=A;A.data=d(C,i)}break}++p}while((A=A.next)!==null);this.length-=p;return c}_getBuffer(i){const c=v.allocUnsafe(i);const A=i;let d=this.head;let p=0;do{const v=d.data;if(i>v.length){C(c,v,A-i);i-=v.length}else{if(i===v.length){C(c,v,A-i);++p;if(d.next)this.head=d.next;else this.head=this.tail=null}else{C(c,new S(v.buffer,v.byteOffset,i),A-i);this.head=d;d.data=v.slice(i)}break}++p}while((d=d.next)!==null);this.length-=p;return c}[Symbol.for("nodejs.util.inspect.custom")](i,c){return T(this,{...c,depth:0,customInspect:false})}}},64999:(i,c,A)=>{const{pipeline:d}=A(16701);const p=A(94449);constLine truncated
|
||||
import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={3311:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,r,n,s,o,i){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.response=s;this.status=o;this.trailers=i}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:r,trailers:n}}))}}t.ClientStreamingCall=ClientStreamingCall},9499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var r;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(r=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=r.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==r.PENDING)throw new Error(`cannot resolve ${r[this.state].toLowerCase()}`);this._resolve(e);this._state=r.RESOLVED}reject(e){if(this.state!==r.PENDING)throw new Error(`cannot reject ${r[this.state].toLowerCase()}`);this._reject(e);this._state=r.REJECTED}resolvePending(e){if(this._state===r.PENDING)this.resolve(e)}rejectPending(e){if(this._state===r.PENDING)this.reject(e)}}t.Deferred=Deferred},800:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,r,n,s,o,i){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.responses=s;this.status=o;this.trailers=i}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:r}}))}}t.DuplexStreamingCall=DuplexStreamingCall},6762:(e,t,r)=>{var n;n={value:true};var s=r(2554);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return s.ServiceType}});var o=r(3402);n={enumerable:true,get:function(){return o.readMethodOptions}};n={enumerable:true,get:function(){return o.readMethodOption}};n={enumerable:true,get:function(){return o.readServiceOption}};var i=r(422);n={enumerable:true,get:function(){return i.RpcError}};var a=r(3474);n={enumerable:true,get:function(){return a.mergeRpcOptions}};var c=r(6407);n={enumerable:true,get:function(){return c.RpcOutputStreamController}};var l=r(5435);n={enumerable:true,get:function(){return l.TestTransport}};var u=r(9499);n={enumerable:true,get:function(){return u.Deferred}};n={enumerable:true,get:function(){return u.DeferredState}};var A=r(800);n={enumerable:true,get:function(){return A.DuplexStreamingCall}};var d=r(3311);n={enumerable:true,get:function(){return d.ClientStreamingCall}};var p=r(2715);n={enumerable:true,get:function(){return p.ServerStreamingCall}};var m=r(738);n={enumerable:true,get:function(){return m.UnaryCall}};var h=r(4359);n={enumerable:true,get:function(){return h.stackIntercept}};n={enumerable:true,get:function(){return h.stackDuplexStreamingInterceptors}};n={enumerable:true,get:function(){return h.stackClientStreamingInterceptors}};n={enumerable:true,get:function(){return h.stackServerStreamingInterceptors}};n={enumerable:true,get:function(){return h.stackUnaryInterceptors}};var g=r(4626);n={enumerable:true,get:function(){return g.ServerCallContextController}}},3402:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const n=r(8372);function normalizeMethodInfo(e,t){var r,s,o;let i=e;i.service=t;i.localName=(r=i.localName)!==null&&r!==void 0?r:n.lowerCamelCase(i.name);i.serverStreaming=!!i.serverStreaming;i.clientStreaming=!!i.cliLine truncated
|
||||
/*!
|
||||
* Tmp
|
||||
*
|
||||
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
||||
*
|
||||
* MIT Licensed
|
||||
*/
|
||||
const d=A(79896);const p=A(70857);const C=A(16928);const S=A(76982);const v={fs:d.constants,os:p.constants};const T="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",_=/XXXXXX/,V=3,K=(v.O_CREAT||v.fs.O_CREAT)|(v.O_EXCL||v.fs.O_EXCL)|(v.O_RDWR||v.fs.O_RDWR),ee=p.platform()==="win32",te=v.EBADF||v.os.errno.EBADF,re=v.ENOENT||v.os.errno.ENOENT,ne=448,ie=384,se="exit",oe=[],ae=d.rmdirSync.bind(d);let ce=false;function rimraf(i,c){return d.rm(i,{recursive:true},c)}function FN_RIMRAF_SYNC(i){return d.rmSync(i,{recursive:true})}function tmpName(i,c){const A=_parseArguments(i,c),p=A[0],C=A[1];_assertAndSanitizeOptions(p,(function(i,c){if(i)return C(i);let A=c.tries;(function _getUniqueName(){try{const i=_generateTmpName(c);d.stat(i,(function(c){if(!c){if(A-- >0)return _getUniqueName();return C(new Error("Could not get a unique tmp filename, max tries reached "+i))}C(null,i)}))}catch(i){C(i)}})()}))}function tmpNameSync(i){const c=_parseArguments(i),A=c[0];const p=_assertAndSanitizeOptionsSync(A);let C=p.tries;do{const i=_generateTmpName(p);try{d.statSync(i)}catch(c){return i}}while(C-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(i,c){const A=_parseArguments(i,c),p=A[0],C=A[1];tmpName(p,(function _tmpNameCreated(i,c){if(i)return C(i);d.open(c,K,p.mode||ie,(function _fileCreated(i,A){if(i)return C(i);if(p.discardDescriptor){return d.close(A,(function _discardCallback(i){return C(i,c,undefined,_prepareTmpFileRemoveCallback(c,-1,p,false))}))}else{const i=p.discardDescriptor||p.detachDescriptor;C(null,c,A,_prepareTmpFileRemoveCallback(c,i?-1:A,p,false))}}))}))}function fileSync(i){const c=_parseArguments(i),A=c[0];const p=A.discardDescriptor||A.detachDescriptor;const C=tmpNameSync(A);let S=d.openSync(C,K,A.mode||ie);if(A.discardDescriptor){d.closeSync(S);S=undefined}return{name:C,fd:S,removeCallback:_prepareTmpFileRemoveCallback(C,p?-1:S,A,true)}}function dir(i,c){const A=_parseArguments(i,c),p=A[0],C=A[1];tmpName(p,(function _tmpNameCreated(i,c){if(i)return C(i);d.mkdir(c,p.mode||ne,(function _dirCreated(i){if(i)return C(i);C(null,c,_prepareTmpDirRemoveCallback(c,p,false))}))}))}function dirSync(i){const c=_parseArguments(i),A=c[0];const p=tmpNameSync(A);d.mkdirSync(p,A.mode||ne);return{name:p,removeCallback:_prepareTmpDirRemoveCallback(p,A,true)}}function _removeFileAsync(i,c){const _handler=function(i){if(i&&!_isENOENT(i)){return c(i)}c()};if(0<=i[0])d.close(i[0],(function(){d.unlink(i[1],_handler)}));else d.unlink(i[1],_handler)}function _removeFileSync(i){let c=null;try{if(0<=i[0])d.closeSync(i[0])}catch(i){if(!_isEBADF(i)&&!_isENOENT(i))throw i}finally{try{d.unlinkSync(i[1])}catch(i){if(!_isENOENT(i))c=i}}if(c!==null){throw c}}function _prepareTmpFileRemoveCallback(i,c,A,d){const p=_prepareRemoveCallback(_removeFileSync,[c,i],d);const C=_prepareRemoveCallback(_removeFileAsync,[c,i],d,p);if(!A.keep)oe.unshift(p);return d?p:C}function _prepareTmpDirRemoveCallback(i,c,A){const p=c.unsafeCleanup?rimraf:d.rmdir.bind(d);const C=c.unsafeCleanup?FN_RIMRAF_SYNC:ae;const S=_prepareRemoveCallback(C,i,A);const v=_prepareRemoveCallback(p,i,A,S);if(!c.keep)oe.unshift(S);return A?S:v}function _prepareRemoveCallback(i,c,A,d){let p=false;return function _cleanupCallback(C){if(!p){const S=d||_cleanupCallback;const v=oe.indexOf(S);if(v>=0)oe.splice(v,1);p=true;if(A||i===ae||i===FN_RIMRAF_SYNC){return i(c)}else{return i(c,C||function(){})}}}}function _garbageCollector(){if(!ce)return;while(oe.length){try{oe[0]()}catch(i){}}}function _randomChars(i){let c=[],A=null;try{A=S.randomBytes(i)}catch(c){A=S.pseudoRandomBytes(i)}for(let d=0;d<i;d++){c.push(T[A[d]%T.length])}return c.join("")}function _isUndefined(i){return typeof i==="undefined"}function _parseArguments(i,c){if(typeof i==="function"){return[{},i]}if(_isUndefined(i)){return[{},c]}const A={};for(const c of Object.getOwnPropertyNames(i)){A[c]=i[c]}return[A,c]}function _resolvePath(i,c,A){const p=C.isAbsolute(i)?i:C.join(c,i);d.stat(p,(function(i){if(i){d.realpath(C.dirname(p),(function(i,c){if(i)return A(i);A(null,C.join(c,C.basename(p)))}))}else{d.realpath(p,A)}}))}function _resolvePathSync(i,c){const A=C.isAbsolute(i)?i:C.join(c,i);try{d.statSync(A);return d.realpathSync(A)}catch(i){const c=d.realpathSync(C.dirname(A));return C.join(c,C.basename(A))}}function _generateTmpName(i){const c=i.tmpdir;if(!_isUndefined(i.name)){return C.join(c,i.dir,i.name)}if(!_isUndefined(i.template)){return C.join(c,i.dir,i.template).replace(_,_randomChars(6))}const A=[i.prefix?i.prefix:"tmp","-",process.pid,"-",_randomChars(12),i.postfix?"-"+i.postfix:""].join("");return C.join(c,i.dir,A)}function _assertOptionsBase(i){if(!_isUndefined(i.name)){const c=i.name;if(C.isAbsolute(c))throw new Error(`name option must not contain an absolute path, found "${c}".`);const A=C.basename(c);if(A===".."||A==="."||A!==c)throw new Error(`name option must not contain a path, found "${c}".`)}if(!_isUndefined(i.template)&&!i.template.match(_)){throw neLine truncated
|
||||
/*! 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 d=[];const p=new Uint8Array([13,10]);K=0;let C=false;for(const[c,S]of i){if(typeof S==="string"){const i=me.encode(A+`; name="${escape(normalizeLinefeeds(c))}"`+`\r\n\r\n${normalizeLinefeeds(S)}\r\n`);d.push(i);K+=i.byteLength}else{const i=me.encode(`${A}; name="${escape(normalizeLinefeeds(c))}"`+(S.name?`; filename="${escape(S.name)}"`:"")+"\r\n"+`Content-Type: ${S.type||"application/octet-stream"}\r\n\r\n`);d.push(i,S,p);if(typeof S.size==="number"){K+=i.byteLength+S.size+p.byteLength}else{C=true}}}const S=me.encode(`--${c}--`);d.push(S);K+=S.byteLength;if(C){K=null}V=i;_=async function*(){for(const i of d){if(i.stream){yield*i.stream()}else{yield i}}};ee="multipart/form-data; boundary="+c}else if(S(i)){V=i;K=i.size;if(i.type){ee=i.type}}else if(typeof i[Symbol.asyncIterator]==="function"){if(c){throw new TypeError("keepalive")}if(p.isDisturbed(i)||i.locked){throw new TypeError("Response body object should not be disturbed or locked")}d=i instanceof pe?i:C(i)}if(typeof V==="string"||p.isBuffer(V)){K=Buffer.byteLength(V)}if(_!=null){let c;d=new pe({async start(){c=_(i)[Symbol.asyncIterator]()},async pull(i){const{value:A,done:p}=await c.next();if(p){queueMicrotask((()=>{i.close()}))}else{if(!ce(d)){i.enqueue(new Uint8Array(A))}}return i.desiredSize>0},async cancel(i){await c.return()},type:undefined})}const te={stream:d,source:V,length:K};return[te,ee]}function safelyExtractBody(i,c=false){if(!pe){pe=A(63774).ReadableStream}if(i instanceof pe){ae(!p.isDisturbed(i),"The body has already been consumed.");ae(!i.locked,"The stream is locked.")}return extractBody(i,c)}function cloneBody(i){const[c,A]=i.stream.tee();const d=ne(A,{transfer:[A]});const[,p]=d.tee();i.stream=c;return{stream:p,length:i.length,source:i.source}}async function*consumeBody(i){if(i){if(le(i)){yield i}else{const c=i.stream;if(p.isDisturbed(c)){throw new TypeError("The body has already been consumed.")}if(c.locked){throw new TypeError("The stream is locked.")}c[oe]=true;yield*c}}}function throwIfAborted(i){if(i.aborted){throw new re("The operation was aborted.","AbortError")}}function bodyMixinMethods(i){const c={blob(){return specConsumeBody(this,(i=>{let c=bodyMimeType(this);if(c==="failure"){c=""}else if(c){c=fe(c)}return new ie([i],{type:c})}),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(){te.brandCheck(this,i);throwIfAborted(this[ee]);const c=this.headers.get("Content-Type");if(/multipart\/form-data/.test(c)){const i={};for(const[c,A]of this.headers)i[c.toLowerCase()]=A;const c=new K;let A;try{A=new d({headers:i,preservePath:true})}catch(i){throw new re(`${i}`,"AbortError")}A.on("field",((i,A)=>{c.append(i,A)}));A.on("file",((i,A,d,p,C)=>{const S=[];if(p==="base64"||p.toLowerCase()==="base64"){let p="";A.on("data",(i=>{p+=i.toString().replace(/[\r\n]/gm,"");const c=p.length-p.length%4;S.push(Buffer.from(p.slice(0,c),"base64"));p=p.slice(c)}));A.on("end",(()=>{S.push(Buffer.from(p,"base64"));c.append(i,new ge(S,d,{type:C}))}))}else{A.on("data",(i=>{S.push(i)}));A.on("end",(()=>{c.append(i,new ge(S,d,{type:C}))}))}}));const p=new Promise(((i,c)=>{A.on("finish",i);A.on("error",(i=>c(new TypeError(i))))}));if(this.body!==null)for await(const i of consumeBody(this[ee].body))A.write(i);A.end();await p;return c}else if(/application\/x-www-form-urlencoded/.test(c)){let i;try{let c="";const A=new TextDecoder("utf-8",{ignoreBOM:true});for await(const i of consumeBody(this[ee].body)){if(!le(i)){throw new TypeError("Expected Uint8Array chunk")}c+=A.decode(i,{stream:true})}c+=A.decode();i=new URLSearchParams(c)}catch(i){throw Object.assign(new TypeError,{cause:i})}const c=new K;for(const[A,d]of i){c.append(A,d)}return c}else{await Promise.resolve();throwIfAborted(this[ee]);throw te.errors.exception({header:`${i.name}.formData`,message:"Could not parse content as FormData."})}}};return c}function mixinBody(i){Object.assign(i.prototype,bodyMixinMethods(i))}async function specConsumeBody(i,c,A){te.brandCheck(i,A);throwIfAborted(i[ee]);if(bodyUnusable(i[ee].body)){throw new TypeError("Body is unusable")}const d=_();const errorSteps=i=>d.reject(i);const successSteps=i=>{try{d.resolve(c(i))}catch(i){errorSteps(i)}};if(i[ee].body==null){successSteps(new Uint8Array);return d.promise}await V(i[ee].body,successSteps,errorSteps);return d.promise}function bodyUnusable(i){return i!=null&&(i.stream.locked||p.isDisturbed(i.stream))}function utf8DecodeBytes(i){if(i.length===0){return""}if(i[0]===239&&i[1]===187&&i[2]===191){i=i.subarray(3)}const c=Ee.decode(i);return c}function parseJSONFromBytes(i){return JSON.parse(utf8DecodeBytes(i))}function bodyMimeType(i){const{headLine truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */C[p-4]=this.maskKey[0];C[p-3]=this.maskKey[1];C[p-2]=this.maskKey[2];C[p-1]=this.maskKey[3];C[1]=A;if(A===126){C.writeUInt16BE(c,2)}else if(A===127){C[2]=C[3]=0;C.writeUIntBE(c,4,6)}C[1]|=128;for(let i=0;i<c;i++){C[p+i]=this.frameData[i]^this.maskKey[i%4]}return C}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},43171:(i,c,A)=>{const{Writable:d}=A(2203);const p=A(31637);const{parserStates:C,opcodes:S,states:v,emptyBuffer:T}=A(45913);const{kReadyState:_,kSentClose:V,kResponse:K,kReceivedClose:ee}=A(62933);const{isValidStatusCode:te,failWebsocketConnection:re,websocketMessageReceived:ne}=A(3574);const{WebsocketFrameSend:ie}=A(31237);const se={};se.ping=p.channel("undici:websocket:ping");se.pong=p.channel("undici:websocket:pong");class ByteParser extends d{#K=[];#X=0;#C=C.INFO;#ee={};#te=[];constructor(i){super();this.ws=i}_write(i,c,A){this.#K.push(i);this.#X+=i.length;this.run(A)}run(i){while(true){if(this.#C===C.INFO){if(this.#X<2){return i()}const c=this.consume(2);this.#ee.fin=(c[0]&128)!==0;this.#ee.opcode=c[0]&15;this.#ee.originalOpcode??=this.#ee.opcode;this.#ee.fragmented=!this.#ee.fin&&this.#ee.opcode!==S.CONTINUATION;if(this.#ee.fragmented&&this.#ee.opcode!==S.BINARY&&this.#ee.opcode!==S.TEXT){re(this.ws,"Invalid frame type was fragmented.");return}const A=c[1]&127;if(A<=125){this.#ee.payloadLength=A;this.#C=C.READ_DATA}else if(A===126){this.#C=C.PAYLOADLENGTH_16}else if(A===127){this.#C=C.PAYLOADLENGTH_64}if(this.#ee.fragmented&&A>125){re(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#ee.opcode===S.PING||this.#ee.opcode===S.PONG||this.#ee.opcode===S.CLOSE)&&A>125){re(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#ee.opcode===S.CLOSE){if(A===1){re(this.ws,"Received close frame with a 1-byte body.");return}const i=this.consume(A);this.#ee.closeInfo=this.parseCloseBody(false,i);if(!this.ws[V]){const i=Buffer.allocUnsafe(2);i.writeUInt16BE(this.#ee.closeInfo.code,0);const c=new ie(i);this.ws[K].socket.write(c.createFrame(S.CLOSE),(i=>{if(!i){this.ws[V]=true}}))}this.ws[_]=v.CLOSING;this.ws[ee]=true;this.end();return}else if(this.#ee.opcode===S.PING){const c=this.consume(A);if(!this.ws[ee]){const i=new ie(c);this.ws[K].socket.write(i.createFrame(S.PONG));if(se.ping.hasSubscribers){se.ping.publish({payload:c})}}this.#C=C.INFO;if(this.#X>0){continue}else{i();return}}else if(this.#ee.opcode===S.PONG){const c=this.consume(A);if(se.pong.hasSubscribers){se.pong.publish({payload:c})}if(this.#X>0){continue}else{i();return}}}else if(this.#C===C.PAYLOADLENGTH_16){if(this.#X<2){return i()}const c=this.consume(2);this.#ee.payloadLength=c.readUInt16BE(0);this.#C=C.READ_DATA}else if(this.#C===C.PAYLOADLENGTH_64){if(this.#X<8){return i()}const c=this.consume(8);const A=c.readUInt32BE(0);if(A>2**31-1){re(this.ws,"Received payload length > 2^31 bytes.");return}const d=c.readUInt32BE(4);this.#ee.payloadLength=(A<<8)+d;this.#C=C.READ_DATA}else if(this.#C===C.READ_DATA){if(this.#X<this.#ee.payloadLength){return i()}else if(this.#X>=this.#ee.payloadLength){const i=this.consume(this.#ee.payloadLength);this.#te.push(i);if(!this.#ee.fragmented||this.#ee.fin&&this.#ee.opcode===S.CONTINUATION){const i=Buffer.concat(this.#te);ne(this.ws,this.#ee.originalOpcode,i);this.#ee={};this.#te.length=0}this.#C=C.INFO}}if(this.#X>0){continue}else{i();break}}}consume(i){if(i>this.#X){return null}else if(i===0){return T}if(this.#K[0].length===i){this.#X-=this.#K[0].length;return this.#K.shift()}const c=Buffer.allocUnsafe(i);let A=0;while(A!==i){const d=this.#K[0];const{length:p}=d;if(p+A===i){c.set(this.#K.shift(),A);break}else if(p+A>i){c.set(d.subarray(0,i-A),A);this.#K[0]=d.subarray(i-A);break}else{c.set(this.#K.shift(),A);A+=d.length}}this.#X-=i;return c}parseCloseBody(i,c){let A;if(c.length>=2){A=c.readUInt16BE(0)}if(i){if(!te(A)){return null}return{code:A}}let d=c.subarray(2);if(d[0]===239&&d[1]===187&&d[2]===191){d=d.subarray(3)}if(A!==undefined&&!te(A)){return null}try{d=new TextDecoder("utf-8",{fatal:true}).decode(d)}catch{return null}return{code:A,reason:d}}get closingInfo(){return this.#ee.closeInfo}}i.exports={ByteParser:ByteParser}},62933:i=>{i.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(i,c,A)=>{const{kReadyState:d,kController:p,kResponse:C,kBinaryType:S,kWebSocketURL:v}=A(62933);const{states:T,opcodes:_}=A(45913);const{MessageEvent:V,ErrorEvent:K}=A(46255);function isEstablished(i){return i[d]===T.OPEN}function isClosing(i){return i[d]===T.CLOSING}function isClosed(i){return i[d]===T.CLOSED}function fireEvent(i,c,A=Event,d){const p=new A(i,d);c.dispatchEvent(p)}function websocketMessageReceived(i,c,A){if(i[d]!==T.OPEN){return}let p;if(c===_.TEXT){try{p=new TextDecoder("Line truncated
|
||||
/**
|
||||
* ZipStream
|
||||
*
|
||||
* @ignore
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
||||
* @copyright (c) 2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var d=A(39023).inherits;var p=A(25163).ZipArchiveOutputStream;var C=A(25163).ZipArchiveEntry;var S=A(53296);var v=i.exports=function(i){if(!(this instanceof v)){return new v(i)}i=this.options=i||{};i.zlib=i.zlib||{};p.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)}};d(v,p);v.prototype._normalizeFileData=function(i){i=S.defaults(i,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var c=i.type==="directory";var A=i.type==="symlink";if(i.name){i.name=S.sanitizePath(i.name);if(!A&&i.name.slice(-1)==="/"){c=true;i.type="directory"}else if(c){i.name+="/"}}if(c||A){i.store=true}i.date=S.dateify(i.date);return i};v.prototype.entry=function(i,c,A){if(typeof A!=="function"){A=this._emitErrorCallback.bind(this)}c=this._normalizeFileData(c);if(c.type!=="file"&&c.type!=="directory"&&c.type!=="symlink"){A(new Error(c.type+" entries not currently supported"));return}if(typeof c.name!=="string"||c.name.length===0){A(new Error("entry name must be a non-empty string value"));return}if(c.type==="symlink"&&typeof c.linkname!=="string"){A(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var d=new C(c.name);d.setTime(c.date,this.options.forceLocalTime);if(c.namePrependSlash){d.setName(c.name,true)}if(c.store){d.setMethod(0)}if(c.comment.length>0){d.setComment(c.comment)}if(c.type==="symlink"&&typeof c.mode!=="number"){c.mode=40960}if(typeof c.mode==="number"){if(c.type==="symlink"){c.mode|=40960}d.setUnixMode(c.mode)}if(c.type==="symlink"&&typeof c.linkname==="string"){i=Buffer.from(c.linkname)}return p.prototype.entry.call(this,d,i,A)};v.prototype.finalize=function(){this.finish()}},42613:c=>{c.exports=i(import.meta.url)("assert")},90290:c=>{c.exports=i(import.meta.url)("async_hooks")},20181:c=>{c.exports=i(import.meta.url)("buffer")},35317:c=>{c.exports=i(import.meta.url)("child_process")},64236:c=>{c.exports=i(import.meta.url)("console")},49140:c=>{c.exports=i(import.meta.url)("constants")},76982:c=>{c.exports=i(import.meta.url)("crypto")},31637:c=>{c.exports=i(import.meta.url)("diagnostics_channel")},24434:c=>{c.exports=i(import.meta.url)("events")},79896:c=>{c.exports=i(import.meta.url)("fs")},91943:c=>{c.exports=i(import.meta.url)("fs/promises")},58611:c=>{c.exports=i(import.meta.url)("http")},85675:c=>{c.exports=i(import.meta.url)("http2")},65692:c=>{c.exports=i(import.meta.url)("https")},69278:c=>{c.exports=i(import.meta.url)("net")},34589:c=>{c.exports=i(import.meta.url)("node:assert")},16698:c=>{c.exports=i(import.meta.url)("node:async_hooks")},4573:c=>{c.exports=i(import.meta.url)("node:buffer")},37540:c=>{c.exports=i(import.meta.url)("node:console")},77598:c=>{c.exports=i(import.meta.url)("node:crypto")},53053:c=>{c.exports=i(import.meta.url)("node:diagnostics_channel")},40610:c=>{c.exports=i(import.meta.url)("node:dns")},78474:c=>{c.exports=i(import.meta.url)("node:events")},73024:c=>{c.exports=i(import.meta.url)("node:fs")},51455:c=>{c.exports=i(import.meta.url)("node:fs/promises")},37067:c=>{c.exports=i(import.meta.url)("node:http")},32467:c=>{c.exports=i(import.meta.url)("node:http2")},44708:c=>{c.exports=i(import.meta.url)("node:https")},77030:c=>{c.exports=i(import.meta.url)("node:net")},48161:c=>{c.exports=i(import.meta.url)("node:os")},76760:c=>{c.exports=i(import.meta.url)("node:path")},643:c=>{c.exports=i(import.meta.url)("node:perf_hooks")},1708:c=>{c.exports=i(import.meta.url)("node:process")},41792:c=>{c.exports=i(import.meta.url)("node:querystring")},57075:c=>{c.exports=i(import.meta.url)("node:stream")},68574:c=>{c.exports=i(import.meta.url)("node:string_decoder")},41692:c=>{c.exports=i(import.meta.url)("node:tls")},73136:c=>{c.exports=i(import.meta.url)("node:url")},57975:c=>{c.exports=i(import.meta.url)("node:util")},73429:c=>{c.exports=i(import.meta.url)("node:util/types")},75919:c=>{c.exports=i(import.meta.url)("node:worker_threads")},38522:c=>{c.exports=i(import.meta.url)("node:zlib")},70857:c=>{c.exports=i(import.meta.url)("os")},16928:c=>{c.exports=i(import.meta.url)("path")},82987:c=>{c.exports=i(import.meta.url)("perf_hooks")},83480:c=>{c.exports=i(import.meta.url)("querystring")},2203:c=>{c.exports=i(import.meta.url)("stream")},63774:c=>{c.exports=i(import.meta.url)("stream/web")},13193:c=>{c.exports=i(import.meta.url)("string_decoder")},53557:c=>{c.exports=i(import.meta.url)("timers")},64756:c=>{c.exports=i(import.meta.url)("tls")},52018:c=>{c.exports=i(import.meta.url)("tty")},87016:c=>{c.exports=i(import.meta.url)("url")},39023:c=>{c.exports=i(import.meta.url)("util")},98253:c=>{c.exports=i(import.meta.url)("util/types")},28167:c=>{c.exports=i(import.meta.url)("worker_threads")},43106:c=>{c.exports=i(import.meta.url)("zlib")},5Line truncated
|
||||
*/const s=r(9896);const o=r(857);const i=r(6928);const a=r(6982);const c={fs:s.constants,os:o.constants};const l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",u=/XXXXXX/,A=3,d=(c.O_CREAT||c.fs.O_CREAT)|(c.O_EXCL||c.fs.O_EXCL)|(c.O_RDWR||c.fs.O_RDWR),p=o.platform()==="win32",m=c.EBADF||c.os.errno.EBADF,h=c.ENOENT||c.os.errno.ENOENT,g=448,f=384,E="exit",y=[],C=s.rmdirSync.bind(s);let I=false;function rimraf(e,t){return s.rm(e,{recursive:true},t)}function FN_RIMRAF_SYNC(e){return s.rmSync(e,{recursive:true})}function tmpName(e,t){const r=_parseArguments(e,t),n=r[0],o=r[1];_assertAndSanitizeOptions(n,(function(e,t){if(e)return o(e);let r=t.tries;(function _getUniqueName(){try{const e=_generateTmpName(t);s.stat(e,(function(t){if(!t){if(r-- >0)return _getUniqueName();return o(new Error("Could not get a unique tmp filename, max tries reached "+e))}o(null,e)}))}catch(e){o(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),r=t[0];const n=_assertAndSanitizeOptionsSync(r);let o=n.tries;do{const e=_generateTmpName(n);try{s.statSync(e)}catch(t){return e}}while(o-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){const r=_parseArguments(e,t),n=r[0],o=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return o(e);s.open(t,d,n.mode||f,(function _fileCreated(e,r){if(e)return o(e);if(n.discardDescriptor){return s.close(r,(function _discardCallback(e){return o(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,n,false))}))}else{const e=n.discardDescriptor||n.detachDescriptor;o(null,t,r,_prepareTmpFileRemoveCallback(t,e?-1:r,n,false))}}))}))}function fileSync(e){const t=_parseArguments(e),r=t[0];const n=r.discardDescriptor||r.detachDescriptor;const o=tmpNameSync(r);let i=s.openSync(o,d,r.mode||f);if(r.discardDescriptor){s.closeSync(i);i=undefined}return{name:o,fd:i,removeCallback:_prepareTmpFileRemoveCallback(o,n?-1:i,r,true)}}function dir(e,t){const r=_parseArguments(e,t),n=r[0],o=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return o(e);s.mkdir(t,n.mode||g,(function _dirCreated(e){if(e)return o(e);o(null,t,_prepareTmpDirRemoveCallback(t,n,false))}))}))}function dirSync(e){const t=_parseArguments(e),r=t[0];const n=tmpNameSync(r);s.mkdirSync(n,r.mode||g);return{name:n,removeCallback:_prepareTmpDirRemoveCallback(n,r,true)}}function _removeFileAsync(e,t){const _handler=function(e){if(e&&!_isENOENT(e)){return t(e)}t()};if(0<=e[0])s.close(e[0],(function(){s.unlink(e[1],_handler)}));else s.unlink(e[1],_handler)}function _removeFileSync(e){let t=null;try{if(0<=e[0])s.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{s.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throw t}}function _prepareTmpFileRemoveCallback(e,t,r,n){const s=_prepareRemoveCallback(_removeFileSync,[t,e],n);const o=_prepareRemoveCallback(_removeFileAsync,[t,e],n,s);if(!r.keep)y.unshift(s);return n?s:o}function _prepareTmpDirRemoveCallback(e,t,r){const n=t.unsafeCleanup?rimraf:s.rmdir.bind(s);const o=t.unsafeCleanup?FN_RIMRAF_SYNC:C;const i=_prepareRemoveCallback(o,e,r);const a=_prepareRemoveCallback(n,e,r,i);if(!t.keep)y.unshift(i);return r?i:a}function _prepareRemoveCallback(e,t,r,n){let s=false;return function _cleanupCallback(o){if(!s){const i=n||_cleanupCallback;const a=y.indexOf(i);if(a>=0)y.splice(a,1);s=true;if(r||e===C||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,o||function(){})}}}}function _garbageCollector(){if(!I)return;while(y.length){try{y[0]()}catch(e){}}}function _randomChars(e){let t=[],r=null;try{r=a.randomBytes(e)}catch(t){r=a.pseudoRandomBytes(e)}for(let n=0;n<e;n++){t.push(l[r[n]%l.length])}return t.join("")}function _isUndefined(e){return typeof e==="undefined"}function _parseArguments(e,t){if(typeof e==="function"){return[{},e]}if(_isUndefined(e)){return[{},t]}const r={};for(const t of Object.getOwnPropertyNames(e)){r[t]=e[t]}return[r,t]}function _resolvePath(e,t,r){const n=i.isAbsolute(e)?e:i.join(t,e);s.stat(n,(function(e){if(e){s.realpath(i.dirname(n),(function(e,t){if(e)return r(e);r(null,i.join(t,i.basename(n)))}))}else{s.realpath(n,r)}}))}function _resolvePathSync(e,t){const r=i.isAbsolute(e)?e:i.join(t,e);try{s.statSync(r);return s.realpathSync(r)}catch(e){const t=s.realpathSync(i.dirname(r));return i.join(t,i.basename(r))}}function _generateTmpName(e){const t=e.tmpdir;if(!_isUndefined(e.name)){return i.join(t,e.dir,e.name)}if(!_isUndefined(e.template)){return i.join(t,e.dir,e.template).replace(u,_randomChars(6))}const r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",_randomChars(12),e.postfix?"-"+e.postfix:""].join("");return i.join(t,e.dir,r)}function _assertOptionsBase(e){if(!_isUndefined(e.name)){const t=e.name;if(i.isAbsolute(t))throw new Error(`name option must not contain an absolute path, found "${t}".`);const r=i.basename(t);if(r===".."||r==="."||r!==t)throw new Error(`name option must not contain a path, found "${t}".`)}if(!_isUndefined(e.template)&&!e.template.match(u)){throw new Error(`Invalid templatLine truncated
|
||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const n=[];const s=new Uint8Array([13,10]);u=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=b.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);u+=e.byteLength}else{const e=b.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){u+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=b.encode(`--${t}--\r\n`);n.push(i);u+=i.byteLength;if(o){u=null}l=e;c=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};A=`multipart/form-data; boundary=${t}`}else if(o(e)){l=e;u=e.size;if(e.type){A=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(n.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}r=e instanceof ReadableStream?e:s(e)}if(typeof l==="string"||n.isBuffer(l)){u=Buffer.byteLength(l)}if(c!=null){let t;r=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!f(r)){const t=new Uint8Array(n);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const d={stream:r,source:l,length:u};return[d,A]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){g(!n.isDisturbed(e),"The body has already been consumed.");g(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[r,n]=t.stream.tee();t.stream=r;return{stream:n,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=C(t)}return new h([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,A,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const r=I(e,t);if(r==="failure"){throw new TypeError("Failed to parse body as FormData.")}const n=new d;n[p]=r;return n}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const r=new d;for(const[e,n]of t){r.append(e,n)}return r}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,r){m.brandCheck(e,r);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[p]);const n=c();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[p].body==null){successSteps(Buffer.allocUnsafe(0));return n.promise}await l(e[p].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){const t=e[p].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(A(e))}function bodyMimeType(e){const t=e[p].headersList;const r=u(t);if(r==="failure"){return null}return r}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:S,hasFinalizationRegistry:w,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const r=new Set(t);const n=[101,204,205,304];const s=[301,302,303,307,308];const o=new Set(s);const i=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const a=new Set(i);const c=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const l=new Set(c);const u=["follow","manual","error"];const A=["GET","HEAD","OPTIONS","TRACE"];const d=new Set(A);const p=["navigate","same-origin","no-cors","cors"];const m=["omit","same-origin","include"];const h=["default","no-store","reload","no-cache","force-cLine truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */a[i-4]=r[0];a[i-3]=r[1];a[i-2]=r[2];a[i-1]=r[3];a[1]=o;if(o===126){a.writeUInt16BE(s,2)}else if(o===127){a[2]=a[3]=0;a.writeUIntBE(s,4,6)}a[1]|=128;for(let e=0;e<s;++e){a[i+e]=t[e]^r[e&3]}return a}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(e,t,r)=>{const{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:s}=r(8522);const{isValidClientWindowBits:o}=r(8625);const i=Buffer.from([0,0,255,255]);const a=Symbol("kBuffer");const c=Symbol("kLength");class PerMessageDeflate{#j;#p={};constructor(e){this.#p.serverNoContextTakeover=e.has("server_no_context_takeover");this.#p.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(!this.#j){let e=s;if(this.#p.serverMaxWindowBits){if(!o(this.#p.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#p.serverMaxWindowBits)}this.#j=n({windowBits:e});this.#j[a]=[];this.#j[c]=0;this.#j.on("data",(e=>{this.#j[a].push(e);this.#j[c]+=e.length}));this.#j.on("error",(e=>{this.#j=null;r(e)}))}this.#j.write(e);if(t){this.#j.write(i)}this.#j.flush((()=>{const e=Buffer.concat(this.#j[a],this.#j[c]);this.#j[a].length=0;this.#j[c]=0;r(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,r)=>{const{Writable:n}=r(7075);const s=r(4589);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c,sentCloseFrameState:l}=r(736);const{kReadyState:u,kSentClose:A,kResponse:d,kReceivedClose:p}=r(1216);const{channels:m}=r(2414);const{isValidStatusCode:h,isValidOpcode:g,failWebsocketConnection:f,websocketMessageReceived:E,utf8Decode:y,isControlFrame:C,isTextBinaryFrame:I,isContinuationFrame:B}=r(8625);const{WebsocketFrameSend:b}=r(3264);const{closeWebSocketConnection:w}=r(6897);const{PerMessageDeflate:S}=r(9469);class ByteParser extends n{#K=[];#X=0;#Z=false;#C=o.INFO;#ee={};#te=[];#re;constructor(e,t){super();this.ws=e;this.#re=t==null?new Map:t;if(this.#re.has("permessage-deflate")){this.#re.set("permessage-deflate",new S(t))}}_write(e,t,r){this.#K.push(e);this.#X+=e.length;this.#Z=true;this.run(r)}run(e){while(this.#Z){if(this.#C===o.INFO){if(this.#X<2){return e()}const t=this.consume(2);const r=(t[0]&128)!==0;const n=t[0]&15;const s=(t[1]&128)===128;const a=!r&&n!==i.CONTINUATION;const c=t[1]&127;const l=t[0]&64;const u=t[0]&32;const A=t[0]&16;if(!g(n)){f(this.ws,"Invalid opcode received");return e()}if(s){f(this.ws,"Frame cannot be masked");return e()}if(l!==0&&!this.#re.has("permessage-deflate")){f(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||A!==0){f(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!I(n)){f(this.ws,"Invalid frame type was fragmented.");return}if(I(n)&&this.#te.length>0){f(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&a){f(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&C(n)){f(this.ws,"Control frame either too large or fragmented");return}if(B(n)&&this.#te.length===0&&!this.#ee.compressed){f(this.ws,"Unexpected continuation frame");return}if(c<=125){this.#ee.payloadLength=c;this.#C=o.READ_DATA}else if(c===126){this.#C=o.PAYLOADLENGTH_16}else if(c===127){this.#C=o.PAYLOADLENGTH_64}if(I(n)){this.#ee.binaryType=n;this.#ee.compressed=l!==0}this.#ee.opcode=n;this.#ee.masked=s;this.#ee.fin=r;this.#ee.fragmented=a}else if(this.#C===o.PAYLOADLENGTH_16){if(this.#X<2){return e()}const t=this.consume(2);this.#ee.payloadLength=t.readUInt16BE(0);this.#C=o.READ_DATA}else if(this.#C===o.PAYLOADLENGTH_64){if(this.#X<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){f(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#ee.payloadLength=(r<<8)+n;this.#C=o.READ_DATA}else if(this.#C===o.READ_DATA){if(this.#X<this.#ee.payloadLength){return e()}const t=this.consume(this.#ee.payloadLength);if(C(this.#ee.opcode)){this.#Z=this.parseControlFrame(t);this.#C=o.INFO}else{if(!this.#ee.compressed){this.#te.push(t);if(!this.#ee.fragmented&&this.#ee.fin){const e=Buffer.concat(this.#te);E(this.ws,this.#ee.binaryType,e);this.#te.length=0}this.#C=o.INFO}else{this.#re.get("permessage-deflate").decompress(t,this.#ee.fin,((t,r)=>{if(t){w(this.ws,1007,t.message,t.message.length);return}this.#te.push(r);if(!this.#ee.fin){this.#C=o.INFO;this.#Z=true;this.run(e);return}E(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#Z=true;this.#C=o.INFO;this.#te.length=0;this.run(e)}));this.#Z=false;break}}}}}consume(e){if(e>this.#X){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return c}if(this.#K[0].length===e){this.#X-=this.#K[0].length;return this.#K.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#K[0];const{length:s}=n;if(s+r===e){t.set(this.#K.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#K[0]=n.subarray(e-r);break}else{t.set(this.#K.shift(),r);r+=n.length}}this.#X-=e;return t}parseCloseBody(e){s(e.length!==1);let t;if(e.length>=2){t=e.readUInt16BE(0)}if(t!==undefined&&!h(t)){retuLine truncated
|
||||
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var Kp="10.0.8";var Xp={headers:{"user-agent":`octokit-request.js/${Kp} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var noop=()=>"";async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSONStringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const l={};for(const[e,t]of i.headers){l[e]=t}const u={url:c,status:a,headers:l,data:""};if("deprecation"in l){const t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return u}if(e.method==="HEAD"){if(a<400){return u}throw new RequestError(i.statusText,a,{response:u,request:e})}if(a===304){u.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:u,request:e})}if(a>=400){u.data=await getResponseData(i);throw new RequestError(toErrorMessage(u.data),a,{response:u,request:e})}u.data=n?await getResponseData(i):i.body;return u}async function getResponseData(e){const t=e.headers.get("content-type");if(!t){return e.text().catch(noop)}const r=(0,Jp.xL)(t);if(isJSONResponse(r)){let t="";try{t=await e.text();return JSONParse(t)}catch(e){return t}}else if(r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"){return e.text().catch(noop)}else{return e.arrayBuffer().catch((
|
||||
/* v8 ignore next -- @preserve */
|
||||
()=>new ArrayBuffer(0)))}}function isJSONResponse(e){return e.type==="application/json"||e.type==="application/scim+json"}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var Zp=dist_bundle_withDefaults($p,Xp);
|
||||
/* v8 ignore next -- @preserve */
|
||||
/* v8 ignore else -- @preserve */var em="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var tm=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var rm=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var nm=["query","method","url"];var sm=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!nm.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(rm.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(sm.test(o)){s.url=o.replace(sm,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new tm(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var om=graphql_dist_bundle_withDefaults(Zp,{headers:{"user-agent":`octokit-graphql.js/${em} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var im="(?:[a-zA-Z0-9_-]+)";var am="\\.";var cm=new RegExp(`^${im}${am}${im}${am}${im}$`);var lm=cm.test.bind(cm);async function auth(e){const t=lm(e);const r=e.startsWith("v1.")||e.startsWith("ghs_");const n=e.startsWith("ghu_");const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var um=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const Am="7.0.6";const dist_src_noop=()=>{};const dm=console.warn.bind(console);const hm=console.error.bind(console);function createLogger(e={}){if(typeof e.debug!=="function"){e.debug=dist_src_noop}if(typeof e.info!=="function"){e.info=dist_src_noop}if(typeof e.warn!=="function"){e.warn=dm}if(typeof e.error!=="function"){e.error=hm}return e}const gm=`octokit-core.js/${Am} ${getUserAgent()}`;class Octokit{static VERSION=Am;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Hp.Collection;const r={baseUrl:Zp.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${gm}`:gm;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=Zp.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=createLogger(e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=um(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t<n.plugins.length;++t){Object.assign(this,n.plugins[t](this,e))}}request;graphql;log;hook;auth}const fm="17.0.0";const Em={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repositoLine truncated
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","FinalizeMigratedArtifactResponse","FinalizeMigratedArtifactRequest","MigrateArtifactResponse","MigrateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","MigrateArtifactRequest$Type","workflowRunBackendId","expiresAt","fork","join","MigrateArtifactResponse$Type","ok","signedUploadUrl","FinalizeMigratedArtifactRequest$Type","size","FinalizeMigratedArtifactResponse$Type","artifactId","CreateArtifactRequest$Type","workflowJobRunBackendId","version","CreateArtifactResponse$Type","FinalizeArtifactRequest$Type","hash","FinalizeArtifactResponse$Type","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","digest","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","then","fromJson","ignoreUnknownFields","toBinary","fromBinary","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","apply","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","ownKeys","getOwnPropertyNames","ar","mod","__importDefault","default","streamExtractExternal","promises_1","crypto","stream","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","path","access","code","streamExtract","directory","retryCount","setTimeout","url_1","diLine truncated
|
||||
{"version":3,"file":"index.js","names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","Object","defineProperty","exports","ClientStreamingCall","constructor","method","requestHeaders","request","headers","response","status","trailers","requests","onfulfilled","onrejected","promiseFinished","reason","all","Deferred","DeferredState","preventUnhandledRejectionWarning","_state","PENDING","_promise","_resolve","_reject","catch","_","state","promise","Error","toLowerCase","RESOLVED","REJECTED","resolvePending","val","rejectPending","DuplexStreamingCall","responses","__webpack_unused_export__","service_type_1","__webpack_require__","enumerable","get","ServiceType","reflection_info_1","readMethodOptions","readMethodOption","readServiceOption","rpc_error_1","RpcError","rpc_options_1","mergeRpcOptions","rpc_output_stream_1","RpcOutputStreamController","test_transport_1","TestTransport","deferred_1","duplex_streaming_call_1","client_streaming_call_1","server_streaming_call_1","ServerStreamingCall","unary_call_1","UnaryCall","rpc_interceptor_1","stackIntercept","stackDuplexStreamingInterceptors","stackClientStreamingInterceptors","stackServerStreamingInterceptors","stackUnaryInterceptors","server_call_context_1","ServerCallContextController","normalizeMethodInfo","runtime_1","service","_a","_b","_c","m","localName","lowerCamelCase","name","serverStreaming","clientStreaming","options","idempotency","undefined","methodName","extensionName","extensionType","methods","find","i","fromJson","optionVal","message","code","meta","super","setPrototypeOf","prototype","toString","l","push","serviceName","entries","length","k","v","join","kind","transport","input","_d","tail","mtd","inp","opt","unary","curr","interceptors","filter","interceptUnary","reverse","interceptServerStreaming","interceptClientStreaming","duplex","interceptDuplex","assertNever","defaults","o","copy","key","keys","jsonOptions","mergeJsonOptions","binaryOptions","mergeBinaryOptions","concat","a","into","c","Date","getTime","Array","isArray","_lis","nxt","msg","err","cmp","_closed","_itState","q","onNext","callback","addLis","onMessage","onError","onComplete","list","indexOf","splice","clearLis","values","closed","notifyNext","error","complete","assert","notifyMessage","notifyError","notifyComplete","pushIt","forEach","Symbol","asyncIterator","p","first","shift","deadline","sendResponseHeadersFn","defaultStatus","detail","_cancelled","_listeners","_sendRH","notifyCancelled","sendResponseHeaders","data","cancelled","onCancel","typeName","map","suppressUncaughtRejections","headerDelay","responseDelay","betweenResponseDelay","afterResponseDelay","sentMessages","lastInput","TestInputStream","sent","single","sendComplete","completed","promiseHeaders","defaultHeaders","promiseSingleResponse","r","O","create","is","streamResponses","stream","abort","messages","delay","promiseStatus","promiseTrailers","defaultTrailers","maybeSuppressUncaught","mergeOptions","headersPromise","responsePromise","statusPromise","trailersPromise","outputStream","responseStreamClosedPromise","responseHeader","responseTrailer","ms","aborted","id","setTimeout","addEventListener","ev","clearTimeout","_completed","_sent","send","inputMessage","delayMs","inputComplete","assertFloat32","assertUInt32","assertInt32","condition","FLOAT32_MAX","FLOAT32_MIN","UINT32_MAX","INT32_MAX","INT32_MIN","arg","Number","isInteger","isFinite","base64encode","base64decode","encTable","split","decTable","charCodeAt","base64Str","es","bytes","Uint8Array","bytePos","groupPos","b","subarray","base64","WireType","UnknownFieldHandler","symbol","for","onRead","fieldNo","wireType","container","no","onWrite","writer","tag","raw","uf","last","slice","assign","BinaryReader","binaryReadOptions","binary_format_contract_1","pb_long_1","goog_varint_1","defaultsRead","readUnknownField","readerFactory","buf","textDecoder","varint64","varint64read","uint32","varint32read","len","pos","view","DataView","buffer","byteOffset","byteLength","TextDecoder","fatal","ignoreBOM","skip","start","Varint","Bit64","Bit32","LengthDelimited","StartGroup","t","EndGroup","assertBounds","RangeError","int32","sint32","zze","int64","PbLong","uint64","PbULong","sint64","lo","hi","s","bool","fixed32","getUint32","sfixed32","getInt32","fixed64","sfixed64","float","getFloat32","double","getFloat64","string","decode","BinaryWriter","binaryWriteOptions","assert_1","defaultsWrite","writeUnknownFields","writerFactory","textEncoder","stack","TextEncoder","chunks","finish","offset","set","fork","chunk","prev","pop","type","varint32write","encode","setFloat32","setFloat64","setUint32","setInt32","long","from","varint64write","sign","listEnumNumbers","listEnumNames","listEnumValues","isEnumObject","hasOwnProperty","num","parseInt","isNaN","nam","enumObject","number","index","arr","int64toString","int64fromString","lowBits","highBits","mLine truncated
|
||||
+26
-1918
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user