chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-03-04 09:19:30 +00:00
1 parent f4771c2b1f
commit f0f930b111
2 files changed
+5 -5

No files matched your search

Generated Vendored
+4 -4
View File
@@ -2,11 +2,11 @@ import './sourcemap-register.cjs';import{createRequire as r}from"module";var i={
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const c=new Uint8Array([13,10]);b=0;let l=false;for(const[i,u]of r){if(typeof u==="string"){const r=x.encode(A+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(u)}\r\n`);a.push(r);b+=r.byteLength}else{const r=x.encode(`${A}; name="${escape(normalizeLinefeeds(i))}"`+(u.name?`; filename="${escape(u.name)}"`:"")+"\r\n"+`Content-Type: ${u.type||"application/octet-stream"}\r\n\r\n`);a.push(r,u,c);if(typeof u.size==="number"){b+=r.byteLength+u.size+c.byteLength}else{l=true}}}const u=x.encode(`--${i}--`);a.push(u);b+=u.byteLength;if(l){b=null}g=r;h=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};C="multipart/form-data; boundary="+i}else if(u(r)){g=r;b=r.size;if(r.type){C=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(c.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=r instanceof T?r:l(r)}if(typeof g==="string"||c.isBuffer(g)){b=Buffer.byteLength(g)}if(h!=null){let i;a=new T({async start(){i=h(r)[Symbol.asyncIterator]()},async pull(r){const{value:A,done:c}=await i.next();if(c){queueMicrotask((()=>{r.close()}))}else{if(!R(a)){r.enqueue(new Uint8Array(A))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const B={stream:a,source:g,length:b};return[B,C]}function safelyExtractBody(r,i=false){if(!T){T=A(63774).ReadableStream}if(r instanceof T){w(!c.isDisturbed(r),"The body has already been consumed.");w(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,A]=r.stream.tee();const a=Q(A,{transfer:[A]});const[,c]=a.tee();r.stream=i;return{stream:c,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(S(r)){yield r}else{const i=r.stream;if(c.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[O]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new I("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=D(i)}return new y([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){B.brandCheck(this,r);throwIfAborted(this[C]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,A]of this.headers)r[i.toLowerCase()]=A;const i=new b;let A;try{A=new a({headers:r,preservePath:true})}catch(r){throw new I(`${r}`,"AbortError")}A.on("field",((r,A)=>{i.append(r,A)}));A.on("file",((r,A,a,c,l)=>{const u=[];if(c==="base64"||c.toLowerCase()==="base64"){let c="";A.on("data",(r=>{c+=r.toString().replace(/[\r\n]/gm,"");const i=c.length-c.length%4;u.push(Buffer.from(c.slice(0,i),"base64"));c=c.slice(i)}));A.on("end",(()=>{u.push(Buffer.from(c,"base64"));i.append(r,new L(u,a,{type:l}))}))}else{A.on("data",(r=>{u.push(r)}));A.on("end",(()=>{i.append(r,new L(u,a,{type:l}))}))}}));const c=new Promise(((r,i)=>{A.on("finish",r);A.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[C].body))A.write(r);A.end();await c;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const A=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[C].body)){if(!S(r)){throw new TypeError("Expected Uint8Array chunk")}i+=A.decode(r,{stream:true})}i+=A.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new b;for(const[A,a]of r){i.append(A,a)}return i}else{await Promise.resolve();throwIfAborted(this[C]);throw B.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,A){B.brandCheck(r,A);throwIfAborted(r[C]);if(bodyUnusable(r[C].body)){throw new TypeError("Body is unusable")}const a=h();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(i(r))}catch(r){errorSteps(r)}};if(r[C].body==null){successSteps(new Uint8Array);return a.promise}await g(r[C].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||c.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=q.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[C];const A=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[c-4]=this.maskKey[0];l[c-3]=this.maskKey[1];l[c-2]=this.maskKey[2];l[c-1]=this.maskKey[3];l[1]=A;if(A===126){l.writeUInt16BE(i,2)}else if(A===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(let r=0;r<i;r++){l[c+r]=this.frameData[r]^this.maskKey[r%4]}return l}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},85553:(r,i,A)=>{const{Writable:a}=A(2203);const c=A(31637);const{parserStates:l,opcodes:u,states:d,emptyBuffer:p}=A(31859);const{kReadyState:h,kSentClose:g,kResponse:b,kReceivedClose:C}=A(65199);const{isValidStatusCode:B,failWebsocketConnection:I,websocketMessageReceived:Q}=A(34604);const{WebsocketFrameSend:y}=A(80231);const M={};M.ping=c.channel("undici:websocket:ping");M.pong=c.channel("undici:websocket:pong");class ByteParser extends a{#i=[];#A=0;#a=l.INFO;#c={};#l=[];constructor(r){super();this.ws=r}_write(r,i,A){this.#i.push(r);this.#A+=r.length;this.run(A)}run(r){while(true){if(this.#a===l.INFO){if(this.#A<2){return r()}const i=this.consume(2);this.#c.fin=(i[0]&128)!==0;this.#c.opcode=i[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==u.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==u.BINARY&&this.#c.opcode!==u.TEXT){I(this.ws,"Invalid frame type was fragmented.");return}const A=i[1]&127;if(A<=125){this.#c.payloadLength=A;this.#a=l.READ_DATA}else if(A===126){this.#a=l.PAYLOADLENGTH_16}else if(A===127){this.#a=l.PAYLOADLENGTH_64}if(this.#c.fragmented&&A>125){I(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===u.PING||this.#c.opcode===u.PONG||this.#c.opcode===u.CLOSE)&&A>125){I(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===u.CLOSE){if(A===1){I(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(A);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[g]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const i=new y(r);this.ws[b].socket.write(i.createFrame(u.CLOSE),(r=>{if(!r){this.ws[g]=true}}))}this.ws[h]=d.CLOSING;this.ws[C]=true;this.end();return}else if(this.#c.opcode===u.PING){const i=this.consume(A);if(!this.ws[C]){const r=new y(i);this.ws[b].socket.write(r.createFrame(u.PONG));if(M.ping.hasSubscribers){M.ping.publish({payload:i})}}this.#a=l.INFO;if(this.#A>0){continue}else{r();return}}else if(this.#c.opcode===u.PONG){const i=this.consume(A);if(M.pong.hasSubscribers){M.pong.publish({payload:i})}if(this.#A>0){continue}else{r();return}}}else if(this.#a===l.PAYLOADLENGTH_16){if(this.#A<2){return r()}const i=this.consume(2);this.#c.payloadLength=i.readUInt16BE(0);this.#a=l.READ_DATA}else if(this.#a===l.PAYLOADLENGTH_64){if(this.#A<8){return r()}const i=this.consume(8);const A=i.readUInt32BE(0);if(A>2**31-1){I(this.ws,"Received payload length > 2^31 bytes.");return}const a=i.readUInt32BE(4);this.#c.payloadLength=(A<<8)+a;this.#a=l.READ_DATA}else if(this.#a===l.READ_DATA){if(this.#A<this.#c.payloadLength){return r()}else if(this.#A>=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#l.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===u.CONTINUATION){const r=Buffer.concat(this.#l);Q(this.ws,this.#c.originalOpcode,r);this.#c={};this.#l.length=0}this.#a=l.INFO}}if(this.#A>0){continue}else{r();break}}}consume(r){if(r>this.#A){return null}else if(r===0){return p}if(this.#i[0].length===r){this.#A-=this.#i[0].length;return this.#i.shift()}const i=Buffer.allocUnsafe(r);let A=0;while(A!==r){const a=this.#i[0];const{length:c}=a;if(c+A===r){i.set(this.#i.shift(),A);break}else if(c+A>r){i.set(a.subarray(0,r-A),A);this.#i[0]=a.subarray(r-A);break}else{i.set(this.#i.shift(),A);A+=a.length}}this.#A-=r;return i}parseCloseBody(r,i){let A;if(i.length>=2){A=i.readUInt16BE(0)}if(r){if(!B(A)){return null}return{code:A}}let a=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(A!==undefined&&!B(A)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:A,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},65199:r=>{r.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")}},34604:(r,i,A)=>{const{kReadyState:a,kController:c,kResponse:l,kBinaryType:u,kWebSocketURL:d}=A(65199);const{states:p,opcodes:h}=A(31859);const{MessageEvent:g,ErrorEvent:b}=A(3273);function isEstablished(r){return r[a]===p.OPEN}function isClosing(r){return r[a]===p.CLOSING}function isClosed(r){return r[a]===p.CLOSED}function fireEvent(r,i,A=Event,a){const c=new A(r,a);i.dispatchEvent(c)}function websocketMessageReceived(r,i,A){if(r[a]!==p.OPEN){return}let c;if(i===h.TEXT){try{c=new TextDecoder("utf-8",{fatal:true}).decode(A)}catch{failWebsocketConnectioLine truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const c=new Uint8Array([13,10]);b=0;let l=false;for(const[i,u]of r){if(typeof u==="string"){const r=L.encode(A+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(u)}\r\n`);a.push(r);b+=r.byteLength}else{const r=L.encode(`${A}; name="${escape(normalizeLinefeeds(i))}"`+(u.name?`; filename="${escape(u.name)}"`:"")+"\r\n"+`Content-Type: ${u.type||"application/octet-stream"}\r\n\r\n`);a.push(r,u,c);if(typeof u.size==="number"){b+=r.byteLength+u.size+c.byteLength}else{l=true}}}const u=L.encode(`--${i}--`);a.push(u);b+=u.byteLength;if(l){b=null}g=r;h=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};C="multipart/form-data; boundary="+i}else if(u(r)){g=r;b=r.size;if(r.type){C=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(c.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=r instanceof k?r:l(r)}if(typeof g==="string"||c.isBuffer(g)){b=Buffer.byteLength(g)}if(h!=null){let i;a=new k({async start(){i=h(r)[Symbol.asyncIterator]()},async pull(r){const{value:A,done:c}=await i.next();if(c){queueMicrotask((()=>{r.close()}))}else{if(!R(a)){r.enqueue(new Uint8Array(A))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const B={stream:a,source:g,length:b};return[B,C]}function safelyExtractBody(r,i=false){if(!k){k=A(63774).ReadableStream}if(r instanceof k){w(!c.isDisturbed(r),"The body has already been consumed.");w(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,A]=r.stream.tee();const a=Q(A,{transfer:[A]});const[,c]=a.tee();r.stream=i;return{stream:c,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(S(r)){yield r}else{const i=r.stream;if(c.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[O]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new I("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=D(i)}return new y([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){B.brandCheck(this,r);throwIfAborted(this[C]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,A]of this.headers)r[i.toLowerCase()]=A;const i=new b;let A;try{A=new a({headers:r,preservePath:true})}catch(r){throw new I(`${r}`,"AbortError")}A.on("field",((r,A)=>{i.append(r,A)}));A.on("file",((r,A,a,c,l)=>{const u=[];if(c==="base64"||c.toLowerCase()==="base64"){let c="";A.on("data",(r=>{c+=r.toString().replace(/[\r\n]/gm,"");const i=c.length-c.length%4;u.push(Buffer.from(c.slice(0,i),"base64"));c=c.slice(i)}));A.on("end",(()=>{u.push(Buffer.from(c,"base64"));i.append(r,new T(u,a,{type:l}))}))}else{A.on("data",(r=>{u.push(r)}));A.on("end",(()=>{i.append(r,new T(u,a,{type:l}))}))}}));const c=new Promise(((r,i)=>{A.on("finish",r);A.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[C].body))A.write(r);A.end();await c;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const A=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[C].body)){if(!S(r)){throw new TypeError("Expected Uint8Array chunk")}i+=A.decode(r,{stream:true})}i+=A.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new b;for(const[A,a]of r){i.append(A,a)}return i}else{await Promise.resolve();throwIfAborted(this[C]);throw B.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,A){B.brandCheck(r,A);throwIfAborted(r[C]);if(bodyUnusable(r[C].body)){throw new TypeError("Body is unusable")}const a=h();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(i(r))}catch(r){errorSteps(r)}};if(r[C].body==null){successSteps(new Uint8Array);return a.promise}await g(r[C].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||c.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=x.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[C];const A=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[c-4]=this.maskKey[0];l[c-3]=this.maskKey[1];l[c-2]=this.maskKey[2];l[c-1]=this.maskKey[3];l[1]=A;if(A===126){l.writeUInt16BE(i,2)}else if(A===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(let r=0;r<i;r++){l[c+r]=this.frameData[r]^this.maskKey[r%4]}return l}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},11131:(r,i,A)=>{const{Writable:a}=A(2203);const c=A(31637);const{parserStates:l,opcodes:u,states:d,emptyBuffer:p}=A(87233);const{kReadyState:h,kSentClose:g,kResponse:b,kReceivedClose:C}=A(5933);const{isValidStatusCode:B,failWebsocketConnection:I,websocketMessageReceived:Q}=A(35294);const{WebsocketFrameSend:y}=A(1709);const M={};M.ping=c.channel("undici:websocket:ping");M.pong=c.channel("undici:websocket:pong");class ByteParser extends a{#i=[];#A=0;#a=l.INFO;#c={};#l=[];constructor(r){super();this.ws=r}_write(r,i,A){this.#i.push(r);this.#A+=r.length;this.run(A)}run(r){while(true){if(this.#a===l.INFO){if(this.#A<2){return r()}const i=this.consume(2);this.#c.fin=(i[0]&128)!==0;this.#c.opcode=i[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==u.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==u.BINARY&&this.#c.opcode!==u.TEXT){I(this.ws,"Invalid frame type was fragmented.");return}const A=i[1]&127;if(A<=125){this.#c.payloadLength=A;this.#a=l.READ_DATA}else if(A===126){this.#a=l.PAYLOADLENGTH_16}else if(A===127){this.#a=l.PAYLOADLENGTH_64}if(this.#c.fragmented&&A>125){I(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===u.PING||this.#c.opcode===u.PONG||this.#c.opcode===u.CLOSE)&&A>125){I(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===u.CLOSE){if(A===1){I(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(A);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[g]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const i=new y(r);this.ws[b].socket.write(i.createFrame(u.CLOSE),(r=>{if(!r){this.ws[g]=true}}))}this.ws[h]=d.CLOSING;this.ws[C]=true;this.end();return}else if(this.#c.opcode===u.PING){const i=this.consume(A);if(!this.ws[C]){const r=new y(i);this.ws[b].socket.write(r.createFrame(u.PONG));if(M.ping.hasSubscribers){M.ping.publish({payload:i})}}this.#a=l.INFO;if(this.#A>0){continue}else{r();return}}else if(this.#c.opcode===u.PONG){const i=this.consume(A);if(M.pong.hasSubscribers){M.pong.publish({payload:i})}if(this.#A>0){continue}else{r();return}}}else if(this.#a===l.PAYLOADLENGTH_16){if(this.#A<2){return r()}const i=this.consume(2);this.#c.payloadLength=i.readUInt16BE(0);this.#a=l.READ_DATA}else if(this.#a===l.PAYLOADLENGTH_64){if(this.#A<8){return r()}const i=this.consume(8);const A=i.readUInt32BE(0);if(A>2**31-1){I(this.ws,"Received payload length > 2^31 bytes.");return}const a=i.readUInt32BE(4);this.#c.payloadLength=(A<<8)+a;this.#a=l.READ_DATA}else if(this.#a===l.READ_DATA){if(this.#A<this.#c.payloadLength){return r()}else if(this.#A>=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#l.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===u.CONTINUATION){const r=Buffer.concat(this.#l);Q(this.ws,this.#c.originalOpcode,r);this.#c={};this.#l.length=0}this.#a=l.INFO}}if(this.#A>0){continue}else{r();break}}}consume(r){if(r>this.#A){return null}else if(r===0){return p}if(this.#i[0].length===r){this.#A-=this.#i[0].length;return this.#i.shift()}const i=Buffer.allocUnsafe(r);let A=0;while(A!==r){const a=this.#i[0];const{length:c}=a;if(c+A===r){i.set(this.#i.shift(),A);break}else if(c+A>r){i.set(a.subarray(0,r-A),A);this.#i[0]=a.subarray(r-A);break}else{i.set(this.#i.shift(),A);A+=a.length}}this.#A-=r;return i}parseCloseBody(r,i){let A;if(i.length>=2){A=i.readUInt16BE(0)}if(r){if(!B(A)){return null}return{code:A}}let a=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(A!==undefined&&!B(A)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:A,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},5933:r=>{r.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")}},35294:(r,i,A)=>{const{kReadyState:a,kController:c,kResponse:l,kBinaryType:u,kWebSocketURL:d}=A(5933);const{states:p,opcodes:h}=A(87233);const{MessageEvent:g,ErrorEvent:b}=A(32167);function isEstablished(r){return r[a]===p.OPEN}function isClosing(r){return r[a]===p.CLOSING}function isClosed(r){return r[a]===p.CLOSED}function fireEvent(r,i,A=Event,a){const c=new A(r,a);i.dispatchEvent(c)}function websocketMessageReceived(r,i,A){if(r[a]!==p.OPEN){return}let c;if(i===h.TEXT){try{c=new TextDecoder("utf-8",{fatal:true}).decode(A)}catch{failWebsocketConnection(rLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[c-4]=this.maskKey[0];l[c-3]=this.maskKey[1];l[c-2]=this.maskKey[2];l[c-1]=this.maskKey[3];l[1]=A;if(A===126){l.writeUInt16BE(i,2)}else if(A===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(let r=0;r<i;r++){l[c+r]=this.frameData[r]^this.maskKey[r%4]}return l}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},11131:(r,i,A)=>{const{Writable:a}=A(2203);const c=A(31637);const{parserStates:l,opcodes:u,states:d,emptyBuffer:p}=A(87233);const{kReadyState:h,kSentClose:g,kResponse:b,kReceivedClose:C}=A(5933);const{isValidStatusCode:B,failWebsocketConnection:I,websocketMessageReceived:Q}=A(35294);const{WebsocketFrameSend:y}=A(1709);const M={};M.ping=c.channel("undici:websocket:ping");M.pong=c.channel("undici:websocket:pong");class ByteParser extends a{#i=[];#A=0;#a=l.INFO;#c={};#l=[];constructor(r){super();this.ws=r}_write(r,i,A){this.#i.push(r);this.#A+=r.length;this.run(A)}run(r){while(true){if(this.#a===l.INFO){if(this.#A<2){return r()}const i=this.consume(2);this.#c.fin=(i[0]&128)!==0;this.#c.opcode=i[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==u.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==u.BINARY&&this.#c.opcode!==u.TEXT){I(this.ws,"Invalid frame type was fragmented.");return}const A=i[1]&127;if(A<=125){this.#c.payloadLength=A;this.#a=l.READ_DATA}else if(A===126){this.#a=l.PAYLOADLENGTH_16}else if(A===127){this.#a=l.PAYLOADLENGTH_64}if(this.#c.fragmented&&A>125){I(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===u.PING||this.#c.opcode===u.PONG||this.#c.opcode===u.CLOSE)&&A>125){I(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===u.CLOSE){if(A===1){I(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(A);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[g]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const i=new y(r);this.ws[b].socket.write(i.createFrame(u.CLOSE),(r=>{if(!r){this.ws[g]=true}}))}this.ws[h]=d.CLOSING;this.ws[C]=true;this.end();return}else if(this.#c.opcode===u.PING){const i=this.consume(A);if(!this.ws[C]){const r=new y(i);this.ws[b].socket.write(r.createFrame(u.PONG));if(M.ping.hasSubscribers){M.ping.publish({payload:i})}}this.#a=l.INFO;if(this.#A>0){continue}else{r();return}}else if(this.#c.opcode===u.PONG){const i=this.consume(A);if(M.pong.hasSubscribers){M.pong.publish({payload:i})}if(this.#A>0){continue}else{r();return}}}else if(this.#a===l.PAYLOADLENGTH_16){if(this.#A<2){return r()}const i=this.consume(2);this.#c.payloadLength=i.readUInt16BE(0);this.#a=l.READ_DATA}else if(this.#a===l.PAYLOADLENGTH_64){if(this.#A<8){return r()}const i=this.consume(8);const A=i.readUInt32BE(0);if(A>2**31-1){I(this.ws,"Received payload length > 2^31 bytes.");return}const a=i.readUInt32BE(4);this.#c.payloadLength=(A<<8)+a;this.#a=l.READ_DATA}else if(this.#a===l.READ_DATA){if(this.#A<this.#c.payloadLength){return r()}else if(this.#A>=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#l.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===u.CONTINUATION){const r=Buffer.concat(this.#l);Q(this.ws,this.#c.originalOpcode,r);this.#c={};this.#l.length=0}this.#a=l.INFO}}if(this.#A>0){continue}else{r();break}}}consume(r){if(r>this.#A){return null}else if(r===0){return p}if(this.#i[0].length===r){this.#A-=this.#i[0].length;return this.#i.shift()}const i=Buffer.allocUnsafe(r);let A=0;while(A!==r){const a=this.#i[0];const{length:c}=a;if(c+A===r){i.set(this.#i.shift(),A);break}else if(c+A>r){i.set(a.subarray(0,r-A),A);this.#i[0]=a.subarray(r-A);break}else{i.set(this.#i.shift(),A);A+=a.length}}this.#A-=r;return i}parseCloseBody(r,i){let A;if(i.length>=2){A=i.readUInt16BE(0)}if(r){if(!B(A)){return null}return{code:A}}let a=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(A!==undefined&&!B(A)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:A,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},5933:r=>{r.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")}},35294:(r,i,A)=>{const{kReadyState:a,kController:c,kResponse:l,kBinaryType:u,kWebSocketURL:d}=A(5933);const{states:p,opcodes:h}=A(87233);const{MessageEvent:g,ErrorEvent:b}=A(32167);function isEstablished(r){return r[a]===p.OPEN}function isClosing(r){return r[a]===p.CLOSING}function isClosed(r){return r[a]===p.CLOSED}function fireEvent(r,i,A=Event,a){const c=new A(r,a);i.dispatchEvent(c)}function websocketMessageReceived(r,i,A){if(r[a]!==p.OPEN){return}let c;if(i===h.TEXT){try{c=new TextDecoder("utf-8",{fatal:true}).decode(A)}catch{failWebsocketConnection(rLine truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const c=new Uint8Array([13,10]);b=0;let l=false;for(const[i,u]of r){if(typeof u==="string"){const r=L.encode(A+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(u)}\r\n`);a.push(r);b+=r.byteLength}else{const r=L.encode(`${A}; name="${escape(normalizeLinefeeds(i))}"`+(u.name?`; filename="${escape(u.name)}"`:"")+"\r\n"+`Content-Type: ${u.type||"application/octet-stream"}\r\n\r\n`);a.push(r,u,c);if(typeof u.size==="number"){b+=r.byteLength+u.size+c.byteLength}else{l=true}}}const u=L.encode(`--${i}--`);a.push(u);b+=u.byteLength;if(l){b=null}g=r;h=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};C="multipart/form-data; boundary="+i}else if(u(r)){g=r;b=r.size;if(r.type){C=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(c.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=r instanceof k?r:l(r)}if(typeof g==="string"||c.isBuffer(g)){b=Buffer.byteLength(g)}if(h!=null){let i;a=new k({async start(){i=h(r)[Symbol.asyncIterator]()},async pull(r){const{value:A,done:c}=await i.next();if(c){queueMicrotask((()=>{r.close()}))}else{if(!R(a)){r.enqueue(new Uint8Array(A))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const B={stream:a,source:g,length:b};return[B,C]}function safelyExtractBody(r,i=false){if(!k){k=A(63774).ReadableStream}if(r instanceof k){w(!c.isDisturbed(r),"The body has already been consumed.");w(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,A]=r.stream.tee();const a=Q(A,{transfer:[A]});const[,c]=a.tee();r.stream=i;return{stream:c,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(S(r)){yield r}else{const i=r.stream;if(c.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[O]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new I("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=D(i)}return new y([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){B.brandCheck(this,r);throwIfAborted(this[C]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,A]of this.headers)r[i.toLowerCase()]=A;const i=new b;let A;try{A=new a({headers:r,preservePath:true})}catch(r){throw new I(`${r}`,"AbortError")}A.on("field",((r,A)=>{i.append(r,A)}));A.on("file",((r,A,a,c,l)=>{const u=[];if(c==="base64"||c.toLowerCase()==="base64"){let c="";A.on("data",(r=>{c+=r.toString().replace(/[\r\n]/gm,"");const i=c.length-c.length%4;u.push(Buffer.from(c.slice(0,i),"base64"));c=c.slice(i)}));A.on("end",(()=>{u.push(Buffer.from(c,"base64"));i.append(r,new T(u,a,{type:l}))}))}else{A.on("data",(r=>{u.push(r)}));A.on("end",(()=>{i.append(r,new T(u,a,{type:l}))}))}}));const c=new Promise(((r,i)=>{A.on("finish",r);A.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[C].body))A.write(r);A.end();await c;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const A=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[C].body)){if(!S(r)){throw new TypeError("Expected Uint8Array chunk")}i+=A.decode(r,{stream:true})}i+=A.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new b;for(const[A,a]of r){i.append(A,a)}return i}else{await Promise.resolve();throwIfAborted(this[C]);throw B.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,A){B.brandCheck(r,A);throwIfAborted(r[C]);if(bodyUnusable(r[C].body)){throw new TypeError("Body is unusable")}const a=h();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(i(r))}catch(r){errorSteps(r)}};if(r[C].body==null){successSteps(new Uint8Array);return a.promise}await g(r[C].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||c.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=x.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[C];const A=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[c-4]=this.maskKey[0];l[c-3]=this.maskKey[1];l[c-2]=this.maskKey[2];l[c-1]=this.maskKey[3];l[1]=A;if(A===126){l.writeUInt16BE(i,2)}else if(A===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(let r=0;r<i;r++){l[c+r]=this.frameData[r]^this.maskKey[r%4]}return l}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},42205:(r,i,A)=>{const{Writable:a}=A(2203);const c=A(31637);const{parserStates:l,opcodes:u,states:d,emptyBuffer:p}=A(93871);const{kReadyState:h,kSentClose:g,kResponse:b,kReceivedClose:C}=A(75899);const{isValidStatusCode:B,failWebsocketConnection:I,websocketMessageReceived:Q}=A(57520);const{WebsocketFrameSend:y}=A(78851);const M={};M.ping=c.channel("undici:websocket:ping");M.pong=c.channel("undici:websocket:pong");class ByteParser extends a{#i=[];#A=0;#a=l.INFO;#c={};#l=[];constructor(r){super();this.ws=r}_write(r,i,A){this.#i.push(r);this.#A+=r.length;this.run(A)}run(r){while(true){if(this.#a===l.INFO){if(this.#A<2){return r()}const i=this.consume(2);this.#c.fin=(i[0]&128)!==0;this.#c.opcode=i[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==u.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==u.BINARY&&this.#c.opcode!==u.TEXT){I(this.ws,"Invalid frame type was fragmented.");return}const A=i[1]&127;if(A<=125){this.#c.payloadLength=A;this.#a=l.READ_DATA}else if(A===126){this.#a=l.PAYLOADLENGTH_16}else if(A===127){this.#a=l.PAYLOADLENGTH_64}if(this.#c.fragmented&&A>125){I(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===u.PING||this.#c.opcode===u.PONG||this.#c.opcode===u.CLOSE)&&A>125){I(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===u.CLOSE){if(A===1){I(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(A);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[g]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const i=new y(r);this.ws[b].socket.write(i.createFrame(u.CLOSE),(r=>{if(!r){this.ws[g]=true}}))}this.ws[h]=d.CLOSING;this.ws[C]=true;this.end();return}else if(this.#c.opcode===u.PING){const i=this.consume(A);if(!this.ws[C]){const r=new y(i);this.ws[b].socket.write(r.createFrame(u.PONG));if(M.ping.hasSubscribers){M.ping.publish({payload:i})}}this.#a=l.INFO;if(this.#A>0){continue}else{r();return}}else if(this.#c.opcode===u.PONG){const i=this.consume(A);if(M.pong.hasSubscribers){M.pong.publish({payload:i})}if(this.#A>0){continue}else{r();return}}}else if(this.#a===l.PAYLOADLENGTH_16){if(this.#A<2){return r()}const i=this.consume(2);this.#c.payloadLength=i.readUInt16BE(0);this.#a=l.READ_DATA}else if(this.#a===l.PAYLOADLENGTH_64){if(this.#A<8){return r()}const i=this.consume(8);const A=i.readUInt32BE(0);if(A>2**31-1){I(this.ws,"Received payload length > 2^31 bytes.");return}const a=i.readUInt32BE(4);this.#c.payloadLength=(A<<8)+a;this.#a=l.READ_DATA}else if(this.#a===l.READ_DATA){if(this.#A<this.#c.payloadLength){return r()}else if(this.#A>=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#l.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===u.CONTINUATION){const r=Buffer.concat(this.#l);Q(this.ws,this.#c.originalOpcode,r);this.#c={};this.#l.length=0}this.#a=l.INFO}}if(this.#A>0){continue}else{r();break}}}consume(r){if(r>this.#A){return null}else if(r===0){return p}if(this.#i[0].length===r){this.#A-=this.#i[0].length;return this.#i.shift()}const i=Buffer.allocUnsafe(r);let A=0;while(A!==r){const a=this.#i[0];const{length:c}=a;if(c+A===r){i.set(this.#i.shift(),A);break}else if(c+A>r){i.set(a.subarray(0,r-A),A);this.#i[0]=a.subarray(r-A);break}else{i.set(this.#i.shift(),A);A+=a.length}}this.#A-=r;return i}parseCloseBody(r,i){let A;if(i.length>=2){A=i.readUInt16BE(0)}if(r){if(!B(A)){return null}return{code:A}}let a=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(A!==undefined&&!B(A)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:A,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},75899:r=>{r.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")}},57520:(r,i,A)=>{const{kReadyState:a,kController:c,kResponse:l,kBinaryType:u,kWebSocketURL:d}=A(75899);const{states:p,opcodes:h}=A(93871);const{MessageEvent:g,ErrorEvent:b}=A(4349);function isEstablished(r){return r[a]===p.OPEN}function isClosing(r){return r[a]===p.CLOSING}function isClosed(r){return r[a]===p.CLOSED}function fireEvent(r,i,A=Event,a){const c=new A(r,a);i.dispatchEvent(c)}function websocketMessageReceived(r,i,A){if(r[a]!==p.OPEN){return}let c;if(i===h.TEXT){try{c=new TextDecoder("utf-8",{fatal:true}).decode(A)}catch{failWebsocketConnectioLine truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const c=new Uint8Array([13,10]);b=0;let l=false;for(const[i,u]of r){if(typeof u==="string"){const r=L.encode(A+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(u)}\r\n`);a.push(r);b+=r.byteLength}else{const r=L.encode(`${A}; name="${escape(normalizeLinefeeds(i))}"`+(u.name?`; filename="${escape(u.name)}"`:"")+"\r\n"+`Content-Type: ${u.type||"application/octet-stream"}\r\n\r\n`);a.push(r,u,c);if(typeof u.size==="number"){b+=r.byteLength+u.size+c.byteLength}else{l=true}}}const u=L.encode(`--${i}--`);a.push(u);b+=u.byteLength;if(l){b=null}g=r;h=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};C="multipart/form-data; boundary="+i}else if(u(r)){g=r;b=r.size;if(r.type){C=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(c.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=r instanceof k?r:l(r)}if(typeof g==="string"||c.isBuffer(g)){b=Buffer.byteLength(g)}if(h!=null){let i;a=new k({async start(){i=h(r)[Symbol.asyncIterator]()},async pull(r){const{value:A,done:c}=await i.next();if(c){queueMicrotask((()=>{r.close()}))}else{if(!R(a)){r.enqueue(new Uint8Array(A))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const B={stream:a,source:g,length:b};return[B,C]}function safelyExtractBody(r,i=false){if(!k){k=A(63774).ReadableStream}if(r instanceof k){w(!c.isDisturbed(r),"The body has already been consumed.");w(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,A]=r.stream.tee();const a=Q(A,{transfer:[A]});const[,c]=a.tee();r.stream=i;return{stream:c,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(S(r)){yield r}else{const i=r.stream;if(c.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[O]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new I("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=D(i)}return new y([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){B.brandCheck(this,r);throwIfAborted(this[C]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,A]of this.headers)r[i.toLowerCase()]=A;const i=new b;let A;try{A=new a({headers:r,preservePath:true})}catch(r){throw new I(`${r}`,"AbortError")}A.on("field",((r,A)=>{i.append(r,A)}));A.on("file",((r,A,a,c,l)=>{const u=[];if(c==="base64"||c.toLowerCase()==="base64"){let c="";A.on("data",(r=>{c+=r.toString().replace(/[\r\n]/gm,"");const i=c.length-c.length%4;u.push(Buffer.from(c.slice(0,i),"base64"));c=c.slice(i)}));A.on("end",(()=>{u.push(Buffer.from(c,"base64"));i.append(r,new T(u,a,{type:l}))}))}else{A.on("data",(r=>{u.push(r)}));A.on("end",(()=>{i.append(r,new T(u,a,{type:l}))}))}}));const c=new Promise(((r,i)=>{A.on("finish",r);A.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[C].body))A.write(r);A.end();await c;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const A=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[C].body)){if(!S(r)){throw new TypeError("Expected Uint8Array chunk")}i+=A.decode(r,{stream:true})}i+=A.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new b;for(const[A,a]of r){i.append(A,a)}return i}else{await Promise.resolve();throwIfAborted(this[C]);throw B.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,A){B.brandCheck(r,A);throwIfAborted(r[C]);if(bodyUnusable(r[C].body)){throw new TypeError("Body is unusable")}const a=h();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(i(r))}catch(r){errorSteps(r)}};if(r[C].body==null){successSteps(new Uint8Array);return a.promise}await g(r[C].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||c.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=x.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[C];const A=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[c-4]=this.maskKey[0];l[c-3]=this.maskKey[1];l[c-2]=this.maskKey[2];l[c-1]=this.maskKey[3];l[1]=A;if(A===126){l.writeUInt16BE(i,2)}else if(A===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(let r=0;r<i;r++){l[c+r]=this.frameData[r]^this.maskKey[r%4]}return l}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},22305:(r,i,A)=>{const{Writable:a}=A(2203);const c=A(31637);const{parserStates:l,opcodes:u,states:d,emptyBuffer:p}=A(68035);const{kReadyState:h,kSentClose:g,kResponse:b,kReceivedClose:C}=A(93855);const{isValidStatusCode:B,failWebsocketConnection:I,websocketMessageReceived:Q}=A(66908);const{WebsocketFrameSend:y}=A(35767);const M={};M.ping=c.channel("undici:websocket:ping");M.pong=c.channel("undici:websocket:pong");class ByteParser extends a{#i=[];#A=0;#a=l.INFO;#c={};#l=[];constructor(r){super();this.ws=r}_write(r,i,A){this.#i.push(r);this.#A+=r.length;this.run(A)}run(r){while(true){if(this.#a===l.INFO){if(this.#A<2){return r()}const i=this.consume(2);this.#c.fin=(i[0]&128)!==0;this.#c.opcode=i[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==u.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==u.BINARY&&this.#c.opcode!==u.TEXT){I(this.ws,"Invalid frame type was fragmented.");return}const A=i[1]&127;if(A<=125){this.#c.payloadLength=A;this.#a=l.READ_DATA}else if(A===126){this.#a=l.PAYLOADLENGTH_16}else if(A===127){this.#a=l.PAYLOADLENGTH_64}if(this.#c.fragmented&&A>125){I(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===u.PING||this.#c.opcode===u.PONG||this.#c.opcode===u.CLOSE)&&A>125){I(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===u.CLOSE){if(A===1){I(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(A);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[g]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const i=new y(r);this.ws[b].socket.write(i.createFrame(u.CLOSE),(r=>{if(!r){this.ws[g]=true}}))}this.ws[h]=d.CLOSING;this.ws[C]=true;this.end();return}else if(this.#c.opcode===u.PING){const i=this.consume(A);if(!this.ws[C]){const r=new y(i);this.ws[b].socket.write(r.createFrame(u.PONG));if(M.ping.hasSubscribers){M.ping.publish({payload:i})}}this.#a=l.INFO;if(this.#A>0){continue}else{r();return}}else if(this.#c.opcode===u.PONG){const i=this.consume(A);if(M.pong.hasSubscribers){M.pong.publish({payload:i})}if(this.#A>0){continue}else{r();return}}}else if(this.#a===l.PAYLOADLENGTH_16){if(this.#A<2){return r()}const i=this.consume(2);this.#c.payloadLength=i.readUInt16BE(0);this.#a=l.READ_DATA}else if(this.#a===l.PAYLOADLENGTH_64){if(this.#A<8){return r()}const i=this.consume(8);const A=i.readUInt32BE(0);if(A>2**31-1){I(this.ws,"Received payload length > 2^31 bytes.");return}const a=i.readUInt32BE(4);this.#c.payloadLength=(A<<8)+a;this.#a=l.READ_DATA}else if(this.#a===l.READ_DATA){if(this.#A<this.#c.payloadLength){return r()}else if(this.#A>=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#l.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===u.CONTINUATION){const r=Buffer.concat(this.#l);Q(this.ws,this.#c.originalOpcode,r);this.#c={};this.#l.length=0}this.#a=l.INFO}}if(this.#A>0){continue}else{r();break}}}consume(r){if(r>this.#A){return null}else if(r===0){return p}if(this.#i[0].length===r){this.#A-=this.#i[0].length;return this.#i.shift()}const i=Buffer.allocUnsafe(r);let A=0;while(A!==r){const a=this.#i[0];const{length:c}=a;if(c+A===r){i.set(this.#i.shift(),A);break}else if(c+A>r){i.set(a.subarray(0,r-A),A);this.#i[0]=a.subarray(r-A);break}else{i.set(this.#i.shift(),A);A+=a.length}}this.#A-=r;return i}parseCloseBody(r,i){let A;if(i.length>=2){A=i.readUInt16BE(0)}if(r){if(!B(A)){return null}return{code:A}}let a=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(A!==undefined&&!B(A)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:A,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},93855:r=>{r.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")}},66908:(r,i,A)=>{const{kReadyState:a,kController:c,kResponse:l,kBinaryType:u,kWebSocketURL:d}=A(93855);const{states:p,opcodes:h}=A(68035);const{MessageEvent:g,ErrorEvent:b}=A(96985);function isEstablished(r){return r[a]===p.OPEN}function isClosing(r){return r[a]===p.CLOSING}function isClosed(r){return r[a]===p.CLOSED}function fireEvent(r,i,A=Event,a){const c=new A(r,a);i.dispatchEvent(c)}function websocketMessageReceived(r,i,A){if(r[a]!==p.OPEN){return}let c;if(i===h.TEXT){try{c=new TextDecoder("utf-8",{fatal:true}).decode(A)}catch{failWebsocketConnectiLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[c-4]=this.maskKey[0];l[c-3]=this.maskKey[1];l[c-2]=this.maskKey[2];l[c-1]=this.maskKey[3];l[1]=A;if(A===126){l.writeUInt16BE(i,2)}else if(A===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(let r=0;r<i;r++){l[c+r]=this.frameData[r]^this.maskKey[r%4]}return l}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},22305:(r,i,A)=>{const{Writable:a}=A(2203);const c=A(31637);const{parserStates:l,opcodes:u,states:d,emptyBuffer:p}=A(68035);const{kReadyState:h,kSentClose:g,kResponse:b,kReceivedClose:C}=A(93855);const{isValidStatusCode:B,failWebsocketConnection:I,websocketMessageReceived:Q}=A(66908);const{WebsocketFrameSend:y}=A(35767);const M={};M.ping=c.channel("undici:websocket:ping");M.pong=c.channel("undici:websocket:pong");class ByteParser extends a{#i=[];#A=0;#a=l.INFO;#c={};#l=[];constructor(r){super();this.ws=r}_write(r,i,A){this.#i.push(r);this.#A+=r.length;this.run(A)}run(r){while(true){if(this.#a===l.INFO){if(this.#A<2){return r()}const i=this.consume(2);this.#c.fin=(i[0]&128)!==0;this.#c.opcode=i[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==u.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==u.BINARY&&this.#c.opcode!==u.TEXT){I(this.ws,"Invalid frame type was fragmented.");return}const A=i[1]&127;if(A<=125){this.#c.payloadLength=A;this.#a=l.READ_DATA}else if(A===126){this.#a=l.PAYLOADLENGTH_16}else if(A===127){this.#a=l.PAYLOADLENGTH_64}if(this.#c.fragmented&&A>125){I(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===u.PING||this.#c.opcode===u.PONG||this.#c.opcode===u.CLOSE)&&A>125){I(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===u.CLOSE){if(A===1){I(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(A);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[g]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const i=new y(r);this.ws[b].socket.write(i.createFrame(u.CLOSE),(r=>{if(!r){this.ws[g]=true}}))}this.ws[h]=d.CLOSING;this.ws[C]=true;this.end();return}else if(this.#c.opcode===u.PING){const i=this.consume(A);if(!this.ws[C]){const r=new y(i);this.ws[b].socket.write(r.createFrame(u.PONG));if(M.ping.hasSubscribers){M.ping.publish({payload:i})}}this.#a=l.INFO;if(this.#A>0){continue}else{r();return}}else if(this.#c.opcode===u.PONG){const i=this.consume(A);if(M.pong.hasSubscribers){M.pong.publish({payload:i})}if(this.#A>0){continue}else{r();return}}}else if(this.#a===l.PAYLOADLENGTH_16){if(this.#A<2){return r()}const i=this.consume(2);this.#c.payloadLength=i.readUInt16BE(0);this.#a=l.READ_DATA}else if(this.#a===l.PAYLOADLENGTH_64){if(this.#A<8){return r()}const i=this.consume(8);const A=i.readUInt32BE(0);if(A>2**31-1){I(this.ws,"Received payload length > 2^31 bytes.");return}const a=i.readUInt32BE(4);this.#c.payloadLength=(A<<8)+a;this.#a=l.READ_DATA}else if(this.#a===l.READ_DATA){if(this.#A<this.#c.payloadLength){return r()}else if(this.#A>=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#l.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===u.CONTINUATION){const r=Buffer.concat(this.#l);Q(this.ws,this.#c.originalOpcode,r);this.#c={};this.#l.length=0}this.#a=l.INFO}}if(this.#A>0){continue}else{r();break}}}consume(r){if(r>this.#A){return null}else if(r===0){return p}if(this.#i[0].length===r){this.#A-=this.#i[0].length;return this.#i.shift()}const i=Buffer.allocUnsafe(r);let A=0;while(A!==r){const a=this.#i[0];const{length:c}=a;if(c+A===r){i.set(this.#i.shift(),A);break}else if(c+A>r){i.set(a.subarray(0,r-A),A);this.#i[0]=a.subarray(r-A);break}else{i.set(this.#i.shift(),A);A+=a.length}}this.#A-=r;return i}parseCloseBody(r,i){let A;if(i.length>=2){A=i.readUInt16BE(0)}if(r){if(!B(A)){return null}return{code:A}}let a=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(A!==undefined&&!B(A)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:A,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},93855:r=>{r.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")}},66908:(r,i,A)=>{const{kReadyState:a,kController:c,kResponse:l,kBinaryType:u,kWebSocketURL:d}=A(93855);const{states:p,opcodes:h}=A(68035);const{MessageEvent:g,ErrorEvent:b}=A(96985);function isEstablished(r){return r[a]===p.OPEN}function isClosing(r){return r[a]===p.CLOSING}function isClosed(r){return r[a]===p.CLOSED}function fireEvent(r,i,A=Event,a){const c=new A(r,a);i.dispatchEvent(c)}function websocketMessageReceived(r,i,A){if(r[a]!==p.OPEN){return}let c;if(i===h.TEXT){try{c=new TextDecoder("utf-8",{fatal:true}).decode(A)}catch{failWebsocketConnectiLine truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const c=new Uint8Array([13,10]);b=0;let l=false;for(const[i,u]of r){if(typeof u==="string"){const r=x.encode(A+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(u)}\r\n`);a.push(r);b+=r.byteLength}else{const r=x.encode(`${A}; name="${escape(normalizeLinefeeds(i))}"`+(u.name?`; filename="${escape(u.name)}"`:"")+"\r\n"+`Content-Type: ${u.type||"application/octet-stream"}\r\n\r\n`);a.push(r,u,c);if(typeof u.size==="number"){b+=r.byteLength+u.size+c.byteLength}else{l=true}}}const u=x.encode(`--${i}--`);a.push(u);b+=u.byteLength;if(l){b=null}g=r;h=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};C="multipart/form-data; boundary="+i}else if(u(r)){g=r;b=r.size;if(r.type){C=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(c.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=r instanceof T?r:l(r)}if(typeof g==="string"||c.isBuffer(g)){b=Buffer.byteLength(g)}if(h!=null){let i;a=new T({async start(){i=h(r)[Symbol.asyncIterator]()},async pull(r){const{value:A,done:c}=await i.next();if(c){queueMicrotask((()=>{r.close()}))}else{if(!R(a)){r.enqueue(new Uint8Array(A))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const B={stream:a,source:g,length:b};return[B,C]}function safelyExtractBody(r,i=false){if(!T){T=A(63774).ReadableStream}if(r instanceof T){w(!c.isDisturbed(r),"The body has already been consumed.");w(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,A]=r.stream.tee();const a=Q(A,{transfer:[A]});const[,c]=a.tee();r.stream=i;return{stream:c,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(S(r)){yield r}else{const i=r.stream;if(c.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[O]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new I("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=D(i)}return new y([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){B.brandCheck(this,r);throwIfAborted(this[C]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,A]of this.headers)r[i.toLowerCase()]=A;const i=new b;let A;try{A=new a({headers:r,preservePath:true})}catch(r){throw new I(`${r}`,"AbortError")}A.on("field",((r,A)=>{i.append(r,A)}));A.on("file",((r,A,a,c,l)=>{const u=[];if(c==="base64"||c.toLowerCase()==="base64"){let c="";A.on("data",(r=>{c+=r.toString().replace(/[\r\n]/gm,"");const i=c.length-c.length%4;u.push(Buffer.from(c.slice(0,i),"base64"));c=c.slice(i)}));A.on("end",(()=>{u.push(Buffer.from(c,"base64"));i.append(r,new L(u,a,{type:l}))}))}else{A.on("data",(r=>{u.push(r)}));A.on("end",(()=>{i.append(r,new L(u,a,{type:l}))}))}}));const c=new Promise(((r,i)=>{A.on("finish",r);A.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[C].body))A.write(r);A.end();await c;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const A=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[C].body)){if(!S(r)){throw new TypeError("Expected Uint8Array chunk")}i+=A.decode(r,{stream:true})}i+=A.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new b;for(const[A,a]of r){i.append(A,a)}return i}else{await Promise.resolve();throwIfAborted(this[C]);throw B.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,A){B.brandCheck(r,A);throwIfAborted(r[C]);if(bodyUnusable(r[C].body)){throw new TypeError("Body is unusable")}const a=h();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(i(r))}catch(r){errorSteps(r)}};if(r[C].body==null){successSteps(new Uint8Array);return a.promise}await g(r[C].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||c.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=q.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[C];const A=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[c-4]=this.maskKey[0];l[c-3]=this.maskKey[1];l[c-2]=this.maskKey[2];l[c-1]=this.maskKey[3];l[1]=A;if(A===126){l.writeUInt16BE(i,2)}else if(A===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(let r=0;r<i;r++){l[c+r]=this.frameData[r]^this.maskKey[r%4]}return l}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},1554:(r,i,A)=>{const{Writable:a}=A(2203);const c=A(31637);const{parserStates:l,opcodes:u,states:d,emptyBuffer:p}=A(6346);const{kReadyState:h,kSentClose:g,kResponse:b,kReceivedClose:C}=A(5594);const{isValidStatusCode:B,failWebsocketConnection:I,websocketMessageReceived:Q}=A(1703);const{WebsocketFrameSend:y}=A(65138);const M={};M.ping=c.channel("undici:websocket:ping");M.pong=c.channel("undici:websocket:pong");class ByteParser extends a{#i=[];#A=0;#a=l.INFO;#c={};#l=[];constructor(r){super();this.ws=r}_write(r,i,A){this.#i.push(r);this.#A+=r.length;this.run(A)}run(r){while(true){if(this.#a===l.INFO){if(this.#A<2){return r()}const i=this.consume(2);this.#c.fin=(i[0]&128)!==0;this.#c.opcode=i[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==u.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==u.BINARY&&this.#c.opcode!==u.TEXT){I(this.ws,"Invalid frame type was fragmented.");return}const A=i[1]&127;if(A<=125){this.#c.payloadLength=A;this.#a=l.READ_DATA}else if(A===126){this.#a=l.PAYLOADLENGTH_16}else if(A===127){this.#a=l.PAYLOADLENGTH_64}if(this.#c.fragmented&&A>125){I(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===u.PING||this.#c.opcode===u.PONG||this.#c.opcode===u.CLOSE)&&A>125){I(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===u.CLOSE){if(A===1){I(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(A);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[g]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const i=new y(r);this.ws[b].socket.write(i.createFrame(u.CLOSE),(r=>{if(!r){this.ws[g]=true}}))}this.ws[h]=d.CLOSING;this.ws[C]=true;this.end();return}else if(this.#c.opcode===u.PING){const i=this.consume(A);if(!this.ws[C]){const r=new y(i);this.ws[b].socket.write(r.createFrame(u.PONG));if(M.ping.hasSubscribers){M.ping.publish({payload:i})}}this.#a=l.INFO;if(this.#A>0){continue}else{r();return}}else if(this.#c.opcode===u.PONG){const i=this.consume(A);if(M.pong.hasSubscribers){M.pong.publish({payload:i})}if(this.#A>0){continue}else{r();return}}}else if(this.#a===l.PAYLOADLENGTH_16){if(this.#A<2){return r()}const i=this.consume(2);this.#c.payloadLength=i.readUInt16BE(0);this.#a=l.READ_DATA}else if(this.#a===l.PAYLOADLENGTH_64){if(this.#A<8){return r()}const i=this.consume(8);const A=i.readUInt32BE(0);if(A>2**31-1){I(this.ws,"Received payload length > 2^31 bytes.");return}const a=i.readUInt32BE(4);this.#c.payloadLength=(A<<8)+a;this.#a=l.READ_DATA}else if(this.#a===l.READ_DATA){if(this.#A<this.#c.payloadLength){return r()}else if(this.#A>=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#l.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===u.CONTINUATION){const r=Buffer.concat(this.#l);Q(this.ws,this.#c.originalOpcode,r);this.#c={};this.#l.length=0}this.#a=l.INFO}}if(this.#A>0){continue}else{r();break}}}consume(r){if(r>this.#A){return null}else if(r===0){return p}if(this.#i[0].length===r){this.#A-=this.#i[0].length;return this.#i.shift()}const i=Buffer.allocUnsafe(r);let A=0;while(A!==r){const a=this.#i[0];const{length:c}=a;if(c+A===r){i.set(this.#i.shift(),A);break}else if(c+A>r){i.set(a.subarray(0,r-A),A);this.#i[0]=a.subarray(r-A);break}else{i.set(this.#i.shift(),A);A+=a.length}}this.#A-=r;return i}parseCloseBody(r,i){let A;if(i.length>=2){A=i.readUInt16BE(0)}if(r){if(!B(A)){return null}return{code:A}}let a=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(A!==undefined&&!B(A)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:A,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},5594:r=>{r.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")}},1703:(r,i,A)=>{const{kReadyState:a,kController:c,kResponse:l,kBinaryType:u,kWebSocketURL:d}=A(5594);const{states:p,opcodes:h}=A(6346);const{MessageEvent:g,ErrorEvent:b}=A(77998);function isEstablished(r){return r[a]===p.OPEN}function isClosing(r){return r[a]===p.CLOSING}function isClosed(r){return r[a]===p.CLOSED}function fireEvent(r,i,A=Event,a){const c=new A(r,a);i.dispatchEvent(c)}function websocketMessageReceived(r,i,A){if(r[a]!==p.OPEN){return}let c;if(i===h.TEXT){try{c=new TextDecoder("utf-8",{fatal:true}).decode(A)}catch{failWebsocketConnection(r,"ReLine truncated
/**
@@ -140,7 +140,7 @@ var a=A(79168);var c=A(25111);var l=A(56008);var u=A(53672);r.exports=Negotiator
* Released under the MIT License.
*/
r.exports=function(r,i){if(typeof r!=="string"){throw new TypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";var A=r.length;if(A<=1)return r;var a="";if(A>4&&r[3]==="\\"){var c=r[2];if((c==="?"||c===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);a="//"}}var l=r.split(/[/\\]+/);if(i!==false&&l[l.length-1]===""){l.pop()}return a+l.join("/")}},55560:(r,i,A)=>{var a=A(58264);r.exports=a(once);r.exports.strict=a(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(r){var f=function(){if(f.called)return f.value;f.called=true;return f.value=r.apply(this,arguments)};f.called=false;return f}function onceStrict(r){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=r.apply(this,arguments)};var i=r.name||"Function wrapped with `once`";f.onceError=i+" shouldn't be called more than once";f.called=false;return f}},26687:r=>{const i=Symbol("proc-log.meta");r.exports={META:i,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...r){return process.emit("output","standard",...r)},error:function(...r){return process.emit("output","error",...r)},buffer:function(...r){return process.emit("output","buffer",...r)},flush:function(...r){return process.emit("output","flush",...r)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...r){return process.emit("log","error",...r)},notice:function(...r){return process.emit("log","notice",...r)},warn:function(...r){return process.emit("log","warn",...r)},info:function(...r){return process.emit("log","info",...r)},verbose:function(...r){return process.emit("log","verbose",...r)},http:function(...r){return process.emit("log","http",...r)},silly:function(...r){return process.emit("log","silly",...r)},timing:function(...r){return process.emit("log","timing",...r)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(r,i){process.emit("time","start",r);function end(){return process.emit("time","end",r)}if(typeof i==="function"){const r=i();if(r&&r.finally){return r.finally(end)}end();return r}return end},end:function(r){return process.emit("time","end",r)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(r){process.emit("input","start");function end(){return process.emit("input","end")}if(typeof r==="function"){const i=r();if(i&&i.finally){return i.finally(end)}end();return i}return end},end:function(){return process.emit("input","end")},read:function(...r){let i,A;const a=new Promise(((r,a)=>{i=r;A=a}));process.emit("input","read",i,A,...r);return a}}}},41564:r=>{if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}function nextTick(r,i,A,a){if(typeof r!=="function"){throw new TypeError('"callback" argument must be a function')}var c=arguments.length;var l,u;switch(c){case 0:case 1:return process.nextTick(r);case 2:return process.nextTick((function afterTickOne(){r.call(null,i)}));case 3:return process.nextTick((function afterTickTwo(){r.call(null,i,A)}));case 4:return process.nextTick((function afterTickThree(){r.call(null,i,A,a)}));default:l=new Array(c-1);u=0;while(u<l.length){l[u++]=arguments[u]}return process.nextTick((function afterTick(){r.apply(null,l)}))}}},7945:r=>{r.exports=global.process},90390:(r,i,A)=>{var a=A(14339);var c=A(5546);var l=Object.prototype.hasOwnProperty;function isRetryError(r){return r&&r.code==="EPROMISERETRY"&&l.call(r,"retried")}function promiseRetry(r,i){var A;var l;if(typeof r==="object"&&typeof i==="function"){A=i;i=r;r=A}l=c.operation(i);return new Promise((function(i,A){l.attempt((function(c){Promise.resolve().then((function(){return r((function(r){if(isRetryError(r)){r=r.retried}throw a(new Error("Retrying"),"EPROMISERETRY",{retried:r})}),c)})).then(i,(function(r){if(isRetryError(r)){r=r.retried;if(l.retry(r||new Error)){return}}A(r)}))}))}))}r.exports=promiseRetry},5506:(r,i,A)=>{r.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):A(36828)},36828:r=>{r.exports=typeof queueMicrotask==="function"?queueMicrotask:r=>Promise.resolve().then(r)},80652:(r,i,A)=>{const{SymbolDispose:a}=A(50999);const{AbortError:c,codes:l}=A(69220);const{isNodeStream:u,isWebStream:d,kControllerErrorFunction:p}=A(83426);conLine truncated
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var r=String.fromCharCode;var i=Math.floor;var fromCodePoint=function(){var A=16384;var a=[];var c;var l;var u=-1;var d=arguments.length;if(!d){return""}var p="";while(++u<d){var h=Number(arguments[u]);if(!isFinite(h)||h<0||h>1114111||i(h)!==h){throw RangeError("Invalid code point: "+h)}if(h<=65535){a.push(h)}else{h-=65536;c=(h>>10)+55296;l=h%1024+56320;a.push(c,l)}if(u+1===d||a.length>A){p+=r.apply(null,a);a.length=0}}return p};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:i)},89379:(r,i,A)=>{const a=Symbol("SemVer ANY");class Comparator{static get ANY(){return a}constructor(r,i){i=c(i);if(r instanceof Comparator){if(r.loose===!!i.loose){return r}else{r=r.value}}r=r.trim().split(/\s+/).join(" ");p("comparator",r,i);this.options=i;this.loose=!!i.loose;this.parse(r);if(this.semver===a){this.value=""}else{this.value=this.operator+this.semver.version}p("comp",this)}parse(r){const i=this.options.loose?l[u.COMPARATORLOOSE]:l[u.COMPARATOR];const A=r.match(i);if(!A){throw new TypeError(`Invalid comparator: ${r}`)}this.operator=A[1]!==undefined?A[1]:"";if(this.operator==="="){this.operator=""}if(!A[2]){this.semver=a}else{this.semver=new h(A[2],this.options.loose)}}toString(){return this.value}test(r){p("Comparator.test",r,this.options.loose);if(this.semver===a||r===a){return true}if(typeof r==="string"){try{r=new h(r,this.options)}catch(r){return false}}return d(r,this.operator,this.semver,this.options)}intersects(r,i){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new g(r.value,i).test(this.value)}else if(r.operator===""){if(r.value===""){return true}return new g(this.value,i).test(r.semver)}i=c(i);if(i.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")){return false}if(!i.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&r.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&r.operator.startsWith("<")){return true}if(this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")){return true}if(d(this.semver,"<",r.semver,i)&&this.operator.startsWith(">")&&r.operator.startsWith("<")){return true}if(d(this.semver,">",r.semver,i)&&this.operator.startsWith("<")&&r.operator.startsWith(">")){return true}return false}}r.exports=Comparator;const c=A(70356);const{safeRe:l,t:u}=A(95471);const d=A(28646);const p=A(1159);const h=A(7163);const g=A(96782)},96782:(r,i,A)=>{const a=/\s+/g;class Range{constructor(r,i){i=u(i);if(r instanceof Range){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease){return r}else{return new Range(r.raw,i)}}if(r instanceof d){this.raw=r.value;this.set=[[r]];this.formatted=undefined;return this}this.options=i;this.loose=!!i.loose;this.includePrerelease=!!i.includePrerelease;this.raw=r.trim().replace(a," ");this.set=this.raw.split("||").map((r=>this.parseRange(r.trim()))).filter((r=>r.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const r=this.set[0];this.set=this.set.filter((r=>!isNullSet(r[0])));if(this.set.length===0){this.set=[r]}else if(this.set.length>1){for(const r of this.set){if(r.length===1&&isAny(r[0])){this.set=[r];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let r=0;r<this.set.length;r++){if(r>0){this.formatted+="||"}const i=this.set[r];for(let r=0;r<i.length;r++){if(r>0){this.formatted+=" "}this.formatted+=i[r].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){const i=(this.options.includePrerelease&&Q)|(this.options.loose&&y);const A=i+":"+r;const a=l.get(A);if(a){return a}const c=this.options.loose;const u=c?g[b.HYPHENRANGELOOSE]:g[b.HYPHENRANGE];r=r.replace(u,hyphenReplace(this.options.includePrerelease));p("hyphen replace",r);r=r.replace(g[b.COMPARATORTRIM],C);p("comparator trim",r);r=r.replace(g[b.TILDETRIM],B);p("tilde trim",r);r=r.replace(g[b.CARETTRIM],I);p("caret trim",r);let h=r.split(" ").map((r=>parseComparator(r,this.options))).join(" ").split(/\s+/).map((r=>replaceGTE0(r,this.options)));if(c){h=h.filter((r=>{p("loose invalid filter",r,this.options);return!!r.match(g[b.COMPARATORLOOSE])}))}p("range list",h);const M=new Map;const O=h.map((r=>new d(r,this.options)));for(const r of O){if(isNullSet(r)){return[r]}M.set(r.value,r)}if(M.size>1&&M.has("")){M.delete("")}const w=[...M.values()];l.set(A,w);return w}intersects(r,i){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((A=>isSatisfiable(A,i)&&r.set.some((r=>isSatisfiable(r,i)&&A.every((A=>r.every((r=>A.intersects(r,i)))))))))}test(rLine truncated
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var r=String.fromCharCode;var i=Math.floor;var fromCodePoint=function(){var A=16384;var a=[];var c;var l;var u=-1;var d=arguments.length;if(!d){return""}var p="";while(++u<d){var h=Number(arguments[u]);if(!isFinite(h)||h<0||h>1114111||i(h)!==h){throw RangeError("Invalid code point: "+h)}if(h<=65535){a.push(h)}else{h-=65536;c=(h>>10)+55296;l=h%1024+56320;a.push(c,l)}if(u+1===d||a.length>A){p+=r.apply(null,a);a.length=0}}return p};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:i)},89379:(r,i,A)=>{const a=Symbol("SemVer ANY");class Comparator{static get ANY(){return a}constructor(r,i){i=c(i);if(r instanceof Comparator){if(r.loose===!!i.loose){return r}else{r=r.value}}r=r.trim().split(/\s+/).join(" ");p("comparator",r,i);this.options=i;this.loose=!!i.loose;this.parse(r);if(this.semver===a){this.value=""}else{this.value=this.operator+this.semver.version}p("comp",this)}parse(r){const i=this.options.loose?l[u.COMPARATORLOOSE]:l[u.COMPARATOR];const A=r.match(i);if(!A){throw new TypeError(`Invalid comparator: ${r}`)}this.operator=A[1]!==undefined?A[1]:"";if(this.operator==="="){this.operator=""}if(!A[2]){this.semver=a}else{this.semver=new h(A[2],this.options.loose)}}toString(){return this.value}test(r){p("Comparator.test",r,this.options.loose);if(this.semver===a||r===a){return true}if(typeof r==="string"){try{r=new h(r,this.options)}catch(r){return false}}return d(r,this.operator,this.semver,this.options)}intersects(r,i){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new g(r.value,i).test(this.value)}else if(r.operator===""){if(r.value===""){return true}return new g(this.value,i).test(r.semver)}i=c(i);if(i.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")){return false}if(!i.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&r.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&r.operator.startsWith("<")){return true}if(this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")){return true}if(d(this.semver,"<",r.semver,i)&&this.operator.startsWith(">")&&r.operator.startsWith("<")){return true}if(d(this.semver,">",r.semver,i)&&this.operator.startsWith("<")&&r.operator.startsWith(">")){return true}return false}}r.exports=Comparator;const c=A(70356);const{safeRe:l,t:u}=A(95471);const d=A(28646);const p=A(1159);const h=A(7163);const g=A(96782)},96782:(r,i,A)=>{const a=/\s+/g;class Range{constructor(r,i){i=u(i);if(r instanceof Range){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease){return r}else{return new Range(r.raw,i)}}if(r instanceof d){this.raw=r.value;this.set=[[r]];this.formatted=undefined;return this}this.options=i;this.loose=!!i.loose;this.includePrerelease=!!i.includePrerelease;this.raw=r.trim().replace(a," ");this.set=this.raw.split("||").map((r=>this.parseRange(r.trim()))).filter((r=>r.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const r=this.set[0];this.set=this.set.filter((r=>!isNullSet(r[0])));if(this.set.length===0){this.set=[r]}else if(this.set.length>1){for(const r of this.set){if(r.length===1&&isAny(r[0])){this.set=[r];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let r=0;r<this.set.length;r++){if(r>0){this.formatted+="||"}const i=this.set[r];for(let r=0;r<i.length;r++){if(r>0){this.formatted+=" "}this.formatted+=i[r].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){const i=(this.options.includePrerelease&&Q)|(this.options.loose&&y);const A=i+":"+r;const a=l.get(A);if(a){return a}const c=this.options.loose;const u=c?g[b.HYPHENRANGELOOSE]:g[b.HYPHENRANGE];r=r.replace(u,hyphenReplace(this.options.includePrerelease));p("hyphen replace",r);r=r.replace(g[b.COMPARATORTRIM],C);p("comparator trim",r);r=r.replace(g[b.TILDETRIM],B);p("tilde trim",r);r=r.replace(g[b.CARETTRIM],I);p("caret trim",r);let h=r.split(" ").map((r=>parseComparator(r,this.options))).join(" ").split(/\s+/).map((r=>replaceGTE0(r,this.options)));if(c){h=h.filter((r=>{p("loose invalid filter",r,this.options);return!!r.match(g[b.COMPARATORLOOSE])}))}p("range list",h);const M=new Map;const O=h.map((r=>new d(r,this.options)));for(const r of O){if(isNullSet(r)){return[r]}M.set(r.value,r)}if(M.size>1&&M.has("")){M.delete("")}const w=[...M.values()];l.set(A,w);return w}intersects(r,i){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((A=>isSatisfiable(A,i)&&r.set.some((r=>isSatisfiable(r,i)&&A.every((A=>r.every((r=>A.intersects(r,i)))))))))}test(rLine truncated
/*!
* Tmp
*
@@ -202,5 +202,5 @@ const a=A(79896);const c=A(70857);const l=A(16928);const u=A(76982);const d={fs:
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
* @copyright (c) 2014 Chris Talkington, contributors.
*/
var a=A(39023).inherits;var c=A(47544).ZipArchiveOutputStream;var l=A(47544).ZipArchiveEntry;var u=A(53296);var d=r.exports=function(r){if(!(this instanceof d)){return new d(r)}r=this.options=r||{};r.zlib=r.zlib||{};c.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};a(d,c);d.prototype._normalizeFileData=function(r){r=u.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var i=r.type==="directory";var A=r.type==="symlink";if(r.name){r.name=u.sanitizePath(r.name);if(!A&&r.name.slice(-1)==="/"){i=true;r.type="directory"}else if(i){r.name+="/"}}if(i||A){r.store=true}r.date=u.dateify(r.date);return r};d.prototype.entry=function(r,i,A){if(typeof A!=="function"){A=this._emitErrorCallback.bind(this)}i=this._normalizeFileData(i);if(i.type!=="file"&&i.type!=="directory"&&i.type!=="symlink"){A(new Error(i.type+" entries not currently supported"));return}if(typeof i.name!=="string"||i.name.length===0){A(new Error("entry name must be a non-empty string value"));return}if(i.type==="symlink"&&typeof i.linkname!=="string"){A(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var a=new l(i.name);a.setTime(i.date,this.options.forceLocalTime);if(i.namePrependSlash){a.setName(i.name,true)}if(i.store){a.setMethod(0)}if(i.comment.length>0){a.setComment(i.comment)}if(i.type==="symlink"&&typeof i.mode!=="number"){i.mode=40960}if(typeof i.mode==="number"){if(i.type==="symlink"){i.mode|=40960}a.setUnixMode(i.mode)}if(i.type==="symlink"&&typeof i.linkname==="string"){r=Buffer.from(i.linkname)}return c.prototype.entry.call(this,a,r,A)};d.prototype.finalize=function(){this.finish()}},42613:i=>{i.exports=r(import.meta.url)("assert")},90290:i=>{i.exports=r(import.meta.url)("async_hooks")},20181:i=>{i.exports=r(import.meta.url)("buffer")},35317:i=>{i.exports=r(import.meta.url)("child_process")},64236:i=>{i.exports=r(import.meta.url)("console")},49140:i=>{i.exports=r(import.meta.url)("constants")},76982:i=>{i.exports=r(import.meta.url)("crypto")},31637:i=>{i.exports=r(import.meta.url)("diagnostics_channel")},72250:i=>{i.exports=r(import.meta.url)("dns")},24434:i=>{i.exports=r(import.meta.url)("events")},79896:i=>{i.exports=r(import.meta.url)("fs")},91943:i=>{i.exports=r(import.meta.url)("fs/promises")},58611:i=>{i.exports=r(import.meta.url)("http")},85675:i=>{i.exports=r(import.meta.url)("http2")},65692:i=>{i.exports=r(import.meta.url)("https")},69278:i=>{i.exports=r(import.meta.url)("net")},34589:i=>{i.exports=r(import.meta.url)("node:assert")},16698:i=>{i.exports=r(import.meta.url)("node:async_hooks")},4573:i=>{i.exports=r(import.meta.url)("node:buffer")},37540:i=>{i.exports=r(import.meta.url)("node:console")},77598:i=>{i.exports=r(import.meta.url)("node:crypto")},53053:i=>{i.exports=r(import.meta.url)("node:diagnostics_channel")},40610:i=>{i.exports=r(import.meta.url)("node:dns")},78474:i=>{i.exports=r(import.meta.url)("node:events")},73024:i=>{i.exports=r(import.meta.url)("node:fs")},51455:i=>{i.exports=r(import.meta.url)("node:fs/promises")},37067:i=>{i.exports=r(import.meta.url)("node:http")},32467:i=>{i.exports=r(import.meta.url)("node:http2")},77030:i=>{i.exports=r(import.meta.url)("node:net")},76760:i=>{i.exports=r(import.meta.url)("node:path")},643:i=>{i.exports=r(import.meta.url)("node:perf_hooks")},41792:i=>{i.exports=r(import.meta.url)("node:querystring")},57075:i=>{i.exports=r(import.meta.url)("node:stream")},68574:i=>{i.exports=r(import.meta.url)("node:string_decoder")},41692:i=>{i.exports=r(import.meta.url)("node:tls")},73136:i=>{i.exports=r(import.meta.url)("node:url")},57975:i=>{i.exports=r(import.meta.url)("node:util")},73429:i=>{i.exports=r(import.meta.url)("node:util/types")},75919:i=>{i.exports=r(import.meta.url)("node:worker_threads")},38522:i=>{i.exports=r(import.meta.url)("node:zlib")},70857:i=>{i.exports=r(import.meta.url)("os")},16928:i=>{i.exports=r(import.meta.url)("path")},82987:i=>{i.exports=r(import.meta.url)("perf_hooks")},24876:i=>{i.exports=r(import.meta.url)("punycode")},83480:i=>{i.exports=r(import.meta.url)("querystring")},2203:i=>{i.exports=r(import.meta.url)("stream")},63774:i=>{i.exports=r(import.meta.url)("stream/web")},13193:i=>{i.exports=r(import.meta.url)("string_decoder")},53557:i=>{i.exports=r(import.meta.url)("timers")},16460:i=>{i.exports=r(import.meta.url)("timers/promises")},64756:i=>{i.exports=r(import.meta.url)("tls")},52018:i=>{i.exports=r(import.meta.url)("tty")},87016:i=>{i.exports=r(import.meta.url)("url")},39023:i=>{i.exports=r(import.meta.url)("util")},98253:i=>{i.exports=r(import.meta.url)("util/types")},28167:i=>{i.exports=r(import.meta.url)("worker_threads")},43106:i=>{i.exports=r(import.meta.url)("zlib")},663Line truncated
var a=A(39023).inherits;var c=A(47544).ZipArchiveOutputStream;var l=A(47544).ZipArchiveEntry;var u=A(53296);var d=r.exports=function(r){if(!(this instanceof d)){return new d(r)}r=this.options=r||{};r.zlib=r.zlib||{};c.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};a(d,c);d.prototype._normalizeFileData=function(r){r=u.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var i=r.type==="directory";var A=r.type==="symlink";if(r.name){r.name=u.sanitizePath(r.name);if(!A&&r.name.slice(-1)==="/"){i=true;r.type="directory"}else if(i){r.name+="/"}}if(i||A){r.store=true}r.date=u.dateify(r.date);return r};d.prototype.entry=function(r,i,A){if(typeof A!=="function"){A=this._emitErrorCallback.bind(this)}i=this._normalizeFileData(i);if(i.type!=="file"&&i.type!=="directory"&&i.type!=="symlink"){A(new Error(i.type+" entries not currently supported"));return}if(typeof i.name!=="string"||i.name.length===0){A(new Error("entry name must be a non-empty string value"));return}if(i.type==="symlink"&&typeof i.linkname!=="string"){A(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var a=new l(i.name);a.setTime(i.date,this.options.forceLocalTime);if(i.namePrependSlash){a.setName(i.name,true)}if(i.store){a.setMethod(0)}if(i.comment.length>0){a.setComment(i.comment)}if(i.type==="symlink"&&typeof i.mode!=="number"){i.mode=40960}if(typeof i.mode==="number"){if(i.type==="symlink"){i.mode|=40960}a.setUnixMode(i.mode)}if(i.type==="symlink"&&typeof i.linkname==="string"){r=Buffer.from(i.linkname)}return c.prototype.entry.call(this,a,r,A)};d.prototype.finalize=function(){this.finish()}},42613:i=>{i.exports=r(import.meta.url)("assert")},90290:i=>{i.exports=r(import.meta.url)("async_hooks")},20181:i=>{i.exports=r(import.meta.url)("buffer")},35317:i=>{i.exports=r(import.meta.url)("child_process")},64236:i=>{i.exports=r(import.meta.url)("console")},49140:i=>{i.exports=r(import.meta.url)("constants")},76982:i=>{i.exports=r(import.meta.url)("crypto")},31637:i=>{i.exports=r(import.meta.url)("diagnostics_channel")},72250:i=>{i.exports=r(import.meta.url)("dns")},24434:i=>{i.exports=r(import.meta.url)("events")},79896:i=>{i.exports=r(import.meta.url)("fs")},91943:i=>{i.exports=r(import.meta.url)("fs/promises")},58611:i=>{i.exports=r(import.meta.url)("http")},85675:i=>{i.exports=r(import.meta.url)("http2")},65692:i=>{i.exports=r(import.meta.url)("https")},69278:i=>{i.exports=r(import.meta.url)("net")},34589:i=>{i.exports=r(import.meta.url)("node:assert")},16698:i=>{i.exports=r(import.meta.url)("node:async_hooks")},4573:i=>{i.exports=r(import.meta.url)("node:buffer")},37540:i=>{i.exports=r(import.meta.url)("node:console")},77598:i=>{i.exports=r(import.meta.url)("node:crypto")},53053:i=>{i.exports=r(import.meta.url)("node:diagnostics_channel")},40610:i=>{i.exports=r(import.meta.url)("node:dns")},78474:i=>{i.exports=r(import.meta.url)("node:events")},73024:i=>{i.exports=r(import.meta.url)("node:fs")},51455:i=>{i.exports=r(import.meta.url)("node:fs/promises")},37067:i=>{i.exports=r(import.meta.url)("node:http")},32467:i=>{i.exports=r(import.meta.url)("node:http2")},77030:i=>{i.exports=r(import.meta.url)("node:net")},76760:i=>{i.exports=r(import.meta.url)("node:path")},643:i=>{i.exports=r(import.meta.url)("node:perf_hooks")},41792:i=>{i.exports=r(import.meta.url)("node:querystring")},57075:i=>{i.exports=r(import.meta.url)("node:stream")},68574:i=>{i.exports=r(import.meta.url)("node:string_decoder")},41692:i=>{i.exports=r(import.meta.url)("node:tls")},73136:i=>{i.exports=r(import.meta.url)("node:url")},57975:i=>{i.exports=r(import.meta.url)("node:util")},73429:i=>{i.exports=r(import.meta.url)("node:util/types")},75919:i=>{i.exports=r(import.meta.url)("node:worker_threads")},38522:i=>{i.exports=r(import.meta.url)("node:zlib")},70857:i=>{i.exports=r(import.meta.url)("os")},16928:i=>{i.exports=r(import.meta.url)("path")},82987:i=>{i.exports=r(import.meta.url)("perf_hooks")},24876:i=>{i.exports=r(import.meta.url)("punycode")},83480:i=>{i.exports=r(import.meta.url)("querystring")},2203:i=>{i.exports=r(import.meta.url)("stream")},63774:i=>{i.exports=r(import.meta.url)("stream/web")},13193:i=>{i.exports=r(import.meta.url)("string_decoder")},53557:i=>{i.exports=r(import.meta.url)("timers")},16460:i=>{i.exports=r(import.meta.url)("timers/promises")},64756:i=>{i.exports=r(import.meta.url)("tls")},52018:i=>{i.exports=r(import.meta.url)("tty")},87016:i=>{i.exports=r(import.meta.url)("url")},39023:i=>{i.exports=r(import.meta.url)("util")},98253:i=>{i.exports=r(import.meta.url)("util/types")},28167:i=>{i.exports=r(import.meta.url)("worker_threads")},43106:i=>{i.exports=r(import.meta.url)("zlib")},663Line truncated
//# sourceMappingURL=index.js.map
Generated Vendored
+1 -1
View File
@@ -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":["__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