16 lines
1.4 MiB
JavaScript
Raw Permalink Normal View History

2026-03-03 10:09:38 +00:00
import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={3311:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,r,n,s,o,i){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.response=s;this.status=o;this.trailers=i}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:r,trailers:n}}))}}t.ClientStreamingCall=ClientStreamingCall},9499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var r;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(r=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=r.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==r.PENDING)throw new Error(`cannot resolve ${r[this.state].toLowerCase()}`);this._resolve(e);this._state=r.RESOLVED}reject(e){if(this.state!==r.PENDING)throw new Error(`cannot reject ${r[this.state].toLowerCase()}`);this._reject(e);this._state=r.REJECTED}resolvePending(e){if(this._state===r.PENDING)this.resolve(e)}rejectPending(e){if(this._state===r.PENDING)this.reject(e)}}t.Deferred=Deferred},800:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,r,n,s,o,i){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.responses=s;this.status=o;this.trailers=i}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:r}}))}}t.DuplexStreamingCall=DuplexStreamingCall},6762:(e,t,r)=>{var n;n={value:true};var s=r(2554);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return s.ServiceType}});var o=r(3402);n={enumerable:true,get:function(){return o.readMethodOptions}};n={enumerable:true,get:function(){return o.readMethodOption}};n={enumerable:true,get:function(){return o.readServiceOption}};var i=r(422);n={enumerable:true,get:function(){return i.RpcError}};var a=r(3474);n={enumerable:true,get:function(){return a.mergeRpcOptions}};var c=r(6407);n={enumerable:true,get:function(){return c.RpcOutputStreamController}};var l=r(5435);n={enumerable:true,get:function(){return l.TestTransport}};var A=r(9499);n={enumerable:true,get:function(){return A.Deferred}};n={enumerable:true,get:function(){return A.DeferredState}};var u=r(800);n={enumerable:true,get:function(){return u.DuplexStreamingCall}};var d=r(3311);n={enumerable:true,get:function(){return d.ClientStreamingCall}};var p=r(2715);n={enumerable:true,get:function(){return p.ServerStreamingCall}}
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
2026-03-03 10:09:38 +00:00
*/const s=r(9896);const o=r(857);const i=r(6928);const a=r(6982);const c={fs:s.constants,os:o.constants};const l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",A=/XXXXXX/,u=3,d=(c.O_CREAT||c.fs.O_CREAT)|(c.O_EXCL||c.fs.O_EXCL)|(c.O_RDWR||c.fs.O_RDWR),p=o.platform()==="win32",m=c.EBADF||c.os.errno.EBADF,g=c.ENOENT||c.os.errno.ENOENT,h=448,f=384,E="exit",y=[],C=s.rmdirSync.bind(s);let I=false;function rimraf(e,t){return s.rm(e,{recursive:true},t)}function FN_RIMRAF_SYNC(e){return s.rmSync(e,{recursive:true})}function tmpName(e,t){const r=_parseArguments(e,t),n=r[0],o=r[1];_assertAndSanitizeOptions(n,(function(e,t){if(e)return o(e);let r=t.tries;(function _getUniqueName(){try{const e=_generateTmpName(t);s.stat(e,(function(t){if(!t){if(r-- >0)return _getUniqueName();return o(new Error("Could not get a unique tmp filename, max tries reached "+e))}o(null,e)}))}catch(e){o(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),r=t[0];const n=_assertAndSanitizeOptionsSync(r);let o=n.tries;do{const e=_generateTmpName(n);try{s.statSync(e)}catch(t){return e}}while(o-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){const r=_parseArguments(e,t),n=r[0],o=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return o(e);s.open(t,d,n.mode||f,(function _fileCreated(e,r){if(e)return o(e);if(n.discardDescriptor){return s.close(r,(function _discardCallback(e){return o(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,n,false))}))}else{const e=n.discardDescriptor||n.detachDescriptor;o(null,t,r,_prepareTmpFileRemoveCallback(t,e?-1:r,n,false))}}))}))}function fileSync(e){const t=_parseArguments(e),r=t[0];const n=r.discardDescriptor||r.detachDescriptor;const o=tmpNameSync(r);let i=s.openSync(o,d,r.mode||f);if(r.discardDescriptor){s.closeSync(i);i=undefined}return{name:o,fd:i,removeCallback:_prepareTmpFileRemoveCallback(o,n?-1:i,r,true)}}function dir(e,t){const r=_parseArguments(e,t),n=r[0],o=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return o(e);s.mkdir(t,n.mode||h,(function _dirCreated(e){if(e)return o(e);o(null,t,_prepareTmpDirRemoveCallback(t,n,false))}))}))}function dirSync(e){const t=_parseArguments(e),r=t[0];const n=tmpNameSync(r);s.mkdirSync(n,r.mode||h);return{name:n,removeCallback:_prepareTmpDirRemoveCallback(n,r,true)}}function _removeFileAsync(e,t){const _handler=function(e){if(e&&!_isENOENT(e)){return t(e)}t()};if(0<=e[0])s.close(e[0],(function(){s.unlink(e[1],_handler)}));else s.unlink(e[1],_handler)}function _removeFileSync(e){let t=null;try{if(0<=e[0])s.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{s.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throw t}}function _prepareTmpFileRemoveCallback(e,t,r,n){const s=_prepareRemoveCallback(_removeFileSync,[t,e],n);const o=_prepareRemoveCallback(_removeFileAsync,[t,e],n,s);if(!r.keep)y.unshift(s);return n?s:o}function _prepareTmpDirRemoveCallback(e,t,r){const n=t.unsafeCleanup?rimraf:s.rmdir.bind(s);const o=t.unsafeCleanup?FN_RIMRAF_SYNC:C;const i=_prepareRemoveCallback(o,e,r);const a=_prepareRemoveCallback(n,e,r,i);if(!t.keep)y.unshift(i);return r?i:a}function _prepareRemoveCallback(e,t,r,n){let s=false;return function _cleanupCallback(o){if(!s){const i=n||_cleanupCallback;const a=y.indexOf(i);if(a>=0)y.splice(a,1);s=true;if(r||e===C||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,o||function(){})}}}}function _garbageCollector(){if(!I)return;while(y.length){try{y[0]()}catch(e){}}}function _randomChars(e){let t=[],r=null;try{r=a.randomBytes(e)}catch(t){r=a.pseudoRandomBytes(e)}for(let n=0;n<e;n++){t.push(l[r[n]%l.length])}return t.join("")}function _isUndefined(e){return typeof e==="undefined"}function _parseArguments(e,t){if(typeof e==="function"){return[{},e]}if(_isUndefined(e)){return[{},t]}const r={};for(const t of Object.getOwnPropertyNames(e)){r[t]=e[t]}return[r,t]}function _resolvePath(e,t,r){const n=i.isAbsolute(e)?e:i.join(t,e);s.stat(n,(function(e){if(e){s.realpath(i.dirname(n),(function(e,t){if(e)return r(e);r(null,i.join(t,i.basename(n)))}))}else{s.real
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const n=[];const s=new Uint8Array([13,10]);A=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=b.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);A+=e.byteLength}else{const e=b.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){A+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=b.encode(`--${t}--\r\n`);n.push(i);A+=i.byteLength;if(o){A=null}l=e;c=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};u=`multipart/form-data; boundary=${t}`}else if(o(e)){l=e;A=e.size;if(e.type){u=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(n.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}r=e instanceof ReadableStream?e:s(e)}if(typeof l==="string"||n.isBuffer(l)){A=Buffer.byteLength(l)}if(c!=null){let t;r=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!f(r)){const t=new Uint8Array(n);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const d={stream:r,source:l,length:A};return[d,u]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){h(!n.isDisturbed(e),"The body has already been consumed.");h(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[r,n]=t.stream.tee();t.stream=r;return{stream:n,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=C(t)}return new g([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,u,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const r=I(e,t);if(r==="failure"){throw new TypeError("Failed to parse body as FormData.")}const n=new d;n[p]=r;return n}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const r=new d;for(const[e,n]of t){r.append(e,n)}return r}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,r){m.brandCheck(e,r);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[p]);const n=c();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[p].body==null){successSteps(Buffer.allocUnsafe(0));return n.promise}await l(e[p].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){const t=e[p].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(u(e))}function bodyMimeType(e){const t=e[p].headersList;const r=A(t);if(r==="failure"){return null}return r}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:w,hasFinalizationRegistry:Q,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const r=new Set(t);const n=[101,204,205,304];const s=[301,302,303,307,308];const o=new Set(s);const i=["1","7","9","11","13","15","17","19","
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */a[i-4]=r[0];a[i-3]=r[1];a[i-2]=r[2];a[i-1]=r[3];a[1]=o;if(o===126){a.writeUInt16BE(s,2)}else if(o===127){a[2]=a[3]=0;a.writeUIntBE(s,4,6)}a[1]|=128;for(let e=0;e<s;++e){a[i+e]=t[e]^r[e&3]}return a}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(e,t,r)=>{const{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:s}=r(8522);const{isValidClientWindowBits:o}=r(8625);const i=Buffer.from([0,0,255,255]);const a=Symbol("kBuffer");const c=Symbol("kLength");class PerMessageDeflate{#$;#p={};constructor(e){this.#p.serverNoContextTakeover=e.has("server_no_context_takeover");this.#p.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(!this.#$){let e=s;if(this.#p.serverMaxWindowBits){if(!o(this.#p.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#p.serverMaxWindowBits)}this.#$=n({windowBits:e});this.#$[a]=[];this.#$[c]=0;this.#$.on("data",(e=>{this.#$[a].push(e);this.#$[c]+=e.length}));this.#$.on("error",(e=>{this.#$=null;r(e)}))}this.#$.write(e);if(t){this.#$.write(i)}this.#$.flush((()=>{const e=Buffer.concat(this.#$[a],this.#$[c]);this.#$[a].length=0;this.#$[c]=0;r(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,r)=>{const{Writable:n}=r(7075);const s=r(4589);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c,sentCloseFrameState:l}=r(736);const{kReadyState:A,kSentClose:u,kResponse:d,kReceivedClose:p}=r(1216);const{channels:m}=r(2414);const{isValidStatusCode:g,isValidOpcode:h,failWebsocketConnection:f,websocketMessageReceived:E,utf8Decode:y,isControlFrame:C,isTextBinaryFrame:I,isContinuationFrame:B}=r(8625);const{WebsocketFrameSend:b}=r(3264);const{closeWebSocketConnection:Q}=r(6897);const{PerMessageDeflate:w}=r(9469);class ByteParser extends n{#K=[];#X=0;#Z=false;#C=o.INFO;#ee={};#te=[];#re;constructor(e,t){super();this.ws=e;this.#re=t==null?new Map:t;if(this.#re.has("permessage-deflate")){this.#re.set("permessage-deflate",new w(t))}}_write(e,t,r){this.#K.push(e);this.#X+=e.length;this.#Z=true;this.run(r)}run(e){while(this.#Z){if(this.#C===o.INFO){if(this.#X<2){return e()}const t=this.consume(2);const r=(t[0]&128)!==0;const n=t[0]&15;const s=(t[1]&128)===128;const a=!r&&n!==i.CONTINUATION;const c=t[1]&127;const l=t[0]&64;const A=t[0]&32;const u=t[0]&16;if(!h(n)){f(this.ws,"Invalid opcode received");return e()}if(s){f(this.ws,"Frame cannot be masked");return e()}if(l!==0&&!this.#re.has("permessage-deflate")){f(this.ws,"Expected RSV1 to be clear.");return}if(A!==0||u!==0){f(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!I(n)){f(this.ws,"Invalid frame type was fragmented.");return}if(I(n)&&this.#te.length>0){f(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&a){f(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&C(n)){f(this.ws,"Control frame either too large or fragmented");return}if(B(n)&&this.#te.length===0&&!this.#ee.compressed){f(this.ws,"Unexpected continuation frame");return}if(c<=125){this.#ee.payloadLength=c;this.#C=o.READ_DATA}else if(c===126){this.#C=o.PAYLOADLENGTH_16}else if(c===127){this.#C=o.PAYLOADLENGTH_64}if(I(n)){this.#ee.binaryType=n;this.#ee.compressed=l!==0}this.#ee.opcode=n;this.#ee.masked=s;this.#ee.fin=r;this.#ee.fragmented=a}else if(this.#C===o.PAYLOADLENGTH_16){if(this.#X<2){return e()}const t=this.consume(2);this.#ee.payloadLength=t.readUInt16BE(0);this.#C=o.READ_DATA}else if(this.#C===o.PAYLOADLENGTH_64){if(this.#X<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){f(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#ee.payloadLength=(r<<8)+n;this.#C=o.READ_DATA}else if(this.#C===o.READ_DATA){if(this.#X<this.#ee.payloadLength){return e()}const t=this.consume(this.#ee.payloadLength);if(C(this.#ee.opcode)){this.#Z=this.parseControlFrame(t);this.#C=o.INFO}else{if(!this.#ee.compressed){this.#te.push(t);if(!this.#ee.fragmented&&this.#ee.fin){const e=Buffer.concat(this.#te);E(this.ws,this.#ee.binaryType,e);this.#te.length=0}this.#C=o.INFO}else{this
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var Zp="10.0.8";var em={headers:{"user-agent":`octokit-request.js/${Zp} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var noop=()=>"";async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSONStringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const l={};for(const[e,t]of i.headers){l[e]=t}const A={url:c,status:a,headers:l,data:""};if("deprecation"in l){const t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(!t){return e.text().catch(noop)}const r=(0,Hp.xL)(t);if(isJSONResponse(r)){let t="";try{t=await e.text();return JSONParse(t)}catch(e){return t}}else if(r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"){return e.text().catch(noop)}else{return e.arrayBuffer().catch((
/* v8 ignore next -- @preserve */
()=>new ArrayBuffer(0)))}}function isJSONResponse(e){return e.type==="application/json"||e.type==="application/scim+json"}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var tm=dist_bundle_withDefaults(Op,em);
/* v8 ignore next -- @preserve */
2026-03-05 06:18:42 +00:00
/* v8 ignore else -- @preserve */var rm="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var nm=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var sm=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var om=["query","method","url"];var im=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!om.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(sm.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(im.test(o)){s.url=o.replace(im,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new nm(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var am=graphql_dist_bundle_withDefaults(tm,{headers:{"user-agent":`octokit-graphql.js/${rm} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var cm="(?:[a-zA-Z0-9_-]+)";var lm="\\.";var Am=new RegExp(`^${cm}${lm}${cm}${lm}${cm}$`);var um=Am.test.bind(Am);async function auth(e){const t=um(e);const r=e.startsWith("v1.")||e.startsWith("ghs_");const n=e.startsWith("ghu_");const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var dm=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const gm="7.0.6";const dist_src_noop=()=>{};const hm=console.warn.bind(console);const fm=console.error.bind(console);function createLogger(e={}){if(typeof e.debug!=="function"){e.debug=dist_src_noop}if(typeof e.info!=="function"){e.info=dist_src_noop}if(typeof e.warn!=="function"){e.warn=hm}if(typeof e.error!=="function"){e.error=fm}return e}const Em=`octokit-core.js/${gm} ${getUserAgent()}`;class Octokit{static VERSION=gm;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new _p.Collection;const r={baseUrl:tm.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Em}`:Em;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=tm.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=createLogger(e.log);this.hook=t;if(!e.a
//# sourceMappingURL=index.js.map