attic-action/dist/index.js

71 lines
582 KiB
JavaScript
Raw Normal View History

2024-10-11 03:07:05 +00:00
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));var require_utils=__commonJS({"node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/utils.js"(exports2){"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});exports2.toCommandProperties=exports2.toCommandValue=void 0;function toCommandValue(input){return input==null?"":typeof input=="string"||input instanceof String?input:JSON.stringify(input)}exports2.toCommandValue=toCommandValue;function toCommandProperties(annotationProperties){return Object.keys(annotationProperties).length?{title:annotationProperties.title,file:annotationProperties.file,line:annotationProperties.startLine,endLine:annotationProperties.endLine,col:annotationProperties.startColumn,endColumn:annotationProperties.endColumn}:{}}exports2.toCommandProperties=toCommandProperties}});var require_command=__commonJS({"node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/command.js"(exports2){"use strict";var __createBinding=exports2&&exports2.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=exports2&&exports2.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=exports2&&exports2.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports2,"__esModule",{value:!0});exports2.issue=exports2.issueCommand=void 0;var os=__importStar(require("os")),utils_1=require_utils();function issueCommand(command,properties,message){let cmd=new Command(command,properties,message);process.stdout.write(cmd.toString()+os.EOL)}exports2.issueCommand=issueCommand;function issue(name,message=""){issueCommand(name,{},message)}exports2.issue=issue;var CMD_STRING="::",Command=class{constructor(command,properties,message){command||(command="missing.command"),this.command=command,this.properties=properties,this.message=message}toString(){let cmdStr=CMD_STRING+this.command;if(this.properties&&Object.keys(this.properties).length>0){cmdStr+=" ";let first=!0;for(let key in this.properties)if(this.properties.hasOwnProperty(key)){let val=this.properties[key];val&&(first?first=!1:cmdStr+=",",cmdStr+=`${key}=${escapeProperty(val)}`)}}return cmdStr+=`${CMD_STRING}${escapeData(this.message)}`,cmdStr}};function escapeData(s){return(0,utils_1.toCommandValue)(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(s){return(0,utils_1.toCommandValue)(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}});var require_file_command=__commonJS({"node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/file-command.js"(exports2){"use strict";var __createBinding=exports2&&exports2.__createBinding||(Object.cr
`,cause.message,cause.stack);var error=new Error("tunneling socket could not be established, cause="+cause.message);error.code="ECONNRESET",options.request.emit("error",error),self.removeSocket(placeholder)}};TunnelingAgent.prototype.removeSocket=function(socket){var pos=this.sockets.indexOf(socket);if(pos!==-1){this.sockets.splice(pos,1);var pending=this.requests.shift();pending&&this.createSocket(pending,function(socket2){pending.request.onSocket(socket2)})}};function createSecureSocket(options,cb){var self=this;TunnelingAgent.prototype.createSocket.call(self,options,function(socket){var hostHeader=options.request.getHeader("host"),tlsOptions=mergeOptions({},self.options,{socket,servername:hostHeader?hostHeader.replace(/:.*$/,""):options.host}),secureSocket=tls.connect(0,tlsOptions);self.sockets[self.sockets.indexOf(socket)]=secureSocket,cb(secureSocket)})}function toOptions(host,port,localAddress){return typeof host=="string"?{host,port,localAddress}:host}function mergeOptions(target){for(var i=1,len=arguments.length;i<len;++i){var overrides=arguments[i];if(typeof overrides=="object")for(var keys=Object.keys(overrides),j=0,keyLen=keys.length;j<keyLen;++j){var k=keys[j];overrides[k]!==void 0&&(target[k]=overrides[k])}}return target}var debug;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?debug=function(){var args=Array.prototype.slice.call(arguments);typeof args[0]=="string"?args[0]="TUNNEL: "+args[0]:args.unshift("TUNNEL:"),console.error.apply(console,args)}:debug=function(){};exports2.debug=debug}});var require_tunnel2=__commonJS({"node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js"(exports2,module2){module2.exports=require_tunnel()}});var require_symbols=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/core/symbols.js"(exports2,module2){module2.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}}});var require_errors=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/core/e
\r
`),RE_CRLF=/\r\n/g,RE_HDR=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(cfg){EventEmitter.call(this),cfg=cfg||{};let self=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=getLimit(cfg,"maxHeaderPairs",2e3),this.maxHeaderSize=getLimit(cfg,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new StreamSearch(B_DCRLF),this.ss.on("info",function(isMatch,data,start,end){data&&!self.maxed&&(self.nread+end-start>=self.maxHeaderSize?(end=self.maxHeaderSize-self.nread+start,self.nread=self.maxHeaderSize,self.maxed=!0):self.nread+=end-start,self.buffer+=data.toString("binary",start,end)),isMatch&&self._finish()})}inherits(HeaderParser,EventEmitter);HeaderParser.prototype.push=function(data){let r=this.ss.push(data);if(this.finished)return r};HeaderParser.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};HeaderParser.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let header=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",header)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let lines=this.buffer.split(RE_CRLF),len=lines.length,m,h;for(var i=0;i<len;++i){if(lines[i].length===0)continue;if((lines[i][0]===" "||lines[i][0]===" ")&&h){this.header[h][this.header[h].length-1]+=lines[i];continue}let posColon=lines[i].indexOf(":");if(posColon===-1||posColon===0)return;if(m=RE_HDR.exec(lines[i]),h=m[1].toLowerCase(),this.header[h]=this.header[h]||[],this.header[h].push(m[2]||""),++this.npairs===this.maxHeaderPairs)break}};module2.exports=HeaderParser}});var require_Dicer=__commonJS({"node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js"(exports2,module2){"use strict";var WritableStream=require("node:stream").Writable,inherits=require("node:util").inherits,StreamSearch=require_sbmh(),PartStream=require_PartStream(),HeaderParser=require_HeaderParser(),DASH=45,B_ONEDASH=Buffer.from("-"),B_CRLF=Buffer.from(`\r
`),EMPTY_FN=function(){};function Dicer(cfg){if(!(this instanceof Dicer))return new Dicer(cfg);if(WritableStream.call(this,cfg),!cfg||!cfg.headerFirst&&typeof cfg.boundary!="string")throw new TypeError("Boundary required");typeof cfg.boundary=="string"?this.setBoundary(cfg.boundary):this._bparser=void 0,this._headerFirst=cfg.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:cfg.partHwm},this._pause=!1;let self=this;this._hparser=new HeaderParser(cfg),this._hparser.on("header",function(header){self._inHeader=!1,self._part.emit("header",header)})}inherits(Dicer,WritableStream);Dicer.prototype.emit=function(ev){if(ev==="finish"&&!this._realFinish){if(!this._finished){let self=this;process.nextTick(function(){if(self.emit("error",new Error("Unexpected end of multipart data")),self._part&&!self._ignoreData){let type=self._isPreamble?"Preamble":"Part";self._part.emit("error",new Error(type+" terminated early due to unexpected end of multipart data")),self._part.push(null),process.nextTick(function(){self._realFinish=!0,self.emit("finish"),self._realFinish=!1});return}self._realFinish=!0,self.emit("finish"),self._realFinish=!1})}}else WritableStream.prototype.emit.apply(this,arguments)};Dicer.prototype._write=function(data,encoding,cb){if(!this._hparser&&!this._bparser)return cb();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new PartStream(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(data);if(!this._inHeader&&r!==void 0&&r<data.length)data=data.slice(r);else return cb()}this._firstWrite&&(this._bparser.push(B_CRLF),this._firstWrite=!1),this._bparser.push(data),this._pause?this._cb=cb:cb()};Dicer.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Dicer.prototype.setBoundary=function(boundary){let self=this;this._bparser=new StreamSearch(`\r
--`+boundary),this._bparser.on("info",function(isMatch,data,start,end){self._oninfo(isMatch,data,start,end)})};Dicer.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",EMPTY_FN),this._part.resume())};Dicer.prototype._oninfo=function(isMatch,data,start,end){let buf,self=this,i=0,r,shouldWriteMore=!0;if(!this._part&&this._justMatched&&data){for(;this._dashes<2&&start+i<end;)if(data[start+i]===DASH)++i,++this._dashes;else{this._dashes&&(buf=B_ONEDASH),this._dashes=0;break}if(this._dashes===2&&(start+i<end&&this.listenerCount("trailer")!==0&&this.emit("trailer",data.slice(start+i,end)),this.reset(),this._finished=!0,self._parts===0&&(self._realFinish=!0,self.emit("finish"),self._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new PartStream(this._partOpts),this._part._read=function(n){self._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),data&&start<end&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(buf&&(shouldWriteMore=this._part.push(buf)),shouldWriteMore=this._part.push(data.slice(start,end)),shouldWriteMore||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(buf&&this._hparser.push(buf),r=this._hparser.push(data.slice(start,end)),!this._inHeader&&r!==void 0&&r<end&&this._oninfo(!1,data,start+r,end))),isMatch&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:start!==end&&(++this._parts,this._part.on("end",function(){--self._parts===0&&(self._finished?(self._realFinish=!0,self.emit("finish"),self._realFinish=!1):self._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Dicer.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let cb=this._cb;this._cb=void 0,cb()}};module2.exports=Dicer}});var require_decodeText=__commonJS({"node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/decodeText.js"(exports2,module2){"use strict";var utf8Decoder=new TextDecoder("utf-8"),textDecoders=new Map([["utf-8",utf8Decoder],["utf8",utf8Decoder]]);function getDecoder(charset){let lc;for(;;)switch(charset){case"utf-8":case"utf8":return decoders.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return decoders.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return decoders.utf16le;case"base64":return decoders.base64;default:if(lc===void 0){lc=!0,charset=charset.toLowerCase();continue}return decoders.other.bind(charset)}}var decoders={utf8:(data,sourceEncoding)=>data.length===0?"":(typeof data=="string"&&(data=Buffer.from(data,sourceEncoding)),data.utf8Slice(0,data.length)),latin1:(data,sourceEncoding)=>data.length===0?"":typeof data=="string"?data:data.latin1Slice(0,data.length),utf16le:(data,sourceEncoding)=>data.length===0?"":(typeof data=="string"&&(data=Buffer.from(data,sourceEncoding)),data.ucs2Slice(0,data.length)),base64:(data,sourceEncoding)=>data.length===0?"":(typeof data=="string"&&(data=Buffer.from(data,sourceEncoding)),data.base64Slice(0,data.length)),other:(data,sourceEncoding)=>{if(data.length===0)return"";if(typeof data=="string"&&(data=Buffer.from(data,sourceEncoding)),textDecoders.has(exports2.toString()))try{return textDecoders.get(exports2).decode(data)}catch{}return typeof data=="string"?data:data.toString()}};function decodeText(text,sourceEncoding,destEncoding){return text&&getDecoder(destEncoding)(text,sourceEncoding)}module2.exports=decodeText}});var require_parseParams=__commonJS({"node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/parseParams.js"(exports2,module2){"use strict";var decodeText=require_decodeText(),RE_ENCODED=/%[a-fA-F0-9][a-fA-F0-9]/g,EncodedLookup={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%
`))}function setRequestReferrerPolicyOnRedirect(request,actualResponse){let{headersList}=actualResponse,policyHeader=(headersList.get("referrer-policy")??"").split(","),policy="";if(policyHeader.length>0)for(let i=policyHeader.length;i!==0;i--){let token=policyHeader[i-1].trim();if(referrerPolicyTokens.has(token)){policy=token;break}}policy!==""&&(request.referrerPolicy=policy)}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(httpRequest){let header=null;header=httpRequest.mode,httpRequest.headersList.set("sec-fetch-mode",header)}function appendRequestOriginHeader(request){let serializedOrigin=request.origin;if(request.responseTainting==="cors"||request.mode==="websocket")serializedOrigin&&request.headersList.append("origin",serializedOrigin);else if(request.method!=="GET"&&request.method!=="HEAD"){switch(request.referrerPolicy){case"no-referrer":serializedOrigin=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":request.origin&&urlHasHttpsScheme(request.origin)&&!urlHasHttpsScheme(requestCurrentURL(request))&&(serializedOrigin=null);break;case"same-origin":sameOrigin(request,requestCurrentURL(request))||(serializedOrigin=null);break;default:}serializedOrigin&&request.headersList.append("origin",serializedOrigin)}}function coarsenedSharedCurrentTime(crossOriginIsolatedCapability){return performance2.now()}function createOpaqueTimingInfo(timingInfo){return{startTime:timingInfo.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:timingInfo.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(policyContainer){return{referrerPolicy:policyContainer.referrerPolicy}}function determineRequestsReferrer(request){let policy=request.referrerPolicy;assert(policy);let referrerSource=null;if(request.referrer==="client"){let globalOrigin=getGlobalOrigin();if(!globalOrigin||globalOrigin.origin==="null")return"no-referrer";referrerSource=new URL(globalOrigin)}else request.referrer instanceof URL&&(referrerSource=request.referrer);let referrerURL=stripURLForReferrer(referrerSource),referrerOrigin=stripURLForReferrer(referrerSource,!0);referrerURL.toString().length>4096&&(referrerURL=referrerOrigin);let areSameOrigin=sameOrigin(request,referrerURL),isNonPotentiallyTrustWorthy=isURLPotentiallyTrustworthy(referrerURL)&&!isURLPotentiallyTrustworthy(request.url);switch(policy){case"origin":return referrerOrigin??stripURLForReferrer(referrerSource,!0);case"unsafe-url":return referrerURL;case"same-origin":return areSameOrigin?referrerOrigin:"no-referrer";case"origin-when-cross-origin":return areSameOrigin?referrerURL:referrerOrigin;case"strict-origin-when-cross-origin":{let currentURL=requestCurrentURL(request);return sameOrigin(referrerURL,currentURL)?referrerURL:isURLPotentiallyTrustworthy(referrerURL)&&!isURLPotentiallyTrustworthy(currentURL)?"no-referrer":referrerOrigin}case"strict-origin":case"no-referrer-when-downgrade":default:return isNonPotentiallyTrustWorthy?"no-referrer":referrerOrigin}}function stripURLForReferrer(url,originOnly){return assert(url instanceof URL),url.protocol==="file:"||url.protocol==="about:"||url.protocol==="blank:"?"no-referrer":(url.username="",url.password="",url.hash="",originOnly&&(url.pathname="",url.search=""),url)}function isURLPotentiallyTrustworthy(url){if(!(url instanceof URL))return!1;if(url.href==="about:blank"||url.href==="about:srcdoc"||url.protocol==="data:"||url.protocol==="file:")return!0;return isOriginPotentiallyTrustworthy(url.origin);function isOriginPotentiallyTrustworthy(origin){if(origin==null||origin==="null")return!1;let originAsURL=new URL(origin);return!!(originAsURL.protocol==="https:"||originAsURL.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:
`||char===" "||char===" "}function removeHTTPWhitespace(str,leading=!0,trailing=!0){let lead=0,trail=str.length-1;if(leading)for(;lead<str.length&&isHTTPWhiteSpace(str[lead]);lead++);if(trailing)for(;trail>0&&isHTTPWhiteSpace(str[trail]);trail--);return str.slice(lead,trail+1)}function isASCIIWhitespace(char){return char==="\r"||char===`
`||char===" "||char==="\f"||char===" "}function removeASCIIWhitespace(str,leading=!0,trailing=!0){let lead=0,trail=str.length-1;if(leading)for(;lead<str.length&&isASCIIWhitespace(str[lead]);lead++);if(trailing)for(;trail>0&&isASCIIWhitespace(str[trail]);trail--);return str.slice(lead,trail+1)}module2.exports={dataURLProcessor,URLSerializer,collectASequenceOfCodePoints,collectASequenceOfCodePointsFast,stringPercentDecode,parseMIMEType,collectAnHTTPQuotedString,serializeAMimeType}}});var require_file=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/fetch/file.js"(exports2,module2){"use strict";var{Blob:Blob2,File:NativeFile}=require("buffer"),{types}=require("util"),{kState}=require_symbols2(),{isBlobLike}=require_util2(),{webidl}=require_webidl(),{parseMIMEType,serializeAMimeType}=require_dataURL(),{kEnumerableProperty}=require_util(),encoder=new TextEncoder,File=class _File extends Blob2{constructor(fileBits,fileName,options={}){webidl.argumentLengthCheck(arguments,2,{header:"File constructor"}),fileBits=webidl.converters["sequence<BlobPart>"](fileBits),fileName=webidl.converters.USVString(fileName),options=webidl.converters.FilePropertyBag(options);let n=fileName,t=options.type,d;substep:{if(t){if(t=parseMIMEType(t),t==="failure"){t="";break substep}t=serializeAMimeType(t).toLowerCase()}d=options.lastModified}super(processBlobParts(fileBits,options),{type:t}),this[kState]={name:n,lastModified:d,type:t}}get name(){return webidl.brandCheck(this,_File),this[kState].name}get lastModified(){return webidl.brandCheck(this,_File),this[kState].lastModified}get type(){return webidl.brandCheck(this,_File),this[kState].type}},FileLike=class _FileLike{constructor(blobLike,fileName,options={}){let n=fileName,t=options.type,d=options.lastModified??Date.now();this[kState]={blobLike,name:n,type:t,lastModified:d}}stream(...args){return webidl.brandCheck(this,_FileLike),this[kState].blobLike.stream(...args)}arrayBuffer(...args){return webidl.brandCheck(this,_FileLike),this[kState].blobLike.arrayBuffer(...args)}slice(...args){return webidl.brandCheck(this,_FileLike),this[kState].blobLike.slice(...args)}text(...args){return webidl.brandCheck(this,_FileLike),this[kState].blobLike.text(...args)}get size(){return webidl.brandCheck(this,_FileLike),this[kState].blobLike.size}get type(){return webidl.brandCheck(this,_FileLike),this[kState].blobLike.type}get name(){return webidl.brandCheck(this,_FileLike),this[kState].name}get lastModified(){return webidl.brandCheck(this,_FileLike),this[kState].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:kEnumerableProperty,lastModified:kEnumerableProperty});webidl.converters.Blob=webidl.interfaceConverter(Blob2);webidl.converters.BlobPart=function(V,opts){if(webidl.util.Type(V)==="Object"){if(isBlobLike(V))return webidl.converters.Blob(V,{strict:!1});if(ArrayBuffer.isView(V)||types.isAnyArrayBuffer(V))return webidl.converters.BufferSource(V,opts)}return webidl.converters.USVString(V,opts)};webidl.converters["sequence<BlobPart>"]=webidl.sequenceConverter(webidl.converters.BlobPart);webidl.converters.FilePropertyBag=webidl.dictionaryConverter([{key:"lastModified",converter:webidl.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:webidl.converters.DOMString,defaultValue:""},{key:"endings",converter:value=>(value=webidl.converters.DOMString(value),value=value.toLowerCase(),value!=="native"&&(value="transparent"),value),defaultValue:"transparent"}]);function processBlobParts(parts,options){let bytes=[];for(let element of parts)if(typeof element=="string"){let s=element;options.endings==="native"&&(s=convertLineEndingsNative(s)),bytes.push(encoder.encode(s))}else types.isAnyArrayBuffer(element)||types.isTypedArray(element)?element.buffer?bytes.push(new Uint8Array(element.buffer,element.byteOffset,element.byteLength)):bytes.push(new Uint8Array(element)):isBlobLike(element)&&bytes.push(element);return bytes}function convertLineEndingsNative(s){let nativeLineEn
`;return process.platform==="win32"&&(nativeLineEnding=`\r
`),s.replace(/\r?\n/g,nativeLineEnding)}function isFileLike(object){return NativeFile&&object instanceof NativeFile||object instanceof File||object&&(typeof object.stream=="function"||typeof object.arrayBuffer=="function")&&object[Symbol.toStringTag]==="File"}module2.exports={File,FileLike,isFileLike}}});var require_formdata=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/fetch/formdata.js"(exports2,module2){"use strict";var{isBlobLike,toUSVString,makeIterator}=require_util2(),{kState}=require_symbols2(),{File:UndiciFile,FileLike,isFileLike}=require_file(),{webidl}=require_webidl(),{Blob:Blob2,File:NativeFile}=require("buffer"),File=NativeFile??UndiciFile,FormData=class _FormData{constructor(form){if(form!==void 0)throw webidl.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[kState]=[]}append(name,value,filename=void 0){if(webidl.brandCheck(this,_FormData),webidl.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!isBlobLike(value))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");name=webidl.converters.USVString(name),value=isBlobLike(value)?webidl.converters.Blob(value,{strict:!1}):webidl.converters.USVString(value),filename=arguments.length===3?webidl.converters.USVString(filename):void 0;let entry=makeEntry(name,value,filename);this[kState].push(entry)}delete(name){webidl.brandCheck(this,_FormData),webidl.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),name=webidl.converters.USVString(name),this[kState]=this[kState].filter(entry=>entry.name!==name)}get(name){webidl.brandCheck(this,_FormData),webidl.argumentLengthCheck(arguments,1,{header:"FormData.get"}),name=webidl.converters.USVString(name);let idx=this[kState].findIndex(entry=>entry.name===name);return idx===-1?null:this[kState][idx].value}getAll(name){return webidl.brandCheck(this,_FormData),webidl.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),name=webidl.converters.USVString(name),this[kState].filter(entry=>entry.name===name).map(entry=>entry.value)}has(name){return webidl.brandCheck(this,_FormData),webidl.argumentLengthCheck(arguments,1,{header:"FormData.has"}),name=webidl.converters.USVString(name),this[kState].findIndex(entry=>entry.name===name)!==-1}set(name,value,filename=void 0){if(webidl.brandCheck(this,_FormData),webidl.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!isBlobLike(value))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");name=webidl.converters.USVString(name),value=isBlobLike(value)?webidl.converters.Blob(value,{strict:!1}):webidl.converters.USVString(value),filename=arguments.length===3?toUSVString(filename):void 0;let entry=makeEntry(name,value,filename),idx=this[kState].findIndex(entry2=>entry2.name===name);idx!==-1?this[kState]=[...this[kState].slice(0,idx),entry,...this[kState].slice(idx+1).filter(entry2=>entry2.name!==name)]:this[kState].push(entry)}entries(){return webidl.brandCheck(this,_FormData),makeIterator(()=>this[kState].map(pair=>[pair.name,pair.value]),"FormData","key+value")}keys(){return webidl.brandCheck(this,_FormData),makeIterator(()=>this[kState].map(pair=>[pair.name,pair.value]),"FormData","key")}values(){return webidl.brandCheck(this,_FormData),makeIterator(()=>this[kState].map(pair=>[pair.name,pair.value]),"FormData","value")}forEach(callbackFn,thisArg=globalThis){if(webidl.brandCheck(this,_FormData),webidl.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof callbackFn!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[key,value]of this)callbackFn.apply(thisArg,[value,key,this])}};FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function makeEntry(name,value,filename){if(name=Buffer.from(name).toString("utf8"),typeof value=="string")value=Buffer.from(value).
Content-Disposition: form-data`;let escape=str=>str.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),normalizeLinefeeds=value=>value.replace(/\r?\n|\r/g,`\r
`),blobParts=[],rn=new Uint8Array([13,10]);length=0;let hasUnknownSizeValue=!1;for(let[name,value]of object)if(typeof value=="string"){let chunk2=textEncoder.encode(prefix+`; name="${escape(normalizeLinefeeds(name))}"\r
\r
${normalizeLinefeeds(value)}\r
`);blobParts.push(chunk2),length+=chunk2.byteLength}else{let chunk2=textEncoder.encode(`${prefix}; name="${escape(normalizeLinefeeds(name))}"`+(value.name?`; filename="${escape(value.name)}"`:"")+`\r
Content-Type: ${value.type||"application/octet-stream"}\r
\r
`);blobParts.push(chunk2,value,rn),typeof value.size=="number"?length+=chunk2.byteLength+value.size+rn.byteLength:hasUnknownSizeValue=!0}let chunk=textEncoder.encode(`--${boundary}--`);blobParts.push(chunk),length+=chunk.byteLength,hasUnknownSizeValue&&(length=null),source=object,action=async function*(){for(let part of blobParts)part.stream?yield*part.stream():yield part},type="multipart/form-data; boundary="+boundary}else if(isBlobLike(object))source=object,length=object.size,object.type&&(type=object.type);else if(typeof object[Symbol.asyncIterator]=="function"){if(keepalive)throw new TypeError("keepalive");if(util.isDisturbed(object)||object.locked)throw new TypeError("Response body object should not be disturbed or locked");stream=object instanceof ReadableStream?object:ReadableStreamFrom(object)}if((typeof source=="string"||util.isBuffer(source))&&(length=Buffer.byteLength(source)),action!=null){let iterator;stream=new ReadableStream({async start(){iterator=action(object)[Symbol.asyncIterator]()},async pull(controller){let{value,done}=await iterator.next();return done?queueMicrotask(()=>{controller.close()}):isErrored(stream)||controller.enqueue(new Uint8Array(value)),controller.desiredSize>0},async cancel(reason){await iterator.return()},type:void 0})}return[{stream,source,length},type]}function safelyExtractBody(object,keepalive=!1){return ReadableStream||(ReadableStream=require("stream/web").ReadableStream),object instanceof ReadableStream&&(assert(!util.isDisturbed(object),"The body has already been consumed."),assert(!object.locked,"The stream is locked.")),extractBody(object,keepalive)}function cloneBody(body){let[out1,out2]=body.stream.tee(),out2Clone=structuredClone(out2,{transfer:[out2]}),[,finalClone]=out2Clone.tee();return body.stream=out1,{stream:finalClone,length:body.length,source:body.source}}async function*consumeBody(body){if(body)if(isUint8Array(body))yield body;else{let stream=body.stream;if(util.isDisturbed(stream))throw new TypeError("The body has already been consumed.");if(stream.locked)throw new TypeError("The stream is locked.");stream[kBodyUsed]=!0,yield*stream}}function throwIfAborted(state){if(state.aborted)throw new DOMException2("The operation was aborted.","AbortError")}function bodyMixinMethods(instance){return{blob(){return specConsumeBody(this,bytes=>{let mimeType=bodyMimeType(this);return mimeType==="failure"?mimeType="":mimeType&&(mimeType=serializeAMimeType(mimeType)),new Blob2([bytes],{type:mimeType})},instance)},arrayBuffer(){return specConsumeBody(this,bytes=>new Uint8Array(bytes).buffer,instance)},text(){return specConsumeBody(this,utf8DecodeBytes,instance)},json(){return specConsumeBody(this,parseJSONFromBytes,instance)},async formData(){webidl.brandCheck(this,instance),throwIfAborted(this[kState]);let contentType=this.headers.get("Content-Type");if(/multipart\/form-data/.test(contentType)){let headers={};for(let[key,value]of this.headers)headers[key.toLowerCase()]=value;let responseFormData=new FormData,busboy;try{busboy=new Busboy({headers,preservePath:!0})}catch(err){throw new DOMException2(`${err}`,"AbortError")}busboy.on("field",(name,value)=>{responseFormData.append(name,value)}),busboy.on("file",(name,value,filename,encoding,mimeType)=>{let chunks=[];if(encoding==="base64"||encoding.toLowerCase()==="base64"){let base64chunk="";value.on("data",chunk=>{base64chunk+=chunk.toString().replace(/[\r\n]/gm,"");let end=base64chunk.length-base64chunk.length%4;chunks.push(Buffer.from(base64chunk.slice(0,end),"base64")),base64chunk=base64chunk.slice(end)}),value.on("end",()=>{chunks.push(Buffer.from(base64chunk,"base64")),responseFormData.append(name,new File(chunks,filename,{type:mimeType}))})}else value.on("data",chunk=>{chunks.push(chunk)}),value.on("end",()=>{responseFormData.append(name,new File(chunks,filename,{type:mimeType}))})});let busboyResolve=new Promise((resolve,reject)=>{busboy.on("finish",resolve),busboy.on("error",err=>reject(new TypeError(err)))});if(this.body!==null)for await(let chunk of consumeBody(this[kState].body))busboy.write(chunk);return busboy.end(),
`),this.body=bodyStream.stream,this.contentLength=bodyStream.length}else util.isBlobLike(body)&&this.contentType==null&&body.type&&(this.contentType=body.type,this.headers+=`content-type: ${body.type}\r
`);util.validateHandler(handler,method,upgrade),this.servername=util.getServerName(this.host),this[kHandler]=handler,channels.create.hasSubscribers&&channels.create.publish({request:this})}onBodySent(chunk){if(this[kHandler].onBodySent)try{return this[kHandler].onBodySent(chunk)}catch(err){this.abort(err)}}onRequestSent(){if(channels.bodySent.hasSubscribers&&channels.bodySent.publish({request:this}),this[kHandler].onRequestSent)try{return this[kHandler].onRequestSent()}catch(err){this.abort(err)}}onConnect(abort){if(assert(!this.aborted),assert(!this.completed),this.error)abort(this.error);else return this.abort=abort,this[kHandler].onConnect(abort)}onHeaders(statusCode,headers,resume,statusText){assert(!this.aborted),assert(!this.completed),channels.headers.hasSubscribers&&channels.headers.publish({request:this,response:{statusCode,headers,statusText}});try{return this[kHandler].onHeaders(statusCode,headers,resume,statusText)}catch(err){this.abort(err)}}onData(chunk){assert(!this.aborted),assert(!this.completed);try{return this[kHandler].onData(chunk)}catch(err){return this.abort(err),!1}}onUpgrade(statusCode,headers,socket){return assert(!this.aborted),assert(!this.completed),this[kHandler].onUpgrade(statusCode,headers,socket)}onComplete(trailers){this.onFinally(),assert(!this.aborted),this.completed=!0,channels.trailers.hasSubscribers&&channels.trailers.publish({request:this,trailers});try{return this[kHandler].onComplete(trailers)}catch(err){this.onError(err)}}onError(error){if(this.onFinally(),channels.error.hasSubscribers&&channels.error.publish({request:this,error}),!this.aborted)return this.aborted=!0,this[kHandler].onError(error)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(key,value){return processHeader(this,key,value),this}static[kHTTP1BuildRequest](origin,opts,handler){return new _Request(origin,opts,handler)}static[kHTTP2BuildRequest](origin,opts,handler){let headers=opts.headers;opts={...opts,headers:null};let request=new _Request(origin,opts,handler);if(request.headers={},Array.isArray(headers)){if(headers.length%2!==0)throw new InvalidArgumentError("headers array must be even");for(let i=0;i<headers.length;i+=2)processHeader(request,headers[i],headers[i+1],!0)}else if(headers&&typeof headers=="object"){let keys=Object.keys(headers);for(let i=0;i<keys.length;i++){let key=keys[i];processHeader(request,key,headers[key],!0)}}else if(headers!=null)throw new InvalidArgumentError("headers must be an object or an array");return request}static[kHTTP2CopyHeaders](raw){let rawHeaders=raw.split(`\r
`),headers={};for(let header of rawHeaders){let[key,value]=header.split(": ");value==null||value.length===0||(headers[key]?headers[key]+=`,${value}`:headers[key]=value)}return headers}};function processHeaderValue(key,val,skipAppend){if(val&&typeof val=="object")throw new InvalidArgumentError(`invalid ${key} header`);if(val=val!=null?`${val}`:"",headerCharRegex.exec(val)!==null)throw new InvalidArgumentError(`invalid ${key} header`);return skipAppend?val:`${key}: ${val}\r
`}function processHeader(request,key,val,skipAppend=!1){if(val&&typeof val=="object"&&!Array.isArray(val))throw new InvalidArgumentError(`invalid ${key} header`);if(val===void 0)return;if(request.host===null&&key.length===4&&key.toLowerCase()==="host"){if(headerCharRegex.exec(val)!==null)throw new InvalidArgumentError(`invalid ${key} header`);request.host=val}else if(request.contentLength===null&&key.length===14&&key.toLowerCase()==="content-length"){if(request.contentLength=parseInt(val,10),!Number.isFinite(request.contentLength))throw new InvalidArgumentError("invalid content-length header")}else if(request.contentType===null&&key.length===12&&key.toLowerCase()==="content-type")request.contentType=val,skipAppend?request.headers[key]=processHeaderValue(key,val,skipAppend):request.headers+=processHeaderValue(key,val);else{if(key.length===17&&key.toLowerCase()==="transfer-encoding")throw new InvalidArgumentError("invalid transfer-encoding header");if(key.length===10&&key.toLowerCase()==="connection"){let value=typeof val=="string"?val.toLowerCase():null;if(value!=="close"&&value!=="keep-alive")throw new InvalidArgumentError("invalid connection header");value==="close"&&(request.reset=!0)}else{if(key.length===10&&key.toLowerCase()==="keep-alive")throw new InvalidArgumentError("invalid keep-alive header");if(key.length===7&&key.toLowerCase()==="upgrade")throw new InvalidArgumentError("invalid upgrade header");if(key.length===6&&key.toLowerCase()==="expect")throw new NotSupportedError("expect header not supported");if(tokenRegExp.exec(key)===null)throw new InvalidArgumentError("invalid header key");if(Array.isArray(val))for(let i=0;i<val.length;i++)skipAppend?request.headers[key]?request.headers[key]+=`,${processHeaderValue(key,val[i],skipAppend)}`:request.headers[key]=processHeaderValue(key,val[i],skipAppend):request.headers+=processHeaderValue(key,val[i]);else skipAppend?request.headers[key]=processHeaderValue(key,val,skipAppend):request.headers+=processHeaderValue(key,val)}}}module2.exports=Request}});var require_dispatcher=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/dispatcher.js"(exports2,module2){"use strict";var EventEmitter=require("events"),Dispatcher=class extends EventEmitter{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};module2.exports=Dispatcher}});var require_dispatcher_base=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/dispatcher-base.js"(exports2,module2){"use strict";var Dispatcher=require_dispatcher(),{ClientDestroyedError,ClientClosedError,InvalidArgumentError}=require_errors(),{kDestroy,kClose,kDispatch,kInterceptors}=require_symbols(),kDestroyed=Symbol("destroyed"),kClosed=Symbol("closed"),kOnDestroyed=Symbol("onDestroyed"),kOnClosed=Symbol("onClosed"),kInterceptedDispatch=Symbol("Intercepted Dispatch"),DispatcherBase=class extends Dispatcher{constructor(){super(),this[kDestroyed]=!1,this[kOnDestroyed]=null,this[kClosed]=!1,this[kOnClosed]=[]}get destroyed(){return this[kDestroyed]}get closed(){return this[kClosed]}get interceptors(){return this[kInterceptors]}set interceptors(newInterceptors){if(newInterceptors){for(let i=newInterceptors.length-1;i>=0;i--)if(typeof this[kInterceptors][i]!="function")throw new InvalidArgumentError("interceptor must be an function")}this[kInterceptors]=newInterceptors}close(callback){if(callback===void 0)return new Promise((resolve,reject)=>{this.close((err,data)=>err?reject(err):resolve(data))});if(typeof callback!="function")throw new InvalidArgumentError("invalid callback");if(this[kDestroyed]){queueMicrotask(()=>callback(new ClientDestroyedError,null));return}if(this[kClosed]){this[kOnClosed]?this[kOnClosed].push(callback):queueMicrotask(()=>callback(null,null));return}this[kClosed]=!0,this[kOnClosed].push(callback);let onClosed=()=>{let callbacks=this[kOnClosed];this[kOnClosed]=null;for(let i=0;i<callbacks.length;i++)callbacks[i](null,null)};this[kClose]().then(()=>this.destroy()).then(()=>{queueMicrotask(onClosed)})}destroy(err
`,this[kBodyTimeout]=bodyTimeout??3e5,this[kHeadersTimeout]=headersTimeout??3e5,this[kStrictContentLength]=strictContentLength??!0,this[kMaxRedirections]=maxRedirections,this[kMaxRequests]=maxRequestsPerClient,this[kClosedResolve]=null,this[kMaxResponseSize]=maxResponseSize>-1?maxResponseSize:-1,this[kHTTPConnVersion]="h1",this[kHTTP2Session]=null,this[kHTTP2SessionState]=allowH2?{openStreams:0,maxConcurrentStreams:maxConcurrentStreams??100}:null,this[kHost]=`${this[kUrl].hostname}${this[kUrl].port?`:${this[kUrl].port}`:""}`,this[kQueue]=[],this[kRunningIdx]=0,this[kPendingIdx]=0}get pipelining(){return this[kPipelining]}set pipelining(value){this[kPipelining]=value,resume(this,!0)}get[kPending](){return this[kQueue].length-this[kPendingIdx]}get[kRunning](){return this[kPendingIdx]-this[kRunningIdx]}get[kSize](){return this[kQueue].length-this[kRunningIdx]}get[kConnected](){return!!this[kSocket]&&!this[kConnecting]&&!this[kSocket].destroyed}get[kBusy](){let socket=this[kSocket];return socket&&(socket[kReset]||socket[kWriting]||socket[kBlocking])||this[kSize]>=(this[kPipelining]||1)||this[kPending]>0}[kConnect](cb){connect(this),this.once("connect",cb)}[kDispatch](opts,handler){let origin=opts.origin||this[kUrl].origin,request=this[kHTTPConnVersion]==="h2"?Request[kHTTP2BuildRequest](origin,opts,handler):Request[kHTTP1BuildRequest](origin,opts,handler);return this[kQueue].push(request),this[kResuming]||(util.bodyLength(request.body)==null&&util.isIterable(request.body)?(this[kResuming]=1,process.nextTick(resume,this)):resume(this,!0)),this[kResuming]&&this[kNeedDrain]!==2&&this[kBusy]&&(this[kNeedDrain]=2),this[kNeedDrain]<2}async[kClose](){return new Promise(resolve=>{this[kSize]?this[kClosedResolve]=resolve:resolve(null)})}async[kDestroy](err){return new Promise(resolve=>{let requests=this[kQueue].splice(this[kPendingIdx]);for(let i=0;i<requests.length;i++){let request=requests[i];errorRequest(this,request,err)}let callback=()=>{this[kClosedResolve]&&(this[kClosedResolve](),this[kClosedResolve]=null),resolve()};this[kHTTP2Session]!=null&&(util.destroy(this[kHTTP2Session],err),this[kHTTP2Session]=null,this[kHTTP2SessionState]=null),this[kSocket]?util.destroy(this[kSocket].on("close",callback),err):queueMicrotask(callback),resume(this)})}};function onHttp2SessionError(err){assert(err.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kSocket][kError]=err,onError(this[kClient],err)}function onHttp2FrameError(type,code,id){let err=new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`);id===0&&(this[kSocket][kError]=err,onError(this[kClient],err))}function onHttp2SessionEnd(){util.destroy(this,new SocketError("other side closed")),util.destroy(this[kSocket],new SocketError("other side closed"))}function onHTTP2GoAway(code){let client=this[kClient],err=new InformationalError(`HTTP/2: "GOAWAY" frame received with code ${code}`);if(client[kSocket]=null,client[kHTTP2Session]=null,client.destroyed){assert(this[kPending]===0);let requests=client[kQueue].splice(client[kRunningIdx]);for(let i=0;i<requests.length;i++){let request=requests[i];errorRequest(this,request,err)}}else if(client[kRunning]>0){let request=client[kQueue][client[kRunningIdx]];client[kQueue][client[kRunningIdx]++]=null,errorRequest(client,request,err)}client[kPendingIdx]=client[kRunningIdx],assert(client[kRunning]===0),client.emit("disconnect",client[kUrl],[client],err),resume(client)}var constants=require_constants3(),createRedirectInterceptor=require_redirectInterceptor(),EMPTY_BUF=Buffer.alloc(0);async function lazyllhttp(){let llhttpWasmData=process.env.JEST_WORKER_ID?require_llhttp_wasm():void 0,mod;try{mod=await WebAssembly.compile(Buffer.from(require_llhttp_simd_wasm(),"base64"))}catch{mod=await WebAssembly.compile(Buffer.from(llhttpWasmData||require_llhttp_wasm(),"base64"))}return await WebAssembly.instantiate(mod,{env:{wasm_on_url:(p,at,len)=>0,wasm_on_status:(p,at,len)=>{assert.strictEqual(currentParser.ptr,p);let start=at-currentBufferPtr+currentBufferRef.byteOffset;return currentParser.onStatus(new FastBuffer(currentBufferRef.b
`;return typeof host=="string"?header+=`host: ${host}\r
`:header+=client[kHostHeader],upgrade?header+=`connection: upgrade\r
upgrade: ${upgrade}\r
`:client[kPipelining]&&!socket[kReset]?header+=`connection: keep-alive\r
`:header+=`connection: close\r
`,headers&&(header+=headers),channels.sendHeaders.hasSubscribers&&channels.sendHeaders.publish({request,headers:header,socket}),!body||bodyLength===0?(contentLength===0?socket.write(`${header}content-length: 0\r
\r
`,"latin1"):(assert(contentLength===null,"no body must not have content length"),socket.write(`${header}\r
`,"latin1")),request.onRequestSent()):util.isBuffer(body)?(assert(contentLength===body.byteLength,"buffer body must have content length"),socket.cork(),socket.write(`${header}content-length: ${contentLength}\r
\r
`,"latin1"),socket.write(body),socket.uncork(),request.onBodySent(body),request.onRequestSent(),expectsPayload||(socket[kReset]=!0)):util.isBlobLike(body)?typeof body.stream=="function"?writeIterable({body:body.stream(),client,request,socket,contentLength,header,expectsPayload}):writeBlob({body,client,request,socket,contentLength,header,expectsPayload}):util.isStream(body)?writeStream({body,client,request,socket,contentLength,header,expectsPayload}):util.isIterable(body)?writeIterable({body,client,request,socket,contentLength,header,expectsPayload}):assert(!1),!0}function writeH2(client,session,request){let{body,method,path,host,upgrade,expectContinue,signal,headers:reqHeaders}=request,headers;if(typeof reqHeaders=="string"?headers=Request[kHTTP2CopyHeaders](reqHeaders.trim()):headers=reqHeaders,upgrade)return errorRequest(client,request,new Error("Upgrade not supported for H2")),!1;try{request.onConnect(err=>{request.aborted||request.completed||errorRequest(client,request,err||new RequestAbortedError)})}catch(err){errorRequest(client,request,err)}if(request.aborted)return!1;let stream,h2State=client[kHTTP2SessionState];if(headers[HTTP2_HEADER_AUTHORITY]=host||client[kHost],headers[HTTP2_HEADER_METHOD]=method,method==="CONNECT")return session.ref(),stream=session.request(headers,{endStream:!1,signal}),stream.id&&!stream.pending?(request.onUpgrade(null,null,stream),++h2State.openStreams):stream.once("ready",()=>{request.onUpgrade(null,null,stream),++h2State.openStreams}),stream.once("close",()=>{h2State.openStreams-=1,h2State.openStreams===0&&session.unref()}),!0;headers[HTTP2_HEADER_PATH]=path,headers[HTTP2_HEADER_SCHEME]="https";let expectsPayload=method==="PUT"||method==="POST"||method==="PATCH";body&&typeof body.read=="function"&&body.read(0);let contentLength=util.bodyLength(body);if(contentLength==null&&(contentLength=request.contentLength),(contentLength===0||!expectsPayload)&&(contentLength=null),shouldSendContentLength(method)&&contentLength>0&&request.contentLength!=null&&request.contentLength!==contentLength){if(client[kStrictContentLength])return errorRequest(client,request,new RequestContentLengthMismatchError),!1;process.emitWarning(new RequestContentLengthMismatchError)}contentLength!=null&&(assert(body,"no body must not have content length"),headers[HTTP2_HEADER_CONTENT_LENGTH]=`${contentLength}`),session.ref();let shouldEndStream=method==="GET"||method==="HEAD";return expectContinue?(headers[HTTP2_HEADER_EXPECT]="100-continue",stream=session.request(headers,{endStream:shouldEndStream,signal}),stream.once("continue",writeBodyH2)):(stream=session.request(headers,{endStream:shouldEndStream,signal}),writeBodyH2()),++h2State.openStreams,stream.once("response",headers2=>{let{[HTTP2_HEADER_STATUS]:statusCode,...realHeaders}=headers2;request.onHeaders(Number(statusCode),realHeaders,stream.resume.bind(stream),"")===!1&&stream.pause()}),stream.once("end",()=>{request.onComplete([])}),stream.on("data",chunk=>{request.onData(chunk)===!1&&stream.pause()}),stream.once("close",()=>{h2State.openStreams-=1,h2State.openStreams===0&&session.unref()}),stream.once("error",function(err){client[kHTTP2Session]&&!client[kHTTP2Session].destroyed&&!this.closed&&!this.destroyed&&(h2State.streams-=1,util.destroy(stream,err))}),stream.once("frameError",(type,code)=>{let err=new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`);errorRequest(client,request,err),client[kHTTP2Session]&&!client[kHTTP2Session].destroyed&&!this.closed&&!this.destroyed&&(h2State.streams-=1,util.destroy(stream,err))}),!0;function writeBodyH2(){body?util.isBuffer(body)?(assert(contentLength===body.byteLength,"buffer body must have content length"),stream.cork(),stream.write(body),stream.uncork(),stream.end(),request.onBodySent(body),request.onRequestSent()):util.isBlobLike(body)?typeof body.stream=="function"?writeIterable({client,request,contentLength,h2stream:stream,expectsPayload,body:body.stream(),socket:client[kSocket],header:""}):writeBlob({body,client,request,contentLength,expectsPayload,h2stream:stream,header:"",socket:cl
\r
`,"latin1"),socket.write(buffer),socket.uncork()),request.onBodySent(buffer),request.onRequestSent(),expectsPayload||(socket[kReset]=!0),resume(client)}catch(err){util.destroy(isH2?h2stream:socket,err)}}async function writeIterable({h2stream,body,client,request,socket,contentLength,header,expectsPayload}){assert(contentLength!==0||client[kRunning]===0,"iterator body cannot be pipelined");let callback=null;function onDrain(){if(callback){let cb=callback;callback=null,cb()}}let waitForDrain=()=>new Promise((resolve,reject)=>{assert(callback===null),socket[kError]?reject(socket[kError]):callback=resolve});if(client[kHTTPConnVersion]==="h2"){h2stream.on("close",onDrain).on("drain",onDrain);try{for await(let chunk of body){if(socket[kError])throw socket[kError];let res=h2stream.write(chunk);request.onBodySent(chunk),res||await waitForDrain()}}catch(err){h2stream.destroy(err)}finally{request.onRequestSent(),h2stream.end(),h2stream.off("close",onDrain).off("drain",onDrain)}return}socket.on("close",onDrain).on("drain",onDrain);let writer=new AsyncWriter({socket,request,contentLength,client,expectsPayload,header});try{for await(let chunk of body){if(socket[kError])throw socket[kError];writer.write(chunk)||await waitForDrain()}writer.end()}catch(err){writer.destroy(err)}finally{socket.off("close",onDrain).off("drain",onDrain)}}var AsyncWriter=class{constructor({socket,request,contentLength,client,expectsPayload,header}){this.socket=socket,this.request=request,this.contentLength=contentLength,this.client=client,this.bytesWritten=0,this.expectsPayload=expectsPayload,this.header=header,socket[kWriting]=!0}write(chunk){let{socket,request,contentLength,client,bytesWritten,expectsPayload,header}=this;if(socket[kError])throw socket[kError];if(socket.destroyed)return!1;let len=Buffer.byteLength(chunk);if(!len)return!0;if(contentLength!==null&&bytesWritten+len>contentLength){if(client[kStrictContentLength])throw new RequestContentLengthMismatchError;process.emitWarning(new RequestContentLengthMismatchError)}socket.cork(),bytesWritten===0&&(expectsPayload||(socket[kReset]=!0),contentLength===null?socket.write(`${header}transfer-encoding: chunked\r
`,"latin1"):socket.write(`${header}content-length: ${contentLength}\r
\r
`,"latin1")),contentLength===null&&socket.write(`\r
${len.toString(16)}\r
`,"latin1"),this.bytesWritten+=len;let ret=socket.write(chunk);return socket.uncork(),request.onBodySent(chunk),ret||socket[kParser].timeout&&socket[kParser].timeoutType===TIMEOUT_HEADERS&&socket[kParser].timeout.refresh&&socket[kParser].timeout.refresh(),ret}end(){let{socket,contentLength,client,bytesWritten,expectsPayload,header,request}=this;if(request.onRequestSent(),socket[kWriting]=!1,socket[kError])throw socket[kError];if(!socket.destroyed){if(bytesWritten===0?expectsPayload?socket.write(`${header}content-length: 0\r
\r
`,"latin1"):socket.write(`${header}\r
`,"latin1"):contentLength===null&&socket.write(`\r
0\r
\r
`,"latin1"),contentLength!==null&&bytesWritten!==contentLength){if(client[kStrictContentLength])throw new RequestContentLengthMismatchError;process.emitWarning(new RequestContentLengthMismatchError)}socket[kParser].timeout&&socket[kParser].timeoutType===TIMEOUT_HEADERS&&socket[kParser].timeout.refresh&&socket[kParser].timeout.refresh(),resume(client)}}destroy(err){let{socket,client}=this;socket[kWriting]=!1,err&&(assert(client[kRunning]<=1,"pipeline should only contain this request"),util.destroy(socket,err))}};function errorRequest(client,request,err){try{request.onError(err),assert(request.aborted)}catch(err2){client.emit("error",err2)}}module2.exports=Client}});var require_fixed_queue=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/node/fixed-queue.js"(exports2,module2){"use strict";var FixedCircularBuffer=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(data){this.list[this.top]=data,this.top=this.top+1&2047}shift(){let nextItem=this.list[this.bottom];return nextItem===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,nextItem)}};module2.exports=class{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(data){this.head.isFull()&&(this.head=this.head.next=new FixedCircularBuffer),this.head.push(data)}shift(){let tail=this.tail,next=tail.shift();return tail.isEmpty()&&tail.next!==null&&(this.tail=tail.next),next}}}});var require_pool_stats=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/pool-stats.js"(exports2,module2){var{kFree,kConnected,kPending,kQueued,kRunning,kSize}=require_symbols(),kPool=Symbol("pool"),PoolStats=class{constructor(pool){this[kPool]=pool}get connected(){return this[kPool][kConnected]}get free(){return this[kPool][kFree]}get pending(){return this[kPool][kPending]}get queued(){return this[kPool][kQueued]}get running(){return this[kPool][kRunning]}get size(){return this[kPool][kSize]}};module2.exports=PoolStats}});var require_pool_base=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/pool-base.js"(exports2,module2){"use strict";var DispatcherBase=require_dispatcher_base(),FixedQueue=require_fixed_queue(),{kConnected,kSize,kRunning,kPending,kQueued,kBusy,kFree,kUrl,kClose,kDestroy,kDispatch}=require_symbols(),PoolStats=require_pool_stats(),kClients=Symbol("clients"),kNeedDrain=Symbol("needDrain"),kQueue=Symbol("queue"),kClosedResolve=Symbol("closed resolve"),kOnDrain=Symbol("onDrain"),kOnConnect=Symbol("onConnect"),kOnDisconnect=Symbol("onDisconnect"),kOnConnectionError=Symbol("onConnectionError"),kGetDispatcher=Symbol("get dispatcher"),kAddClient=Symbol("add client"),kRemoveClient=Symbol("remove client"),kStats=Symbol("stats"),PoolBase=class extends DispatcherBase{constructor(){super(),this[kQueue]=new FixedQueue,this[kClients]=[],this[kQueued]=0;let pool=this;this[kOnDrain]=function(origin,targets){let queue=pool[kQueue],needDrain=!1;for(;!needDrain;){let item=queue.shift();if(!item)break;pool[kQueued]--,needDrain=!this.dispatch(item.opts,item.handler)}this[kNeedDrain]=needDrain,!this[kNeedDrain]&&pool[kNeedDrain]&&(pool[kNeedDrain]=!1,pool.emit("drain",origin,[pool,...targets])),pool[kClosedResolve]&&queue.isEmpty()&&Promise.all(pool[kClients].map(c=>c.close())).then(pool[kClosedResolve])},this[kOnConnect]=(origin,targets)=>{pool.emit("connect",origin,[pool,...targets])},this[kOnDisconnect]=(origin,targets,err)=>{pool.emit("disconnect",origin,[pool,...targets],err)},this[kOnConnectionError]=(origin,targets,err)=>{pool.emit("connectionError",origin,[pool,...targets],err)},this[kStats]=new PoolStats(this)}get[kBusy](){return this[kNeedDrain]}get[kConnected](){return this[kClients].filter(client=>client[kConnected]).length}get[kFree](){return this[kClients].filter(client=>client[kConnected]&&!client[kNeedDrain]).length}get[kPending](){let ret=this[kQueued];for(let{[kPending]:pending}of this[kClients])ret+=pending;return ret}get[kRunning]()
${pluralizer.count} ${pluralizer.noun} ${pluralizer.is} pending:
${pendingInterceptorsFormatter.format(pending)}
`.trim())}};module2.exports=MockAgent}});var require_proxy_agent=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/proxy-agent.js"(exports2,module2){"use strict";var{kProxy,kClose,kDestroy,kInterceptors}=require_symbols(),{URL:URL2}=require("url"),Agent=require_agent(),Pool=require_pool(),DispatcherBase=require_dispatcher_base(),{InvalidArgumentError,RequestAbortedError}=require_errors(),buildConnector=require_connect(),kAgent=Symbol("proxy agent"),kClient=Symbol("proxy client"),kProxyHeaders=Symbol("proxy headers"),kRequestTls=Symbol("request tls settings"),kProxyTls=Symbol("proxy tls settings"),kConnectEndpoint=Symbol("connect endpoint function");function defaultProtocolPort(protocol){return protocol==="https:"?443:80}function buildProxyOptions(opts){if(typeof opts=="string"&&(opts={uri:opts}),!opts||!opts.uri)throw new InvalidArgumentError("Proxy opts.uri is mandatory");return{uri:opts.uri,protocol:opts.protocol||"https"}}function defaultFactory(origin,opts){return new Pool(origin,opts)}var ProxyAgent=class extends DispatcherBase{constructor(opts){if(super(opts),this[kProxy]=buildProxyOptions(opts),this[kAgent]=new Agent(opts),this[kInterceptors]=opts.interceptors&&opts.interceptors.ProxyAgent&&Array.isArray(opts.interceptors.ProxyAgent)?opts.interceptors.ProxyAgent:[],typeof opts=="string"&&(opts={uri:opts}),!opts||!opts.uri)throw new InvalidArgumentError("Proxy opts.uri is mandatory");let{clientFactory=defaultFactory}=opts;if(typeof clientFactory!="function")throw new InvalidArgumentError("Proxy opts.clientFactory must be a function.");this[kRequestTls]=opts.requestTls,this[kProxyTls]=opts.proxyTls,this[kProxyHeaders]=opts.headers||{};let resolvedUrl=new URL2(opts.uri),{origin,port,host,username,password}=resolvedUrl;if(opts.auth&&opts.token)throw new InvalidArgumentError("opts.auth cannot be used in combination with opts.token");opts.auth?this[kProxyHeaders]["proxy-authorization"]=`Basic ${opts.auth}`:opts.token?this[kProxyHeaders]["proxy-authorization"]=opts.token:username&&password&&(this[kProxyHeaders]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(username)}:${decodeURIComponent(password)}`).toString("base64")}`);let connect=buildConnector({...opts.proxyTls});this[kConnectEndpoint]=buildConnector({...opts.requestTls}),this[kClient]=clientFactory(resolvedUrl,{connect}),this[kAgent]=new Agent({...opts,connect:async(opts2,callback)=>{let requestedHost=opts2.host;opts2.port||(requestedHost+=`:${defaultProtocolPort(opts2.protocol)}`);try{let{socket,statusCode}=await this[kClient].connect({origin,port,path:requestedHost,signal:opts2.signal,headers:{...this[kProxyHeaders],host}});if(statusCode!==200&&(socket.on("error",()=>{}).destroy(),callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`))),opts2.protocol!=="https:"){callback(null,socket);return}let servername;this[kRequestTls]?servername=this[kRequestTls].servername:servername=opts2.servername,this[kConnectEndpoint]({...opts2,servername,httpSocket:socket},callback)}catch(err){callback(err)}}})}dispatch(opts,handler){let{host}=new URL2(opts.origin),headers=buildHeaders(opts.headers);return throwIfProxyAuthIsSent(headers),this[kAgent].dispatch({...opts,headers:{...headers,host}},handler)}async[kClose](){await this[kAgent].close(),await this[kClient].close()}async[kDestroy](){await this[kAgent].destroy(),await this[kClient].destroy()}};function buildHeaders(headers){if(Array.isArray(headers)){let headersPair={};for(let i=0;i<headers.length;i+=2)headersPair[headers[i]]=headers[i+1];return headersPair}return headers}function throwIfProxyAuthIsSent(headers){if(headers&&Object.keys(headers).find(key=>key.toLowerCase()==="proxy-authorization"))throw new InvalidArgumentError("Proxy-Authorization should be sent in ProxyAgent constructor")}module2.exports=ProxyAgent}});var require_RetryHandler=__commonJS({"node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/handler/RetryHandler.js"(exports2,module2){var assert=require("assert"),{kRetryHandlerDefaultRetry}=require_symbols(),{RequestRetryError}
Error Code : ${error.statusCode}
Error Message: ${error.message}`)})).result)===null||_a===void 0?void 0:_a.value;if(!id_token)throw new Error("Response json body do not have ID Token field");return id_token})}static getIDToken(audience){return __awaiter(this,void 0,void 0,function*(){try{let id_token_url=_OidcClient.getIDTokenUrl();if(audience){let encodedAudience=encodeURIComponent(audience);id_token_url=`${id_token_url}&audience=${encodedAudience}`}(0,core_1.debug)(`ID token url is ${id_token_url}`);let id_token=yield _OidcClient.getCall(id_token_url);return(0,core_1.setSecret)(id_token),id_token}catch(error){throw new Error(`Error message: ${error.message}`)}})}};exports2.OidcClient=OidcClient}});var require_summary=__commonJS({"node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/summary.js"(exports2){"use strict";var __awaiter=exports2&&exports2.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports2,"__esModule",{value:!0});exports2.summary=exports2.markdownSummary=exports2.SUMMARY_DOCS_URL=exports2.SUMMARY_ENV_VAR=void 0;var os_1=require("os"),fs_1=require("fs"),{access,appendFile,writeFile}=fs_1.promises;exports2.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";exports2.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Summary=class{constructor(){this._buffer=""}filePath(){return __awaiter(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let pathFromEnv=process.env[exports2.SUMMARY_ENV_VAR];if(!pathFromEnv)throw new Error(`Unable to find environment variable for $${exports2.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield access(pathFromEnv,fs_1.constants.R_OK|fs_1.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`)}return this._filePath=pathFromEnv,this._filePath})}wrap(tag,content,attrs={}){let htmlAttrs=Object.entries(attrs).map(([key,value])=>` ${key}="${value}"`).join("");return content?`<${tag}${htmlAttrs}>${content}</${tag}>`:`<${tag}${htmlAttrs}>`}write(options){return __awaiter(this,void 0,void 0,function*(){let overwrite=!!options?.overwrite,filePath=yield this.filePath();return yield(overwrite?writeFile:appendFile)(filePath,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return __awaiter(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(text,addEOL=!1){return this._buffer+=text,addEOL?this.addEOL():this}addEOL(){return this.addRaw(os_1.EOL)}addCodeBlock(code,lang){let attrs=Object.assign({},lang&&{lang}),element=this.wrap("pre",this.wrap("code",code),attrs);return this.addRaw(element).addEOL()}addList(items,ordered=!1){let tag=ordered?"ol":"ul",listItems=items.map(item=>this.wrap("li",item)).join(""),element=this.wrap(tag,listItems);return this.addRaw(element).addEOL()}addTable(rows){let tableBody=rows.map(row=>{let cells=row.map(cell=>{if(typeof cell=="string")return this.wrap("td",cell);let{header,data,colspan,rowspan}=cell,tag=header?"th":"td",attrs=Object.assign(Object.assign({},colspan&&{colspan}),rowspan&&{rowspan});return this.wrap(tag,data,attrs)}).join("");return this.wrap("tr",cells)}).join(""),element=this.wrap("table",tableBody);return this.addRaw(element).addEOL()}addDetails(label,content){let element=this.wrap("details",this.wrap("summary",label)+content);return this.addRaw(element).addEOL()}addImage(src,alt,options){l
`);return{name,version}});exports2.platform=os_1.default.platform();exports2.arch=os_1.default.arch();exports2.isWindows=exports2.platform==="win32";exports2.isMacOS=exports2.platform==="darwin";exports2.isLinux=exports2.platform==="linux";function getDetails(){return __awaiter(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield exports2.isWindows?getWindowsInfo():exports2.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:exports2.platform,arch:exports2.arch,isWindows:exports2.isWindows,isMacOS:exports2.isMacOS,isLinux:exports2.isLinux})})}exports2.getDetails=getDetails}});var require_core=__commonJS({"node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/core.js"(exports2){"use strict";var __createBinding=exports2&&exports2.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=exports2&&exports2.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=exports2&&exports2.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__awaiter=exports2&&exports2.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports2,"__esModule",{value:!0});exports2.platform=exports2.toPlatformPath=exports2.toWin32Path=exports2.toPosixPath=exports2.markdownSummary=exports2.summary=exports2.getIDToken=exports2.getState=exports2.saveState=exports2.group=exports2.endGroup=exports2.startGroup=exports2.info=exports2.notice=exports2.warning=exports2.error=exports2.debug=exports2.isDebug=exports2.setFailed=exports2.setCommandEcho=exports2.setOutput=exports2.getBooleanInput=exports2.getMultilineInput=exports2.getInput=exports2.addPath=exports2.setSecret=exports2.exportVariable=exports2.ExitCode=void 0;var command_1=require_command(),file_command_1=require_file_command(),utils_1=require_utils(),os=__importStar(require("os")),path=__importStar(require("path")),oidc_utils_1=require_oidc_utils(),ExitCode;(function(ExitCode2){ExitCode2[ExitCode2.Success=0]="Success",ExitCode2[ExitCode2.Failure=1]="Failure"})(ExitCode||(exports2.ExitCode=ExitCode={}));function exportVariable(name,val){let convertedVal=(0,utils_1.toCommandValue)(val);if(process.env[name]=convertedVal,process.env.GITHUB_ENV||"")return(0,file_command_1.issueFileCommand)("ENV",(0,file_command_1.prepareKeyValueMessage)(name,val));(0,command_1.issueCommand)("set-env",{name},convertedVal)}exports2.exportVariable=exportVariable;function setSecret(secret){(0,command_1.issueCommand)("add-mask",{},secret)}exports2.setSecret=setSecret;function addPath(inputPath){process.env.GITHUB_PATH||""?(0,file_command_1.issueFileCommand)("PATH",inputPath):(0,command_1.issueCommand)("add-path",{},inputPath),process.env.PATH=`${inputPath}${path.delimiter}${process.env.PATH}`}exports2.addPath=addPath;function getInput3(name,options){let val=process.env[`INPUT_${name.replace(/ /g,"_").toUpperCase()}`]||"";if(options&&options.required&&!val)throw new Error(`Input required and not supplied: ${name}`);return options&&options.trimWhitespace===!1?val:val.trim()}exports2.getInput=getInput3;function getMultilineInput(name,options){let inpu
`).filter(x=>x!=="");return options&&options.trimWhitespace===!1?inputs:inputs.map(input=>input.trim())}exports2.getMultilineInput=getMultilineInput;function getBooleanInput(name,options){let trueValue=["true","True","TRUE"],falseValue=["false","False","FALSE"],val=getInput3(name,options);if(trueValue.includes(val))return!0;if(falseValue.includes(val))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}exports2.getBooleanInput=getBooleanInput;function setOutput(name,value){if(process.env.GITHUB_OUTPUT||"")return(0,file_command_1.issueFileCommand)("OUTPUT",(0,file_command_1.prepareKeyValueMessage)(name,value));process.stdout.write(os.EOL),(0,command_1.issueCommand)("set-output",{name},(0,utils_1.toCommandValue)(value))}exports2.setOutput=setOutput;function setCommandEcho(enabled){(0,command_1.issue)("echo",enabled?"on":"off")}exports2.setCommandEcho=setCommandEcho;function setFailed3(message){process.exitCode=ExitCode.Failure,error(message)}exports2.setFailed=setFailed3;function isDebug(){return process.env.RUNNER_DEBUG==="1"}exports2.isDebug=isDebug;function debug(message){(0,command_1.issueCommand)("debug",{},message)}exports2.debug=debug;function error(message,properties={}){(0,command_1.issueCommand)("error",(0,utils_1.toCommandProperties)(properties),message instanceof Error?message.toString():message)}exports2.error=error;function warning2(message,properties={}){(0,command_1.issueCommand)("warning",(0,utils_1.toCommandProperties)(properties),message instanceof Error?message.toString():message)}exports2.warning=warning2;function notice(message,properties={}){(0,command_1.issueCommand)("notice",(0,utils_1.toCommandProperties)(properties),message instanceof Error?message.toString():message)}exports2.notice=notice;function info5(message){process.stdout.write(message+os.EOL)}exports2.info=info5;function startGroup4(name){(0,command_1.issue)("group",name)}exports2.startGroup=startGroup4;function endGroup4(){(0,command_1.issue)("endgroup")}exports2.endGroup=endGroup4;function group(name,fn){return __awaiter(this,void 0,void 0,function*(){startGroup4(name);let result;try{result=yield fn()}finally{endGroup4()}return result})}exports2.group=group;function saveState2(name,value){if(process.env.GITHUB_STATE||"")return(0,file_command_1.issueFileCommand)("STATE",(0,file_command_1.prepareKeyValueMessage)(name,value));(0,command_1.issueCommand)("save-state",{name},(0,utils_1.toCommandValue)(value))}exports2.saveState=saveState2;function getState2(name){return process.env[`STATE_${name}`]||""}exports2.getState=getState2;function getIDToken(aud){return __awaiter(this,void 0,void 0,function*(){return yield oidc_utils_1.OidcClient.getIDToken(aud)})}exports2.getIDToken=getIDToken;var summary_1=require_summary();Object.defineProperty(exports2,"summary",{enumerable:!0,get:function(){return summary_1.summary}});var summary_2=require_summary();Object.defineProperty(exports2,"markdownSummary",{enumerable:!0,get:function(){return summary_2.markdownSummary}});var path_utils_1=require_path_utils();Object.defineProperty(exports2,"toPosixPath",{enumerable:!0,get:function(){return path_utils_1.toPosixPath}});Object.defineProperty(exports2,"toWin32Path",{enumerable:!0,get:function(){return path_utils_1.toWin32Path}});Object.defineProperty(exports2,"toPlatformPath",{enumerable:!0,get:function(){return path_utils_1.toPlatformPath}});exports2.platform=__importStar(require_platform())}});var core=__toESM(require_core()),import_exec=__toESM(require_exec()),import_io=__toESM(require_io()),install=async()=>{core.startGroup("Install attic"),core.info("Installing attic");try{await(0,import_exec.exec)("nix",["profile","install","github:NixOS/nixpkgs/nixpkgs-unstable#attic-client"])}catch(e){core.setFailed(`Action failed with error: ${e}`)}core.endGroup()},isInstalled=async()=>(await(0,import_io.findInPath)("attic")).length>0;var core2=__toESM(require_core()),import_exec3=__toESM(require_exec());var import_exec2=__toESM(require_exec()),import_promises=require("node:fs/promises"),saveStorePaths=async()=>{await(0,import_exec2.exec)("sh",["-c","nix path-info --all --json > /tmp/store-paths"])},getStorePaths=async()=>{let rawStorePaths=JSON.parse(await(0,import_promises.readFile)("/tmp/store-paths","utf8"));return Array.isArray(rawStorePaths)?rawStorePaths.map(path=>path.path):Object.keys(rawStorePaths)};var configure=async()=>{core2.startGroup("Configure attic");try{let endpoint=core
`))})}}catch(e){core3.warning(`Action encountered error: ${e}`),core3.info("Not considering errors during push a failure.")}core3.endGroup()};var import_core=__toESM(require_core()),isPost=!!(0,import_core.getState)("isPost"),main=async()=>{await isInstalled()?(0,import_core.info)("Skipping attic installation because it is already installed"):await install(),await configure()};isPost?push():((0,import_core.saveState)("isPost",!0),main());
/*! Bundled license information:
undici/lib/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
*/