diff --git a/index.js b/index.js index 20dd3b5..48e454b 100644 --- a/index.js +++ b/index.js @@ -12,4 +12,4 @@ function O(e){return 1==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t)) * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -var t}function j(e){var t,r;return!1!==O(e)&&"function"==typeof(t=e.constructor)&&!1!==O(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")}var P={__proto__:null,getUserAgent:function(){return"{}".userAgent}},C=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r,n=(r=j)&&"object"==typeof r&&"default"in r?r.default:r;function i(e,t,r){if("string"==typeof t){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else r=Object.assign({},t);var i;r.headers=(i=r.headers)?Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}):{};const o=function e(t,r){const i=Object.assign({},t);return Object.keys(r).forEach(o=>{n(r[o])&&o in t?i[o]=e(t[o],r[o]):Object.assign(i,{[o]:r[o]})}),i}(e||{},r);return e&&e.mediaType.previews.length&&(o.mediaType.previews=e.mediaType.previews.filter(e=>!o.mediaType.previews.includes(e)).concat(o.mediaType.previews)),o.mediaType.previews=o.mediaType.previews.map(e=>e.replace(/-preview/,"")),o}const o=/\{[^}]+\}/g;function s(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function a(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function p(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function u(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function c(e,t,r){return t="+"===e||"#"===e?p(t):u(t),r?u(r)+"="+t:t}function d(e){return null!=e}function l(e){return";"===e||"&"===e||"?"===e}function m(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,n,i){if(n){let e="";const i=[];if(-1!==r.indexOf(n.charAt(0))&&(e=n.charAt(0),n=n.substr(1)),n.split(/,/g).forEach(function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);i.push(function(e,t,r,n){var i=e[r],o=[];if(d(i)&&""!==i)if("string"==typeof i||"number"==typeof i||"boolean"==typeof i)i=i.toString(),n&&"*"!==n&&(i=i.substring(0,parseInt(n,10))),o.push(c(t,i,l(t)?r:""));else if("*"===n)Array.isArray(i)?i.filter(d).forEach(function(e){o.push(c(t,e,l(t)?r:""))}):Object.keys(i).forEach(function(e){d(i[e])&&o.push(c(t,i[e],e))});else{const e=[];Array.isArray(i)?i.filter(d).forEach(function(r){e.push(c(t,r))}):Object.keys(i).forEach(function(r){d(i[r])&&(e.push(u(r)),e.push(c(t,i[r].toString())))}),l(t)?o.push(u(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?d(i)&&o.push(u(r)):""!==i||"&"!==t&&"?"!==t?""===i&&o.push(""):o.push(u(r)+"=");return o}(t,e,n[1],n[2]||n[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==i.length?e:"")+i.join(o)}return i.join(",")}return p(i)})}function g(e){let t,r=e.method.toUpperCase(),n=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}"),i=Object.assign({},e.headers),p=a(e,["method","baseUrl","url","headers","request","mediaType"]);const u=function(e){const t=e.match(o);return t?t.map(s).reduce((e,t)=>e.concat(t),[]):[]}(n);var c;n=(c=n,{expand:m.bind(null,c)}).expand(p),/^http/.test(n)||(n=e.baseUrl+n);const d=a(p,Object.keys(e).filter(e=>u.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(i.accept)&&(e.mediaType.format&&(i.accept=i.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),e.mediaType.previews.length)){const t=i.accept.match(/[\w-]+(?=-preview)/g)||[];i.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?n=function(e,t){const r=/\?/.test(e)?"&":"?",n=Object.keys(t);return 0===n.length?e:e+r+n.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(n,d):"data"in d?t=d.data:Object.keys(d).length?t=d:i["content-length"]=0,i["content-type"]||void 0===t||(i["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:n,headers:i},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function h(e,t,r){return g(i(e,t,r))}const y=function e(t,r){const n=i(t,r),o=h.bind(null,n);return Object.assign(o,{DEFAULTS:n,defaults:e.bind(null,n),merge:i.bind(null,n),parse:g})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/5.5.1 ${P.getUserAgent()}`},mediaType:{format:"",previews:[]}});t.endpoint=y});f(C);const A=n.Readable,R=Symbol("buffer"),x=Symbol("type");class G{constructor(){this[x]="";const e=arguments[0],t=arguments[1],r=[];if(e){const t=e,n=Number(t.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},i=r.size;let o=void 0===i?0:i;var s=r.timeout;let a=void 0===s?0:s;null==e?e=null:N(e)?e=Buffer.from(e.toString()):$(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[L]={body:e,disturbed:!1,error:null},this.size=o,this.timeout=a,e instanceof n&&e.on("error",function(e){const r="AbortError"===e.name?e:new F(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[L].error=r})}function M(){var e=this;if(this[L].disturbed)return U.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[L].disturbed=!0,this[L].error)return U.Promise.reject(this[L].error);let t=this.body;if(null===t)return U.Promise.resolve(Buffer.alloc(0));if($(t)&&(t=t.stream()),Buffer.isBuffer(t))return U.Promise.resolve(t);if(!(t instanceof n))return U.Promise.resolve(Buffer.alloc(0));let r=[],i=0,o=!1;return new U.Promise(function(n,s){let a;e.timeout&&(a=setTimeout(function(){o=!0,s(new F(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(o=!0,s(t)):s(new F(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!o&&null!==t){if(e.size&&i+t.length>e.size)return o=!0,void s(new F(`content size at ${e.url} over limit: ${e.size}`,"max-size"));i+=t.length,r.push(t)}}),t.on("end",function(){if(!o){clearTimeout(a);try{n(Buffer.concat(r,i))}catch(t){s(new F(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function N(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function $(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function B(e){let t,r,i=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof n&&"function"!=typeof i.getBoundary&&(t=new D,r=new D,i.pipe(t),i.pipe(r),e[L].body=t,i=r),i}function z(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":N(e)?"application/x-www-form-urlencoded;charset=UTF-8":$(e)?e.type||null:Buffer.isBuffer(e)?null:"[object ArrayBuffer]"===Object.prototype.toString.call(e)?null:ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof n?null:"text/plain;charset=UTF-8"}function H(e){const t=e.body;return null===t?0:$(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}U.prototype={get body(){return this[L].body},get bodyUsed(){return this[L].disturbed},arrayBuffer(){return M.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return M.call(this).then(function(t){return Object.assign(new G([],{type:e.toLowerCase()}),{[R]:t})})},json(){var e=this;return M.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return U.Promise.reject(new F(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return M.call(this).then(function(e){return e.toString()})},buffer(){return M.call(this)},textConverted(){var e=this;return M.call(this).then(function(t){return function(e,t){if("function"!=typeof I)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let n,i,o="utf-8";return r&&(n=/charset=([^;]*)/i.exec(r)),i=e.slice(0,1024).toString(),!n&&i&&(n=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[Q]=Object.create(null),e instanceof Z){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e))this.append(t,e[t])}}}get(e){J(e=`${e}`);const t=K(this[Q],e);return void 0===t?null:this[Q][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=X(this),n=0;for(;n1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[Q]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[Q][t].join(", ")}:function(t){return[t.toLowerCase(),e[Q][t].join(", ")]})}Z.prototype.entries=Z.prototype[Symbol.iterator],Object.defineProperty(Z.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Z.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const ee=Symbol("internal");function te(e,t){const r=Object.create(re);return r[ee]={target:e,kind:t,index:0},r}const re=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==re)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[ee];const t=e.index,r=X(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[ee].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function ne(e){const t=Object.assign({__proto__:null},e[Q]),r=K(e[Q],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(re,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const ie=Symbol("Response internals"),oe=i.STATUS_CODES;class se{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};U.call(this,e,t);const r=t.status||200,n=new Z(t.headers);if(null!=e&&!n.has("Content-Type")){const t=z(e);t&&n.append("Content-Type",t)}this[ie]={url:t.url,status:r,statusText:t.statusText||oe[r],headers:n,counter:t.counter}}get url(){return this[ie].url||""}get status(){return this[ie].status}get ok(){return this[ie].status>=200&&this[ie].status<300}get redirected(){return this[ie].counter>0}get statusText(){return this[ie].statusText}get headers(){return this[ie].headers}clone(){return new se(B(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}U.mixIn(se.prototype),Object.defineProperties(se.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(se.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const ae=Symbol("Request internals"),pe=o.parse,ue=o.format,ce="destroy"in n.Readable.prototype;function de(e){return"object"==typeof e&&"object"==typeof e[ae]}class le{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};de(e)?t=pe(e.url):(t=pe(e&&e.href?e.href:`${e}`),e={});let n=r.method||e.method||"GET";if(n=n.toUpperCase(),(null!=r.body||de(e)&&null!==e.body)&&("GET"===n||"HEAD"===n))throw new TypeError("Request with GET/HEAD method cannot have body");let i=null!=r.body?r.body:de(e)&&null!==e.body?B(e):null;U.call(this,i,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const o=new Z(r.headers||e.headers||{});if(null!=i&&!o.has("Content-Type")){const e=z(i);e&&o.append("Content-Type",e)}let s=de(e)?e.signal:null;if("signal"in r&&(s=r.signal),null!=s&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(s))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[ae]={method:n,redirect:r.redirect||e.redirect||"follow",headers:o,parsedURL:t,signal:s},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[ae].method}get url(){return ue(this[ae].parsedURL)}get headers(){return this[ae].headers}get redirect(){return this[ae].redirect}get signal(){return this[ae].signal}clone(){return new le(this)}}function me(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}U.mixIn(le.prototype),Object.defineProperty(le.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(le.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(me.prototype=Object.create(Error.prototype)).constructor=me,me.prototype.name="AbortError";const ge=n.PassThrough,he=o.resolve;function ye(e,t){if(!ye.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return U.Promise=ye.Promise,new ye.Promise(function(r,o){const p=new le(e,t),u=function(e){const t=e[ae].parsedURL,r=new Z(e[ae].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!ce)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let i=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(i="0"),null!=e.body){const t=H(e);"number"==typeof t&&(i=String(t))}i&&r.set("Content-Length",i),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let o=e.agent;return"function"==typeof o&&(o=o(t)),r.has("Connection")||o||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:ne(r),agent:o})}(p),c=("https:"===u.protocol?s:i).request,d=p.signal;let l=null;const m=function(){let e=new me("The user aborted a request.");o(e),p.body&&p.body instanceof n.Readable&&p.body.destroy(e),l&&l.body&&l.body.emit("error",e)};if(d&&d.aborted)return void m();const g=function(){m(),f()},h=c(u);let y;function f(){h.abort(),d&&d.removeEventListener("abort",g),clearTimeout(y)}d&&d.addEventListener("abort",g),p.timeout&&h.once("socket",function(e){y=setTimeout(function(){o(new F(`network timeout at: ${p.url}`,"request-timeout")),f()},p.timeout)}),h.on("error",function(e){o(new F(`request to ${p.url} failed, reason: ${e.message}`,"system",e)),f()}),h.on("response",function(e){clearTimeout(y);const t=function(e){const t=new Z;for(const r of Object.keys(e))if(!W.test(r))if(Array.isArray(e[r]))for(const n of e[r])V.test(n)||(void 0===t[Q][r]?t[Q][r]=[n]:t[Q][r].push(n));else V.test(e[r])||(t[Q][r]=[e[r]]);return t}(e.headers);if(ye.isRedirect(e.statusCode)){const n=t.get("Location"),i=null===n?null:he(p.url,n);switch(p.redirect){case"error":return o(new F(`redirect mode is set to error: ${p.url}`,"no-redirect")),void f();case"manual":if(null!==i)try{t.set("Location",i)}catch(e){o(e)}break;case"follow":if(null===i)break;if(p.counter>=p.follow)return o(new F(`maximum redirect reached at: ${p.url}`,"max-redirect")),void f();const n={headers:new Z(p.headers),follow:p.follow,counter:p.counter+1,agent:p.agent,compress:p.compress,method:p.method,body:p.body,signal:p.signal,timeout:p.timeout};return 303!==e.statusCode&&p.body&&null===H(p)?(o(new F("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==p.method)||(n.method="GET",n.body=void 0,n.headers.delete("content-length")),r(ye(new le(i,n))),void f())}}e.once("end",function(){d&&d.removeEventListener("abort",g)});let n=e.pipe(new ge);const i={url:p.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:p.size,timeout:p.timeout,counter:p.counter},s=t.get("Content-Encoding");if(!p.compress||"HEAD"===p.method||null===s||204===e.statusCode||304===e.statusCode)return l=new se(n,i),void r(l);if("gzip"==s||"x-gzip"==s)return n=n.pipe(a.createGunzip({flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH})),l=new se(n,i),void r(l);if("deflate"!=s&&"x-deflate"!=s){if("br"==s&&"function"==typeof a.createBrotliDecompress)return n=n.pipe(a.createBrotliDecompress()),l=new se(n,i),void r(l);l=new se(n,i),r(l)}else e.pipe(new ge).once("data",function(e){n=n.pipe(8==(15&e[0])?a.createInflate():a.createInflateRaw()),l=new se(n,i),r(l)})}),function(e,t){const r=t.body;null===r?e.end():$(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(h,p)})}ye.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},ye.Promise=global.Promise;var fe={__proto__:null,default:ye,Headers:Z,Request:le,Response:se,FetchError:F};class be extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var _e={__proto__:null,Deprecation:be},ve=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){for(var e=new Array(arguments.length),r=0;rconsole.warn(e));class i extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,Object.defineProperty(this,"code",{get:()=>(n(new _e.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),this.headers=r.headers||{};const i=Object.assign({},r.request);r.request.headers.authorization&&(i.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=i}}t.RequestError=i});f(ke);var Se=_(fe),Oe=b(function(e,t){function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var n=r(j),i=r(Se);function o(e){(n(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,o={};return(e.request&&e.request.fetch||i)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(n=>{r=n.url,t=n.status;for(const e of n.headers)o[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new ke.RequestError(n.statusText,t,{headers:o,request:e})}if(304===t)throw new ke.RequestError("Not modified",t,{headers:o,request:e});if(t>=400)return n.text().then(r=>{const n=new ke.RequestError(r,t,{headers:o,request:e});try{let e=JSON.parse(n.message);Object.assign(n,e),n.message=n.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw n});const i=n.headers.get("content-type");return/application\/json/.test(i)?n.json():!i||/^text\/|charset=utf-8$/.test(i)?n.text():function(e){return e.arrayBuffer()}(n)}).then(e=>({status:t,url:r,headers:o,data:e})).catch(t=>{if(t instanceof ke.RequestError)throw t;throw new ke.RequestError(t.message,500,{headers:o,request:e})})}const s=function e(t,r){const n=t.defaults(r);return Object.assign(function(t,r){const i=n.merge(t,r);if(!i.request||!i.request.hook)return o(n.parse(i));const s=(e,t)=>o(n.parse(n.merge(e,t)));return Object.assign(s,{endpoint:n,defaults:e.bind(null,n)}),i.request.hook(s,i)},{endpoint:n,defaults:e.bind(null,n)})}(C.endpoint,{headers:{"user-agent":`octokit-request.js/5.3.1 ${P.getUserAgent()}`}});t.request=s});f(Oe);var je=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e,t){super(t.data.errors[0].message),Object.assign(this,t.data),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const n=["method","baseUrl","url","headers","request","query"];function i(e,t){const o=e.defaults(t);return Object.assign((e,t)=>function(e,t,i){i=i="string"==typeof t?Object.assign({query:t},i):t;const o=Object.keys(i).reduce((e,t)=>n.includes(t)?(e[t]=i[t],e):(e.variables||(e.variables={}),e.variables[t]=i[t],e),{});return e(o).then(e=>{if(e.data.errors)throw new r(o,{data:e.data});return e.data.data})}(o,e,t),{defaults:i.bind(null,o),endpoint:Oe.request.endpoint})}const o=i(Oe.request,{headers:{"user-agent":`octokit-graphql.js/4.3.1 ${P.getUserAgent()}`},method:"POST",url:"/graphql"});t.graphql=o,t.withCustomRequest=function(e){return i(e,{method:"POST",url:"/graphql"})}});f(je);var Pe=function e(t,r,n,i){if("function"!=typeof n)throw new Error("method for before hook must be a function");return i||(i={}),Array.isArray(r)?r.reverse().reduce(function(r,n){return e.bind(null,t,n,r,i)},n)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,i)},n)():n(i)})},Ce=function(e,t,r,n){var i=n;e.registry[r]||(e.registry[r]=[]),"before"===t&&(n=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}),"after"===t&&(n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){return i(r=e,t)}).then(function(){return r})}),"error"===t&&(n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return i(e,t)})}),e.registry[r].push({hook:n,orig:i})},Ae=function(e,t,r){if(e.registry[t]){var n=e.registry[t].map(function(e){return e.orig}).indexOf(r);-1!==n&&e.registry[t].splice(n,1)}},Re=Function.bind,xe=Re.bind(Re);function Ge(e,t,r){var n=xe(Ae,null).apply(null,r?[t,r]:[t]);e.api={remove:n},e.remove=n,["before","error","after","wrap"].forEach(function(n){var i=r?[t,n,r]:[t,n];e[n]=e.api[n]=xe(Ce,null).apply(null,i)})}function Fe(){var e={registry:{}},t=Pe.bind(null,e);return Ge(t,e),t}var Ie=!1;function Le(){return Ie||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),Ie=!0),Fe()}Le.Singular=function(){var e={registry:{}},t=Pe.bind(null,e,"h");return Ge(t,e,"h"),t}.bind(),Le.Collection=Fe.bind();var De=Le,Ue=Le.Singular,Me=Le.Collection;De.Hook=Le,De.Singular=Ue,De.Collection=Me;var Ne=[["@octokit/rest@16.37.0","/home/vsonline/workspace/compressed-size-action"]],$e="@octokit/rest@16.37.0",Be="@octokit/rest@16.37.0",ze="sha512-qLPK9FOCK4iVpn6ghknNuv/gDDxXQG6+JBQvoCwWjQESyis9uemakjzN36nvvp8SCny7JuzHI2RV8ChbV5mYdQ==",He={},We={type:"version",registry:!0,raw:"@octokit/rest@16.37.0",name:"@octokit/rest",escapedName:"@octokit%2frest",scope:"@octokit",rawSpec:"16.37.0",saveSpec:null,fetchSpec:"16.37.0"},Ve=["/@actions/github"],Je="https://registry.npmjs.org/@octokit/rest/-/rest-16.37.0.tgz",Ye="/home/vsonline/workspace/compressed-size-action",Ke={name:"Gregor Martynus",url:"https://github.com/gr2m"},Qe={url:"https://github.com/octokit/rest.js/issues"},Ze=[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],Xe=[{name:"Mike de Boer",email:"info@mikedeboer.nl"},{name:"Fabian Jakobs",email:"fabian@c9.io"},{name:"Joe Gallo",email:"joe@brassafrax.com"},{name:"Gregor Martynus",url:"https://github.com/gr2m"}],et={"@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0",deprecation:"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0",once:"^1.4.0","universal-user-agent":"^4.0.0"},tt="GitHub REST API client for Node.js",rt={"@gimenete/type-writer":"^0.1.3","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0",bundlesize:"^0.18.0",chai:"^4.1.2","compression-webpack-plugin":"^3.0.0",cypress:"^3.0.0",glob:"^7.1.2","http-proxy-agent":"^3.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1",mkdirp:"^0.5.1",mocha:"^6.0.0",mustache:"^4.0.0",nock:"^11.3.3","npm-run-all":"^4.1.2",nyc:"^15.0.0",prettier:"^1.14.2",proxy:"^1.0.0","semantic-release":"^16.0.0",sinon:"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0",typescript:"^3.3.1",webpack:"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},nt=["index.js","index.d.ts","lib","plugins"],it="https://github.com/octokit/rest.js#readme",ot=["octokit","github","rest","api-client"],st="@octokit/rest",at={ignore:["test"]},pt={access:"public"},ut={publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},ct={type:"git",url:"git+https://github.com/octokit/rest.js.git"},dt={build:"npm-run-all build:*","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript",coverage:"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",lint:"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/",pretest:"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server",test:'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',"test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:code":"node scripts/update-endpoints/code","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},lt=_({__proto__:null,_args:Ne,_development:!0,_from:$e,_id:Be,_inBundle:!1,_integrity:ze,_location:"/@octokit/rest",_phantomChildren:He,_requested:We,_requiredBy:Ve,_resolved:Je,_spec:"16.37.0",_where:Ye,author:Ke,bugs:Qe,bundlesize:Ze,contributors:Xe,dependencies:et,description:tt,devDependencies:rt,files:nt,homepage:it,keywords:ot,license:"MIT",name:st,nyc:at,publishConfig:pt,release:ut,repository:ct,scripts:dt,types:"index.d.ts",version:"16.37.0",default:{_args:Ne,_development:!0,_from:$e,_id:Be,_inBundle:!1,_integrity:ze,_location:"/@octokit/rest",_phantomChildren:He,_requested:We,_requiredBy:Ve,_resolved:Je,_spec:"16.37.0",_where:Ye,author:Ke,bugs:Qe,bundlesize:Ze,contributors:Xe,dependencies:et,description:tt,devDependencies:rt,files:nt,homepage:it,keywords:ot,license:"MIT",name:st,nyc:at,publishConfig:pt,release:ut,repository:ct,scripts:dt,types:"index.d.ts",version:"16.37.0"}}),mt=function(e,t,r){e.headers&&(e.headers=Object.keys(e.headers).reduce((t,r)=>(t[r.toLowerCase()]=e.headers[r],t),{}));const n={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};e.baseUrl&&(n.baseUrl=e.baseUrl),e.userAgent&&(n.headers["user-agent"]=e.userAgent),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),e.timeout&&(yt(t,new gt("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request")),n.request.timeout=e.timeout),e.agent&&(ft(t,new gt("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request")),n.request.agent=e.agent),e.headers&&bt(t,new gt("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"));const i=n.headers["user-agent"],o=`octokit.js/${lt.version} ${ht()}`;return n.headers["user-agent"]=[i,o].filter(Boolean).join(" "),n.request.hook=r.bind(null,"request"),n};const{Deprecation:gt}=_e,{getUserAgent:ht}=P,yt=we((e,t)=>e.warn(t)),ft=we((e,t)=>e.warn(t)),bt=we((e,t)=>e.warn(t));var _t=function(e,t){t=t||{};const r=new De.Collection,n=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log),i={hook:r,log:n,request:vt.defaults(mt(t,n,r))};return e.forEach(e=>e(i,t)),i};const{request:vt}=Oe;var wt=function(e,t){return qt(e.includes(t)?e:e.concat(t))},qt=function(e){const t=_t.bind(null,e||[]);return t.plugin=wt.bind(null,e||[]),t},Et=qt(),Tt=function(e,t){if(St(e.octokit.log,new kt('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.')),t){switch(t.type){case"basic":if(!t.username||!t.password)throw new Error("Basic authentication requires both a username and password to be set");break;case"oauth":if(!(t.token||t.key&&t.secret))throw new Error("OAuth2 authentication requires a token or key & secret to be set");break;case"token":case"app":if(!t.token)throw new Error("Token authentication requires a token to be set");break;default:throw new Error("Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'")}e.auth=t}else e.auth=!1};const{Deprecation:kt}=_e,St=we((e,t)=>e.warn(t));var Ot=function(e){return new Buffer(e).toString("base64")},jt=/^\[object .+?Constructor\]$/,Pt="object"==typeof self&&self&&self.Object===Object&&self,Ct="object"==typeof y&&y&&y.Object===Object&&y||Pt||Function("return this")();function At(e,t){return!(!e||!e.length)&&function(e,t,r){if(t!=t)return function(e,t,r,n){for(var i=e.length,o=-1;++o-1}function Rt(e){return e!=e}function xt(e,t){return e.has(t)}function Gt(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var Ft,It=Array.prototype,Lt=Function.prototype,Dt=Object.prototype,Ut=Ct["__core-js_shared__"],Mt=(Ft=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||""))?"Symbol(src)_1."+Ft:"",Nt=Lt.toString,$t=Dt.hasOwnProperty,Bt=Dt.toString,zt=RegExp("^"+Nt.call($t).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=It.splice,Wt=rr(Ct,"Map"),Vt=rr(Ct,"Set"),Jt=rr(Object,"create");function Yt(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},Kt.prototype.set=function(e,t){var r=this.__data__,n=Xt(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Qt.prototype.clear=function(){this.__data__={hash:new Yt,map:new(Wt||Kt),string:new Yt}},Qt.prototype.delete=function(e){return tr(this,e).delete(e)},Qt.prototype.get=function(e){return tr(this,e).get(e)},Qt.prototype.has=function(e){return tr(this,e).has(e)},Qt.prototype.set=function(e,t){return tr(this,e).set(e,t),this},Zt.prototype.add=Zt.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Zt.prototype.has=function(e){return this.__data__.has(e)};var er=Vt&&1/Gt(new Vt([,-0]))[1]==1/0?function(e){return new Vt(e)}:function(){};function tr(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function rr(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!nr(e)||(t=e,Mt&&Mt in t))&&(function(e){var t=nr(e)?Bt.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?zt:jt).test(function(e){if(null!=e){try{return Nt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(r)?r:void 0}function nr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var ir=function(e,t){if(!e.auth.type)return;if("basic"===e.auth.type){const r=Ot(`${e.auth.username}:${e.auth.password}`);return void(t.headers.authorization=`Basic ${r}`)}if("token"===e.auth.type)return void(t.headers.authorization=`token ${e.auth.token}`);if("app"===e.auth.type){t.headers.authorization=`Bearer ${e.auth.token}`;const n=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");return void(t.headers.accept=(r=n,r&&r.length?function(e,t,r){var n=-1,i=At,o=e.length,s=!0,a=[],p=a;if(o>=200){var u=er(e);if(u)return Gt(u);s=!1,i=xt,p=new Zt}else p=a;e:for(;++ne.auth.on2fa()).then(t=>{const n=Object.assign(r,{headers:Object.assign({"x-github-otp":t},r.headers)});return e.octokit.request(n)})};const{RequestError:sr}=ke,{Deprecation:ar}=_e,pr=we((e,t)=>e.warn(t));var ur=function(e){if(/^(basic|bearer|token) /i.test(e))return e;try{if(cr.test(Buffer.from(e,"base64").toString("binary")))return`basic ${e}`}catch(e){}return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`};const cr=/^[\w-]+:/;var dr=function(e,t){if("string"!=typeof e.auth){if(e.auth.username){const r=Ot(`${e.auth.username}:${e.auth.password}`);return t.headers.authorization=`Basic ${r}`,void(e.otp&&(t.headers["x-github-otp"]=e.otp))}if(e.auth.clientId){if(/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(t.url)){const r=Ot(`${e.auth.clientId}:${e.auth.clientSecret}`);return void(t.headers.authorization=`Basic ${r}`)}return t.url+=-1===t.url.indexOf("?")?"?":"&",void(t.url+=`client_id=${e.auth.clientId}&client_secret=${e.auth.clientSecret}`)}return Promise.resolve().then(()=>e.auth()).then(e=>{t.headers.authorization=ur(e)})}if(t.headers.authorization=ur(e.auth),/^bearer /i.test(e.auth)&&!/machine-man/.test(t.headers.accept)){const e=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");t.headers.accept=e.filter(Boolean).join(",")}},lr=function(e,t,r){if(!t.headers)throw t;const n=/required/.test(t.headers["x-github-otp"]||"");if(401!==t.status||!n)throw t;if(401===t.status&&n&&t.request&&t.request.headers["x-github-otp"]){if(!e.otp)throw new mr("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r});delete e.otp}if("function"!=typeof e.auth.on2fa)throw new mr("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r});return Promise.resolve().then(()=>e.auth.on2fa()).then(t=>{const n=Object.assign(r,{headers:Object.assign(r.headers,{"x-github-otp":t})});return e.octokit.request(n).then(r=>(e.otp=t,r))})};const{RequestError:mr}=ke,{Deprecation:gr}=_e,hr=we((e,t)=>e.warn(t)),yr=we((e,t)=>e.warn(t)),fr=we((e,t)=>e.warn(t)),br=/^\/search\//,_r=/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)/,vr=/^\/installation\/repositories/,wr=/^\/user\/installations/,qr=/^\/orgs\/[^/]+\/installations/;var Er=function(e,t){const r=t.headers;let n=e.request.endpoint(t).url;return{[Symbol.asyncIterator]:()=>({next:()=>n?e.request({url:n,headers:r}).then(t=>(function(e,t,r){const n=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");if(!(br.test(n)||_r.test(n)||vr.test(n)||wr.test(n)||qr.test(n)))return;const i=r.data.incomplete_results,o=r.data.repository_selection,s=r.data.total_count;delete r.data.incomplete_results,delete r.data.repository_selection,delete r.data.total_count;const a=Object.keys(r.data)[0];r.data=r.data[a],Object.defineProperty(r.data,a,{get:()=>(fr(e.log,new gr(`[@octokit/rest] "result.data.${a}" is deprecated. Use "result.data" instead`)),r.data)}),void 0!==i&&Object.defineProperty(r.data,"incomplete_results",{get:()=>(hr(e.log,new gr('[@octokit/rest] "result.data.incomplete_results" is deprecated.')),i)}),void 0!==o&&Object.defineProperty(r.data,"repository_selection",{get:()=>(yr(e.log,new gr('[@octokit/rest] "result.data.repository_selection" is deprecated.')),o)}),Object.defineProperty(r.data,"total_count",{get:()=>(yr(e.log,new gr('[@octokit/rest] "result.data.total_count" is deprecated.')),s)})}(e,n,t),n=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:t})):Promise.resolve({done:!0})})}},Tr=function(e,t,r,n){return"function"==typeof r&&(n=r,r=void 0),r=e.request.endpoint.merge(t,r),function e(t,r,n,i){return n.next().then(o=>{if(o.done)return r;let s=!1;return r=r.concat(i?i(o.value,function(){s=!0}):o.value.data),s?r:e(t,r,n,i)})}(e,[],Er(e,r)[Symbol.asyncIterator](),n)},kr=function(e,t){Object.keys(t).forEach(r=>{e[r]||(e[r]={}),Object.keys(t[r]).forEach(n=>{const i=t[r][n],o=["method","url","headers"].reduce((e,t)=>(void 0!==i[t]&&(e[t]=i[t]),e),{});o.request={validate:i.params};let s=e.request.defaults(o);if(Object.keys(i.params||{}).find(e=>i.params[e].deprecated)){const t=Or.bind(null,e,i);s=t(e.request.defaults(o),`.${r}.${n}()`),s.endpoint=t(s.endpoint,`.${r}.${n}.endpoint()`),s.endpoint.merge=t(s.endpoint.merge,`.${r}.${n}.endpoint.merge()`)}e[r][n]=i.deprecated?function(){return e.log.warn(new Sr(`[@octokit/rest] ${i.deprecated}`)),e[r][n]=s,s.apply(null,arguments)}:s})})};const{Deprecation:Sr}=_e;function Or(e,t,r,n){const i=i=>(i=Object.assign({},i),Object.keys(i).forEach(r=>{if(t.params[r]&&t.params[r].deprecated){const o=t.params[r].alias;e.log.warn(new Sr(`[@octokit/rest] "${r}" parameter is deprecated for "${n}". Use "${o}" instead`)),o in i||(i[o]=i[r]),delete i[r]}}),r(i));return Object.keys(r).forEach(e=>{i[e]=r[e]}),i}var jr={checkStarringRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},deleteRepoSubscription:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},deleteThreadSubscription:{method:"DELETE",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},getRepoSubscription:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},getThread:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},getThreadSubscription:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},listEventsForOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/orgs/:org"},listEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events"},listFeeds:{method:"GET",params:{},url:"/feeds"},listNotifications:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},since:{type:"string"}},url:"/notifications"},listNotificationsForRepo:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/notifications"},listPublicEvents:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/events"},listPublicEventsForOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/events"},listPublicEventsForRepoNetwork:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/networks/:owner/:repo/events"},listPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/public"},listReceivedEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events"},listReceivedPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events/public"},listRepoEvents:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/events"},listReposStarredByAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/user/starred"},listReposStarredByUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/starred"},listReposWatchedByUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/subscriptions"},listStargazersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stargazers"},listWatchedReposForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/subscriptions"},listWatchersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscribers"},markAsRead:{method:"PUT",params:{last_read_at:{type:"string"}},url:"/notifications"},markNotificationsAsReadForRepo:{method:"PUT",params:{last_read_at:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/notifications"},markThreadAsRead:{method:"PATCH",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},setRepoSubscription:{method:"PUT",params:{ignored:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},subscribed:{type:"boolean"}},url:"/repos/:owner/:repo/subscription"},setThreadSubscription:{method:"PUT",params:{ignored:{type:"boolean"},thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},starRepo:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},unstarRepo:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"}},Pr={addRepoToInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"PUT",params:{installation_id:{required:!0,type:"integer"},repository_id:{required:!0,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},checkAccountIsAssociatedWithAny:{method:"GET",params:{account_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/accounts/:account_id"},checkAccountIsAssociatedWithAnyStubbed:{method:"GET",params:{account_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/stubbed/accounts/:account_id"},checkAuthorization:{deprecated:"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",method:"GET",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},checkToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"POST",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},createContentAttachment:{headers:{accept:"application/vnd.github.corsair-preview+json"},method:"POST",params:{body:{required:!0,type:"string"},content_reference_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/content_references/:content_reference_id/attachments"},createFromManifest:{headers:{accept:"application/vnd.github.fury-preview+json"},method:"POST",params:{code:{required:!0,type:"string"}},url:"/app-manifests/:code/conversions"},createInstallationToken:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"POST",params:{installation_id:{required:!0,type:"integer"},permissions:{type:"object"},repository_ids:{type:"integer[]"}},url:"/app/installations/:installation_id/access_tokens"},deleteAuthorization:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grant"},deleteInstallation:{headers:{accept:"application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:!0,type:"integer"}},url:"/app/installations/:installation_id"},deleteToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},findOrgInstallation:{deprecated:"octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/installation"},findRepoInstallation:{deprecated:"octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/installation"},findUserInstallation:{deprecated:"octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username/installation"},getAuthenticated:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{},url:"/app"},getBySlug:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{app_slug:{required:!0,type:"string"}},url:"/apps/:app_slug"},getInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:!0,type:"integer"}},url:"/app/installations/:installation_id"},getOrgInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/installation"},getRepoInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/installation"},getUserInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username/installation"},listAccountsUserOrOrgOnPlan:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/plans/:plan_id/accounts"},listAccountsUserOrOrgOnPlanStubbed:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/stubbed/plans/:plan_id/accounts"},listInstallationReposForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations/:installation_id/repositories"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/app/installations"},listInstallationsForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations"},listMarketplacePurchasesForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases"},listMarketplacePurchasesForAuthenticatedUserStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases/stubbed"},listPlans:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/plans"},listPlansStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/stubbed/plans"},listRepos:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/installation/repositories"},removeRepoFromInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:!0,type:"integer"},repository_id:{required:!0,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},resetAuthorization:{deprecated:"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",method:"POST",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},resetToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"PATCH",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},revokeAuthorizationForApplication:{deprecated:"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grants/:access_token"},revokeInstallationToken:{headers:{accept:"application/vnd.github.gambit-preview+json"},method:"DELETE",params:{},url:"/installation/token"}},Cr={create:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{actions:{type:"object[]"},"actions[].description":{required:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,type:"string"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},head_sha:{required:!0,type:"string"},name:{required:!0,type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs"},createSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{head_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites"},get:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"},getSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_suite_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id"},listAnnotations:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id/annotations"},listForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},filter:{enum:["latest","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-runs"},listForSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},check_suite_id:{required:!0,type:"integer"},filter:{enum:["latest","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"},listSuitesForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{app_id:{type:"integer"},check_name:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-suites"},rerequestSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{check_suite_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"},setSuitesPreferences:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{auto_trigger_checks:{type:"object[]"},"auto_trigger_checks[].app_id":{required:!0,type:"integer"},"auto_trigger_checks[].setting":{required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/preferences"},update:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{actions:{type:"object[]"},"actions[].description":{required:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,type:"string"},check_run_id:{required:!0,type:"integer"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},name:{type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"}},Ar={getConductCode:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{key:{required:!0,type:"string"}},url:"/codes_of_conduct/:key"},getForRepo:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/community/code_of_conduct"},listConductCodes:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{},url:"/codes_of_conduct"}},Rr={get:{method:"GET",params:{},url:"/emojis"}},xr={checkIsStarred:{method:"GET",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},create:{method:"POST",params:{description:{type:"string"},files:{required:!0,type:"object"},"files.content":{type:"string"},public:{type:"boolean"}},url:"/gists"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments"},delete:{method:"DELETE",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},fork:{method:"POST",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/forks"},get:{method:"GET",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},getRevision:{method:"GET",params:{gist_id:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/gists/:gist_id/:sha"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists"},listComments:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/comments"},listCommits:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/commits"},listForks:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/forks"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/public"},listPublicForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/gists"},listStarred:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/starred"},star:{method:"PUT",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},unstar:{method:"DELETE",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},update:{method:"PATCH",params:{description:{type:"string"},files:{type:"object"},"files.content":{type:"string"},"files.filename":{type:"string"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"}},Gr={createBlob:{method:"POST",params:{content:{required:!0,type:"string"},encoding:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/blobs"},createCommit:{method:"POST",params:{author:{type:"object"},"author.date":{type:"string"},"author.email":{type:"string"},"author.name":{type:"string"},committer:{type:"object"},"committer.date":{type:"string"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},parents:{required:!0,type:"string[]"},repo:{required:!0,type:"string"},signature:{type:"string"},tree:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits"},createRef:{method:"POST",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs"},createTag:{method:"POST",params:{message:{required:!0,type:"string"},object:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"},tagger:{type:"object"},"tagger.date":{type:"string"},"tagger.email":{type:"string"},"tagger.name":{type:"string"},type:{enum:["commit","tree","blob"],required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags"},createTree:{method:"POST",params:{base_tree:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tree:{required:!0,type:"object[]"},"tree[].content":{type:"string"},"tree[].mode":{enum:["100644","100755","040000","160000","120000"],type:"string"},"tree[].path":{type:"string"},"tree[].sha":{allowNull:!0,type:"string"},"tree[].type":{enum:["blob","tree","commit"],type:"string"}},url:"/repos/:owner/:repo/git/trees"},deleteRef:{method:"DELETE",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"},getBlob:{method:"GET",params:{file_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/blobs/:file_sha"},getCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits/:commit_sha"},getRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/ref/:ref"},getTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags/:tag_sha"},getTree:{method:"GET",params:{owner:{required:!0,type:"string"},recursive:{enum:["1"],type:"integer"},repo:{required:!0,type:"string"},tree_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/trees/:tree_sha"},listMatchingRefs:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/matching-refs/:ref"},listRefs:{method:"GET",params:{namespace:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:namespace"},updateRef:{method:"PATCH",params:{force:{type:"boolean"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"}},Fr={getTemplate:{method:"GET",params:{name:{required:!0,type:"string"}},url:"/gitignore/templates/:name"},listTemplates:{method:"GET",params:{},url:"/gitignore/templates"}},Ir={addOrUpdateRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},addOrUpdateRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},getRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},getRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},removeRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},removeRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"}},Lr={addAssignees:{method:"POST",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},addLabels:{method:"POST",params:{issue_number:{required:!0,type:"integer"},labels:{required:!0,type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},checkAssignee:{method:"GET",params:{assignee:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/assignees/:assignee"},create:{method:"POST",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},labels:{type:"string[]"},milestone:{type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},createLabel:{method:"POST",params:{color:{required:!0,type:"string"},description:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},createMilestone:{method:"POST",params:{description:{type:"string"},due_on:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},deleteLabel:{method:"DELETE",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},deleteMilestone:{method:"DELETE",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},get:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},getEvent:{method:"GET",params:{event_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events/:event_id"},getLabel:{method:"GET",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},getMilestone:{method:"GET",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},list:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/issues"},listAssignees:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/assignees"},listComments:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/issues/comments"},listEvents:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/events"},listEventsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events"},listEventsForTimeline:{headers:{accept:"application/vnd.github.mockingbird-preview+json"},method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/timeline"},listForAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/user/issues"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/issues"},listForRepo:{method:"GET",params:{assignee:{type:"string"},creator:{type:"string"},direction:{enum:["asc","desc"],type:"string"},labels:{type:"string"},mentioned:{type:"string"},milestone:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/issues"},listLabelsForMilestone:{method:"GET",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number/labels"},listLabelsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},listLabelsOnIssue:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},listMilestonesForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["due_on","completeness"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/milestones"},lock:{method:"PUT",params:{issue_number:{required:!0,type:"integer"},lock_reason:{enum:["off-topic","too heated","resolved","spam"],type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},removeAssignees:{method:"DELETE",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},removeLabel:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},name:{required:!0,type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels/:name"},removeLabels:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},replaceLabels:{method:"PUT",params:{issue_number:{required:!0,type:"integer"},labels:{type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},unlock:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},update:{method:"PATCH",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},issue_number:{required:!0,type:"integer"},labels:{type:"string[]"},milestone:{allowNull:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},updateLabel:{method:"PATCH",params:{color:{type:"string"},current_name:{required:!0,type:"string"},description:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:current_name"},updateMilestone:{method:"PATCH",params:{description:{type:"string"},due_on:{type:"string"},milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"}},Dr={get:{method:"GET",params:{license:{required:!0,type:"string"}},url:"/licenses/:license"},getForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/license"},list:{deprecated:"octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",method:"GET",params:{},url:"/licenses"},listCommonlyUsed:{method:"GET",params:{},url:"/licenses"}},Ur={render:{method:"POST",params:{context:{type:"string"},mode:{enum:["markdown","gfm"],type:"string"},text:{required:!0,type:"string"}},url:"/markdown"},renderRaw:{headers:{"content-type":"text/plain; charset=utf-8"},method:"POST",params:{data:{mapTo:"data",required:!0,type:"string"}},url:"/markdown/raw"}},Mr={get:{method:"GET",params:{},url:"/meta"}},Nr={cancelImport:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},deleteArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id/archive"},deleteArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id/archive"},getArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getCommitAuthors:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/import/authors"},getImportProgress:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},getLargeFiles:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/large_files"},getStatusForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id"},getStatusForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id"},listForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/migrations"},listForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations"},listReposForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations/:migration_id/repositories"},listReposForUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/:migration_id/repositories"},mapCommitAuthor:{method:"PATCH",params:{author_id:{required:!0,type:"integer"},email:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/authors/:author_id"},setLfsPreference:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},use_lfs:{enum:["opt_in","opt_out"],required:!0,type:"string"}},url:"/repos/:owner/:repo/import/lfs"},startForAuthenticatedUser:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},repositories:{required:!0,type:"string[]"}},url:"/user/migrations"},startForOrg:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},org:{required:!0,type:"string"},repositories:{required:!0,type:"string[]"}},url:"/orgs/:org/migrations"},startImport:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tfvc_project:{type:"string"},vcs:{enum:["subversion","git","mercurial","tfvc"],type:"string"},vcs_password:{type:"string"},vcs_url:{required:!0,type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"},unlockRepoForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},repo_name:{required:!0,type:"string"}},url:"/user/migrations/:migration_id/repos/:repo_name/lock"},unlockRepoForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},repo_name:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"},updateImport:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},vcs_password:{type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"}},$r={checkAuthorization:{deprecated:"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",method:"GET",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},createAuthorization:{deprecated:"octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",method:"POST",params:{client_id:{type:"string"},client_secret:{type:"string"},fingerprint:{type:"string"},note:{required:!0,type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations"},deleteAuthorization:{deprecated:"octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",method:"DELETE",params:{authorization_id:{required:!0,type:"integer"}},url:"/authorizations/:authorization_id"},deleteGrant:{deprecated:"octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",method:"DELETE",params:{grant_id:{required:!0,type:"integer"}},url:"/applications/grants/:grant_id"},getAuthorization:{deprecated:"octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",method:"GET",params:{authorization_id:{required:!0,type:"integer"}},url:"/authorizations/:authorization_id"},getGrant:{deprecated:"octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",method:"GET",params:{grant_id:{required:!0,type:"integer"}},url:"/applications/grants/:grant_id"},getOrCreateAuthorizationForApp:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id"},getOrCreateAuthorizationForAppAndFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},getOrCreateAuthorizationForAppFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},listAuthorizations:{deprecated:"octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/authorizations"},listGrants:{deprecated:"octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/applications/grants"},resetAuthorization:{deprecated:"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",method:"POST",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeAuthorizationForApplication:{deprecated:"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grants/:access_token"},updateAuthorization:{deprecated:"octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",method:"PATCH",params:{add_scopes:{type:"string[]"},authorization_id:{required:!0,type:"integer"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},remove_scopes:{type:"string[]"},scopes:{type:"string[]"}},url:"/authorizations/:authorization_id"}},Br={addOrUpdateMembership:{method:"PUT",params:{org:{required:!0,type:"string"},role:{enum:["admin","member"],type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},blockUser:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkBlockedUser:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},checkPublicMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},concealMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},convertMemberToOutsideCollaborator:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks"},createInvitation:{method:"POST",params:{email:{type:"string"},invitee_id:{type:"integer"},org:{required:!0,type:"string"},role:{enum:["admin","direct_member","billing_manager"],type:"string"},team_ids:{type:"integer[]"}},url:"/orgs/:org/invitations"},deleteHook:{method:"DELETE",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},get:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},getMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},getMembershipForAuthenticatedUser:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/user/memberships/orgs/:org"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/organizations"},listBlockedUsers:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/blocks"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/orgs"},listForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/orgs"},listHooks:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/hooks"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/installations"},listInvitationTeams:{method:"GET",params:{invitation_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations/:invitation_id/teams"},listMembers:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["all","admin","member"],type:"string"}},url:"/orgs/:org/members"},listMemberships:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["active","pending"],type:"string"}},url:"/user/memberships/orgs"},listOutsideCollaborators:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/outside_collaborators"},listPendingInvitations:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations"},listPublicMembers:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/public_members"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id/pings"},publicizeMembership:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},removeMember:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},removeMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},removeOutsideCollaborator:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},unblockUser:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},update:{method:"PATCH",params:{billing_email:{type:"string"},company:{type:"string"},default_repository_permission:{enum:["read","write","admin","none"],type:"string"},description:{type:"string"},email:{type:"string"},has_organization_projects:{type:"boolean"},has_repository_projects:{type:"boolean"},location:{type:"string"},members_allowed_repository_creation_type:{enum:["all","private","none"],type:"string"},members_can_create_internal_repositories:{type:"boolean"},members_can_create_private_repositories:{type:"boolean"},members_can_create_public_repositories:{type:"boolean"},members_can_create_repositories:{type:"boolean"},name:{type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},updateMembership:{method:"PATCH",params:{org:{required:!0,type:"string"},state:{enum:["active"],required:!0,type:"string"}},url:"/user/memberships/orgs/:org"}},zr={addCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},createCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:!0,type:"integer"},content_id:{type:"integer"},content_type:{type:"string"},note:{type:"string"}},url:"/projects/columns/:column_id/cards"},createColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{name:{required:!0,type:"string"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/columns"},createForAuthenticatedUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"}},url:"/user/projects"},createForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/projects"},createForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/projects"},delete:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},deleteCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},deleteColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{column_id:{required:!0,type:"integer"}},url:"/projects/columns/:column_id"},get:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},getCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},getColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{column_id:{required:!0,type:"integer"}},url:"/projects/columns/:column_id"},listCards:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{archived_state:{enum:["all","archived","not_archived"],type:"string"},column_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/projects/columns/:column_id/cards"},listCollaborators:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/collaborators"},listColumns:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/columns"},listForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/projects"},listForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/projects"},listForUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/projects"},moveCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{card_id:{required:!0,type:"integer"},column_id:{type:"integer"},position:{required:!0,type:"string",validation:"^(top|bottom|after:\\d+)$"}},url:"/projects/columns/cards/:card_id/moves"},moveColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:!0,type:"integer"},position:{required:!0,type:"string",validation:"^(first|last|after:\\d+)$"}},url:"/projects/columns/:column_id/moves"},removeCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},reviewUserPermissionLevel:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username/permission"},update:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{body:{type:"string"},name:{type:"string"},organization_permission:{type:"string"},private:{type:"boolean"},project_id:{required:!0,type:"integer"},state:{enum:["open","closed"],type:"string"}},url:"/projects/:project_id"},updateCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{archived:{type:"boolean"},card_id:{required:!0,type:"integer"},note:{type:"string"}},url:"/projects/columns/cards/:card_id"},updateColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{column_id:{required:!0,type:"integer"},name:{required:!0,type:"string"}},url:"/projects/columns/:column_id"}},Hr={checkIfMerged:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},create:{method:"POST",params:{base:{required:!0,type:"string"},body:{type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createCommentReply:{deprecated:"octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",method:"POST",params:{body:{required:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createFromIssue:{deprecated:"octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",method:"POST",params:{base:{required:!0,type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},issue:{required:!0,type:"integer"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createReview:{method:"POST",params:{body:{type:"string"},comments:{type:"object[]"},"comments[].body":{required:!0,type:"string"},"comments[].path":{required:!0,type:"string"},"comments[].position":{required:!0,type:"integer"},commit_id:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},createReviewCommentReply:{method:"POST",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"},createReviewRequest:{method:"POST",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},deletePendingReview:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},deleteReviewRequest:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},dismissReview:{method:"PUT",params:{message:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"},get:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},getCommentsForReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"},getReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},list:{method:"GET",params:{base:{type:"string"},direction:{enum:["asc","desc"],type:"string"},head:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["created","updated","popularity","long-running"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/pulls"},listComments:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/comments"},listCommits:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/commits"},listFiles:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/files"},listReviewRequests:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},listReviews:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},merge:{method:"PUT",params:{commit_message:{type:"string"},commit_title:{type:"string"},merge_method:{enum:["merge","squash","rebase"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},submitReview:{method:"POST",params:{body:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"},update:{method:"PATCH",params:{base:{type:"string"},body:{type:"string"},maintainer_can_modify:{type:"boolean"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},updateBranch:{headers:{accept:"application/vnd.github.lydian-preview+json"},method:"PUT",params:{expected_head_sha:{type:"string"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/update-branch"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},updateReview:{method:"PUT",params:{body:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"}},Wr={get:{method:"GET",params:{},url:"/rate_limit"}},Vr={createForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},createForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},createForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},createForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},createForTeamDiscussion:{deprecated:"octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},createForTeamDiscussionComment:{deprecated:"octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionCommentInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},createForTeamDiscussionLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},delete:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"DELETE",params:{reaction_id:{required:!0,type:"integer"}},url:"/reactions/:reaction_id"},listForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},listForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},listForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},listForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},listForTeamDiscussion:{deprecated:"octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},listForTeamDiscussionComment:{deprecated:"octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionCommentInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},listForTeamDiscussionLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"}},Jr={acceptInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},addCollaborator:{method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},addDeployKey:{method:"POST",params:{key:{required:!0,type:"string"},owner:{required:!0,type:"string"},read_only:{type:"boolean"},repo:{required:!0,type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/keys"},addProtectedBranchAdminEnforcement:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},addProtectedBranchAppRestrictions:{method:"POST",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},addProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},addProtectedBranchRequiredStatusChecksContexts:{method:"POST",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},addProtectedBranchTeamRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},addProtectedBranchUserRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},checkCollaborator:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},checkVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},compareCommits:{method:"GET",params:{base:{required:!0,type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/compare/:base...:head"},createCommitComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_sha:{required:!0,type:"string"},line:{type:"integer"},owner:{required:!0,type:"string"},path:{type:"string"},position:{type:"integer"},repo:{required:!0,type:"string"},sha:{alias:"commit_sha",deprecated:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},createDeployment:{method:"POST",params:{auto_merge:{type:"boolean"},description:{type:"string"},environment:{type:"string"},owner:{required:!0,type:"string"},payload:{type:"string"},production_environment:{type:"boolean"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},required_contexts:{type:"string[]"},task:{type:"string"},transient_environment:{type:"boolean"}},url:"/repos/:owner/:repo/deployments"},createDeploymentStatus:{method:"POST",params:{auto_inactive:{type:"boolean"},deployment_id:{required:!0,type:"integer"},description:{type:"string"},environment:{enum:["production","staging","qa"],type:"string"},environment_url:{type:"string"},log_url:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["error","failure","inactive","in_progress","queued","pending","success"],required:!0,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},createDispatchEvent:{headers:{accept:"application/vnd.github.everest-preview+json"},method:"POST",params:{client_payload:{type:"object"},event_type:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/dispatches"},createFile:{deprecated:"octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createForAuthenticatedUser:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:!0,type:"string"},private:{type:"boolean"},team_id:{type:"integer"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/user/repos"},createFork:{method:"POST",params:{organization:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/forks"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks"},createInOrg:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},private:{type:"boolean"},team_id:{type:"integer"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/orgs/:org/repos"},createOrUpdateFile:{method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createRelease:{method:"POST",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},prerelease:{type:"boolean"},repo:{required:!0,type:"string"},tag_name:{required:!0,type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases"},createStatus:{method:"POST",params:{context:{type:"string"},description:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"},state:{enum:["error","failure","pending","success"],required:!0,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/statuses/:sha"},createUsingTemplate:{headers:{accept:"application/vnd.github.baptiste-preview+json"},method:"POST",params:{description:{type:"string"},name:{required:!0,type:"string"},owner:{type:"string"},private:{type:"boolean"},template_owner:{required:!0,type:"string"},template_repo:{required:!0,type:"string"}},url:"/repos/:template_owner/:template_repo/generate"},declineInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},delete:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},deleteCommitComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},deleteDownload:{method:"DELETE",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},deleteFile:{method:"DELETE",params:{author:{type:"object"},"author.email":{type:"string"},"author.name":{type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},deleteHook:{method:"DELETE",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},deleteInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},deleteRelease:{method:"DELETE",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},deleteReleaseAsset:{method:"DELETE",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},disableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},disablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},disableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},enableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},enablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},source:{type:"object"},"source.branch":{enum:["master","gh-pages"],type:"string"},"source.path":{type:"string"}},url:"/repos/:owner/:repo/pages"},enableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},get:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},getAppsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},getArchiveLink:{method:"GET",params:{archive_format:{required:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/:archive_format/:ref"},getBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch"},getBranchProtection:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},getClones:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/clones"},getCodeFrequencyStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/code_frequency"},getCollaboratorPermissionLevel:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username/permission"},getCombinedStatusForRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/status"},getCommit:{method:"GET",params:{commit_sha:{alias:"ref",deprecated:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{alias:"ref",deprecated:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getCommitActivityStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/commit_activity"},getCommitComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},getCommitRefSha:{deprecated:"octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",headers:{accept:"application/vnd.github.v3.sha"},method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getContents:{method:"GET",params:{owner:{required:!0,type:"string"},path:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},getContributorsStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/contributors"},getDeployKey:{method:"GET",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},getDeployment:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id"},getDeploymentStatus:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},status_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"},getDownload:{method:"GET",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},getLatestPagesBuild:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/latest"},getLatestRelease:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/latest"},getPages:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},getPagesBuild:{method:"GET",params:{build_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/:build_id"},getParticipationStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/participation"},getProtectedBranchAdminEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},getProtectedBranchPullRequestReviewEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},getProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},getProtectedBranchRequiredStatusChecks:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},getProtectedBranchRestrictions:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},getPunchCardStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/punch_card"},getReadme:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/readme"},getRelease:{method:"GET",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},getReleaseAsset:{method:"GET",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},getReleaseByTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/tags/:tag"},getTeamsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},getTopPaths:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/paths"},getTopReferrers:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/referrers"},getUsersWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},getViews:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/views"},list:{method:"GET",params:{affiliation:{type:"string"},direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","public","private","member"],type:"string"},visibility:{enum:["all","public","private"],type:"string"}},url:"/user/repos"},listAppsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},listAssetsForRelease:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id/assets"},listBranches:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},protected:{type:"boolean"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches"},listBranchesForHeadCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/branches-where-head"},listCollaborators:{method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators"},listCommentsForCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{alias:"commit_sha",deprecated:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},listCommitComments:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments"},listCommits:{method:"GET",params:{author:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},path:{type:"string"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sha:{type:"string"},since:{type:"string"},until:{type:"string"}},url:"/repos/:owner/:repo/commits"},listContributors:{method:"GET",params:{anon:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contributors"},listDeployKeys:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys"},listDeploymentStatuses:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},listDeployments:{method:"GET",params:{environment:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"},task:{type:"string"}},url:"/repos/:owner/:repo/deployments"},listDownloads:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","public","private","forks","sources","member","internal"],type:"string"}},url:"/orgs/:org/repos"},listForUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","member"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/repos"},listForks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["newest","oldest","stargazers"],type:"string"}},url:"/repos/:owner/:repo/forks"},listHooks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks"},listInvitations:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations"},listInvitationsForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/repository_invitations"},listLanguages:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/languages"},listPagesBuilds:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},listProtectedBranchRequiredStatusChecksContexts:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},listProtectedBranchTeamRestrictions:{deprecated:"octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listProtectedBranchUserRestrictions:{deprecated:"octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/repositories"},listPullRequestsAssociatedWithCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/pulls"},listReleases:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases"},listStatusesForRef:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/statuses"},listTags:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/tags"},listTeams:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/teams"},listTeamsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/topics"},listUsersWithAccessToProtectedBranch:{deprecated:"octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},merge:{method:"POST",params:{base:{required:!0,type:"string"},commit_message:{type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/merges"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/pings"},removeBranchProtection:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},removeCollaborator:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},removeDeployKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},removeProtectedBranchAdminEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},removeProtectedBranchAppRestrictions:{method:"DELETE",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},removeProtectedBranchPullRequestReviewEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},removeProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},removeProtectedBranchRequiredStatusChecks:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},removeProtectedBranchRequiredStatusChecksContexts:{method:"DELETE",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},removeProtectedBranchRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},removeProtectedBranchTeamRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},removeProtectedBranchUserRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceProtectedBranchAppRestrictions:{method:"PUT",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},replaceProtectedBranchRequiredStatusChecksContexts:{method:"PUT",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},replaceProtectedBranchTeamRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},replaceProtectedBranchUserRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"PUT",params:{names:{required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/topics"},requestPageBuild:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},retrieveCommunityProfileMetrics:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/community/profile"},testPushHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/tests"},transfer:{method:"POST",params:{new_owner:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_ids:{type:"integer[]"}},url:"/repos/:owner/:repo/transfer"},update:{method:"PATCH",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},archived:{type:"boolean"},default_branch:{type:"string"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},private:{type:"boolean"},repo:{required:!0,type:"string"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/repos/:owner/:repo"},updateBranchProtection:{method:"PUT",params:{allow_deletions:{type:"boolean"},allow_force_pushes:{allowNull:!0,type:"boolean"},branch:{required:!0,type:"string"},enforce_admins:{allowNull:!0,required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},required_linear_history:{type:"boolean"},required_pull_request_reviews:{allowNull:!0,required:!0,type:"object"},"required_pull_request_reviews.dismiss_stale_reviews":{type:"boolean"},"required_pull_request_reviews.dismissal_restrictions":{type:"object"},"required_pull_request_reviews.dismissal_restrictions.teams":{type:"string[]"},"required_pull_request_reviews.dismissal_restrictions.users":{type:"string[]"},"required_pull_request_reviews.require_code_owner_reviews":{type:"boolean"},"required_pull_request_reviews.required_approving_review_count":{type:"integer"},required_status_checks:{allowNull:!0,required:!0,type:"object"},"required_status_checks.contexts":{required:!0,type:"string[]"},"required_status_checks.strict":{required:!0,type:"boolean"},restrictions:{allowNull:!0,required:!0,type:"object"},"restrictions.apps":{type:"string[]"},"restrictions.teams":{required:!0,type:"string[]"},"restrictions.users":{required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection"},updateCommitComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},updateFile:{deprecated:"octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},add_events:{type:"string[]"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},remove_events:{type:"string[]"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},updateInformationAboutPagesSite:{method:"PUT",params:{cname:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},source:{enum:['"gh-pages"','"master"','"master /docs"'],type:"string"}},url:"/repos/:owner/:repo/pages"},updateInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},permissions:{enum:["read","write","admin"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},updateProtectedBranchPullRequestReviewEnforcement:{method:"PATCH",params:{branch:{required:!0,type:"string"},dismiss_stale_reviews:{type:"boolean"},dismissal_restrictions:{type:"object"},"dismissal_restrictions.teams":{type:"string[]"},"dismissal_restrictions.users":{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},require_code_owner_reviews:{type:"boolean"},required_approving_review_count:{type:"integer"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},updateProtectedBranchRequiredStatusChecks:{method:"PATCH",params:{branch:{required:!0,type:"string"},contexts:{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},strict:{type:"boolean"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},updateRelease:{method:"PATCH",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},prerelease:{type:"boolean"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"},tag_name:{type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},updateReleaseAsset:{method:"PATCH",params:{asset_id:{required:!0,type:"integer"},label:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},uploadReleaseAsset:{method:"POST",params:{file:{mapTo:"data",required:!0,type:"string | object"},headers:{required:!0,type:"object"},"headers.content-length":{required:!0,type:"integer"},"headers.content-type":{required:!0,type:"string"},label:{type:"string"},name:{required:!0,type:"string"},url:{required:!0,type:"string"}},url:":url"}},Yr={code:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["indexed"],type:"string"}},url:"/search/code"},commits:{headers:{accept:"application/vnd.github.cloak-preview+json"},method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["author-date","committer-date"],type:"string"}},url:"/search/commits"},issues:{deprecated:"octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},issuesAndPullRequests:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},labels:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},q:{required:!0,type:"string"},repository_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/search/labels"},repos:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["stars","forks","help-wanted-issues","updated"],type:"string"}},url:"/search/repositories"},topics:{method:"GET",params:{q:{required:!0,type:"string"}},url:"/search/topics"},users:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["followers","repositories","joined"],type:"string"}},url:"/search/users"}},Kr={addMember:{deprecated:"octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",method:"PUT",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},addMemberLegacy:{deprecated:"octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",method:"PUT",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},addOrUpdateMembership:{deprecated:"octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",method:"PUT",params:{role:{enum:["member","maintainer"],type:"string"},team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateMembershipInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},role:{enum:["member","maintainer"],type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},addOrUpdateMembershipLegacy:{deprecated:"octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",method:"PUT",params:{role:{enum:["member","maintainer"],type:"string"},team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateProject:{deprecated:"octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{org:{required:!0,type:"string"},permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},addOrUpdateProjectLegacy:{deprecated:"octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateRepo:{deprecated:"octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},addOrUpdateRepoInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},addOrUpdateRepoLegacy:{deprecated:"octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepo:{deprecated:"octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepoInOrg:{method:"GET",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},checkManagesRepoLegacy:{deprecated:"octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},create:{method:"POST",params:{description:{type:"string"},maintainers:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},repo_names:{type:"string[]"}},url:"/orgs/:org/teams"},createDiscussion:{deprecated:"octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",method:"POST",params:{body:{required:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/teams/:team_id/discussions"},createDiscussionComment:{deprecated:"octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionCommentInOrg:{method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},createDiscussionCommentLegacy:{deprecated:"octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionInOrg:{method:"POST",params:{body:{required:!0,type:"string"},org:{required:!0,type:"string"},private:{type:"boolean"},team_slug:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},createDiscussionLegacy:{deprecated:"octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",method:"POST",params:{body:{required:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/teams/:team_id/discussions"},delete:{deprecated:"octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},deleteDiscussion:{deprecated:"octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteDiscussionComment:{deprecated:"octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentInOrg:{method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentLegacy:{deprecated:"octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionInOrg:{method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},deleteDiscussionLegacy:{deprecated:"octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},deleteLegacy:{deprecated:"octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},get:{deprecated:"octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},getByName:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},getDiscussion:{deprecated:"octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",method:"GET",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getDiscussionComment:{deprecated:"octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentInOrg:{method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentLegacy:{deprecated:"octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionInOrg:{method:"GET",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},getDiscussionLegacy:{deprecated:"octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",method:"GET",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getLegacy:{deprecated:"octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},getMember:{deprecated:"octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},getMemberLegacy:{deprecated:"octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},getMembership:{deprecated:"octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},getMembershipInOrg:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},getMembershipLegacy:{deprecated:"octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},list:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/teams"},listChild:{deprecated:"octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/teams"},listChildInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/teams"},listChildLegacy:{deprecated:"octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/teams"},listDiscussionComments:{deprecated:"octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussionCommentsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},listDiscussionCommentsLegacy:{deprecated:"octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussions:{deprecated:"octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions"},listDiscussionsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},listDiscussionsLegacy:{deprecated:"octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/teams"},listMembers:{deprecated:"octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/members"},listMembersInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/members"},listMembersLegacy:{deprecated:"octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/members"},listPendingInvitations:{deprecated:"octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/invitations"},listPendingInvitationsInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/invitations"},listPendingInvitationsLegacy:{deprecated:"octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/invitations"},listProjects:{deprecated:"octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects"},listProjectsInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects"},listProjectsLegacy:{deprecated:"octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects"},listRepos:{deprecated:"octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos"},listReposInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos"},listReposLegacy:{deprecated:"octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos"},removeMemberLegacy:{deprecated:"octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},removeMembershipInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},removeMembershipLegacy:{deprecated:"octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeProject:{deprecated:"octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",method:"DELETE",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeProjectInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},removeProjectLegacy:{deprecated:"octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",method:"DELETE",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeRepo:{deprecated:"octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},removeRepoInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},removeRepoLegacy:{deprecated:"octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},reviewProject:{deprecated:"octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},reviewProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},reviewProjectLegacy:{deprecated:"octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},update:{deprecated:"octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},updateDiscussion:{deprecated:"octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateDiscussionComment:{deprecated:"octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentInOrg:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentLegacy:{deprecated:"octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionInOrg:{method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},title:{type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},updateDiscussionLegacy:{deprecated:"octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateInOrg:{method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},updateLegacy:{deprecated:"octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"}},Qr={addEmails:{method:"POST",params:{emails:{required:!0,type:"string[]"}},url:"/user/emails"},block:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkBlocked:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkFollowing:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},checkFollowingForUser:{method:"GET",params:{target_user:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/following/:target_user"},createGpgKey:{method:"POST",params:{armored_public_key:{type:"string"}},url:"/user/gpg_keys"},createPublicKey:{method:"POST",params:{key:{type:"string"},title:{type:"string"}},url:"/user/keys"},deleteEmails:{method:"DELETE",params:{emails:{required:!0,type:"string[]"}},url:"/user/emails"},deleteGpgKey:{method:"DELETE",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},deletePublicKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"}},url:"/user/keys/:key_id"},follow:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},getAuthenticated:{method:"GET",params:{},url:"/user"},getByUsername:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username"},getContextForUser:{method:"GET",params:{subject_id:{type:"string"},subject_type:{enum:["organization","repository","issue","pull_request"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/hovercard"},getGpgKey:{method:"GET",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},getPublicKey:{method:"GET",params:{key_id:{required:!0,type:"integer"}},url:"/user/keys/:key_id"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/users"},listBlocked:{method:"GET",params:{},url:"/user/blocks"},listEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/emails"},listFollowersForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/followers"},listFollowersForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/followers"},listFollowingForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/following"},listFollowingForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/following"},listGpgKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/gpg_keys"},listGpgKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/gpg_keys"},listPublicEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/public_emails"},listPublicKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/keys"},listPublicKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/keys"},togglePrimaryEmailVisibility:{method:"PATCH",params:{email:{required:!0,type:"string"},visibility:{required:!0,type:"string"}},url:"/user/email/visibility"},unblock:{method:"DELETE",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},unfollow:{method:"DELETE",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},updateAuthenticated:{method:"PATCH",params:{bio:{type:"string"},blog:{type:"string"},company:{type:"string"},email:{type:"string"},hireable:{type:"boolean"},location:{type:"string"},name:{type:"string"}},url:"/user"}},Zr=_({__proto__:null,activity:jr,apps:Pr,checks:Cr,codesOfConduct:Ar,emojis:Rr,gists:xr,git:Gr,gitignore:Fr,interactions:Ir,issues:Lr,licenses:Dr,markdown:Ur,meta:Mr,migrations:Nr,oauthAuthorizations:$r,orgs:Br,projects:zr,pulls:Hr,rateLimit:Wr,reactions:Vr,repos:Jr,search:Yr,teams:Kr,users:Qr,default:{activity:jr,apps:Pr,checks:Cr,codesOfConduct:Ar,emojis:Rr,gists:xr,git:Gr,gitignore:Fr,interactions:Ir,issues:Lr,licenses:Dr,markdown:Ur,meta:Mr,migrations:Nr,oauthAuthorizations:$r,orgs:Br,projects:zr,pulls:Hr,rateLimit:Wr,reactions:Vr,repos:Jr,search:Yr,teams:Kr,users:Qr}}),Xr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,en=/^\w*$/,tn=/^\./,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nn=/\\(\\)?/g,on=/^\[object .+?Constructor\]$/,sn="object"==typeof self&&self&&self.Object===Object&&self,an="object"==typeof y&&y&&y.Object===Object&&y||sn||Function("return this")(),pn=Array.prototype,un=Function.prototype,cn=Object.prototype,dn=an["__core-js_shared__"],ln=function(){var e=/[^.]+$/.exec(dn&&dn.keys&&dn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mn=un.toString,gn=cn.hasOwnProperty,hn=cn.toString,yn=RegExp("^"+mn.call(gn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fn=an.Symbol,bn=pn.splice,_n=jn(an,"Map"),vn=jn(Object,"create"),wn=fn?fn.prototype:void 0,qn=wn?wn.toString:void 0;function En(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},Tn.prototype.set=function(e,t){var r=this.__data__,n=Sn(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},kn.prototype.clear=function(){this.__data__={hash:new En,map:new(_n||Tn),string:new En}},kn.prototype.delete=function(e){return On(this,e).delete(e)},kn.prototype.get=function(e){return On(this,e).get(e)},kn.prototype.has=function(e){return On(this,e).has(e)},kn.prototype.set=function(e,t){return On(this,e).set(e,t),this};var Pn=An(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Gn(e))return qn?qn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return tn.test(e)&&r.push(""),e.replace(rn,function(e,t,n,i){r.push(n?i.replace(nn,"$1"):t||e)}),r});function Cn(e){if("string"==typeof e||Gn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function An(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(An.Cache||kn),r}An.Cache=kn;var Rn=Array.isArray;function xn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Gn(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==hn.call(e)}var Fn=function(e,t,r){var n=null==e?void 0:function(e,t){for(var r,n=0,i=(t=function(e,t){if(Rn(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Gn(e))||en.test(e)||!Xr.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:Rn(r=t)?r:Pn(r)).length;null!=e&&n-1&&e%1==0&&e-1},ai.prototype.set=function(e,t){var r=this.__data__,n=ci(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},pi.prototype.clear=function(){this.__data__={hash:new si,map:new(ri||ai),string:new si}},pi.prototype.delete=function(e){return di(this,e).delete(e)},pi.prototype.get=function(e){return di(this,e).get(e)},pi.prototype.has=function(e){return di(this,e).has(e)},pi.prototype.set=function(e,t){return di(this,e).set(e,t),this};var gi=yi(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(vi(e))return oi?oi.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return Dn.test(e)&&r.push(""),e.replace(Un,function(e,t,n,i){r.push(n?i.replace(Mn,"$1"):t||e)}),r});function hi(e){if("string"==typeof e||vi(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function yi(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(yi.Cache||pi),r}function fi(e,t){return e===t||e!=e&&t!=t}yi.Cache=pi;var bi=Array.isArray;function _i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function vi(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Zn.call(e)}var wi=function(e,t){if(!t.request.validate)return;const{validate:r}=t.request;return Object.keys(r).forEach(e=>{const n=Fn(r,e),i=n.type;let o,s,a=!0,p=!1;/\./.test(e)&&(o=e.replace(/\.[^.]+$/,""),p="[]"===o.slice(-2),p&&(o=o.slice(0,-2)),s=Fn(t,o),a="headers"===o||"object"==typeof s&&null!==s),(p?(Fn(t,o)||[]).map(t=>t[e.split(/\./).pop()]):[Fn(t,e)]).forEach((r,o)=>{const s=void 0!==r,u=null===r,c=p?e.replace(/\[\]/,`[${o}]`):e;if((n.required||s)&&a&&(!n.allowNull||!u)){if(!n.allowNull&&u)throw new qi(`'${c}' cannot be null`,400,{request:t});if(n.required&&!s)throw new qi(`Empty value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if("integer"===i){const e=r;if(r=parseInt(r,10),isNaN(r))throw new qi(`Invalid value for parameter '${c}': ${JSON.stringify(e)} is NaN`,400,{request:t})}if(n.enum&&-1===n.enum.indexOf(String(r)))throw new qi(`Invalid value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if(n.validation&&!new RegExp(n.validation).test(r))throw new qi(`Invalid value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if("object"===i&&"string"==typeof r)try{r=JSON.parse(r)}catch(e){throw new qi(`JSON parse error of value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t})}!function(e,t,r){null==e||function(e,t,r,n){if(!_i(e))return e;for(var i=-1,o=(t=function(e,t){if(bi(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!vi(e))||Ln.test(e)||!In.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return bi(e)?e:gi(e)}(t)).length,s=o-1,a=e;null!=a&&++i]*)>;\s*rel="([\w]*)"/g,(e,r,n)=>{t[n]=r}),t},Si=class extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.code=t,this.headers=r}},Oi=function(e,t,r,n){Ei(`octokit.get${r.charAt(0).toUpperCase()+r.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);const i=ki(t)[r];if(!i){const e=new Si(`No ${r} page found`,404);return Promise.reject(e)}const o={url:i,headers:ji(t,n)};return e.request(o)};function ji(e,t){const r=e.headers&&e.headers["x-github-media-type"];return!r||t&&t.accept?t:((t=t||{}).accept="application/vnd."+r.replace("; param=",".").replace("; format=","+"),t)}var Pi=function(e,t,r){return Oi(e,t,"first",r)},Ci=function(e,t,r){return Oi(e,t,"last",r)},Ai=function(e,t,r){return Oi(e,t,"next",r)},Ri=function(e,t,r){return Oi(e,t,"prev",r)},xi=function(e){return Ei("octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),ki(e).first},Gi=function(e){return Ei("octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),ki(e).last},Fi=function(e){return Ei("octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),ki(e).next},Ii=function(e){return Ei("octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),ki(e).prev},Li=Et.plugin([function(e){e.hook.wrap("request",(t,r)=>{e.log.debug("request",r);const n=Date.now(),i=e.request.endpoint.parse(r),o=i.url.replace(r.baseUrl,"");return t(r).then(t=>(e.log.info(`${i.method} ${o} - ${t.status} in ${Date.now()-n}ms`),t)).catch(t=>{throw e.log.info(`${i.method} ${o} - ${t.status} in ${Date.now()-n}ms`),t})})},function(e,t){if(t.auth)return void(e.authenticate=()=>{pr(e.log,new ar('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))});const r={octokit:e,auth:!1};e.authenticate=Tt.bind(null,r),e.hook.before("request",ir.bind(null,r)),e.hook.error("request",or.bind(null,r))},function(e,t){if(!t.auth)return;!function(e){if("string"!=typeof e&&"function"!=typeof e&&!(e.username&&e.password||e.clientId&&e.clientSecret))throw new Error(`Invalid "auth" option: ${JSON.stringify(e)}`)}(t.auth);const r={octokit:e,auth:t.auth};e.hook.before("request",dr.bind(null,r)),e.hook.error("request",lr.bind(null,r))},function(e){e.paginate=Tr.bind(null,e),e.paginate.iterator=Er.bind(null,e)},function(e){e.registerEndpoints=kr.bind(null,e)},function(e){Zr.gitdata=Zr.git,Zr.authorization=Zr.oauthAuthorizations,Zr.pullRequests=Zr.pulls,e.registerEndpoints(Zr)},function(e){e.hook.before("request",wi.bind(null,e))},function(e){e.getFirstPage=Pi.bind(null,e),e.getLastPage=Ci.bind(null,e),e.getNextPage=Ai.bind(null,e),e.getPreviousPage=Ri.bind(null,e),e.hasFirstPage=xi,e.hasLastPage=Gi,e.hasNextPage=Fi,e.hasPreviousPage=Ii}]),Di=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Context=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(p.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(p.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${r.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pullRequest||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}});f(Di);var Ui=b(function(e,t){var r=y&&y.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=r(Li),o=n(Di);i.default.prototype=new i.default,t.context=new o.Context,t.GitHub=class extends i.default{constructor(e,t={}){super(Object.assign(Object.assign({},t),{auth:`token ${e}`})),this.graphql=je.graphql.defaults({headers:{authorization:`token ${e}`}})}}});f(Ui);var Mi=Ui.context,Ni=Ui.GitHub,$i=b(function(e,r){var n,i=y&&y.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{p(n.next(e))}catch(e){o(e)}}function a(e){try{p(n.throw(e))}catch(e){o(e)}}function p(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}p((n=n.apply(e,t||[])).next())})};function o(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(r,"__esModule",{value:!0}),r.chmod=(n=p.promises).chmod,r.copyFile=n.copyFile,r.lstat=n.lstat,r.mkdir=n.mkdir,r.readdir=n.readdir,r.readlink=n.readlink,r.rename=n.rename,r.rmdir=n.rmdir,r.stat=n.stat,r.symlink=n.symlink,r.unlink=n.unlink,r.IS_WINDOWS="win32"===process.platform,r.exists=function(e){return i(this,void 0,void 0,function*(){try{yield r.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},r.isDirectory=function(e,t=!1){return i(this,void 0,void 0,function*(){return(t?yield r.stat(e):yield r.lstat(e)).isDirectory()})},r.isRooted=function(e){if(!(e=function(e){return e=e||"",r.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return r.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},r.mkdirP=function e(n,o=1e3,s=1){return i(this,void 0,void 0,function*(){if(l.ok(n,"a path argument must be provided"),n=t.resolve(n),s>=o)return r.mkdir(n);try{return void(yield r.mkdir(n))}catch(i){switch(i.code){case"ENOENT":return yield e(t.dirname(n),o,s+1),void(yield r.mkdir(n));default:{let e;try{e=yield r.stat(n)}catch(e){throw i}if(!e.isDirectory())throw i}}}})},r.tryGetExecutablePath=function(e,n){return i(this,void 0,void 0,function*(){let i=void 0;try{i=yield r.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(i&&i.isFile())if(r.IS_WINDOWS){const r=t.extname(e).toUpperCase();if(n.some(e=>e.toUpperCase()===r))return e}else if(o(i))return e;const s=e;for(const a of n){e=s+a,i=void 0;try{i=yield r.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(i&&i.isFile()){if(r.IS_WINDOWS){try{const n=t.dirname(e),i=t.basename(e).toUpperCase();for(const o of yield r.readdir(n))if(i===o.toUpperCase()){e=t.join(n,o);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(o(i))return e}}return""})}});f($i);var Bi=b(function(e,r){var n=y&&y.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{p(n.next(e))}catch(e){o(e)}}function a(e){try{p(n.throw(e))}catch(e){o(e)}}function p(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}p((n=n.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0});const i=d.promisify(c.exec);function o(e){return n(this,void 0,void 0,function*(){if($i.IS_WINDOWS){try{(yield $i.isDirectory(e,!0))?yield i(`rd /s /q "${e}"`):yield i(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield $i.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield $i.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield i(`rm -rf "${e}"`):yield $i.unlink(e)}})}function s(e){return n(this,void 0,void 0,function*(){yield $i.mkdirP(e)})}function a(e,t,r){return n(this,void 0,void 0,function*(){if((yield $i.lstat(e)).isSymbolicLink()){try{yield $i.lstat(t),yield $i.unlink(t)}catch(e){"EPERM"===e.code&&(yield $i.chmod(t,"0666"),yield $i.unlink(t))}const r=yield $i.readlink(e);yield $i.symlink(r,t,$i.IS_WINDOWS?"junction":null)}else(yield $i.exists(t))&&!r||(yield $i.copyFile(e,t))})}r.cp=function(e,r,i={}){return n(this,void 0,void 0,function*(){const{force:o,recursive:p}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(i),u=(yield $i.exists(r))?yield $i.stat(r):null;if(u&&u.isFile()&&!o)return;const c=u&&u.isDirectory()?t.join(r,t.basename(e)):r;if(!(yield $i.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield $i.stat(e)).isDirectory()){if(!p)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,r,i,o){return n(this,void 0,void 0,function*(){if(i>=255)return;i++,yield s(r);const n=yield $i.readdir(t);for(const s of n){const n=`${t}/${s}`,p=`${r}/${s}`;(yield $i.lstat(n)).isDirectory()?yield e(n,p,i,o):yield a(n,p,o)}yield $i.chmod(r,(yield $i.stat(t)).mode)})}(e,c,0,o)}else{if(""===t.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield a(e,c,o)}})},r.mv=function(e,r,i={}){return n(this,void 0,void 0,function*(){if(yield $i.exists(r)){let n=!0;if((yield $i.isDirectory(r))&&(r=t.join(r,t.basename(e)),n=yield $i.exists(r)),n){if(null!=i.force&&!i.force)throw new Error("Destination already exists");yield o(r)}}yield s(t.dirname(r)),yield $i.rename(e,r)})},r.rmRF=o,r.mkdirP=s,r.which=function e(r,i){return n(this,void 0,void 0,function*(){if(!r)throw new Error("parameter 'tool' is required");if(i&&!(yield e(r,!1)))throw $i.IS_WINDOWS?new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);try{const e=[];if($i.IS_WINDOWS&&process.env.PATHEXT)for(const r of process.env.PATHEXT.split(t.delimiter))r&&e.push(r);if($i.isRooted(r))return(yield $i.tryGetExecutablePath(r,e))||"";if(r.includes("/")||$i.IS_WINDOWS&&r.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(t.delimiter))e&&n.push(e);for(const i of n){const n=yield $i.tryGetExecutablePath(i+t.sep+r,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}});f(Bi);var zi=b(function(e,n){var i=y&&y.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{p(n.next(e))}catch(e){o(e)}}function a(e){try{p(n.throw(e))}catch(e){o(e)}}function p(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}p((n=n.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0});const o="win32"===process.platform;n.ToolRunner=class extends u.EventEmitter{constructor(e,t,r){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),n=this._getSpawnArgs(e);let i=t?"":"[command]";if(o)if(this._isCmdFile()){i+=r;for(const e of n)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(r);for(const e of n)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=r;for(const e of n)i+=` ${e}`}return i}_processLineBuffer(e,t,n){try{let i=t+e.toString(),o=i.indexOf(r.EOL);for(;o>-1;)n(i.substring(0,o)),i=i.substring(o+r.EOL.length),o=i.indexOf(r.EOL);t=i}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){return o&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(o&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const n of e)if(t.some(e=>e===n)){r=!0;break}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return n+='"',n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return i(this,void 0,void 0,function*(){return!$i.isRooted(this.toolPath)&&(this.toolPath.includes("/")||o&&this.toolPath.includes("\\"))&&(this.toolPath=t.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Bi.which(this.toolPath,!0),new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(const e of this.args)this._debug(` ${e}`);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+r.EOL);const i=new s(n,this.toolPath);i.on("debug",e=>{this._debug(e)});const o=this._getSpawnFileName(),a=c.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));a.stdout&&a.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})}),a.stderr&&a.stderr.on("data",e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),a.on("error",e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),a.on("exit",e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()}),a.on("close",e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on("done",(r,n)=>{"".length>0&&this.emit("stdline",""),"".length>0&&this.emit("errline",""),a.removeAllListeners(),r?t(r):e(n)})})})}},n.argStringToArray=function(e){const t=[];let r=!1,n=!1,i="";function o(e){n&&'"'!==e&&(i+="\\"),i+=e,n=!1}for(let s=0;s0&&(t.push(i),i=""):n?o(a):r=!r}return i.length>0&&t.push(i.trim()),t};class s extends u.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(s.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}});f(zi);var Hi=b(function(e,t){var r=y&&y.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{p(n.next(e))}catch(e){o(e)}}function a(e){try{p(n.throw(e))}catch(e){o(e)}}function p(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}p((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.exec=function(e,t,n){return r(this,void 0,void 0,function*(){const r=zi.argStringToArray(e);if(0===r.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const i=r[0];return t=r.slice(1).concat(t||[]),new zi.ToolRunner(i,t,n).exec()})}});f(Hi);var Wi,Vi=Hi.exec,Ji=Object.prototype.toString,Yi=function(e){var t=Ji.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===Ji.call(e.callee)),r};if(!Object.keys){var Ki=Object.prototype.hasOwnProperty,Qi=Object.prototype.toString,Zi=Yi,Xi=Object.prototype.propertyIsEnumerable,eo=!Xi.call({toString:null},"toString"),to=Xi.call(function(){},"prototype"),ro=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],no=function(e){var t=e.constructor;return t&&t.prototype===e},io={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},oo=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!io["$"+e]&&Ki.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{no(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();Wi=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===Qi.call(e),n=Zi(e),i=t&&"[object String]"===Qi.call(e),o=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var s=to&&r;if(i&&e.length>0&&!Ki.call(e,0))for(var a=0;a0)for(var p=0;p2?arguments[2]:{},n=co(t);lo&&(n=go.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=Lo(e),n=Do("%"+(r.length>0?r[0]:"")+"%",t),i=1;i=r.length){var o=Oo(n,r[i]);if(!(t||r[i]in n))throw new So("base intrinsic for "+e+" exists, but the property is not available.");n=o?o.get||o.value:n[r[i]]}else n=n[r[i]];return n},Mo=Uo("%Function%"),No=Mo.apply,$o=Mo.call,Bo=function(){return ko.apply($o,arguments)};Bo.apply=function(){return ko.apply(No,arguments)};var zo=Bo(Uo("String.prototype.indexOf")),Ho=function(e,t){var r=Uo(e,!!t);return"function"==typeof r&&zo(e,".prototype.")?Bo(r):r},Wo=Uo("%Object.defineProperty%",!0);if(Wo)try{Wo({},"a",{value:1})}catch(e){Wo=null}var Vo=Ho("Object.prototype.propertyIsEnumerable"),Jo=ko.call(Function.call,Object.prototype.hasOwnProperty),Yo=Uo("%TypeError%"),Ko=Uo("%SyntaxError%"),Qo={"Property Descriptor":function(e,t){if("Object"!==e(t))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in t)if(Jo(t,n)&&!r[n])return!1;var i=Jo(t,"[[Value]]"),o=Jo(t,"[[Get]]")||Jo(t,"[[Set]]");if(i&&o)throw new Yo("Property Descriptors may not be both accessor and data descriptors");return!0}},Zo=function(e,t,r,n){var i=Qo[t];if("function"!=typeof i)throw new Ko("unknown record type: "+t);if(!i(e,n))throw new Yo(r+" must be a "+t)},Xo=function(e){return"symbol"==typeof e?"Symbol":function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}(e)},es=function(e){if(void 0===e)return e;Zo(Xo,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t},ts=Uo("%Object.getOwnPropertyDescriptor%");if(ts)try{ts([],"length")}catch(e){ts=null}var rs=ts,ns=Uo("%Array%"),is=!ns.isArray&&Ho("Object.prototype.toString"),os=ns.isArray||function(e){return"[object Array]"===is(e)},ss=function(e){return"string"==typeof e||"symbol"==typeof e},as=RegExp.prototype.exec,ps=Object.getOwnPropertyDescriptor,us=Object.prototype.toString,cs="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ds=function(e){return!!e},ls=Uo("%Symbol.match%",!0),ms=Function.prototype.toString,gs=/^\s*class\b/,hs=function(e){try{var t=ms.call(e);return gs.test(t)}catch(e){return!1}},ys=Object.prototype.toString,fs="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,bs=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(fs)return function(e){try{return!hs(e)&&(ms.call(e),!0)}catch(e){return!1}}(e);if(hs(e))return!1;var t=ys.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t},_s=Uo("%TypeError%"),vs=Uo("%TypeError%"),ws=Ho("Object.prototype.propertyIsEnumerable"),qs=function(e){return void 0!==e&&(Zo(Xo,"Property Descriptor","Desc",e),!(!Jo(e,"[[Value]]")&&!Jo(e,"[[Writable]]")))},Es=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},Ts=Uo("%Object%"),ks=Ts.isExtensible,Ss=Ts.preventExtensions?function(e){return!Es(e)&&ks(e)}:function(e){return!Es(e)},Os=Number.isNaN||function(e){return e!=e},js=function(e,t){return e===t?0!==e||1/e==1/t:Os(e)&&Os(t)},Ps=Uo("%TypeError%"),Cs=Uo("%TypeError%"),As=function(e,t){if(null==e)throw new Cs(t||"Cannot call method on "+e);return e},Rs=Uo("%Object%"),xs=Object.getOwnPropertyDescriptor,Gs=Object.getOwnPropertyNames,Fs=Object.getOwnPropertySymbols,Is=Ho("Array.prototype.concat"),Ls=Ho("Array.prototype.reduce"),Ds=Fs?function(e){return Is(Gs(e),Fs(e))}:Gs,Us=bs(xs)&&bs(Gs),Ms=function(e){if(As(e),!Us)throw new TypeError("getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor");var t=function(e){return As(e),Rs(e)}(e);return Ls(Ds(t),function(e,r){var n=xs(t,r);return void 0!==n&&function(e,t,r){if("Object"!==Xo(e))throw new Ps("Assertion failed: Type(O) is not Object");if(!ss(t))throw new Ps("Assertion failed: IsPropertyKey(P) is not true");var n=function(e,t){if("Object"!==Xo(e))throw new vs("Assertion failed: O must be an Object");if(!ss(t))throw new vs("Assertion failed: P must be a Property Key");if(Jo(e,t)){if(!rs){var r=os(e)&&"length"===t,n=function(e){if(!e||"object"!=typeof e)return!1;if(ls){var t=e[ls];if(void 0!==t)return ds(t)}return function(e){if(!e||"object"!=typeof e)return!1;if(!cs)return"[object RegExp]"===us.call(e);var t=ps(e,"lastIndex");return!(!t||!Jo(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,as.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}(e)}(e)&&"lastIndex"===t;return{"[[Configurable]]":!(r||n),"[[Enumerable]]":ws(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return function(e){if("Object"!==Xo(e))throw new _s("ToPropertyDescriptor requires an object");var t={};if(Jo(e,"enumerable")&&(t["[[Enumerable]]"]=ds(e.enumerable)),Jo(e,"configurable")&&(t["[[Configurable]]"]=ds(e.configurable)),Jo(e,"value")&&(t["[[Value]]"]=e.value),Jo(e,"writable")&&(t["[[Writable]]"]=ds(e.writable)),Jo(e,"get")){var r=e.get;if(void 0!==r&&!bs(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(Jo(e,"set")){var n=e.set;if(void 0!==n&&!bs(n))throw new _s("setter must be a function");t["[[Set]]"]=n}if((Jo(t,"[[Get]]")||Jo(t,"[[Set]]"))&&(Jo(t,"[[Value]]")||Jo(t,"[[Writable]]")))throw new _s("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}(rs(e,t))}}(e,t),i=n||Ss(e);(!n||n.writable&&n.configurable)&&i&&function(e,t,r,n,i,o){if(!Wo){if(!e(o))return!1;if(!o["[[Configurable]]"]||!o["[[Writable]]"])return!1;if(i in n&&Vo(n,i)!==!!o["[[Enumerable]]"])return!1;var s=o["[[Value]]"];return n[i]=s,t(n[i],s)}Wo(n,i,r(o))}(qs,js,es,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})}(e,r,n),e},{})},Ns=function(){return"function"==typeof Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors:Ms};_o(Ms,{getPolyfill:Ns,implementation:Ms,shim:function(){var e=Ns();return _o(Object,{getOwnPropertyDescriptors:e},{getOwnPropertyDescriptors:function(){return Object.getOwnPropertyDescriptors!==e}}),e}});var $s=Ms;if("function"!=typeof Object.defineProperty||"function"!=typeof Object.defineProperties||[].__proto__!==Array.prototype)throw new TypeError("util.promisify requires a true ES5 environment, that also supports `__proto__`");if("function"!=typeof Promise)throw new TypeError("`Promise` must be globally available for util.promisify to work.");var Bs=Ho("Array.prototype.slice"),zs=Ho("Array.prototype.concat"),Hs=Ho("Array.prototype.forEach"),Ws=wo(),Vs=Ws?Symbol("util.promisify.custom"):null,Js=Ws?Symbol("customPromisifyArgs"):null,Ys=function(e){if("function"!=typeof e){var t=new TypeError('The "original" argument must be of type function');throw t.name="TypeError [ERR_INVALID_ARG_TYPE]",t.code="ERR_INVALID_ARG_TYPE",t}if(Ws&&e[Vs]){var r=e[Vs];if("function"!=typeof r)throw new TypeError("The [util.promisify.custom] property must be a function");return Object.defineProperty(r,Vs,{configurable:!0,enumerable:!1,value:r,writable:!1}),r}var n=e[Js],i=function(){var t=Bs(arguments),r=this;return new Promise(function(i,o){e.apply(r,zs(t,function(e){var t=arguments.length>1?Bs(arguments,1):[];if(e)o(e);else if(void 0!==n&&t.length>1){var r={};Hs(n,function(e,n){r[e]=t[n]}),i(r)}else i(t[0])}))})};return i.__proto__=e.__proto__,Object.defineProperty(i,Vs,{configurable:!0,enumerable:!1,value:i,writable:!1}),Object.defineProperties(i,$s(e))},Ks=Js;Ys.custom=Vs,Ys.customPromisifyArgs=Ks;var Qs=function(){return"function"==typeof d.promisify?d.promisify:Ys},Zs=Qs(),Xs=function(e){return Zs.apply(d,arguments)};_o(Xs,{custom:Zs.custom,customPromisifyArgs:Zs.customPromisifyArgs,getPolyfill:Qs,implementation:Ys,shim:function(){var e=Qs();return e!==d.promisify&&Object.defineProperty(d,"promisify",{configurable:!0,enumerable:!0,value:e,writable:!0}),e}});var ea=Xs,ta="win32"===process.platform,ra=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(ta)var na=/(.*?)(?:[\/\\]+|$)/g;else na=/(.*?)(?:[\/]+|$)/g;if(ta)var ia=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else ia=/^[\/]*/;var oa=da;da.realpath=da,da.sync=la,da.realpathSync=la,da.monkeypatch=function(){p.realpath=da,p.realpathSync=la},da.unmonkeypatch=function(){p.realpath=sa,p.realpathSync=aa};var sa=p.realpath,aa=p.realpathSync,pa=process.version,ua=/^v[0-5]\./.test(pa);function ca(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function da(e,r,n){if(ua)return sa(e,r,n);"function"==typeof r&&(n=r,r=null),sa(e,r,function(i,o){ca(i)?function(e,r,n){if("function"!=typeof n&&(n=function(e){return"function"==typeof e?e:function(){var e;if(ra){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}(r),r=null),e=t.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return process.nextTick(n.bind(null,null,r[e]));var i,o,s,a,u=e,c={},d={};function l(){var t=ia.exec(e);i=t[0].length,o=t[0],s=t[0],a="",ta&&!d[s]?p.lstat(s,function(e){if(e)return n(e);d[s]=!0,m()}):process.nextTick(m)}function m(){if(i>=e.length)return r&&(r[u]=e),n(null,e);na.lastIndex=i;var t=na.exec(e);return a=o,o+=t[0],i=na.lastIndex,d[s=a+t[1]]||r&&r[s]===s?process.nextTick(m):r&&Object.prototype.hasOwnProperty.call(r,s)?y(r[s]):p.lstat(s,g)}function g(e,t){if(e)return n(e);if(!t.isSymbolicLink())return d[s]=!0,r&&(r[s]=s),process.nextTick(m);if(!ta){var i=t.dev.toString(32)+":"+t.ino.toString(32);if(c.hasOwnProperty(i))return h(null,c[i],s)}p.stat(s,function(e){if(e)return n(e);p.readlink(s,function(e,t){ta||(c[i]=t),h(e,t)})})}function h(e,i,o){if(e)return n(e);var s=t.resolve(a,i);r&&(r[o]=s),y(s)}function y(r){e=t.resolve(r,e.slice(i)),l()}l()}(e,r,n):n(i,o)})}function la(e,r){if(ua)return aa(e,r);try{return aa(e,r)}catch(n){if(ca(n))return function(e,r){if(e=t.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var n,i,o,s,a=e,u={},c={};function d(){var t=ia.exec(e);n=t[0].length,i=t[0],o=t[0],s="",ta&&!c[o]&&(p.lstatSync(o),c[o]=!0)}for(d();n=0&&u>0){for(n=[],o=r.length;c>=0&&!a;)c==p?(n.push(c),p=r.indexOf(e,c+1)):1==n.length?a=[n.pop(),u]:((i=n.pop())=0?p:u;n.length&&(a=[o,s])}return a}ha.range=fa;var ba="\0SLASH"+Math.random()+"\0",_a="\0OPEN"+Math.random()+"\0",va="\0CLOSE"+Math.random()+"\0",wa="\0COMMA"+Math.random()+"\0",qa="\0PERIOD"+Math.random()+"\0";function Ea(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Ta(e){return e.split(ba).join("\\").split(_a).join("{").split(va).join("}").split(wa).join(",").split(qa).join(".")}function ka(e){return"{"+e+"}"}function Sa(e){return/^-?0\d/.test(e)}function Oa(e,t){return e<=t}function ja(e,t){return e>=t}var Pa=Ia;Ia.Minimatch=La;var Ca={sep:"/"};try{Ca=t}catch(e){}var Aa=Ia.GLOBSTAR=La.GLOBSTAR={},Ra={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},xa="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{}),Ga=/\/+/;function Fa(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function Ia(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new La(t,r).match(e))}function La(e,t){if(!(this instanceof La))return new La(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==Ca.sep&&(e=e.split(Ca.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function Da(e,t){if(t||(t=this instanceof La?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),function e(t,r){var n=[],i=ga("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var o,s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),p=s||a,u=i.body.indexOf(",")>=0;if(!p&&!u)return i.post.match(/,.*\}/)?e(t=i.pre+"{"+i.body+va+i.post):[t];if(p)o=i.body.split(/\.\./);else if(1===(o=function e(t){if(!t)return[""];var r=[],n=ga("{","}",t);if(!n)return t.split(",");var i=n.body,o=n.post,s=n.pre.split(",");s[s.length-1]+="{"+i+"}";var a=e(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),r.push.apply(r,s),r}(i.body)).length&&1===(o=e(o[0],!1).map(ka)).length)return(l=i.post.length?e(i.post,!1):[""]).map(function(e){return i.pre+o[0]+e});var c,d=i.pre,l=i.post.length?e(i.post,!1):[""];if(p){var m=Ea(o[0]),g=Ea(o[1]),h=Math.max(o[0].length,o[1].length),y=3==o.length?Math.abs(Ea(o[2])):1,f=Oa;g0){var q=new Array(w+1).join("0");v=_<0?"-"+q+v.slice(1):q+v}}c.push(v)}}else c=function(t,r){for(var n=[],i=0;i65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return Aa;if(""===e)return"";var n,i="",o=!!r.nocase,s=!1,a=[],p=[],u=!1,c=-1,d=-1,l="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function g(){if(n){switch(n){case"*":i+="[^/]*?",o=!0;break;case"?":i+="[^/]",o=!0;break;default:i+="\\"+n}m.debug("clearStateChar %j %j",n,i),n=!1}}for(var h,y=0,f=e.length;y-1;T--){var k=p[T],S=i.slice(0,k.reStart),O=i.slice(k.reStart,k.reEnd-8),j=i.slice(k.reEnd-8,k.reEnd),P=i.slice(k.reEnd);j+=P;var C=S.split("(").length-1,A=P;for(y=0;y=0&&!(n=e[i]);i--);for(i=0;i>> no match, partial?",e,d,t,l),d!==s))}if("string"==typeof u?(p=n.nocase?c.toLowerCase()===u.toLowerCase():c===u,this.debug("string match",u,c,p)):(p=c.match(u),this.debug("pattern match",u,c,p)),!p)return!1}if(i===s&&o===a)return!0;if(i===s)return r;if(o===a)return i===s-1&&""===e[i];throw new Error("wtf?")};var Ma=b(function(e){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),Na=b(function(e){try{if("function"!=typeof d.inherits)throw"";e.exports=d.inherits}catch(t){e.exports=Ma}});function $a(e){return"/"===e.charAt(0)}function Ba(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}var za="win32"===process.platform?Ba:$a,Ha=Ba;function Wa(e,t){return Object.prototype.hasOwnProperty.call(e,t)}za.posix=$a,za.win32=Ha;var Va=Pa.Minimatch;function Ja(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Ya(e,t){return e.localeCompare(t)}function Ka(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new Va(r,{dot:!0})}return{matcher:new Va(e,{dot:!0}),gmatcher:t}}function Qa(e,r){var n=r;return n="/"===r.charAt(0)?t.join(e.root,r):za(r)||""===r?r:e.changedCwd?t.resolve(e.cwd,r):t.resolve(r),"win32"===process.platform&&(n=n.replace(/\\/g,"/")),n}function Za(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))})}var Xa={alphasort:Ya,alphasorti:Ja,setopts:function(e,r,n){if(n||(n={}),n.matchBase&&-1===r.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}e.silent=!!n.silent,e.pattern=r,e.strict=!1!==n.strict,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0),e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.maxLength=n.maxLength||Infinity,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(Ka))}(e,n),e.changedCwd=!1;var i=process.cwd();Wa(n,"cwd")?(e.cwd=t.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=n.root||t.resolve(e.cwd,"/"),e.root=t.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=za(e.cwd)?e.cwd:Qa(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,e.minimatch=new Va(r,n),e.options=e.minimatch.options},ownProp:Wa,makeAbs:Qa,finish:function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;nthis.maxLength)return!1;if(!this.stat&&rp(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var o;try{o=p.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{i=p.statSync(t)}catch(e){i=o}else i=o}return this.statCache[t]=i,n=!0,i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},sp.prototype._mark=function(e){return Xa.mark(this,e)},sp.prototype._makeAbs=function(e){return Xa.makeAbs(this,e)};var ap=Object.create(null),pp=ve(function(e,t){return ap[e]?(ap[e].push(t),null):(ap[e]=[t],function(e){return we(function t(){var r=ap[e],n=r.length,i=up(arguments);try{for(var o=0;on?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete ap[e]}})}(e))});function up(e){for(var t=e.length,r=[],n=0;n1)return!0;for(var i=0;ithis.maxLength)return t();if(!this.stat&&mp(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var o=this.statCache[r];if(void 0!==o){if(!1===o)return t(null,o);var s=o.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?t():t(null,s,o)}var a=this,u=pp("stat\0"+r,function(n,i){if(i&&i.isSymbolicLink())return p.stat(r,function(n,o){n?a._stat2(e,r,null,i,t):a._stat2(e,r,n,o,t)});a._stat2(e,r,n,i,t)});u&&p.lstat(r,u)},bp.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var o="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,o&&"FILE"===s?i():i(null,s,n)};var _p=["write","end","destroy"],vp=["resume","pause"],wp=["data","close"],qp=Array.prototype.slice,Ep=function(e,t){var r=new n,i=!1;return Tp(_p,function(t){r[t]=function(){return e[t].apply(e,arguments)}}),Tp(vp,function(e){r[e]=function(){r.emit(e);var n=t[e];if(n)return n.apply(t,arguments);t.emit(e)}}),Tp(wp,function(e){t.on(e,function(){var t=qp.call(arguments);t.unshift(e),r.emit.apply(r,t)})}),t.on("end",function(){if(!i){i=!0;var e=qp.call(arguments);e.unshift("end"),r.emit.apply(r,e)}}),e.on("drain",function(){r.emit("drain")}),e.on("error",o),t.on("error",o),r.writable=e.writable,r.readable=t.readable,r;function o(e){r.emit("error",e)}};function Tp(e,t){if(e.forEach)return e.forEach(t);for(var r=0;rfunction(...r){return new(0,t.promiseModule)((n,i)=>{r.push(t.multiArgs?(...e)=>{t.errorFirst?e[0]?i(e):(e.shift(),n(e)):n(e)}:t.errorFirst?(e,t)=>{e?i(e):n(t)}:n),e.apply(this,r)})};var Sp=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=typeof e;if(null===e||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);const n=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(r):!t.exclude.some(r)};let i;i="function"===r?function(...r){return t.excludeMain?e(...r):kp(e,t).apply(this,r)}:Object.create(Object.getPrototypeOf(e));for(const r in e){const o=e[r];i[r]="function"==typeof o&&n(r)?kp(o,t):o}return i},Op=b(function(e){const t=e=>Object.assign({level:9},e);e.exports=(e,r)=>e?Sp(a.gzip)(e,t(r)).then(e=>e.length).catch(e=>0):Promise.resolve(0),e.exports.sync=(e,r)=>a.gzipSync(e,t(r)).length,e.exports.stream=e=>{const r=new n.PassThrough,i=new n.PassThrough,o=Ep(r,i);let s=0;const p=a.createGzip(t(e)).on("data",e=>{s+=e.length}).on("error",()=>{o.gzipSize=0}).on("end",()=>{o.gzipSize=s,o.emit("gzip-size",s),i.end()});return r.pipe(p),r.pipe(i,{end:!1}),o},e.exports.file=(t,r)=>new Promise((n,i)=>{const o=p.createReadStream(t);o.on("error",i);const s=o.pipe(e.exports.stream(r));s.on("error",i),s.on("gzip-size",n)}),e.exports.fileSync=(t,r)=>e.exports.sync(p.readFileSync(t),r)}),jp=/[|\\{}()[\]^$+*?.]/g,Pp=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(jp,"\\$&")},Cp={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ap=b(function(e){var t={};for(var r in Cp)Cp.hasOwnProperty(r)&&(t[Cp[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=n[i].channels,s=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:o}),Object.defineProperty(n[i],"labels",{value:s})}n.rgb.hsl=function(e){var t,r,n=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(n,i,o),a=Math.max(n,i,o),p=a-s;return a===s?t=0:n===a?t=(i-o)/p:i===a?t=2+(o-n)/p:o===a&&(t=4+(n-i)/p),(t=Math.min(60*t,360))<0&&(t+=360),r=(s+a)/2,[t,100*(a===s?0:r<=.5?p/(a+s):p/(2-a-s)),100*r]},n.rgb.hsv=function(e){var t,r,n,i,o,s=e[0]/255,a=e[1]/255,p=e[2]/255,u=Math.max(s,a,p),c=u-Math.min(s,a,p),d=function(e){return(u-e)/6/c+.5};return 0===c?i=o=0:(o=c/u,t=d(s),r=d(a),n=d(p),s===u?i=n-r:a===u?i=1/3+t-n:p===u&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},n.rgb.hwb=function(e){var t=e[0],r=e[1],i=e[2];return[n.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,i))*100,100*(i=1-1/255*Math.max(t,Math.max(r,i)))]},n.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-i)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},n.rgb.keyword=function(e){var r=t[e];if(r)return r;var n,i,o,s=Infinity;for(var a in Cp)if(Cp.hasOwnProperty(a)){var p=(i=e,o=Cp[a],Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));p.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},n.rgb.lab=function(e){var t=n.rgb.xyz(e),r=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(r-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},n.hsl.rgb=function(e){var t,r,n,i,o,s=e[0]/360,a=e[1]/100,p=e[2]/100;if(0===a)return[o=255*p,o,o];t=2*p-(r=p<.5?p*(1+a):p+a-p*a),i=[0,0,0];for(var u=0;u<3;u++)(n=s+1/3*-(u-1))<0&&n++,n>1&&n--,i[u]=255*(o=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t);return i},n.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,i*=o<=1?o:2-o,[t,100*(0===n?2*i/(o+i):2*r/(n+r)),(n+r)/2*100]},n.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),p=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,p,s];case 1:return[a,n,s];case 2:return[s,n,p];case 3:return[s,a,n];case 4:return[p,s,n];case 5:return[n,s,a]}},n.hsv.hsl=function(e){var t,r,n,i=e[0],o=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return n=(2-o)*s,r=o*a,[i,100*(r=(r/=(t=(2-o)*a)<=1?t:2-t)||0),100*(n/=2)]},n.hwb.rgb=function(e){var t,r,n,i,o,s,a,p=e[0]/360,u=e[1]/100,c=e[2]/100,d=u+c;switch(d>1&&(u/=d,c/=d),n=6*p-(t=Math.floor(6*p)),0!=(1&t)&&(n=1-n),i=u+n*((r=1-c)-u),t){default:case 6:case 0:o=r,s=i,a=u;break;case 1:o=i,s=r,a=u;break;case 2:o=u,s=r,a=i;break;case 3:o=u,s=i,a=r;break;case 4:o=i,s=u,a=r;break;case 5:o=r,s=u,a=i}return[255*o,255*s,255*a]},n.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-n)+n)),255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},n.xyz.rgb=function(e){var t,r,n,i=e[0]/100,o=e[1]/100,s=e[2]/100;return r=-.9689*i+1.8758*o+.0415*s,n=.0557*i+-.204*o+1.057*s,t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(e){var t,r,n;t=e[1]/500+(r=(e[0]+16)/116),n=r-e[2]/200;var i=Math.pow(r,3),o=Math.pow(t,3),s=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},n.lab.lch=function(e){var t,r=e[0],n=e[1],i=e[2];return(t=360*Math.atan2(i,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+i*i),t]},n.lch.lab=function(e){var t,r=e[1];return t=e[2]/360*2*Math.PI,[e[0],r*Math.cos(t),r*Math.sin(t)]},n.rgb.ansi16=function(e){var t=e[0],r=e[1],i=e[2],o=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===o&&(s+=60),s},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},n.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},n.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},n.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map(function(e){return e+e}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.max(Math.max(r,n),i),s=Math.min(Math.min(r,n),i),a=o-s;return t=a<=0?0:o===r?(n-i)/a%6:o===n?2+(i-r)/a:4+(r-n)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},n.hsl.hcg=function(e){var t,r=e[1]/100,n=e[2]/100,i=0;return(t=n<.5?2*r*n:2*r*(1-n))<1&&(i=(n-.5*t)/(1-t)),[e[0],100*t,100*i]},n.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,n=0;return r<1&&(n=(t-r)/(1-r)),[e[0],100*r,100*n]},n.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var n,i=[0,0,0],o=e[0]/360%1*6,s=o%1,a=1-s;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return[255*(t*i[0]+(n=(1-t)*r)),255*(t*i[1]+n),255*(t*i[2]+n)]},n.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},n.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},n.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},n.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,n=0;return r<1&&(n=(t-r)/(1-r)),[e[0],100*r,100*n]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});function Rp(e,t){return function(r){return t(e(r))}}function xp(e,t){for(var r=[t[e].parent,e],n=Ap[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Rp(Ap[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var Gp={};Object.keys(Ap).forEach(function(e){Gp[e]={},Object.defineProperty(Gp[e],"channels",{value:Ap[e].channels}),Object.defineProperty(Gp[e],"labels",{value:Ap[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(Ap),r=t.length,n=0;n1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)})});var Fp=Gp,Ip=b(function(e){const t=(e,t)=>function(){const r=e.apply(Fp,arguments);return`[${r+t}m`},r=(e,t)=>function(){const r=e.apply(Fp,arguments);return`[${38+t};5;${r}m`},n=(e,t)=>function(){const r=e.apply(Fp,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const r=i[t];for(const t of Object.keys(r)){const n=r[t];i[t]={open:`[${n[0]}m`,close:`[${n[1]}m`},r[t]=i[t],e.set(n[0],n[1])}Object.defineProperty(i,t,{value:r,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,s=(e,t,r)=>[e,t,r];i.color.close="",i.bgColor.close="",i.color.ansi={ansi:t(o,0)},i.color.ansi256={ansi256:r(o,0)},i.color.ansi16m={rgb:n(s,0)},i.bgColor.ansi={ansi:t(o,10)},i.bgColor.ansi256={ansi256:r(o,10)},i.bgColor.ansi16m={rgb:n(s,10)};for(let e of Object.keys(Fp)){if("object"!=typeof Fp[e])continue;const o=Fp[e];"ansi16"===e&&(e="ansi"),"ansi16"in o&&(i.color.ansi[e]=t(o.ansi16,0),i.bgColor.ansi[e]=t(o.ansi16,10)),"ansi256"in o&&(i.color.ansi256[e]=r(o.ansi256,0),i.bgColor.ansi256[e]=r(o.ansi256,10)),"rgb"in o&&(i.color.ansi16m[e]=n(o.rgb,0),i.bgColor.ansi16m[e]=n(o.rgb,10))}return i}})}),Lp=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Dp)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Dp)||"codeship"===Dp.CI_NAME?1:t;if("TEAMCITY_VERSION"in Dp)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Dp.TEAMCITY_VERSION)?1:0;if("truecolor"===Dp.COLORTERM)return 3;if("TERM_PROGRAM"in Dp){const e=parseInt((Dp.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Dp.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Dp.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Dp.TERM)?1:"COLORTERM"in Dp?1:t}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}Lp("no-color")||Lp("no-colors")||Lp("color=false")?Up=!1:(Lp("color")||Lp("colors")||Lp("color=true")||Lp("color=always"))&&(Up=!0),"FORCE_COLOR"in Dp&&(Up=0===Dp.FORCE_COLOR.length||0!==parseInt(Dp.FORCE_COLOR,10));var Np={supportsColor:Mp,stdout:Mp(process.stdout),stderr:Mp(process.stderr)};const $p=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Bp=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,zp=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Hp=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Wp=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Vp(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Wp.get(e)||e}function Jp(e,t){const r=[],n=t.trim().split(/\s*,\s*/g);let i;for(const t of n)if(isNaN(t)){if(!(i=t.match(zp)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(i[2].replace(Hp,(e,t,r)=>t?Vp(t):r))}else r.push(Number(t));return r}function Yp(e){Bp.lastIndex=0;const t=[];let r;for(;null!==(r=Bp.exec(e));){const e=r[1];if(r[2]){const n=Jp(e,r[2]);t.push([e].concat(n))}else t.push([e])}return t}function Kp(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=r[e].length>0?n[e].apply(n,r[e]):n[e]}return n}var Qp=(e,t)=>{const r=[],n=[];let i=[];if(t.replace($p,(t,o,s,a,p,u)=>{if(o)i.push(Vp(o));else if(a){const t=i.join("");i=[],n.push(0===r.length?t:Kp(e,r)(t)),r.push({inverse:s,styles:Yp(a)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");n.push(Kp(e,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),n.push(i.join("")),r.length>0)throw new Error(`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`);return n.join("")},Zp=b(function(e){const t=Np.stdout,r="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function s(e,r){e.level=void 0===(r=r||{}).level?t?t.level:0:r.level,e.enabled="enabled"in r?r.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return s(t,e),t.template=function(){const e=[].slice.call(arguments);return d.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}s(this,e)}r&&(Ip.blue.open="");for(const e of Object.keys(Ip))Ip[e].closeRe=new RegExp(Pp(Ip[e].close),"g"),o[e]={get(){const t=Ip[e];return u.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};o.visible={get(){return u.call(this,this._styles||[],!0,"visible")}},Ip.color.closeRe=new RegExp(Pp(Ip.color.close),"g");for(const e of Object.keys(Ip.color.ansi))i.has(e)||(o[e]={get(){const t=this.level;return function(){const r=Ip.color[n[t]][e].apply(null,arguments),i={open:r,close:Ip.color.close,closeRe:Ip.color.closeRe};return u.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});Ip.bgColor.closeRe=new RegExp(Pp(Ip.bgColor.close),"g");for(const e of Object.keys(Ip.bgColor.ansi))i.has(e)||(o["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=Ip.bgColor[n[t]][e].apply(null,arguments),i={open:r,close:Ip.bgColor.close,closeRe:Ip.bgColor.closeRe};return u.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});const p=Object.defineProperties(()=>{},o);function u(e,t,r){const n=function(){return c.apply(n,arguments)};n._styles=e,n._empty=t;const i=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=p,n}function c(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};var ru=(e,t)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t=Object.assign({bits:!1},t)).bits?eu:Xp;if(t.signed&&0===e)return" 0 "+r[0];const n=e<0,i=n?"-":t.signed?"+":"";if(n&&(e=-e),e<1)return i+tu(e,t.locale)+" "+r[0];const o=Math.min(Math.floor(Math.log10(e)/3),r.length-1);return e=Number((e/Math.pow(1e3,o)).toPrecision(3)),i+tu(e,t.locale)+" "+r[o]},nu=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=d.promisify(p.readFile),i=e=>"string"==typeof e?Buffer.from(e,"utf8"):e,o=(e,t)=>({params:{[a.constants.BROTLI_PARAM_MODE]:e&&"mode"in e&&e.mode||a.constants.BROTLI_DEFAULT_MODE,[a.constants.BROTLI_PARAM_QUALITY]:e&&"quality"in e&&e.quality||a.constants.BROTLI_MAX_QUALITY,[a.constants.BROTLI_PARAM_SIZE_HINT]:t?t.byteLength:0}});async function s(e,t){const r=i(e);return new Promise(function(e,n){a.brotliCompress(r,o(t,r),(t,r)=>{null!==t&&n(t),e(r.byteLength)})})}function u(e,t){const r=i(e);return a.brotliCompressSync(r,o(t,r)).byteLength}t.default=s,t.sync=u,t.stream=function(e){const t=new n.PassThrough,r=new n.PassThrough,i=Ep(t,r);let s=0;const p=a.createBrotliCompress(o(e)).on("data",e=>{s+=e.length}).on("error",()=>{i.brotliSize=0}).on("end",()=>{i.brotliSize=s,i.emit("brotli-size",s),r.end()});return t.pipe(p),t.pipe(r,{end:!1}),i},t.file=async function(e,t){const n=await r(e);return await s(n,t)},t.fileSync=function(e,t){return u(p.readFileSync(e),t)}});f(nu);var iu=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*Pu;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ju;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ou;case"seconds":case"second":case"secs":case"sec":case"s":return r*Su;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return Au(e,Pu,"day")||Au(e,ju,"hour")||Au(e,Ou,"minute")||Au(e,Su,"second")||e+" ms"}(e):function(e){return e>=Pu?Math.round(e/Pu)+"d":e>=ju?Math.round(e/ju)+"h":e>=Ou?Math.round(e/Ou)+"m":e>=Su?Math.round(e/Su)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Au(e,t,r){if(!(e=31||"{}".userAgent&&"{}".userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())}),Gu=b(function(e,t){(t=e.exports=Ru).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),n=0;n=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function r(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,d.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,d.inspect(e,this.inspectOpts)},t.enable(r())}),Fu=b(function(e){e.exports="undefined"==typeof process||"renderer"===process.type?xu:Gu}),Iu=n.Writable,Lu=Fu("follow-redirects"),Du={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},Uu=Object.create(null);function Mu(e,t){Iu.call(this),e.headers=e.headers||{},this._options=e,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e.host&&(e.hostname||(e.hostname=e.host),delete e.host),t&&this.on("response",t);var r=this;if(this._onNativeResponse=function(e){r._processResponse(e)},!e.pathname&&e.path){var n=e.path.indexOf("?");n<0?e.pathname=e.path:(e.pathname=e.path.substring(0,n),e.search=e.path.substring(n))}this._performRequest()}function Nu(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",s=r[i]=e[n],a=t[n]=Object.create(s);a.request=function(e,n){return"string"==typeof e?(e=o.parse(e)).maxRedirects=t.maxRedirects:e=Object.assign({protocol:i,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e),e.nativeProtocols=r,l.equal(e.protocol,i,"protocol mismatch"),Lu("options",e),new Mu(e,n)},a.get=function(e,t){var r=a.request(e,t);return r.end(),r}}),t}["abort","aborted","error","socket","timeout"].forEach(function(e){Uu[e]=function(t){this._redirectable.emit(e,t)}}),(Mu.prototype=Object.create(Iu.prototype)).write=function(e,t,r){if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new Error("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort()):r&&r()},Mu.prototype.end=function(e,t,r){"function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null);var n=this._currentRequest;this.write(e||"",t,function(){n.end(null,null,r)})},Mu.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Mu.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){Mu.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Mu.prototype,e,{get:function(){return this._currentRequest[e]}})}),Mu.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i in this._currentUrl=o.format(this._options),n._redirectable=this,Uu)i&&n.on(i,Uu[i]);if(this._isRedirect){var s=0,a=this._requestBodyBuffers;!function e(){if(s=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var r,n=this._options.headers;if(307!==e.statusCode&&!(this._options.method in Du))for(r in this._options.method="GET",this._requestBodyBuffers=[],n)/^content-/i.test(r)&&delete n[r];if(!this._isRedirect)for(r in n)/^host$/i.test(r)&&delete n[r];var i=o.resolve(this._currentUrl,t);Lu("redirecting to",i),Object.assign(this._options,o.parse(i)),this._isRedirect=!0,this._performRequest(),e.destroy()}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};var $u=Nu({http:i,https:s});$u.wrap=Nu;var Bu=[["axios@0.19.2","/home/vsonline/workspace/compressed-size-action"]],zu="sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==",Hu={},Wu={type:"version",registry:!0,raw:"axios@0.19.2",name:"axios",escapedName:"axios",rawSpec:"0.19.2",saveSpec:null,fetchSpec:"0.19.2"},Vu=["/size-plugin-store"],Ju="https://registry.npmjs.org/axios/-/axios-0.19.2.tgz",Yu="/home/vsonline/workspace/compressed-size-action",Ku={name:"Matt Zabriskie"},Qu={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Zu={url:"https://github.com/axios/axios/issues"},Xu=[{path:"./dist/axios.min.js",threshold:"5kB"}],ec={"follow-redirects":"1.5.10"},tc="Promise based HTTP client for the browser and node.js",rc={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},nc=["xhr","http","ajax","promise","node"],ic={type:"git",url:"git+https://github.com/axios/axios.git"},oc={build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test && bundlesize",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},sc=_({__proto__:null,_args:Bu,_development:!0,_from:"axios@0.19.2",_id:"axios@0.19.2",_inBundle:!1,_integrity:zu,_location:"/axios",_phantomChildren:Hu,_requested:Wu,_requiredBy:Vu,_resolved:Ju,_spec:"0.19.2",_where:Yu,author:Ku,browser:Qu,bugs:Zu,bundlesize:Xu,dependencies:ec,description:tc,devDependencies:rc,homepage:"https://github.com/axios/axios",keywords:nc,license:"MIT",main:"index.js",name:"axios",repository:ic,scripts:oc,typings:"./index.d.ts",version:"0.19.2",default:{_args:Bu,_development:!0,_from:"axios@0.19.2",_id:"axios@0.19.2",_inBundle:!1,_integrity:zu,_location:"/axios",_phantomChildren:Hu,_requested:Wu,_requiredBy:Vu,_resolved:Ju,_spec:"0.19.2",_where:Yu,author:Ku,browser:Qu,bugs:Zu,bundlesize:Xu,dependencies:ec,description:tc,devDependencies:rc,homepage:"https://github.com/axios/axios",keywords:nc,license:"MIT",main:"index.js",name:"axios",repository:ic,scripts:oc,typings:"./index.d.ts",version:"0.19.2"}}),ac=$u.http,pc=$u.https,uc=/https:?/,cc={"Content-Type":"application/x-www-form-urlencoded"};function dc(e,t){!du.isUndefined(e)&&du.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var lc,mc={adapter:("undefined"!=typeof XMLHttpRequest?lc=function(e){return new Promise(function(t,r){var n=e.data,i=e.headers;du.isFormData(n)&&delete i["Content-Type"];var o=new XMLHttpRequest;e.auth&&(i.Authorization="Basic "+btoa((e.auth.username||"")+":"+(e.auth.password||"")));var s=qu(e.baseURL,e.url);if(o.open(e.method.toUpperCase(),mu(s,e.params,e.paramsSerializer),!0),o.timeout=e.timeout,o.onreadystatechange=function(){if(o&&4===o.readyState&&(0!==o.status||o.responseURL&&0===o.responseURL.indexOf("file:"))){var n,i,s,a,p,u="getAllResponseHeaders"in o?(n=o.getAllResponseHeaders(),p={},n?(du.forEach(n.split("\n"),function(e){if(a=e.indexOf(":"),i=du.trim(e.substr(0,a)).toLowerCase(),s=du.trim(e.substr(a+1)),i){if(p[i]&&Eu.indexOf(i)>=0)return;p[i]="set-cookie"===i?(p[i]?p[i]:[]).concat([s]):p[i]?p[i]+", "+s:s}}),p):p):null;wu(t,r,{data:e.responseType&&"text"!==e.responseType?o.response:o.responseText,status:o.status,statusText:o.statusText,headers:u,config:e,request:o}),o=null}},o.onabort=function(){o&&(r(vu("Request aborted",e,"ECONNABORTED",o)),o=null)},o.onerror=function(){r(vu("Network Error",e,null,o)),o=null},o.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(vu(t,e,"ECONNABORTED",o)),o=null},du.isStandardBrowserEnv()){var a=ku,p=(e.withCredentials||Tu(s))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;p&&(i[e.xsrfHeaderName]=p)}if("setRequestHeader"in o&&du.forEach(i,function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete i[t]:o.setRequestHeader(t,e)}),du.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),e.responseType)try{o.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&o.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&o.upload&&o.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){o&&(o.abort(),r(e),o=null)}),void 0===n&&(n=null),o.send(n)})}:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(lc=function(e){return new Promise(function(t,r){var n=function(e){t(e)},p=function(e){r(e)},u=e.data,c=e.headers;if(c["User-Agent"]||c["user-agent"]||(c["User-Agent"]="axios/"+sc.version),u&&!du.isStream(u)){if(Buffer.isBuffer(u));else if(du.isArrayBuffer(u))u=Buffer.from(new Uint8Array(u));else{if(!du.isString(u))return p(vu("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u=Buffer.from(u,"utf-8")}c["Content-Length"]=u.length}var d=void 0;e.auth&&(d=(e.auth.username||"")+":"+(e.auth.password||""));var l=qu(e.baseURL,e.url),m=o.parse(l),g=m.protocol||"http:";if(!d&&m.auth){var h=m.auth.split(":");d=(h[0]||"")+":"+(h[1]||"")}d&&delete c.Authorization;var y=uc.test(g),f=y?e.httpsAgent:e.httpAgent,b={path:mu(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:f,agents:{http:e.httpAgent,https:e.httpsAgent},auth:d};e.socketPath?b.socketPath=e.socketPath:(b.hostname=m.hostname,b.port=m.port);var _,v=e.proxy;if(!v&&!1!==v){var w=g.slice(0,-1)+"_proxy",q=process.env[w]||process.env[w.toUpperCase()];if(q){var E=o.parse(q),T=process.env.no_proxy||process.env.NO_PROXY,k=!0;if(T&&(k=!T.split(",").map(function(e){return e.trim()}).some(function(e){return!!e&&("*"===e||"."===e[0]&&m.hostname.substr(m.hostname.length-e.length)===e||m.hostname===e)})),k&&(v={host:E.hostname,port:E.port},E.auth)){var S=E.auth.split(":");v.auth={username:S[0],password:S[1]}}}}if(v&&(b.hostname=v.host,b.host=v.host,b.headers.host=m.hostname+(m.port?":"+m.port:""),b.port=v.port,b.path=g+"//"+m.hostname+(m.port?":"+m.port:"")+b.path,v.auth)){var O=Buffer.from(v.auth.username+":"+v.auth.password,"utf8").toString("base64");b.headers["Proxy-Authorization"]="Basic "+O}var j=y&&(!v||uc.test(v.protocol));e.transport?_=e.transport:0===e.maxRedirects?_=j?s:i:(e.maxRedirects&&(b.maxRedirects=e.maxRedirects),_=j?pc:ac),e.maxContentLength&&e.maxContentLength>-1&&(b.maxBodyLength=e.maxContentLength);var P=_.request(b,function(t){if(!P.aborted){var r=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=204===t.statusCode?r:r.pipe(a.createUnzip()),delete t.headers["content-encoding"]}var i=t.req||P,o={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:i};if("stream"===e.responseType)o.data=r,wu(n,p,o);else{var s=[];r.on("data",function(t){s.push(t),e.maxContentLength>-1&&Buffer.concat(s).length>e.maxContentLength&&(r.destroy(),p(vu("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i)))}),r.on("error",function(t){P.aborted||p(_u(t,e,null,i))}),r.on("end",function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding)),o.data=t,wu(n,p,o)})}}});P.on("error",function(t){P.aborted||p(_u(t,e,null,P))}),e.timeout&&P.setTimeout(e.timeout,function(){P.abort(),p(vu("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",P))}),e.cancelToken&&e.cancelToken.promise.then(function(e){P.aborted||(P.abort(),p(e))}),du.isStream(u)?u.on("error",function(t){p(_u(t,e,null,P))}).pipe(P):P.end(u)})}),lc),transformRequest:[function(e,t){return bu(t,"Accept"),bu(t,"Content-Type"),du.isFormData(e)||du.isArrayBuffer(e)||du.isBuffer(e)||du.isStream(e)||du.isFile(e)||du.isBlob(e)?e:du.isArrayBufferView(e)?e.buffer:du.isURLSearchParams(e)?(dc(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):du.isObject(e)?(dc(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};du.forEach(["delete","get","head"],function(e){mc.headers[e]={}}),du.forEach(["post","put","patch"],function(e){mc.headers[e]=du.merge(cc)});var gc=mc;function hc(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var yc=function(e){return hc(e),e.headers=e.headers||{},e.data=yu(e.data,e.headers,e.transformRequest),e.headers=du.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),du.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||gc.adapter)(e).then(function(t){return hc(e),t.data=yu(t.data,t.headers,e.transformResponse),t},function(t){return fu(t)||(hc(e),t&&t.response&&(t.response.data=yu(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},fc=function(e,t){t=t||{};var r={},n=["url","method","params","data"],i=["headers","auth","proxy"],o=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];du.forEach(n,function(e){void 0!==t[e]&&(r[e]=t[e])}),du.forEach(i,function(n){du.isObject(t[n])?r[n]=du.deepMerge(e[n],t[n]):void 0!==t[n]?r[n]=t[n]:du.isObject(e[n])?r[n]=du.deepMerge(e[n]):void 0!==e[n]&&(r[n]=e[n])}),du.forEach(o,function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])});var s=n.concat(i).concat(o),a=Object.keys(t).filter(function(e){return-1===s.indexOf(e)});return du.forEach(a,function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])}),r};function bc(e){this.defaults=e,this.interceptors={request:new hu,response:new hu}}bc.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=fc(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var t=[yc,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},bc.prototype.getUri=function(e){return e=fc(this.defaults,e),mu(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},du.forEach(["delete","get","head","options"],function(e){bc.prototype[e]=function(t,r){return this.request(du.merge(r||{},{method:e,url:t}))}}),du.forEach(["post","put","patch"],function(e){bc.prototype[e]=function(t,r,n){return this.request(du.merge(n||{},{method:e,url:t,data:r}))}});var _c=bc;function vc(e){this.message=e}vc.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},vc.prototype.__CANCEL__=!0;var wc=vc;function qc(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new wc(e),t(r.reason))})}qc.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},qc.source=function(){var e;return{token:new qc(function(t){e=t}),cancel:e}};var Ec=qc;function Tc(e){var t=new _c(e),r=iu(_c.prototype.request,t);return du.extend(r,_c.prototype,t),du.extend(r,t),r}var kc=Tc(gc);kc.Axios=_c,kc.create=function(e){return Tc(fc(kc.defaults,e))},kc.Cancel=wc,kc.CancelToken=Ec,kc.isCancel=fu,kc.all=function(e){return Promise.all(e)},kc.spread=function(e){return function(t){return e.apply(null,t)}};var Sc=kc;Sc.default=kc;var Oc=Sc;let jc,Pc,Cc,Ac,Rc,xc,Gc,Fc,Ic,Lc="github";if(process.env.TRAVIS)jc=process.env.TRAVIS_REPO_SLUG,Pc=process.env.TRAVIS_PULL_REQUEST_SHA||process.env.TRAVIS_COMMIT,Cc=process.env.TRAVIS_EVENT_TYPE,Ac=process.env.TRAVIS_COMMIT_MESSAGE,Rc=process.env.TRAVIS_PULL_REQUEST,Fc=`https://travis-ci.org/${jc}/jobs/${process.env.TRAVIS_JOB_ID}`,Ic=`https://travis-ci.org/${jc}/builds/${process.env.TRAVIS_JOB_ID}`,xc="push"===process.env.TRAVIS_EVENT_TYPE?process.env.TRAVIS_BRANCH:process.env.TRAVIS_PULL_REQUEST_BRANCH,Gc="travis";else if(process.env.CIRCLECI)jc=process.env.CIRCLE_PROJECT_USERNAME+"/"+process.env.CIRCLE_PROJECT_REPONAME,Pc=process.env.CIRCLE_SHA1,Cc="push",Ac="",process.env.CI_PULL_REQUEST?(Rc=process.env.CI_PULL_REQUEST.split("/").pop(),Cc="pull_request"):Rc="",xc=process.env.CIRCLE_BRANCH,Gc="circle";else if(process.env.WERCKER)jc=process.env.WERCKER_GIT_OWNER+"/"+process.env.WERCKER_GIT_REPOSITORY,Pc=process.env.WERCKER_GIT_COMMIT,Cc="push",Ac="",Rc="",xc=process.env.WERCKER_GIT_BRANCH,Gc="wercker";else if(process.env.DRONE)jc=process.env.DRONE_REPO||process.env.CI_REPO||function(e){e||(e=process.env);let t=e.DRONE_REMOTE||e.CI_REMOTE;if(!t)return"";let r=t.split("/").slice(-2);return r[0]+"/"+r[1].replace(/\.git$/,"")}(process.env),Pc=process.env.DRONE_COMMIT||process.env.CI_COMMIT,Cc=process.env.DRONE_BUILD_EVENT||process.env.DRONE_EVENT||process.env.CI_EVENT||"push",Ac="",Rc=process.env.DRONE_PULL_REQUEST,xc=process.env.DRONE_BRANCH||process.env.CI_BRANCH,Gc="drone";else if(process.env.GITLAB_CI)jc=process.env.CI_PROJECT_PATH,xc=process.env.CI_COMMIT_REF_NAME,Ac=process.env.CI_COMMIT_MESSAGE,Rc=process.env.CI_MERGE_REQUEST_ID||"",Pc=process.env.CI_COMMIT_SHA,Cc=process.env.CI_PIPELINE_SOURCE,Fc=process.env.CI_JOB_URL,Lc="gitlab",Gc="gitlab";else if("codeship"===process.env.CI_NAME)jc=process.env.CI_REPO_NAME,xc=process.env.CI_BRANCH,Ac=process.env.CI_COMMIT_MESSAGE||process.env.CI_MESSAGE,Cc="push",Rc=process.env.CI_PR_NUMBER,Pc=process.env.CI_COMMIT_ID,Ic=process.env.CI_BUILD_URL,Gc="codeship";else if(process.env.GITHUB_ACTION){const e=process.env.GITHUB_REF.split("/")[2];jc=process.env.GITHUB_REPOSITORY,Pc=process.env.GITHUB_SHA,Cc=process.env.GITHUB_EVENT_NAME,Ac="",Rc="pull_request"===Cc?e:"",xc="pull_request"===Cc?process.env.GITHUB_HEAD_REF:e,Gc="github_actions"}else process.env.NETLIFY?(jc=process.env.REPOSITORY_URL.split("@github.com/").pop(),Cc=process.env.PULL_REQUEST?"pull_request":"push",Rc=process.env.PULL_REQUEST?process.env.REVIEW_ID:"",Pc=process.env.COMMIT_REF,xc=process.env.HEAD,Gc="netlify"):process.env.NOW_GITHUB_ORG?(jc=process.env.NOW_GITHUB_ORG+"/"+process.env.NOW_GITHUB_REPO,Cc="push",Rc="",Pc=process.env.NOW_GITHUB_COMMIT_SHA,xc=process.env.NOW_GITHUB_COMMIT_REF,Gc="now"):process.env.CI&&(jc=process.env.CI_REPO_OWNER+"/"+process.env.CI_REPO_NAME,Pc=process.env.CI_COMMIT_SHA,Cc=process.env.CI_EVENT||"push",Ac=process.env.CI_COMMIT_MESSAGE,Rc=process.env.CI_MERGE_REQUEST_ID,xc=process.env.CI_BRANCH,Gc="custom");var Dc={repo:jc,sha:Pc,event:Cc,commit_message:Ac,branch:xc,pull_request_number:Rc,ci:Gc,platform:Lc,jobUrl:Fc,buildUrl:Ic};const{repo:Uc,sha:Mc,ci:Nc}=Dc,$c=process.env.SIZE_STORE_ENDPOINT||"https://size-store.now.sh";var Bc={publishDiff:async function(e,t){if("test"!==process.env.NODE_ENV&&Nc)try{const r={ci:Nc,repo:Uc,sha:Mc,filename:t,diff:e};await Oc.post(`${$c}/diff`,r)}catch(e){console.error("error: while publishing diff",e)}},publishSizes:async function(e,t){if("test"!==process.env.NODE_ENV&&Nc)try{const r={ci:Nc,repo:Uc,sha:Mc,filename:t,size:e};await Oc.post(`${$c}/size`,r)}catch(e){console.error("error: while publishing sizes",e)}}},zc=function(e){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((t,r)=>{arguments[arguments.length]=(e,n)=>{if(e)return r(e);t(n)},arguments.length++,e.apply(this,arguments)});e.apply(this,arguments)},"name",{value:e.name})},Hc=process.cwd,Wc=null,Vc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Wc||(Wc=Hc.call(process)),Wc};try{process.cwd()}catch(e){}var Jc=process.chdir;process.chdir=function(e){Wc=null,Jc.call(process,e)};var Yc=n.Stream,Kc=b(function(e){var t,r;"function"==typeof Symbol&&"function"==typeof Symbol.for?(t=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(t="___graceful-fs.queue",r="___graceful-fs.previous");var n=function(){};if(d.debuglog?n=d.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(n=function(){var e=d.format.apply(d,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!y[t]){var i=[];Object.defineProperty(y,t,{get:function(){return i}}),p.close=function(e){function t(t,r){return e.call(p,t,function(e){e||a(),"function"==typeof r&&r.apply(this,arguments)})}return Object.defineProperty(t,r,{value:e}),t}(p.close),p.closeSync=function(e){function t(t){e.apply(p,arguments),a()}return Object.defineProperty(t,r,{value:e}),t}(p.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){n(y[t]),l.equal(y[t].length,0)})}function o(e){(function(e){var t,r;function n(t){return t?function(r,n,i){return t.call(e,r,n,function(e){u(e)&&(e=null),i&&i.apply(this,arguments)})}:t}function i(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!u(e))throw e}}:t}function o(t){return t?function(r,n,i,o){return t.call(e,r,n,i,function(e){u(e)&&(e=null),o&&o.apply(this,arguments)})}:t}function s(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!u(e))throw e}}:t}function a(t){return t?function(r,n,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,o):t.call(e,r,o)}:t}function p(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:t}function u(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}g.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,g.O_WRONLY|g.O_SYMLINK,r,function(t,i){t?n&&n(t):e.fchmod(i,r,function(t){e.close(i,function(e){n&&n(t||e)})})})},e.lchmodSync=function(t,r){var n,i=e.openSync(t,g.O_WRONLY|g.O_SYMLINK,r),o=!0;try{n=e.fchmodSync(i,r),o=!1}finally{if(o)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e),e.lutimes||function(e){g.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,n,i){e.open(t,g.O_SYMLINK,function(t,o){t?i&&i(t):e.futimes(o,r,n,function(t){e.close(o,function(e){i&&i(t||e)})})})},e.lutimesSync=function(t,r,n){var i,o=e.openSync(t,g.O_SYMLINK),s=!0;try{i=e.futimesSync(o,r,n),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}):(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=p(e.statSync),e.fstatSync=p(e.fstatSync),e.lstatSync=p(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){}),"win32"===Vc&&(e.rename=(t=e.rename,function(r,n,i){var o=Date.now(),s=0;t(r,n,function a(p){if(p&&("EACCES"===p.code||"EPERM"===p.code)&&Date.now()-o<6e4)return setTimeout(function(){e.stat(n,function(e,o){e&&"ENOENT"===e.code?t(r,n,a):i(p)})},s),void(s<100&&(s+=10));i&&i(p)})})),e.read=function(t){function r(r,n,i,o,s,a){var p;if(a&&"function"==typeof a){var u=0;p=function(c,d,l){if(c&&"EAGAIN"===c.code&&u<10)return u++,t.call(e,r,n,i,o,s,p);a.apply(this,arguments)}}return t.call(e,r,n,i,o,s,p)}return r.__proto__=t,r}(e.read),e.readSync=(r=e.readSync,function(t,n,i,o,s){for(var a=0;;)try{return r.call(e,t,n,i,o,s)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})})(e),e.gracefulify=o,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){return"function"==typeof r&&(n=r,r=null),function e(r,n,i){return t(r,n,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof i&&i.apply(this,arguments),a()):s([e,[r,n,i]])})}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,o){return r(t,n,i,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof o&&o.apply(this,arguments),a()):s([e,[t,n,i,o]])})}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o){return n(t,r,i,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof o&&o.apply(this,arguments),a()):s([e,[t,r,i,o]])})}(e,t,r,i)});var i=e.readdir;function p(t){return i.apply(e,t)}if(e.readdir=function(e,t,r){var n=[e];return"function"!=typeof t?n.push(t):r=t,n.push(function(e,t){t&&t.sort&&t.sort(),!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof r&&r.apply(this,arguments),a()):s([p,[n]])}),p(n)},"v0.8"===process.version.substr(0,4)){var u=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Yc.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,n=n||{};for(var o=Object.keys(n),s=0,a=o.length;sthis.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}):process.nextTick(function(){i._read()})},WriteStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Yc.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var i=Object.keys(n),o=0,s=i.length;o= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}(e);h=u.ReadStream,y=u.WriteStream}var c=e.ReadStream;c&&(h.prototype=Object.create(c.prototype),h.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())})});var d=e.WriteStream;d&&(y.prototype=Object.create(d.prototype),y.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))})}),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var l=h;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:!0,configurable:!0});var m=y;function h(e,t){return this instanceof h?(c.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function y(e,t){return this instanceof y?(d.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var f=e.open;function b(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i){return f(t,r,n,function(o,p){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),a()):s([e,[t,r,n,i]])})}(e,t,r,n)}return e.open=b,e}function s(e){n("ENQUEUE",e[0].name,e[1]),y[t].push(e)}function a(){var e=y[t].shift();e&&(n("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}e.exports=o(function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:e.__proto__};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}(p)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!p.__patched&&(e.exports=o(p),p.__patched=!0)}),Qc=b(function(e,t){const r=zc,n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof Kc[e]);Object.keys(Kc).forEach(e=>{"promises"!==e&&(t[e]=Kc[e])}),n.forEach(e=>{t[e]=r(Kc[e])}),t.exists=function(e,t){return"function"==typeof t?Kc.exists(e,t):new Promise(t=>Kc.exists(e,t))},t.read=function(e,t,r,n,i,o){return"function"==typeof o?Kc.read(e,t,r,n,i,o):new Promise((o,s)=>{Kc.read(e,t,r,n,i,(e,t,r)=>{if(e)return s(e);o({bytesRead:t,buffer:r})})})},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?Kc.write(e,t,...r):new Promise((n,i)=>{Kc.write(e,t,...r,(e,t,r)=>{if(e)return i(e);n({bytesWritten:t,buffer:r})})})},"function"==typeof Kc.realpath.native&&(t.realpath.native=r(Kc.realpath.native))});const Zc=/[<>:"|?*]/;var Xc=function(e){const r=function(e){return(e=t.normalize(t.resolve(e)).split(t.sep)).length>0?e[0]:null}(e);return e=e.replace(r,""),Zc.test(e)};const ed=Xc,td=parseInt("0777",8),rd=Xc,nd=parseInt("0777",8);var id=function e(r,n,i){n&&"object"==typeof n||(n={mode:n});let o=n.mode;const s=n.fs||Kc;if("win32"===process.platform&&rd(r)){const e=new Error(r+" contains invalid WIN32 path characters.");throw e.code="EINVAL",e}void 0===o&&(o=nd&~process.umask()),i||(i=null),r=t.resolve(r);try{s.mkdirSync(r,o),i=i||r}catch(o){if("ENOENT"===o.code){if(t.dirname(r)===r)throw o;i=e(t.dirname(r),n,i),e(r,n,i)}else{let e;try{e=s.statSync(r)}catch(e){throw o}if(!e.isDirectory())throw o}}return i};const od=zc(function e(r,n,i,o){if("function"==typeof n?(i=n,n={}):n&&"object"==typeof n||(n={mode:n}),"win32"===process.platform&&ed(r)){const e=new Error(r+" contains invalid WIN32 path characters.");return e.code="EINVAL",i(e)}let s=n.mode;const a=n.fs||Kc;void 0===s&&(s=td&~process.umask()),o||(o=null),i=i||function(){},r=t.resolve(r),a.mkdir(r,s,s=>{if(!s)return i(null,o=o||r);switch(s.code){case"ENOENT":if(t.dirname(r)===r)return i(s);e(t.dirname(r),n,(t,o)=>{t?i(t,o):e(r,n,i,o)});break;default:a.stat(r,(e,t)=>{e||!t.isDirectory()?i(s,o):i(null,o)})}})});var sd={mkdirs:od,mkdirsSync:id,mkdirp:od,mkdirpSync:id,ensureDir:od,ensureDirSync:id};const ad=process.versions.node.split("."),pd=Number.parseInt(ad[0],10),ud=Number.parseInt(ad[1],10),cd=Number.parseInt(ad[2],10);function dd(){if(pd>10)return!0;if(10===pd){if(ud>5)return!0;if(5===ud&&cd>=0)return!0}return!1}function ld(e,r){const n=t.resolve(e).split(t.sep).filter(e=>e),i=t.resolve(r).split(t.sep).filter(e=>e);return n.reduce((e,t,r)=>e&&i[r]===t,!0)}function md(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var gd={checkPaths:function(e,t,r,n){!function(e,t,r){dd()?Kc.stat(e,{bigint:!0},(e,n)=>{if(e)return r(e);Kc.stat(t,{bigint:!0},(e,t)=>e?"ENOENT"===e.code?r(null,{srcStat:n,destStat:null}):r(e):r(null,{srcStat:n,destStat:t}))}):Kc.stat(e,(e,n)=>{if(e)return r(e);Kc.stat(t,(e,t)=>e?"ENOENT"===e.code?r(null,{srcStat:n,destStat:null}):r(e):r(null,{srcStat:n,destStat:t}))})}(e,t,(i,o)=>{if(i)return n(i);const{srcStat:s,destStat:a}=o;return a&&a.ino&&a.dev&&a.ino===s.ino&&a.dev===s.dev?n(new Error("Source and destination must not be the same.")):s.isDirectory()&&ld(e,t)?n(new Error(md(e,t,r))):n(null,{srcStat:s,destStat:a})})},checkPathsSync:function(e,t,r){const{srcStat:n,destStat:i}=function(e,t){let r,n;r=dd()?Kc.statSync(e,{bigint:!0}):Kc.statSync(e);try{n=dd()?Kc.statSync(t,{bigint:!0}):Kc.statSync(t)}catch(e){if("ENOENT"===e.code)return{srcStat:r,destStat:null};throw e}return{srcStat:r,destStat:n}}(e,t);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&ld(e,t))throw new Error(md(e,t,r));return{srcStat:n,destStat:i}},checkParentPaths:function e(r,n,i,o,s){const a=t.resolve(t.dirname(r)),p=t.resolve(t.dirname(i));if(p===a||p===t.parse(p).root)return s();dd()?Kc.stat(p,{bigint:!0},(t,a)=>t?"ENOENT"===t.code?s():s(t):a.ino&&a.dev&&a.ino===n.ino&&a.dev===n.dev?s(new Error(md(r,i,o))):e(r,n,p,o,s)):Kc.stat(p,(t,a)=>t?"ENOENT"===t.code?s():s(t):a.ino&&a.dev&&a.ino===n.ino&&a.dev===n.dev?s(new Error(md(r,i,o))):e(r,n,p,o,s))},checkParentPathsSync:function e(r,n,i,o){const s=t.resolve(t.dirname(r)),a=t.resolve(t.dirname(i));if(a===s||a===t.parse(a).root)return;let p;try{p=dd()?Kc.statSync(a,{bigint:!0}):Kc.statSync(a)}catch(e){if("ENOENT"===e.code)return;throw e}if(p.ino&&p.dev&&p.ino===n.ino&&p.dev===n.dev)throw new Error(md(r,i,o));return e(r,n,a,o)},isSrcSubdir:ld};const hd=sd.mkdirsSync;function yd(e,r,n,i){if(!i.filter||i.filter(r,n))return function(e,r,n,i){const o=(i.dereference?Kc.statSync:Kc.lstatSync)(r);return o.isDirectory()?function(e,t,r,n,i){if(!t)return function(e,t,r,n){return Kc.mkdirSync(r),bd(t,r,n),Kc.chmodSync(r,e.mode)}(e,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return bd(r,n,i)}(o,e,r,n,i):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?function(e,t,r,n,i){return t?function(e,t,r,n){if(n.overwrite)return Kc.unlinkSync(r),fd(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,n,i):fd(e,r,n,i)}(o,e,r,n,i):o.isSymbolicLink()?function(e,r,n,i){let o=Kc.readlinkSync(r);if(i.dereference&&(o=t.resolve(process.cwd(),o)),e){let e;try{e=Kc.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return Kc.symlinkSync(o,n);throw e}if(i.dereference&&(e=t.resolve(process.cwd(),e)),gd.isSrcSubdir(o,e))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(Kc.statSync(n).isDirectory()&&gd.isSrcSubdir(e,o))throw new Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return Kc.unlinkSync(t),Kc.symlinkSync(e,t)}(o,n)}return Kc.symlinkSync(o,n)}(e,r,n,i):void 0}(e,r,n,i)}function fd(e,t,r,n){return"function"==typeof Kc.copyFileSync?(Kc.copyFileSync(t,r),Kc.chmodSync(r,e.mode),n.preserveTimestamps?function(e,t,r){const n=Kc.openSync(e,"r+");return Kc.futimesSync(n,t,r),Kc.closeSync(n)}(r,e.atime,e.mtime):void 0):function(e,t,r,n){const i=function(e){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(65536)}catch(e){return new Buffer(65536)}return new Buffer(65536)}(),o=Kc.openSync(t,"r"),s=Kc.openSync(r,"w",e.mode);let a=0;for(;afunction(e,r,n,i){const o=t.join(r,e),s=t.join(n,e),{destStat:a}=gd.checkPathsSync(o,s,"copy");return yd(a,o,s,i)}(i,e,r,n))}var _d,vd={copySync:function(e,r,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:i,destStat:o}=gd.checkPathsSync(e,r,"copy");return gd.checkParentPathsSync(e,i,r,"copy"),function(e,r,n,i){if(i.filter&&!i.filter(r,n))return;const o=t.dirname(n);return Kc.existsSync(o)||hd(o),yd(e,r,n,i)}(o,e,r,n)}},wd={pathExists:(_d=function(e){return Qc.access(e).then(()=>!0).catch(()=>!1)},Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return _d.apply(this,arguments);_d.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:_d.name})),pathExistsSync:Qc.existsSync};const qd=sd.mkdirs,Ed=wd.pathExists;function Td(e,r,n,i,o){const s=t.dirname(n);Ed(s,(t,a)=>t?o(t):a?Sd(e,r,n,i,o):void qd(s,t=>t?o(t):Sd(e,r,n,i,o)))}function kd(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(s=>s?e(t,r,n,i,o):o(),e=>o(e))}function Sd(e,t,r,n,i){return n.filter?kd(Od,e,t,r,n,i):Od(e,t,r,n,i)}function Od(e,r,n,i,o){(i.dereference?Kc.stat:Kc.lstat)(r,(s,a)=>s?o(s):a.isDirectory()?function(e,t,r,n,i,o){return t?t&&!t.isDirectory()?o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Cd(r,n,i,o):function(e,t,r,n,i){Kc.mkdir(r,o=>{if(o)return i(o);Cd(t,r,n,t=>t?i(t):Kc.chmod(r,e.mode,i))})}(e,r,n,i,o)}(a,e,r,n,i,o):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(e,t,r,n,i,o){return t?function(e,t,r,n,i){if(!n.overwrite)return n.errorOnExist?i(new Error(`'${r}' already exists`)):i();Kc.unlink(r,o=>o?i(o):jd(e,t,r,n,i))}(e,r,n,i,o):jd(e,r,n,i,o)}(a,e,r,n,i,o):a.isSymbolicLink()?function(e,r,n,i,o){Kc.readlink(r,(r,s)=>r?o(r):(i.dereference&&(s=t.resolve(process.cwd(),s)),e?void Kc.readlink(n,(r,a)=>r?"EINVAL"===r.code||"UNKNOWN"===r.code?Kc.symlink(s,n,o):o(r):(i.dereference&&(a=t.resolve(process.cwd(),a)),gd.isSrcSubdir(s,a)?o(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`)):e.isDirectory()&&gd.isSrcSubdir(a,s)?o(new Error(`Cannot overwrite '${a}' with '${s}'.`)):function(e,t,r){Kc.unlink(t,n=>n?r(n):Kc.symlink(e,t,r))}(s,n,o))):Kc.symlink(s,n,o)))}(e,r,n,i,o):void 0)}function jd(e,t,r,n,i){return"function"==typeof Kc.copyFile?Kc.copyFile(t,r,t=>t?i(t):Pd(e,r,n,i)):function(e,t,r,n,i){const o=Kc.createReadStream(t);o.on("error",e=>i(e)).once("open",()=>{const t=Kc.createWriteStream(r,{mode:e.mode});t.on("error",e=>i(e)).on("open",()=>o.pipe(t)).once("close",()=>Pd(e,r,n,i))})}(e,t,r,n,i)}function Pd(e,t,r,n){Kc.chmod(t,e.mode,i=>i?n(i):r.preserveTimestamps?function(e,t,r,n){Kc.open(e,"r+",(e,i)=>{if(e)return n(e);Kc.futimes(i,t,r,e=>{Kc.close(i,t=>{n&&n(e||t)})})})}(t,e.atime,e.mtime,n):n())}function Cd(e,r,n,i){Kc.readdir(e,(o,s)=>o?i(o):function e(r,n,i,o,s){const a=r.pop();return a?function(r,n,i,o,s,a){const p=t.join(i,n),u=t.join(o,n);gd.checkPaths(p,u,"copy",(t,n)=>{if(t)return a(t);const{destStat:c}=n;Sd(c,p,u,s,t=>t?a(t):e(r,i,o,s,a))})}(r,a,n,i,o,s):s()}(s,e,r,n,i))}var Ad={copy:zc(function(e,t,r,n){"function"!=typeof r||n?"function"==typeof r&&(r={filter:r}):(n=r,r={}),n=n||function(){},(r=r||{}).clobber=!("clobber"in r&&!r.clobber),r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),gd.checkPaths(e,t,"copy",(i,o)=>{if(i)return n(i);const{srcStat:s,destStat:a}=o;gd.checkParentPaths(e,s,t,"copy",i=>i?n(i):r.filter?kd(Td,a,e,t,r,n):Td(a,e,t,r,n))})})};const Rd="win32"===process.platform;function xd(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||Kc[t],e[t+="Sync"]=e[t]||Kc[t]}),e.maxBusyTries=e.maxBusyTries||3}function Gd(e,t,r){let n=0;"function"==typeof t&&(r=t,t={}),l(e,"rimraf: missing path"),l.strictEqual(typeof e,"string","rimraf: path should be a string"),l.strictEqual(typeof r,"function","rimraf: callback function required"),l(t,"rimraf: invalid options argument provided"),l.strictEqual(typeof t,"object","rimraf: options should be object"),xd(t),Fd(e,t,function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&nFd(e,t,i),100*n);"ENOENT"===o.code&&(o=null)}r(o)})}function Fd(e,t,r){l(e),l(t),l("function"==typeof r),t.lstat(e,(n,i)=>n&&"ENOENT"===n.code?r(null):n&&"EPERM"===n.code&&Rd?Id(e,t,n,r):i&&i.isDirectory()?Dd(e,t,n,r):void t.unlink(e,n=>{if(n){if("ENOENT"===n.code)return r(null);if("EPERM"===n.code)return Rd?Id(e,t,n,r):Dd(e,t,n,r);if("EISDIR"===n.code)return Dd(e,t,n,r)}return r(n)}))}function Id(e,t,r,n){l(e),l(t),l("function"==typeof n),r&&l(r instanceof Error),t.chmod(e,438,i=>{i?n("ENOENT"===i.code?null:r):t.stat(e,(i,o)=>{i?n("ENOENT"===i.code?null:r):o.isDirectory()?Dd(e,t,r,n):t.unlink(e,n)})})}function Ld(e,t,r){let n;l(e),l(t),r&&l(r instanceof Error);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}try{n=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}n.isDirectory()?Md(e,t,r):t.unlinkSync(e)}function Dd(e,r,n,i){l(e),l(r),n&&l(n instanceof Error),l("function"==typeof i),r.rmdir(e,o=>{!o||"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code?i(o&&"ENOTDIR"===o.code?n:o):function(e,r,n){l(e),l(r),l("function"==typeof n),r.readdir(e,(i,o)=>{if(i)return n(i);let s,a=o.length;if(0===a)return r.rmdir(e,n);o.forEach(i=>{Gd(t.join(e,i),r,t=>{if(!s)return t?n(s=t):void(0==--a&&r.rmdir(e,n))})})})}(e,r,i)})}function Ud(e,t){let r;xd(t=t||{}),l(e,"rimraf: missing path"),l.strictEqual(typeof e,"string","rimraf: path should be a string"),l(t,"rimraf: missing options"),l.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&Rd&&Ld(e,t,r)}try{r&&r.isDirectory()?Md(e,t,null):t.unlinkSync(e)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return Rd?Ld(e,t,r):Md(e,t,r);if("EISDIR"!==r.code)throw r;Md(e,t,r)}}function Md(e,r,n){l(e),l(r),n&&l(n instanceof Error);try{r.rmdirSync(e)}catch(i){if("ENOTDIR"===i.code)throw n;if("ENOTEMPTY"===i.code||"EEXIST"===i.code||"EPERM"===i.code)!function(e,r){if(l(e),l(r),r.readdirSync(e).forEach(n=>Ud(t.join(e,n),r)),!Rd)return r.rmdirSync(e,r);{const t=Date.now();do{try{return r.rmdirSync(e,r)}catch(e){}}while(Date.now()-t<500)}}(e,r);else if("ENOENT"!==i.code)throw i}}var Nd=Gd;Gd.sync=Ud;var $d={remove:zc(Nd),removeSync:Nd.sync};const Bd=zc(function(e,r){r=r||function(){},Kc.readdir(e,(n,i)=>{if(n)return sd.mkdirs(e,r);i=i.map(r=>t.join(e,r)),function e(){const t=i.pop();if(!t)return r();$d.remove(t,t=>{if(t)return r(t);e()})}()})});function zd(e){let r;try{r=Kc.readdirSync(e)}catch(t){return sd.mkdirsSync(e)}r.forEach(r=>{r=t.join(e,r),$d.removeSync(r)})}var Hd={emptyDirSync:zd,emptydirSync:zd,emptyDir:Bd,emptydir:Bd};const Wd=wd.pathExists;var Vd={createFile:zc(function(e,r){function n(){Kc.writeFile(e,"",e=>{if(e)return r(e);r()})}Kc.stat(e,(i,o)=>{if(!i&&o.isFile())return r();const s=t.dirname(e);Wd(s,(e,t)=>e?r(e):t?n():void sd.mkdirs(s,e=>{if(e)return r(e);n()}))})}),createFileSync:function(e){let r;try{r=Kc.statSync(e)}catch(e){}if(r&&r.isFile())return;const n=t.dirname(e);Kc.existsSync(n)||sd.mkdirsSync(n),Kc.writeFileSync(e,"")}};const Jd=wd.pathExists;var Yd={createLink:zc(function(e,r,n){function i(e,t){Kc.link(e,t,e=>{if(e)return n(e);n(null)})}Jd(r,(o,s)=>o?n(o):s?n(null):void Kc.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);const s=t.dirname(r);Jd(s,(t,o)=>t?n(t):o?i(e,r):void sd.mkdirs(s,t=>{if(t)return n(t);i(e,r)}))}))}),createLinkSync:function(e,r){if(Kc.existsSync(r))return;try{Kc.lstatSync(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=t.dirname(r);return Kc.existsSync(n)?Kc.linkSync(e,r):(sd.mkdirsSync(n),Kc.linkSync(e,r))}};const Kd=wd.pathExists,Qd=sd.mkdirs,Zd=sd.mkdirsSync,Xd=wd.pathExists;var el,tl={createSymlink:zc(function(e,r,n,i){i="function"==typeof n?n:i,n="function"!=typeof n&&n,Xd(r,(o,s)=>o?i(o):s?i(null):void function(e,r,n){if(t.isAbsolute(e))return Kc.lstat(e,t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:e}));{const i=t.dirname(r),o=t.join(i,e);Kd(o,(r,s)=>r?n(r):s?n(null,{toCwd:o,toDst:e}):Kc.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:t.relative(i,e)})))}}(e,r,(o,s)=>{if(o)return i(o);e=s.toDst,function(e,t,r){if(r="function"==typeof t?t:r,t="function"!=typeof t&&t)return r(null,t);Kc.lstat(e,(e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file",r(null,t)})}(s.toCwd,n,(n,o)=>{if(n)return i(n);const s=t.dirname(r);Xd(s,(t,n)=>t?i(t):n?Kc.symlink(e,r,o,i):void Qd(s,t=>{if(t)return i(t);Kc.symlink(e,r,o,i)}))})}))}),createSymlinkSync:function(e,r,n){if(Kc.existsSync(r))return;const i=function(e,r){let n;if(t.isAbsolute(e)){if(n=Kc.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const i=t.dirname(r),o=t.join(i,e);if(n=Kc.existsSync(o),n)return{toCwd:o,toDst:e};if(n=Kc.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:t.relative(i,e)}}}(e,r);e=i.toDst,n=function(e,t){let r;if(t)return t;try{r=Kc.lstatSync(e)}catch(e){return"file"}return r&&r.isDirectory()?"dir":"file"}(i.toCwd,n);const o=t.dirname(r);return Kc.existsSync(o)?Kc.symlinkSync(e,r,n):(Zd(o),Kc.symlinkSync(e,r,n))}},rl={createFile:Vd.createFile,createFileSync:Vd.createFileSync,ensureFile:Vd.createFile,ensureFileSync:Vd.createFileSync,createLink:Yd.createLink,createLinkSync:Yd.createLinkSync,ensureLink:Yd.createLink,ensureLinkSync:Yd.createLinkSync,createSymlink:tl.createSymlink,createSymlinkSync:tl.createSymlinkSync,ensureSymlink:tl.createSymlink,ensureSymlinkSync:tl.createSymlinkSync};try{el=Kc}catch(e){el=p}function nl(e,t){var r,n="\n";return"object"==typeof t&&null!==t&&(t.spaces&&(r=t.spaces),t.EOL&&(n=t.EOL)),JSON.stringify(e,t?t.replacer:null,r).replace(/\n/g,n)+n}function il(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var ol={readFile:function(e,t,r){null==r&&(r=t,t={}),"string"==typeof t&&(t={encoding:t});var n=!0;"throws"in(t=t||{})&&(n=t.throws),(t.fs||el).readFile(e,t,function(i,o){if(i)return r(i);var s;o=il(o);try{s=JSON.parse(o,t?t.reviver:null)}catch(t){return n?(t.message=e+": "+t.message,r(t)):r(null,null)}r(null,s)})},readFileSync:function(e,t){"string"==typeof(t=t||{})&&(t={encoding:t});var r=t.fs||el,n=!0;"throws"in t&&(n=t.throws);try{var i=r.readFileSync(e,t);return i=il(i),JSON.parse(i,t.reviver)}catch(t){if(n)throw t.message=e+": "+t.message,t;return null}},writeFile:function(e,t,r,n){null==n&&(n=r,r={});var i=(r=r||{}).fs||el,o="";try{o=nl(t,r)}catch(e){return void(n&&n(e,null))}i.writeFile(e,o,r,n)},writeFileSync:function(e,t,r){var n=(r=r||{}).fs||el,i=nl(t,r);return n.writeFileSync(e,i,r)}};const sl=zc;var al={readJson:sl(ol.readFile),readJsonSync:ol.readFileSync,writeJson:sl(ol.writeFile),writeJsonSync:ol.writeFileSync};const pl=wd.pathExists;al.outputJson=zc(function(e,r,n,i){"function"==typeof n&&(i=n,n={});const o=t.dirname(e);pl(o,(t,s)=>t?i(t):s?al.writeJson(e,r,n,i):void sd.mkdirs(o,t=>{if(t)return i(t);al.writeJson(e,r,n,i)}))}),al.outputJsonSync=function(e,r,n){const i=t.dirname(e);Kc.existsSync(i)||sd.mkdirsSync(i),al.writeJsonSync(e,r,n)},al.outputJSON=al.outputJson,al.outputJSONSync=al.outputJsonSync,al.writeJSON=al.writeJson,al.writeJSONSync=al.writeJsonSync,al.readJSON=al.readJson,al.readJSONSync=al.readJsonSync;var ul=al;const cl=vd.copySync,dl=$d.removeSync,ll=sd.mkdirpSync;function ml(e,t,r){try{Kc.renameSync(e,t)}catch(n){if("EXDEV"!==n.code)throw n;return function(e,t,r){return cl(e,t,{overwrite:r,errorOnExist:!0}),dl(e)}(e,t,r)}}var gl={moveSync:function(e,r,n){const i=(n=n||{}).overwrite||n.clobber||!1,{srcStat:o}=gd.checkPathsSync(e,r,"move");return gd.checkParentPathsSync(e,o,r,"move"),ll(t.dirname(r)),function(e,t,r){if(r)return dl(t),ml(e,t,r);if(Kc.existsSync(t))throw new Error("dest already exists.");return ml(e,t,r)}(e,r,i)}};const hl=Ad.copy,yl=$d.remove,fl=sd.mkdirp,bl=wd.pathExists;function _l(e,t,r,n){Kc.rename(e,t,i=>i?"EXDEV"!==i.code?n(i):function(e,t,r,n){hl(e,t,{overwrite:r,errorOnExist:!0},t=>t?n(t):yl(e,n))}(e,t,r,n):n())}var vl={move:zc(function(e,r,n,i){"function"==typeof n&&(i=n,n={});const o=n.overwrite||n.clobber||!1;gd.checkPaths(e,r,"move",(n,s)=>{if(n)return i(n);const{srcStat:a}=s;gd.checkParentPaths(e,a,r,"move",n=>{if(n)return i(n);fl(t.dirname(r),t=>t?i(t):function(e,t,r,n){if(r)return yl(t,i=>i?n(i):_l(e,t,r,n));bl(t,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):_l(e,t,r,n))}(e,r,o,i))})})})};const wl=wd.pathExists;var ql={outputFile:zc(function(e,r,n,i){"function"==typeof n&&(i=n,n="utf8");const o=t.dirname(e);wl(o,(t,s)=>t?i(t):s?Kc.writeFile(e,r,n,i):void sd.mkdirs(o,t=>{if(t)return i(t);Kc.writeFile(e,r,n,i)}))}),outputFileSync:function(e,...r){const n=t.dirname(e);if(Kc.existsSync(n))return Kc.writeFileSync(e,...r);sd.mkdirsSync(n),Kc.writeFileSync(e,...r)}},El=b(function(e){e.exports=Object.assign({},Qc,vd,Ad,Hd,rl,ul,sd,gl,vl,ql,wd,$d),Object.getOwnPropertyDescriptor(p,"promises")&&Object.defineProperty(e.exports,"promises",{get:()=>p.promises})});const{publishSizes:Tl,publishDiff:kl}=Bc,{noop:Sl,toFileMap:Ol,toMap:jl,dedupe:Pl}={noop:function(e){return e},toMap:function(e,t){return e.reduce((e,r,n)=>(e[r]=t[n],e),{})},dedupe:function(e,t,r){return r.indexOf(e)===t},toFileMap:function(e){return e.reduce((e,t)=>(t.size&&(e[t.filename]=t.size),e),{})}},Cl=ea(cp),Al=nu.sync;Al.file=(e,t)=>new Promise((r,n)=>{const i=El.createReadStream(e);i.on("error",n);const o=i.pipe(nu.stream(t));o.on("error",n),o.on("brotli-size",r)});const Rl=e=>Buffer.byteLength(e);Rl.file=async e=>(await El.stat(e)).size;const xl={brotli:Al,gzip:Op,none:Rl};async function Gl(e){try{return(await El.readJSON(e)).sort((e,t)=>t.timestamp-e.timestamp)}catch(e){return[]}}const Fl=function(e){try{let t=!1;const r=h(function(){return Promise.resolve(p.promises.access(e,p.constants.F_OK)).then(function(){return t=!0,!0})},function(){});return Promise.resolve(r&&r.then?r.then(function(e){return!!t&&e}):!!t&&r)}catch(e){return Promise.reject(e)}};function Il(e){if(e)return console.log(`Striping hash from build chunks using '${e}' pattern.`),function(t){return t.replace(new RegExp(e),(e,...t)=>{if((t=t.slice(0,-2).filter(e=>null!=e)).length){for(let r=0;r0?"+":"")+ru(e);return e&&Math.abs(e)>1&&(r+=` (${Math.abs(t)}%)`),r}function Dl(e){let t="";return e>=50?t="🆘":e>=20?t="🚨":e>=10?t="⚠ī¸":e>=5?t="🔍":e<=-50?t="🏆":e<=-20?t="🎉":e<=-10?t="👏":e<=-5&&(t="✅"),t}function Ul(e){return/^(1|true|yes)$/.test(e)}!function(){try{const e=h(function(){const e=q("repo-token",{required:!0}),r=new Ni(e);return Promise.resolve(function(e,r,n){try{const{number:i}=r.issue,o=r.payload.pull_request;try{T("pr"+JSON.stringify(o,null,2))}catch(e){}if(!o)throw Error('Could not retrieve PR information. Only "pull_request" triggered workflows are currently supported.');const s=new class{constructor(e){const r=e||{};r.pattern=r.pattern||"**/*.{mjs,js,jsx,css,html}",r.filename=r.filename||"size-plugin.json",r.writeFile=!1!==r.writeFile,r.stripHash=r.stripHash||Sl,r.filepath=t.join(process.cwd(),r.filename),r.mode=r.mode||process.env.NODE_ENV,r.compression=r.compression||"gzip",this.compressionSize=xl[r.compression],this.options=r}filterFiles(e){const t=Pa.filter(this.options.pattern),r=this.options.exclude?Pa.filter(this.options.exclude):()=>!1;return e.filter(e=>t(e)&&!r(e))}async readFromDisk(e){const r=await Cl(this.options.pattern,{cwd:e,ignore:this.options.exclude}),n=await Promise.all(this.filterFiles(r).map(r=>this.compressionSize.file(t.join(e,r)).catch(()=>null)));return jl(r.map(e=>this.options.stripHash(e)),n)}async getPreviousSizes(e){const t=await Gl(this.options.filepath);if(t.length){const[{files:e}]=t;return Ol(e)}return this.readFromDisk(e)}async getSizes(e){const t=this.filterFiles(Object.keys(e)),r=await Promise.all(t.map(t=>this.compressionSize(e[t].source)));return jl(t.map(e=>this.options.stripHash(e)),r)}async getDiff(e,t){const r=[...Object.keys(e),...Object.keys(t)].filter(Pl),n=[];for(const i of r){const r=t[i]||0;n.push({filename:i,size:r,delta:r-(e[i]||0)})}return n}async printSizes(e){const t=Math.max(...e.map(e=>e.filename.length),this.options.columnWidth||0);let r="";const n=[];for(const i of e){const e=i.filename,o=i.size,s=i.delta,a=new Array(t-e.length+2).join(" ")+e+" ⏤ ",p=o>102400?"red":o>40960?"yellow":o>20480?"cyan":"green";let u=Zp[p](ru(o)),c="";s&&Math.abs(s)>1&&(c=(s>0?"+":"")+ru(s),s>1024?(u=Zp.bold(u),c=Zp.red(c)):s<-10&&(c=Zp.green(c)),u+=` (${c})`);let d=a+u+"\n";const l={name:e,size:o,sizeText:u,delta:s,deltaText:c,msg:a,color:p};n.push(l),this.options.decorateItem&&(d=this.options.decorateItem(d,l)||d),r+=d}if(this.options.decorateAfter){const t=this.options.decorateAfter({sizes:n,raw:e,output:r});t&&(r+="\n"+t.replace(/^\n/g,""))}return r}async uploadSizes(e){const t={timestamp:Date.now(),files:e};if(this.options.save&&await this.options.save(t),this.options.publish&&await kl(t,this.options.filename),"production"===this.options.mode&&t.files.some(e=>0!==e.delta)){const e=await Gl(this.options.filepath);e.unshift(t),this.options.writeFile&&(await El.ensureFile(this.options.filename),await El.writeJSON(this.options.filename,e)),this.options.publish&&await Tl(e,this.options.filename)}}async execute(e,t){const r=await(this.options.getPreviousSizes||this.getPreviousSizes).call(this,t),n=await(this.options.getSizes||this.getSizes).call(this,e),i=await(this.options.getDiff||this.getDiff).call(this,r,n),o=await(this.options.printSizes||this.printSizes).call(this,i);return await(this.options.uploadSizes||this.uploadSizes).call(this,i),o}}({compression:q("compression"),pattern:q("pattern")||"**/dist/**/*.js",exclude:q("exclude")||"{**/*.map,**/node_modules/**}",stripHash:Il(q("strip-hash"))});console.log(`PR #${i} is targetted at ${o.base.ref} (${o.base.sha})`);const a=q("build-script")||"build",p=process.cwd();return Promise.resolve(Fl(t.resolve(p,"yarn.lock"))).then(function(u){return Promise.resolve(Fl(t.resolve(p,"package-lock.json"))).then(function(t){let c="npm",d="npm install";return u?d=c="yarn --frozen-lockfile":t&&(d="npm ci"),k("[current] Install Dependencies"),console.log(`Installing using ${d}`),Promise.resolve(Vi(d)).then(function(){return S(),k(`[current] Build using ${c}`),console.log(`Building using ${c} run ${a}`),Promise.resolve(Vi(`${c} run ${a}`)).then(function(){return S(),Promise.resolve(s.readFromDisk(p)).then(function(t){let u;function l(l){function m(u){return S(),k("[base] Install Dependencies"),Promise.resolve(Vi(d)).then(function(){return S(),k(`[base] Build using ${c}`),Promise.resolve(Vi(`${c} run ${a}`)).then(function(){return S(),Promise.resolve(s.readFromDisk(p)).then(function(a){return Promise.resolve(s.getDiff(a,t)).then(function(t){return k("Size Differences:"),Promise.resolve(s.printSizes(t)).then(function(s){function a(){u&&console.log(`\n\t\t\tError: compressed-size-action was unable to comment on your PR.\n\t\t\tThis can happen for PR's originating from a fork without write permissions.\n\t\t\tYou can copy the size table directly into a comment using the markdown below:\n\t\t\t\n\n${d.body}\n\n\n\t\t`.replace(/^(\t| )+/gm,"")),console.log("All done!")}console.log(s),S();const p=function(e,{showTotal:t,collapseUnchanged:r,omitUnchanged:n,minimumChangeThreshold:i}){let o="| Filename | Size | Change | |\n";o+="|:--- |:---:|:---:|:---:|\n";let s=o,a=0,p=0,u=0,c=0;for(const t of e){const{filename:e,size:d,delta:l}=t;a+=d,p+=l;const m=l/d*100|0;let g=Ll(l,m),h=Dl(m);const y=`| \`${e}\` | ${ru(d)} | ${g} | ${h} |\n`,f=Math.abs(l)ℹī¸ View Unchanged\n\n${s}\n\n\n\n`),t){const e=p/a*100|0;let t=Ll(p,e),r=Dl(e);o=`**Total Size:** ${ru(a)}\n\n${o}`,o=`**Size Change:** ${t} ${r}\n\n${o}`}return o}(t,{collapseUnchanged:Ul(q("collapse-unchanged")),omitUnchanged:Ul(q("omit-unchanged")),showTotal:Ul(q("show-total")),minimumChangeThreshold:parseInt(q("minimum-change-threshold"),10)});let u=!1;const c={...r.repo,issue_number:i},d={...c,body:p+'\n\ncompressed-size-action'},l=function(){if(!Ul(q("use-check"))){function t(){function t(){function t(){S()}const i=function(){if(!n){console.log("Creating new comment");const t=h(function(){return Promise.resolve(e.issues.createComment(d)).then(function(){})},function(t){console.log(`Error creating comment: ${t.message}`),console.log("Submitting a PR review comment instead...");const n=h(function(){const t=r.issue||o;return Promise.resolve(e.pulls.createReview({owner:t.owner,repo:t.repo,pull_number:t.number,event:"COMMENT",body:d.body})).then(function(){})},function(){console.log("Error creating PR review."),u=!0});return n&&n.then?n.then(function(){}):void 0});if(t&&t.then)return t.then(function(){})}}();return i&&i.then?i.then(t):t()}const i=function(){if(n){console.log(`Updating previous comment #${n}`);const t=h(function(){return Promise.resolve(e.issues.updateComment({...r.repo,comment_id:n,body:d.body})).then(function(){})},function(e){console.log("Error editing previous comment: "+e.message),n=null});if(t&&t.then)return t.then(function(){})}}();return i&&i.then?i.then(t):t()}let n;k("Updating stats PR comment");const i=h(function(){return Promise.resolve(e.issues.listComments(c)).then(function(e){const t=e.data;for(let e=t.length;e--;){const r=t[e];if("Bot"===r.user.type&&/[\s\n]*(compressed|gzip)-size-action/.test(r.body))return void(n=r.id)}})},function(e){console.log("Error checking for previous comments: "+e.message)});return i&&i.then?i.then(t):t()}{const t=function(){if(n)return Promise.resolve(function(e,t){try{return Promise.resolve(e.checks.create({...t.repo,name:"Compressed Size",head_sha:t.payload.pull_request.head.sha,status:"in_progress"})).then(function(r){return function(n){try{return Promise.resolve(e.checks.update({...t.repo,check_run_id:r.data.id,completed_at:(new Date).toISOString(),status:"completed",...n})).then(function(){})}catch(e){return Promise.reject(e)}}})}catch(e){return Promise.reject(e)}}(e,r)).then(function(e){return Promise.resolve(e({conclusion:"success",output:{title:"Compressed Size Action",summary:p}})).then(function(){})});u=!0}();if(t&&t.then)return t.then(function(){})}}();return l&&l.then?l.then(a):a()})})})})})}console.log("checking out and building base commit");const g=h(function(){if(!u)throw Error("missing context.payload.base.ref");return Promise.resolve(Vi(`git reset --hard ${u}`)).then(function(){})},function(){return Promise.resolve(Vi(`git reset --hard ${o.base.sha}`)).then(function(){})});return g&&g.then?g.then(m):m()}k("[base] Checkout target branch");const m=h(function(){if(u=r.payload.base.ref,!u)throw Error("missing context.payload.pull_request.base.ref");return Promise.resolve(Vi(`git fetch -n origin ${r.payload.pull_request.base.ref}`)).then(function(){console.log("successfully fetched base.ref")})},function(e){console.log("fetching base.ref failed",e.message);const t=h(function(){return Promise.resolve(Vi(`git fetch -n origin ${o.base.sha}`)).then(function(){console.log("successfully fetched base.sha")})},function(e){console.log("fetching base.sha failed",e.message);const t=h(function(){return Promise.resolve(Vi("git fetch -n")).then(function(){})},function(e){console.log("fetch failed",e.message)});return t&&t.then?t.then(function(){}):void 0});return t&&t.then?t.then(function(){}):void 0});return m&&m.then?m.then(l):l()})})})})})}catch(e){return Promise.reject(e)}}(r,Mi,e)).then(function(){})},function(e){E(e.message)});e&&e.then&&e.then(function(){})}catch(e){Promise.reject(e)}}(); +var t}function j(e){var t,r;return!1!==O(e)&&"function"==typeof(t=e.constructor)&&!1!==O(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")}var P={__proto__:null,getUserAgent:function(){return"{}".userAgent}},C=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r,n=(r=j)&&"object"==typeof r&&"default"in r?r.default:r;function i(e,t,r){if("string"==typeof t){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else r=Object.assign({},t);var i;r.headers=(i=r.headers)?Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}):{};const o=function e(t,r){const i=Object.assign({},t);return Object.keys(r).forEach(o=>{n(r[o])&&o in t?i[o]=e(t[o],r[o]):Object.assign(i,{[o]:r[o]})}),i}(e||{},r);return e&&e.mediaType.previews.length&&(o.mediaType.previews=e.mediaType.previews.filter(e=>!o.mediaType.previews.includes(e)).concat(o.mediaType.previews)),o.mediaType.previews=o.mediaType.previews.map(e=>e.replace(/-preview/,"")),o}const o=/\{[^}]+\}/g;function s(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function a(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function p(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function u(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function c(e,t,r){return t="+"===e||"#"===e?p(t):u(t),r?u(r)+"="+t:t}function d(e){return null!=e}function l(e){return";"===e||"&"===e||"?"===e}function m(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,n,i){if(n){let e="";const i=[];if(-1!==r.indexOf(n.charAt(0))&&(e=n.charAt(0),n=n.substr(1)),n.split(/,/g).forEach(function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);i.push(function(e,t,r,n){var i=e[r],o=[];if(d(i)&&""!==i)if("string"==typeof i||"number"==typeof i||"boolean"==typeof i)i=i.toString(),n&&"*"!==n&&(i=i.substring(0,parseInt(n,10))),o.push(c(t,i,l(t)?r:""));else if("*"===n)Array.isArray(i)?i.filter(d).forEach(function(e){o.push(c(t,e,l(t)?r:""))}):Object.keys(i).forEach(function(e){d(i[e])&&o.push(c(t,i[e],e))});else{const e=[];Array.isArray(i)?i.filter(d).forEach(function(r){e.push(c(t,r))}):Object.keys(i).forEach(function(r){d(i[r])&&(e.push(u(r)),e.push(c(t,i[r].toString())))}),l(t)?o.push(u(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?d(i)&&o.push(u(r)):""!==i||"&"!==t&&"?"!==t?""===i&&o.push(""):o.push(u(r)+"=");return o}(t,e,n[1],n[2]||n[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==i.length?e:"")+i.join(o)}return i.join(",")}return p(i)})}function g(e){let t,r=e.method.toUpperCase(),n=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}"),i=Object.assign({},e.headers),p=a(e,["method","baseUrl","url","headers","request","mediaType"]);const u=function(e){const t=e.match(o);return t?t.map(s).reduce((e,t)=>e.concat(t),[]):[]}(n);var c;n=(c=n,{expand:m.bind(null,c)}).expand(p),/^http/.test(n)||(n=e.baseUrl+n);const d=a(p,Object.keys(e).filter(e=>u.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(i.accept)&&(e.mediaType.format&&(i.accept=i.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),e.mediaType.previews.length)){const t=i.accept.match(/[\w-]+(?=-preview)/g)||[];i.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?n=function(e,t){const r=/\?/.test(e)?"&":"?",n=Object.keys(t);return 0===n.length?e:e+r+n.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(n,d):"data"in d?t=d.data:Object.keys(d).length?t=d:i["content-length"]=0,i["content-type"]||void 0===t||(i["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:n,headers:i},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function h(e,t,r){return g(i(e,t,r))}const y=function e(t,r){const n=i(t,r),o=h.bind(null,n);return Object.assign(o,{DEFAULTS:n,defaults:e.bind(null,n),merge:i.bind(null,n),parse:g})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/5.5.1 ${P.getUserAgent()}`},mediaType:{format:"",previews:[]}});t.endpoint=y});f(C);const A=n.Readable,R=Symbol("buffer"),x=Symbol("type");class G{constructor(){this[x]="";const e=arguments[0],t=arguments[1],r=[];if(e){const t=e,n=Number(t.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},i=r.size;let o=void 0===i?0:i;var s=r.timeout;let a=void 0===s?0:s;null==e?e=null:N(e)?e=Buffer.from(e.toString()):$(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[L]={body:e,disturbed:!1,error:null},this.size=o,this.timeout=a,e instanceof n&&e.on("error",function(e){const r="AbortError"===e.name?e:new F(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[L].error=r})}function M(){var e=this;if(this[L].disturbed)return U.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[L].disturbed=!0,this[L].error)return U.Promise.reject(this[L].error);let t=this.body;if(null===t)return U.Promise.resolve(Buffer.alloc(0));if($(t)&&(t=t.stream()),Buffer.isBuffer(t))return U.Promise.resolve(t);if(!(t instanceof n))return U.Promise.resolve(Buffer.alloc(0));let r=[],i=0,o=!1;return new U.Promise(function(n,s){let a;e.timeout&&(a=setTimeout(function(){o=!0,s(new F(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(o=!0,s(t)):s(new F(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!o&&null!==t){if(e.size&&i+t.length>e.size)return o=!0,void s(new F(`content size at ${e.url} over limit: ${e.size}`,"max-size"));i+=t.length,r.push(t)}}),t.on("end",function(){if(!o){clearTimeout(a);try{n(Buffer.concat(r,i))}catch(t){s(new F(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function N(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function $(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function B(e){let t,r,i=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof n&&"function"!=typeof i.getBoundary&&(t=new D,r=new D,i.pipe(t),i.pipe(r),e[L].body=t,i=r),i}function z(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":N(e)?"application/x-www-form-urlencoded;charset=UTF-8":$(e)?e.type||null:Buffer.isBuffer(e)?null:"[object ArrayBuffer]"===Object.prototype.toString.call(e)?null:ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof n?null:"text/plain;charset=UTF-8"}function H(e){const t=e.body;return null===t?0:$(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}U.prototype={get body(){return this[L].body},get bodyUsed(){return this[L].disturbed},arrayBuffer(){return M.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return M.call(this).then(function(t){return Object.assign(new G([],{type:e.toLowerCase()}),{[R]:t})})},json(){var e=this;return M.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return U.Promise.reject(new F(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return M.call(this).then(function(e){return e.toString()})},buffer(){return M.call(this)},textConverted(){var e=this;return M.call(this).then(function(t){return function(e,t){if("function"!=typeof I)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let n,i,o="utf-8";return r&&(n=/charset=([^;]*)/i.exec(r)),i=e.slice(0,1024).toString(),!n&&i&&(n=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[Q]=Object.create(null),e instanceof Z){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e))this.append(t,e[t])}}}get(e){J(e=`${e}`);const t=K(this[Q],e);return void 0===t?null:this[Q][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=X(this),n=0;for(;n1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[Q]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[Q][t].join(", ")}:function(t){return[t.toLowerCase(),e[Q][t].join(", ")]})}Z.prototype.entries=Z.prototype[Symbol.iterator],Object.defineProperty(Z.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Z.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const ee=Symbol("internal");function te(e,t){const r=Object.create(re);return r[ee]={target:e,kind:t,index:0},r}const re=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==re)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[ee];const t=e.index,r=X(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[ee].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function ne(e){const t=Object.assign({__proto__:null},e[Q]),r=K(e[Q],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(re,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const ie=Symbol("Response internals"),oe=i.STATUS_CODES;class se{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};U.call(this,e,t);const r=t.status||200,n=new Z(t.headers);if(null!=e&&!n.has("Content-Type")){const t=z(e);t&&n.append("Content-Type",t)}this[ie]={url:t.url,status:r,statusText:t.statusText||oe[r],headers:n,counter:t.counter}}get url(){return this[ie].url||""}get status(){return this[ie].status}get ok(){return this[ie].status>=200&&this[ie].status<300}get redirected(){return this[ie].counter>0}get statusText(){return this[ie].statusText}get headers(){return this[ie].headers}clone(){return new se(B(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}U.mixIn(se.prototype),Object.defineProperties(se.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(se.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const ae=Symbol("Request internals"),pe=o.parse,ue=o.format,ce="destroy"in n.Readable.prototype;function de(e){return"object"==typeof e&&"object"==typeof e[ae]}class le{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};de(e)?t=pe(e.url):(t=pe(e&&e.href?e.href:`${e}`),e={});let n=r.method||e.method||"GET";if(n=n.toUpperCase(),(null!=r.body||de(e)&&null!==e.body)&&("GET"===n||"HEAD"===n))throw new TypeError("Request with GET/HEAD method cannot have body");let i=null!=r.body?r.body:de(e)&&null!==e.body?B(e):null;U.call(this,i,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const o=new Z(r.headers||e.headers||{});if(null!=i&&!o.has("Content-Type")){const e=z(i);e&&o.append("Content-Type",e)}let s=de(e)?e.signal:null;if("signal"in r&&(s=r.signal),null!=s&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(s))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[ae]={method:n,redirect:r.redirect||e.redirect||"follow",headers:o,parsedURL:t,signal:s},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[ae].method}get url(){return ue(this[ae].parsedURL)}get headers(){return this[ae].headers}get redirect(){return this[ae].redirect}get signal(){return this[ae].signal}clone(){return new le(this)}}function me(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}U.mixIn(le.prototype),Object.defineProperty(le.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(le.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(me.prototype=Object.create(Error.prototype)).constructor=me,me.prototype.name="AbortError";const ge=n.PassThrough,he=o.resolve;function ye(e,t){if(!ye.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return U.Promise=ye.Promise,new ye.Promise(function(r,o){const p=new le(e,t),u=function(e){const t=e[ae].parsedURL,r=new Z(e[ae].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!ce)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let i=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(i="0"),null!=e.body){const t=H(e);"number"==typeof t&&(i=String(t))}i&&r.set("Content-Length",i),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let o=e.agent;return"function"==typeof o&&(o=o(t)),r.has("Connection")||o||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:ne(r),agent:o})}(p),c=("https:"===u.protocol?s:i).request,d=p.signal;let l=null;const m=function(){let e=new me("The user aborted a request.");o(e),p.body&&p.body instanceof n.Readable&&p.body.destroy(e),l&&l.body&&l.body.emit("error",e)};if(d&&d.aborted)return void m();const g=function(){m(),f()},h=c(u);let y;function f(){h.abort(),d&&d.removeEventListener("abort",g),clearTimeout(y)}d&&d.addEventListener("abort",g),p.timeout&&h.once("socket",function(e){y=setTimeout(function(){o(new F(`network timeout at: ${p.url}`,"request-timeout")),f()},p.timeout)}),h.on("error",function(e){o(new F(`request to ${p.url} failed, reason: ${e.message}`,"system",e)),f()}),h.on("response",function(e){clearTimeout(y);const t=function(e){const t=new Z;for(const r of Object.keys(e))if(!W.test(r))if(Array.isArray(e[r]))for(const n of e[r])V.test(n)||(void 0===t[Q][r]?t[Q][r]=[n]:t[Q][r].push(n));else V.test(e[r])||(t[Q][r]=[e[r]]);return t}(e.headers);if(ye.isRedirect(e.statusCode)){const n=t.get("Location"),i=null===n?null:he(p.url,n);switch(p.redirect){case"error":return o(new F(`redirect mode is set to error: ${p.url}`,"no-redirect")),void f();case"manual":if(null!==i)try{t.set("Location",i)}catch(e){o(e)}break;case"follow":if(null===i)break;if(p.counter>=p.follow)return o(new F(`maximum redirect reached at: ${p.url}`,"max-redirect")),void f();const n={headers:new Z(p.headers),follow:p.follow,counter:p.counter+1,agent:p.agent,compress:p.compress,method:p.method,body:p.body,signal:p.signal,timeout:p.timeout};return 303!==e.statusCode&&p.body&&null===H(p)?(o(new F("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==p.method)||(n.method="GET",n.body=void 0,n.headers.delete("content-length")),r(ye(new le(i,n))),void f())}}e.once("end",function(){d&&d.removeEventListener("abort",g)});let n=e.pipe(new ge);const i={url:p.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:p.size,timeout:p.timeout,counter:p.counter},s=t.get("Content-Encoding");if(!p.compress||"HEAD"===p.method||null===s||204===e.statusCode||304===e.statusCode)return l=new se(n,i),void r(l);if("gzip"==s||"x-gzip"==s)return n=n.pipe(a.createGunzip({flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH})),l=new se(n,i),void r(l);if("deflate"!=s&&"x-deflate"!=s){if("br"==s&&"function"==typeof a.createBrotliDecompress)return n=n.pipe(a.createBrotliDecompress()),l=new se(n,i),void r(l);l=new se(n,i),r(l)}else e.pipe(new ge).once("data",function(e){n=n.pipe(8==(15&e[0])?a.createInflate():a.createInflateRaw()),l=new se(n,i),r(l)})}),function(e,t){const r=t.body;null===r?e.end():$(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(h,p)})}ye.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},ye.Promise=global.Promise;var fe={__proto__:null,default:ye,Headers:Z,Request:le,Response:se,FetchError:F};class be extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var _e={__proto__:null,Deprecation:be},ve=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){for(var e=new Array(arguments.length),r=0;rconsole.warn(e));class i extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,Object.defineProperty(this,"code",{get:()=>(n(new _e.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),this.headers=r.headers||{};const i=Object.assign({},r.request);r.request.headers.authorization&&(i.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=i}}t.RequestError=i});f(ke);var Se=_(fe),Oe=b(function(e,t){function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var n=r(j),i=r(Se);function o(e){(n(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,o={};return(e.request&&e.request.fetch||i)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(n=>{r=n.url,t=n.status;for(const e of n.headers)o[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new ke.RequestError(n.statusText,t,{headers:o,request:e})}if(304===t)throw new ke.RequestError("Not modified",t,{headers:o,request:e});if(t>=400)return n.text().then(r=>{const n=new ke.RequestError(r,t,{headers:o,request:e});try{let e=JSON.parse(n.message);Object.assign(n,e),n.message=n.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw n});const i=n.headers.get("content-type");return/application\/json/.test(i)?n.json():!i||/^text\/|charset=utf-8$/.test(i)?n.text():function(e){return e.arrayBuffer()}(n)}).then(e=>({status:t,url:r,headers:o,data:e})).catch(t=>{if(t instanceof ke.RequestError)throw t;throw new ke.RequestError(t.message,500,{headers:o,request:e})})}const s=function e(t,r){const n=t.defaults(r);return Object.assign(function(t,r){const i=n.merge(t,r);if(!i.request||!i.request.hook)return o(n.parse(i));const s=(e,t)=>o(n.parse(n.merge(e,t)));return Object.assign(s,{endpoint:n,defaults:e.bind(null,n)}),i.request.hook(s,i)},{endpoint:n,defaults:e.bind(null,n)})}(C.endpoint,{headers:{"user-agent":`octokit-request.js/5.3.1 ${P.getUserAgent()}`}});t.request=s});f(Oe);var je=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e,t){super(t.data.errors[0].message),Object.assign(this,t.data),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const n=["method","baseUrl","url","headers","request","query"];function i(e,t){const o=e.defaults(t);return Object.assign((e,t)=>function(e,t,i){i=i="string"==typeof t?Object.assign({query:t},i):t;const o=Object.keys(i).reduce((e,t)=>n.includes(t)?(e[t]=i[t],e):(e.variables||(e.variables={}),e.variables[t]=i[t],e),{});return e(o).then(e=>{if(e.data.errors)throw new r(o,{data:e.data});return e.data.data})}(o,e,t),{defaults:i.bind(null,o),endpoint:Oe.request.endpoint})}const o=i(Oe.request,{headers:{"user-agent":`octokit-graphql.js/4.3.1 ${P.getUserAgent()}`},method:"POST",url:"/graphql"});t.graphql=o,t.withCustomRequest=function(e){return i(e,{method:"POST",url:"/graphql"})}});f(je);var Pe=function e(t,r,n,i){if("function"!=typeof n)throw new Error("method for before hook must be a function");return i||(i={}),Array.isArray(r)?r.reverse().reduce(function(r,n){return e.bind(null,t,n,r,i)},n)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,i)},n)():n(i)})},Ce=function(e,t,r,n){var i=n;e.registry[r]||(e.registry[r]=[]),"before"===t&&(n=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}),"after"===t&&(n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){return i(r=e,t)}).then(function(){return r})}),"error"===t&&(n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return i(e,t)})}),e.registry[r].push({hook:n,orig:i})},Ae=function(e,t,r){if(e.registry[t]){var n=e.registry[t].map(function(e){return e.orig}).indexOf(r);-1!==n&&e.registry[t].splice(n,1)}},Re=Function.bind,xe=Re.bind(Re);function Ge(e,t,r){var n=xe(Ae,null).apply(null,r?[t,r]:[t]);e.api={remove:n},e.remove=n,["before","error","after","wrap"].forEach(function(n){var i=r?[t,n,r]:[t,n];e[n]=e.api[n]=xe(Ce,null).apply(null,i)})}function Fe(){var e={registry:{}},t=Pe.bind(null,e);return Ge(t,e),t}var Ie=!1;function Le(){return Ie||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),Ie=!0),Fe()}Le.Singular=function(){var e={registry:{}},t=Pe.bind(null,e,"h");return Ge(t,e,"h"),t}.bind(),Le.Collection=Fe.bind();var De=Le,Ue=Le.Singular,Me=Le.Collection;De.Hook=Le,De.Singular=Ue,De.Collection=Me;var Ne="@octokit/rest",$e={access:"public"},Be="GitHub REST API client for Node.js",ze=["octokit","github","rest","api-client"],He="Gregor Martynus (https://github.com/gr2m)",We=[{name:"Mike de Boer",email:"info@mikedeboer.nl"},{name:"Fabian Jakobs",email:"fabian@c9.io"},{name:"Joe Gallo",email:"joe@brassafrax.com"},{name:"Gregor Martynus",url:"https://github.com/gr2m"}],Ve="https://github.com/octokit/rest.js",Je={"@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0",deprecation:"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0",once:"^1.4.0","universal-user-agent":"^4.0.0"},Ye={"@gimenete/type-writer":"^0.1.3","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0",bundlesize:"^0.18.0",chai:"^4.1.2","compression-webpack-plugin":"^3.0.0",cypress:"^3.0.0",glob:"^7.1.2","http-proxy-agent":"^3.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1",mkdirp:"^0.5.1",mocha:"^6.0.0",mustache:"^4.0.0",nock:"^11.3.3","npm-run-all":"^4.1.2",nyc:"^15.0.0",prettier:"^1.14.2",proxy:"^1.0.0","semantic-release":"^16.0.0",sinon:"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0",typescript:"^3.3.1",webpack:"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},Ke={coverage:"nyc report --reporter=html && open coverage/index.html",lint:"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json",pretest:"npm run -s lint",test:'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',"test:browser":"cypress run --browser chrome",build:"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:code":"node scripts/update-endpoints/code","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},Qe=["index.js","index.d.ts","lib","plugins"],Ze={ignore:["test"]},Xe={publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},et=[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],tt="https://registry.npmjs.org/@octokit/rest/-/rest-16.37.0.tgz",rt="sha512-qLPK9FOCK4iVpn6ghknNuv/gDDxXQG6+JBQvoCwWjQESyis9uemakjzN36nvvp8SCny7JuzHI2RV8ChbV5mYdQ==",nt="@octokit/rest@16.37.0",it=_({__proto__:null,name:Ne,version:"16.37.0",publishConfig:$e,description:Be,keywords:ze,author:He,contributors:We,repository:Ve,dependencies:Je,devDependencies:Ye,types:"index.d.ts",scripts:Ke,license:"MIT",files:Qe,nyc:Ze,release:Xe,bundlesize:et,_resolved:tt,_integrity:rt,_from:nt,default:{name:Ne,version:"16.37.0",publishConfig:$e,description:Be,keywords:ze,author:He,contributors:We,repository:Ve,dependencies:Je,devDependencies:Ye,types:"index.d.ts",scripts:Ke,license:"MIT",files:Qe,nyc:Ze,release:Xe,bundlesize:et,_resolved:tt,_integrity:rt,_from:nt}}),ot=function(e,t,r){e.headers&&(e.headers=Object.keys(e.headers).reduce((t,r)=>(t[r.toLowerCase()]=e.headers[r],t),{}));const n={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};e.baseUrl&&(n.baseUrl=e.baseUrl),e.userAgent&&(n.headers["user-agent"]=e.userAgent),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),e.timeout&&(pt(t,new st("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request")),n.request.timeout=e.timeout),e.agent&&(ut(t,new st("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request")),n.request.agent=e.agent),e.headers&&ct(t,new st("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"));const i=n.headers["user-agent"],o=`octokit.js/${it.version} ${at()}`;return n.headers["user-agent"]=[i,o].filter(Boolean).join(" "),n.request.hook=r.bind(null,"request"),n};const{Deprecation:st}=_e,{getUserAgent:at}=P,pt=we((e,t)=>e.warn(t)),ut=we((e,t)=>e.warn(t)),ct=we((e,t)=>e.warn(t));var dt=function(e,t){t=t||{};const r=new De.Collection,n=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log),i={hook:r,log:n,request:lt.defaults(ot(t,n,r))};return e.forEach(e=>e(i,t)),i};const{request:lt}=Oe;var mt=function(e,t){return gt(e.includes(t)?e:e.concat(t))},gt=function(e){const t=dt.bind(null,e||[]);return t.plugin=mt.bind(null,e||[]),t},ht=gt(),yt=function(e,t){if(bt(e.octokit.log,new ft('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.')),t){switch(t.type){case"basic":if(!t.username||!t.password)throw new Error("Basic authentication requires both a username and password to be set");break;case"oauth":if(!(t.token||t.key&&t.secret))throw new Error("OAuth2 authentication requires a token or key & secret to be set");break;case"token":case"app":if(!t.token)throw new Error("Token authentication requires a token to be set");break;default:throw new Error("Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'")}e.auth=t}else e.auth=!1};const{Deprecation:ft}=_e,bt=we((e,t)=>e.warn(t));var _t=function(e){return new Buffer(e).toString("base64")},vt=/^\[object .+?Constructor\]$/,wt="object"==typeof self&&self&&self.Object===Object&&self,qt="object"==typeof y&&y&&y.Object===Object&&y||wt||Function("return this")();function Et(e,t){return!(!e||!e.length)&&function(e,t,r){if(t!=t)return function(e,t,r,n){for(var i=e.length,o=-1;++o-1}function Tt(e){return e!=e}function kt(e,t){return e.has(t)}function St(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var Ot,jt=Array.prototype,Pt=Function.prototype,Ct=Object.prototype,At=qt["__core-js_shared__"],Rt=(Ot=/[^.]+$/.exec(At&&At.keys&&At.keys.IE_PROTO||""))?"Symbol(src)_1."+Ot:"",xt=Pt.toString,Gt=Ct.hasOwnProperty,Ft=Ct.toString,It=RegExp("^"+xt.call(Gt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lt=jt.splice,Dt=Jt(qt,"Map"),Ut=Jt(qt,"Set"),Mt=Jt(Object,"create");function Nt(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},$t.prototype.set=function(e,t){var r=this.__data__,n=Ht(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Bt.prototype.clear=function(){this.__data__={hash:new Nt,map:new(Dt||$t),string:new Nt}},Bt.prototype.delete=function(e){return Vt(this,e).delete(e)},Bt.prototype.get=function(e){return Vt(this,e).get(e)},Bt.prototype.has=function(e){return Vt(this,e).has(e)},Bt.prototype.set=function(e,t){return Vt(this,e).set(e,t),this},zt.prototype.add=zt.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},zt.prototype.has=function(e){return this.__data__.has(e)};var Wt=Ut&&1/St(new Ut([,-0]))[1]==1/0?function(e){return new Ut(e)}:function(){};function Vt(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Jt(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Yt(e)||(t=e,Rt&&Rt in t))&&(function(e){var t=Yt(e)?Ft.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?It:vt).test(function(e){if(null!=e){try{return xt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(r)?r:void 0}function Yt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var Kt=function(e,t){if(!e.auth.type)return;if("basic"===e.auth.type){const r=_t(`${e.auth.username}:${e.auth.password}`);return void(t.headers.authorization=`Basic ${r}`)}if("token"===e.auth.type)return void(t.headers.authorization=`token ${e.auth.token}`);if("app"===e.auth.type){t.headers.authorization=`Bearer ${e.auth.token}`;const n=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");return void(t.headers.accept=(r=n,r&&r.length?function(e,t,r){var n=-1,i=Et,o=e.length,s=!0,a=[],p=a;if(o>=200){var u=Wt(e);if(u)return St(u);s=!1,i=kt,p=new zt}else p=a;e:for(;++ne.auth.on2fa()).then(t=>{const n=Object.assign(r,{headers:Object.assign({"x-github-otp":t},r.headers)});return e.octokit.request(n)})};const{RequestError:Zt}=ke,{Deprecation:Xt}=_e,er=we((e,t)=>e.warn(t));var tr=function(e){if(/^(basic|bearer|token) /i.test(e))return e;try{if(rr.test(Buffer.from(e,"base64").toString("binary")))return`basic ${e}`}catch(e){}return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`};const rr=/^[\w-]+:/;var nr=function(e,t){if("string"!=typeof e.auth){if(e.auth.username){const r=_t(`${e.auth.username}:${e.auth.password}`);return t.headers.authorization=`Basic ${r}`,void(e.otp&&(t.headers["x-github-otp"]=e.otp))}if(e.auth.clientId){if(/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(t.url)){const r=_t(`${e.auth.clientId}:${e.auth.clientSecret}`);return void(t.headers.authorization=`Basic ${r}`)}return t.url+=-1===t.url.indexOf("?")?"?":"&",void(t.url+=`client_id=${e.auth.clientId}&client_secret=${e.auth.clientSecret}`)}return Promise.resolve().then(()=>e.auth()).then(e=>{t.headers.authorization=tr(e)})}if(t.headers.authorization=tr(e.auth),/^bearer /i.test(e.auth)&&!/machine-man/.test(t.headers.accept)){const e=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");t.headers.accept=e.filter(Boolean).join(",")}},ir=function(e,t,r){if(!t.headers)throw t;const n=/required/.test(t.headers["x-github-otp"]||"");if(401!==t.status||!n)throw t;if(401===t.status&&n&&t.request&&t.request.headers["x-github-otp"]){if(!e.otp)throw new or("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r});delete e.otp}if("function"!=typeof e.auth.on2fa)throw new or("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r});return Promise.resolve().then(()=>e.auth.on2fa()).then(t=>{const n=Object.assign(r,{headers:Object.assign(r.headers,{"x-github-otp":t})});return e.octokit.request(n).then(r=>(e.otp=t,r))})};const{RequestError:or}=ke,{Deprecation:sr}=_e,ar=we((e,t)=>e.warn(t)),pr=we((e,t)=>e.warn(t)),ur=we((e,t)=>e.warn(t)),cr=/^\/search\//,dr=/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)/,lr=/^\/installation\/repositories/,mr=/^\/user\/installations/,gr=/^\/orgs\/[^/]+\/installations/;var hr=function(e,t){const r=t.headers;let n=e.request.endpoint(t).url;return{[Symbol.asyncIterator]:()=>({next:()=>n?e.request({url:n,headers:r}).then(t=>(function(e,t,r){const n=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");if(!(cr.test(n)||dr.test(n)||lr.test(n)||mr.test(n)||gr.test(n)))return;const i=r.data.incomplete_results,o=r.data.repository_selection,s=r.data.total_count;delete r.data.incomplete_results,delete r.data.repository_selection,delete r.data.total_count;const a=Object.keys(r.data)[0];r.data=r.data[a],Object.defineProperty(r.data,a,{get:()=>(ur(e.log,new sr(`[@octokit/rest] "result.data.${a}" is deprecated. Use "result.data" instead`)),r.data)}),void 0!==i&&Object.defineProperty(r.data,"incomplete_results",{get:()=>(ar(e.log,new sr('[@octokit/rest] "result.data.incomplete_results" is deprecated.')),i)}),void 0!==o&&Object.defineProperty(r.data,"repository_selection",{get:()=>(pr(e.log,new sr('[@octokit/rest] "result.data.repository_selection" is deprecated.')),o)}),Object.defineProperty(r.data,"total_count",{get:()=>(pr(e.log,new sr('[@octokit/rest] "result.data.total_count" is deprecated.')),s)})}(e,n,t),n=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:t})):Promise.resolve({done:!0})})}},yr=function(e,t,r,n){return"function"==typeof r&&(n=r,r=void 0),r=e.request.endpoint.merge(t,r),function e(t,r,n,i){return n.next().then(o=>{if(o.done)return r;let s=!1;return r=r.concat(i?i(o.value,function(){s=!0}):o.value.data),s?r:e(t,r,n,i)})}(e,[],hr(e,r)[Symbol.asyncIterator](),n)},fr=function(e,t){Object.keys(t).forEach(r=>{e[r]||(e[r]={}),Object.keys(t[r]).forEach(n=>{const i=t[r][n],o=["method","url","headers"].reduce((e,t)=>(void 0!==i[t]&&(e[t]=i[t]),e),{});o.request={validate:i.params};let s=e.request.defaults(o);if(Object.keys(i.params||{}).find(e=>i.params[e].deprecated)){const t=_r.bind(null,e,i);s=t(e.request.defaults(o),`.${r}.${n}()`),s.endpoint=t(s.endpoint,`.${r}.${n}.endpoint()`),s.endpoint.merge=t(s.endpoint.merge,`.${r}.${n}.endpoint.merge()`)}e[r][n]=i.deprecated?function(){return e.log.warn(new br(`[@octokit/rest] ${i.deprecated}`)),e[r][n]=s,s.apply(null,arguments)}:s})})};const{Deprecation:br}=_e;function _r(e,t,r,n){const i=i=>(i=Object.assign({},i),Object.keys(i).forEach(r=>{if(t.params[r]&&t.params[r].deprecated){const o=t.params[r].alias;e.log.warn(new br(`[@octokit/rest] "${r}" parameter is deprecated for "${n}". Use "${o}" instead`)),o in i||(i[o]=i[r]),delete i[r]}}),r(i));return Object.keys(r).forEach(e=>{i[e]=r[e]}),i}var vr={checkStarringRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},deleteRepoSubscription:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},deleteThreadSubscription:{method:"DELETE",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},getRepoSubscription:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},getThread:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},getThreadSubscription:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},listEventsForOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/orgs/:org"},listEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events"},listFeeds:{method:"GET",params:{},url:"/feeds"},listNotifications:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},since:{type:"string"}},url:"/notifications"},listNotificationsForRepo:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/notifications"},listPublicEvents:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/events"},listPublicEventsForOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/events"},listPublicEventsForRepoNetwork:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/networks/:owner/:repo/events"},listPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/public"},listReceivedEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events"},listReceivedPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events/public"},listRepoEvents:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/events"},listReposStarredByAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/user/starred"},listReposStarredByUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/starred"},listReposWatchedByUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/subscriptions"},listStargazersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stargazers"},listWatchedReposForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/subscriptions"},listWatchersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscribers"},markAsRead:{method:"PUT",params:{last_read_at:{type:"string"}},url:"/notifications"},markNotificationsAsReadForRepo:{method:"PUT",params:{last_read_at:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/notifications"},markThreadAsRead:{method:"PATCH",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},setRepoSubscription:{method:"PUT",params:{ignored:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},subscribed:{type:"boolean"}},url:"/repos/:owner/:repo/subscription"},setThreadSubscription:{method:"PUT",params:{ignored:{type:"boolean"},thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},starRepo:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},unstarRepo:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"}},wr={addRepoToInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"PUT",params:{installation_id:{required:!0,type:"integer"},repository_id:{required:!0,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},checkAccountIsAssociatedWithAny:{method:"GET",params:{account_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/accounts/:account_id"},checkAccountIsAssociatedWithAnyStubbed:{method:"GET",params:{account_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/stubbed/accounts/:account_id"},checkAuthorization:{deprecated:"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",method:"GET",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},checkToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"POST",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},createContentAttachment:{headers:{accept:"application/vnd.github.corsair-preview+json"},method:"POST",params:{body:{required:!0,type:"string"},content_reference_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/content_references/:content_reference_id/attachments"},createFromManifest:{headers:{accept:"application/vnd.github.fury-preview+json"},method:"POST",params:{code:{required:!0,type:"string"}},url:"/app-manifests/:code/conversions"},createInstallationToken:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"POST",params:{installation_id:{required:!0,type:"integer"},permissions:{type:"object"},repository_ids:{type:"integer[]"}},url:"/app/installations/:installation_id/access_tokens"},deleteAuthorization:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grant"},deleteInstallation:{headers:{accept:"application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:!0,type:"integer"}},url:"/app/installations/:installation_id"},deleteToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},findOrgInstallation:{deprecated:"octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/installation"},findRepoInstallation:{deprecated:"octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/installation"},findUserInstallation:{deprecated:"octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username/installation"},getAuthenticated:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{},url:"/app"},getBySlug:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{app_slug:{required:!0,type:"string"}},url:"/apps/:app_slug"},getInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:!0,type:"integer"}},url:"/app/installations/:installation_id"},getOrgInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/installation"},getRepoInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/installation"},getUserInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username/installation"},listAccountsUserOrOrgOnPlan:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/plans/:plan_id/accounts"},listAccountsUserOrOrgOnPlanStubbed:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/stubbed/plans/:plan_id/accounts"},listInstallationReposForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations/:installation_id/repositories"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/app/installations"},listInstallationsForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations"},listMarketplacePurchasesForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases"},listMarketplacePurchasesForAuthenticatedUserStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases/stubbed"},listPlans:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/plans"},listPlansStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/stubbed/plans"},listRepos:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/installation/repositories"},removeRepoFromInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:!0,type:"integer"},repository_id:{required:!0,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},resetAuthorization:{deprecated:"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",method:"POST",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},resetToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"PATCH",params:{access_token:{type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/token"},revokeAuthorizationForApplication:{deprecated:"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grants/:access_token"},revokeInstallationToken:{headers:{accept:"application/vnd.github.gambit-preview+json"},method:"DELETE",params:{},url:"/installation/token"}},qr={create:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{actions:{type:"object[]"},"actions[].description":{required:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,type:"string"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},head_sha:{required:!0,type:"string"},name:{required:!0,type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs"},createSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{head_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites"},get:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"},getSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_suite_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id"},listAnnotations:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id/annotations"},listForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},filter:{enum:["latest","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-runs"},listForSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},check_suite_id:{required:!0,type:"integer"},filter:{enum:["latest","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"},listSuitesForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{app_id:{type:"integer"},check_name:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-suites"},rerequestSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{check_suite_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"},setSuitesPreferences:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{auto_trigger_checks:{type:"object[]"},"auto_trigger_checks[].app_id":{required:!0,type:"integer"},"auto_trigger_checks[].setting":{required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites/preferences"},update:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{actions:{type:"object[]"},"actions[].description":{required:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,type:"string"},check_run_id:{required:!0,type:"integer"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},name:{type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"}},Er={getConductCode:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{key:{required:!0,type:"string"}},url:"/codes_of_conduct/:key"},getForRepo:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/community/code_of_conduct"},listConductCodes:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{},url:"/codes_of_conduct"}},Tr={get:{method:"GET",params:{},url:"/emojis"}},kr={checkIsStarred:{method:"GET",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},create:{method:"POST",params:{description:{type:"string"},files:{required:!0,type:"object"},"files.content":{type:"string"},public:{type:"boolean"}},url:"/gists"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments"},delete:{method:"DELETE",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},fork:{method:"POST",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/forks"},get:{method:"GET",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},getRevision:{method:"GET",params:{gist_id:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/gists/:gist_id/:sha"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists"},listComments:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/comments"},listCommits:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/commits"},listForks:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/forks"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/public"},listPublicForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/gists"},listStarred:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/starred"},star:{method:"PUT",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},unstar:{method:"DELETE",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/star"},update:{method:"PATCH",params:{description:{type:"string"},files:{type:"object"},"files.content":{type:"string"},"files.filename":{type:"string"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"}},Sr={createBlob:{method:"POST",params:{content:{required:!0,type:"string"},encoding:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/blobs"},createCommit:{method:"POST",params:{author:{type:"object"},"author.date":{type:"string"},"author.email":{type:"string"},"author.name":{type:"string"},committer:{type:"object"},"committer.date":{type:"string"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},parents:{required:!0,type:"string[]"},repo:{required:!0,type:"string"},signature:{type:"string"},tree:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits"},createRef:{method:"POST",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs"},createTag:{method:"POST",params:{message:{required:!0,type:"string"},object:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"},tagger:{type:"object"},"tagger.date":{type:"string"},"tagger.email":{type:"string"},"tagger.name":{type:"string"},type:{enum:["commit","tree","blob"],required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags"},createTree:{method:"POST",params:{base_tree:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tree:{required:!0,type:"object[]"},"tree[].content":{type:"string"},"tree[].mode":{enum:["100644","100755","040000","160000","120000"],type:"string"},"tree[].path":{type:"string"},"tree[].sha":{allowNull:!0,type:"string"},"tree[].type":{enum:["blob","tree","commit"],type:"string"}},url:"/repos/:owner/:repo/git/trees"},deleteRef:{method:"DELETE",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"},getBlob:{method:"GET",params:{file_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/blobs/:file_sha"},getCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits/:commit_sha"},getRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/ref/:ref"},getTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags/:tag_sha"},getTree:{method:"GET",params:{owner:{required:!0,type:"string"},recursive:{enum:["1"],type:"integer"},repo:{required:!0,type:"string"},tree_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/trees/:tree_sha"},listMatchingRefs:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/matching-refs/:ref"},listRefs:{method:"GET",params:{namespace:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:namespace"},updateRef:{method:"PATCH",params:{force:{type:"boolean"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"}},Or={getTemplate:{method:"GET",params:{name:{required:!0,type:"string"}},url:"/gitignore/templates/:name"},listTemplates:{method:"GET",params:{},url:"/gitignore/templates"}},jr={addOrUpdateRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},addOrUpdateRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},getRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},getRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},removeRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},removeRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"}},Pr={addAssignees:{method:"POST",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},addLabels:{method:"POST",params:{issue_number:{required:!0,type:"integer"},labels:{required:!0,type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},checkAssignee:{method:"GET",params:{assignee:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/assignees/:assignee"},create:{method:"POST",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},labels:{type:"string[]"},milestone:{type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},createLabel:{method:"POST",params:{color:{required:!0,type:"string"},description:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},createMilestone:{method:"POST",params:{description:{type:"string"},due_on:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},deleteLabel:{method:"DELETE",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},deleteMilestone:{method:"DELETE",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},get:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},getEvent:{method:"GET",params:{event_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events/:event_id"},getLabel:{method:"GET",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},getMilestone:{method:"GET",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},list:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/issues"},listAssignees:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/assignees"},listComments:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/issues/comments"},listEvents:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/events"},listEventsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events"},listEventsForTimeline:{headers:{accept:"application/vnd.github.mockingbird-preview+json"},method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/timeline"},listForAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/user/issues"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/issues"},listForRepo:{method:"GET",params:{assignee:{type:"string"},creator:{type:"string"},direction:{enum:["asc","desc"],type:"string"},labels:{type:"string"},mentioned:{type:"string"},milestone:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/issues"},listLabelsForMilestone:{method:"GET",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number/labels"},listLabelsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},listLabelsOnIssue:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},listMilestonesForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["due_on","completeness"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/milestones"},lock:{method:"PUT",params:{issue_number:{required:!0,type:"integer"},lock_reason:{enum:["off-topic","too heated","resolved","spam"],type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},removeAssignees:{method:"DELETE",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},removeLabel:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},name:{required:!0,type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels/:name"},removeLabels:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},replaceLabels:{method:"PUT",params:{issue_number:{required:!0,type:"integer"},labels:{type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},unlock:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},update:{method:"PATCH",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},issue_number:{required:!0,type:"integer"},labels:{type:"string[]"},milestone:{allowNull:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},updateLabel:{method:"PATCH",params:{color:{type:"string"},current_name:{required:!0,type:"string"},description:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:current_name"},updateMilestone:{method:"PATCH",params:{description:{type:"string"},due_on:{type:"string"},milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"}},Cr={get:{method:"GET",params:{license:{required:!0,type:"string"}},url:"/licenses/:license"},getForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/license"},list:{deprecated:"octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",method:"GET",params:{},url:"/licenses"},listCommonlyUsed:{method:"GET",params:{},url:"/licenses"}},Ar={render:{method:"POST",params:{context:{type:"string"},mode:{enum:["markdown","gfm"],type:"string"},text:{required:!0,type:"string"}},url:"/markdown"},renderRaw:{headers:{"content-type":"text/plain; charset=utf-8"},method:"POST",params:{data:{mapTo:"data",required:!0,type:"string"}},url:"/markdown/raw"}},Rr={get:{method:"GET",params:{},url:"/meta"}},xr={cancelImport:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},deleteArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id/archive"},deleteArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id/archive"},getArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getCommitAuthors:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/import/authors"},getImportProgress:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},getLargeFiles:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/large_files"},getStatusForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id"},getStatusForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id"},listForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/migrations"},listForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations"},listReposForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations/:migration_id/repositories"},listReposForUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/:migration_id/repositories"},mapCommitAuthor:{method:"PATCH",params:{author_id:{required:!0,type:"integer"},email:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/authors/:author_id"},setLfsPreference:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},use_lfs:{enum:["opt_in","opt_out"],required:!0,type:"string"}},url:"/repos/:owner/:repo/import/lfs"},startForAuthenticatedUser:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},repositories:{required:!0,type:"string[]"}},url:"/user/migrations"},startForOrg:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},org:{required:!0,type:"string"},repositories:{required:!0,type:"string[]"}},url:"/orgs/:org/migrations"},startImport:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tfvc_project:{type:"string"},vcs:{enum:["subversion","git","mercurial","tfvc"],type:"string"},vcs_password:{type:"string"},vcs_url:{required:!0,type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"},unlockRepoForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},repo_name:{required:!0,type:"string"}},url:"/user/migrations/:migration_id/repos/:repo_name/lock"},unlockRepoForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},repo_name:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"},updateImport:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},vcs_password:{type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"}},Gr={checkAuthorization:{deprecated:"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",method:"GET",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},createAuthorization:{deprecated:"octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",method:"POST",params:{client_id:{type:"string"},client_secret:{type:"string"},fingerprint:{type:"string"},note:{required:!0,type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations"},deleteAuthorization:{deprecated:"octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",method:"DELETE",params:{authorization_id:{required:!0,type:"integer"}},url:"/authorizations/:authorization_id"},deleteGrant:{deprecated:"octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",method:"DELETE",params:{grant_id:{required:!0,type:"integer"}},url:"/applications/grants/:grant_id"},getAuthorization:{deprecated:"octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",method:"GET",params:{authorization_id:{required:!0,type:"integer"}},url:"/authorizations/:authorization_id"},getGrant:{deprecated:"octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",method:"GET",params:{grant_id:{required:!0,type:"integer"}},url:"/applications/grants/:grant_id"},getOrCreateAuthorizationForApp:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id"},getOrCreateAuthorizationForAppAndFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},getOrCreateAuthorizationForAppFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",method:"PUT",params:{client_id:{required:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},listAuthorizations:{deprecated:"octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/authorizations"},listGrants:{deprecated:"octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/applications/grants"},resetAuthorization:{deprecated:"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",method:"POST",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeAuthorizationForApplication:{deprecated:"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:!0,type:"string"},client_id:{required:!0,type:"string"}},url:"/applications/:client_id/grants/:access_token"},updateAuthorization:{deprecated:"octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",method:"PATCH",params:{add_scopes:{type:"string[]"},authorization_id:{required:!0,type:"integer"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},remove_scopes:{type:"string[]"},scopes:{type:"string[]"}},url:"/authorizations/:authorization_id"}},Fr={addOrUpdateMembership:{method:"PUT",params:{org:{required:!0,type:"string"},role:{enum:["admin","member"],type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},blockUser:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkBlockedUser:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},checkPublicMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},concealMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},convertMemberToOutsideCollaborator:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks"},createInvitation:{method:"POST",params:{email:{type:"string"},invitee_id:{type:"integer"},org:{required:!0,type:"string"},role:{enum:["admin","direct_member","billing_manager"],type:"string"},team_ids:{type:"integer[]"}},url:"/orgs/:org/invitations"},deleteHook:{method:"DELETE",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},get:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},getMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},getMembershipForAuthenticatedUser:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/user/memberships/orgs/:org"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/organizations"},listBlockedUsers:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/blocks"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/orgs"},listForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/orgs"},listHooks:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/hooks"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/installations"},listInvitationTeams:{method:"GET",params:{invitation_id:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations/:invitation_id/teams"},listMembers:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["all","admin","member"],type:"string"}},url:"/orgs/:org/members"},listMemberships:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["active","pending"],type:"string"}},url:"/user/memberships/orgs"},listOutsideCollaborators:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/outside_collaborators"},listPendingInvitations:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations"},listPublicMembers:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/public_members"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id/pings"},publicizeMembership:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},removeMember:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},removeMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},removeOutsideCollaborator:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},unblockUser:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},update:{method:"PATCH",params:{billing_email:{type:"string"},company:{type:"string"},default_repository_permission:{enum:["read","write","admin","none"],type:"string"},description:{type:"string"},email:{type:"string"},has_organization_projects:{type:"boolean"},has_repository_projects:{type:"boolean"},location:{type:"string"},members_allowed_repository_creation_type:{enum:["all","private","none"],type:"string"},members_can_create_internal_repositories:{type:"boolean"},members_can_create_private_repositories:{type:"boolean"},members_can_create_public_repositories:{type:"boolean"},members_can_create_repositories:{type:"boolean"},name:{type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},updateMembership:{method:"PATCH",params:{org:{required:!0,type:"string"},state:{enum:["active"],required:!0,type:"string"}},url:"/user/memberships/orgs/:org"}},Ir={addCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},createCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:!0,type:"integer"},content_id:{type:"integer"},content_type:{type:"string"},note:{type:"string"}},url:"/projects/columns/:column_id/cards"},createColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{name:{required:!0,type:"string"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/columns"},createForAuthenticatedUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"}},url:"/user/projects"},createForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/projects"},createForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/projects"},delete:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},deleteCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},deleteColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{column_id:{required:!0,type:"integer"}},url:"/projects/columns/:column_id"},get:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},getCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},getColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{column_id:{required:!0,type:"integer"}},url:"/projects/columns/:column_id"},listCards:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{archived_state:{enum:["all","archived","not_archived"],type:"string"},column_id:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/projects/columns/:column_id/cards"},listCollaborators:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/collaborators"},listColumns:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/columns"},listForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/projects"},listForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/projects"},listForUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/projects"},moveCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{card_id:{required:!0,type:"integer"},column_id:{type:"integer"},position:{required:!0,type:"string",validation:"^(top|bottom|after:\\d+)$"}},url:"/projects/columns/cards/:card_id/moves"},moveColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:!0,type:"integer"},position:{required:!0,type:"string",validation:"^(first|last|after:\\d+)$"}},url:"/projects/columns/:column_id/moves"},removeCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},reviewUserPermissionLevel:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username/permission"},update:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{body:{type:"string"},name:{type:"string"},organization_permission:{type:"string"},private:{type:"boolean"},project_id:{required:!0,type:"integer"},state:{enum:["open","closed"],type:"string"}},url:"/projects/:project_id"},updateCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{archived:{type:"boolean"},card_id:{required:!0,type:"integer"},note:{type:"string"}},url:"/projects/columns/cards/:card_id"},updateColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{column_id:{required:!0,type:"integer"},name:{required:!0,type:"string"}},url:"/projects/columns/:column_id"}},Lr={checkIfMerged:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},create:{method:"POST",params:{base:{required:!0,type:"string"},body:{type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createCommentReply:{deprecated:"octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",method:"POST",params:{body:{required:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createFromIssue:{deprecated:"octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",method:"POST",params:{base:{required:!0,type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},issue:{required:!0,type:"integer"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createReview:{method:"POST",params:{body:{type:"string"},comments:{type:"object[]"},"comments[].body":{required:!0,type:"string"},"comments[].path":{required:!0,type:"string"},"comments[].position":{required:!0,type:"integer"},commit_id:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},createReviewCommentReply:{method:"POST",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"},createReviewRequest:{method:"POST",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},deletePendingReview:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},deleteReviewRequest:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},dismissReview:{method:"PUT",params:{message:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"},get:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},getCommentsForReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"},getReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},list:{method:"GET",params:{base:{type:"string"},direction:{enum:["asc","desc"],type:"string"},head:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["created","updated","popularity","long-running"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/pulls"},listComments:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/comments"},listCommits:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/commits"},listFiles:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/files"},listReviewRequests:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},listReviews:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},merge:{method:"PUT",params:{commit_message:{type:"string"},commit_title:{type:"string"},merge_method:{enum:["merge","squash","rebase"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},submitReview:{method:"POST",params:{body:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"},update:{method:"PATCH",params:{base:{type:"string"},body:{type:"string"},maintainer_can_modify:{type:"boolean"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},updateBranch:{headers:{accept:"application/vnd.github.lydian-preview+json"},method:"PUT",params:{expected_head_sha:{type:"string"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/update-branch"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},updateReview:{method:"PUT",params:{body:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"}},Dr={get:{method:"GET",params:{},url:"/rate_limit"}},Ur={createForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},createForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},createForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},createForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},createForTeamDiscussion:{deprecated:"octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},createForTeamDiscussionComment:{deprecated:"octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionCommentInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},createForTeamDiscussionLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},delete:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"DELETE",params:{reaction_id:{required:!0,type:"integer"}},url:"/reactions/:reaction_id"},listForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},listForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},listForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},listForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},listForTeamDiscussion:{deprecated:"octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},listForTeamDiscussionComment:{deprecated:"octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionCommentInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionInOrg:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},listForTeamDiscussionLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"}},Mr={acceptInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},addCollaborator:{method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},addDeployKey:{method:"POST",params:{key:{required:!0,type:"string"},owner:{required:!0,type:"string"},read_only:{type:"boolean"},repo:{required:!0,type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/keys"},addProtectedBranchAdminEnforcement:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},addProtectedBranchAppRestrictions:{method:"POST",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},addProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},addProtectedBranchRequiredStatusChecksContexts:{method:"POST",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},addProtectedBranchTeamRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},addProtectedBranchUserRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},checkCollaborator:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},checkVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},compareCommits:{method:"GET",params:{base:{required:!0,type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/compare/:base...:head"},createCommitComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_sha:{required:!0,type:"string"},line:{type:"integer"},owner:{required:!0,type:"string"},path:{type:"string"},position:{type:"integer"},repo:{required:!0,type:"string"},sha:{alias:"commit_sha",deprecated:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},createDeployment:{method:"POST",params:{auto_merge:{type:"boolean"},description:{type:"string"},environment:{type:"string"},owner:{required:!0,type:"string"},payload:{type:"string"},production_environment:{type:"boolean"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},required_contexts:{type:"string[]"},task:{type:"string"},transient_environment:{type:"boolean"}},url:"/repos/:owner/:repo/deployments"},createDeploymentStatus:{method:"POST",params:{auto_inactive:{type:"boolean"},deployment_id:{required:!0,type:"integer"},description:{type:"string"},environment:{enum:["production","staging","qa"],type:"string"},environment_url:{type:"string"},log_url:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["error","failure","inactive","in_progress","queued","pending","success"],required:!0,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},createDispatchEvent:{headers:{accept:"application/vnd.github.everest-preview+json"},method:"POST",params:{client_payload:{type:"object"},event_type:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/dispatches"},createFile:{deprecated:"octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createForAuthenticatedUser:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:!0,type:"string"},private:{type:"boolean"},team_id:{type:"integer"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/user/repos"},createFork:{method:"POST",params:{organization:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/forks"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks"},createInOrg:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},private:{type:"boolean"},team_id:{type:"integer"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/orgs/:org/repos"},createOrUpdateFile:{method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createRelease:{method:"POST",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},prerelease:{type:"boolean"},repo:{required:!0,type:"string"},tag_name:{required:!0,type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases"},createStatus:{method:"POST",params:{context:{type:"string"},description:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"},state:{enum:["error","failure","pending","success"],required:!0,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/statuses/:sha"},createUsingTemplate:{headers:{accept:"application/vnd.github.baptiste-preview+json"},method:"POST",params:{description:{type:"string"},name:{required:!0,type:"string"},owner:{type:"string"},private:{type:"boolean"},template_owner:{required:!0,type:"string"},template_repo:{required:!0,type:"string"}},url:"/repos/:template_owner/:template_repo/generate"},declineInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},delete:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},deleteCommitComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},deleteDownload:{method:"DELETE",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},deleteFile:{method:"DELETE",params:{author:{type:"object"},"author.email":{type:"string"},"author.name":{type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},deleteHook:{method:"DELETE",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},deleteInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},deleteRelease:{method:"DELETE",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},deleteReleaseAsset:{method:"DELETE",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},disableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},disablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},disableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},enableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},enablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},source:{type:"object"},"source.branch":{enum:["master","gh-pages"],type:"string"},"source.path":{type:"string"}},url:"/repos/:owner/:repo/pages"},enableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},get:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},getAppsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},getArchiveLink:{method:"GET",params:{archive_format:{required:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/:archive_format/:ref"},getBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch"},getBranchProtection:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},getClones:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/clones"},getCodeFrequencyStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/code_frequency"},getCollaboratorPermissionLevel:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username/permission"},getCombinedStatusForRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/status"},getCommit:{method:"GET",params:{commit_sha:{alias:"ref",deprecated:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{alias:"ref",deprecated:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getCommitActivityStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/commit_activity"},getCommitComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},getCommitRefSha:{deprecated:"octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",headers:{accept:"application/vnd.github.v3.sha"},method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getContents:{method:"GET",params:{owner:{required:!0,type:"string"},path:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},getContributorsStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/contributors"},getDeployKey:{method:"GET",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},getDeployment:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id"},getDeploymentStatus:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},status_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"},getDownload:{method:"GET",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},getLatestPagesBuild:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/latest"},getLatestRelease:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/latest"},getPages:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},getPagesBuild:{method:"GET",params:{build_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/:build_id"},getParticipationStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/participation"},getProtectedBranchAdminEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},getProtectedBranchPullRequestReviewEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},getProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},getProtectedBranchRequiredStatusChecks:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},getProtectedBranchRestrictions:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},getPunchCardStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/punch_card"},getReadme:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/readme"},getRelease:{method:"GET",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},getReleaseAsset:{method:"GET",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},getReleaseByTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/tags/:tag"},getTeamsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},getTopPaths:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/paths"},getTopReferrers:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/referrers"},getUsersWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},getViews:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/views"},list:{method:"GET",params:{affiliation:{type:"string"},direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","public","private","member"],type:"string"},visibility:{enum:["all","public","private"],type:"string"}},url:"/user/repos"},listAppsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},listAssetsForRelease:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id/assets"},listBranches:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},protected:{type:"boolean"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches"},listBranchesForHeadCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/branches-where-head"},listCollaborators:{method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators"},listCommentsForCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{alias:"commit_sha",deprecated:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},listCommitComments:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments"},listCommits:{method:"GET",params:{author:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},path:{type:"string"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sha:{type:"string"},since:{type:"string"},until:{type:"string"}},url:"/repos/:owner/:repo/commits"},listContributors:{method:"GET",params:{anon:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contributors"},listDeployKeys:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys"},listDeploymentStatuses:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},listDeployments:{method:"GET",params:{environment:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"},task:{type:"string"}},url:"/repos/:owner/:repo/deployments"},listDownloads:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","public","private","forks","sources","member","internal"],type:"string"}},url:"/orgs/:org/repos"},listForUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","member"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/repos"},listForks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["newest","oldest","stargazers"],type:"string"}},url:"/repos/:owner/:repo/forks"},listHooks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks"},listInvitations:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations"},listInvitationsForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/repository_invitations"},listLanguages:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/languages"},listPagesBuilds:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},listProtectedBranchRequiredStatusChecksContexts:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},listProtectedBranchTeamRestrictions:{deprecated:"octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listProtectedBranchUserRestrictions:{deprecated:"octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/repositories"},listPullRequestsAssociatedWithCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/pulls"},listReleases:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases"},listStatusesForRef:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/statuses"},listTags:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/tags"},listTeams:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/teams"},listTeamsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/topics"},listUsersWithAccessToProtectedBranch:{deprecated:"octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},merge:{method:"POST",params:{base:{required:!0,type:"string"},commit_message:{type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/merges"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/pings"},removeBranchProtection:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},removeCollaborator:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},removeDeployKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},removeProtectedBranchAdminEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},removeProtectedBranchAppRestrictions:{method:"DELETE",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},removeProtectedBranchPullRequestReviewEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},removeProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},removeProtectedBranchRequiredStatusChecks:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},removeProtectedBranchRequiredStatusChecksContexts:{method:"DELETE",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},removeProtectedBranchRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},removeProtectedBranchTeamRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},removeProtectedBranchUserRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceProtectedBranchAppRestrictions:{method:"PUT",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},replaceProtectedBranchRequiredStatusChecksContexts:{method:"PUT",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},replaceProtectedBranchTeamRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},replaceProtectedBranchUserRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"PUT",params:{names:{required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/topics"},requestPageBuild:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},retrieveCommunityProfileMetrics:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/community/profile"},testPushHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/tests"},transfer:{method:"POST",params:{new_owner:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_ids:{type:"integer[]"}},url:"/repos/:owner/:repo/transfer"},update:{method:"PATCH",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},archived:{type:"boolean"},default_branch:{type:"string"},delete_branch_on_merge:{type:"boolean"},description:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},private:{type:"boolean"},repo:{required:!0,type:"string"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/repos/:owner/:repo"},updateBranchProtection:{method:"PUT",params:{allow_deletions:{type:"boolean"},allow_force_pushes:{allowNull:!0,type:"boolean"},branch:{required:!0,type:"string"},enforce_admins:{allowNull:!0,required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},required_linear_history:{type:"boolean"},required_pull_request_reviews:{allowNull:!0,required:!0,type:"object"},"required_pull_request_reviews.dismiss_stale_reviews":{type:"boolean"},"required_pull_request_reviews.dismissal_restrictions":{type:"object"},"required_pull_request_reviews.dismissal_restrictions.teams":{type:"string[]"},"required_pull_request_reviews.dismissal_restrictions.users":{type:"string[]"},"required_pull_request_reviews.require_code_owner_reviews":{type:"boolean"},"required_pull_request_reviews.required_approving_review_count":{type:"integer"},required_status_checks:{allowNull:!0,required:!0,type:"object"},"required_status_checks.contexts":{required:!0,type:"string[]"},"required_status_checks.strict":{required:!0,type:"boolean"},restrictions:{allowNull:!0,required:!0,type:"object"},"restrictions.apps":{type:"string[]"},"restrictions.teams":{required:!0,type:"string[]"},"restrictions.users":{required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection"},updateCommitComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},updateFile:{deprecated:"octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},add_events:{type:"string[]"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},remove_events:{type:"string[]"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},updateInformationAboutPagesSite:{method:"PUT",params:{cname:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},source:{enum:['"gh-pages"','"master"','"master /docs"'],type:"string"}},url:"/repos/:owner/:repo/pages"},updateInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},permissions:{enum:["read","write","admin"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},updateProtectedBranchPullRequestReviewEnforcement:{method:"PATCH",params:{branch:{required:!0,type:"string"},dismiss_stale_reviews:{type:"boolean"},dismissal_restrictions:{type:"object"},"dismissal_restrictions.teams":{type:"string[]"},"dismissal_restrictions.users":{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},require_code_owner_reviews:{type:"boolean"},required_approving_review_count:{type:"integer"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},updateProtectedBranchRequiredStatusChecks:{method:"PATCH",params:{branch:{required:!0,type:"string"},contexts:{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},strict:{type:"boolean"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},updateRelease:{method:"PATCH",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:!0,type:"string"},prerelease:{type:"boolean"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"},tag_name:{type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},updateReleaseAsset:{method:"PATCH",params:{asset_id:{required:!0,type:"integer"},label:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},uploadReleaseAsset:{method:"POST",params:{file:{mapTo:"data",required:!0,type:"string | object"},headers:{required:!0,type:"object"},"headers.content-length":{required:!0,type:"integer"},"headers.content-type":{required:!0,type:"string"},label:{type:"string"},name:{required:!0,type:"string"},url:{required:!0,type:"string"}},url:":url"}},Nr={code:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["indexed"],type:"string"}},url:"/search/code"},commits:{headers:{accept:"application/vnd.github.cloak-preview+json"},method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["author-date","committer-date"],type:"string"}},url:"/search/commits"},issues:{deprecated:"octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},issuesAndPullRequests:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},labels:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},q:{required:!0,type:"string"},repository_id:{required:!0,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/search/labels"},repos:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["stars","forks","help-wanted-issues","updated"],type:"string"}},url:"/search/repositories"},topics:{method:"GET",params:{q:{required:!0,type:"string"}},url:"/search/topics"},users:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,type:"string"},sort:{enum:["followers","repositories","joined"],type:"string"}},url:"/search/users"}},$r={addMember:{deprecated:"octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",method:"PUT",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},addMemberLegacy:{deprecated:"octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",method:"PUT",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},addOrUpdateMembership:{deprecated:"octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",method:"PUT",params:{role:{enum:["member","maintainer"],type:"string"},team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateMembershipInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},role:{enum:["member","maintainer"],type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},addOrUpdateMembershipLegacy:{deprecated:"octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",method:"PUT",params:{role:{enum:["member","maintainer"],type:"string"},team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateProject:{deprecated:"octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{org:{required:!0,type:"string"},permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},addOrUpdateProjectLegacy:{deprecated:"octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateRepo:{deprecated:"octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},addOrUpdateRepoInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},addOrUpdateRepoLegacy:{deprecated:"octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepo:{deprecated:"octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepoInOrg:{method:"GET",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},checkManagesRepoLegacy:{deprecated:"octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},create:{method:"POST",params:{description:{type:"string"},maintainers:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},repo_names:{type:"string[]"}},url:"/orgs/:org/teams"},createDiscussion:{deprecated:"octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",method:"POST",params:{body:{required:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/teams/:team_id/discussions"},createDiscussionComment:{deprecated:"octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionCommentInOrg:{method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},createDiscussionCommentLegacy:{deprecated:"octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionInOrg:{method:"POST",params:{body:{required:!0,type:"string"},org:{required:!0,type:"string"},private:{type:"boolean"},team_slug:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},createDiscussionLegacy:{deprecated:"octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",method:"POST",params:{body:{required:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/teams/:team_id/discussions"},delete:{deprecated:"octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},deleteDiscussion:{deprecated:"octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteDiscussionComment:{deprecated:"octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentInOrg:{method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentLegacy:{deprecated:"octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionInOrg:{method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},deleteDiscussionLegacy:{deprecated:"octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},deleteLegacy:{deprecated:"octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},get:{deprecated:"octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},getByName:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},getDiscussion:{deprecated:"octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",method:"GET",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getDiscussionComment:{deprecated:"octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentInOrg:{method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentLegacy:{deprecated:"octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionInOrg:{method:"GET",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},getDiscussionLegacy:{deprecated:"octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",method:"GET",params:{discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getLegacy:{deprecated:"octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},getMember:{deprecated:"octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},getMemberLegacy:{deprecated:"octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},getMembership:{deprecated:"octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},getMembershipInOrg:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},getMembershipLegacy:{deprecated:"octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",method:"GET",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},list:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/teams"},listChild:{deprecated:"octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/teams"},listChildInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/teams"},listChildLegacy:{deprecated:"octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/teams"},listDiscussionComments:{deprecated:"octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussionCommentsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},listDiscussionCommentsLegacy:{deprecated:"octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussions:{deprecated:"octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions"},listDiscussionsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},listDiscussionsLegacy:{deprecated:"octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/teams"},listMembers:{deprecated:"octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/members"},listMembersInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/members"},listMembersLegacy:{deprecated:"octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/members"},listPendingInvitations:{deprecated:"octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/invitations"},listPendingInvitationsInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/invitations"},listPendingInvitationsLegacy:{deprecated:"octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/invitations"},listProjects:{deprecated:"octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects"},listProjectsInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects"},listProjectsLegacy:{deprecated:"octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects"},listRepos:{deprecated:"octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos"},listReposInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos"},listReposLegacy:{deprecated:"octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos"},removeMemberLegacy:{deprecated:"octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/members/:username"},removeMembershipInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},removeMembershipLegacy:{deprecated:"octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",method:"DELETE",params:{team_id:{required:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeProject:{deprecated:"octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",method:"DELETE",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeProjectInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},removeProjectLegacy:{deprecated:"octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",method:"DELETE",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeRepo:{deprecated:"octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},removeRepoInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},removeRepoLegacy:{deprecated:"octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},reviewProject:{deprecated:"octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},reviewProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},reviewProjectLegacy:{deprecated:"octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},update:{deprecated:"octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"},updateDiscussion:{deprecated:"octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateDiscussionComment:{deprecated:"octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentInOrg:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentLegacy:{deprecated:"octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionInOrg:{method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},title:{type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},updateDiscussionLegacy:{deprecated:"octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateInOrg:{method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_slug:{required:!0,type:"string"}},url:"/orgs/:org/teams/:team_slug"},updateLegacy:{deprecated:"octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"}},Br={addEmails:{method:"POST",params:{emails:{required:!0,type:"string[]"}},url:"/user/emails"},block:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkBlocked:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkFollowing:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},checkFollowingForUser:{method:"GET",params:{target_user:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/following/:target_user"},createGpgKey:{method:"POST",params:{armored_public_key:{type:"string"}},url:"/user/gpg_keys"},createPublicKey:{method:"POST",params:{key:{type:"string"},title:{type:"string"}},url:"/user/keys"},deleteEmails:{method:"DELETE",params:{emails:{required:!0,type:"string[]"}},url:"/user/emails"},deleteGpgKey:{method:"DELETE",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},deletePublicKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"}},url:"/user/keys/:key_id"},follow:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},getAuthenticated:{method:"GET",params:{},url:"/user"},getByUsername:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/users/:username"},getContextForUser:{method:"GET",params:{subject_id:{type:"string"},subject_type:{enum:["organization","repository","issue","pull_request"],type:"string"},username:{required:!0,type:"string"}},url:"/users/:username/hovercard"},getGpgKey:{method:"GET",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},getPublicKey:{method:"GET",params:{key_id:{required:!0,type:"integer"}},url:"/user/keys/:key_id"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/users"},listBlocked:{method:"GET",params:{},url:"/user/blocks"},listEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/emails"},listFollowersForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/followers"},listFollowersForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/followers"},listFollowingForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/following"},listFollowingForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/following"},listGpgKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/gpg_keys"},listGpgKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/gpg_keys"},listPublicEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/public_emails"},listPublicKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/keys"},listPublicKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/keys"},togglePrimaryEmailVisibility:{method:"PATCH",params:{email:{required:!0,type:"string"},visibility:{required:!0,type:"string"}},url:"/user/email/visibility"},unblock:{method:"DELETE",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},unfollow:{method:"DELETE",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},updateAuthenticated:{method:"PATCH",params:{bio:{type:"string"},blog:{type:"string"},company:{type:"string"},email:{type:"string"},hireable:{type:"boolean"},location:{type:"string"},name:{type:"string"}},url:"/user"}},zr=_({__proto__:null,activity:vr,apps:wr,checks:qr,codesOfConduct:Er,emojis:Tr,gists:kr,git:Sr,gitignore:Or,interactions:jr,issues:Pr,licenses:Cr,markdown:Ar,meta:Rr,migrations:xr,oauthAuthorizations:Gr,orgs:Fr,projects:Ir,pulls:Lr,rateLimit:Dr,reactions:Ur,repos:Mr,search:Nr,teams:$r,users:Br,default:{activity:vr,apps:wr,checks:qr,codesOfConduct:Er,emojis:Tr,gists:kr,git:Sr,gitignore:Or,interactions:jr,issues:Pr,licenses:Cr,markdown:Ar,meta:Rr,migrations:xr,oauthAuthorizations:Gr,orgs:Fr,projects:Ir,pulls:Lr,rateLimit:Dr,reactions:Ur,repos:Mr,search:Nr,teams:$r,users:Br}}),Hr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wr=/^\w*$/,Vr=/^\./,Jr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yr=/\\(\\)?/g,Kr=/^\[object .+?Constructor\]$/,Qr="object"==typeof self&&self&&self.Object===Object&&self,Zr="object"==typeof y&&y&&y.Object===Object&&y||Qr||Function("return this")(),Xr=Array.prototype,en=Function.prototype,tn=Object.prototype,rn=Zr["__core-js_shared__"],nn=function(){var e=/[^.]+$/.exec(rn&&rn.keys&&rn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),on=en.toString,sn=tn.hasOwnProperty,an=tn.toString,pn=RegExp("^"+on.call(sn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),un=Zr.Symbol,cn=Xr.splice,dn=vn(Zr,"Map"),ln=vn(Object,"create"),mn=un?un.prototype:void 0,gn=mn?mn.toString:void 0;function hn(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},yn.prototype.set=function(e,t){var r=this.__data__,n=bn(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},fn.prototype.clear=function(){this.__data__={hash:new hn,map:new(dn||yn),string:new hn}},fn.prototype.delete=function(e){return _n(this,e).delete(e)},fn.prototype.get=function(e){return _n(this,e).get(e)},fn.prototype.has=function(e){return _n(this,e).has(e)},fn.prototype.set=function(e,t){return _n(this,e).set(e,t),this};var wn=En(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Sn(e))return gn?gn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return Vr.test(e)&&r.push(""),e.replace(Jr,function(e,t,n,i){r.push(n?i.replace(Yr,"$1"):t||e)}),r});function qn(e){if("string"==typeof e||Sn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function En(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(En.Cache||fn),r}En.Cache=fn;var Tn=Array.isArray;function kn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Sn(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==an.call(e)}var On=function(e,t,r){var n=null==e?void 0:function(e,t){for(var r,n=0,i=(t=function(e,t){if(Tn(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Sn(e))||Wr.test(e)||!Hr.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:Tn(r=t)?r:wn(r)).length;null!=e&&n-1&&e%1==0&&e-1},Xn.prototype.set=function(e,t){var r=this.__data__,n=ri(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},ei.prototype.clear=function(){this.__data__={hash:new Zn,map:new(Jn||Xn),string:new Zn}},ei.prototype.delete=function(e){return ni(this,e).delete(e)},ei.prototype.get=function(e){return ni(this,e).get(e)},ei.prototype.has=function(e){return ni(this,e).has(e)},ei.prototype.set=function(e,t){return ni(this,e).set(e,t),this};var si=pi(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(li(e))return Qn?Qn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return Cn.test(e)&&r.push(""),e.replace(An,function(e,t,n,i){r.push(n?i.replace(Rn,"$1"):t||e)}),r});function ai(e){if("string"==typeof e||li(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function pi(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(pi.Cache||ei),r}function ui(e,t){return e===t||e!=e&&t!=t}pi.Cache=ei;var ci=Array.isArray;function di(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function li(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==zn.call(e)}var mi=function(e,t){if(!t.request.validate)return;const{validate:r}=t.request;return Object.keys(r).forEach(e=>{const n=On(r,e),i=n.type;let o,s,a=!0,p=!1;/\./.test(e)&&(o=e.replace(/\.[^.]+$/,""),p="[]"===o.slice(-2),p&&(o=o.slice(0,-2)),s=On(t,o),a="headers"===o||"object"==typeof s&&null!==s),(p?(On(t,o)||[]).map(t=>t[e.split(/\./).pop()]):[On(t,e)]).forEach((r,o)=>{const s=void 0!==r,u=null===r,c=p?e.replace(/\[\]/,`[${o}]`):e;if((n.required||s)&&a&&(!n.allowNull||!u)){if(!n.allowNull&&u)throw new gi(`'${c}' cannot be null`,400,{request:t});if(n.required&&!s)throw new gi(`Empty value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if("integer"===i){const e=r;if(r=parseInt(r,10),isNaN(r))throw new gi(`Invalid value for parameter '${c}': ${JSON.stringify(e)} is NaN`,400,{request:t})}if(n.enum&&-1===n.enum.indexOf(String(r)))throw new gi(`Invalid value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if(n.validation&&!new RegExp(n.validation).test(r))throw new gi(`Invalid value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if("object"===i&&"string"==typeof r)try{r=JSON.parse(r)}catch(e){throw new gi(`JSON parse error of value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t})}!function(e,t,r){null==e||function(e,t,r,n){if(!di(e))return e;for(var i=-1,o=(t=function(e,t){if(ci(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!li(e))||Pn.test(e)||!jn.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return ci(e)?e:si(e)}(t)).length,s=o-1,a=e;null!=a&&++i]*)>;\s*rel="([\w]*)"/g,(e,r,n)=>{t[n]=r}),t},bi=class extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.code=t,this.headers=r}},_i=function(e,t,r,n){hi(`octokit.get${r.charAt(0).toUpperCase()+r.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);const i=fi(t)[r];if(!i){const e=new bi(`No ${r} page found`,404);return Promise.reject(e)}const o={url:i,headers:vi(t,n)};return e.request(o)};function vi(e,t){const r=e.headers&&e.headers["x-github-media-type"];return!r||t&&t.accept?t:((t=t||{}).accept="application/vnd."+r.replace("; param=",".").replace("; format=","+"),t)}var wi=function(e,t,r){return _i(e,t,"first",r)},qi=function(e,t,r){return _i(e,t,"last",r)},Ei=function(e,t,r){return _i(e,t,"next",r)},Ti=function(e,t,r){return _i(e,t,"prev",r)},ki=function(e){return hi("octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),fi(e).first},Si=function(e){return hi("octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),fi(e).last},Oi=function(e){return hi("octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),fi(e).next},ji=function(e){return hi("octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),fi(e).prev},Pi=ht.plugin([function(e){e.hook.wrap("request",(t,r)=>{e.log.debug("request",r);const n=Date.now(),i=e.request.endpoint.parse(r),o=i.url.replace(r.baseUrl,"");return t(r).then(t=>(e.log.info(`${i.method} ${o} - ${t.status} in ${Date.now()-n}ms`),t)).catch(t=>{throw e.log.info(`${i.method} ${o} - ${t.status} in ${Date.now()-n}ms`),t})})},function(e,t){if(t.auth)return void(e.authenticate=()=>{er(e.log,new Xt('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))});const r={octokit:e,auth:!1};e.authenticate=yt.bind(null,r),e.hook.before("request",Kt.bind(null,r)),e.hook.error("request",Qt.bind(null,r))},function(e,t){if(!t.auth)return;!function(e){if("string"!=typeof e&&"function"!=typeof e&&!(e.username&&e.password||e.clientId&&e.clientSecret))throw new Error(`Invalid "auth" option: ${JSON.stringify(e)}`)}(t.auth);const r={octokit:e,auth:t.auth};e.hook.before("request",nr.bind(null,r)),e.hook.error("request",ir.bind(null,r))},function(e){e.paginate=yr.bind(null,e),e.paginate.iterator=hr.bind(null,e)},function(e){e.registerEndpoints=fr.bind(null,e)},function(e){zr.gitdata=zr.git,zr.authorization=zr.oauthAuthorizations,zr.pullRequests=zr.pulls,e.registerEndpoints(zr)},function(e){e.hook.before("request",mi.bind(null,e))},function(e){e.getFirstPage=wi.bind(null,e),e.getLastPage=qi.bind(null,e),e.getNextPage=Ei.bind(null,e),e.getPreviousPage=Ti.bind(null,e),e.hasFirstPage=ki,e.hasLastPage=Si,e.hasNextPage=Oi,e.hasPreviousPage=ji}]),Ci=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Context=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(p.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(p.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${r.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pullRequest||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}});f(Ci);var Ai=b(function(e,t){var r=y&&y.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=r(Pi),o=n(Ci);i.default.prototype=new i.default,t.context=new o.Context,t.GitHub=class extends i.default{constructor(e,t={}){super(Object.assign(Object.assign({},t),{auth:`token ${e}`})),this.graphql=je.graphql.defaults({headers:{authorization:`token ${e}`}})}}});f(Ai);var Ri=Ai.context,xi=Ai.GitHub,Gi=b(function(e,r){var n,i=y&&y.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{p(n.next(e))}catch(e){o(e)}}function a(e){try{p(n.throw(e))}catch(e){o(e)}}function p(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}p((n=n.apply(e,t||[])).next())})};function o(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(r,"__esModule",{value:!0}),r.chmod=(n=p.promises).chmod,r.copyFile=n.copyFile,r.lstat=n.lstat,r.mkdir=n.mkdir,r.readdir=n.readdir,r.readlink=n.readlink,r.rename=n.rename,r.rmdir=n.rmdir,r.stat=n.stat,r.symlink=n.symlink,r.unlink=n.unlink,r.IS_WINDOWS="win32"===process.platform,r.exists=function(e){return i(this,void 0,void 0,function*(){try{yield r.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},r.isDirectory=function(e,t=!1){return i(this,void 0,void 0,function*(){return(t?yield r.stat(e):yield r.lstat(e)).isDirectory()})},r.isRooted=function(e){if(!(e=function(e){return e=e||"",r.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return r.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},r.mkdirP=function e(n,o=1e3,s=1){return i(this,void 0,void 0,function*(){if(l.ok(n,"a path argument must be provided"),n=t.resolve(n),s>=o)return r.mkdir(n);try{return void(yield r.mkdir(n))}catch(i){switch(i.code){case"ENOENT":return yield e(t.dirname(n),o,s+1),void(yield r.mkdir(n));default:{let e;try{e=yield r.stat(n)}catch(e){throw i}if(!e.isDirectory())throw i}}}})},r.tryGetExecutablePath=function(e,n){return i(this,void 0,void 0,function*(){let i=void 0;try{i=yield r.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(i&&i.isFile())if(r.IS_WINDOWS){const r=t.extname(e).toUpperCase();if(n.some(e=>e.toUpperCase()===r))return e}else if(o(i))return e;const s=e;for(const a of n){e=s+a,i=void 0;try{i=yield r.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(i&&i.isFile()){if(r.IS_WINDOWS){try{const n=t.dirname(e),i=t.basename(e).toUpperCase();for(const o of yield r.readdir(n))if(i===o.toUpperCase()){e=t.join(n,o);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(o(i))return e}}return""})}});f(Gi);var Fi=b(function(e,r){var n=y&&y.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{p(n.next(e))}catch(e){o(e)}}function a(e){try{p(n.throw(e))}catch(e){o(e)}}function p(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}p((n=n.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0});const i=d.promisify(c.exec);function o(e){return n(this,void 0,void 0,function*(){if(Gi.IS_WINDOWS){try{(yield Gi.isDirectory(e,!0))?yield i(`rd /s /q "${e}"`):yield i(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield Gi.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield Gi.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield i(`rm -rf "${e}"`):yield Gi.unlink(e)}})}function s(e){return n(this,void 0,void 0,function*(){yield Gi.mkdirP(e)})}function a(e,t,r){return n(this,void 0,void 0,function*(){if((yield Gi.lstat(e)).isSymbolicLink()){try{yield Gi.lstat(t),yield Gi.unlink(t)}catch(e){"EPERM"===e.code&&(yield Gi.chmod(t,"0666"),yield Gi.unlink(t))}const r=yield Gi.readlink(e);yield Gi.symlink(r,t,Gi.IS_WINDOWS?"junction":null)}else(yield Gi.exists(t))&&!r||(yield Gi.copyFile(e,t))})}r.cp=function(e,r,i={}){return n(this,void 0,void 0,function*(){const{force:o,recursive:p}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(i),u=(yield Gi.exists(r))?yield Gi.stat(r):null;if(u&&u.isFile()&&!o)return;const c=u&&u.isDirectory()?t.join(r,t.basename(e)):r;if(!(yield Gi.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield Gi.stat(e)).isDirectory()){if(!p)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,r,i,o){return n(this,void 0,void 0,function*(){if(i>=255)return;i++,yield s(r);const n=yield Gi.readdir(t);for(const s of n){const n=`${t}/${s}`,p=`${r}/${s}`;(yield Gi.lstat(n)).isDirectory()?yield e(n,p,i,o):yield a(n,p,o)}yield Gi.chmod(r,(yield Gi.stat(t)).mode)})}(e,c,0,o)}else{if(""===t.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield a(e,c,o)}})},r.mv=function(e,r,i={}){return n(this,void 0,void 0,function*(){if(yield Gi.exists(r)){let n=!0;if((yield Gi.isDirectory(r))&&(r=t.join(r,t.basename(e)),n=yield Gi.exists(r)),n){if(null!=i.force&&!i.force)throw new Error("Destination already exists");yield o(r)}}yield s(t.dirname(r)),yield Gi.rename(e,r)})},r.rmRF=o,r.mkdirP=s,r.which=function e(r,i){return n(this,void 0,void 0,function*(){if(!r)throw new Error("parameter 'tool' is required");if(i&&!(yield e(r,!1)))throw Gi.IS_WINDOWS?new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);try{const e=[];if(Gi.IS_WINDOWS&&process.env.PATHEXT)for(const r of process.env.PATHEXT.split(t.delimiter))r&&e.push(r);if(Gi.isRooted(r))return(yield Gi.tryGetExecutablePath(r,e))||"";if(r.includes("/")||Gi.IS_WINDOWS&&r.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(t.delimiter))e&&n.push(e);for(const i of n){const n=yield Gi.tryGetExecutablePath(i+t.sep+r,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}});f(Fi);var Ii=b(function(e,n){var i=y&&y.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{p(n.next(e))}catch(e){o(e)}}function a(e){try{p(n.throw(e))}catch(e){o(e)}}function p(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}p((n=n.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0});const o="win32"===process.platform;n.ToolRunner=class extends u.EventEmitter{constructor(e,t,r){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),n=this._getSpawnArgs(e);let i=t?"":"[command]";if(o)if(this._isCmdFile()){i+=r;for(const e of n)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(r);for(const e of n)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=r;for(const e of n)i+=` ${e}`}return i}_processLineBuffer(e,t,n){try{let i=t+e.toString(),o=i.indexOf(r.EOL);for(;o>-1;)n(i.substring(0,o)),i=i.substring(o+r.EOL.length),o=i.indexOf(r.EOL);t=i}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){return o&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(o&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const n of e)if(t.some(e=>e===n)){r=!0;break}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return n+='"',n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return i(this,void 0,void 0,function*(){return!Gi.isRooted(this.toolPath)&&(this.toolPath.includes("/")||o&&this.toolPath.includes("\\"))&&(this.toolPath=t.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Fi.which(this.toolPath,!0),new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(const e of this.args)this._debug(` ${e}`);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+r.EOL);const i=new s(n,this.toolPath);i.on("debug",e=>{this._debug(e)});const o=this._getSpawnFileName(),a=c.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));a.stdout&&a.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})}),a.stderr&&a.stderr.on("data",e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),a.on("error",e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),a.on("exit",e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()}),a.on("close",e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on("done",(r,n)=>{"".length>0&&this.emit("stdline",""),"".length>0&&this.emit("errline",""),a.removeAllListeners(),r?t(r):e(n)})})})}},n.argStringToArray=function(e){const t=[];let r=!1,n=!1,i="";function o(e){n&&'"'!==e&&(i+="\\"),i+=e,n=!1}for(let s=0;s0&&(t.push(i),i=""):n?o(a):r=!r}return i.length>0&&t.push(i.trim()),t};class s extends u.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(s.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}});f(Ii);var Li=b(function(e,t){var r=y&&y.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{p(n.next(e))}catch(e){o(e)}}function a(e){try{p(n.throw(e))}catch(e){o(e)}}function p(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}p((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.exec=function(e,t,n){return r(this,void 0,void 0,function*(){const r=Ii.argStringToArray(e);if(0===r.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const i=r[0];return t=r.slice(1).concat(t||[]),new Ii.ToolRunner(i,t,n).exec()})}});f(Li);var Di,Ui=Li.exec,Mi=Object.prototype.toString,Ni=function(e){var t=Mi.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===Mi.call(e.callee)),r};if(!Object.keys){var $i=Object.prototype.hasOwnProperty,Bi=Object.prototype.toString,zi=Ni,Hi=Object.prototype.propertyIsEnumerable,Wi=!Hi.call({toString:null},"toString"),Vi=Hi.call(function(){},"prototype"),Ji=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Yi=function(e){var t=e.constructor;return t&&t.prototype===e},Ki={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Qi=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!Ki["$"+e]&&$i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{Yi(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();Di=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===Bi.call(e),n=zi(e),i=t&&"[object String]"===Bi.call(e),o=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var s=Vi&&r;if(i&&e.length>0&&!$i.call(e,0))for(var a=0;a0)for(var p=0;p2?arguments[2]:{},n=ro(t);no&&(n=oo.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=Po(e),n=Co("%"+(r.length>0?r[0]:"")+"%",t),i=1;i=r.length){var o=_o(n,r[i]);if(!(t||r[i]in n))throw new bo("base intrinsic for "+e+" exists, but the property is not available.");n=o?o.get||o.value:n[r[i]]}else n=n[r[i]];return n},Ro=Ao("%Function%"),xo=Ro.apply,Go=Ro.call,Fo=function(){return fo.apply(Go,arguments)};Fo.apply=function(){return fo.apply(xo,arguments)};var Io=Fo(Ao("String.prototype.indexOf")),Lo=function(e,t){var r=Ao(e,!!t);return"function"==typeof r&&Io(e,".prototype.")?Fo(r):r},Do=Ao("%Object.defineProperty%",!0);if(Do)try{Do({},"a",{value:1})}catch(e){Do=null}var Uo=Lo("Object.prototype.propertyIsEnumerable"),Mo=fo.call(Function.call,Object.prototype.hasOwnProperty),No=Ao("%TypeError%"),$o=Ao("%SyntaxError%"),Bo={"Property Descriptor":function(e,t){if("Object"!==e(t))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in t)if(Mo(t,n)&&!r[n])return!1;var i=Mo(t,"[[Value]]"),o=Mo(t,"[[Get]]")||Mo(t,"[[Set]]");if(i&&o)throw new No("Property Descriptors may not be both accessor and data descriptors");return!0}},zo=function(e,t,r,n){var i=Bo[t];if("function"!=typeof i)throw new $o("unknown record type: "+t);if(!i(e,n))throw new No(r+" must be a "+t)},Ho=function(e){return"symbol"==typeof e?"Symbol":function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}(e)},Wo=function(e){if(void 0===e)return e;zo(Ho,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t},Vo=Ao("%Object.getOwnPropertyDescriptor%");if(Vo)try{Vo([],"length")}catch(e){Vo=null}var Jo=Vo,Yo=Ao("%Array%"),Ko=!Yo.isArray&&Lo("Object.prototype.toString"),Qo=Yo.isArray||function(e){return"[object Array]"===Ko(e)},Zo=function(e){return"string"==typeof e||"symbol"==typeof e},Xo=RegExp.prototype.exec,es=Object.getOwnPropertyDescriptor,ts=Object.prototype.toString,rs="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ns=function(e){return!!e},is=Ao("%Symbol.match%",!0),os=Function.prototype.toString,ss=/^\s*class\b/,as=function(e){try{var t=os.call(e);return ss.test(t)}catch(e){return!1}},ps=Object.prototype.toString,us="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,cs=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(us)return function(e){try{return!as(e)&&(os.call(e),!0)}catch(e){return!1}}(e);if(as(e))return!1;var t=ps.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t},ds=Ao("%TypeError%"),ls=Ao("%TypeError%"),ms=Lo("Object.prototype.propertyIsEnumerable"),gs=function(e){return void 0!==e&&(zo(Ho,"Property Descriptor","Desc",e),!(!Mo(e,"[[Value]]")&&!Mo(e,"[[Writable]]")))},hs=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},ys=Ao("%Object%"),fs=ys.isExtensible,bs=ys.preventExtensions?function(e){return!hs(e)&&fs(e)}:function(e){return!hs(e)},_s=Number.isNaN||function(e){return e!=e},vs=function(e,t){return e===t?0!==e||1/e==1/t:_s(e)&&_s(t)},ws=Ao("%TypeError%"),qs=Ao("%TypeError%"),Es=function(e,t){if(null==e)throw new qs(t||"Cannot call method on "+e);return e},Ts=Ao("%Object%"),ks=Object.getOwnPropertyDescriptor,Ss=Object.getOwnPropertyNames,Os=Object.getOwnPropertySymbols,js=Lo("Array.prototype.concat"),Ps=Lo("Array.prototype.reduce"),Cs=Os?function(e){return js(Ss(e),Os(e))}:Ss,As=cs(ks)&&cs(Ss),Rs=function(e){if(Es(e),!As)throw new TypeError("getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor");var t=function(e){return Es(e),Ts(e)}(e);return Ps(Cs(t),function(e,r){var n=ks(t,r);return void 0!==n&&function(e,t,r){if("Object"!==Ho(e))throw new ws("Assertion failed: Type(O) is not Object");if(!Zo(t))throw new ws("Assertion failed: IsPropertyKey(P) is not true");var n=function(e,t){if("Object"!==Ho(e))throw new ls("Assertion failed: O must be an Object");if(!Zo(t))throw new ls("Assertion failed: P must be a Property Key");if(Mo(e,t)){if(!Jo){var r=Qo(e)&&"length"===t,n=function(e){if(!e||"object"!=typeof e)return!1;if(is){var t=e[is];if(void 0!==t)return ns(t)}return function(e){if(!e||"object"!=typeof e)return!1;if(!rs)return"[object RegExp]"===ts.call(e);var t=es(e,"lastIndex");return!(!t||!Mo(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,Xo.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}(e)}(e)&&"lastIndex"===t;return{"[[Configurable]]":!(r||n),"[[Enumerable]]":ms(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return function(e){if("Object"!==Ho(e))throw new ds("ToPropertyDescriptor requires an object");var t={};if(Mo(e,"enumerable")&&(t["[[Enumerable]]"]=ns(e.enumerable)),Mo(e,"configurable")&&(t["[[Configurable]]"]=ns(e.configurable)),Mo(e,"value")&&(t["[[Value]]"]=e.value),Mo(e,"writable")&&(t["[[Writable]]"]=ns(e.writable)),Mo(e,"get")){var r=e.get;if(void 0!==r&&!cs(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(Mo(e,"set")){var n=e.set;if(void 0!==n&&!cs(n))throw new ds("setter must be a function");t["[[Set]]"]=n}if((Mo(t,"[[Get]]")||Mo(t,"[[Set]]"))&&(Mo(t,"[[Value]]")||Mo(t,"[[Writable]]")))throw new ds("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}(Jo(e,t))}}(e,t),i=n||bs(e);(!n||n.writable&&n.configurable)&&i&&function(e,t,r,n,i,o){if(!Do){if(!e(o))return!1;if(!o["[[Configurable]]"]||!o["[[Writable]]"])return!1;if(i in n&&Uo(n,i)!==!!o["[[Enumerable]]"])return!1;var s=o["[[Value]]"];return n[i]=s,t(n[i],s)}Do(n,i,r(o))}(gs,vs,Wo,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})}(e,r,n),e},{})},xs=function(){return"function"==typeof Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors:Rs};co(Rs,{getPolyfill:xs,implementation:Rs,shim:function(){var e=xs();return co(Object,{getOwnPropertyDescriptors:e},{getOwnPropertyDescriptors:function(){return Object.getOwnPropertyDescriptors!==e}}),e}});var Gs=Rs;if("function"!=typeof Object.defineProperty||"function"!=typeof Object.defineProperties||[].__proto__!==Array.prototype)throw new TypeError("util.promisify requires a true ES5 environment, that also supports `__proto__`");if("function"!=typeof Promise)throw new TypeError("`Promise` must be globally available for util.promisify to work.");var Fs=Lo("Array.prototype.slice"),Is=Lo("Array.prototype.concat"),Ls=Lo("Array.prototype.forEach"),Ds=mo(),Us=Ds?Symbol("util.promisify.custom"):null,Ms=Ds?Symbol("customPromisifyArgs"):null,Ns=function(e){if("function"!=typeof e){var t=new TypeError('The "original" argument must be of type function');throw t.name="TypeError [ERR_INVALID_ARG_TYPE]",t.code="ERR_INVALID_ARG_TYPE",t}if(Ds&&e[Us]){var r=e[Us];if("function"!=typeof r)throw new TypeError("The [util.promisify.custom] property must be a function");return Object.defineProperty(r,Us,{configurable:!0,enumerable:!1,value:r,writable:!1}),r}var n=e[Ms],i=function(){var t=Fs(arguments),r=this;return new Promise(function(i,o){e.apply(r,Is(t,function(e){var t=arguments.length>1?Fs(arguments,1):[];if(e)o(e);else if(void 0!==n&&t.length>1){var r={};Ls(n,function(e,n){r[e]=t[n]}),i(r)}else i(t[0])}))})};return i.__proto__=e.__proto__,Object.defineProperty(i,Us,{configurable:!0,enumerable:!1,value:i,writable:!1}),Object.defineProperties(i,Gs(e))},$s=Ms;Ns.custom=Us,Ns.customPromisifyArgs=$s;var Bs=function(){return"function"==typeof d.promisify?d.promisify:Ns},zs=Bs(),Hs=function(e){return zs.apply(d,arguments)};co(Hs,{custom:zs.custom,customPromisifyArgs:zs.customPromisifyArgs,getPolyfill:Bs,implementation:Ns,shim:function(){var e=Bs();return e!==d.promisify&&Object.defineProperty(d,"promisify",{configurable:!0,enumerable:!0,value:e,writable:!0}),e}});var Ws=Hs,Vs="win32"===process.platform,Js=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(Vs)var Ys=/(.*?)(?:[\/\\]+|$)/g;else Ys=/(.*?)(?:[\/]+|$)/g;if(Vs)var Ks=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else Ks=/^[\/]*/;var Qs=na;na.realpath=na,na.sync=ia,na.realpathSync=ia,na.monkeypatch=function(){p.realpath=na,p.realpathSync=ia},na.unmonkeypatch=function(){p.realpath=Zs,p.realpathSync=Xs};var Zs=p.realpath,Xs=p.realpathSync,ea=process.version,ta=/^v[0-5]\./.test(ea);function ra(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function na(e,r,n){if(ta)return Zs(e,r,n);"function"==typeof r&&(n=r,r=null),Zs(e,r,function(i,o){ra(i)?function(e,r,n){if("function"!=typeof n&&(n=function(e){return"function"==typeof e?e:function(){var e;if(Js){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}(r),r=null),e=t.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return process.nextTick(n.bind(null,null,r[e]));var i,o,s,a,u=e,c={},d={};function l(){var t=Ks.exec(e);i=t[0].length,o=t[0],s=t[0],a="",Vs&&!d[s]?p.lstat(s,function(e){if(e)return n(e);d[s]=!0,m()}):process.nextTick(m)}function m(){if(i>=e.length)return r&&(r[u]=e),n(null,e);Ys.lastIndex=i;var t=Ys.exec(e);return a=o,o+=t[0],i=Ys.lastIndex,d[s=a+t[1]]||r&&r[s]===s?process.nextTick(m):r&&Object.prototype.hasOwnProperty.call(r,s)?y(r[s]):p.lstat(s,g)}function g(e,t){if(e)return n(e);if(!t.isSymbolicLink())return d[s]=!0,r&&(r[s]=s),process.nextTick(m);if(!Vs){var i=t.dev.toString(32)+":"+t.ino.toString(32);if(c.hasOwnProperty(i))return h(null,c[i],s)}p.stat(s,function(e){if(e)return n(e);p.readlink(s,function(e,t){Vs||(c[i]=t),h(e,t)})})}function h(e,i,o){if(e)return n(e);var s=t.resolve(a,i);r&&(r[o]=s),y(s)}function y(r){e=t.resolve(r,e.slice(i)),l()}l()}(e,r,n):n(i,o)})}function ia(e,r){if(ta)return Xs(e,r);try{return Xs(e,r)}catch(n){if(ra(n))return function(e,r){if(e=t.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var n,i,o,s,a=e,u={},c={};function d(){var t=Ks.exec(e);n=t[0].length,i=t[0],o=t[0],s="",Vs&&!c[o]&&(p.lstatSync(o),c[o]=!0)}for(d();n=0&&u>0){for(n=[],o=r.length;c>=0&&!a;)c==p?(n.push(c),p=r.indexOf(e,c+1)):1==n.length?a=[n.pop(),u]:((i=n.pop())=0?p:u;n.length&&(a=[o,s])}return a}aa.range=ua;var ca="\0SLASH"+Math.random()+"\0",da="\0OPEN"+Math.random()+"\0",la="\0CLOSE"+Math.random()+"\0",ma="\0COMMA"+Math.random()+"\0",ga="\0PERIOD"+Math.random()+"\0";function ha(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function ya(e){return e.split(ca).join("\\").split(da).join("{").split(la).join("}").split(ma).join(",").split(ga).join(".")}function fa(e){return"{"+e+"}"}function ba(e){return/^-?0\d/.test(e)}function _a(e,t){return e<=t}function va(e,t){return e>=t}var wa=ja;ja.Minimatch=Pa;var qa={sep:"/"};try{qa=t}catch(e){}var Ea=ja.GLOBSTAR=Pa.GLOBSTAR={},Ta={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ka="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{}),Sa=/\/+/;function Oa(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function ja(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Pa(t,r).match(e))}function Pa(e,t){if(!(this instanceof Pa))return new Pa(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==qa.sep&&(e=e.split(qa.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function Ca(e,t){if(t||(t=this instanceof Pa?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),function e(t,r){var n=[],i=sa("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var o,s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),p=s||a,u=i.body.indexOf(",")>=0;if(!p&&!u)return i.post.match(/,.*\}/)?e(t=i.pre+"{"+i.body+la+i.post):[t];if(p)o=i.body.split(/\.\./);else if(1===(o=function e(t){if(!t)return[""];var r=[],n=sa("{","}",t);if(!n)return t.split(",");var i=n.body,o=n.post,s=n.pre.split(",");s[s.length-1]+="{"+i+"}";var a=e(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),r.push.apply(r,s),r}(i.body)).length&&1===(o=e(o[0],!1).map(fa)).length)return(l=i.post.length?e(i.post,!1):[""]).map(function(e){return i.pre+o[0]+e});var c,d=i.pre,l=i.post.length?e(i.post,!1):[""];if(p){var m=ha(o[0]),g=ha(o[1]),h=Math.max(o[0].length,o[1].length),y=3==o.length?Math.abs(ha(o[2])):1,f=_a;g0){var q=new Array(w+1).join("0");v=_<0?"-"+q+v.slice(1):q+v}}c.push(v)}}else c=function(t,r){for(var n=[],i=0;i65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return Ea;if(""===e)return"";var n,i="",o=!!r.nocase,s=!1,a=[],p=[],u=!1,c=-1,d=-1,l="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function g(){if(n){switch(n){case"*":i+="[^/]*?",o=!0;break;case"?":i+="[^/]",o=!0;break;default:i+="\\"+n}m.debug("clearStateChar %j %j",n,i),n=!1}}for(var h,y=0,f=e.length;y-1;T--){var k=p[T],S=i.slice(0,k.reStart),O=i.slice(k.reStart,k.reEnd-8),j=i.slice(k.reEnd-8,k.reEnd),P=i.slice(k.reEnd);j+=P;var C=S.split("(").length-1,A=P;for(y=0;y=0&&!(n=e[i]);i--);for(i=0;i>> no match, partial?",e,d,t,l),d!==s))}if("string"==typeof u?(p=n.nocase?c.toLowerCase()===u.toLowerCase():c===u,this.debug("string match",u,c,p)):(p=c.match(u),this.debug("pattern match",u,c,p)),!p)return!1}if(i===s&&o===a)return!0;if(i===s)return r;if(o===a)return i===s-1&&""===e[i];throw new Error("wtf?")};var Ra=b(function(e){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),xa=b(function(e){try{if("function"!=typeof d.inherits)throw"";e.exports=d.inherits}catch(t){e.exports=Ra}});function Ga(e){return"/"===e.charAt(0)}function Fa(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}var Ia="win32"===process.platform?Fa:Ga,La=Fa;function Da(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Ia.posix=Ga,Ia.win32=La;var Ua=wa.Minimatch;function Ma(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Na(e,t){return e.localeCompare(t)}function $a(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new Ua(r,{dot:!0})}return{matcher:new Ua(e,{dot:!0}),gmatcher:t}}function Ba(e,r){var n=r;return n="/"===r.charAt(0)?t.join(e.root,r):Ia(r)||""===r?r:e.changedCwd?t.resolve(e.cwd,r):t.resolve(r),"win32"===process.platform&&(n=n.replace(/\\/g,"/")),n}function za(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))})}var Ha={alphasort:Na,alphasorti:Ma,setopts:function(e,r,n){if(n||(n={}),n.matchBase&&-1===r.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}e.silent=!!n.silent,e.pattern=r,e.strict=!1!==n.strict,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0),e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.maxLength=n.maxLength||Infinity,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map($a))}(e,n),e.changedCwd=!1;var i=process.cwd();Da(n,"cwd")?(e.cwd=t.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=n.root||t.resolve(e.cwd,"/"),e.root=t.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=Ia(e.cwd)?e.cwd:Ba(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,e.minimatch=new Ua(r,n),e.options=e.minimatch.options},ownProp:Da,makeAbs:Ba,finish:function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;nthis.maxLength)return!1;if(!this.stat&&Ja(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var o;try{o=p.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{i=p.statSync(t)}catch(e){i=o}else i=o}return this.statCache[t]=i,n=!0,i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},Za.prototype._mark=function(e){return Ha.mark(this,e)},Za.prototype._makeAbs=function(e){return Ha.makeAbs(this,e)};var Xa=Object.create(null),ep=ve(function(e,t){return Xa[e]?(Xa[e].push(t),null):(Xa[e]=[t],function(e){return we(function t(){var r=Xa[e],n=r.length,i=tp(arguments);try{for(var o=0;on?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete Xa[e]}})}(e))});function tp(e){for(var t=e.length,r=[],n=0;n1)return!0;for(var i=0;ithis.maxLength)return t();if(!this.stat&&op(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var o=this.statCache[r];if(void 0!==o){if(!1===o)return t(null,o);var s=o.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?t():t(null,s,o)}var a=this,u=ep("stat\0"+r,function(n,i){if(i&&i.isSymbolicLink())return p.stat(r,function(n,o){n?a._stat2(e,r,null,i,t):a._stat2(e,r,n,o,t)});a._stat2(e,r,n,i,t)});u&&p.lstat(r,u)},cp.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var o="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,o&&"FILE"===s?i():i(null,s,n)};var dp=["write","end","destroy"],lp=["resume","pause"],mp=["data","close"],gp=Array.prototype.slice,hp=function(e,t){var r=new n,i=!1;return yp(dp,function(t){r[t]=function(){return e[t].apply(e,arguments)}}),yp(lp,function(e){r[e]=function(){r.emit(e);var n=t[e];if(n)return n.apply(t,arguments);t.emit(e)}}),yp(mp,function(e){t.on(e,function(){var t=gp.call(arguments);t.unshift(e),r.emit.apply(r,t)})}),t.on("end",function(){if(!i){i=!0;var e=gp.call(arguments);e.unshift("end"),r.emit.apply(r,e)}}),e.on("drain",function(){r.emit("drain")}),e.on("error",o),t.on("error",o),r.writable=e.writable,r.readable=t.readable,r;function o(e){r.emit("error",e)}};function yp(e,t){if(e.forEach)return e.forEach(t);for(var r=0;rfunction(...r){return new(0,t.promiseModule)((n,i)=>{r.push(t.multiArgs?(...e)=>{t.errorFirst?e[0]?i(e):(e.shift(),n(e)):n(e)}:t.errorFirst?(e,t)=>{e?i(e):n(t)}:n),e.apply(this,r)})};var bp=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=typeof e;if(null===e||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);const n=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(r):!t.exclude.some(r)};let i;i="function"===r?function(...r){return t.excludeMain?e(...r):fp(e,t).apply(this,r)}:Object.create(Object.getPrototypeOf(e));for(const r in e){const o=e[r];i[r]="function"==typeof o&&n(r)?fp(o,t):o}return i},_p=b(function(e){const t=e=>Object.assign({level:9},e);e.exports=(e,r)=>e?bp(a.gzip)(e,t(r)).then(e=>e.length).catch(e=>0):Promise.resolve(0),e.exports.sync=(e,r)=>a.gzipSync(e,t(r)).length,e.exports.stream=e=>{const r=new n.PassThrough,i=new n.PassThrough,o=hp(r,i);let s=0;const p=a.createGzip(t(e)).on("data",e=>{s+=e.length}).on("error",()=>{o.gzipSize=0}).on("end",()=>{o.gzipSize=s,o.emit("gzip-size",s),i.end()});return r.pipe(p),r.pipe(i,{end:!1}),o},e.exports.file=(t,r)=>new Promise((n,i)=>{const o=p.createReadStream(t);o.on("error",i);const s=o.pipe(e.exports.stream(r));s.on("error",i),s.on("gzip-size",n)}),e.exports.fileSync=(t,r)=>e.exports.sync(p.readFileSync(t),r)}),vp=/[|\\{}()[\]^$+*?.]/g,wp=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(vp,"\\$&")},qp={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ep=b(function(e){var t={};for(var r in qp)qp.hasOwnProperty(r)&&(t[qp[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=n[i].channels,s=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:o}),Object.defineProperty(n[i],"labels",{value:s})}n.rgb.hsl=function(e){var t,r,n=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(n,i,o),a=Math.max(n,i,o),p=a-s;return a===s?t=0:n===a?t=(i-o)/p:i===a?t=2+(o-n)/p:o===a&&(t=4+(n-i)/p),(t=Math.min(60*t,360))<0&&(t+=360),r=(s+a)/2,[t,100*(a===s?0:r<=.5?p/(a+s):p/(2-a-s)),100*r]},n.rgb.hsv=function(e){var t,r,n,i,o,s=e[0]/255,a=e[1]/255,p=e[2]/255,u=Math.max(s,a,p),c=u-Math.min(s,a,p),d=function(e){return(u-e)/6/c+.5};return 0===c?i=o=0:(o=c/u,t=d(s),r=d(a),n=d(p),s===u?i=n-r:a===u?i=1/3+t-n:p===u&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},n.rgb.hwb=function(e){var t=e[0],r=e[1],i=e[2];return[n.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,i))*100,100*(i=1-1/255*Math.max(t,Math.max(r,i)))]},n.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-i)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},n.rgb.keyword=function(e){var r=t[e];if(r)return r;var n,i,o,s=Infinity;for(var a in qp)if(qp.hasOwnProperty(a)){var p=(i=e,o=qp[a],Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));p.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},n.rgb.lab=function(e){var t=n.rgb.xyz(e),r=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(r-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},n.hsl.rgb=function(e){var t,r,n,i,o,s=e[0]/360,a=e[1]/100,p=e[2]/100;if(0===a)return[o=255*p,o,o];t=2*p-(r=p<.5?p*(1+a):p+a-p*a),i=[0,0,0];for(var u=0;u<3;u++)(n=s+1/3*-(u-1))<0&&n++,n>1&&n--,i[u]=255*(o=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t);return i},n.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,i*=o<=1?o:2-o,[t,100*(0===n?2*i/(o+i):2*r/(n+r)),(n+r)/2*100]},n.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),p=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,p,s];case 1:return[a,n,s];case 2:return[s,n,p];case 3:return[s,a,n];case 4:return[p,s,n];case 5:return[n,s,a]}},n.hsv.hsl=function(e){var t,r,n,i=e[0],o=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return n=(2-o)*s,r=o*a,[i,100*(r=(r/=(t=(2-o)*a)<=1?t:2-t)||0),100*(n/=2)]},n.hwb.rgb=function(e){var t,r,n,i,o,s,a,p=e[0]/360,u=e[1]/100,c=e[2]/100,d=u+c;switch(d>1&&(u/=d,c/=d),n=6*p-(t=Math.floor(6*p)),0!=(1&t)&&(n=1-n),i=u+n*((r=1-c)-u),t){default:case 6:case 0:o=r,s=i,a=u;break;case 1:o=i,s=r,a=u;break;case 2:o=u,s=r,a=i;break;case 3:o=u,s=i,a=r;break;case 4:o=i,s=u,a=r;break;case 5:o=r,s=u,a=i}return[255*o,255*s,255*a]},n.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-n)+n)),255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},n.xyz.rgb=function(e){var t,r,n,i=e[0]/100,o=e[1]/100,s=e[2]/100;return r=-.9689*i+1.8758*o+.0415*s,n=.0557*i+-.204*o+1.057*s,t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(e){var t,r,n;t=e[1]/500+(r=(e[0]+16)/116),n=r-e[2]/200;var i=Math.pow(r,3),o=Math.pow(t,3),s=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},n.lab.lch=function(e){var t,r=e[0],n=e[1],i=e[2];return(t=360*Math.atan2(i,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+i*i),t]},n.lch.lab=function(e){var t,r=e[1];return t=e[2]/360*2*Math.PI,[e[0],r*Math.cos(t),r*Math.sin(t)]},n.rgb.ansi16=function(e){var t=e[0],r=e[1],i=e[2],o=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===o&&(s+=60),s},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},n.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},n.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},n.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map(function(e){return e+e}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.max(Math.max(r,n),i),s=Math.min(Math.min(r,n),i),a=o-s;return t=a<=0?0:o===r?(n-i)/a%6:o===n?2+(i-r)/a:4+(r-n)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},n.hsl.hcg=function(e){var t,r=e[1]/100,n=e[2]/100,i=0;return(t=n<.5?2*r*n:2*r*(1-n))<1&&(i=(n-.5*t)/(1-t)),[e[0],100*t,100*i]},n.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,n=0;return r<1&&(n=(t-r)/(1-r)),[e[0],100*r,100*n]},n.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var n,i=[0,0,0],o=e[0]/360%1*6,s=o%1,a=1-s;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return[255*(t*i[0]+(n=(1-t)*r)),255*(t*i[1]+n),255*(t*i[2]+n)]},n.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},n.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},n.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},n.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,n=0;return r<1&&(n=(t-r)/(1-r)),[e[0],100*r,100*n]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});function Tp(e,t){return function(r){return t(e(r))}}function kp(e,t){for(var r=[t[e].parent,e],n=Ep[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Tp(Ep[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var Sp={};Object.keys(Ep).forEach(function(e){Sp[e]={},Object.defineProperty(Sp[e],"channels",{value:Ep[e].channels}),Object.defineProperty(Sp[e],"labels",{value:Ep[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(Ep),r=t.length,n=0;n1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)})});var Op=Sp,jp=b(function(e){const t=(e,t)=>function(){const r=e.apply(Op,arguments);return`[${r+t}m`},r=(e,t)=>function(){const r=e.apply(Op,arguments);return`[${38+t};5;${r}m`},n=(e,t)=>function(){const r=e.apply(Op,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const r=i[t];for(const t of Object.keys(r)){const n=r[t];i[t]={open:`[${n[0]}m`,close:`[${n[1]}m`},r[t]=i[t],e.set(n[0],n[1])}Object.defineProperty(i,t,{value:r,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,s=(e,t,r)=>[e,t,r];i.color.close="",i.bgColor.close="",i.color.ansi={ansi:t(o,0)},i.color.ansi256={ansi256:r(o,0)},i.color.ansi16m={rgb:n(s,0)},i.bgColor.ansi={ansi:t(o,10)},i.bgColor.ansi256={ansi256:r(o,10)},i.bgColor.ansi16m={rgb:n(s,10)};for(let e of Object.keys(Op)){if("object"!=typeof Op[e])continue;const o=Op[e];"ansi16"===e&&(e="ansi"),"ansi16"in o&&(i.color.ansi[e]=t(o.ansi16,0),i.bgColor.ansi[e]=t(o.ansi16,10)),"ansi256"in o&&(i.color.ansi256[e]=r(o.ansi256,0),i.bgColor.ansi256[e]=r(o.ansi256,10)),"rgb"in o&&(i.color.ansi16m[e]=n(o.rgb,0),i.bgColor.ansi16m[e]=n(o.rgb,10))}return i}})}),Pp=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Cp)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Cp)||"codeship"===Cp.CI_NAME?1:t;if("TEAMCITY_VERSION"in Cp)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Cp.TEAMCITY_VERSION)?1:0;if("truecolor"===Cp.COLORTERM)return 3;if("TERM_PROGRAM"in Cp){const e=parseInt((Cp.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Cp.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Cp.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Cp.TERM)?1:"COLORTERM"in Cp?1:t}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}Pp("no-color")||Pp("no-colors")||Pp("color=false")?Ap=!1:(Pp("color")||Pp("colors")||Pp("color=true")||Pp("color=always"))&&(Ap=!0),"FORCE_COLOR"in Cp&&(Ap=0===Cp.FORCE_COLOR.length||0!==parseInt(Cp.FORCE_COLOR,10));var xp={supportsColor:Rp,stdout:Rp(process.stdout),stderr:Rp(process.stderr)};const Gp=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Fp=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ip=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Lp=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Dp=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Up(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Dp.get(e)||e}function Mp(e,t){const r=[],n=t.trim().split(/\s*,\s*/g);let i;for(const t of n)if(isNaN(t)){if(!(i=t.match(Ip)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(i[2].replace(Lp,(e,t,r)=>t?Up(t):r))}else r.push(Number(t));return r}function Np(e){Fp.lastIndex=0;const t=[];let r;for(;null!==(r=Fp.exec(e));){const e=r[1];if(r[2]){const n=Mp(e,r[2]);t.push([e].concat(n))}else t.push([e])}return t}function $p(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=r[e].length>0?n[e].apply(n,r[e]):n[e]}return n}var Bp=(e,t)=>{const r=[],n=[];let i=[];if(t.replace(Gp,(t,o,s,a,p,u)=>{if(o)i.push(Up(o));else if(a){const t=i.join("");i=[],n.push(0===r.length?t:$p(e,r)(t)),r.push({inverse:s,styles:Np(a)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");n.push($p(e,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),n.push(i.join("")),r.length>0)throw new Error(`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`);return n.join("")},zp=b(function(e){const t=xp.stdout,r="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function s(e,r){e.level=void 0===(r=r||{}).level?t?t.level:0:r.level,e.enabled="enabled"in r?r.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return s(t,e),t.template=function(){const e=[].slice.call(arguments);return d.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}s(this,e)}r&&(jp.blue.open="");for(const e of Object.keys(jp))jp[e].closeRe=new RegExp(wp(jp[e].close),"g"),o[e]={get(){const t=jp[e];return u.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};o.visible={get(){return u.call(this,this._styles||[],!0,"visible")}},jp.color.closeRe=new RegExp(wp(jp.color.close),"g");for(const e of Object.keys(jp.color.ansi))i.has(e)||(o[e]={get(){const t=this.level;return function(){const r=jp.color[n[t]][e].apply(null,arguments),i={open:r,close:jp.color.close,closeRe:jp.color.closeRe};return u.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});jp.bgColor.closeRe=new RegExp(wp(jp.bgColor.close),"g");for(const e of Object.keys(jp.bgColor.ansi))i.has(e)||(o["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=jp.bgColor[n[t]][e].apply(null,arguments),i={open:r,close:jp.bgColor.close,closeRe:jp.bgColor.closeRe};return u.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});const p=Object.defineProperties(()=>{},o);function u(e,t,r){const n=function(){return c.apply(n,arguments)};n._styles=e,n._empty=t;const i=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=p,n}function c(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};var Jp=(e,t)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t=Object.assign({bits:!1},t)).bits?Wp:Hp;if(t.signed&&0===e)return" 0 "+r[0];const n=e<0,i=n?"-":t.signed?"+":"";if(n&&(e=-e),e<1)return i+Vp(e,t.locale)+" "+r[0];const o=Math.min(Math.floor(Math.log10(e)/3),r.length-1);return e=Number((e/Math.pow(1e3,o)).toPrecision(3)),i+Vp(e,t.locale)+" "+r[o]},Yp=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=d.promisify(p.readFile),i=e=>"string"==typeof e?Buffer.from(e,"utf8"):e,o=(e,t)=>({params:{[a.constants.BROTLI_PARAM_MODE]:e&&"mode"in e&&e.mode||a.constants.BROTLI_DEFAULT_MODE,[a.constants.BROTLI_PARAM_QUALITY]:e&&"quality"in e&&e.quality||a.constants.BROTLI_MAX_QUALITY,[a.constants.BROTLI_PARAM_SIZE_HINT]:t?t.byteLength:0}});async function s(e,t){const r=i(e);return new Promise(function(e,n){a.brotliCompress(r,o(t,r),(t,r)=>{null!==t&&n(t),e(r.byteLength)})})}function u(e,t){const r=i(e);return a.brotliCompressSync(r,o(t,r)).byteLength}t.default=s,t.sync=u,t.stream=function(e){const t=new n.PassThrough,r=new n.PassThrough,i=hp(t,r);let s=0;const p=a.createBrotliCompress(o(e)).on("data",e=>{s+=e.length}).on("error",()=>{i.brotliSize=0}).on("end",()=>{i.brotliSize=s,i.emit("brotli-size",s),r.end()});return t.pipe(p),t.pipe(r,{end:!1}),i},t.file=async function(e,t){const n=await r(e);return await s(n,t)},t.fileSync=function(e,t){return u(p.readFileSync(e),t)}});f(Yp);var Kp=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*wu;case"hours":case"hour":case"hrs":case"hr":case"h":return r*vu;case"minutes":case"minute":case"mins":case"min":case"m":return r*_u;case"seconds":case"second":case"secs":case"sec":case"s":return r*bu;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return Eu(e,wu,"day")||Eu(e,vu,"hour")||Eu(e,_u,"minute")||Eu(e,bu,"second")||e+" ms"}(e):function(e){return e>=wu?Math.round(e/wu)+"d":e>=vu?Math.round(e/vu)+"h":e>=_u?Math.round(e/_u)+"m":e>=bu?Math.round(e/bu)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Eu(e,t,r){if(!(e=31||"{}".userAgent&&"{}".userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())}),Su=b(function(e,t){(t=e.exports=Tu).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),n=0;n=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function r(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,d.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,d.inspect(e,this.inspectOpts)},t.enable(r())}),Ou=b(function(e){e.exports="undefined"==typeof process||"renderer"===process.type?ku:Su}),ju=n.Writable,Pu=Ou("follow-redirects"),Cu={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},Au=Object.create(null);function Ru(e,t){ju.call(this),e.headers=e.headers||{},this._options=e,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e.host&&(e.hostname||(e.hostname=e.host),delete e.host),t&&this.on("response",t);var r=this;if(this._onNativeResponse=function(e){r._processResponse(e)},!e.pathname&&e.path){var n=e.path.indexOf("?");n<0?e.pathname=e.path:(e.pathname=e.path.substring(0,n),e.search=e.path.substring(n))}this._performRequest()}function xu(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",s=r[i]=e[n],a=t[n]=Object.create(s);a.request=function(e,n){return"string"==typeof e?(e=o.parse(e)).maxRedirects=t.maxRedirects:e=Object.assign({protocol:i,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e),e.nativeProtocols=r,l.equal(e.protocol,i,"protocol mismatch"),Pu("options",e),new Ru(e,n)},a.get=function(e,t){var r=a.request(e,t);return r.end(),r}}),t}["abort","aborted","error","socket","timeout"].forEach(function(e){Au[e]=function(t){this._redirectable.emit(e,t)}}),(Ru.prototype=Object.create(ju.prototype)).write=function(e,t,r){if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new Error("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort()):r&&r()},Ru.prototype.end=function(e,t,r){"function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null);var n=this._currentRequest;this.write(e||"",t,function(){n.end(null,null,r)})},Ru.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Ru.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){Ru.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Ru.prototype,e,{get:function(){return this._currentRequest[e]}})}),Ru.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i in this._currentUrl=o.format(this._options),n._redirectable=this,Au)i&&n.on(i,Au[i]);if(this._isRedirect){var s=0,a=this._requestBodyBuffers;!function e(){if(s=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var r,n=this._options.headers;if(307!==e.statusCode&&!(this._options.method in Cu))for(r in this._options.method="GET",this._requestBodyBuffers=[],n)/^content-/i.test(r)&&delete n[r];if(!this._isRedirect)for(r in n)/^host$/i.test(r)&&delete n[r];var i=o.resolve(this._currentUrl,t);Pu("redirecting to",i),Object.assign(this._options,o.parse(i)),this._isRedirect=!0,this._performRequest(),e.destroy()}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};var Gu=xu({http:i,https:s});Gu.wrap=xu;var Fu="Promise based HTTP client for the browser and node.js",Iu={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},Lu={type:"git",url:"https://github.com/axios/axios.git"},Du=["xhr","http","ajax","promise","node"],Uu={url:"https://github.com/axios/axios/issues"},Mu="https://github.com/axios/axios",Nu={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},$u={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Bu={"follow-redirects":"1.5.10"},zu=[{path:"./dist/axios.min.js",threshold:"5kB"}],Hu="https://registry.npmjs.org/axios/-/axios-0.19.2.tgz",Wu="sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==",Vu=_({__proto__:null,name:"axios",version:"0.19.2",description:Fu,main:"index.js",scripts:Iu,repository:Lu,keywords:Du,author:"Matt Zabriskie",license:"MIT",bugs:Uu,homepage:Mu,devDependencies:Nu,browser:$u,typings:"./index.d.ts",dependencies:Bu,bundlesize:zu,_resolved:Hu,_integrity:Wu,_from:"axios@0.19.2",default:{name:"axios",version:"0.19.2",description:Fu,main:"index.js",scripts:Iu,repository:Lu,keywords:Du,author:"Matt Zabriskie",license:"MIT",bugs:Uu,homepage:Mu,devDependencies:Nu,browser:$u,typings:"./index.d.ts",dependencies:Bu,bundlesize:zu,_resolved:Hu,_integrity:Wu,_from:"axios@0.19.2"}}),Ju=Gu.http,Yu=Gu.https,Ku=/https:?/,Qu={"Content-Type":"application/x-www-form-urlencoded"};function Zu(e,t){!nu.isUndefined(e)&&nu.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Xu,ec={adapter:("undefined"!=typeof XMLHttpRequest?Xu=function(e){return new Promise(function(t,r){var n=e.data,i=e.headers;nu.isFormData(n)&&delete i["Content-Type"];var o=new XMLHttpRequest;e.auth&&(i.Authorization="Basic "+btoa((e.auth.username||"")+":"+(e.auth.password||"")));var s=gu(e.baseURL,e.url);if(o.open(e.method.toUpperCase(),ou(s,e.params,e.paramsSerializer),!0),o.timeout=e.timeout,o.onreadystatechange=function(){if(o&&4===o.readyState&&(0!==o.status||o.responseURL&&0===o.responseURL.indexOf("file:"))){var n,i,s,a,p,u="getAllResponseHeaders"in o?(n=o.getAllResponseHeaders(),p={},n?(nu.forEach(n.split("\n"),function(e){if(a=e.indexOf(":"),i=nu.trim(e.substr(0,a)).toLowerCase(),s=nu.trim(e.substr(a+1)),i){if(p[i]&&hu.indexOf(i)>=0)return;p[i]="set-cookie"===i?(p[i]?p[i]:[]).concat([s]):p[i]?p[i]+", "+s:s}}),p):p):null;mu(t,r,{data:e.responseType&&"text"!==e.responseType?o.response:o.responseText,status:o.status,statusText:o.statusText,headers:u,config:e,request:o}),o=null}},o.onabort=function(){o&&(r(lu("Request aborted",e,"ECONNABORTED",o)),o=null)},o.onerror=function(){r(lu("Network Error",e,null,o)),o=null},o.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(lu(t,e,"ECONNABORTED",o)),o=null},nu.isStandardBrowserEnv()){var a=fu,p=(e.withCredentials||yu(s))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;p&&(i[e.xsrfHeaderName]=p)}if("setRequestHeader"in o&&nu.forEach(i,function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete i[t]:o.setRequestHeader(t,e)}),nu.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),e.responseType)try{o.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&o.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&o.upload&&o.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){o&&(o.abort(),r(e),o=null)}),void 0===n&&(n=null),o.send(n)})}:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(Xu=function(e){return new Promise(function(t,r){var n=function(e){t(e)},p=function(e){r(e)},u=e.data,c=e.headers;if(c["User-Agent"]||c["user-agent"]||(c["User-Agent"]="axios/"+Vu.version),u&&!nu.isStream(u)){if(Buffer.isBuffer(u));else if(nu.isArrayBuffer(u))u=Buffer.from(new Uint8Array(u));else{if(!nu.isString(u))return p(lu("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u=Buffer.from(u,"utf-8")}c["Content-Length"]=u.length}var d=void 0;e.auth&&(d=(e.auth.username||"")+":"+(e.auth.password||""));var l=gu(e.baseURL,e.url),m=o.parse(l),g=m.protocol||"http:";if(!d&&m.auth){var h=m.auth.split(":");d=(h[0]||"")+":"+(h[1]||"")}d&&delete c.Authorization;var y=Ku.test(g),f=y?e.httpsAgent:e.httpAgent,b={path:ou(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:f,agents:{http:e.httpAgent,https:e.httpsAgent},auth:d};e.socketPath?b.socketPath=e.socketPath:(b.hostname=m.hostname,b.port=m.port);var _,v=e.proxy;if(!v&&!1!==v){var w=g.slice(0,-1)+"_proxy",q=process.env[w]||process.env[w.toUpperCase()];if(q){var E=o.parse(q),T=process.env.no_proxy||process.env.NO_PROXY,k=!0;if(T&&(k=!T.split(",").map(function(e){return e.trim()}).some(function(e){return!!e&&("*"===e||"."===e[0]&&m.hostname.substr(m.hostname.length-e.length)===e||m.hostname===e)})),k&&(v={host:E.hostname,port:E.port},E.auth)){var S=E.auth.split(":");v.auth={username:S[0],password:S[1]}}}}if(v&&(b.hostname=v.host,b.host=v.host,b.headers.host=m.hostname+(m.port?":"+m.port:""),b.port=v.port,b.path=g+"//"+m.hostname+(m.port?":"+m.port:"")+b.path,v.auth)){var O=Buffer.from(v.auth.username+":"+v.auth.password,"utf8").toString("base64");b.headers["Proxy-Authorization"]="Basic "+O}var j=y&&(!v||Ku.test(v.protocol));e.transport?_=e.transport:0===e.maxRedirects?_=j?s:i:(e.maxRedirects&&(b.maxRedirects=e.maxRedirects),_=j?Yu:Ju),e.maxContentLength&&e.maxContentLength>-1&&(b.maxBodyLength=e.maxContentLength);var P=_.request(b,function(t){if(!P.aborted){var r=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=204===t.statusCode?r:r.pipe(a.createUnzip()),delete t.headers["content-encoding"]}var i=t.req||P,o={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:i};if("stream"===e.responseType)o.data=r,mu(n,p,o);else{var s=[];r.on("data",function(t){s.push(t),e.maxContentLength>-1&&Buffer.concat(s).length>e.maxContentLength&&(r.destroy(),p(lu("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i)))}),r.on("error",function(t){P.aborted||p(du(t,e,null,i))}),r.on("end",function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding)),o.data=t,mu(n,p,o)})}}});P.on("error",function(t){P.aborted||p(du(t,e,null,P))}),e.timeout&&P.setTimeout(e.timeout,function(){P.abort(),p(lu("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",P))}),e.cancelToken&&e.cancelToken.promise.then(function(e){P.aborted||(P.abort(),p(e))}),nu.isStream(u)?u.on("error",function(t){p(du(t,e,null,P))}).pipe(P):P.end(u)})}),Xu),transformRequest:[function(e,t){return cu(t,"Accept"),cu(t,"Content-Type"),nu.isFormData(e)||nu.isArrayBuffer(e)||nu.isBuffer(e)||nu.isStream(e)||nu.isFile(e)||nu.isBlob(e)?e:nu.isArrayBufferView(e)?e.buffer:nu.isURLSearchParams(e)?(Zu(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):nu.isObject(e)?(Zu(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};nu.forEach(["delete","get","head"],function(e){ec.headers[e]={}}),nu.forEach(["post","put","patch"],function(e){ec.headers[e]=nu.merge(Qu)});var tc=ec;function rc(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var nc=function(e){return rc(e),e.headers=e.headers||{},e.data=pu(e.data,e.headers,e.transformRequest),e.headers=nu.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),nu.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||tc.adapter)(e).then(function(t){return rc(e),t.data=pu(t.data,t.headers,e.transformResponse),t},function(t){return uu(t)||(rc(e),t&&t.response&&(t.response.data=pu(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},ic=function(e,t){t=t||{};var r={},n=["url","method","params","data"],i=["headers","auth","proxy"],o=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];nu.forEach(n,function(e){void 0!==t[e]&&(r[e]=t[e])}),nu.forEach(i,function(n){nu.isObject(t[n])?r[n]=nu.deepMerge(e[n],t[n]):void 0!==t[n]?r[n]=t[n]:nu.isObject(e[n])?r[n]=nu.deepMerge(e[n]):void 0!==e[n]&&(r[n]=e[n])}),nu.forEach(o,function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])});var s=n.concat(i).concat(o),a=Object.keys(t).filter(function(e){return-1===s.indexOf(e)});return nu.forEach(a,function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])}),r};function oc(e){this.defaults=e,this.interceptors={request:new au,response:new au}}oc.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=ic(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var t=[nc,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},oc.prototype.getUri=function(e){return e=ic(this.defaults,e),ou(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},nu.forEach(["delete","get","head","options"],function(e){oc.prototype[e]=function(t,r){return this.request(nu.merge(r||{},{method:e,url:t}))}}),nu.forEach(["post","put","patch"],function(e){oc.prototype[e]=function(t,r,n){return this.request(nu.merge(n||{},{method:e,url:t,data:r}))}});var sc=oc;function ac(e){this.message=e}ac.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},ac.prototype.__CANCEL__=!0;var pc=ac;function uc(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new pc(e),t(r.reason))})}uc.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},uc.source=function(){var e;return{token:new uc(function(t){e=t}),cancel:e}};var cc=uc;function dc(e){var t=new sc(e),r=Kp(sc.prototype.request,t);return nu.extend(r,sc.prototype,t),nu.extend(r,t),r}var lc=dc(tc);lc.Axios=sc,lc.create=function(e){return dc(ic(lc.defaults,e))},lc.Cancel=pc,lc.CancelToken=cc,lc.isCancel=uu,lc.all=function(e){return Promise.all(e)},lc.spread=function(e){return function(t){return e.apply(null,t)}};var mc=lc;mc.default=lc;var gc=mc;let hc,yc,fc,bc,_c,vc,wc,qc,Ec,Tc="github";if(process.env.TRAVIS)hc=process.env.TRAVIS_REPO_SLUG,yc=process.env.TRAVIS_PULL_REQUEST_SHA||process.env.TRAVIS_COMMIT,fc=process.env.TRAVIS_EVENT_TYPE,bc=process.env.TRAVIS_COMMIT_MESSAGE,_c=process.env.TRAVIS_PULL_REQUEST,qc=`https://travis-ci.org/${hc}/jobs/${process.env.TRAVIS_JOB_ID}`,Ec=`https://travis-ci.org/${hc}/builds/${process.env.TRAVIS_JOB_ID}`,vc="push"===process.env.TRAVIS_EVENT_TYPE?process.env.TRAVIS_BRANCH:process.env.TRAVIS_PULL_REQUEST_BRANCH,wc="travis";else if(process.env.CIRCLECI)hc=process.env.CIRCLE_PROJECT_USERNAME+"/"+process.env.CIRCLE_PROJECT_REPONAME,yc=process.env.CIRCLE_SHA1,fc="push",bc="",process.env.CI_PULL_REQUEST?(_c=process.env.CI_PULL_REQUEST.split("/").pop(),fc="pull_request"):_c="",vc=process.env.CIRCLE_BRANCH,wc="circle";else if(process.env.WERCKER)hc=process.env.WERCKER_GIT_OWNER+"/"+process.env.WERCKER_GIT_REPOSITORY,yc=process.env.WERCKER_GIT_COMMIT,fc="push",bc="",_c="",vc=process.env.WERCKER_GIT_BRANCH,wc="wercker";else if(process.env.DRONE)hc=process.env.DRONE_REPO||process.env.CI_REPO||function(e){e||(e=process.env);let t=e.DRONE_REMOTE||e.CI_REMOTE;if(!t)return"";let r=t.split("/").slice(-2);return r[0]+"/"+r[1].replace(/\.git$/,"")}(process.env),yc=process.env.DRONE_COMMIT||process.env.CI_COMMIT,fc=process.env.DRONE_BUILD_EVENT||process.env.DRONE_EVENT||process.env.CI_EVENT||"push",bc="",_c=process.env.DRONE_PULL_REQUEST,vc=process.env.DRONE_BRANCH||process.env.CI_BRANCH,wc="drone";else if(process.env.GITLAB_CI)hc=process.env.CI_PROJECT_PATH,vc=process.env.CI_COMMIT_REF_NAME,bc=process.env.CI_COMMIT_MESSAGE,_c=process.env.CI_MERGE_REQUEST_ID||"",yc=process.env.CI_COMMIT_SHA,fc=process.env.CI_PIPELINE_SOURCE,qc=process.env.CI_JOB_URL,Tc="gitlab",wc="gitlab";else if("codeship"===process.env.CI_NAME)hc=process.env.CI_REPO_NAME,vc=process.env.CI_BRANCH,bc=process.env.CI_COMMIT_MESSAGE||process.env.CI_MESSAGE,fc="push",_c=process.env.CI_PR_NUMBER,yc=process.env.CI_COMMIT_ID,Ec=process.env.CI_BUILD_URL,wc="codeship";else if(process.env.GITHUB_ACTION){const e=process.env.GITHUB_REF.split("/")[2];hc=process.env.GITHUB_REPOSITORY,yc=process.env.GITHUB_SHA,fc=process.env.GITHUB_EVENT_NAME,bc="",_c="pull_request"===fc?e:"",vc="pull_request"===fc?process.env.GITHUB_HEAD_REF:e,wc="github_actions"}else process.env.NETLIFY?(hc=process.env.REPOSITORY_URL.split("@github.com/").pop(),fc=process.env.PULL_REQUEST?"pull_request":"push",_c=process.env.PULL_REQUEST?process.env.REVIEW_ID:"",yc=process.env.COMMIT_REF,vc=process.env.HEAD,wc="netlify"):process.env.NOW_GITHUB_ORG?(hc=process.env.NOW_GITHUB_ORG+"/"+process.env.NOW_GITHUB_REPO,fc="push",_c="",yc=process.env.NOW_GITHUB_COMMIT_SHA,vc=process.env.NOW_GITHUB_COMMIT_REF,wc="now"):process.env.CI&&(hc=process.env.CI_REPO_OWNER+"/"+process.env.CI_REPO_NAME,yc=process.env.CI_COMMIT_SHA,fc=process.env.CI_EVENT||"push",bc=process.env.CI_COMMIT_MESSAGE,_c=process.env.CI_MERGE_REQUEST_ID,vc=process.env.CI_BRANCH,wc="custom");var kc={repo:hc,sha:yc,event:fc,commit_message:bc,branch:vc,pull_request_number:_c,ci:wc,platform:Tc,jobUrl:qc,buildUrl:Ec};const{repo:Sc,sha:Oc,ci:jc}=kc,Pc=process.env.SIZE_STORE_ENDPOINT||"https://size-store.now.sh";var Cc={publishDiff:async function(e,t){if("test"!==process.env.NODE_ENV&&jc)try{const r={ci:jc,repo:Sc,sha:Oc,filename:t,diff:e};await gc.post(`${Pc}/diff`,r)}catch(e){console.error("error: while publishing diff",e)}},publishSizes:async function(e,t){if("test"!==process.env.NODE_ENV&&jc)try{const r={ci:jc,repo:Sc,sha:Oc,filename:t,size:e};await gc.post(`${Pc}/size`,r)}catch(e){console.error("error: while publishing sizes",e)}}},Ac=function(e){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((t,r)=>{arguments[arguments.length]=(e,n)=>{if(e)return r(e);t(n)},arguments.length++,e.apply(this,arguments)});e.apply(this,arguments)},"name",{value:e.name})},Rc=process.cwd,xc=null,Gc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return xc||(xc=Rc.call(process)),xc};try{process.cwd()}catch(e){}var Fc=process.chdir;process.chdir=function(e){xc=null,Fc.call(process,e)};var Ic=n.Stream,Lc=b(function(e){var t,r;"function"==typeof Symbol&&"function"==typeof Symbol.for?(t=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(t="___graceful-fs.queue",r="___graceful-fs.previous");var n=function(){};if(d.debuglog?n=d.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(n=function(){var e=d.format.apply(d,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!y[t]){var i=[];Object.defineProperty(y,t,{get:function(){return i}}),p.close=function(e){function t(t,r){return e.call(p,t,function(e){e||a(),"function"==typeof r&&r.apply(this,arguments)})}return Object.defineProperty(t,r,{value:e}),t}(p.close),p.closeSync=function(e){function t(t){e.apply(p,arguments),a()}return Object.defineProperty(t,r,{value:e}),t}(p.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){n(y[t]),l.equal(y[t].length,0)})}function o(e){(function(e){var t,r;function n(t){return t?function(r,n,i){return t.call(e,r,n,function(e){u(e)&&(e=null),i&&i.apply(this,arguments)})}:t}function i(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!u(e))throw e}}:t}function o(t){return t?function(r,n,i,o){return t.call(e,r,n,i,function(e){u(e)&&(e=null),o&&o.apply(this,arguments)})}:t}function s(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!u(e))throw e}}:t}function a(t){return t?function(r,n,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,o):t.call(e,r,o)}:t}function p(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:t}function u(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}g.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,g.O_WRONLY|g.O_SYMLINK,r,function(t,i){t?n&&n(t):e.fchmod(i,r,function(t){e.close(i,function(e){n&&n(t||e)})})})},e.lchmodSync=function(t,r){var n,i=e.openSync(t,g.O_WRONLY|g.O_SYMLINK,r),o=!0;try{n=e.fchmodSync(i,r),o=!1}finally{if(o)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e),e.lutimes||function(e){g.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,n,i){e.open(t,g.O_SYMLINK,function(t,o){t?i&&i(t):e.futimes(o,r,n,function(t){e.close(o,function(e){i&&i(t||e)})})})},e.lutimesSync=function(t,r,n){var i,o=e.openSync(t,g.O_SYMLINK),s=!0;try{i=e.futimesSync(o,r,n),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}):(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=p(e.statSync),e.fstatSync=p(e.fstatSync),e.lstatSync=p(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){}),"win32"===Gc&&(e.rename=(t=e.rename,function(r,n,i){var o=Date.now(),s=0;t(r,n,function a(p){if(p&&("EACCES"===p.code||"EPERM"===p.code)&&Date.now()-o<6e4)return setTimeout(function(){e.stat(n,function(e,o){e&&"ENOENT"===e.code?t(r,n,a):i(p)})},s),void(s<100&&(s+=10));i&&i(p)})})),e.read=function(t){function r(r,n,i,o,s,a){var p;if(a&&"function"==typeof a){var u=0;p=function(c,d,l){if(c&&"EAGAIN"===c.code&&u<10)return u++,t.call(e,r,n,i,o,s,p);a.apply(this,arguments)}}return t.call(e,r,n,i,o,s,p)}return r.__proto__=t,r}(e.read),e.readSync=(r=e.readSync,function(t,n,i,o,s){for(var a=0;;)try{return r.call(e,t,n,i,o,s)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})})(e),e.gracefulify=o,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){return"function"==typeof r&&(n=r,r=null),function e(r,n,i){return t(r,n,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof i&&i.apply(this,arguments),a()):s([e,[r,n,i]])})}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,o){return r(t,n,i,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof o&&o.apply(this,arguments),a()):s([e,[t,n,i,o]])})}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o){return n(t,r,i,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof o&&o.apply(this,arguments),a()):s([e,[t,r,i,o]])})}(e,t,r,i)});var i=e.readdir;function p(t){return i.apply(e,t)}if(e.readdir=function(e,t,r){var n=[e];return"function"!=typeof t?n.push(t):r=t,n.push(function(e,t){t&&t.sort&&t.sort(),!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof r&&r.apply(this,arguments),a()):s([p,[n]])}),p(n)},"v0.8"===process.version.substr(0,4)){var u=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Ic.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,n=n||{};for(var o=Object.keys(n),s=0,a=o.length;sthis.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}):process.nextTick(function(){i._read()})},WriteStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Ic.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var i=Object.keys(n),o=0,s=i.length;o= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}(e);h=u.ReadStream,y=u.WriteStream}var c=e.ReadStream;c&&(h.prototype=Object.create(c.prototype),h.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())})});var d=e.WriteStream;d&&(y.prototype=Object.create(d.prototype),y.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))})}),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var l=h;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:!0,configurable:!0});var m=y;function h(e,t){return this instanceof h?(c.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function y(e,t){return this instanceof y?(d.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var f=e.open;function b(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i){return f(t,r,n,function(o,p){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),a()):s([e,[t,r,n,i]])})}(e,t,r,n)}return e.open=b,e}function s(e){n("ENQUEUE",e[0].name,e[1]),y[t].push(e)}function a(){var e=y[t].shift();e&&(n("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}e.exports=o(function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:e.__proto__};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}(p)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!p.__patched&&(e.exports=o(p),p.__patched=!0)}),Dc=b(function(e,t){const r=Ac,n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof Lc[e]);Object.keys(Lc).forEach(e=>{"promises"!==e&&(t[e]=Lc[e])}),n.forEach(e=>{t[e]=r(Lc[e])}),t.exists=function(e,t){return"function"==typeof t?Lc.exists(e,t):new Promise(t=>Lc.exists(e,t))},t.read=function(e,t,r,n,i,o){return"function"==typeof o?Lc.read(e,t,r,n,i,o):new Promise((o,s)=>{Lc.read(e,t,r,n,i,(e,t,r)=>{if(e)return s(e);o({bytesRead:t,buffer:r})})})},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?Lc.write(e,t,...r):new Promise((n,i)=>{Lc.write(e,t,...r,(e,t,r)=>{if(e)return i(e);n({bytesWritten:t,buffer:r})})})},"function"==typeof Lc.realpath.native&&(t.realpath.native=r(Lc.realpath.native))});const Uc=/[<>:"|?*]/;var Mc=function(e){const r=function(e){return(e=t.normalize(t.resolve(e)).split(t.sep)).length>0?e[0]:null}(e);return e=e.replace(r,""),Uc.test(e)};const Nc=Mc,$c=parseInt("0777",8),Bc=Mc,zc=parseInt("0777",8);var Hc=function e(r,n,i){n&&"object"==typeof n||(n={mode:n});let o=n.mode;const s=n.fs||Lc;if("win32"===process.platform&&Bc(r)){const e=new Error(r+" contains invalid WIN32 path characters.");throw e.code="EINVAL",e}void 0===o&&(o=zc&~process.umask()),i||(i=null),r=t.resolve(r);try{s.mkdirSync(r,o),i=i||r}catch(o){if("ENOENT"===o.code){if(t.dirname(r)===r)throw o;i=e(t.dirname(r),n,i),e(r,n,i)}else{let e;try{e=s.statSync(r)}catch(e){throw o}if(!e.isDirectory())throw o}}return i};const Wc=Ac(function e(r,n,i,o){if("function"==typeof n?(i=n,n={}):n&&"object"==typeof n||(n={mode:n}),"win32"===process.platform&&Nc(r)){const e=new Error(r+" contains invalid WIN32 path characters.");return e.code="EINVAL",i(e)}let s=n.mode;const a=n.fs||Lc;void 0===s&&(s=$c&~process.umask()),o||(o=null),i=i||function(){},r=t.resolve(r),a.mkdir(r,s,s=>{if(!s)return i(null,o=o||r);switch(s.code){case"ENOENT":if(t.dirname(r)===r)return i(s);e(t.dirname(r),n,(t,o)=>{t?i(t,o):e(r,n,i,o)});break;default:a.stat(r,(e,t)=>{e||!t.isDirectory()?i(s,o):i(null,o)})}})});var Vc={mkdirs:Wc,mkdirsSync:Hc,mkdirp:Wc,mkdirpSync:Hc,ensureDir:Wc,ensureDirSync:Hc};const Jc=process.versions.node.split("."),Yc=Number.parseInt(Jc[0],10),Kc=Number.parseInt(Jc[1],10),Qc=Number.parseInt(Jc[2],10);function Zc(){if(Yc>10)return!0;if(10===Yc){if(Kc>5)return!0;if(5===Kc&&Qc>=0)return!0}return!1}function Xc(e,r){const n=t.resolve(e).split(t.sep).filter(e=>e),i=t.resolve(r).split(t.sep).filter(e=>e);return n.reduce((e,t,r)=>e&&i[r]===t,!0)}function ed(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var td={checkPaths:function(e,t,r,n){!function(e,t,r){Zc()?Lc.stat(e,{bigint:!0},(e,n)=>{if(e)return r(e);Lc.stat(t,{bigint:!0},(e,t)=>e?"ENOENT"===e.code?r(null,{srcStat:n,destStat:null}):r(e):r(null,{srcStat:n,destStat:t}))}):Lc.stat(e,(e,n)=>{if(e)return r(e);Lc.stat(t,(e,t)=>e?"ENOENT"===e.code?r(null,{srcStat:n,destStat:null}):r(e):r(null,{srcStat:n,destStat:t}))})}(e,t,(i,o)=>{if(i)return n(i);const{srcStat:s,destStat:a}=o;return a&&a.ino&&a.dev&&a.ino===s.ino&&a.dev===s.dev?n(new Error("Source and destination must not be the same.")):s.isDirectory()&&Xc(e,t)?n(new Error(ed(e,t,r))):n(null,{srcStat:s,destStat:a})})},checkPathsSync:function(e,t,r){const{srcStat:n,destStat:i}=function(e,t){let r,n;r=Zc()?Lc.statSync(e,{bigint:!0}):Lc.statSync(e);try{n=Zc()?Lc.statSync(t,{bigint:!0}):Lc.statSync(t)}catch(e){if("ENOENT"===e.code)return{srcStat:r,destStat:null};throw e}return{srcStat:r,destStat:n}}(e,t);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Xc(e,t))throw new Error(ed(e,t,r));return{srcStat:n,destStat:i}},checkParentPaths:function e(r,n,i,o,s){const a=t.resolve(t.dirname(r)),p=t.resolve(t.dirname(i));if(p===a||p===t.parse(p).root)return s();Zc()?Lc.stat(p,{bigint:!0},(t,a)=>t?"ENOENT"===t.code?s():s(t):a.ino&&a.dev&&a.ino===n.ino&&a.dev===n.dev?s(new Error(ed(r,i,o))):e(r,n,p,o,s)):Lc.stat(p,(t,a)=>t?"ENOENT"===t.code?s():s(t):a.ino&&a.dev&&a.ino===n.ino&&a.dev===n.dev?s(new Error(ed(r,i,o))):e(r,n,p,o,s))},checkParentPathsSync:function e(r,n,i,o){const s=t.resolve(t.dirname(r)),a=t.resolve(t.dirname(i));if(a===s||a===t.parse(a).root)return;let p;try{p=Zc()?Lc.statSync(a,{bigint:!0}):Lc.statSync(a)}catch(e){if("ENOENT"===e.code)return;throw e}if(p.ino&&p.dev&&p.ino===n.ino&&p.dev===n.dev)throw new Error(ed(r,i,o));return e(r,n,a,o)},isSrcSubdir:Xc};const rd=Vc.mkdirsSync;function nd(e,r,n,i){if(!i.filter||i.filter(r,n))return function(e,r,n,i){const o=(i.dereference?Lc.statSync:Lc.lstatSync)(r);return o.isDirectory()?function(e,t,r,n,i){if(!t)return function(e,t,r,n){return Lc.mkdirSync(r),od(t,r,n),Lc.chmodSync(r,e.mode)}(e,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return od(r,n,i)}(o,e,r,n,i):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?function(e,t,r,n,i){return t?function(e,t,r,n){if(n.overwrite)return Lc.unlinkSync(r),id(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,n,i):id(e,r,n,i)}(o,e,r,n,i):o.isSymbolicLink()?function(e,r,n,i){let o=Lc.readlinkSync(r);if(i.dereference&&(o=t.resolve(process.cwd(),o)),e){let e;try{e=Lc.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return Lc.symlinkSync(o,n);throw e}if(i.dereference&&(e=t.resolve(process.cwd(),e)),td.isSrcSubdir(o,e))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(Lc.statSync(n).isDirectory()&&td.isSrcSubdir(e,o))throw new Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return Lc.unlinkSync(t),Lc.symlinkSync(e,t)}(o,n)}return Lc.symlinkSync(o,n)}(e,r,n,i):void 0}(e,r,n,i)}function id(e,t,r,n){return"function"==typeof Lc.copyFileSync?(Lc.copyFileSync(t,r),Lc.chmodSync(r,e.mode),n.preserveTimestamps?function(e,t,r){const n=Lc.openSync(e,"r+");return Lc.futimesSync(n,t,r),Lc.closeSync(n)}(r,e.atime,e.mtime):void 0):function(e,t,r,n){const i=function(e){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(65536)}catch(e){return new Buffer(65536)}return new Buffer(65536)}(),o=Lc.openSync(t,"r"),s=Lc.openSync(r,"w",e.mode);let a=0;for(;afunction(e,r,n,i){const o=t.join(r,e),s=t.join(n,e),{destStat:a}=td.checkPathsSync(o,s,"copy");return nd(a,o,s,i)}(i,e,r,n))}var sd,ad={copySync:function(e,r,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:i,destStat:o}=td.checkPathsSync(e,r,"copy");return td.checkParentPathsSync(e,i,r,"copy"),function(e,r,n,i){if(i.filter&&!i.filter(r,n))return;const o=t.dirname(n);return Lc.existsSync(o)||rd(o),nd(e,r,n,i)}(o,e,r,n)}},pd={pathExists:(sd=function(e){return Dc.access(e).then(()=>!0).catch(()=>!1)},Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return sd.apply(this,arguments);sd.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:sd.name})),pathExistsSync:Dc.existsSync};const ud=Vc.mkdirs,cd=pd.pathExists;function dd(e,r,n,i,o){const s=t.dirname(n);cd(s,(t,a)=>t?o(t):a?md(e,r,n,i,o):void ud(s,t=>t?o(t):md(e,r,n,i,o)))}function ld(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(s=>s?e(t,r,n,i,o):o(),e=>o(e))}function md(e,t,r,n,i){return n.filter?ld(gd,e,t,r,n,i):gd(e,t,r,n,i)}function gd(e,r,n,i,o){(i.dereference?Lc.stat:Lc.lstat)(r,(s,a)=>s?o(s):a.isDirectory()?function(e,t,r,n,i,o){return t?t&&!t.isDirectory()?o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):fd(r,n,i,o):function(e,t,r,n,i){Lc.mkdir(r,o=>{if(o)return i(o);fd(t,r,n,t=>t?i(t):Lc.chmod(r,e.mode,i))})}(e,r,n,i,o)}(a,e,r,n,i,o):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(e,t,r,n,i,o){return t?function(e,t,r,n,i){if(!n.overwrite)return n.errorOnExist?i(new Error(`'${r}' already exists`)):i();Lc.unlink(r,o=>o?i(o):hd(e,t,r,n,i))}(e,r,n,i,o):hd(e,r,n,i,o)}(a,e,r,n,i,o):a.isSymbolicLink()?function(e,r,n,i,o){Lc.readlink(r,(r,s)=>r?o(r):(i.dereference&&(s=t.resolve(process.cwd(),s)),e?void Lc.readlink(n,(r,a)=>r?"EINVAL"===r.code||"UNKNOWN"===r.code?Lc.symlink(s,n,o):o(r):(i.dereference&&(a=t.resolve(process.cwd(),a)),td.isSrcSubdir(s,a)?o(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`)):e.isDirectory()&&td.isSrcSubdir(a,s)?o(new Error(`Cannot overwrite '${a}' with '${s}'.`)):function(e,t,r){Lc.unlink(t,n=>n?r(n):Lc.symlink(e,t,r))}(s,n,o))):Lc.symlink(s,n,o)))}(e,r,n,i,o):void 0)}function hd(e,t,r,n,i){return"function"==typeof Lc.copyFile?Lc.copyFile(t,r,t=>t?i(t):yd(e,r,n,i)):function(e,t,r,n,i){const o=Lc.createReadStream(t);o.on("error",e=>i(e)).once("open",()=>{const t=Lc.createWriteStream(r,{mode:e.mode});t.on("error",e=>i(e)).on("open",()=>o.pipe(t)).once("close",()=>yd(e,r,n,i))})}(e,t,r,n,i)}function yd(e,t,r,n){Lc.chmod(t,e.mode,i=>i?n(i):r.preserveTimestamps?function(e,t,r,n){Lc.open(e,"r+",(e,i)=>{if(e)return n(e);Lc.futimes(i,t,r,e=>{Lc.close(i,t=>{n&&n(e||t)})})})}(t,e.atime,e.mtime,n):n())}function fd(e,r,n,i){Lc.readdir(e,(o,s)=>o?i(o):function e(r,n,i,o,s){const a=r.pop();return a?function(r,n,i,o,s,a){const p=t.join(i,n),u=t.join(o,n);td.checkPaths(p,u,"copy",(t,n)=>{if(t)return a(t);const{destStat:c}=n;md(c,p,u,s,t=>t?a(t):e(r,i,o,s,a))})}(r,a,n,i,o,s):s()}(s,e,r,n,i))}var bd={copy:Ac(function(e,t,r,n){"function"!=typeof r||n?"function"==typeof r&&(r={filter:r}):(n=r,r={}),n=n||function(){},(r=r||{}).clobber=!("clobber"in r&&!r.clobber),r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),td.checkPaths(e,t,"copy",(i,o)=>{if(i)return n(i);const{srcStat:s,destStat:a}=o;td.checkParentPaths(e,s,t,"copy",i=>i?n(i):r.filter?ld(dd,a,e,t,r,n):dd(a,e,t,r,n))})})};const _d="win32"===process.platform;function vd(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||Lc[t],e[t+="Sync"]=e[t]||Lc[t]}),e.maxBusyTries=e.maxBusyTries||3}function wd(e,t,r){let n=0;"function"==typeof t&&(r=t,t={}),l(e,"rimraf: missing path"),l.strictEqual(typeof e,"string","rimraf: path should be a string"),l.strictEqual(typeof r,"function","rimraf: callback function required"),l(t,"rimraf: invalid options argument provided"),l.strictEqual(typeof t,"object","rimraf: options should be object"),vd(t),qd(e,t,function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&nqd(e,t,i),100*n);"ENOENT"===o.code&&(o=null)}r(o)})}function qd(e,t,r){l(e),l(t),l("function"==typeof r),t.lstat(e,(n,i)=>n&&"ENOENT"===n.code?r(null):n&&"EPERM"===n.code&&_d?Ed(e,t,n,r):i&&i.isDirectory()?kd(e,t,n,r):void t.unlink(e,n=>{if(n){if("ENOENT"===n.code)return r(null);if("EPERM"===n.code)return _d?Ed(e,t,n,r):kd(e,t,n,r);if("EISDIR"===n.code)return kd(e,t,n,r)}return r(n)}))}function Ed(e,t,r,n){l(e),l(t),l("function"==typeof n),r&&l(r instanceof Error),t.chmod(e,438,i=>{i?n("ENOENT"===i.code?null:r):t.stat(e,(i,o)=>{i?n("ENOENT"===i.code?null:r):o.isDirectory()?kd(e,t,r,n):t.unlink(e,n)})})}function Td(e,t,r){let n;l(e),l(t),r&&l(r instanceof Error);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}try{n=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}n.isDirectory()?Od(e,t,r):t.unlinkSync(e)}function kd(e,r,n,i){l(e),l(r),n&&l(n instanceof Error),l("function"==typeof i),r.rmdir(e,o=>{!o||"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code?i(o&&"ENOTDIR"===o.code?n:o):function(e,r,n){l(e),l(r),l("function"==typeof n),r.readdir(e,(i,o)=>{if(i)return n(i);let s,a=o.length;if(0===a)return r.rmdir(e,n);o.forEach(i=>{wd(t.join(e,i),r,t=>{if(!s)return t?n(s=t):void(0==--a&&r.rmdir(e,n))})})})}(e,r,i)})}function Sd(e,t){let r;vd(t=t||{}),l(e,"rimraf: missing path"),l.strictEqual(typeof e,"string","rimraf: path should be a string"),l(t,"rimraf: missing options"),l.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&_d&&Td(e,t,r)}try{r&&r.isDirectory()?Od(e,t,null):t.unlinkSync(e)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return _d?Td(e,t,r):Od(e,t,r);if("EISDIR"!==r.code)throw r;Od(e,t,r)}}function Od(e,r,n){l(e),l(r),n&&l(n instanceof Error);try{r.rmdirSync(e)}catch(i){if("ENOTDIR"===i.code)throw n;if("ENOTEMPTY"===i.code||"EEXIST"===i.code||"EPERM"===i.code)!function(e,r){if(l(e),l(r),r.readdirSync(e).forEach(n=>Sd(t.join(e,n),r)),!_d)return r.rmdirSync(e,r);{const t=Date.now();do{try{return r.rmdirSync(e,r)}catch(e){}}while(Date.now()-t<500)}}(e,r);else if("ENOENT"!==i.code)throw i}}var jd=wd;wd.sync=Sd;var Pd={remove:Ac(jd),removeSync:jd.sync};const Cd=Ac(function(e,r){r=r||function(){},Lc.readdir(e,(n,i)=>{if(n)return Vc.mkdirs(e,r);i=i.map(r=>t.join(e,r)),function e(){const t=i.pop();if(!t)return r();Pd.remove(t,t=>{if(t)return r(t);e()})}()})});function Ad(e){let r;try{r=Lc.readdirSync(e)}catch(t){return Vc.mkdirsSync(e)}r.forEach(r=>{r=t.join(e,r),Pd.removeSync(r)})}var Rd={emptyDirSync:Ad,emptydirSync:Ad,emptyDir:Cd,emptydir:Cd};const xd=pd.pathExists;var Gd={createFile:Ac(function(e,r){function n(){Lc.writeFile(e,"",e=>{if(e)return r(e);r()})}Lc.stat(e,(i,o)=>{if(!i&&o.isFile())return r();const s=t.dirname(e);xd(s,(e,t)=>e?r(e):t?n():void Vc.mkdirs(s,e=>{if(e)return r(e);n()}))})}),createFileSync:function(e){let r;try{r=Lc.statSync(e)}catch(e){}if(r&&r.isFile())return;const n=t.dirname(e);Lc.existsSync(n)||Vc.mkdirsSync(n),Lc.writeFileSync(e,"")}};const Fd=pd.pathExists;var Id={createLink:Ac(function(e,r,n){function i(e,t){Lc.link(e,t,e=>{if(e)return n(e);n(null)})}Fd(r,(o,s)=>o?n(o):s?n(null):void Lc.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);const s=t.dirname(r);Fd(s,(t,o)=>t?n(t):o?i(e,r):void Vc.mkdirs(s,t=>{if(t)return n(t);i(e,r)}))}))}),createLinkSync:function(e,r){if(Lc.existsSync(r))return;try{Lc.lstatSync(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=t.dirname(r);return Lc.existsSync(n)?Lc.linkSync(e,r):(Vc.mkdirsSync(n),Lc.linkSync(e,r))}};const Ld=pd.pathExists,Dd=Vc.mkdirs,Ud=Vc.mkdirsSync,Md=pd.pathExists;var Nd,$d={createSymlink:Ac(function(e,r,n,i){i="function"==typeof n?n:i,n="function"!=typeof n&&n,Md(r,(o,s)=>o?i(o):s?i(null):void function(e,r,n){if(t.isAbsolute(e))return Lc.lstat(e,t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:e}));{const i=t.dirname(r),o=t.join(i,e);Ld(o,(r,s)=>r?n(r):s?n(null,{toCwd:o,toDst:e}):Lc.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:t.relative(i,e)})))}}(e,r,(o,s)=>{if(o)return i(o);e=s.toDst,function(e,t,r){if(r="function"==typeof t?t:r,t="function"!=typeof t&&t)return r(null,t);Lc.lstat(e,(e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file",r(null,t)})}(s.toCwd,n,(n,o)=>{if(n)return i(n);const s=t.dirname(r);Md(s,(t,n)=>t?i(t):n?Lc.symlink(e,r,o,i):void Dd(s,t=>{if(t)return i(t);Lc.symlink(e,r,o,i)}))})}))}),createSymlinkSync:function(e,r,n){if(Lc.existsSync(r))return;const i=function(e,r){let n;if(t.isAbsolute(e)){if(n=Lc.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const i=t.dirname(r),o=t.join(i,e);if(n=Lc.existsSync(o),n)return{toCwd:o,toDst:e};if(n=Lc.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:t.relative(i,e)}}}(e,r);e=i.toDst,n=function(e,t){let r;if(t)return t;try{r=Lc.lstatSync(e)}catch(e){return"file"}return r&&r.isDirectory()?"dir":"file"}(i.toCwd,n);const o=t.dirname(r);return Lc.existsSync(o)?Lc.symlinkSync(e,r,n):(Ud(o),Lc.symlinkSync(e,r,n))}},Bd={createFile:Gd.createFile,createFileSync:Gd.createFileSync,ensureFile:Gd.createFile,ensureFileSync:Gd.createFileSync,createLink:Id.createLink,createLinkSync:Id.createLinkSync,ensureLink:Id.createLink,ensureLinkSync:Id.createLinkSync,createSymlink:$d.createSymlink,createSymlinkSync:$d.createSymlinkSync,ensureSymlink:$d.createSymlink,ensureSymlinkSync:$d.createSymlinkSync};try{Nd=Lc}catch(e){Nd=p}function zd(e,t){var r,n="\n";return"object"==typeof t&&null!==t&&(t.spaces&&(r=t.spaces),t.EOL&&(n=t.EOL)),JSON.stringify(e,t?t.replacer:null,r).replace(/\n/g,n)+n}function Hd(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var Wd={readFile:function(e,t,r){null==r&&(r=t,t={}),"string"==typeof t&&(t={encoding:t});var n=!0;"throws"in(t=t||{})&&(n=t.throws),(t.fs||Nd).readFile(e,t,function(i,o){if(i)return r(i);var s;o=Hd(o);try{s=JSON.parse(o,t?t.reviver:null)}catch(t){return n?(t.message=e+": "+t.message,r(t)):r(null,null)}r(null,s)})},readFileSync:function(e,t){"string"==typeof(t=t||{})&&(t={encoding:t});var r=t.fs||Nd,n=!0;"throws"in t&&(n=t.throws);try{var i=r.readFileSync(e,t);return i=Hd(i),JSON.parse(i,t.reviver)}catch(t){if(n)throw t.message=e+": "+t.message,t;return null}},writeFile:function(e,t,r,n){null==n&&(n=r,r={});var i=(r=r||{}).fs||Nd,o="";try{o=zd(t,r)}catch(e){return void(n&&n(e,null))}i.writeFile(e,o,r,n)},writeFileSync:function(e,t,r){var n=(r=r||{}).fs||Nd,i=zd(t,r);return n.writeFileSync(e,i,r)}};const Vd=Ac;var Jd={readJson:Vd(Wd.readFile),readJsonSync:Wd.readFileSync,writeJson:Vd(Wd.writeFile),writeJsonSync:Wd.writeFileSync};const Yd=pd.pathExists;Jd.outputJson=Ac(function(e,r,n,i){"function"==typeof n&&(i=n,n={});const o=t.dirname(e);Yd(o,(t,s)=>t?i(t):s?Jd.writeJson(e,r,n,i):void Vc.mkdirs(o,t=>{if(t)return i(t);Jd.writeJson(e,r,n,i)}))}),Jd.outputJsonSync=function(e,r,n){const i=t.dirname(e);Lc.existsSync(i)||Vc.mkdirsSync(i),Jd.writeJsonSync(e,r,n)},Jd.outputJSON=Jd.outputJson,Jd.outputJSONSync=Jd.outputJsonSync,Jd.writeJSON=Jd.writeJson,Jd.writeJSONSync=Jd.writeJsonSync,Jd.readJSON=Jd.readJson,Jd.readJSONSync=Jd.readJsonSync;var Kd=Jd;const Qd=ad.copySync,Zd=Pd.removeSync,Xd=Vc.mkdirpSync;function el(e,t,r){try{Lc.renameSync(e,t)}catch(n){if("EXDEV"!==n.code)throw n;return function(e,t,r){return Qd(e,t,{overwrite:r,errorOnExist:!0}),Zd(e)}(e,t,r)}}var tl={moveSync:function(e,r,n){const i=(n=n||{}).overwrite||n.clobber||!1,{srcStat:o}=td.checkPathsSync(e,r,"move");return td.checkParentPathsSync(e,o,r,"move"),Xd(t.dirname(r)),function(e,t,r){if(r)return Zd(t),el(e,t,r);if(Lc.existsSync(t))throw new Error("dest already exists.");return el(e,t,r)}(e,r,i)}};const rl=bd.copy,nl=Pd.remove,il=Vc.mkdirp,ol=pd.pathExists;function sl(e,t,r,n){Lc.rename(e,t,i=>i?"EXDEV"!==i.code?n(i):function(e,t,r,n){rl(e,t,{overwrite:r,errorOnExist:!0},t=>t?n(t):nl(e,n))}(e,t,r,n):n())}var al={move:Ac(function(e,r,n,i){"function"==typeof n&&(i=n,n={});const o=n.overwrite||n.clobber||!1;td.checkPaths(e,r,"move",(n,s)=>{if(n)return i(n);const{srcStat:a}=s;td.checkParentPaths(e,a,r,"move",n=>{if(n)return i(n);il(t.dirname(r),t=>t?i(t):function(e,t,r,n){if(r)return nl(t,i=>i?n(i):sl(e,t,r,n));ol(t,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):sl(e,t,r,n))}(e,r,o,i))})})})};const pl=pd.pathExists;var ul={outputFile:Ac(function(e,r,n,i){"function"==typeof n&&(i=n,n="utf8");const o=t.dirname(e);pl(o,(t,s)=>t?i(t):s?Lc.writeFile(e,r,n,i):void Vc.mkdirs(o,t=>{if(t)return i(t);Lc.writeFile(e,r,n,i)}))}),outputFileSync:function(e,...r){const n=t.dirname(e);if(Lc.existsSync(n))return Lc.writeFileSync(e,...r);Vc.mkdirsSync(n),Lc.writeFileSync(e,...r)}},cl=b(function(e){e.exports=Object.assign({},Dc,ad,bd,Rd,Bd,Kd,Vc,tl,al,ul,pd,Pd),Object.getOwnPropertyDescriptor(p,"promises")&&Object.defineProperty(e.exports,"promises",{get:()=>p.promises})});const{publishSizes:dl,publishDiff:ll}=Cc,{noop:ml,toFileMap:gl,toMap:hl,dedupe:yl}={noop:function(e){return e},toMap:function(e,t){return e.reduce((e,r,n)=>(e[r]=t[n],e),{})},dedupe:function(e,t,r){return r.indexOf(e)===t},toFileMap:function(e){return e.reduce((e,t)=>(t.size&&(e[t.filename]=t.size),e),{})}},fl=Ws(rp),bl=Yp.sync;bl.file=(e,t)=>new Promise((r,n)=>{const i=cl.createReadStream(e);i.on("error",n);const o=i.pipe(Yp.stream(t));o.on("error",n),o.on("brotli-size",r)});const _l=e=>Buffer.byteLength(e);_l.file=async e=>(await cl.stat(e)).size;const vl={brotli:bl,gzip:_p,none:_l};async function wl(e){try{return(await cl.readJSON(e)).sort((e,t)=>t.timestamp-e.timestamp)}catch(e){return[]}}const ql=function(e){try{let t=!1;const r=h(function(){return Promise.resolve(p.promises.access(e,p.constants.F_OK)).then(function(){return t=!0,!0})},function(){});return Promise.resolve(r&&r.then?r.then(function(e){return!!t&&e}):!!t&&r)}catch(e){return Promise.reject(e)}};function El(e){if(e)return console.log(`Striping hash from build chunks using '${e}' pattern.`),function(t){return t.replace(new RegExp(e),(e,...t)=>{if((t=t.slice(0,-2).filter(e=>null!=e)).length){for(let r=0;r0?"+":"")+Jp(e);return e&&Math.abs(e)>1&&(r+=` (${Math.abs(t)}%)`),r}function kl(e){let t="";return e>=50?t="🆘":e>=20?t="🚨":e>=10?t="⚠ī¸":e>=5?t="🔍":e<=-50?t="🏆":e<=-20?t="🎉":e<=-10?t="👏":e<=-5&&(t="✅"),t}function Sl(e){if(0==e.length)return"";for(;e.every(e=>!e[e.length-1]);)for(const t of e)t.pop();const[t]=e,r=t.length;return 0===r?"":[["Filename","Size","Change",""].slice(0,r),[":---",":---:",":---:",":---:"].slice(0,r),...e].map(e=>`| ${e.join(" | ")} |`).join("\n")}function Ol(e){return/^(1|true|yes)$/.test(e)}const jl=function(e){try{let r=!1;const n=process.cwd();return Promise.resolve(ql(t.resolve(n,".pnp.js"))).then(function(i){if(!i)return Promise.resolve(ql(t.resolve(n,"yarn.lock"))).then(function(r){return Promise.resolve(ql(t.resolve(n,"package-lock.json"))).then(function(t){let n="npm install";return r?n="yarn --frozen-lockfile":t&&(n="npm ci"),k(`[${e}] Install Dependencies`),console.log(`Installing using ${n}`),Promise.resolve(Ui(n)).then(function(){S()})})});r=!0})}catch(e){return Promise.reject(e)}};!function(){try{const e=h(function(){const e=q("repo-token",{required:!0}),r=new xi(e);return Promise.resolve(function(e,r,n){try{const{number:i}=r.issue,o=r.payload.pull_request;try{T("pr"+JSON.stringify(o,null,2))}catch(e){}if(!o)throw Error('Could not retrieve PR information. Only "pull_request" triggered workflows are currently supported.');const s=new class{constructor(e){const r=e||{};r.pattern=r.pattern||"**/*.{mjs,js,jsx,css,html}",r.filename=r.filename||"size-plugin.json",r.writeFile=!1!==r.writeFile,r.stripHash=r.stripHash||ml,r.filepath=t.join(process.cwd(),r.filename),r.mode=r.mode||process.env.NODE_ENV,r.compression=r.compression||"gzip",this.compressionSize=vl[r.compression],this.options=r}filterFiles(e){const t=wa.filter(this.options.pattern),r=this.options.exclude?wa.filter(this.options.exclude):()=>!1;return e.filter(e=>t(e)&&!r(e))}async readFromDisk(e){const r=await fl(this.options.pattern,{cwd:e,ignore:this.options.exclude}),n=await Promise.all(this.filterFiles(r).map(r=>this.compressionSize.file(t.join(e,r)).catch(()=>null)));return hl(r.map(e=>this.options.stripHash(e)),n)}async getPreviousSizes(e){const t=await wl(this.options.filepath);if(t.length){const[{files:e}]=t;return gl(e)}return this.readFromDisk(e)}async getSizes(e){const t=this.filterFiles(Object.keys(e)),r=await Promise.all(t.map(t=>this.compressionSize(e[t].source)));return hl(t.map(e=>this.options.stripHash(e)),r)}async getDiff(e,t){const r=[...Object.keys(e),...Object.keys(t)].filter(yl),n=[];for(const i of r){const r=t[i]||0;n.push({filename:i,size:r,delta:r-(e[i]||0)})}return n}async printSizes(e){const t=Math.max(...e.map(e=>e.filename.length),this.options.columnWidth||0);let r="";const n=[];for(const i of e){const e=i.filename,o=i.size,s=i.delta,a=new Array(t-e.length+2).join(" ")+e+" ⏤ ",p=o>102400?"red":o>40960?"yellow":o>20480?"cyan":"green";let u=zp[p](Jp(o)),c="";s&&Math.abs(s)>1&&(c=(s>0?"+":"")+Jp(s),s>1024?(u=zp.bold(u),c=zp.red(c)):s<-10&&(c=zp.green(c)),u+=` (${c})`);let d=a+u+"\n";const l={name:e,size:o,sizeText:u,delta:s,deltaText:c,msg:a,color:p};n.push(l),this.options.decorateItem&&(d=this.options.decorateItem(d,l)||d),r+=d}if(this.options.decorateAfter){const t=this.options.decorateAfter({sizes:n,raw:e,output:r});t&&(r+="\n"+t.replace(/^\n/g,""))}return r}async uploadSizes(e){const t={timestamp:Date.now(),files:e};if(this.options.save&&await this.options.save(t),this.options.publish&&await ll(t,this.options.filename),"production"===this.options.mode&&t.files.some(e=>0!==e.delta)){const e=await wl(this.options.filepath);e.unshift(t),this.options.writeFile&&(await cl.ensureFile(this.options.filename),await cl.writeJSON(this.options.filename,e)),this.options.publish&&await dl(e,this.options.filename)}}async execute(e,t){const r=await(this.options.getPreviousSizes||this.getPreviousSizes).call(this,t),n=await(this.options.getSizes||this.getSizes).call(this,e),i=await(this.options.getDiff||this.getDiff).call(this,r,n),o=await(this.options.printSizes||this.printSizes).call(this,i);return await(this.options.uploadSizes||this.uploadSizes).call(this,i),o}}({compression:q("compression"),pattern:q("pattern")||"**/dist/**/*.js",exclude:q("exclude")||"{**/*.map,**/node_modules/**}",stripHash:El(q("strip-hash"))});return console.log(`PR #${i} is targetted at ${o.base.ref} (${o.base.sha})`),Promise.resolve(jl("current")).then(function(){const t=q("build-script")||"build",a=process.cwd();return k(`[current] Build using ${npm}`),console.log(`Building using ${npm} run ${t}`),Promise.resolve(Ui(`${npm} run ${t}`)).then(function(){return S(),Promise.resolve(Ui("git reset --hard")).then(function(){return Promise.resolve(s.readFromDisk(a)).then(function(p){let u;function c(c){function d(u){return S(),Promise.resolve(jl("base")).then(function(){return k(`[base] Build using ${npm}`),Promise.resolve(Ui(`${npm} run ${t}`)).then(function(){return S(),Promise.resolve(Ui("git reset --hard")).then(function(){return Promise.resolve(s.readFromDisk(a)).then(function(t){return Promise.resolve(s.getDiff(t,p)).then(function(t){return k("Size Differences:"),Promise.resolve(s.printSizes(t)).then(function(s){function a(){u&&console.log(`\n\t\t\tError: compressed-size-action was unable to comment on your PR.\n\t\t\tThis can happen for PR's originating from a fork without write permissions.\n\t\t\tYou can copy the size table directly into a comment using the markdown below:\n\t\t\t\n\n${d.body}\n\n\n\t\t`.replace(/^(\t| )+/gm,"")),console.log("All done!")}console.log(s),S();const p=function(e,{showTotal:t,collapseUnchanged:r,omitUnchanged:n,minimumChangeThreshold:i}){let o=[],s=[],a=0,p=0;for(const t of e){const{filename:e,size:u,delta:c}=t;a+=u,p+=c;const d=c/u*100|0,l=Math.abs(c)ℹī¸ View Unchanged\n\n${Sl(s)}\n\n\n\n`),t){const e=p/a*100|0;let t=Tl(p,e),r=kl(e);u=`**Total Size:** ${Jp(a)}\n\n${u}`,u=`**Size Change:** ${t} ${r}\n\n${u}`}return u}(t,{collapseUnchanged:Ol(q("collapse-unchanged")),omitUnchanged:Ol(q("omit-unchanged")),showTotal:Ol(q("show-total")),minimumChangeThreshold:parseInt(q("minimum-change-threshold"),10)});let u=!1;const c={...r.repo,issue_number:i},d={...c,body:p+'\n\ncompressed-size-action'},l=function(){if(!Ol(q("use-check"))){function t(){function t(){function t(){S()}const i=function(){if(!n){console.log("Creating new comment");const t=h(function(){return Promise.resolve(e.issues.createComment(d)).then(function(){})},function(t){console.log(`Error creating comment: ${t.message}`),console.log("Submitting a PR review comment instead...");const n=h(function(){const t=r.issue||o;return Promise.resolve(e.pulls.createReview({owner:t.owner,repo:t.repo,pull_number:t.number,event:"COMMENT",body:d.body})).then(function(){})},function(){console.log("Error creating PR review."),u=!0});return n&&n.then?n.then(function(){}):void 0});if(t&&t.then)return t.then(function(){})}}();return i&&i.then?i.then(t):t()}const i=function(){if(n){console.log(`Updating previous comment #${n}`);const t=h(function(){return Promise.resolve(e.issues.updateComment({...r.repo,comment_id:n,body:d.body})).then(function(){})},function(e){console.log("Error editing previous comment: "+e.message),n=null});if(t&&t.then)return t.then(function(){})}}();return i&&i.then?i.then(t):t()}let n;k("Updating stats PR comment");const i=h(function(){return Promise.resolve(e.issues.listComments(c)).then(function(e){const t=e.data;for(let e=t.length;e--;){const r=t[e];if("Bot"===r.user.type&&/[\s\n]*(compressed|gzip)-size-action/.test(r.body))return void(n=r.id)}})},function(e){console.log("Error checking for previous comments: "+e.message)});return i&&i.then?i.then(t):t()}{const t=function(){if(n)return Promise.resolve(function(e,t){try{return Promise.resolve(e.checks.create({...t.repo,name:"Compressed Size",head_sha:t.payload.pull_request.head.sha,status:"in_progress"})).then(function(r){return function(n){try{return Promise.resolve(e.checks.update({...t.repo,check_run_id:r.data.id,completed_at:(new Date).toISOString(),status:"completed",...n})).then(function(){})}catch(e){return Promise.reject(e)}}})}catch(e){return Promise.reject(e)}}(e,r)).then(function(e){return Promise.resolve(e({conclusion:"success",output:{title:"Compressed Size Action",summary:p}})).then(function(){})});u=!0}();if(t&&t.then)return t.then(function(){})}}();return l&&l.then?l.then(a):a()})})})})})})}console.log("checking out and building base commit");const l=h(function(){if(!u)throw Error("missing context.payload.base.ref");return Promise.resolve(Ui(`git reset --hard ${u}`)).then(function(){})},function(){return Promise.resolve(Ui(`git reset --hard ${o.base.sha}`)).then(function(){})});return l&&l.then?l.then(d):d()}k("[base] Checkout target branch");const d=h(function(){if(u=r.payload.base.ref,!u)throw Error("missing context.payload.pull_request.base.ref");return Promise.resolve(Ui(`git fetch -n origin ${r.payload.pull_request.base.ref}`)).then(function(){console.log("successfully fetched base.ref")})},function(e){console.log("fetching base.ref failed",e.message);const t=h(function(){return Promise.resolve(Ui(`git fetch -n origin ${o.base.sha}`)).then(function(){console.log("successfully fetched base.sha")})},function(e){console.log("fetching base.sha failed",e.message);const t=h(function(){return Promise.resolve(Ui("git fetch -n")).then(function(){})},function(e){console.log("fetch failed",e.message)});return t&&t.then?t.then(function(){}):void 0});return t&&t.then?t.then(function(){}):void 0});return d&&d.then?d.then(c):c()})})})})}catch(e){return Promise.reject(e)}}(r,Ri,e)).then(function(){})},function(e){E(e.message)});e&&e.then&&e.then(function(){})}catch(e){Promise.reject(e)}}(); diff --git a/src/index.js b/src/index.js index 7a061cb..b42e0d5 100644 --- a/src/index.js +++ b/src/index.js @@ -27,26 +27,11 @@ async function run(octokit, context, token) { console.log(`PR #${pull_number} is targetted at ${pr.base.ref} (${pr.base.sha})`); + await installDependencies(`current`); + const buildScript = getInput('build-script') || 'build'; const cwd = process.cwd(); - const yarnLock = await fileExists(path.resolve(cwd, 'yarn.lock')); - const packageLock = await fileExists(path.resolve(cwd, 'package-lock.json')); - - let npm = `npm`; - let installScript = `npm install`; - if (yarnLock) { - installScript = npm = `yarn --frozen-lockfile`; - } - else if (packageLock) { - installScript = `npm ci`; - } - - startGroup(`[current] Install Dependencies`); - console.log(`Installing using ${installScript}`) - await exec(installScript); - endGroup(); - startGroup(`[current] Build using ${npm}`); console.log(`Building using ${npm} run ${buildScript}`); await exec(`${npm} run ${buildScript}`); @@ -89,9 +74,7 @@ async function run(octokit, context, token) { } endGroup(); - startGroup(`[base] Install Dependencies`); - await exec(installScript); - endGroup(); + await installDependencies(`base`); startGroup(`[base] Build using ${npm}`); await exec(`${npm} run ${buildScript}`); @@ -234,6 +217,30 @@ async function createCheck(octokit, context) { }; } +async function installDependencies(revision) { + const cwd = process.cwd(); + if (await fileExists(path.resolve(cwd, '.pnp.js'))) { + return; // No need to install dependencies in projects with PnP enabled. + } + + const yarnLock = await fileExists(path.resolve(cwd, 'yarn.lock')); + const packageLock = await fileExists(path.resolve(cwd, 'package-lock.json')); + + let npm = `npm`; + let installScript = `npm install`; + if (yarnLock) { + installScript = npm = `yarn --frozen-lockfile`; + } + else if (packageLock) { + installScript = `npm ci`; + } + + startGroup(`[${revision}] Install Dependencies`); + console.log(`Installing using ${installScript}`) + await exec(installScript); + endGroup(); +} + (async () => { try { const token = getInput('repo-token', { required: true });