0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[Y]=Object.create(null),e instanceof W){const t=e.raw(),i=Object.keys(t);for(const e of i)for(const i of t[e])this.append(e,i)}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 i=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");i.push(Array.from(t))}for(const e of i){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)){const i=e[t];this.append(t,i)}}}}get(e){H(e=`${e}`);const t=q(this[Y],e);return void 0===t?null:this[Y][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=z(this),s=0;for(;s1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[Y]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[Y][t].join(", ")}:function(t){return[t.toLowerCase(),e[Y][t].join(", ")]})}W.prototype.entries=W.prototype[Symbol.iterator],Object.defineProperty(W.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(W.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 $=Symbol("internal");function X(e,t){const i=Object.create(K);return i[$]={target:e,kind:t,index:0},i}const K=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==K)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[$];const t=e.target,i=e.kind,s=e.index,r=z(t,i);return s>=r.length?{value:void 0,done:!0}:(this[$].index=s+1,{value:r[s],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function Z(e){const t=Object.assign({__proto__:null},e[Y]),i=q(e[Y],"Host");return void 0!==i&&(t[i]=t[i][0]),t}Object.defineProperty(K,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const ee=Symbol("Response internals"),te=I.STATUS_CODES;class ie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N.call(this,e,t);const i=t.status||200,s=new W(t.headers);if(null!=e&&!s.has("Content-Type")){const t=P(e);t&&s.append("Content-Type",t)}this[ee]={url:t.url,status:i,statusText:t.statusText||te[i],headers:s,counter:t.counter}}get url(){return this[ee].url||""}get status(){return this[ee].status}get ok(){return this[ee].status>=200&&this[ee].status<300}get redirected(){return this[ee].counter>0}get statusText(){return this[ee].statusText}get headers(){return this[ee].headers}clone(){return new ie(U(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}N.mixIn(ie.prototype),Object.defineProperties(ie.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(ie.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const se=Symbol("Request internals"),re=B.URL||w.URL,ne=B.parse,oe=B.format;function ae(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new re(e).toString()),ne(e)}const ce="destroy"in v.Readable.prototype;function le(e){return"object"==typeof e&&"object"==typeof e[se]}class pe{constructor(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};le(e)?t=ae(e.url):(t=e&&e.href?ae(e.href):ae(`${e}`),e={});let s=i.method||e.method||"GET";if(s=s.toUpperCase(),(null!=i.body||le(e)&&null!==e.body)&&("GET"===s||"HEAD"===s))throw new TypeError("Request with GET/HEAD method cannot have body");let r=null!=i.body?i.body:le(e)&&null!==e.body?U(e):null;N.call(this,r,{timeout:i.timeout||e.timeout||0,size:i.size||e.size||0});const n=new W(i.headers||e.headers||{});if(null!=r&&!n.has("Content-Type")){const e=P(r);e&&n.append("Content-Type",e)}let o=le(e)?e.signal:null;if("signal"in i&&(o=i.signal),null!=o&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(o))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[se]={method:s,redirect:i.redirect||e.redirect||"follow",headers:n,parsedURL:t,signal:o},this.follow=void 0!==i.follow?i.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==i.compress?i.compress:void 0===e.compress||e.compress,this.counter=i.counter||e.counter||0,this.agent=i.agent||e.agent}get method(){return this[se].method}get url(){return oe(this[se].parsedURL)}get headers(){return this[se].headers}get redirect(){return this[se].redirect}get signal(){return this[se].signal}clone(){return new pe(this)}}function Ae(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}N.mixIn(pe.prototype),Object.defineProperty(pe.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(pe.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),Ae.prototype=Object.create(Error.prototype),Ae.prototype.constructor=Ae,Ae.prototype.name="AbortError";const ue=B.URL||w.URL,de=v.PassThrough;function he(e,t){if(!he.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return N.Promise=he.Promise,new he.Promise((function(i,s){const r=new pe(e,t),n=function(e){const t=e[se].parsedURL,i=new W(e[se].headers);if(i.has("Accept")||i.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 v.Readable&&!ce)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let s=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(s="0"),null!=e.body){const t=G(e);"number"==typeof t&&(s=String(t))}s&&i.set("Content-Length",s),i.has("User-Agent")||i.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!i.has("Accept-Encoding")&&i.set("Accept-Encoding","gzip,deflate");let r=e.agent;return"function"==typeof r&&(r=r(t)),Object.assign({},t,{method:e.method,headers:Z(i),agent:r})}(r),o=("https:"===n.protocol?b:I).request,a=r.signal;let c=null;const l=function(){let e=new Ae("The user aborted a request.");s(e),r.body&&r.body instanceof v.Readable&&me(r.body,e),c&&c.body&&c.body.emit("error",e)};if(a&&a.aborted)return void l();const p=function(){l(),d()},A=o(n);let u;function d(){A.abort(),a&&a.removeEventListener("abort",p),clearTimeout(u)}a&&a.addEventListener("abort",p),r.timeout&&A.once("socket",(function(e){u=setTimeout((function(){s(new _(`network timeout at: ${r.url}`,"request-timeout")),d()}),r.timeout)})),A.on("error",(function(e){s(new _(`request to ${r.url} failed, reason: ${e.message}`,"system",e)),c&&c.body&&me(c.body,e),d()})),function(e,t){let i;e.on("socket",(function(e){i=e})),e.on("response",(function(e){const s=e.headers;"chunked"!==s["transfer-encoding"]||s["content-length"]||e.once("close",(function(e){if(i&&i.listenerCount("data")>0&&!e){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",t(e)}}))}))}(A,(function(e){a&&a.aborted||c&&c.body&&me(c.body,e)})),parseInt(process.version.substring(1))<14&&A.on("socket",(function(e){e.addListener("close",(function(t){const i=e.listenerCount("data")>0;if(c&&i&&!t&&(!a||!a.aborted)){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",c.body.emit("error",e)}}))})),A.on("response",(function(e){clearTimeout(u);const t=function(e){const t=new W;for(const i of Object.keys(e))if(!V.test(i))if(Array.isArray(e[i]))for(const s of e[i])j.test(s)||(void 0===t[Y][i]?t[Y][i]=[s]:t[Y][i].push(s));else j.test(e[i])||(t[Y][i]=[e[i]]);return t}(e.headers);if(he.isRedirect(e.statusCode)){const o=t.get("Location");let a=null;try{a=null===o?null:new ue(o,r.url).toString()}catch(e){if("manual"!==r.redirect)return s(new _(`uri requested responds with an invalid redirect URL: ${o}`,"invalid-redirect")),void d()}switch(r.redirect){case"error":return s(new _(`uri requested responds with a redirect, redirect mode is set to error: ${r.url}`,"no-redirect")),void d();case"manual":if(null!==a)try{t.set("Location",a)}catch(e){s(e)}break;case"follow":if(null===a)break;if(r.counter>=r.follow)return s(new _(`maximum redirect reached at: ${r.url}`,"max-redirect")),void d();const o={headers:new W(r.headers),follow:r.follow,counter:r.counter+1,agent:r.agent,compress:r.compress,method:r.method,body:r.body,signal:r.signal,timeout:r.timeout,size:r.size};if(!function(e,t){const i=new ue(t).hostname,s=new ue(e).hostname;return i===s||"."===i[i.length-s.length-1]&&i.endsWith(s)}(r.url,a)||(n=r.url,new ue(a).protocol!==new ue(n).protocol))for(const e of["authorization","www-authenticate","cookie","cookie2"])o.headers.delete(e);return 303!==e.statusCode&&r.body&&null===G(r)?(s(new _("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void d()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==r.method)||(o.method="GET",o.body=void 0,o.headers.delete("content-length")),i(he(new pe(a,o))),void d())}}var n;e.once("end",(function(){a&&a.removeEventListener("abort",p)}));let o=e.pipe(new de);const l={url:r.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:r.size,timeout:r.timeout,counter:r.counter},A=t.get("Content-Encoding");if(!r.compress||"HEAD"===r.method||null===A||204===e.statusCode||304===e.statusCode)return c=new ie(o,l),void i(c);const h={flush:Q.Z_SYNC_FLUSH,finishFlush:Q.Z_SYNC_FLUSH};if("gzip"==A||"x-gzip"==A)return o=o.pipe(Q.createGunzip(h)),c=new ie(o,l),void i(c);if("deflate"==A||"x-deflate"==A){const t=e.pipe(new de);return t.once("data",(function(e){o=8==(15&e[0])?o.pipe(Q.createInflate()):o.pipe(Q.createInflateRaw()),c=new ie(o,l),i(c)})),void t.on("end",(function(){c||(c=new ie(o,l),i(c))}))}if("br"==A&&"function"==typeof Q.createBrotliDecompress)return o=o.pipe(Q.createBrotliDecompress()),c=new ie(o,l),void i(c);c=new ie(o,l),i(c)})),function(e,t){const i=t.body;null===i?e.end():M(i)?i.stream().pipe(e):Buffer.isBuffer(i)?(e.write(i),e.end()):i.pipe(e)}(A,r)}))}function me(e,t){e.destroy?e.destroy(t):(e.emit("error",t),e.end())}he.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},he.Promise=global.Promise;const ge=he;var fe=i(57751),Ee=i(36219),Ce=i.n(Ee);const ye=Ce()((e=>console.warn(e))),ve=Ce()((e=>console.warn(e)));class Ie extends Error{constructor(e,t,i){let s;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,"headers"in i&&void 0!==i.headers&&(s=i.headers),"response"in i&&(this.response=i.response,s=i.response.headers);const r=Object.assign({},i.request);i.request.headers.authorization&&(r.headers=Object.assign({},i.request.headers,{authorization:i.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),r.url=r.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=r,Object.defineProperty(this,"code",{get:()=>(ye(new fe.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),Object.defineProperty(this,"headers",{get:()=>(ve(new fe.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),s||{})})}}function Be(e){const t=e.request&&e.request.log?e.request.log:console;(r(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let i,s,n={};return(e.request&&e.request.fetch||ge)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async r=>{s=r.url,i=r.status;for(const e of r.headers)n[e[0]]=e[1];if("deprecation"in n){const i=n.link&&n.link.match(/<([^>]+)>; rel="deprecation"/),s=i&&i.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${n.sunset}${s?`. See ${s}`:""}`)}if(204!==i&&205!==i){if("HEAD"===e.method){if(i<400)return;throw new Ie(r.statusText,i,{response:{url:s,status:i,headers:n,data:void 0},request:e})}if(304===i)throw new Ie("Not modified",i,{response:{url:s,status:i,headers:n,data:await we(r)},request:e});if(i>=400){const t=await we(r),o=new Ie(function(e){return"string"==typeof e?e:"message"in e?Array.isArray(e.errors)?`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`:e.message:`Unknown error: ${JSON.stringify(e)}`}(t),i,{response:{url:s,status:i,headers:n,data:t},request:e});throw o}return we(r)}})).then((e=>({status:i,url:s,headers:n,data:e}))).catch((t=>{if(t instanceof Ie)throw t;throw new Ie(t.message,500,{request:e})}))}async function we(e){const t=e.headers.get("content-type");return/application\/json/.test(t)?e.json():!t||/^text\/|charset=utf-8$/.test(t)?e.text():function(e){return e.arrayBuffer()}(e)}const be=function e(t,i){const s=t.defaults(i);return Object.assign((function(t,i){const r=s.merge(t,i);if(!r.request||!r.request.hook)return Be(s.parse(r));const n=(e,t)=>Be(s.parse(s.merge(e,t)));return Object.assign(n,{endpoint:s,defaults:e.bind(null,s)}),r.request.hook(n,r)}),{endpoint:s,defaults:e.bind(null,s)})}(y,{headers:{"user-agent":`octokit-request.js/5.6.3 ${(0,n.getUserAgent)()}`}});class Qe extends Error{constructor(e,t,i){super("Request failed due to following response errors:\n"+i.errors.map((e=>` - ${e.message}`)).join("\n")),this.request=e,this.headers=t,this.response=i,this.name="GraphqlResponseError",this.errors=i.errors,this.data=i.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const xe=["method","baseUrl","url","headers","request","query","mediaType"],ke=["query","method","url"],De=/\/api\/v3\/?$/;function Se(e,t){const i=e.defaults(t);return Object.assign(((e,t)=>function(e,t,i){if(i){if("string"==typeof t&&"query"in i)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in i)if(ke.includes(e))return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}const s="string"==typeof t?Object.assign({query:t},i):t,r=Object.keys(s).reduce(((e,t)=>xe.includes(t)?(e[t]=s[t],e):(e.variables||(e.variables={}),e.variables[t]=s[t],e)),{}),n=s.baseUrl||e.endpoint.DEFAULTS.baseUrl;return De.test(n)&&(r.url=n.replace(De,"/api/graphql")),e(r).then((e=>{if(e.data.errors){const t={};for(const i of Object.keys(e.headers))t[i]=e.headers[i];throw new Qe(r,t,e.data)}return e.data.data}))}(i,e,t)),{defaults:Se.bind(null,i),endpoint:be.endpoint})}const _e=Se(be,{headers:{"user-agent":`octokit-graphql.js/4.8.0 ${(0,n.getUserAgent)()}`},method:"POST",url:"/graphql"});function Re(e){return Se(e,{method:"POST",url:"/graphql"})}},32546:(e,t,i)=>{"use strict";var s,r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=(e,t,i,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))l.call(e,r)||r===i||n(e,r,{get:()=>t[r],enumerable:!(s=o(t,r))||s.enumerable});return e},A=(e,t,i)=>(i=null!=e?r(c(e)):{},p(!t&&e&&e.__esModule?i:n(i,"default",{value:e,enumerable:!0}),e)),u={};((e,t)=>{for(var i in t)n(e,i,{get:t[i],enumerable:!0})})(u,{OAuthApp:()=>z,createAWSLambdaAPIGatewayV2Handler:()=>W,createNodeMiddleware:()=>q,createWebWorkerHandler:()=>Y,handleRequest:()=>H,sendNodeResponse:()=>J,unknownRouteResponse:()=>j}),e.exports=(s=u,p(n({},"__esModule",{value:!0}),s));var d=i(62419),h="6.1.0";function m(e,t,i){if(Array.isArray(t))for(const s of t)m(e,s,i);else e.eventHandlers[t]||(e.eventHandlers[t]=[]),e.eventHandlers[t].push(i)}var g=i(96049),f=i(21375),E=g.Octokit.defaults({userAgent:`octokit-oauth-app.js/${h} ${(0,f.getUserAgent)()}`}),C=i(3360);async function y(e,t){const{name:i,action:s}=t;if(e.eventHandlers[`${i}.${s}`])for(const r of e.eventHandlers[`${i}.${s}`])await r(t);if(e.eventHandlers[i])for(const s of e.eventHandlers[i])await s(t)}async function v(e,t){return e.octokit.auth({type:"oauth-user",...t,async factory(t){const i=new e.Octokit({authStrategy:C.createOAuthUserAuth,auth:t}),s=await i.auth({type:"get"});return await y(e,{name:"token",action:"created",token:s.token,scopes:s.scopes,authentication:s,octokit:i}),i}})}var I=A(i(11393));function B(e,t){const i={clientId:e.clientId,request:e.octokit.request,...t,allowSignup:e.allowSignup??t.allowSignup,redirectUrl:t.redirectUrl??e.redirectUrl,scopes:t.scopes??e.defaultScopes};return I.getWebFlowAuthorizationUrl({clientType:e.clientType,...i})}var w=A(i(62419));async function b(e,t){const i=await e.octokit.auth({type:"oauth-user",...t});return await y(e,{name:"token",action:"created",token:i.token,scopes:i.scopes,authentication:i,octokit:new e.Octokit({authStrategy:w.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:i.token,scopes:i.scopes,refreshToken:i.refreshToken,expiresAt:i.expiresAt,refreshTokenExpiresAt:i.refreshTokenExpiresAt}})}),{authentication:i}}var Q=A(i(11393));async function x(e,t){const i=await Q.checkToken({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t});return Object.assign(i.authentication,{type:"token",tokenType:"oauth"}),i}var k=A(i(11393)),D=i(3360);async function S(e,t){const i={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t};if("oauth-app"===e.clientType){const t=await k.resetToken({clientType:"oauth-app",...i}),s=Object.assign(t.authentication,{type:"token",tokenType:"oauth"});return await y(e,{name:"token",action:"reset",token:t.authentication.token,scopes:t.authentication.scopes||void 0,authentication:s,octokit:new e.Octokit({authStrategy:D.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:t.authentication.token,scopes:t.authentication.scopes}})}),{...t,authentication:s}}const s=await k.resetToken({clientType:"github-app",...i}),r=Object.assign(s.authentication,{type:"token",tokenType:"oauth"});return await y(e,{name:"token",action:"reset",token:s.authentication.token,authentication:r,octokit:new e.Octokit({authStrategy:D.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:s.authentication.token}})}),{...s,authentication:r}}var _=A(i(11393)),R=i(3360);async function T(e,t){if("oauth-app"===e.clientType)throw new Error("[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps");const i=await _.refreshToken({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,refreshToken:t.refreshToken}),s=Object.assign(i.authentication,{type:"token",tokenType:"oauth"});return await y(e,{name:"token",action:"refreshed",token:i.authentication.token,authentication:s,octokit:new e.Octokit({authStrategy:R.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:i.authentication.token}})}),{...i,authentication:s}}var F=A(i(11393)),N=i(3360);async function L(e,t){if("oauth-app"===e.clientType)throw new Error("[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps");const i=await F.scopeToken({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t}),s=Object.assign(i.authentication,{type:"token",tokenType:"oauth"});return await y(e,{name:"token",action:"scoped",token:i.authentication.token,authentication:s,octokit:new e.Octokit({authStrategy:N.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:i.authentication.token}})}),{...i,authentication:s}}var O=A(i(11393)),M=i(37573);async function U(e,t){const i={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},s="oauth-app"===e.clientType?await O.deleteToken({clientType:"oauth-app",...i}):await O.deleteToken({clientType:"github-app",...i});return await y(e,{name:"token",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:M.createUnauthenticatedAuth,auth:{reason:'Handling "token.deleted" event. The access for the token has been revoked.'}})}),s}var P=A(i(11393)),G=i(37573);async function V(e,t){const i={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},s="oauth-app"===e.clientType?await P.deleteAuthorization({clientType:"oauth-app",...i}):await P.deleteAuthorization({clientType:"github-app",...i});return await y(e,{name:"token",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:G.createUnauthenticatedAuth,auth:{reason:'Handling "token.deleted" event. The access for the token has been revoked.'}})}),await y(e,{name:"authorization",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:G.createUnauthenticatedAuth,auth:{reason:'Handling "authorization.deleted" event. The access for the app has been revoked.'}})}),s}function j(e){return{status:404,headers:{"content-type":"application/json"},text:JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`})}}async function H(e,{pathPrefix:t="/api/github/oauth"},i){if("OPTIONS"===i.method)return{status:200,headers:{"access-control-allow-origin":"*","access-control-allow-methods":"*","access-control-allow-headers":"Content-Type, User-Agent, Authorization"}};let{pathname:s}=new URL(i.url,"http://localhost");if(!s.startsWith(`${t}/`))return;s=s.slice(t.length+1);const r=[i.method,s].join(" "),n={getLogin:"GET login",getCallback:"GET callback",createToken:"POST token",getToken:"GET token",patchToken:"PATCH token",patchRefreshToken:"PATCH refresh-token",scopeToken:"POST token/scoped",deleteToken:"DELETE token",deleteGrant:"DELETE grant"};if(!Object.values(n).includes(r))return j(i);let o;try{const e=await i.text();o=e?JSON.parse(e):{}}catch(e){return{status:400,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify({error:"[@octokit/oauth-app] request error"})}}const{searchParams:a}=new URL(i.url,"http://localhost"),c=Object.fromEntries(a),l=i.headers;try{if(r===n.getLogin){const{url:t}=e.getWebFlowAuthorizationUrl({state:c.state,scopes:c.scopes?c.scopes.split(","):void 0,allowSignup:c.allowSignup?"true"===c.allowSignup:void 0,redirectUrl:c.redirectUrl});return{status:302,headers:{location:t}}}if(r===n.getCallback){if(c.error)throw new Error(`[@octokit/oauth-app] ${c.error} ${c.error_description}`);if(!c.code)throw new Error('[@octokit/oauth-app] "code" parameter is required');const{authentication:{token:t}}=await e.createToken({code:c.code});return{status:200,headers:{"content-type":"text/html"},text:`Token created successfully \n\nYour token is: ${t} . Copy it now as it cannot be shown again.
`}}if(r===n.createToken){const{code:t,redirectUrl:i}=o;if(!t)throw new Error('[@octokit/oauth-app] "code" parameter is required');const s=await e.createToken({code:t,redirectUrl:i});return delete s.authentication.clientSecret,{status:201,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(s)}}if(r===n.getToken){const t=l.authorization?.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const i=await e.checkToken({token:t});return delete i.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(i)}}if(r===n.patchToken){const t=l.authorization?.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const i=await e.resetToken({token:t});return delete i.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(i)}}if(r===n.patchRefreshToken){const t=l.authorization?.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const{refreshToken:i}=o;if(!i)throw new Error("[@octokit/oauth-app] refreshToken must be sent in request body");const s=await e.refreshToken({refreshToken:i});return delete s.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(s)}}if(r===n.scopeToken){const t=l.authorization?.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const i=await e.scopeToken({token:t,...o});return delete i.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(i)}}if(r===n.deleteToken){const t=l.authorization?.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');return await e.deleteToken({token:t}),{status:204,headers:{"access-control-allow-origin":"*"}}}const t=l.authorization?.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');return await e.deleteAuthorization({token:t}),{status:204,headers:{"access-control-allow-origin":"*"}}}catch(e){return{status:400,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify({error:e.message})}}}function J(e,t){t.writeHead(e.status,e.headers),t.end(e.text)}function q(e,t={}){return async function(i,s,r){const n=await function(e){const{method:t,url:i,headers:s}=e;return{method:t,url:i,headers:s,text:async function(){return await new Promise(((t,i)=>{let s=[];e.on("error",i).on("data",(e=>s.push(e))).on("end",(()=>t(Buffer.concat(s).toString())))}))}}}(i),o=await H(e,t,n);return o?(J(o,s),!0):(r?.(),!1)}}function Y(e,t={}){return async function(i){const s=await function(e){const t=Object.fromEntries(e.headers.entries());return{method:e.method,url:e.url,headers:t,text:()=>e.text()}}(i),r=await H(e,t,s);return r?function(e){return new Response(e.text,{status:e.status,headers:e.headers})}(r):void 0}}function W(e,t={}){return async function(i){const s=function(e){const{method:t}=e.requestContext.http;let i=e.rawPath;const{stage:s}=e.requestContext;return i.startsWith("/"+s)&&(i=i.substring(s.length+1)),e.rawQueryString&&(i+="?"+e.rawQueryString),{method:t,url:i,headers:e.headers,text:async()=>e.body||""}}(i),r=await H(e,t,s);return r?{statusCode:(n=r).status,headers:n.headers,body:n.text}:void 0;var n}}var z=class{static{this.VERSION=h}static defaults(e){return class extends(this){constructor(...t){super({...e,...t[0]})}}}constructor(e){const t=e.Octokit||E;this.type=e.clientType||"oauth-app";const i=new t({authStrategy:d.createOAuthAppAuth,auth:{clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret}}),s={clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret,defaultScopes:e.defaultScopes||[],allowSignup:e.allowSignup,baseUrl:e.baseUrl,redirectUrl:e.redirectUrl,log:e.log,Octokit:t,octokit:i,eventHandlers:{}};this.on=m.bind(null,s),this.octokit=i,this.getUserOctokit=v.bind(null,s),this.getWebFlowAuthorizationUrl=B.bind(null,s),this.createToken=b.bind(null,s),this.checkToken=x.bind(null,s),this.resetToken=S.bind(null,s),this.refreshToken=T.bind(null,s),this.scopeToken=L.bind(null,s),this.deleteToken=U.bind(null,s),this.deleteAuthorization=V.bind(null,s)}}},4923:(e,t,i)=>{"use strict";i.d(t,{a:()=>o});var s=i(65683),r=i(96756),n=i.n(r);async function o(e){const t=e.request||s.request,i=await t("POST /applications/{client_id}/token",{headers:{authorization:`basic ${n()(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token}),r={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.token,scopes:i.data.scopes};return i.data.expires_at&&(r.expiresAt=i.data.expires_at),"github-app"===e.clientType&&delete r.scopes,{...i,authentication:r}}},63855:(e,t,i)=>{"use strict";i.d(t,{T:()=>n});var s=i(65683),r=i(21216);async function n(e){const t=e.request||s.request,i={client_id:e.clientId};return"scopes"in e&&Array.isArray(e.scopes)&&(i.scope=e.scopes.join(" ")),(0,r.d)(t,"POST /login/device/code",i)}},62616:(e,t,i)=>{"use strict";i.d(t,{s:()=>o});var s=i(65683),r=i(96756),n=i.n(r);async function o(e){return(e.request||s.request)("DELETE /applications/{client_id}/grant",{headers:{authorization:`basic ${n()(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token})}},46886:(e,t,i)=>{"use strict";i.d(t,{p:()=>o});var s=i(65683),r=i(96756),n=i.n(r);async function o(e){return(e.request||s.request)("DELETE /applications/{client_id}/token",{headers:{authorization:`basic ${n()(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token})}},85579:(e,t,i)=>{"use strict";i.d(t,{i:()=>n});var s=i(65683),r=i(21216);async function n(e){const t=e.request||s.request,i=await(0,r.d)(t,"POST /login/oauth/access_token",{client_id:e.clientId,device_code:e.code,grant_type:"urn:ietf:params:oauth:grant-type:device_code"}),n={clientType:e.clientType,clientId:e.clientId,token:i.data.access_token,scopes:i.data.scope.split(/\s+/).filter(Boolean)};if("clientSecret"in e&&(n.clientSecret=e.clientSecret),"github-app"===e.clientType){if("refresh_token"in i.data){const e=new Date(i.headers.date).getTime();n.refreshToken=i.data.refresh_token,n.expiresAt=o(e,i.data.expires_in),n.refreshTokenExpiresAt=o(e,i.data.refresh_token_expires_in)}delete n.scopes}return{...i,authentication:n}}function o(e,t){return new Date(e+1e3*t).toISOString()}},71060:(e,t,i)=>{"use strict";i.d(t,{y:()=>n});var s=i(65683),r=i(21216);async function n(e){const t=e.request||s.request,i=await(0,r.d)(t,"POST /login/oauth/access_token",{client_id:e.clientId,client_secret:e.clientSecret,code:e.code,redirect_uri:e.redirectUrl}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:i.data.access_token,scopes:i.data.scope.split(/\s+/).filter(Boolean)};if("github-app"===e.clientType){if("refresh_token"in i.data){const e=new Date(i.headers.date).getTime();n.refreshToken=i.data.refresh_token,n.expiresAt=o(e,i.data.expires_in),n.refreshTokenExpiresAt=o(e,i.data.refresh_token_expires_in)}delete n.scopes}return{...i,authentication:n}}function o(e,t){return new Date(e+1e3*t).toISOString()}},11393:(e,t,i)=>{"use strict";i.r(t),i.d(t,{VERSION:()=>s,checkToken:()=>p.a,createDeviceCode:()=>c.T,deleteAuthorization:()=>f.s,deleteToken:()=>g.p,exchangeDeviceCode:()=>l.i,exchangeWebFlowCode:()=>a.y,getWebFlowAuthorizationUrl:()=>o,refreshToken:()=>A.g,resetToken:()=>m.E,scopeToken:()=>h});const s="4.1.0";var r=i(65683),n=i(21216);function o({request:e=r.request,...t}){return function(e){const t=e.clientType||"oauth-app",i=e.baseUrl||"https://github.com",s={clientType:t,allowSignup:!1!==e.allowSignup,clientId:e.clientId,login:e.login||null,redirectUrl:e.redirectUrl||null,state:e.state||Math.random().toString(36).substr(2),url:""};if("oauth-app"===t){const t="scopes"in e?e.scopes:[];s.scopes="string"==typeof t?t.split(/[,\s]+/).filter(Boolean):t}return s.url=function(e,t){const i={allowSignup:"allow_signup",clientId:"client_id",login:"login",redirectUrl:"redirect_uri",scopes:"scope",state:"state"};let s=e;return Object.keys(i).filter((e=>null!==t[e])).filter((e=>"scopes"!==e||"github-app"!==t.clientType&&(!Array.isArray(t[e])||t[e].length>0))).map((e=>[i[e],`${t[e]}`])).forEach((([e,t],i)=>{s+=0===i?"?":"&",s+=`${e}=${encodeURIComponent(t)}`})),s}(`${i}/login/oauth/authorize`,s),s}({...t,baseUrl:(0,n.l)(e)})}var a=i(71060),c=i(63855),l=i(85579),p=i(4923),A=i(27550),u=i(96756),d=i.n(u);async function h(e){const{request:t,clientType:i,clientId:s,clientSecret:n,token:o,...a}=e,c=t||r.request,l=await c("POST /applications/{client_id}/token/scoped",{headers:{authorization:`basic ${d()(`${s}:${n}`)}`},client_id:s,access_token:o,...a}),p=Object.assign({clientType:i,clientId:s,clientSecret:n,token:l.data.token},l.data.expires_at?{expiresAt:l.data.expires_at}:{});return{...l,authentication:p}}var m=i(9147),g=i(46886),f=i(62616)},27550:(e,t,i)=>{"use strict";i.d(t,{g:()=>n});var s=i(65683),r=i(21216);async function n(e){const t=e.request||s.request,i=await(0,r.d)(t,"POST /login/oauth/access_token",{client_id:e.clientId,client_secret:e.clientSecret,grant_type:"refresh_token",refresh_token:e.refreshToken}),n=new Date(i.headers.date).getTime(),a={clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,token:i.data.access_token,refreshToken:i.data.refresh_token,expiresAt:o(n,i.data.expires_in),refreshTokenExpiresAt:o(n,i.data.refresh_token_expires_in)};return{...i,authentication:a}}function o(e,t){return new Date(e+1e3*t).toISOString()}},9147:(e,t,i)=>{"use strict";i.d(t,{E:()=>o});var s=i(65683),r=i(96756),n=i.n(r);async function o(e){const t=e.request||s.request,i=n()(`${e.clientId}:${e.clientSecret}`),r=await t("PATCH /applications/{client_id}/token",{headers:{authorization:`basic ${i}`},client_id:e.clientId,access_token:e.token}),o={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.data.token,scopes:r.data.scopes};return r.data.expires_at&&(o.expiresAt=r.data.expires_at),"github-app"===e.clientType&&delete o.scopes,{...r,authentication:o}}},21216:(e,t,i)=>{"use strict";i.d(t,{d:()=>n,l:()=>r});var s=i(98838);function r(e){const t=e.endpoint.DEFAULTS;return/^https:\/\/(api\.)?github\.com$/.test(t.baseUrl)?"https://github.com":t.baseUrl.replace("/api/v3","")}async function n(e,t,i){const n={baseUrl:r(e),headers:{accept:"application/json"},...i},o=await e(t,n);if("error"in o.data){const i=new s.RequestError(`${o.data.error_description} (${o.data.error}, ${o.data.error_uri})`,400,{request:e.endpoint.merge(t,n),headers:o.headers});throw i.response=o,i}return o}},98838:(e,t,i)=>{"use strict";i.r(t),i.d(t,{RequestError:()=>c});var s=i(57751),r=i(36219),n=i.n(r);const o=n()((e=>console.warn(e))),a=n()((e=>console.warn(e)));class c extends Error{constructor(e,t,i){let r;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,"headers"in i&&void 0!==i.headers&&(r=i.headers),"response"in i&&(this.response=i.response,r=i.response.headers);const n=Object.assign({},i.request);i.request.headers.authorization&&(n.headers=Object.assign({},i.request.headers,{authorization:i.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=n,Object.defineProperty(this,"code",{get:()=>(o(new s.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),Object.defineProperty(this,"headers",{get:()=>(a(new s.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),r||{})})}}},65683:(e,t,i)=>{"use strict";function s(e,t){const i=Object.assign({},e);return Object.keys(t).forEach((r=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const i=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Function.prototype.call(i)===Function.prototype.call(e)}(t[r])?Object.assign(i,{[r]:t[r]}):r in e?i[r]=s(e[r],t[r]):Object.assign(i,{[r]:t[r]})})),i}function r(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function n(e,t,i){if("string"==typeof t){let[e,s]=t.split(" ");i=Object.assign(s?{method:e,url:s}:{url:e},i)}else i=Object.assign({},t);var n;i.headers=(n=i.headers)?Object.keys(n).reduce(((e,t)=>(e[t.toLowerCase()]=n[t],e)),{}):{},r(i),r(i.headers);const o=s(e||{},i);return"/graphql"===i.url&&(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}i.r(t),i.d(t,{request:()=>I});const o=/\{[^}]+\}/g;function a(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function c(e,t){const i={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(i[s]=e[s]);return i}function l(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 p(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function A(e,t,i){return t="+"===e||"#"===e?l(t):p(t),i?p(i)+"="+t:t}function u(e){return null!=e}function d(e){return";"===e||"&"===e||"?"===e}function h(e,t){var i=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,s,r){if(s){let e="";const r=[];if(-1!==i.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach((function(i){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(i);r.push(function(e,t,i,s){var r=e[i],n=[];if(u(r)&&""!==r)if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)r=r.toString(),s&&"*"!==s&&(r=r.substring(0,parseInt(s,10))),n.push(A(t,r,d(t)?i:""));else if("*"===s)Array.isArray(r)?r.filter(u).forEach((function(e){n.push(A(t,e,d(t)?i:""))})):Object.keys(r).forEach((function(e){u(r[e])&&n.push(A(t,r[e],e))}));else{const e=[];Array.isArray(r)?r.filter(u).forEach((function(i){e.push(A(t,i))})):Object.keys(r).forEach((function(i){u(r[i])&&(e.push(p(i)),e.push(A(t,r[i].toString())))})),d(t)?n.push(p(i)+"="+e.join(",")):0!==e.length&&n.push(e.join(","))}else";"===t?u(r)&&n.push(p(i)):""!==r||"&"!==t&&"?"!==t?""===r&&n.push(""):n.push(p(i)+"=");return n}(t,e,s[1],s[2]||s[3]))})),e&&"+"!==e){var n=",";return"?"===e?n="&":"#"!==e&&(n=e),(0!==r.length?e:"")+r.join(n)}return r.join(",")}return l(r)})),"/"===e?e:e.replace(/\/$/,"")}function m(e){let t,i=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),r=Object.assign({},e.headers),n=c(e,["method","baseUrl","url","headers","request","mediaType"]);const l=function(e){const t=e.match(o);return t?t.map(a).reduce(((e,t)=>e.concat(t)),[]):[]}(s);var p;s=(p=s,{expand:h.bind(null,p)}).expand(n),/^http/.test(s)||(s=e.baseUrl+s);const A=c(n,Object.keys(e).filter((e=>l.includes(e))).concat("baseUrl"));if(!/application\/octet-stream/i.test(r.accept)&&(e.mediaType.format&&(r.accept=r.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=r.accept.match(/[\w-]+(?=-preview)/g)||[];r.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(i)?s=function(e,t){const i=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+i+s.map((e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`)).join("&")}(s,A):"data"in A?t=A.data:Object.keys(A).length&&(t=A),r["content-type"]||void 0===t||(r["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(i)&&void 0===t&&(t=""),Object.assign({method:i,url:s,headers:r},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function g(e,t,i){return m(n(e,t,i))}var f=i(21375);const E=function e(t,i){const s=n(t,i),r=g.bind(null,s);return Object.assign(r,{DEFAULTS:s,defaults:e.bind(null,s),merge:n.bind(null,s),parse:m})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/9.0.5 ${(0,f.getUserAgent)()}`},mediaType:{format:""}});var C=i(98838);function y(e){const t=e.request&&e.request.log?e.request.log:console,i=!1!==e.request?.parseSuccessResponseBody;(function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const i=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Function.prototype.call(i)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let s,r,n={},{fetch:o}=globalThis;if(e.request?.fetch&&(o=e.request.fetch),!o)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return o(e.url,{method:e.method,body:e.body,redirect:e.request?.redirect,headers:e.headers,signal:e.request?.signal,...e.body&&{duplex:"half"}}).then((async o=>{r=o.url,s=o.status;for(const e of o.headers)n[e[0]]=e[1];if("deprecation"in n){const i=n.link&&n.link.match(/<([^>]+)>; rel="deprecation"/),s=i&&i.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${n.sunset}${s?`. See ${s}`:""}`)}if(204!==s&&205!==s){if("HEAD"===e.method){if(s<400)return;throw new C.RequestError(o.statusText,s,{response:{url:r,status:s,headers:n,data:void 0},request:e})}if(304===s)throw new C.RequestError("Not modified",s,{response:{url:r,status:s,headers:n,data:await v(o)},request:e});if(s>=400){const t=await v(o),i=new C.RequestError(function(e){if("string"==typeof e)return e;let t;return t="documentation_url"in e?` - ${e.documentation_url}`:"","message"in e?Array.isArray(e.errors)?`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`:`${e.message}${t}`:`Unknown error: ${JSON.stringify(e)}`}(t),s,{response:{url:r,status:s,headers:n,data:t},request:e});throw i}return i?await v(o):o.body}})).then((e=>({status:s,url:r,headers:n,data:e}))).catch((t=>{if(t instanceof C.RequestError)throw t;if("AbortError"===t.name)throw t;let i=t.message;throw"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?i=t.cause.message:"string"==typeof t.cause&&(i=t.cause)),new C.RequestError(i,500,{request:e})}))}async function v(e){const t=e.headers.get("content-type");return/application\/json/.test(t)?e.json().catch((()=>e.text())).catch((()=>"")):!t||/^text\/|charset=utf-8$/.test(t)?e.text():function(e){return e.arrayBuffer()}(e)}const I=function e(t,i){const s=t.defaults(i);return Object.assign((function(t,i){const r=s.merge(t,i);if(!r.request||!r.request.hook)return y(s.parse(r));const n=(e,t)=>y(s.parse(s.merge(e,t)));return Object.assign(n,{endpoint:s,defaults:e.bind(null,s)}),r.request.hook(n,r)}),{endpoint:s,defaults:e.bind(null,s)})}(E,{headers:{"user-agent":`octokit-request.js/8.4.0 ${(0,f.getUserAgent)()}`}})},94832:(e,t)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleLogger=t.LogLevel=void 0,function(e){e.ERROR="error",e.WARN="warn",e.INFO="info",e.DEBUG="debug"}(i=t.LogLevel||(t.LogLevel={}));class s{constructor(){this.level=i.INFO,this.name=""}getLevel(){return this.level}setLevel(e){this.level=e}setName(e){this.name=e}debug(...e){s.isMoreOrEqualSevere(i.DEBUG,this.level)&&console.debug(s.labels.get(i.DEBUG),this.name,...e)}info(...e){s.isMoreOrEqualSevere(i.INFO,this.level)&&console.info(s.labels.get(i.INFO),this.name,...e)}warn(...e){s.isMoreOrEqualSevere(i.WARN,this.level)&&console.warn(s.labels.get(i.WARN),this.name,...e)}error(...e){s.isMoreOrEqualSevere(i.ERROR,this.level)&&console.error(s.labels.get(i.ERROR),this.name,...e)}static isMoreOrEqualSevere(e,t){return s.severity[e]>=s.severity[t]}}t.ConsoleLogger=s,s.labels=(()=>{const e=Object.entries(i).map((([e,t])=>[t,`[${e}] `]));return new Map(e)})(),s.severity={[i.ERROR]:400,[i.WARN]:300,[i.INFO]:200,[i.DEBUG]:100}},73247:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},69134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},52866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},91939:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},92523:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},17578:function(e,t,i){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var r=Object.getOwnPropertyDescriptor(t,i);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,r)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||s(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(91939),t),r(i(92523),t),r(i(33144),t),r(i(88851),t),r(i(69700),t),r(i(69134),t),r(i(8702),t),r(i(73247),t),r(i(52866),t)},88851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33144:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},69700:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},11055:function(e,t,i){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var r=Object.getOwnPropertyDescriptor(t,i);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,r)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return r(t,e),t},o=this&&this.__await||function(e){return this instanceof o?(this.v=e,this):new o(e)},a=this&&this.__asyncGenerator||function(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s,r=i.apply(e,t||[]),n=[];return s={},a("next"),a("throw"),a("return"),s[Symbol.asyncIterator]=function(){return this},s;function a(e){r[e]&&(s[e]=function(t){return new Promise((function(i,s){n.push([e,t,i,s])>1||c(e,t)}))})}function c(e,t){try{(i=r[e](t)).value instanceof o?Promise.resolve(i.value.v).then(l,p):A(n[0][2],i)}catch(e){A(n[0][3],e)}var i}function l(e){c("next",e)}function p(e){c("throw",e)}function A(e,t){e(t),n.shift(),n.length&&c(n[0][0],n[0][1])}},c=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(i){t[i]=e[i]&&function(t){return new Promise((function(s,r){!function(e,t,i,s){Promise.resolve(s).then((function(t){e({value:t,done:i})}),t)}(s,r,(t=e[i](t)).done,t.value)}))}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildThreadTsWarningMessage=t.WebClient=t.WebClientEvent=void 0;const p=i(63477),A=i(71017),u=l(i(59796)),d=i(73837),h=l(i(42412)),m=l(i(88464)),g=n(i(32656)),f=l(i(34425)),E=l(i(90504)),C=l(i(30547)),y=i(25242),v=i(57390),I=i(47056),B=i(94139),w=i(39847),b=l(i(83313)),Q=i(28666),x=()=>{};var k;!function(e){e.RATE_LIMITED="rate_limited"}(k=t.WebClientEvent||(t.WebClientEvent={}));class D extends y.Methods{constructor(e,{slackApiUrl:t="https://slack.com/api/",logger:i,logLevel:s,maxRequestConcurrency:r=100,retryConfig:n=w.tenRetriesInAboutThirtyMinutes,agent:o,tls:a,timeout:c=0,rejectRateLimitedCalls:l=!1,headers:p={},teamId:A}={}){super(),this.token=e,this.slackApiUrl=t,this.retryConfig=n,this.requestQueue=new m.default({concurrency:r}),this.tlsConfig=void 0!==a?a:{},this.rejectRateLimitedCalls=l,this.teamId=A,void 0!==i?(this.logger=i,void 0!==s&&this.logger.debug("The logLevel given to WebClient was ignored as you also gave logger")):this.logger=(0,B.getLogger)(D.loggerName,null!=s?s:B.LogLevel.INFO,i),this.token&&!p.Authorization&&(p.Authorization=`Bearer ${this.token}`),this.axios=f.default.create({timeout:c,baseURL:t,headers:(0,C.default)()?p:Object.assign({"User-Agent":(0,v.getUserAgent)()},p),httpAgent:o,httpsAgent:o,transformRequest:[this.serializeApiCallOptions.bind(this)],validateStatus:()=>!0,maxRedirects:0,proxy:!1}),delete this.axios.defaults.headers.post["Content-Type"],this.logger.debug("initialized")}async apiCall(e,t={}){if(this.logger.debug(`apiCall('${e}') start`),function(e,t){const i=["channels.","groups.","im.","mpim."].some((t=>new RegExp(`^${t}`).test(e))),s=["admin.conversations.whitelist.","stars."].some((t=>new RegExp(`^${t}`).test(e)));i?t.warn(`${e} is deprecated. Please use the Conversations API instead. For more info, go to https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api`):s&&t.warn(`${e} is deprecated. Please check on https://api.slack.com/methods for an alternative.`)}(e,this.logger),function(e,t,i){const s=e=>void 0===e.text||null===e.text||""===e.text,r=()=>`The top-level \`text\` argument is missing in the request payload for a ${e} call - It's a best practice to always provide a \`text\` argument when posting a message. The \`text\` is used in places where the content cannot be rendered such as: system push notifications, assistive technology such as screen readers, etc.`;var n;["chat.postEphemeral","chat.postMessage","chat.scheduleMessage","chat.update"].includes(e)&&"object"==typeof i&&(n=i,Array.isArray(n.attachments)&&n.attachments.length?(e=>Array.isArray(e.attachments)&&e.attachments.some((e=>!e.fallback||""===e.fallback.trim())))(i)&&s(i)&&(t.warn(r()),t.warn(`Additionally, the attachment-level \`fallback\` argument is missing in the request payload for a ${e} call - To avoid this warning, it is recommended to always provide a top-level \`text\` argument when posting a message. Alternatively, you can provide an attachment-level \`fallback\` argument, though this is now considered a legacy field (see https://api.slack.com/reference/messaging/attachments#legacy_fields for more details).`)):s(i)&&t.warn(r()))}(e,this.logger,t),function(e,t,i){["chat.postEphemeral","chat.postMessage","chat.scheduleMessage","files.upload"].includes(e)&&void 0!==(null==i?void 0:i.thread_ts)&&"string"!=typeof(null==i?void 0:i.thread_ts)&&t.warn(R(e))}(e,this.logger,t),"string"==typeof t||"number"==typeof t||"boolean"==typeof t)throw new TypeError("Expected an options argument but instead received a "+typeof t);if((0,Q.warnIfNotUsingFilesUploadV2)(e,this.logger),"files.uploadV2"===e)return this.filesUploadV2(t);const i={};t.token&&(i.Authorization=`Bearer ${t.token}`);const s=await this.makeRequest(e,Object.assign({team_id:this.teamId},t),i),r=await this.buildResult(s);if(this.logger.debug(`http request result: ${JSON.stringify(r)}`),void 0!==r.response_metadata&&void 0!==r.response_metadata.warnings&&r.response_metadata.warnings.forEach(this.logger.warn.bind(this.logger)),void 0!==r.response_metadata&&void 0!==r.response_metadata.messages&&r.response_metadata.messages.forEach((e=>{const t=/\[ERROR\](.*)/,i=/\[WARN\](.*)/;if(t.test(e)){const i=e.match(t);null!=i&&this.logger.error(i[1].trim())}else if(i.test(e)){const t=e.match(i);null!=t&&this.logger.warn(t[1].trim())}})),!r.ok&&"application/gzip"!==s.headers["content-type"])throw(0,I.platformErrorFromResult)(r);if("ok"in r&&!1===r.ok)throw(0,I.platformErrorFromResult)(r);return this.logger.debug(`apiCall('${e}') end`),r}paginate(e,t,i,s){y.cursorPaginationEnabledMethods.has(e)||this.logger.warn(`paginate() called with method ${e}, which is not known to be cursor pagination enabled.`);const r=(()=>{if(void 0!==t&&"number"==typeof t.limit){const{limit:e}=t;return delete t.limit,e}return 200})();function n(){return a(this,arguments,(function*(){let i,s={limit:r};for(void 0!==t&&void 0!==t.cursor&&(s.cursor=t.cursor);void 0===i||void 0!==s;)i=yield o(this.apiCall(e,Object.assign(void 0!==t?t:{},s))),yield yield o(i),s=S(i,r)}))}if(void 0===i)return n.call(this);const l=void 0!==s?s:x;let p=0;return(async()=>{var e,t,s,r;const o=n.call(this),a=(await o.next(void 0)).value;let A=l(void 0,a,p);if(p+=1,i(a))return A;try{for(var u,d=!0,h=c(o);!(e=(u=await h.next()).done);){r=u.value,d=!1;try{const e=r;if(A=l(A,e,p),i(e))return A;p+=1}finally{d=!0}}}catch(e){t={error:e}}finally{try{d||e||!(s=h.return)||await s.call(h)}finally{if(t)throw t.error}}return A})()}async filesUploadV2(e){this.logger.debug("files.uploadV2() start");const t=await this.getAllFileUploads(e);return(await this.fetchAllUploadURLExternal(t)).forEach(((e,i)=>{t[i].upload_url=e.upload_url,t[i].file_id=e.file_id})),await this.postFileUploadsToExternalURL(t,e),{ok:!0,files:await this.completeFileUploads(t)}}async fetchAllUploadURLExternal(e){return Promise.all(e.map((e=>{const t={filename:e.filename,length:e.length,alt_text:e.alt_text,snippet_type:e.snippet_type};return this.files.getUploadURLExternal(t)})))}async completeFileUploads(e){const t=Object.values((0,Q.getAllFileUploadsToComplete)(e));return Promise.all(t.map((e=>this.files.completeUploadExternal(e))))}async postFileUploadsToExternalURL(e,t){return Promise.all(e.map((async e=>{const{upload_url:i,file_id:s,filename:r,data:n}=e,o=n;if(i){const e={};t.token&&(e.Authorization=`Bearer ${t.token}`);const n=await this.makeRequest(i,{body:o},e);if(200!==n.status)return Promise.reject(Error(`Failed to upload file (id:${s}, filename: ${r})`));const a={ok:!0,body:n.data};return Promise.resolve(a)}return Promise.reject(Error(`No upload url found for file (id: ${s}, filename: ${r}`))})))}async getAllFileUploads(e){let t=[];return(e.file||e.content)&&t.push(await(0,Q.getFileUploadJob)(e,this.logger)),e.file_uploads&&(t=t.concat(await(0,Q.getMultipleFileUploadJobs)(e,this.logger))),t}async makeRequest(e,t,i={}){return(0,g.default)((()=>this.requestQueue.add((async()=>{const s=e.startsWith("https")?e:`${this.axios.getUri()+e}`;this.logger.debug(`http request url: ${s}`),this.logger.debug(`http request body: ${JSON.stringify(T(t))}`),this.logger.debug(`http request headers: ${JSON.stringify(T(i))}`);try{const s=Object.assign({headers:i},this.tlsConfig);e.endsWith("admin.analytics.getFile")&&(s.responseType="arraybuffer");const r=await this.axios.post(e,t,s);if(this.logger.debug("http response received"),429===r.status){const i=_(r);if(void 0!==i){if(this.emit(k.RATE_LIMITED,i,{url:e,body:t}),this.rejectRateLimitedCalls)throw new g.AbortError((0,I.rateLimitedErrorWithDelay)(i));throw this.logger.info(`API Call failed due to rate limiting. Will retry in ${i} seconds.`),this.requestQueue.pause(),await(0,b.default)(1e3*i),this.requestQueue.start(),Error(`A rate limit was exceeded (url: ${e}, retry-after: ${i})`)}throw new g.AbortError(new Error(`Retry header did not contain a valid timeout (url: ${e}, retry-after header: ${r.headers["retry-after"]})`))}if(200!==r.status)throw(0,I.httpErrorFromResponse)(r);return r}catch(e){const t=e;if(this.logger.warn("http request failed",t.message),t.request)throw(0,I.requestErrorWithOriginal)(t);throw e}}))),this.retryConfig)}serializeApiCallOptions(e,t){let i=!1;const s=Object.entries(e).map((([e,t])=>{if(null==t)return[];let s=t;return Buffer.isBuffer(t)||(0,h.default)(t)?i=!0:"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t&&(s=JSON.stringify(t)),[e,s]}));if(i){this.logger.debug("Request arguments contain binary data");const e=s.reduce(((e,[t,i])=>{if(Buffer.isBuffer(i)||(0,h.default)(i)){const s={};s.filename=(()=>{const e=i;return"string"==typeof e.name?(0,A.basename)(e.name):"string"==typeof e.path?(0,A.basename)(e.path):"Untitled"})(),e.append(t,i,s)}else void 0!==t&&void 0!==i&&e.append(t,i);return e}),new E.default);return Object.entries(e.getHeaders()).forEach((([e,i])=>{t[e]=i})),e}return t["Content-Type"]="application/x-www-form-urlencoded",(0,p.stringify)(s.reduce(((e,[t,i])=>(void 0!==t&&void 0!==i&&(e[t]=i),e)),{}))}async buildResult(e){let{data:t}=e;const i="application/gzip"===e.headers["content-type"];if(i)try{const e=await new Promise(((e,i)=>{u.default.unzip(t,((t,s)=>t?i(t):e(s.toString().split("\n"))))})).then((e=>e)).catch((e=>{throw e})),i=[];Array.isArray(e)&&e.forEach((e=>{e&&e.length>0&&i.push(JSON.parse(e))})),t={file_data:i}}catch(e){t={ok:!1,error:e}}else i||"/api/admin.analytics.getFile"!==e.request.path||(t=JSON.parse((new d.TextDecoder).decode(t)));if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t={ok:!1,error:t}}void 0===t.response_metadata&&(t.response_metadata={}),void 0!==e.headers["x-oauth-scopes"]&&(t.response_metadata.scopes=e.headers["x-oauth-scopes"].trim().split(/\s*,\s*/)),void 0!==e.headers["x-accepted-oauth-scopes"]&&(t.response_metadata.acceptedScopes=e.headers["x-accepted-oauth-scopes"].trim().split(/\s*,\s*/));const s=_(e);return void 0!==s&&(t.response_metadata.retryAfter=s),t}}function S(e,t){if(void 0!==e&&void 0!==e.response_metadata&&void 0!==e.response_metadata.next_cursor&&""!==e.response_metadata.next_cursor)return{limit:t,cursor:e.response_metadata.next_cursor}}function _(e){if(void 0!==e.headers["retry-after"]){const t=parseInt(e.headers["retry-after"],10);if(!Number.isNaN(t))return t}}function R(e){return`The given thread_ts value in the request payload for a ${e} call is a float value. We highly recommend using a string value instead.`}function T(e){return Object.entries(e).map((([e,t])=>{if(null==t)return[];let i=t;return(null!==e.match(/.*token.*/)||e.match(/[Aa]uthorization/))&&(i="[[REDACTED]]"),Buffer.isBuffer(t)||(0,h.default)(t)?i="[[BINARY VALUE OMITTED]]":"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t&&(i=JSON.stringify(t)),[e,i]})).reduce(((e,[t,i])=>(void 0!==t&&void 0!==i&&(e[t]=i),e)),{})}t.WebClient=D,D.loggerName="WebClient",t.default=D,t.buildThreadTsWarningMessage=R},47056:(e,t)=>{"use strict";var i;function s(e,t){const i=e;return i.code=t,i}Object.defineProperty(t,"__esModule",{value:!0}),t.rateLimitedErrorWithDelay=t.platformErrorFromResult=t.httpErrorFromResponse=t.requestErrorWithOriginal=t.errorWithCode=t.ErrorCode=void 0,function(e){e.RequestError="slack_webapi_request_error",e.HTTPError="slack_webapi_http_error",e.PlatformError="slack_webapi_platform_error",e.RateLimitedError="slack_webapi_rate_limited_error",e.FileUploadInvalidArgumentsError="slack_webapi_file_upload_invalid_args_error",e.FileUploadReadFileDataError="slack_webapi_file_upload_read_file_data_error"}(i=t.ErrorCode||(t.ErrorCode={})),t.errorWithCode=s,t.requestErrorWithOriginal=function(e){const t=s(new Error(`A request error occurred: ${e.message}`),i.RequestError);return t.original=e,t},t.httpErrorFromResponse=function(e){const t=s(new Error(`An HTTP protocol error occurred: statusCode = ${e.status}`),i.HTTPError);t.statusCode=e.status,t.statusMessage=e.statusText;const r={};return Object.keys(e.headers).forEach((t=>{t&&e.headers[t]&&(r[t]=e.headers[t])})),t.headers=r,t.body=e.data,t},t.platformErrorFromResult=function(e){const t=s(new Error(`An API error occurred: ${e.error}`),i.PlatformError);return t.data=e,t},t.rateLimitedErrorWithDelay=function(e){const t=s(new Error(`A rate-limit has been reached, you may retry this request in ${e} seconds`),i.RateLimitedError);return t.retryAfter=e,t}},28666:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildInvalidFilesUploadParamError=t.buildMultipleChannelsErrorMsg=t.buildChannelsWarning=t.buildFilesUploadMissingMessage=t.buildGeneralFilesUploadWarning=t.buildLegacyMethodWarning=t.buildMissingExtensionWarning=t.buildMissingFileNameWarning=t.buildLegacyFileTypeWarning=t.buildFileSizeErrorMsg=t.buildMissingFileIdError=t.warnIfLegacyFileType=t.warnIfMissingOrInvalidFileNameAndDefault=t.errorIfInvalidOrMissingFileData=t.errorIfChannelsCsv=t.warnIfChannels=t.warnIfNotUsingFilesUploadV2=t.getAllFileUploadsToComplete=t.getFileDataAsStream=t.getFileDataLength=t.getFileData=t.getMultipleFileUploadJobs=t.getFileUploadJob=void 0;const s=i(57147),r=i(12781),n=i(47056);async function o(e,t){var i,s,r,n;h(e,t),p(e,t),A(e);const o=d(e,t),l=await a(e),u=c(l);return{alt_text:e.alt_text,channel_id:null!==(i=e.channels)&&void 0!==i?i:e.channel_id,content:e.content,file:e.file,filename:null!==(s=e.filename)&&void 0!==s?s:o,initial_comment:e.initial_comment,snippet_type:e.snippet_type,thread_ts:e.thread_ts,title:null!==(r=e.title)&&void 0!==r?r:null!==(n=e.filename)&&void 0!==n?n:o,data:l,length:u}}async function a(e){u(e);const{file:t,content:i}=e;if(t){if(Buffer.isBuffer(t))return t;if("string"==typeof t)try{return(0,s.readFileSync)(t)}catch(e){throw(0,n.errorWithCode)(new Error(`Unable to resolve file data for ${t}. Please supply a filepath string, or binary data Buffer or String directly.`),n.ErrorCode.FileUploadInvalidArgumentsError)}const e=await l(t);if(e)return e}if(i)return Buffer.from(i);throw(0,n.errorWithCode)(new Error("There was an issue getting the file data for the file or content supplied"),n.ErrorCode.FileUploadReadFileDataError)}function c(e){if(e)return Buffer.byteLength(e,"utf8");throw(0,n.errorWithCode)(new Error("There was an issue calculating the size of your file"),n.ErrorCode.FileUploadReadFileDataError)}async function l(e){const t=[];return new Promise(((i,s)=>{e.on("readable",(()=>{let i;for(;null!==(i=e.read());)t.push(i)})),e.on("end",(()=>{if(t.length>0){const e=Buffer.concat(t);i(e)}else s(Error("No data in supplied file"))}))}))}function p(e,t){e.channels&&t.warn("Although the 'channels' parameter is still supported for smoother migration from legacy files.upload, we recommend using the new channel_id parameter with a single str value instead (e.g. 'C12345').")}function A(e){if((e.channels?e.channels.split(","):[]).length>1)throw(0,n.errorWithCode)(new Error("Sharing files with multiple channels is no longer supported in v2. Share files in each channel separately instead."),n.ErrorCode.FileUploadInvalidArgumentsError)}function u(e){const{file:t,content:i}=e;if(!t&&!i||t&&i)throw(0,n.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You cannot supply both"),n.ErrorCode.FileUploadInvalidArgumentsError);if(t&&!("string"==typeof t||Buffer.isBuffer(t)||t instanceof r.Readable))throw(0,n.errorWithCode)(new Error("file must be a valid string path, buffer or Readable"),n.ErrorCode.FileUploadInvalidArgumentsError);if(i&&"string"!=typeof i)throw(0,n.errorWithCode)(new Error("content must be a string"),n.ErrorCode.FileUploadInvalidArgumentsError)}function d(e,t){var i;const s=`file.${null!==(i=e.filetype)&&void 0!==i?i:"txt"}`,{filename:r}=e;return r?(r.split(".").length<2&&t.warn(m(r)),r):(t.warn("filename is a required field for files.uploadV2. \n For backwards compatibility and ease of migration, defaulting the filename. For best experience and consistent unfurl behavior, you should set the filename property with correct file extension, e.g. image.png, text.txt"),s)}function h(e,t){e.filetype&&t.warn("filetype is no longer a supported field in files.uploadV2. \nPlease remove this field. To indicate file type, please do so via the required filename property using the appropriate file extension, e.g. image.png, text.txt")}function m(e){return`filename supplied '${e}' may be missing a proper extension. Missing extenions may result in unexpected unfurl behavior when shared`}function g(e){return`${e} may cause some issues like timeouts for relatively large files.`}t.getFileUploadJob=o,t.getMultipleFileUploadJobs=async function(e,t){if(e.file_uploads)return Promise.all(e.file_uploads.map((i=>{const{channel_id:s,channels:r,initial_comment:a,thread_ts:c}=i;if(s||r||a||c)throw(0,n.errorWithCode)(new Error("You may supply file_uploads only for a single channel, comment, thread respectively. Therefore, please supply any channel_id, initial_comment, thread_ts in the top-layer."),n.ErrorCode.FileUploadInvalidArgumentsError);return o(Object.assign(Object.assign({},i),{channels:e.channels,channel_id:e.channel_id,initial_comment:e.initial_comment,thread_ts:e.thread_ts}),t)})));throw new Error("Something went wrong with processing file_uploads")},t.getFileData=a,t.getFileDataLength=c,t.getFileDataAsStream=l,t.getAllFileUploadsToComplete=function(e){const t={};return e.forEach((e=>{const{channel_id:i,thread_ts:s,initial_comment:r,file_id:n,title:o}=e;if(!n)throw new Error("Missing required file id for file upload completion");{const e=`:::${i}:::${s}:::${r}`;Object.prototype.hasOwnProperty.call(t,e)?t[e].files.push({id:n,title:o}):t[e]={files:[{id:n,title:o}],channel_id:i,initial_comment:r,thread_ts:s}}})),t},t.warnIfNotUsingFilesUploadV2=function(e,t){const i=["files.upload"].includes(e);"files.upload"===e&&t.warn(g(e)),i&&t.info("Our latest recommendation is to use client.files.uploadV2() method, which is mostly compatible and much stabler, instead.")},t.warnIfChannels=p,t.errorIfChannelsCsv=A,t.errorIfInvalidOrMissingFileData=u,t.warnIfMissingOrInvalidFileNameAndDefault=d,t.warnIfLegacyFileType=h,t.buildMissingFileIdError=function(){return"Missing required file id for file upload completion"},t.buildFileSizeErrorMsg=function(){return"There was an issue calculating the size of your file"},t.buildLegacyFileTypeWarning=function(){return"filetype is no longer a supported field in files.uploadV2. \nPlease remove this field. To indicate file type, please do so via the required filename property using the appropriate file extension, e.g. image.png, text.txt"},t.buildMissingFileNameWarning=function(){return"filename is a required field for files.uploadV2. \n For backwards compatibility and ease of migration, defaulting the filename. For best experience and consistent unfurl behavior, you should set the filename property with correct file extension, e.g. image.png, text.txt"},t.buildMissingExtensionWarning=m,t.buildLegacyMethodWarning=g,t.buildGeneralFilesUploadWarning=function(){return"Our latest recommendation is to use client.files.uploadV2() method, which is mostly compatible and much stabler, instead."},t.buildFilesUploadMissingMessage=function(){return"Something went wrong with processing file_uploads"},t.buildChannelsWarning=function(){return"Although the 'channels' parameter is still supported for smoother migration from legacy files.upload, we recommend using the new channel_id parameter with a single str value instead (e.g. 'C12345')."},t.buildMultipleChannelsErrorMsg=function(){return"Sharing files with multiple channels is no longer supported in v2. Share files in each channel separately instead."},t.buildInvalidFilesUploadParamError=function(){return"You may supply file_uploads only for a single channel, comment, thread respectively. Therefore, please supply any channel_id, initial_comment, thread_ts in the top-layer."}},83313:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new Promise((t=>{setTimeout(t,e)}))}},85314:function(e,t,i){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var r=Object.getOwnPropertyDescriptor(t,i);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,r)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||s(t,e,i)},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.addAppMetadata=t.retryPolicies=t.ErrorCode=t.LogLevel=t.WebClientEvent=t.WebClient=void 0;var o=i(11055);Object.defineProperty(t,"WebClient",{enumerable:!0,get:function(){return o.WebClient}}),Object.defineProperty(t,"WebClientEvent",{enumerable:!0,get:function(){return o.WebClientEvent}});var a=i(94139);Object.defineProperty(t,"LogLevel",{enumerable:!0,get:function(){return a.LogLevel}});var c=i(47056);Object.defineProperty(t,"ErrorCode",{enumerable:!0,get:function(){return c.ErrorCode}});var l=i(39847);Object.defineProperty(t,"retryPolicies",{enumerable:!0,get:function(){return n(l).default}});var p=i(57390);Object.defineProperty(t,"addAppMetadata",{enumerable:!0,get:function(){return p.addAppMetadata}}),r(i(25242),t),r(i(82356),t)},57390:function(e,t,i){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var r=Object.getOwnPropertyDescriptor(t,i);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,r)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getUserAgent=t.addAppMetadata=void 0;const o=n(i(22037)),a=i(71017),c=i(10191);function l(e){return e.replace("/",":")}const p=`${l(c.name)}/${c.version} ${(0,a.basename)(process.title)}/${process.version.replace("v","")} ${o.platform()}/${o.release()}`,A={};t.addAppMetadata=function({name:e,version:t}){A[l(e)]=t},t.getUserAgent=function(){const e=Object.entries(A).map((([e,t])=>`${e}/${t}`)).join(" ");return(e.length>0?`${e} `:"")+p}},94139:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLogger=t.LogLevel=void 0;const s=i(94832);var r=i(94832);Object.defineProperty(t,"LogLevel",{enumerable:!0,get:function(){return r.LogLevel}});let n=0;t.getLogger=function(e,t,i){const r=n;n+=1;const o=void 0!==i?i:new s.ConsoleLogger;return o.setName(`web-api:${e}:${r}`),void 0!==t&&o.setLevel(t),o}},25242:function(e,t,i){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var r=Object.getOwnPropertyDescriptor(t,i);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,r)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||s(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.cursorPaginationEnabledMethods=t.Methods=void 0;const n=i(91906),o=i(11055);function a(e,t){return e.apiCall.bind(e,t)}function c(e){return e.filesUploadV2.bind(e)}class l extends n.EventEmitter{constructor(){if(super(),this.admin={analytics:{getFile:a(this,"admin.analytics.getFile")},apps:{approve:a(this,"admin.apps.approve"),approved:{list:a(this,"admin.apps.approved.list")},clearResolution:a(this,"admin.apps.clearResolution"),requests:{cancel:a(this,"admin.apps.requests.cancel"),list:a(this,"admin.apps.requests.list")},restrict:a(this,"admin.apps.restrict"),restricted:{list:a(this,"admin.apps.restricted.list")},uninstall:a(this,"admin.apps.uninstall"),activities:{list:a(this,"admin.apps.activities.list")}},auth:{policy:{assignEntities:a(this,"admin.auth.policy.assignEntities"),getEntities:a(this,"admin.auth.policy.getEntities"),removeEntities:a(this,"admin.auth.policy.removeEntities")}},barriers:{create:a(this,"admin.barriers.create"),delete:a(this,"admin.barriers.delete"),list:a(this,"admin.barriers.list"),update:a(this,"admin.barriers.update")},conversations:{archive:a(this,"admin.conversations.archive"),bulkArchive:a(this,"admin.conversations.bulkArchive"),bulkDelete:a(this,"admin.conversations.bulkDelete"),bulkMove:a(this,"admin.conversations.bulkMove"),convertToPrivate:a(this,"admin.conversations.convertToPrivate"),convertToPublic:a(this,"admin.conversations.convertToPublic"),create:a(this,"admin.conversations.create"),delete:a(this,"admin.conversations.delete"),disconnectShared:a(this,"admin.conversations.disconnectShared"),ekm:{listOriginalConnectedChannelInfo:a(this,"admin.conversations.ekm.listOriginalConnectedChannelInfo")},getConversationPrefs:a(this,"admin.conversations.getConversationPrefs"),getTeams:a(this,"admin.conversations.getTeams"),invite:a(this,"admin.conversations.invite"),rename:a(this,"admin.conversations.rename"),restrictAccess:{addGroup:a(this,"admin.conversations.restrictAccess.addGroup"),listGroups:a(this,"admin.conversations.restrictAccess.listGroups"),removeGroup:a(this,"admin.conversations.restrictAccess.removeGroup")},getCustomRetention:a(this,"admin.conversations.getCustomRetention"),setCustomRetention:a(this,"admin.conversations.setCustomRetention"),removeCustomRetention:a(this,"admin.conversations.removeCustomRetention"),lookup:a(this,"admin.conversations.lookup"),search:a(this,"admin.conversations.search"),setConversationPrefs:a(this,"admin.conversations.setConversationPrefs"),setTeams:a(this,"admin.conversations.setTeams"),unarchive:a(this,"admin.conversations.unarchive")},emoji:{add:a(this,"admin.emoji.add"),addAlias:a(this,"admin.emoji.addAlias"),list:a(this,"admin.emoji.list"),remove:a(this,"admin.emoji.remove"),rename:a(this,"admin.emoji.rename")},functions:{list:a(this,"admin.functions.list"),permissions:{lookup:a(this,"admin.functions.permissions.lookup"),set:a(this,"admin.functions.permissions.set")}},inviteRequests:{approve:a(this,"admin.inviteRequests.approve"),approved:{list:a(this,"admin.inviteRequests.approved.list")},denied:{list:a(this,"admin.inviteRequests.denied.list")},deny:a(this,"admin.inviteRequests.deny"),list:a(this,"admin.inviteRequests.list")},teams:{admins:{list:a(this,"admin.teams.admins.list")},create:a(this,"admin.teams.create"),list:a(this,"admin.teams.list"),owners:{list:a(this,"admin.teams.owners.list")},settings:{info:a(this,"admin.teams.settings.info"),setDefaultChannels:a(this,"admin.teams.settings.setDefaultChannels"),setDescription:a(this,"admin.teams.settings.setDescription"),setDiscoverability:a(this,"admin.teams.settings.setDiscoverability"),setIcon:a(this,"admin.teams.settings.setIcon"),setName:a(this,"admin.teams.settings.setName")}},roles:{addAssignments:a(this,"admin.roles.addAssignments"),listAssignments:a(this,"admin.roles.listAssignments"),removeAssignments:a(this,"admin.roles.removeAssignments")},usergroups:{addChannels:a(this,"admin.usergroups.addChannels"),addTeams:a(this,"admin.usergroups.addTeams"),listChannels:a(this,"admin.usergroups.listChannels"),removeChannels:a(this,"admin.usergroups.removeChannels")},users:{assign:a(this,"admin.users.assign"),invite:a(this,"admin.users.invite"),list:a(this,"admin.users.list"),remove:a(this,"admin.users.remove"),session:{list:a(this,"admin.users.session.list"),reset:a(this,"admin.users.session.reset"),resetBulk:a(this,"admin.users.session.resetBulk"),invalidate:a(this,"admin.users.session.invalidate"),getSettings:a(this,"admin.users.session.getSettings"),setSettings:a(this,"admin.users.session.setSettings"),clearSettings:a(this,"admin.users.session.clearSettings")},unsupportedVersions:{export:a(this,"admin.users.unsupportedVersions.export")},setAdmin:a(this,"admin.users.setAdmin"),setExpiration:a(this,"admin.users.setExpiration"),setOwner:a(this,"admin.users.setOwner"),setRegular:a(this,"admin.users.setRegular")},workflows:{search:a(this,"admin.workflows.search"),unpublish:a(this,"admin.workflows.unpublish"),collaborators:{add:a(this,"admin.workflows.collaborators.add"),remove:a(this,"admin.workflows.collaborators.remove")},permissions:{lookup:a(this,"admin.workflows.permissions.lookup")}}},this.api={test:a(this,"api.test")},this.apps={connections:{open:a(this,"apps.connections.open")},event:{authorizations:{list:a(this,"apps.event.authorizations.list")}},manifest:{create:a(this,"apps.manifest.create"),delete:a(this,"apps.manifest.delete"),export:a(this,"apps.manifest.export"),update:a(this,"apps.manifest.update"),validate:a(this,"apps.manifest.validate")},uninstall:a(this,"apps.uninstall")},this.auth={revoke:a(this,"auth.revoke"),teams:{list:a(this,"auth.teams.list")},test:a(this,"auth.test")},this.bots={info:a(this,"bots.info")},this.bookmarks={add:a(this,"bookmarks.add"),edit:a(this,"bookmarks.edit"),list:a(this,"bookmarks.list"),remove:a(this,"bookmarks.remove")},this.calls={add:a(this,"calls.add"),end:a(this,"calls.end"),info:a(this,"calls.info"),update:a(this,"calls.update"),participants:{add:a(this,"calls.participants.add"),remove:a(this,"calls.participants.remove")}},this.chat={delete:a(this,"chat.delete"),deleteScheduledMessage:a(this,"chat.deleteScheduledMessage"),getPermalink:a(this,"chat.getPermalink"),meMessage:a(this,"chat.meMessage"),postEphemeral:a(this,"chat.postEphemeral"),postMessage:a(this,"chat.postMessage"),scheduleMessage:a(this,"chat.scheduleMessage"),scheduledMessages:{list:a(this,"chat.scheduledMessages.list")},unfurl:a(this,"chat.unfurl"),update:a(this,"chat.update")},this.conversations={acceptSharedInvite:a(this,"conversations.acceptSharedInvite"),approveSharedInvite:a(this,"conversations.approveSharedInvite"),archive:a(this,"conversations.archive"),close:a(this,"conversations.close"),create:a(this,"conversations.create"),declineSharedInvite:a(this,"conversations.declineSharedInvite"),history:a(this,"conversations.history"),info:a(this,"conversations.info"),invite:a(this,"conversations.invite"),inviteShared:a(this,"conversations.inviteShared"),join:a(this,"conversations.join"),kick:a(this,"conversations.kick"),leave:a(this,"conversations.leave"),list:a(this,"conversations.list"),listConnectInvites:a(this,"conversations.listConnectInvites"),mark:a(this,"conversations.mark"),members:a(this,"conversations.members"),open:a(this,"conversations.open"),rename:a(this,"conversations.rename"),replies:a(this,"conversations.replies"),setPurpose:a(this,"conversations.setPurpose"),setTopic:a(this,"conversations.setTopic"),unarchive:a(this,"conversations.unarchive")},this.dialog={open:a(this,"dialog.open")},this.dnd={endDnd:a(this,"dnd.endDnd"),endSnooze:a(this,"dnd.endSnooze"),info:a(this,"dnd.info"),setSnooze:a(this,"dnd.setSnooze"),teamInfo:a(this,"dnd.teamInfo")},this.emoji={list:a(this,"emoji.list")},this.files={delete:a(this,"files.delete"),info:a(this,"files.info"),list:a(this,"files.list"),revokePublicURL:a(this,"files.revokePublicURL"),sharedPublicURL:a(this,"files.sharedPublicURL"),upload:a(this,"files.upload"),uploadV2:c(this),getUploadURLExternal:a(this,"files.getUploadURLExternal"),completeUploadExternal:a(this,"files.completeUploadExternal"),comments:{delete:a(this,"files.comments.delete")},remote:{info:a(this,"files.remote.info"),list:a(this,"files.remote.list"),add:a(this,"files.remote.add"),update:a(this,"files.remote.update"),remove:a(this,"files.remote.remove"),share:a(this,"files.remote.share")}},this.migration={exchange:a(this,"migration.exchange")},this.oauth={access:a(this,"oauth.access"),v2:{access:a(this,"oauth.v2.access"),exchange:a(this,"oauth.v2.exchange")}},this.openid={connect:{token:a(this,"openid.connect.token"),userInfo:a(this,"openid.connect.userInfo")}},this.pins={add:a(this,"pins.add"),list:a(this,"pins.list"),remove:a(this,"pins.remove")},this.reactions={add:a(this,"reactions.add"),get:a(this,"reactions.get"),list:a(this,"reactions.list"),remove:a(this,"reactions.remove")},this.reminders={add:a(this,"reminders.add"),complete:a(this,"reminders.complete"),delete:a(this,"reminders.delete"),info:a(this,"reminders.info"),list:a(this,"reminders.list")},this.rtm={connect:a(this,"rtm.connect"),start:a(this,"rtm.start")},this.search={all:a(this,"search.all"),files:a(this,"search.files"),messages:a(this,"search.messages")},this.stars={add:a(this,"stars.add"),list:a(this,"stars.list"),remove:a(this,"stars.remove")},this.team={accessLogs:a(this,"team.accessLogs"),billableInfo:a(this,"team.billableInfo"),billing:{info:a(this,"team.billing.info")},info:a(this,"team.info"),integrationLogs:a(this,"team.integrationLogs"),preferences:{list:a(this,"team.preferences.list")},profile:{get:a(this,"team.profile.get")}},this.tooling={tokens:{rotate:a(this,"tooling.tokens.rotate")}},this.usergroups={create:a(this,"usergroups.create"),disable:a(this,"usergroups.disable"),enable:a(this,"usergroups.enable"),list:a(this,"usergroups.list"),update:a(this,"usergroups.update"),users:{list:a(this,"usergroups.users.list"),update:a(this,"usergroups.users.update")}},this.users={conversations:a(this,"users.conversations"),deletePhoto:a(this,"users.deletePhoto"),getPresence:a(this,"users.getPresence"),identity:a(this,"users.identity"),info:a(this,"users.info"),list:a(this,"users.list"),lookupByEmail:a(this,"users.lookupByEmail"),setPhoto:a(this,"users.setPhoto"),setPresence:a(this,"users.setPresence"),profile:{get:a(this,"users.profile.get"),set:a(this,"users.profile.set")}},this.views={open:a(this,"views.open"),publish:a(this,"views.publish"),push:a(this,"views.push"),update:a(this,"views.update")},this.workflows={stepCompleted:a(this,"workflows.stepCompleted"),stepFailed:a(this,"workflows.stepFailed"),updateStep:a(this,"workflows.updateStep")},this.channels={archive:a(this,"channels.archive"),create:a(this,"channels.create"),history:a(this,"channels.history"),info:a(this,"channels.info"),invite:a(this,"channels.invite"),join:a(this,"channels.join"),kick:a(this,"channels.kick"),leave:a(this,"channels.leave"),list:a(this,"channels.list"),mark:a(this,"channels.mark"),rename:a(this,"channels.rename"),replies:a(this,"channels.replies"),setPurpose:a(this,"channels.setPurpose"),setTopic:a(this,"channels.setTopic"),unarchive:a(this,"channels.unarchive")},this.groups={archive:a(this,"groups.archive"),create:a(this,"groups.create"),createChild:a(this,"groups.createChild"),history:a(this,"groups.history"),info:a(this,"groups.info"),invite:a(this,"groups.invite"),kick:a(this,"groups.kick"),leave:a(this,"groups.leave"),list:a(this,"groups.list"),mark:a(this,"groups.mark"),open:a(this,"groups.open"),rename:a(this,"groups.rename"),replies:a(this,"groups.replies"),setPurpose:a(this,"groups.setPurpose"),setTopic:a(this,"groups.setTopic"),unarchive:a(this,"groups.unarchive")},this.im={close:a(this,"im.close"),history:a(this,"im.history"),list:a(this,"im.list"),mark:a(this,"im.mark"),open:a(this,"im.open"),replies:a(this,"im.replies")},this.mpim={close:a(this,"mpim.close"),history:a(this,"mpim.history"),list:a(this,"mpim.list"),mark:a(this,"mpim.mark"),open:a(this,"mpim.open"),replies:a(this,"mpim.replies")},new.target!==o.WebClient&&!(new.target.prototype instanceof o.WebClient))throw new Error("Attempt to inherit from WebClient methods without inheriting from WebClient")}}t.Methods=l,t.cursorPaginationEnabledMethods=new Set,t.cursorPaginationEnabledMethods.add("admin.apps.approved.list"),t.cursorPaginationEnabledMethods.add("admin.apps.requests.list"),t.cursorPaginationEnabledMethods.add("admin.apps.restricted.list"),t.cursorPaginationEnabledMethods.add("admin.apps.activities.list"),t.cursorPaginationEnabledMethods.add("admin.auth.policy.getEntities"),t.cursorPaginationEnabledMethods.add("admin.barriers.list"),t.cursorPaginationEnabledMethods.add("admin.conversations.lookup"),t.cursorPaginationEnabledMethods.add("admin.conversations.ekm.listOriginalConnectedChannelInfo"),t.cursorPaginationEnabledMethods.add("admin.conversations.getTeams"),t.cursorPaginationEnabledMethods.add("admin.conversations.search"),t.cursorPaginationEnabledMethods.add("admin.emoji.list"),t.cursorPaginationEnabledMethods.add("admin.inviteRequests.approved.list"),t.cursorPaginationEnabledMethods.add("admin.inviteRequests.denied.list"),t.cursorPaginationEnabledMethods.add("admin.inviteRequests.list"),t.cursorPaginationEnabledMethods.add("admin.roles.listAssignments"),t.cursorPaginationEnabledMethods.add("admin.inviteRequests.list"),t.cursorPaginationEnabledMethods.add("admin.teams.admins.list"),t.cursorPaginationEnabledMethods.add("admin.teams.list"),t.cursorPaginationEnabledMethods.add("admin.teams.owners.list"),t.cursorPaginationEnabledMethods.add("admin.users.list"),t.cursorPaginationEnabledMethods.add("admin.users.session.list"),t.cursorPaginationEnabledMethods.add("admin.worfklows.search"),t.cursorPaginationEnabledMethods.add("apps.event.authorizations.list"),t.cursorPaginationEnabledMethods.add("auth.teams.list"),t.cursorPaginationEnabledMethods.add("channels.list"),t.cursorPaginationEnabledMethods.add("chat.scheduledMessages.list"),t.cursorPaginationEnabledMethods.add("conversations.history"),t.cursorPaginationEnabledMethods.add("conversations.list"),t.cursorPaginationEnabledMethods.add("conversations.listConnectInvites"),t.cursorPaginationEnabledMethods.add("conversations.members"),t.cursorPaginationEnabledMethods.add("conversations.replies"),t.cursorPaginationEnabledMethods.add("files.info"),t.cursorPaginationEnabledMethods.add("files.remote.list"),t.cursorPaginationEnabledMethods.add("groups.list"),t.cursorPaginationEnabledMethods.add("im.list"),t.cursorPaginationEnabledMethods.add("mpim.list"),t.cursorPaginationEnabledMethods.add("reactions.list"),t.cursorPaginationEnabledMethods.add("stars.list"),t.cursorPaginationEnabledMethods.add("team.accessLogs"),t.cursorPaginationEnabledMethods.add("users.conversations"),t.cursorPaginationEnabledMethods.add("users.list"),r(i(17578),t)},82356:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},39847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rapidRetryPolicy=t.fiveRetriesInFiveMinutes=t.tenRetriesInAboutThirtyMinutes=void 0,t.tenRetriesInAboutThirtyMinutes={retries:10,factor:1.96821,randomize:!0},t.fiveRetriesInFiveMinutes={retries:5,factor:3.86},t.rapidRetryPolicy={minTimeout:0,maxTimeout:1};const i={tenRetriesInAboutThirtyMinutes:t.tenRetriesInAboutThirtyMinutes,fiveRetriesInFiveMinutes:t.fiveRetriesInFiveMinutes,rapidRetryPolicy:t.rapidRetryPolicy};t.default=i},14686:(e,t,i)=>{"use strict";const s=i(96066),r=i(53072);class n extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t=(e=[...e].map((e=>e instanceof Error?e:null!==e&&"object"==typeof e?Object.assign(new Error(e.message),e):new Error(e)))).map((e=>"string"==typeof e.stack?r(e.stack).replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""):String(e))).join("\n");t="\n"+s(t,4),super(t),this.name="AggregateError",Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(const e of this._errors)yield e}}e.exports=n},86873:e=>{"use strict";e.exports=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}},78413:(e,t,i)=>{"use strict";e=i.nmd(e);const s=(e,t)=>(...i)=>`[${e(...i)+t}m`,r=(e,t)=>(...i)=>{const s=e(...i);return`[${38+t};5;${s}m`},n=(e,t)=>(...i)=>{const s=e(...i);return`[${38+t};2;${s[0]};${s[1]};${s[2]}m`},o=e=>e,a=(e,t,i)=>[e,t,i],c=(e,t,i)=>{Object.defineProperty(e,t,{get:()=>{const s=i();return Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0}),s},enumerable:!0,configurable:!0})};let l;const p=(e,t,s,r)=>{void 0===l&&(l=i(60398));const n=r?10:0,o={};for(const[i,r]of Object.entries(l)){const a="ansi16"===i?"ansi":i;i===t?o[a]=e(s,n):"object"==typeof r&&(o[a]=e(r[t],n))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={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],blackBright:[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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[i,s]of Object.entries(t)){for(const[i,r]of Object.entries(s))t[i]={open:`[${r[0]}m`,close:`[${r[1]}m`},s[i]=t[i],e.set(r[0],r[1]);Object.defineProperty(t,i,{value:s,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="[39m",t.bgColor.close="[49m",c(t.color,"ansi",(()=>p(s,"ansi16",o,!1))),c(t.color,"ansi256",(()=>p(r,"ansi256",o,!1))),c(t.color,"ansi16m",(()=>p(n,"rgb",a,!1))),c(t.bgColor,"ansi",(()=>p(s,"ansi16",o,!0))),c(t.bgColor,"ansi256",(()=>p(r,"ansi256",o,!0))),c(t.bgColor,"ansi16m",(()=>p(n,"rgb",a,!0))),t}})},62720:(e,t,i)=>{e.exports={parallel:i(61286),serial:i(74694),serialOrdered:i(87458)}},34653:e=>{function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},5209:(e,t,i)=>{var s=i(45623);e.exports=function(e){var t=!1;return s((function(){t=!0})),function(i,r){t?e(i,r):s((function(){e(i,r)}))}}},45623:e=>{e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},28773:(e,t,i)=>{var s=i(5209),r=i(34653);e.exports=function(e,t,i,n){var o=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[o]=function(e,t,i,r){return 2==e.length?e(i,s(r)):e(i,t,s(r))}(t,o,e[o],(function(e,t){o in i.jobs&&(delete i.jobs[o],e?r(i):i.results[o]=t,n(e,i.results))}))}},67630:e=>{e.exports=function(e,t){var i=!Array.isArray(e),s={index:0,keyedList:i||t?Object.keys(e):null,jobs:{},results:i?{}:[],size:i?Object.keys(e).length:e.length};return t&&s.keyedList.sort(i?t:function(i,s){return t(e[i],e[s])}),s}},45067:(e,t,i)=>{var s=i(34653),r=i(5209);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,s(this),r(e)(null,this.results))}},61286:(e,t,i)=>{var s=i(28773),r=i(67630),n=i(45067);e.exports=function(e,t,i){for(var o=r(e);o.index<(o.keyedList||e).length;)s(e,t,o,(function(e,t){e?i(e,t):0!==Object.keys(o.jobs).length||i(null,o.results)})),o.index++;return n.bind(o,i)}},74694:(e,t,i)=>{var s=i(87458);e.exports=function(e,t,i){return s(e,t,null,i)}},87458:(e,t,i)=>{var s=i(28773),r=i(67630),n=i(45067);function o(e,t){return et?1:0}e.exports=function(e,t,i,o){var a=r(e,i);return s(e,t,a,(function i(r,n){r?o(r,n):(a.index++,a.index<(a.keyedList||e).length?s(e,t,a,i):o(null,a.results))})),n.bind(a,o)},e.exports.ascending=o,e.exports.descending=function(e,t){return-1*o(e,t)}},72547:e=>{"use strict";function t(e,t,r){e instanceof RegExp&&(e=i(e,r)),t instanceof RegExp&&(t=i(t,r));var n=s(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function i(e,t){var i=t.match(e);return i?i[0]:null}function s(e,t,i){var s,r,n,o,a,c=i.indexOf(e),l=i.indexOf(t,c+1),p=c;if(c>=0&&l>0){if(e===t)return[c,l];for(s=[],n=i.length;p>=0&&!a;)p==c?(s.push(p),c=i.indexOf(e,p+1)):1==s.length?a=[s.pop(),l]:((r=s.pop())=0?c:l;s.length&&(a=[n,o])}return a}e.exports=t,t.range=s},8903:(e,t,i)=>{var s=i(46459),r=i(32361),n=i(62235),o=Function.bind,a=o.bind(o);function c(e,t,i){var s=a(n,null).apply(null,i?[t,i]:[t]);e.api={remove:s},e.remove=s,["before","error","after","wrap"].forEach((function(s){var n=i?[t,s,i]:[t,s];e[s]=e.api[s]=a(r,null).apply(null,n)}))}function l(){var e={registry:{}},t=s.bind(null,e);return c(t,e),t}var p=!1;function A(){return p||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),p=!0),l()}A.Singular=function(){var e={registry:{}},t=s.bind(null,e,"h");return c(t,e,"h"),t}.bind(),A.Collection=l.bind(),e.exports=A,e.exports.Hook=A,e.exports.Singular=A.Singular,e.exports.Collection=A.Collection},32361:e=>{e.exports=function(e,t,i,s){var r=s;e.registry[i]||(e.registry[i]=[]),"before"===t&&(s=function(e,t){return Promise.resolve().then(r.bind(null,t)).then(e.bind(null,t))}),"after"===t&&(s=function(e,t){var i;return Promise.resolve().then(e.bind(null,t)).then((function(e){return r(i=e,t)})).then((function(){return i}))}),"error"===t&&(s=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return r(e,t)}))}),e.registry[i].push({hook:s,orig:r})}},46459:e=>{e.exports=function e(t,i,s,r){if("function"!=typeof s)throw new Error("method for before hook must be a function");return r||(r={}),Array.isArray(i)?i.reverse().reduce((function(i,s){return e.bind(null,t,s,i,r)}),s)():Promise.resolve().then((function(){return t.registry[i]?t.registry[i].reduce((function(e,t){return t.hook.bind(null,e,r)}),s)():s(r)}))}},62235:e=>{e.exports=function(e,t,i){if(e.registry[t]){var s=e.registry[t].map((function(e){return e.orig})).indexOf(i);-1!==s&&e.registry[t].splice(s,1)}}},20276:(e,t,i)=>{"use strict";const{Buffer:s}=i(14300),r=Symbol.for("BufferList");function n(e){if(!(this instanceof n))return new n(e);n._init.call(this,e)}n._init=function(e){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},n.prototype._new=function(e){return new n(e)},n.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let i=0;ithis.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},n.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},n.prototype.copy=function(e,t,i,r){if(("number"!=typeof i||i<0)&&(i=0),("number"!=typeof r||r>this.length)&&(r=this.length),i>=this.length)return e||s.alloc(0);if(r<=0)return e||s.alloc(0);const n=!!e,o=this._offset(i),a=r-i;let c=a,l=n&&t||0,p=o[1];if(0===i&&r===this.length){if(!n)return 1===this._bufs.length?this._bufs[0]:s.concat(this._bufs,this.length);for(let t=0;ti)){this._bufs[t].copy(e,l,p,p+c),l+=i;break}this._bufs[t].copy(e,l,p),l+=i,c-=i,p&&(p=0)}return e.length>l?e.slice(0,l):e},n.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!=typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const i=this._offset(e),s=this._offset(t),r=this._bufs.slice(i[0],s[0]+1);return 0===s[1]?r.pop():r[r.length-1]=r[r.length-1].slice(0,s[1]),0!==i[1]&&(r[0]=r[0].slice(i[1])),this._new(r)},n.prototype.toString=function(e,t,i){return this.slice(t,i).toString(e)},n.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},n.prototype.duplicate=function(){const e=this._new();for(let t=0;tthis.length?this.length:t;const r=this._offset(t);let n=r[0],o=r[1];for(;n=e.length){const i=t.indexOf(e,o);if(-1!==i)return this._reverseOffset([n,i]);o=t.length-e.length+1}else{const t=this._reverseOffset([n,o]);if(this._match(t,e))return t;o++}o=0}return-1},n.prototype._match=function(e,t){if(this.length-e{"use strict";const s=i(65945).Duplex,r=i(44236),n=i(20276);function o(e){if(!(this instanceof o))return new o(e);if("function"==typeof e){this._callback=e;const t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)})),e=null}n._init.call(this,e),s.call(this)}r(o,s),Object.assign(o.prototype,n.prototype),o.prototype._new=function(e){return new o(e)},o.prototype._write=function(e,t,i){this._appendBuffer(e),"function"==typeof i&&i()},o.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},o.prototype.end=function(e){s.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},o.prototype._isBufferList=function(e){return e instanceof o||e instanceof n||o.isBufferList(e)},o.isBufferList=n.isBufferList,e.exports=o,e.exports.BufferListStream=o,e.exports.BufferList=n},32722:function(e){var t;t=function(){"use strict";var e,t,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={load:function(e,t,i={}){var s,r,n;for(s in t)n=t[s],i[s]=null!=(r=e[s])?r:n;return i},overwrite:function(e,t,i={}){var s,r;for(s in e)r=e[s],void 0!==t[s]&&(i[s]=r);return i}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,"function"==typeof this.incr&&this.incr(),t={value:e,prev:this._last,next:null},null!=this._last?(this._last.next=t,this._last=t):this._first=this._last=t}shift(){var e;if(null!=this._first)return this.length--,"function"==typeof this.decr&&this.decr(),e=this._first.value,null!=(this._first=this._first.next)?this._first.prev=null:this._last=null,e}first(){if(null!=this._first)return this._first.value}getArray(){var e,t,i;for(e=this._first,i=[];null!=e;)i.push((t=e,e=e.next,t.value));return i}forEachShift(e){var t;for(t=this.shift();null!=t;)e(t),t=this.shift()}debug(){var e,t,i,s,r;for(e=this._first,r=[];null!=e;)r.push((t=e,e=e.next,{value:t.value,prev:null!=(i=t.prev)?i.value:void 0,next:null!=(s=t.next)?s.value:void 0}));return r}},n=class{constructor(e){if(this.instance=e,this._events={},null!=this.instance.on||null!=this.instance.once||null!=this.instance.removeAllListeners)throw new Error("An Emitter already exists for this object");this.instance.on=(e,t)=>this._addListener(e,"many",t),this.instance.once=(e,t)=>this._addListener(e,"once",t),this.instance.removeAllListeners=(e=null)=>null!=e?delete this._events[e]:this._events={}}_addListener(e,t,i){var s;return null==(s=this._events)[e]&&(s[e]=[]),this._events[e].push({cb:i,status:t}),this.instance}listenerCount(e){return null!=this._events[e]?this._events[e].length:0}async trigger(e,...t){var i,s;try{if("debug"!==e&&this.trigger("debug",`Event triggered: ${e}`,t),null==this._events[e])return;return this._events[e]=this._events[e].filter((function(e){return"none"!==e.status})),s=this._events[e].map((async e=>{var i,s;if("none"!==e.status){"once"===e.status&&(e.status="none");try{return"function"==typeof(null!=(s="function"==typeof e.cb?e.cb(...t):void 0)?s.then:void 0)?await s:s}catch(e){return i=e,this.trigger("error",i),null}}})),(await Promise.all(s)).find((function(e){return null!=e}))}catch(e){return i=e,this.trigger("error",i),null}}};e=r,t=n;var o,a,c=class extends Error{};a=s,o=c;var l,p,A=class{constructor(e,t,i,s,r,n,o,c){this.task=e,this.args=t,this.rejectOnDrop=r,this.Events=n,this._states=o,this.Promise=c,this.options=a.load(i,s),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===s.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise(((e,t)=>{this._resolve=e,this._reject=t})),this.retryCount=0}_sanitizePriority(e){var t;return(t=~~e!==e?5:e)<0?0:t>9?9:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){return!!this._states.remove(this.options.id)&&(this.rejectOnDrop&&this._reject(null!=e?e:new o(t)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0)}_assertStatus(e){var t;if((t=this._states.jobStatus(this.options.id))!==e&&("DONE"!==e||null!==t))throw new o(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return 0===this.retryCount?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,i,s){var r,n,o;0===this.retryCount?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),n={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",n);try{if(o=await(null!=e?e.schedule(this.options,this.task,...this.args):this.task(...this.args)),t())return this.doDone(n),await s(this.options,n),this._assertStatus("DONE"),this._resolve(o)}catch(e){return r=e,this._onFailure(r,n,t,i,s)}}doExpire(e,t,i){var s,r;return this._states.jobStatus("RUNNING"===this.options.id)&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),r={args:this.args,options:this.options,retryCount:this.retryCount},s=new o(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(s,r,e,t,i)}async _onFailure(e,t,i,s,r){var n,o;if(i())return null!=(n=await this.Events.trigger("failed",e,t))?(o=~~n,this.Events.trigger("retry",`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,s(o)):(this.doDone(t),await r(this.options,t),this._assertStatus("DONE"),this._reject(e))}doDone(e){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",e)}};p=s,l=c;var u;u=c;var d;d=r;var h,m,g,f,E,C="2.19.5",y={version:C},v=Object.freeze({version:C,default:y}),I=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),B=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");E=s,h=n,g=I,m=B,f=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var w,b,Q=function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,E.load(this.limiterOptions,this.defaults,this),this.Events=new h(this),this.instances={},this.Bottleneck=U,this._startAutoCleanup(),this.sharedConnection=null!=this.connection,null==this.connection&&("redis"===this.limiterOptions.datastore?this.connection=new g(Object.assign({},this.limiterOptions,{Events:this.Events})):"ioredis"===this.limiterOptions.datastore&&(this.connection=new m(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=""){var t;return null!=(t=this.instances[e])?t:(()=>{var t;return t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",t,e),t})()}async deleteKey(e=""){var t,i;return i=this.instances[e],this.connection&&(t=await this.connection.__runCommand__(["del",...f.allKeys(`${this.id}-${e}`)])),null!=i&&(delete this.instances[e],await i.disconnect()),null!=i||t>0}limiters(){var e,t,i,s;for(e in i=[],t=this.instances)s=t[e],i.push({key:e,limiter:s});return i}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,i,s,r,n,o,a;if(null==this.connection)return this.Promise.resolve(this.keys());for(r=[],e=null,a=`b_${this.id}-`.length;0!==e;)for([o,t]=await this.connection.__runCommand__(["scan",null!=e?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]),e=~~o,i=0,n=t.length;i{var e,t,i,s,r,n;for(t in r=Date.now(),s=[],i=this.instances){n=i[t];try{await n._store.__groupCheck__(r)?s.push(this.deleteKey(t)):s.push(void 0)}catch(t){e=t,s.push(n.Events.trigger("error",e))}}return s}),this.timeout/2)).unref?e.unref():void 0}updateSettings(e={}){if(E.overwrite(e,this.defaults,this),E.overwrite(e,e,this.limiterOptions),null!=e.timeout)return this._startAutoCleanup()}disconnect(e=!0){var t;if(!this.sharedConnection)return null!=(t=this.connection)?t.disconnect(e):void 0}}return e.prototype.defaults={timeout:3e5,connection:null,Promise,id:"group-key"},e}.call(i);b=s,w=n;var x,k,D,S,_,R,T,F,N,L=function(){class e{constructor(e={}){this.options=e,b.load(this.options,this.defaults,this),this.Events=new w(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():null!=this.maxTime&&1===this._arr.length&&(this._timeout=setTimeout((()=>this._flush()),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}.call(i),O=(x=v)&&x.default||x,M=[].splice;N=s,_=class{constructor(i){this.Events=new t(this),this._length=0,this._lists=function(){var t,s,r;for(r=[],t=1,s=i;1<=s?t<=s:t>=s;1<=s?++t:--t)r.push(new e((()=>this.incr()),(()=>this.decr())));return r}.call(this)}incr(){if(0==this._length++)return this.Events.trigger("leftzero")}decr(){if(0==--this._length)return this.Events.trigger("zero")}push(e){return this._lists[e.options.priority].push(e)}queued(e){return null!=e?this._lists[e].length:this._length}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(e=this._lists){var t,i,s;for(t=0,i=e.length;t0)return s;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},D=A,S=class{constructor(e,t,i){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),p.load(i,i,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var e;return null==this.heartbeat&&(null!=this.storeOptions.reservoirRefreshInterval&&null!=this.storeOptions.reservoirRefreshAmount||null!=this.storeOptions.reservoirIncreaseInterval&&null!=this.storeOptions.reservoirIncreaseAmount)?"function"==typeof(e=this.heartbeat=setInterval((()=>{var e,t,i,s,r;if(s=Date.now(),null!=this.storeOptions.reservoirRefreshInterval&&s>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=s,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),null!=this.storeOptions.reservoirIncreaseInterval&&s>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&(({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:i,reservoir:r}=this.storeOptions),this._lastReservoirIncrease=s,(t=null!=i?Math.min(e,i-r):e)>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())}),this.heartbeatInterval)).unref?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise((function(t,i){return setTimeout(t,e)}))}computePenalty(){var e;return null!=(e=this.storeOptions.penalty)?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){return await this.yieldLoop(),p.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,i){var s,r;return await this.yieldLoop(),s=Date.now(),this.conditionsCheck(t)?(this._running+=t,null!=this.storeOptions.reservoir&&(this.storeOptions.reservoir-=t),r=Math.max(this._nextRequest-s,0),this._nextRequest=s+r+this.storeOptions.minTime,{success:!0,wait:r,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return 3===this.storeOptions.strategy}async __submit__(e,t){var i,s,r;if(await this.yieldLoop(),null!=this.storeOptions.maxConcurrent&&t>this.storeOptions.maxConcurrent)throw new l(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return s=Date.now(),r=null!=this.storeOptions.highWater&&e===this.storeOptions.highWater&&!this.check(t,s),(i=this.strategyIsBlock()&&(r||this.isBlocked(s)))&&(this._unblockTime=s+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:r,blocked:i,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}},R=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),k=n,T=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map((function(){return 0}))}next(e){var t,i;return i=(t=this._jobs[e])+1,null!=t&&i(e[this.status[i]]=t,e)),{})}},F=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new d}isEmpty(){return 0===this._queue.length}async _tryToRun(){var e,t,i,s,r,n,o;if(this._running<1&&this._queue.length>0)return this._running++,({task:o,args:e,resolve:r,reject:s}=this._queue.shift()),t=await async function(){try{return n=await o(...e),function(){return r(n)}}catch(e){return i=e,function(){return s(i)}}}(),this._running--,this._tryToRun(),t()}schedule(e,...t){var i,s,r;return r=s=null,i=new this.Promise((function(e,t){return r=e,s=t})),this._queue.push({task:e,args:t,resolve:r,reject:s}),this._tryToRun(),i}};var U=function(){class e{constructor(t={},...i){var s,r;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,i),N.load(t,this.instanceDefaults,this),this._queues=new _(10),this._scheduled={},this._states=new T(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new k(this),this._submitLock=new F("submit",this.Promise),this._registerLock=new F("register",this.Promise),r=N.load(t,this.storeDefaults,{}),this._store=function(){if("redis"===this.datastore||"ioredis"===this.datastore||null!=this.connection)return s=N.load(t,this.redisStoreDefaults,{}),new R(this,r,s);if("local"===this.datastore)return s=N.load(t,this.localStoreDefaults,{}),new S(this,r,s);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}.call(this),this._queues.on("leftzero",(()=>{var e;return null!=(e=this._store.heartbeat)&&"function"==typeof e.ref?e.ref():void 0})),this._queues.on("zero",(()=>{var e;return null!=(e=this._store.heartbeat)&&"function"==typeof e.unref?e.unref():void 0}))}_validateOptions(t,i){if(null==t||"object"!=typeof t||0!==i.length)throw new e.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return 0===this.queued()&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return null!=this._scheduled[e]&&(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,i,s){var r,n;try{if(({running:n}=await this._store.__free__(e,i.weight)),this.Events.trigger("debug",`Freed ${i.id}`,s),0===n&&this.empty())return this.Events.trigger("idle")}catch(e){return r=e,this.Events.trigger("error",r)}}_run(e,t,i){var s,r,n;return t.doRun(),s=this._clearGlobalState.bind(this,e),n=this._run.bind(this,e,t),r=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,s,n,r)),i),expiration:null!=t.options.expiration?setTimeout((function(){return t.doExpire(s,n,r)}),i+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,i,s,r,n;return 0===this.queued()?this.Promise.resolve(null):(n=this._queues.getFirst(),({options:r,args:t}=s=n.first()),null!=e&&r.weight>e?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${r.id}`,{args:t,options:r}),i=this._randomIndex(),this._store.__register__(i,r.weight,r.expiration).then((({success:e,wait:o,reservoir:a})=>{var c;return this.Events.trigger("debug",`Drained ${r.id}`,{success:e,args:t,options:r}),e?(n.shift(),(c=this.empty())&&this.Events.trigger("empty"),0===a&&this.Events.trigger("depleted",c),this._run(i,s,o),this.Promise.resolve(r.weight)):this.Promise.resolve(null)}))))}))}_drainAll(e,t=0){return this._drainOne(e).then((i=>{var s;return null!=i?(s=null!=e?e-i:e,this._drainAll(s,t+i)):this.Promise.resolve(t)})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(t={}){var i,s;return t=N.load(t,this.stopDefaults),s=e=>{var t;return t=()=>{var t;return(t=this._states.counts)[0]+t[1]+t[2]+t[3]===e},new this.Promise(((e,i)=>t()?e():this.on("done",(()=>{if(t())return this.removeAllListeners("done"),e()}))))},i=t.dropWaitingJobs?(this._run=function(e,i){return i.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var e,i,r;for(e in i=this._scheduled)r=i[e],"RUNNING"===this.jobStatus(r.job.options.id)&&(clearTimeout(r.timeout),clearTimeout(r.expiration),r.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),s(0)}))))):this.schedule({priority:9,weight:0},(()=>s(1))),this._receive=function(i){return i._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError("stop() has already been called")),i}async _addToQueue(t){var i,s,r,n,o,a,c;({args:i,options:n}=t);try{({reachedHWM:o,blocked:s,strategy:c}=await this._store.__submit__(this.queued(),n.weight))}catch(e){return r=e,this.Events.trigger("debug",`Could not queue ${n.id}`,{args:i,options:n,error:r}),t.doDrop({error:r}),!1}return s?(t.doDrop(),!0):o&&(null!=(a=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(n.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(n.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0)&&a.doDrop(),null==a||c===e.prototype.strategy.OVERFLOW)?(null==a&&t.doDrop(),o):(t.doQueue(o,s),this._queues.push(t),await this._drainAll(),o)}_receive(t){return null!=this._states.jobStatus(t.options.id)?(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1):(t.doReceive(),this._submitLock.schedule(this._addToQueue,t))}submit(...e){var t,i,s,r,n,o,a;return"function"==typeof e[0]?(n=e,[i,...e]=n,[t]=M.call(e,-1),r=N.load({},this.jobDefaults)):(o=e,[r,i,...e]=o,[t]=M.call(e,-1),r=N.load(r,this.jobDefaults)),a=(...e)=>new this.Promise((function(t,s){return i(...e,(function(...e){return(null!=e[0]?s:t)(e)}))})),(s=new D(a,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise)).promise.then((function(e){return"function"==typeof t?t(...e):void 0})).catch((function(e){return Array.isArray(e)?"function"==typeof t?t(...e):void 0:"function"==typeof t?t(e):void 0})),this._receive(s)}schedule(...e){var t,i,s;return"function"==typeof e[0]?([s,...e]=e,i={}):[i,s,...e]=e,t=new D(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t,i;return t=this.schedule.bind(this),(i=function(...i){return t(e.bind(this),...i)}).withOptions=function(i,...s){return t(i,e,...s)},i}async updateSettings(e={}){return await this._store.__updateSettings__(N.overwrite(e,this.storeDefaults)),N.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=k,e.version=e.prototype.version=O.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=Q,e.RedisConnection=e.prototype.RedisConnection=I,e.IORedisConnection=e.prototype.IORedisConnection=B,e.Batcher=e.prototype.Batcher=L,e.prototype.jobDefaults={priority:5,weight:1,expiration:null,id:""},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},e}.call(i);return U},e.exports=t()},58389:(e,t,i)=>{var s=i(72547);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),g(function(e){return e.split("\\\\").join(r).split("\\{").join(n).split("\\}").join(o).split("\\,").join(a).split("\\.").join(c)}(e),!0).map(p)):[]};var r="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function p(e){return e.split(r).join("\\").split(n).join("{").split(o).join("}").split(a).join(",").split(c).join(".")}function A(e){if(!e)return[""];var t=[],i=s("{","}",e);if(!i)return e.split(",");var r=i.pre,n=i.body,o=i.post,a=r.split(",");a[a.length-1]+="{"+n+"}";var c=A(o);return o.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function u(e){return"{"+e+"}"}function d(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function m(e,t){return e>=t}function g(e,t){var i=[],r=s("{","}",e);if(!r)return[e];var n=r.pre,a=r.post.length?g(r.post,!1):[""];if(/\$$/.test(r.pre))for(var c=0;c=0;if(!v&&!I)return r.post.match(/,.*\}/)?g(e=r.pre+"{"+r.body+o+r.post):[e];if(v)f=r.body.split(/\.\./);else if(1===(f=A(r.body)).length&&1===(f=g(f[0],!1).map(u)).length)return a.map((function(e){return r.pre+f[0]+e}));if(v){var B=l(f[0]),w=l(f[1]),b=Math.max(f[0].length,f[1].length),Q=3==f.length?Math.abs(l(f[2])):1,x=h;w0){var R=new Array(_+1).join("0");S=D<0?"-"+R+S.slice(1):R+S}}E.push(S)}}else{E=[];for(var T=0;T{e.exports=function(e){return new Buffer(e).toString("base64")}},47309:(e,t,i)=>{"use strict";const s=i(78413),{stdout:r,stderr:n}=i(10447),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=i(63370),{isArray:c}=Array,l=["ansi","ansi","ansi256","ansi16m"],p=Object.create(null);class A{constructor(e){return u(e)}}const u=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const i=r?r.level:0;e.level=void 0===t.level?i:t.level})(t,e),t.template=(...e)=>y(t.template,...e),Object.setPrototypeOf(t,d.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=A,t.template};function d(e){return u(e)}for(const[e,t]of Object.entries(s))p[e]={get(){const i=f(this,g(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:i}),i}};p.visible={get(){const e=f(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const h=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of h)p[e]={get(){const{level:t}=this;return function(...i){const r=g(s.color[l[t]][e](...i),s.color.close,this._styler);return f(this,r,this._isEmpty)}}};for(const e of h)p["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...i){const r=g(s.bgColor[l[t]][e](...i),s.bgColor.close,this._styler);return f(this,r,this._isEmpty)}}};const m=Object.defineProperties((()=>{}),{...p,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),g=(e,t,i)=>{let s,r;return void 0===i?(s=e,r=t):(s=i.openAll+e,r=t+i.closeAll),{open:e,close:t,openAll:s,closeAll:r,parent:i}},f=(e,t,i)=>{const s=(...e)=>c(e[0])&&c(e[0].raw)?E(s,y(s,...e)):E(s,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(s,m),s._generator=e,s._styler=t,s._isEmpty=i,s},E=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let i=e._styler;if(void 0===i)return t;const{openAll:s,closeAll:r}=i;if(-1!==t.indexOf(""))for(;void 0!==i;)t=o(t,i.close,i.open),i=i.parent;const n=t.indexOf("\n");return-1!==n&&(t=a(t,r,s,n)),s+t+r};let C;const y=(e,...t)=>{const[s]=t;if(!c(s)||!c(s.raw))return t.join(" ");const r=t.slice(1),n=[s.raw[0]];for(let e=1;e{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,r=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,n=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function o(e){const t="u"===e[0],i="{"===e[1];return t&&!i&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&i?String.fromCodePoint(parseInt(e.slice(2,-1),16)):n.get(e)||e}function a(e,t){const i=[],n=t.trim().split(/\s*,\s*/g);let a;for(const t of n){const n=Number(t);if(Number.isNaN(n)){if(!(a=t.match(s)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);i.push(a[2].replace(r,((e,t,i)=>t?o(t):i)))}else i.push(n)}return i}function c(e){i.lastIndex=0;const t=[];let s;for(;null!==(s=i.exec(e));){const e=s[1];if(s[2]){const i=a(e,s[2]);t.push([e].concat(i))}else t.push([e])}return t}function l(e,t){const i={};for(const e of t)for(const t of e.styles)i[t[0]]=e.inverse?null:t.slice(1);let s=e;for(const[e,t]of Object.entries(i))if(Array.isArray(t)){if(!(e in s))throw new Error(`Unknown Chalk style: ${e}`);s=t.length>0?s[e](...t):s[e]}return s}e.exports=(e,i)=>{const s=[],r=[];let n=[];if(i.replace(t,((t,i,a,p,A,u)=>{if(i)n.push(o(i));else if(p){const t=n.join("");n=[],r.push(0===s.length?t:l(e,s)(t)),s.push({inverse:a,styles:c(p)})}else if(A){if(0===s.length)throw new Error("Found extraneous } in Chalk template literal");r.push(l(e,s)(n.join(""))),n=[],s.pop()}else n.push(u)})),r.push(n.join("")),s.length>0){const e=`Chalk template literal is missing ${s.length} closing bracket${1===s.length?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")}},63370:e=>{"use strict";e.exports={stringReplaceAll:(e,t,i)=>{let s=e.indexOf(t);if(-1===s)return e;const r=t.length;let n=0,o="";do{o+=e.substr(n,s-n)+t+i,n=s+r,s=e.indexOf(t,n)}while(-1!==s);return o+=e.substr(n),o},stringEncaseCRLFWithFirstIndex:(e,t,i,s)=>{let r=0,n="";do{const o="\r"===e[s-1];n+=e.substr(r,(o?s-1:s)-r)+t+(o?"\r\n":"\n")+i,r=s+1,s=e.indexOf("\n",r)}while(-1!==s);return n+=e.substr(r),n}}},53072:(e,t,i)=>{"use strict";const s=i(22037),r=/\s+at.*(?:\(|\s)(.*)\)?/,n=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,o=void 0===s.homedir?"":s.homedir();e.exports=(e,t)=>(t=Object.assign({pretty:!1},t),e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(r);if(null===t||!t[1])return!0;const i=t[1];return!i.includes(".app/Contents/Resources/electron.asar")&&!i.includes(".app/Contents/Resources/default_app.asar")&&!n.test(i)})).filter((e=>""!==e.trim())).map((e=>t.pretty?e.replace(r,((e,t)=>e.replace(t,t.replace(o,"~")))):e)).join("\n"))},55693:(e,t,i)=>{"use strict";const s=i(60350);let r=!1;t.show=(e=process.stderr)=>{e.isTTY&&(r=!1,e.write("[?25h"))},t.hide=(e=process.stderr)=>{e.isTTY&&(s(),r=!0,e.write("[?25l"))},t.toggle=(e,i)=>{void 0!==e&&(r=e),r?t.show(i):t.hide(i)}},60881:(e,t,i)=>{"use strict";const s=Object.assign({},i(36432)),r=Object.keys(s);Object.defineProperty(s,"random",{get(){const e=Math.floor(Math.random()*r.length),t=r[e];return s[t]}}),e.exports=s},91969:(e,t,i)=>{var s=i(27072),r=i(34045),n=r.repeat,o=r.truncate,a=r.pad;function c(e){if(this.options=r.options({chars:{top:"─","top-mid":"┬","top-left":"┌","top-right":"┐",bottom:"─","bottom-mid":"┴","bottom-left":"└","bottom-right":"┘",left:"│","left-mid":"├",mid:"─","mid-mid":"┼",right:"│","right-mid":"┤",middle:"│"},truncate:"…",colWidths:[],colAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]},e),e&&e.rows)for(var t=0;tr&&(r=n),s.push({contents:i,height:n})}));var c=new Array(r);s.forEach((function(e,s){e.contents.forEach((function(e,r){c[r]||(c[r]=[]),(i||a&&0===s&&t.style.head)&&(e=C(t.style.head,e)),c[r].push(e)}));for(var n=e.height,o=r;n0&&(p+="\n"+C(t.style.border,l.left)),p+=e.join(C(t.style.border,l.middle))+C(t.style.border,l.right)})),C(t.style.border,l.left)+p}function C(e,t){return t?(e.forEach((function(e){t=s[e](t)})),t):""}function y(e,s){e=String("object"==typeof e&&e.text?e.text:e);var c=r.strlen(e),l=A[s]-(i["padding-left"]||0)-(i["padding-right"]||0),u=t.colAligns[s]||"left";return n(" ",i["padding-left"]||0)+(c==l?e:c{t.repeat=function(e,t){return Array(t+1).join(e)},t.pad=function(e,t,i,s){if(t+1>=e.length)switch(s){case"left":e=Array(t+1-e.length).join(i)+e;break;case"both":var r=Math.ceil((padlen=t-e.length)/2),n=padlen-r;e=Array(n+1).join(i)+e+Array(r+1).join(i);break;default:e+=Array(t+1-e.length).join(i)}return e},t.truncate=function(e,t,i){return i=i||"…",e.length>=t?e.substr(0,t-i.length)+i:e},t.options=function e(t,i){for(var s in i)"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&(i[s]&&i[s].constructor&&i[s].constructor===Object?(t[s]=t[s]||{},e(t[s],i[s])):t[s]=i[s]);return t},t.strlen=function(e){return(""+e).replace(/\u001b\[(?:\d*;){0,5}\d*m/g,"").split("\n").reduce((function(e,t){return t.length>e?t.length:e}),0)}},54256:e=>{var t=function(){"use strict";function e(t,s,r,n){"object"==typeof s&&(r=s.depth,n=s.prototype,s.filter,s=s.circular);var o=[],a=[],c="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===r&&(r=1/0),function t(r,l){if(null===r)return null;if(0==l)return r;var p,A;if("object"!=typeof r)return r;if(e.__isArray(r))p=[];else if(e.__isRegExp(r))p=new RegExp(r.source,i(r)),r.lastIndex&&(p.lastIndex=r.lastIndex);else if(e.__isDate(r))p=new Date(r.getTime());else{if(c&&Buffer.isBuffer(r))return p=Buffer.allocUnsafe?Buffer.allocUnsafe(r.length):new Buffer(r.length),r.copy(p),p;void 0===n?(A=Object.getPrototypeOf(r),p=Object.create(A)):(p=Object.create(n),A=n)}if(s){var u=o.indexOf(r);if(-1!=u)return a[u];o.push(r),a.push(p)}for(var d in r){var h;A&&(h=Object.getOwnPropertyDescriptor(A,d)),h&&null==h.set||(p[d]=t(r[d],l-1))}return p}(t,r)}function t(e){return Object.prototype.toString.call(e)}function i(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=t,e.__isDate=function(e){return"object"==typeof e&&"[object Date]"===t(e)},e.__isArray=function(e){return"object"==typeof e&&"[object Array]"===t(e)},e.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===t(e)},e.__getRegExpFlags=i,e}();e.exports&&(e.exports=t)},38097:(e,t,i)=>{const s=i(61821),r={};for(const e of Object.keys(s))r[s[e]]=e;const n={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"]}};e.exports=n;for(const e of Object.keys(n)){if(!("channels"in n[e]))throw new Error("missing channels property: "+e);if(!("labels"in n[e]))throw new Error("missing channel labels property: "+e);if(n[e].labels.length!==n[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:i}=n[e];delete n[e].channels,delete n[e].labels,Object.defineProperty(n[e],"channels",{value:t}),Object.defineProperty(n[e],"labels",{value:i})}n.rgb.hsl=function(e){const t=e[0]/255,i=e[1]/255,s=e[2]/255,r=Math.min(t,i,s),n=Math.max(t,i,s),o=n-r;let a,c;n===r?a=0:t===n?a=(i-s)/o:i===n?a=2+(s-t)/o:s===n&&(a=4+(t-i)/o),a=Math.min(60*a,360),a<0&&(a+=360);const l=(r+n)/2;return c=n===r?0:l<=.5?o/(n+r):o/(2-n-r),[a,100*c,100*l]},n.rgb.hsv=function(e){let t,i,s,r,n;const o=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(o,a,c),p=l-Math.min(o,a,c),A=function(e){return(l-e)/6/p+.5};return 0===p?(r=0,n=0):(n=p/l,t=A(o),i=A(a),s=A(c),o===l?r=s-i:a===l?r=1/3+t-s:c===l&&(r=2/3+i-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*n,100*l]},n.rgb.hwb=function(e){const t=e[0],i=e[1];let s=e[2];const r=n.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(i,s));return s=1-1/255*Math.max(t,Math.max(i,s)),[r,100*o,100*s]},n.rgb.cmyk=function(e){const t=e[0]/255,i=e[1]/255,s=e[2]/255,r=Math.min(1-t,1-i,1-s);return[100*((1-t-r)/(1-r)||0),100*((1-i-r)/(1-r)||0),100*((1-s-r)/(1-r)||0),100*r]},n.rgb.keyword=function(e){const t=r[e];if(t)return t;let i,n=1/0;for(const t of Object.keys(s)){const r=(a=s[t],((o=e)[0]-a[0])**2+(o[1]-a[1])**2+(o[2]-a[2])**2);r.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,[100*(.4124*t+.3576*i+.1805*s),100*(.2126*t+.7152*i+.0722*s),100*(.0193*t+.1192*i+.9505*s)]},n.rgb.lab=function(e){const t=n.rgb.xyz(e);let i=t[0],s=t[1],r=t[2];return i/=95.047,s/=100,r/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*s-16,500*(i-s),200*(s-r)]},n.hsl.rgb=function(e){const t=e[0]/360,i=e[1]/100,s=e[2]/100;let r,n,o;if(0===i)return o=255*s,[o,o,o];r=s<.5?s*(1+i):s+i-s*i;const a=2*s-r,c=[0,0,0];for(let e=0;e<3;e++)n=t+1/3*-(e-1),n<0&&n++,n>1&&n--,o=6*n<1?a+6*(r-a)*n:2*n<1?r:3*n<2?a+(r-a)*(2/3-n)*6:a,c[e]=255*o;return c},n.hsl.hsv=function(e){const t=e[0];let i=e[1]/100,s=e[2]/100,r=i;const n=Math.max(s,.01);return s*=2,i*=s<=1?s:2-s,r*=n<=1?n:2-n,[t,100*(0===s?2*r/(n+r):2*i/(s+i)),(s+i)/2*100]},n.hsv.rgb=function(e){const t=e[0]/60,i=e[1]/100;let s=e[2]/100;const r=Math.floor(t)%6,n=t-Math.floor(t),o=255*s*(1-i),a=255*s*(1-i*n),c=255*s*(1-i*(1-n));switch(s*=255,r){case 0:return[s,c,o];case 1:return[a,s,o];case 2:return[o,s,c];case 3:return[o,a,s];case 4:return[c,o,s];case 5:return[s,o,a]}},n.hsv.hsl=function(e){const t=e[0],i=e[1]/100,s=e[2]/100,r=Math.max(s,.01);let n,o;o=(2-i)*s;const a=(2-i)*r;return n=i*r,n/=a<=1?a:2-a,n=n||0,o/=2,[t,100*n,100*o]},n.hwb.rgb=function(e){const t=e[0]/360;let i=e[1]/100,s=e[2]/100;const r=i+s;let n;r>1&&(i/=r,s/=r);const o=Math.floor(6*t),a=1-s;n=6*t-o,0!=(1&o)&&(n=1-n);const c=i+n*(a-i);let l,p,A;switch(o){default:case 6:case 0:l=a,p=c,A=i;break;case 1:l=c,p=a,A=i;break;case 2:l=i,p=a,A=c;break;case 3:l=i,p=c,A=a;break;case 4:l=c,p=i,A=a;break;case 5:l=a,p=i,A=c}return[255*l,255*p,255*A]},n.cmyk.rgb=function(e){const t=e[0]/100,i=e[1]/100,s=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r)),255*(1-Math.min(1,s*(1-r)+r))]},n.xyz.rgb=function(e){const t=e[0]/100,i=e[1]/100,s=e[2]/100;let r,n,o;return r=3.2406*t+-1.5372*i+-.4986*s,n=-.9689*t+1.8758*i+.0415*s,o=.0557*t+-.204*i+1.057*s,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),o=Math.min(Math.max(0,o),1),[255*r,255*n,255*o]},n.xyz.lab=function(e){let t=e[0],i=e[1],s=e[2];return t/=95.047,i/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,[116*i-16,500*(t-i),200*(i-s)]},n.lab.xyz=function(e){let t,i,s;i=(e[0]+16)/116,t=e[1]/500+i,s=i-e[2]/200;const r=i**3,n=t**3,o=s**3;return i=r>.008856?r:(i-16/116)/7.787,t=n>.008856?n:(t-16/116)/7.787,s=o>.008856?o:(s-16/116)/7.787,t*=95.047,i*=100,s*=108.883,[t,i,s]},n.lab.lch=function(e){const t=e[0],i=e[1],s=e[2];let r;return r=360*Math.atan2(s,i)/2/Math.PI,r<0&&(r+=360),[t,Math.sqrt(i*i+s*s),r]},n.lch.lab=function(e){const t=e[0],i=e[1],s=e[2]/360*2*Math.PI;return[t,i*Math.cos(s),i*Math.sin(s)]},n.rgb.ansi16=function(e,t=null){const[i,s,r]=e;let o=null===t?n.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(r/255)<<2|Math.round(s/255)<<1|Math.round(i/255));return 2===o&&(a+=60),a},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){const t=e[0],i=e[1],s=e[2];return t===i&&i===s?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(s/255*5)},n.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const i=.5*(1+~~(e>50));return[(1&t)*i*255,(t>>1&1)*i*255,(t>>2&1)*i*255]},n.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){const 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){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let i=t[0];3===t[0].length&&(i=i.split("").map((e=>e+e)).join(""));const s=parseInt(i,16);return[s>>16&255,s>>8&255,255&s]},n.rgb.hcg=function(e){const t=e[0]/255,i=e[1]/255,s=e[2]/255,r=Math.max(Math.max(t,i),s),n=Math.min(Math.min(t,i),s),o=r-n;let a,c;return a=o<1?n/(1-o):0,c=o<=0?0:r===t?(i-s)/o%6:r===i?2+(s-t)/o:4+(t-i)/o,c/=6,c%=1,[360*c,100*o,100*a]},n.hsl.hcg=function(e){const t=e[1]/100,i=e[2]/100,s=i<.5?2*t*i:2*t*(1-i);let r=0;return s<1&&(r=(i-.5*s)/(1-s)),[e[0],100*s,100*r]},n.hsv.hcg=function(e){const t=e[1]/100,i=e[2]/100,s=t*i;let r=0;return s<1&&(r=(i-s)/(1-s)),[e[0],100*s,100*r]},n.hcg.rgb=function(e){const t=e[0]/360,i=e[1]/100,s=e[2]/100;if(0===i)return[255*s,255*s,255*s];const r=[0,0,0],n=t%1*6,o=n%1,a=1-o;let c=0;switch(Math.floor(n)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=a,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=a,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=a}return c=(1-i)*s,[255*(i*r[0]+c),255*(i*r[1]+c),255*(i*r[2]+c)]},n.hcg.hsv=function(e){const t=e[1]/100,i=t+e[2]/100*(1-t);let s=0;return i>0&&(s=t/i),[e[0],100*s,100*i]},n.hcg.hsl=function(e){const t=e[1]/100,i=e[2]/100*(1-t)+.5*t;let s=0;return i>0&&i<.5?s=t/(2*i):i>=.5&&i<1&&(s=t/(2*(1-i))),[e[0],100*s,100*i]},n.hcg.hwb=function(e){const t=e[1]/100,i=t+e[2]/100*(1-t);return[e[0],100*(i-t),100*(1-i)]},n.hwb.hcg=function(e){const t=e[1]/100,i=1-e[2]/100,s=i-t;let r=0;return s<1&&(r=(i-s)/(1-s)),[e[0],100*s,100*r]},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=function(e){return[0,0,e[0]]},n.gray.hsv=n.gray.hsl,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){const t=255&Math.round(e[0]/100*255),i=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(i.length)+i},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},60398:(e,t,i)=>{const s=i(38097),r=i(14657),n={};Object.keys(s).forEach((e=>{n[e]={},Object.defineProperty(n[e],"channels",{value:s[e].channels}),Object.defineProperty(n[e],"labels",{value:s[e].labels});const t=r(e);Object.keys(t).forEach((i=>{const s=t[i];n[e][i]=function(e){const t=function(...t){const i=t[0];if(null==i)return i;i.length>1&&(t=i);const s=e(t);if("object"==typeof s)for(let e=s.length,t=0;t1&&(t=i),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(s)}))})),e.exports=n},14657:(e,t,i)=>{const s=i(38097);function r(e,t){return function(i){return t(e(i))}}function n(e,t){const i=[t[e].parent,e];let n=s[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)i.unshift(t[o].parent),n=r(s[t[o].parent][o],n),o=t[o].parent;return n.conversion=i,n}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(s);for(let i=t.length,s=0;s{"use strict";e.exports={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]}},92604:(e,t,i)=>{var s={};e.exports=s,s.themes={};var r=s.styles=i(76375),n=Object.defineProperties;s.supportsColor=i(33578),void 0===s.enabled&&(s.enabled=s.supportsColor),s.stripColors=s.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},s.stylize=function(e,t){return r[t].open+e+r[t].close};var o=/[|\\{}()[\]^$+*?.]/g;function a(e){var t=function e(){return A.apply(e,arguments)};return t._styles=e,t.__proto__=p,t}var c,l=(c={},r.grey=r.gray,Object.keys(r).forEach((function(e){r[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(o,"\\$&")}(r[e].close),"g"),c[e]={get:function(){return a(this._styles.concat(e))}}})),c),p=n((function(){}),l);function A(){var e=arguments,t=e.length,i=0!==t&&String(arguments[0]);if(t>1)for(var n=1;n{e.exports=function(e,t){var i="";e=(e=e||"Run the trap, drop the bass").split("");var s={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=s[e]||[" "],r=Math.floor(Math.random()*t.length);i+=void 0!==s[e]?s[e][r]:e})),i}},16893:e=>{e.exports=function(e,t){e=e||" he is here ";var i={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},s=[].concat(i.up,i.down,i.mid);function r(e){return Math.floor(Math.random()*e)}function n(e){var t=!1;return s.filter((function(i){t=i===e})),t}return function(e,t){var s,o,a="";for(o in(t=t||{}).up=t.up||!0,t.mid=t.mid||!0,t.down=t.down||!0,t.size=t.size||"maxi",e=e.split(""))if(!n(o)){switch(a+=e[o],s={up:0,down:0,mid:0},t.size){case"mini":s.up=r(8),s.min=r(2),s.down=r(8);break;case"maxi":s.up=r(16)+3,s.min=r(4)+1,s.down=r(64)+3;break;default:s.up=r(8)+1,s.mid=r(6)/2,s.down=r(8)+1}var c=["up","mid","down"];for(var l in c)for(var p=c[l],A=0;A<=s[p];A++)t[p]&&(a+=i[p][r(i[p].length)])}return a}(e)}},70418:(e,t,i)=>{var s=i(92604);e.exports=function(e,t,i){if(" "===e)return e;switch(t%3){case 0:return s.red(e);case 1:return s.white(e);case 2:return s.blue(e)}}},22430:(e,t,i)=>{var s,r=i(92604);e.exports=(s=["red","yellow","green","blue","magenta"],function(e,t,i){return" "===e?e:r[s[t++%s.length]](e)})},35041:(e,t,i)=>{var s,r=i(92604);e.exports=(s=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"],function(e,t,i){return" "===e?e:r[s[Math.round(Math.random()*(s.length-1))]](e)})},76492:(e,t,i)=>{var s=i(92604);e.exports=function(e,t,i){return t%2==0?e:s.inverse(e)}},76375:e=>{var t={};e.exports=t;var i={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],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],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(i).forEach((function(e){var s=i[e],r=t[e]=[];r.open="["+s[0]+"m",r.close="["+s[1]+"m"}))},33578:e=>{var t=process.argv;e.exports=-1===t.indexOf("--no-color")&&-1===t.indexOf("--color=false")&&(-1!==t.indexOf("--color")||-1!==t.indexOf("--color=true")||-1!==t.indexOf("--color=always")||!(process.stdout&&!process.stdout.isTTY)&&("win32"===process.platform||"COLORTERM"in process.env||"dumb"!==process.env.TERM&&!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)))},28130:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=28130,e.exports=t},27072:(e,t,i)=>{var s=i(92604);e.exports=s},14598:(e,t,i)=>{var s=i(73837),r=i(12781).Stream,n=i(65239);function o(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=o,s.inherits(o,r),o.create=function(e){var t=new this;for(var i in e=e||{})t[i]=e[i];return t},o.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},o.prototype.append=function(e){if(o.isStreamLike(e)){if(!(e instanceof n)){var t=n.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},o.prototype.pipe=function(e,t){return r.prototype.pipe.call(this,e,t),this.resume(),e},o.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},o.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){o.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},o.prototype._pipeNext=function(e){if(this._currentStream=e,o.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},o.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))},o.prototype.write=function(e){this.emit("data",e)},o.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},o.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},o.prototype.end=function(){this._reset(),this.emit("end")},o.prototype.destroy=function(){this._reset(),this.emit("close")},o.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},o.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},o.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){t.dataSize&&(e.dataSize+=t.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},o.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},95146:(e,t,i)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const i="color: "+this.color;t.splice(1,0,i,"color: inherit");let s=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(r=s))})),t.splice(r,0,i)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),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.log=console.debug||console.log||(()=>{}),e.exports=i(17498)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},17498:(e,t,i)=>{e.exports=function(e){function t(e){let i,r,n,o=null;function a(...e){if(!a.enabled)return;const s=a,r=Number(new Date),n=r-(i||r);s.diff=n,s.prev=i,s.curr=r,i=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((i,r)=>{if("%%"===i)return"%";o++;const n=t.formatters[r];if("function"==typeof n){const t=e[o];i=n.call(s,t),e.splice(o,1),o--}return i})),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=s,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(r!==t.namespaces&&(r=t.namespaces,n=t.enabled(e)),n),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function s(e,i){const s=t(this.namespace+(void 0===i?":":i)+e);return s.log=this.log,s}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let i;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),r=s.length;for(i=0;i{t[i]=e[i]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let i=0;for(let t=0;t{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=i(95146):e.exports=i(46072)},46072:(e,t,i)=>{const s=i(76224),r=i(73837);t.init=function(e){e.inspectOpts={};const i=Object.keys(t.inspectOpts);for(let s=0;s{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=i(56778);e&&(e.stderr||e).level>=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){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const i=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];return s=!!/^(yes|on|true|enabled)$/i.test(s)||!/^(no|off|false|disabled)$/i.test(s)&&("null"===s?null:Number(s)),e[i]=s,e}),{}),e.exports=i(17498)(t);const{formatters:n}=e.exports;n.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},n.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}},70596:(e,t,i)=>{var s=i(54256);e.exports=function(e,t){return e=e||{},Object.keys(t).forEach((function(i){void 0===e[i]&&(e[i]=s(t[i]))})),e}},65239:(e,t,i)=>{var s=i(12781).Stream,r=i(73837);function n(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=n,r.inherits(n,s),n.create=function(e,t){var i=new this;for(var s in t=t||{})i[s]=t[s];i.source=e;var r=e.emit;return e.emit=function(){return i._handleEmit(arguments),r.apply(e,arguments)},e.on("error",(function(){})),i.pauseStream&&e.pause(),i},Object.defineProperty(n.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),n.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},n.prototype.resume=function(){this._released||this.release(),this.source.resume()},n.prototype.pause=function(){this.source.pause()},n.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},n.prototype.pipe=function(){var e=s.prototype.pipe.apply(this,arguments);return this.resume(),e},n.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},n.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},57751:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Deprecation:()=>s});class s extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}},90772:(e,t,i)=>{const s=i(57147),r=i(71017),n=i(22037);function o(e){console.log(`[dotenv][DEBUG] ${e}`)}const a=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,c=/\\n/g,l=/\r\n|\n|\r/;function p(e,t){const i=Boolean(t&&t.debug),s={};return e.toString().split(l).forEach((function(e,t){const r=e.match(a);if(null!=r){const e=r[1];let t=r[2]||"";const i=t.length-1,n='"'===t[0]&&'"'===t[i];"'"===t[0]&&"'"===t[i]||n?(t=t.substring(1,i),n&&(t=t.replace(c,"\n"))):t=t.trim(),s[e]=t}else i&&o(`did not match key and value when parsing line ${t+1}: ${e}`)})),s}e.exports.config=function(e){let t=r.resolve(process.cwd(),".env"),i="utf8",a=!1;var c;e&&(null!=e.path&&(t="~"===(c=e.path)[0]?r.join(n.homedir(),c.slice(1)):c),null!=e.encoding&&(i=e.encoding),null!=e.debug&&(a=!0));try{const e=p(s.readFileSync(t,{encoding:i}),{debug:a});return Object.keys(e).forEach((function(t){Object.prototype.hasOwnProperty.call(process.env,t)?a&&o(`"${t}" is already defined in \`process.env\` and will not be overwritten`):process.env[t]=e[t]})),{parsed:e}}catch(e){return{error:e}}},e.exports.parse=p},87491:function(e){var t;t=function(){return function(e){var t={};function i(s){if(t[s])return t[s].exports;var r=t[s]={exports:{},id:s,loaded:!1};return e[s].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}return i.m=e,i.c=t,i.p="",i(0)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),r=i(3),n=i(8),o=i(15);function a(e,t,i){var o=null,a=function(e,t){i&&i(e,t),o&&o.visit(e,t)},c="function"==typeof i?a:null,l=!1;if(t){l="boolean"==typeof t.comment&&t.comment;var p="boolean"==typeof t.attachComment&&t.attachComment;(l||p)&&((o=new s.CommentHandler).attach=p,t.comment=!0,c=a)}var A,u=!1;t&&"string"==typeof t.sourceType&&(u="module"===t.sourceType),A=t&&"boolean"==typeof t.jsx&&t.jsx?new r.JSXParser(e,t,c):new n.Parser(e,t,c);var d=u?A.parseModule():A.parseScript();return l&&o&&(d.comments=o.comments),A.config.tokens&&(d.tokens=A.tokens),A.config.tolerant&&(d.errors=A.errorHandler.errors),d}t.parse=a,t.parseModule=function(e,t,i){var s=t||{};return s.sourceType="module",a(e,s,i)},t.parseScript=function(e,t,i){var s=t||{};return s.sourceType="script",a(e,s,i)},t.tokenize=function(e,t,i){var s,r=new o.Tokenizer(e,t);s=[];try{for(;;){var n=r.getNextToken();if(!n)break;i&&(n=i(n)),s.push(n)}}catch(e){r.errorHandler.tolerate(e)}return r.errorHandler.tolerant&&(s.errors=r.errors()),s};var c=i(2);t.Syntax=c.Syntax,t.version="4.0.1"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),r=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===s.Syntax.BlockStatement&&0===e.body.length){for(var i=[],r=this.leading.length-1;r>=0;--r){var n=this.leading[r];t.end.offset>=n.start&&(i.unshift(n.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}i.length&&(e.innerComments=i)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var i=this.trailing.length-1;i>=0;--i){var s=this.trailing[i];s.start>=e.end.offset&&t.unshift(s.comment)}return this.trailing.length=0,t}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var n=r.node.trailingComments[0];n&&n.range[0]>=e.end.offset&&(t=r.node.trailingComments,delete r.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,i=[];this.stack.length>0&&(n=this.stack[this.stack.length-1])&&n.start>=e.start.offset;)t=n.node,this.stack.pop();if(t){for(var s=(t.leadingComments?t.leadingComments.length:0)-1;s>=0;--s){var r=t.leadingComments[s];r.range[1]<=e.start.offset&&(i.unshift(r),t.leadingComments.splice(s,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,i}for(s=this.leading.length-1;s>=0;--s){var n;(n=this.leading[s]).start<=e.start.offset&&(i.unshift(n.comment),this.leading.splice(s,1))}return i},e.prototype.visitNode=function(e,t){if(!(e.type===s.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var i=this.findTrailingComments(t),r=this.findLeadingComments(t);r.length>0&&(e.leadingComments=r),i.length>0&&(e.trailingComments=i),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var i="L"===e.type[0]?"Line":"Block",s={type:i,value:e.value};if(e.range&&(s.range=e.range),e.loc&&(s.loc=e.loc),this.comments.push(s),this.attach){var r={comment:{type:i,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(r.comment.loc=e.loc),e.type=i,this.leading.push(r),this.trailing.push(r)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,i){"use strict";var s,r=this&&this.__extends||(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),o=i(5),a=i(6),c=i(7),l=i(8),p=i(13),A=i(14);function u(e){var t;switch(e.type){case a.JSXSyntax.JSXIdentifier:t=e.name;break;case a.JSXSyntax.JSXNamespacedName:var i=e;t=u(i.namespace)+":"+u(i.name);break;case a.JSXSyntax.JSXMemberExpression:var s=e;t=u(s.object)+"."+u(s.property)}return t}p.TokenName[100]="JSXIdentifier",p.TokenName[101]="JSXText";var d=function(e){function t(t,i,s){return e.call(this,t,i,s)||this}return r(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",i=!0,s=!1,r=!1,o=!1;!this.scanner.eof()&&i&&!s;){var a=this.scanner.source[this.scanner.index];if(a===e)break;if(s=";"===a,t+=a,++this.scanner.index,!s)switch(t.length){case 2:r="#"===a;break;case 3:r&&(i=(o="x"===a)||n.Character.isDecimalDigit(a.charCodeAt(0)),r=r&&!o);break;default:i=(i=i&&!(r&&!n.Character.isDecimalDigit(a.charCodeAt(0))))&&!(o&&!n.Character.isHexDigit(a.charCodeAt(0)))}}if(i&&s&&t.length>2){var c=t.substr(1,t.length-2);r&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):o&&c.length>2?t=String.fromCharCode(parseInt("0"+c.substr(1),16)):r||o||!A.XHTMLEntities[c]||(t=A.XHTMLEntities[c])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:a=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,i=this.scanner.source[this.scanner.index++],s="";!this.scanner.eof()&&(c=this.scanner.source[this.scanner.index++])!==i;)s+="&"===c?this.scanXHTMLEntity(i):c;return{type:8,value:s,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var r=this.scanner.source.charCodeAt(this.scanner.index+1),o=this.scanner.source.charCodeAt(this.scanner.index+2),a=46===r&&46===o?"...":".";return t=this.scanner.index,this.scanner.index+=a.length,{type:7,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(n.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var c=this.scanner.source.charCodeAt(this.scanner.index);if(n.Character.isIdentifierPart(c)&&92!==c)++this.scanner.index;else{if(45!==c)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var i=this.scanner.source[this.scanner.index];if("{"===i||"<"===i)break;++this.scanner.index,t+=i,n.Character.isLineTerminator(i.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===i&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var s={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(s)),s},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new o.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var i=t;this.expectJSX(":");var s=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXNamespacedName(i,s))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=t;this.expectJSX(".");var n=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXMemberExpression(r,n))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),i=this.parseJSXIdentifier();if(this.matchJSX(":")){var s=i;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new o.JSXNamespacedName(s,r))}else e=i;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var i=this.getTokenRaw(t);return this.finalize(e,new c.Literal(t.value,i))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new o.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),i=null;return this.matchJSX("=")&&(this.expectJSX("="),i=this.parseJSXAttributeValue()),this.finalize(e,new o.JSXAttribute(t,i))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new o.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),i=this.parseJSXAttributes(),s=this.matchJSX("/");return s&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new o.JSXOpeningElement(t,s,i))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new o.JSXClosingElement(t))}var i=this.parseJSXElementName(),s=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new o.JSXOpeningElement(i,r,s))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new o.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new o.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),i=this.nextJSXText();if(i.start0))break;n=this.finalize(e.node,new o.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(n),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),i=[],s=null;if(!t.selfClosing){var r=this.parseComplexJSXElement({node:e,opening:t,closing:s,children:i});i=r.children,s=r.closing}return this.finalize(e,new o.JSXElement(t,i,s))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(l.Parser);t.JSXParser=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&i.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&i.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(6);t.JSXClosingElement=function(e){this.type=s.JSXSyntax.JSXClosingElement,this.name=e};t.JSXElement=function(e,t,i){this.type=s.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=i};t.JSXEmptyExpression=function(){this.type=s.JSXSyntax.JSXEmptyExpression};t.JSXExpressionContainer=function(e){this.type=s.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXIdentifier=function(e){this.type=s.JSXSyntax.JSXIdentifier,this.name=e};t.JSXMemberExpression=function(e,t){this.type=s.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXAttribute=function(e,t){this.type=s.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXNamespacedName=function(e,t){this.type=s.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXOpeningElement=function(e,t,i){this.type=s.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=i};t.JSXSpreadAttribute=function(e){this.type=s.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXText=function(e,t){this.type=s.JSXSyntax.JSXText,this.value=e,this.raw=t}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(2);t.ArrayExpression=function(e){this.type=s.Syntax.ArrayExpression,this.elements=e};t.ArrayPattern=function(e){this.type=s.Syntax.ArrayPattern,this.elements=e};t.ArrowFunctionExpression=function(e,t,i){this.type=s.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=i,this.async=!1};t.AssignmentExpression=function(e,t,i){this.type=s.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=i};t.AssignmentPattern=function(e,t){this.type=s.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AsyncArrowFunctionExpression=function(e,t,i){this.type=s.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=i,this.async=!0};t.AsyncFunctionDeclaration=function(e,t,i){this.type=s.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=i,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=function(e,t,i){this.type=s.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=i,this.generator=!1,this.expression=!1,this.async=!0};t.AwaitExpression=function(e){this.type=s.Syntax.AwaitExpression,this.argument=e};t.BinaryExpression=function(e,t,i){var r="||"===e||"&&"===e;this.type=r?s.Syntax.LogicalExpression:s.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=i};t.BlockStatement=function(e){this.type=s.Syntax.BlockStatement,this.body=e};t.BreakStatement=function(e){this.type=s.Syntax.BreakStatement,this.label=e};t.CallExpression=function(e,t){this.type=s.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CatchClause=function(e,t){this.type=s.Syntax.CatchClause,this.param=e,this.body=t};t.ClassBody=function(e){this.type=s.Syntax.ClassBody,this.body=e};t.ClassDeclaration=function(e,t,i){this.type=s.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=i};t.ClassExpression=function(e,t,i){this.type=s.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=i};t.ComputedMemberExpression=function(e,t){this.type=s.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ConditionalExpression=function(e,t,i){this.type=s.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=i};t.ContinueStatement=function(e){this.type=s.Syntax.ContinueStatement,this.label=e};t.DebuggerStatement=function(){this.type=s.Syntax.DebuggerStatement};t.Directive=function(e,t){this.type=s.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.DoWhileStatement=function(e,t){this.type=s.Syntax.DoWhileStatement,this.body=e,this.test=t};t.EmptyStatement=function(){this.type=s.Syntax.EmptyStatement};t.ExportAllDeclaration=function(e){this.type=s.Syntax.ExportAllDeclaration,this.source=e};t.ExportDefaultDeclaration=function(e){this.type=s.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportNamedDeclaration=function(e,t,i){this.type=s.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=i};t.ExportSpecifier=function(e,t){this.type=s.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExpressionStatement=function(e){this.type=s.Syntax.ExpressionStatement,this.expression=e};t.ForInStatement=function(e,t,i){this.type=s.Syntax.ForInStatement,this.left=e,this.right=t,this.body=i,this.each=!1};t.ForOfStatement=function(e,t,i){this.type=s.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=i};t.ForStatement=function(e,t,i,r){this.type=s.Syntax.ForStatement,this.init=e,this.test=t,this.update=i,this.body=r};t.FunctionDeclaration=function(e,t,i,r){this.type=s.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=i,this.generator=r,this.expression=!1,this.async=!1};t.FunctionExpression=function(e,t,i,r){this.type=s.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=i,this.generator=r,this.expression=!1,this.async=!1};t.Identifier=function(e){this.type=s.Syntax.Identifier,this.name=e};t.IfStatement=function(e,t,i){this.type=s.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=i};t.ImportDeclaration=function(e,t){this.type=s.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDefaultSpecifier=function(e){this.type=s.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportNamespaceSpecifier=function(e){this.type=s.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportSpecifier=function(e,t){this.type=s.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.LabeledStatement=function(e,t){this.type=s.Syntax.LabeledStatement,this.label=e,this.body=t};t.Literal=function(e,t){this.type=s.Syntax.Literal,this.value=e,this.raw=t};t.MetaProperty=function(e,t){this.type=s.Syntax.MetaProperty,this.meta=e,this.property=t};t.MethodDefinition=function(e,t,i,r,n){this.type=s.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=i,this.kind=r,this.static=n};t.Module=function(e){this.type=s.Syntax.Program,this.body=e,this.sourceType="module"};t.NewExpression=function(e,t){this.type=s.Syntax.NewExpression,this.callee=e,this.arguments=t};t.ObjectExpression=function(e){this.type=s.Syntax.ObjectExpression,this.properties=e};t.ObjectPattern=function(e){this.type=s.Syntax.ObjectPattern,this.properties=e};t.Property=function(e,t,i,r,n,o){this.type=s.Syntax.Property,this.key=t,this.computed=i,this.value=r,this.kind=e,this.method=n,this.shorthand=o};t.RegexLiteral=function(e,t,i,r){this.type=s.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:i,flags:r}};t.RestElement=function(e){this.type=s.Syntax.RestElement,this.argument=e};t.ReturnStatement=function(e){this.type=s.Syntax.ReturnStatement,this.argument=e};t.Script=function(e){this.type=s.Syntax.Program,this.body=e,this.sourceType="script"};t.SequenceExpression=function(e){this.type=s.Syntax.SequenceExpression,this.expressions=e};t.SpreadElement=function(e){this.type=s.Syntax.SpreadElement,this.argument=e};t.StaticMemberExpression=function(e,t){this.type=s.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.Super=function(){this.type=s.Syntax.Super};t.SwitchCase=function(e,t){this.type=s.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchStatement=function(e,t){this.type=s.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.TaggedTemplateExpression=function(e,t){this.type=s.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TemplateElement=function(e,t){this.type=s.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateLiteral=function(e,t){this.type=s.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.ThisExpression=function(){this.type=s.Syntax.ThisExpression};t.ThrowStatement=function(e){this.type=s.Syntax.ThrowStatement,this.argument=e};t.TryStatement=function(e,t,i){this.type=s.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=i};t.UnaryExpression=function(e,t){this.type=s.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UpdateExpression=function(e,t,i){this.type=s.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=i};t.VariableDeclaration=function(e,t){this.type=s.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclarator=function(e,t){this.type=s.Syntax.VariableDeclarator,this.id=e,this.init=t};t.WhileStatement=function(e,t){this.type=s.Syntax.WhileStatement,this.test=e,this.body=t};t.WithStatement=function(e,t){this.type=s.Syntax.WithStatement,this.object=e,this.body=t};t.YieldExpression=function(e,t){this.type=s.Syntax.YieldExpression,this.argument=e,this.delegate=t}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(9),r=i(10),n=i(11),o=i(7),a=i(12),c=i(2),l=i(13),p="ArrowParameterPlaceHolder",A=function(){function e(e,t,i){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=i,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],i=1;i0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,i=this.context.isAssignmentTarget,s=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=i,this.context.firstCoverInitializedNameError=s,r},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,i=this.context.isAssignmentTarget,s=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&i,this.context.firstCoverInitializedNameError=s||this.context.firstCoverInitializedNameError,r},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,i,s=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(s,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,n.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),i=this.getTokenRaw(t),e=this.finalize(s,new o.Literal(t.value,i));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),i=this.getTokenRaw(t),e=this.finalize(s,new o.Literal("true"===t.value,i));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),i=this.getTokenRaw(t),e=this.finalize(s,new o.Literal(null,i));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),i=this.getTokenRaw(t),e=this.finalize(s,new o.RegexLiteral(t.regex,i,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(s,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(s,new o.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new o.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var i=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(i)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new o.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,i=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var s=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=i,s},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var i=this.parseFormalParameters(),s=this.parsePropertyMethod(i);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,i.params,s,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,i=this.context.await;this.context.allowYield=!1,this.context.await=!0;var s=this.parseFormalParameters(),r=this.parsePropertyMethod(s);return this.context.allowYield=t,this.context.await=i,this.finalize(e,new o.AsyncFunctionExpression(null,s.params,r))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),i=this.nextToken();switch(i.type){case 8:case 6:this.context.strict&&i.octal&&this.tolerateUnexpectedToken(i,n.Messages.StrictOctalLiteral);var s=this.getTokenRaw(i);e=this.finalize(t,new o.Literal(i.value,s));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new o.Identifier(i.value));break;case 7:"["===i.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(i);break;default:e=this.throwUnexpectedToken(i)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===c.Syntax.Identifier&&e.name===t||e.type===c.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,i=this.createNode(),s=this.lookahead,r=null,a=null,c=!1,l=!1,p=!1,A=!1;if(3===s.type){var u=s.value;this.nextToken(),c=this.match("["),r=(A=!(this.hasLineTerminator||"async"!==u||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(i,new o.Identifier(u))}else this.match("*")?this.nextToken():(c=this.match("["),r=this.parseObjectPropertyKey());var d=this.qualifiedPropertyName(this.lookahead);if(3===s.type&&!A&&"get"===s.value&&d)t="get",c=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod();else if(3===s.type&&!A&&"set"===s.value&&d)t="set",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseSetterMethod();else if(7===s.type&&"*"===s.value&&d)t="init",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),l=!0;else if(r||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!A)!c&&this.isPropertyKey(r,"__proto__")&&(e.value&&this.tolerateError(n.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),a=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))a=A?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0;else if(3===s.type)if(u=this.finalize(i,new o.Identifier(s.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),p=!0;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);a=this.finalize(i,new o.AssignmentPattern(u,h))}else p=!0,a=u;else this.throwUnexpectedToken(this.nextToken());return this.finalize(i,new o.Property(t,r,c,a,l,p))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],i={value:!1};!this.match("}");)t.push(this.parseObjectProperty(i)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new o.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){s.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),i=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:i,cooked:r},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),i=t.value,s=t.cooked;return this.finalize(e,new o.TemplateElement({raw:i,cooked:s},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],i=[],s=this.parseTemplateHead();for(i.push(s);!s.tail;)t.push(this.parseExpression()),s=this.parseTemplateElement(),i.push(s);return this.finalize(e,new o.TemplateLiteral(i,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case c.Syntax.Identifier:case c.Syntax.MemberExpression:case c.Syntax.RestElement:case c.Syntax.AssignmentPattern:break;case c.Syntax.SpreadElement:e.type=c.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case c.Syntax.ArrayExpression:e.type=c.Syntax.ArrayPattern;for(var t=0;t")||this.expect("=>"),e={type:p,params:[],async:!1};else{var t=this.lookahead,i=[];if(this.match("..."))e=this.parseRestElement(i),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:p,params:[e],async:!1};else{var s=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var n=0;n")||this.expect("=>"),this.context.isBindingElement=!1,n=0;n")&&(e.type===c.Syntax.Identifier&&"yield"===e.name&&(s=!0,e={type:p,params:[e],async:!1}),!s)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===c.Syntax.SequenceExpression)for(n=0;n")){for(var c=0;c0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[e,this.lookahead],n=t,a=this.isolateCoverGrammar(this.parseExponentiationExpression),c=[n,i.value,a],l=[s];!((s=this.binaryPrecedence(this.lookahead))<=0);){for(;c.length>2&&s<=l[l.length-1];){a=c.pop();var p=c.pop();l.pop(),n=c.pop(),r.pop();var A=this.startNode(r[r.length-1]);c.push(this.finalize(A,new o.BinaryExpression(p,n,a)))}c.push(this.nextToken().value),l.push(s),r.push(this.lookahead),c.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var u=c.length-1;t=c[u];for(var d=r.pop();u>1;){var h=r.pop(),m=d&&d.lineStart;A=this.startNode(h,m),p=c[u-1],t=this.finalize(A,new o.BinaryExpression(p,c[u-2],t)),u-=2,d=h}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var i=this.context.allowIn;this.context.allowIn=!0;var s=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=i,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.ConditionalExpression(t,s,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case c.Syntax.Identifier:this.validateParam(e,t,t.name);break;case c.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case c.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case c.Syntax.ArrayPattern:for(var i=0;i")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e.async,a=this.reinterpretAsCoverFormalsList(e);if(a){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var l=this.context.strict,A=this.context.allowStrictDirective;this.context.allowStrictDirective=a.simple;var u=this.context.allowYield,d=this.context.await;this.context.allowYield=!0,this.context.await=r;var h=this.startNode(t);this.expect("=>");var m=void 0;if(this.match("{")){var g=this.context.allowIn;this.context.allowIn=!0,m=this.parseFunctionSourceElements(),this.context.allowIn=g}else m=this.isolateCoverGrammar(this.parseAssignmentExpression);var f=m.type!==c.Syntax.BlockStatement;this.context.strict&&a.firstRestricted&&this.throwUnexpectedToken(a.firstRestricted,a.message),this.context.strict&&a.stricted&&this.tolerateUnexpectedToken(a.stricted,a.message),e=r?this.finalize(h,new o.AsyncArrowFunctionExpression(a.params,m,f)):this.finalize(h,new o.ArrowFunctionExpression(a.params,m,f)),this.context.strict=l,this.context.allowStrictDirective=A,this.context.allowYield=u,this.context.await=d}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(n.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===c.Syntax.Identifier){var E=e;this.scanner.isRestrictedWord(E.name)&&this.tolerateUnexpectedToken(i,n.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(E.name)&&this.tolerateUnexpectedToken(i,n.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var C=(i=this.nextToken()).value,y=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.AssignmentExpression(C,e,y)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var i=[];for(i.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),i.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new o.SequenceExpression(i))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,n.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,n.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new o.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var i=this.createNode(),s=this.parsePattern([],e);this.context.strict&&s.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(s.name)&&this.tolerateError(n.Messages.StrictVarName);var r=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(n.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&s.type!==c.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(i,new o.VariableDeclarator(s,r))},e.prototype.parseBindingList=function(e,t){for(var i=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),i.push(this.parseLexicalBinding(e,t));return i},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),i=this.nextToken().value;s.assert("let"===i||"const"===i,"Lexical declaration must be either let or const");var r=this.parseBindingList(i,e);return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(r,i))},e.prototype.parseBindingRestElement=function(e,t){var i=this.createNode();this.expect("...");var s=this.parsePattern(e,t);return this.finalize(i,new o.RestElement(s))},e.prototype.parseArrayPattern=function(e,t){var i=this.createNode();this.expect("[");for(var s=[];!this.match("]");)if(this.match(","))this.nextToken(),s.push(null);else{if(this.match("...")){s.push(this.parseBindingRestElement(e,t));break}s.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(i,new o.ArrayPattern(s))},e.prototype.parsePropertyPattern=function(e,t){var i,s,r=this.createNode(),n=!1,a=!1;if(3===this.lookahead.type){var c=this.lookahead;i=this.parseVariableIdentifier();var l=this.finalize(r,new o.Identifier(c.value));if(this.match("=")){e.push(c),a=!0,this.nextToken();var p=this.parseAssignmentExpression();s=this.finalize(this.startNode(c),new o.AssignmentPattern(l,p))}else this.match(":")?(this.expect(":"),s=this.parsePatternWithDefault(e,t)):(e.push(c),a=!0,s=l)}else n=this.match("["),i=this.parseObjectPropertyKey(),this.expect(":"),s=this.parsePatternWithDefault(e,t);return this.finalize(r,new o.Property("init",i,n,s,!1,a))},e.prototype.parseObjectPattern=function(e,t){var i=this.createNode(),s=[];for(this.expect("{");!this.match("}");)s.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(i,new o.ObjectPattern(s))},e.prototype.parsePattern=function(e,t){var i;return this.match("[")?i=this.parseArrayPattern(e,t):this.match("{")?i=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,n.Messages.LetInLexicalBinding),e.push(this.lookahead),i=this.parseVariableIdentifier(t)),i},e.prototype.parsePatternWithDefault=function(e,t){var i=this.lookahead,s=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var n=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,s=this.finalize(this.startNode(i),new o.AssignmentPattern(s,n))}return s},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),i=this.nextToken();return 4===i.type&&"yield"===i.value?this.context.strict?this.tolerateUnexpectedToken(i,n.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(i):3!==i.type?this.context.strict&&4===i.type&&this.scanner.isStrictModeReservedWord(i.value)?this.tolerateUnexpectedToken(i,n.Messages.StrictReservedWord):(this.context.strict||"let"!==i.value||"var"!==e)&&this.throwUnexpectedToken(i):(this.context.isModule||this.context.await)&&3===i.type&&"await"===i.value&&this.tolerateUnexpectedToken(i),this.finalize(t,new o.Identifier(i.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),i=this.parsePattern([],"var");this.context.strict&&i.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(n.Messages.StrictVarName);var s=null;return this.match("=")?(this.nextToken(),s=this.isolateCoverGrammar(this.parseAssignmentExpression)):i.type===c.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new o.VariableDeclarator(i,s))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},i=[];for(i.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),i.push(this.parseVariableDeclaration(t));return i},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new o.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(n.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),i=null;this.expectKeyword("if"),this.expect("(");var s=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),i=this.parseIfClause())),this.finalize(t,new o.IfStatement(s,e,i))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var i=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var s=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new o.DoWhileStatement(i,s))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var i=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var s=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=s}return this.finalize(t,new o.WhileStatement(i,e))},e.prototype.parseForStatement=function(){var e,t,i,s=null,r=null,a=null,l=!0,p=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){s=this.createNode(),this.nextToken();var A=this.context.allowIn;this.context.allowIn=!1;var u=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=A,1===u.length&&this.matchKeyword("in")){var d=u[0];d.init&&(d.id.type===c.Syntax.ArrayPattern||d.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(n.Messages.ForInOfLoopInitializer,"for-in"),s=this.finalize(s,new o.VariableDeclaration(u,"var")),this.nextToken(),e=s,t=this.parseExpression(),s=null}else 1===u.length&&null===u[0].init&&this.matchContextualKeyword("of")?(s=this.finalize(s,new o.VariableDeclaration(u,"var")),this.nextToken(),e=s,t=this.parseAssignmentExpression(),s=null,l=!1):(s=this.finalize(s,new o.VariableDeclaration(u,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){s=this.createNode();var h=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(A=this.context.allowIn,this.context.allowIn=!1,u=this.parseBindingList(h,{inFor:!0}),this.context.allowIn=A,1===u.length&&null===u[0].init&&this.matchKeyword("in")?(s=this.finalize(s,new o.VariableDeclaration(u,h)),this.nextToken(),e=s,t=this.parseExpression(),s=null):1===u.length&&null===u[0].init&&this.matchContextualKeyword("of")?(s=this.finalize(s,new o.VariableDeclaration(u,h)),this.nextToken(),e=s,t=this.parseAssignmentExpression(),s=null,l=!1):(this.consumeSemicolon(),s=this.finalize(s,new o.VariableDeclaration(u,h)))):(s=this.finalize(s,new o.Identifier(h)),this.nextToken(),e=s,t=this.parseExpression(),s=null)}else{var m=this.lookahead;if(A=this.context.allowIn,this.context.allowIn=!1,s=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=A,this.matchKeyword("in"))this.context.isAssignmentTarget&&s.type!==c.Syntax.AssignmentExpression||this.tolerateError(n.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(s),e=s,t=this.parseExpression(),s=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&s.type!==c.Syntax.AssignmentExpression||this.tolerateError(n.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(s),e=s,t=this.parseAssignmentExpression(),s=null,l=!1;else{if(this.match(",")){for(var g=[s];this.match(",");)this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));s=this.finalize(this.startNode(m),new o.SequenceExpression(g))}this.expect(";")}}if(void 0===e&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(a=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),i=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var f=this.context.inIteration;this.context.inIteration=!0,i=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=f}return void 0===e?this.finalize(p,new o.ForStatement(s,r,a,i)):l?this.finalize(p,new o.ForInStatement(e,t,i)):this.finalize(p,new o.ForOfStatement(e,t,i))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var i=this.parseVariableIdentifier();t=i;var s="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,s)||this.throwError(n.Messages.UnknownLabel,i.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(n.Messages.IllegalContinue),this.finalize(e,new o.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var i=this.parseVariableIdentifier(),s="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,s)||this.throwError(n.Messages.UnknownLabel,i.name),t=i}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(n.Messages.IllegalBreak),this.finalize(e,new o.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(n.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(n.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new o.WithStatement(i,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var i=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)i.push(this.parseStatementListItem());return this.finalize(t,new o.SwitchCase(e,i))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var i=this.context.inSwitch;this.context.inSwitch=!0;var s=[],r=!1;for(this.expect("{");!this.match("}");){var a=this.parseSwitchCase();null===a.test&&(r&&this.throwError(n.Messages.MultipleDefaultsInSwitch),r=!0),s.push(a)}return this.expect("}"),this.context.inSwitch=i,this.finalize(e,new o.SwitchStatement(t,s))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),i=this.parseExpression();if(i.type===c.Syntax.Identifier&&this.match(":")){this.nextToken();var s=i,r="$"+s.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(n.Messages.Redeclaration,"Label",s.name),this.context.labelSet[r]=!0;var a=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),a=this.parseClassDeclaration();else if(this.matchKeyword("function")){var l=this.lookahead,p=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(l,n.Messages.StrictFunction):p.generator&&this.tolerateUnexpectedToken(l,n.Messages.GeneratorInLegacyContext),a=p}else a=this.parseStatement();delete this.context.labelSet[r],e=new o.LabeledStatement(s,a)}else this.consumeSemicolon(),e=new o.ExpressionStatement(i);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(n.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],i=this.parsePattern(t),s={},r=0;r0&&this.tolerateError(n.Messages.BadGetterArity);var s=this.parsePropertyMethod(i);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,i.params,s,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var i=this.parseFormalParameters();1!==i.params.length?this.tolerateError(n.Messages.BadSetterArity):i.params[0]instanceof o.RestElement&&this.tolerateError(n.Messages.BadSetterRestParameter);var s=this.parsePropertyMethod(i);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,i.params,s,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var i=this.parseFormalParameters();this.context.allowYield=!1;var s=this.parsePropertyMethod(i);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,i.params,s,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,i=!1;if(!this.hasLineTerminator){var s=this.context.allowYield;this.context.allowYield=!1,(i=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=s}return this.finalize(e,new o.YieldExpression(t,i))},e.prototype.parseClassElement=function(e){var t=this.lookahead,i=this.createNode(),s="",r=null,a=null,c=!1,l=!1,p=!1,A=!1;if(this.match("*"))this.nextToken();else if(c=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,p=!0,c=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var u=this.lookahead.value;":"!==u&&"("!==u&&"*"!==u&&(A=!0,t=this.lookahead,r=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,n.Messages.ConstructorIsAsync))}var d=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&d?(s="get",c=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod()):"set"===t.value&&d&&(s="set",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseSetterMethod()):7===t.type&&"*"===t.value&&d&&(s="init",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),l=!0),!s&&r&&this.match("(")&&(s="init",a=A?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0),s||this.throwUnexpectedToken(this.lookahead),"init"===s&&(s="method"),c||(p&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(t,n.Messages.StaticPrototype),!p&&this.isPropertyKey(r,"constructor")&&(("method"!==s||!l||a&&a.generator)&&this.throwUnexpectedToken(t,n.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,n.Messages.DuplicateConstructor):e.value=!0,s="constructor")),this.finalize(i,new o.MethodDefinition(r,c,a,s,p))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new o.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),i=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var s=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var n=this.parseClassBody();return this.context.strict=i,this.finalize(t,new o.ClassDeclaration(s,r,n))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var i=3===this.lookahead.type?this.parseVariableIdentifier():null,s=null;this.matchKeyword("extends")&&(this.nextToken(),s=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=t,this.finalize(e,new o.ClassExpression(i,s,r))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(n.Messages.InvalidModuleSpecifier);var t=this.nextToken(),i=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,i))},e.prototype.parseImportSpecifier=function(){var e,t,i=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(i,new o.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new o.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(n.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new o.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(n.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var i=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?i=i.concat(this.parseNamedImports()):this.match("*")?i.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(i.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?i.push(this.parseImportNamespaceSpecifier()):this.match("{")?i=i.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var s=this.lookahead.value?n.Messages.UnexpectedToken:n.Messages.MissingFromClause;this.throwError(s,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new o.ImportDeclaration(i,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),i=t;return this.matchContextualKeyword("as")&&(this.nextToken(),i=this.parseIdentifierName()),this.finalize(e,new o.ExportSpecifier(t,i))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(n.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var i=this.parseFunctionDeclaration(!0);e=this.finalize(t,new o.ExportDefaultDeclaration(i))}else this.matchKeyword("class")?(i=this.parseClassDeclaration(!0),e=this.finalize(t,new o.ExportDefaultDeclaration(i))):this.matchContextualKeyword("async")?(i=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new o.ExportDefaultDeclaration(i))):(this.matchContextualKeyword("from")&&this.throwError(n.Messages.UnexpectedToken,this.lookahead.value),i=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new o.ExportDefaultDeclaration(i)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var s=this.lookahead.value?n.Messages.UnexpectedToken:n.Messages.MissingFromClause;this.throwError(s,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new o.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(i=void 0,this.lookahead.value){case"let":case"const":i=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":i=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new o.ExportNamedDeclaration(i,[],null))}else if(this.matchAsyncFunction())i=this.parseFunctionDeclaration(),e=this.finalize(t,new o.ExportNamedDeclaration(i,[],null));else{var a=[],c=null,l=!1;for(this.expect("{");!this.match("}");)l=l||this.matchKeyword("default"),a.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),c=this.parseModuleSpecifier(),this.consumeSemicolon()):l?(s=this.lookahead.value?n.Messages.UnexpectedToken:n.Messages.MissingFromClause,this.throwError(s,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new o.ExportNamedDeclaration(null,a,c))}return e},e}();t.Parser=A},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var i=new Error(e);try{throw i}catch(e){Object.create&&Object.defineProperty&&(i=Object.create(e),Object.defineProperty(i,"column",{value:t}))}return i},e.prototype.createError=function(e,t,i,s){var r="Line "+t+": "+s,n=this.constructError(r,i);return n.index=e,n.lineNumber=t,n.description=s,n},e.prototype.throwError=function(e,t,i,s){throw this.createError(e,t,i,s)},e.prototype.tolerateError=function(e,t,i,s){var r=this.createError(e,t,i,s);if(!this.tolerant)throw r;this.recordError(r)},e}();t.ErrorHandler=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(9),r=i(4),n=i(11);function o(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function a(e){return"01234567".indexOf(e)}var c=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=n.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=n.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,i,s=[];for(this.trackComment&&(s=[],t=this.index-e,i={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var n=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(n)){if(this.trackComment){i.end={line:this.lineNumber,column:this.index-this.lineStart-1};var o={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:i};s.push(o)}return 13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,s}}return this.trackComment&&(i.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:i},s.push(o)),s},e.prototype.skipMultiLineComment=function(){var e,t,i=[];for(this.trackComment&&(i=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var s=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(s))13===s&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===s){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var n={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};i.push(n)}return i}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},n={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},i.push(n)),this.tolerateUnexpectedToken(),i},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var i=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(i))++this.index;else if(r.Character.isLineTerminator(i))++this.index,13===i&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===i)if(47===(i=this.source.charCodeAt(this.index+1))){this.index+=2;var s=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(s)),t=!0}else{if(42!==i)break;this.index+=2,s=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(s))}else if(t&&45===i){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,s=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(s))}else{if(60!==i||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,s=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(s))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var i=this.source.charCodeAt(e+1);i>=56320&&i<=57343&&(t=1024*(t-55296)+i-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,i=0,s=0;s1114111||"}"!==e)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),i=r.Character.fromCodePoint(t);for(this.index+=i.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),i=e);!this.eof()&&(t=this.codePointAt(this.index),r.Character.isIdentifierPart(t));)i+=e=r.Character.fromCodePoint(t),this.index+=e.length,92===t&&(i=i.substr(0,i.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),i+=e);return i},e.prototype.octalToDecimal=function(e){var t="0"!==e,i=a(e);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,i=8*i+a(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(i=8*i+a(this.source[this.index++]))),{code:i,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,i=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===i.length?3:this.isKeyword(i)?4:"null"===i?5:"true"===i||"false"===i?1:3)&&t+i.length!==this.index){var s=this.index;this.index=t,this.tolerateUnexpectedToken(n.Messages.InvalidEscapedReservedWord),this.index=s}return{type:e,value:i,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,i="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)i+=this.source[this.index++];return 0===i.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(t)||r.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(i,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var i="",s=!1;for(r.Character.isOctalDigit(e.charCodeAt(0))?(s=!0,i="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)i+=this.source[this.index++];return s||0!==i.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(i,8),octal:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(i=i.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,i){var r=parseInt(t||i,16);return r>1114111&&s.throwUnexpectedToken(n.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):""})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,""));try{RegExp(i)}catch(e){this.throwUnexpectedToken(n.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(e){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];s.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],i=!1,o=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],r.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(n.Messages.UnterminatedRegExp),t+=e;else if(r.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(n.Messages.UnterminatedRegExp);else if(i)"]"===e&&(i=!1);else{if("/"===e){o=!0;break}"["===e&&(i=!0)}return o||this.throwUnexpectedToken(n.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!r.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var i=this.index,s=this.scanHexEscape("u");if(null!==s)for(e+=s;i=55296&&e<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(10),r=i(12),n=i(13),o=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var i=this.values[this.paren-1];t="if"===i||"while"===i||"for"===i||"with"===i;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(s=this.values[this.curly-4])&&!this.beforeFunctionExpression(s);else if("function"===this.values[this.curly-4]){var s;t=!(s=this.values[this.curly-5])||!this.beforeFunctionExpression(s)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),a=function(){function e(e,t){this.errorHandler=new s.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new r.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new o}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t{"use strict";var t=Object.prototype.hasOwnProperty,i="~";function s(){}function r(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function n(e,t,s,n,o){if("function"!=typeof s)throw new TypeError("The listener must be a function");var a=new r(s,n||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new s:delete e._events[t]}function a(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(i=!1)),a.prototype.eventNames=function(){var e,s,r=[];if(0===this._eventsCount)return r;for(s in e=this._events)t.call(e,s)&&r.push(i?s.slice(1):s);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=i?i+e:e,s=this._events[t];if(!s)return[];if(s.fn)return[s.fn];for(var r=0,n=s.length,o=new Array(n);r{"use strict";var t=Object.prototype.hasOwnProperty,i="~";function s(){}function r(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function n(e,t,s,n,o){if("function"!=typeof s)throw new TypeError("The listener must be a function");var a=new r(s,n||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new s:delete e._events[t]}function a(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(i=!1)),a.prototype.eventNames=function(){var e,s,r=[];if(0===this._eventsCount)return r;for(s in e=this._events)t.call(e,s)&&r.push(i?s.slice(1):s);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=i?i+e:e,s=this._events[t];if(!s)return[];if(s.fn)return[s.fn];for(var r=0,n=s.length,o=new Array(n);r{"use strict";var s=i(60195);function r(e,t){for(var i in t)n(t,i)&&(e[i]=t[i])}function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e){s(e)||(e={});for(var t=arguments.length,i=1;i{"use strict";const t=(()=>{const e=0,t=1,i=2,s={},r={font:"Standard",fontPath:"./fonts"};function n(e,t,i){return e===t&&e!==i&&e}function o(e,t){let i="|/\\[]{}()<>";if("_"===e){if(-1!==i.indexOf(t))return t}else if("_"===t&&-1!==i.indexOf(e))return e;return!1}function a(e,t){let i="| /\\ [] {} () <>",s=i.indexOf(e),r=i.indexOf(t);if(-1!==s&&-1!==r&&s!==r&&1!==Math.abs(s-r)){const e=Math.max(s,r);return i.substring(e,e+1)}return!1}function c(e,t){let i="[] {} ()",s=i.indexOf(e),r=i.indexOf(t);return-1!==s&&-1!==r&&Math.abs(s-r)<=1&&"|"}function l(e,t){let i="/\\ \\/ ><",s=i.indexOf(e),r=i.indexOf(t);return-1!==s&&-1!==r&&r-s==1&&{0:"|",3:"Y",6:"X"}[s]}function p(e,t,i){return e===i&&t===i&&i}function A(e,t){return e===t&&e}function u(e,t){let i="|/\\[]{}()<>";if("_"===e){if(-1!==i.indexOf(t))return t}else if("_"===t&&-1!==i.indexOf(e))return e;return!1}function d(e,t){let i="| /\\ [] {} () <>",s=i.indexOf(e),r=i.indexOf(t);if(-1!==s&&-1!==r&&s!==r&&1!==Math.abs(s-r)){const e=Math.max(s,r);return i.substring(e,e+1)}return!1}function h(e,t){return("-"===e&&"_"===t||"_"===e&&"-"===t)&&"="}function m(e,t){return"|"===e&&"|"===t&&"|"}function g(e,t,i){return" "===t||""===t||t===i&&" "!==e?e:t}function f(s,r,n){if(n.fittingRules.vLayout===e)return"invalid";let o,a,c,l,p=Math.min(s.length,r.length),g=!1;if(0===p)return"invalid";for(o=0;on?C(t,r-n):n>r&&C(e,n-r),s=function(e,t,i){let s,r,n,o,a,c,l=e.length,p=e.length,A=(t.length,1);for(;A<=l;){for(s=e.slice(Math.max(0,p-A),p),r=t.slice(0,Math.min(l,A)),n=r.length,c="",o=0;o=l?A[r]:E(A[r],u[r],s),d.push(o);return a=t.slice(Math.min(i,l),l),[].concat(p,d,a)}(e,t,s,i)}function v(s,r,A){if(A.fittingRules.hLayout===e)return 0;let u,d,h,m,g,f=s.length,E=r.length,C=f,y=1,v=!1,I=!1;if(0===f)return 0;e:for(;y<=C;){const e=f-y;for(d=s.substring(e,e+y),h=r.substring(0,Math.min(y,E)),u=0;u=y?"":I.substring(r,r+Math.max(0,y-r)),B[u]=m+f+E}return B}function B(e){let t,i=[];for(t=0;t0&&s.whitespaceBreak&&(p={chars:[],overlap:g}),1===s.printDirection&&(t=t.split("").reverse().join("")),c=t.length,r=0;r0&&(s.whitespaceBreak?(d=b(p.chars.concat([{fig:n,overlap:g}]),f,s),h=b(C.concat([{fig:d,overlap:p.overlap}]),f,s),l=w(h)):(h=I(a,n,g,s),l=w(h)),l>=s.width&&r>0&&(s.whitespaceBreak?(a=b(C.slice(0,-1),f,s),C.length>1&&(E.push(a),a=B(f)),C=[]):(E.push(a),a=B(f)))),s.width>0&&s.whitespaceBreak&&(u&&r!==c-1||p.chars.push({fig:n,overlap:g}),u||r===c-1)){for(m=null;h=b(p.chars,f,s),l=w(h),l>=s.width;)m=Q(p.chars,f,s),p={chars:m.chars},E.push(m.outputFigText);l>0&&(m?C.push({fig:h,overlap:1}):C.push({fig:h,overlap:p.overlap})),u&&(C.push({fig:n,overlap:g}),a=B(f)),r===c-1&&(a=b(C,f,s)),p={chars:[],overlap:g};continue}a=I(a,n,g,s)}return w(a)>0&&E.push(a),!0!==s.showHardBlanks&&E.forEach((function(e){for(c=e.length,o=0;o{S.loadFont(s,(function(o,a){if(o)return n(o),void(i&&i(o));const c=k(s,D(a,t),e);r(c),i&&i(null,c)}))}))},S.textSync=function(e,t){let i="";e+="","string"==typeof t?(i=t,t={}):i=(t=t||{}).font||r.font;var s=D(S.loadFontSync(i),t);return k(i,s,e)},S.metadata=function(e,t){e+="",S.loadFont(e,(function(i,r){i?t(i):t(null,r,s[e].comment)}))},S.defaults=function(e){if("object"==typeof e&&null!==e)for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return JSON.parse(JSON.stringify(r))},S.parseFont=function(r,n){n=n.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),s[r]={};var o=n.split("\n"),a=o.splice(0,1)[0].split(" "),c=s[r],l={};if(l.hardBlank=a[0].substr(5,1),l.height=parseInt(a[1],10),l.baseline=parseInt(a[2],10),l.maxLength=parseInt(a[3],10),l.oldLayout=parseInt(a[4],10),l.numCommentLines=parseInt(a[5],10),l.printDirection=a.length>=6?parseInt(a[6],10):0,l.fullLayout=a.length>=7?parseInt(a[7],10):null,l.codeTagCount=a.length>=8?parseInt(a[8],10):null,l.fittingRules=function(s,r){let n,o,a,c,l={},p=[[16384,"vLayout",i],[8192,"vLayout",t],[4096,"vRule5",!0],[2048,"vRule4",!0],[1024,"vRule3",!0],[512,"vRule2",!0],[256,"vRule1",!0],[128,"hLayout",i],[64,"hLayout",t],[32,"hRule6",!0],[16,"hRule5",!0],[8,"hRule4",!0],[4,"hRule3",!0],[2,"hRule2",!0],[1,"hRule1",!0]];for(n=null!==r?r:s,o=0,a=p.length;o=c[0]?(n-=c[0],l[c[1]]=void 0===l[c[1]]?c[2]:l[c[1]]):"vLayout"!==c[1]&&"hLayout"!==c[1]&&(l[c[1]]=!1),o++;return void 0===l.hLayout?0===s?l.hLayout=t:-1===s?l.hLayout=e:l.hRule1||l.hRule2||l.hRule3||l.hRule4||l.hRule5||l.hRule6?l.hLayout=3:l.hLayout=i:l.hLayout===i&&(l.hRule1||l.hRule2||l.hRule3||l.hRule4||l.hRule5||l.hRule6)&&(l.hLayout=3),void 0===l.vLayout?l.vRule1||l.vRule2||l.vRule3||l.vRule4||l.vRule5?l.vLayout=3:l.vLayout=e:l.vLayout===i&&(l.vRule1||l.vRule2||l.vRule3||l.vRule4||l.vRule5)&&(l.vLayout=3),l}(l.oldLayout,l.fullLayout),c.options=l,1!==l.hardBlank.length||isNaN(l.height)||isNaN(l.baseline)||isNaN(l.maxLength)||isNaN(l.oldLayout)||isNaN(l.numCommentLines))throw new Error("FIGlet header contains invalid values.");let p,A=[];for(p=32;p<=126;p++)A.push(p);if(A=A.concat(196,214,220,228,246,252,223),o.length0&&c.numChars0;){if(u=o.splice(0,1)[0].split(" ")[0],/^0[xX][0-9a-fA-F]+$/.test(u))u=parseInt(u,16);else if(/^0[0-7]+$/.test(u))u=parseInt(u,8);else if(/^[0-9]+$/.test(u))u=parseInt(u,10);else{if(!/^-0[xX][0-9a-fA-F]+$/.test(u)){if(""===u)break;console.log("Invalid data:"+u),h=!0;break}u=parseInt(u,16)}for(c[u]=o.splice(0,l.height),p=0;pe.text())).then((function(e){i.push(e)}))}))}),Promise.resolve()).then((function(s){for(var r in e)e.hasOwnProperty(r)&&S.parseFont(e[r],i[r]);t&&t()}))},S.figFonts=s,S})();void 0!==e.exports&&(e.exports=t)},47707:(e,t,i)=>{const s=i(88042),r=i(57147),n=i(71017),o=n.join(__dirname,"/../fonts/");s.loadFont=function(e,t){s.figFonts[e]?t(null,s.figFonts[e].options):r.readFile(n.join(o,e+".flf"),{encoding:"utf-8"},(function(i,r){if(i)return t(i);r+="";try{t(null,s.parseFont(e,r))}catch(e){t(e)}}))},s.loadFontSync=function(e){if(s.figFonts[e])return s.figFonts[e].options;var t=r.readFileSync(n.join(o,e+".flf"),{encoding:"utf-8"});return t+="",s.parseFont(e,t)},s.fonts=function(e){var t=[];r.readdir(o,(function(i,s){if(i)return e(i);s.forEach((function(e){/\.flf$/.test(e)&&t.push(e.replace(/\.flf$/,""))})),e(null,t)}))},s.fontsSync=function(){var e=[];return r.readdirSync(o).forEach((function(t){/\.flf$/.test(t)&&e.push(t.replace(/\.flf$/,""))})),e},e.exports=s},12937:(e,t,i)=>{var s;e.exports=function(){if(!s){try{s=i(8856)("follow-redirects")}catch(e){}"function"!=typeof s&&(s=function(){})}s.apply(null,arguments)}},12564:(e,t,i)=>{var s=i(57310),r=s.URL,n=i(13685),o=i(95687),a=i(12781).Writable,c=i(39491),l=i(12937),p=["abort","aborted","connect","error","socket","timeout"],A=Object.create(null);p.forEach((function(e){A[e]=function(t,i,s){this._redirectable.emit(e,t,i,s)}}));var u=v("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),d=v("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),h=v("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),m=v("ERR_STREAM_WRITE_AFTER_END","write after end");function g(e,t){a.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var i=this;this._onNativeResponse=function(e){i._processResponse(e)},this._performRequest()}function f(e){var t={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(e).forEach((function(n){var o=n+":",a=i[o]=e[n],p=t[n]=Object.create(a);Object.defineProperties(p,{request:{value:function(e,n,a){if("string"==typeof e){var p=e;try{e=C(new r(p))}catch(t){e=s.parse(p)}}else r&&e instanceof r?e=C(e):(a=n,n=e,e={protocol:o});return"function"==typeof n&&(a=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=i,c.equal(n.protocol,o,"protocol mismatch"),l("options",n),new g(n,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,i){var s=p.request(e,t,i);return s.end(),s},configurable:!0,enumerable:!0,writable:!0}})})),t}function E(){}function C(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function y(e,t){var i;for(var s in t)e.test(s)&&(i=t[s],delete t[s]);return null==i?void 0:String(i).trim()}function v(e,t){function i(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return i.prototype=new Error,i.prototype.constructor=i,i.prototype.name="Error ["+e+"]",i.prototype.code=e,i}function I(e){for(var t of p)e.removeListener(t,A[t]);e.on("error",E),e.abort()}g.prototype=Object.create(a.prototype),g.prototype.abort=function(){I(this._currentRequest),this.emit("abort")},g.prototype.write=function(e,t,i){if(this._ending)throw new m;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(i=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,i)):(this.emit("error",new h),this.abort()):i&&i()},g.prototype.end=function(e,t,i){if("function"==typeof e?(i=e,e=t=null):"function"==typeof t&&(i=t,t=null),e){var s=this,r=this._currentRequest;this.write(e,t,(function(){s._ended=!0,r.end(null,null,i)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,i)},g.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},g.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},g.prototype.setTimeout=function(e,t){var i=this;function s(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function r(t){i._timeout&&clearTimeout(i._timeout),i._timeout=setTimeout((function(){i.emit("timeout"),n()}),e),s(t)}function n(){i._timeout&&(clearTimeout(i._timeout),i._timeout=null),i.removeListener("abort",n),i.removeListener("error",n),i.removeListener("response",n),t&&i.removeListener("timeout",t),i.socket||i._currentRequest.removeListener("socket",r)}return t&&this.on("timeout",t),this.socket?r(this.socket):this._currentRequest.once("socket",r),this.on("socket",s),this.on("abort",n),this.on("error",n),this.on("response",n),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){g.prototype[e]=function(t,i){return this._currentRequest[e](t,i)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(g.prototype,e,{get:function(){return this._currentRequest[e]}})})),g.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},g.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var i=e.slice(0,-1);this._options.agent=this._options.agents[i]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var n of(r._redirectable=this,p))r.on(n,A[n]);if(this._currentUrl=/^\//.test(this._options.path)?s.format(this._options):this._currentUrl=this._options.path,this._isRedirect){var o=0,a=this,c=this._requestBodyBuffers;!function e(t){if(r===a._currentRequest)if(t)a.emit("error",t);else if(o=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(I(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new d);else{var r,n=this._options.beforeRedirect;n&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],y(/^content-/i,this._options.headers));var a,c=y(/^host$/i,this._options.headers),p=s.parse(this._currentUrl),A=c||p.host,h=/^\w+:/.test(i)?this._currentUrl:s.format(Object.assign(p,{host:A}));try{a=s.resolve(h,i)}catch(e){return void this.emit("error",new u(e))}l("redirecting to",a),this._isRedirect=!0;var m=s.parse(a);if(Object.assign(this._options,m),(m.protocol!==p.protocol&&"https:"!==m.protocol||m.host!==A&&!function(e,t){const i=e.length-t.length-1;return i>0&&"."===e[i]&&e.endsWith(t)}(m.host,A))&&y(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof n){var g={headers:e.headers,statusCode:t},f={url:h,method:o,headers:r};try{n(this._options,g,f)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new u(e))}}},e.exports=f({http:n,https:o}),e.exports.wrap=f},90504:(e,t,i)=>{var s=i(14598),r=i(73837),n=i(71017),o=i(13685),a=i(95687),c=i(57310).parse,l=i(57147),p=i(69335),A=i(62720),u=i(91117);function d(e){if(!(this instanceof d))return new d;for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],s.call(this),e=e||{})this[t]=e[t]}e.exports=d,r.inherits(d,s),d.LINE_BREAK="\r\n",d.DEFAULT_CONTENT_TYPE="application/octet-stream",d.prototype.append=function(e,t,i){"string"==typeof(i=i||{})&&(i={filename:i});var n=s.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),r.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,i),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,i)}},d.prototype._trackLength=function(e,t,i){var s=0;null!=i.knownLength?s+=+i.knownLength:Buffer.isBuffer(t)?s=t.length:"string"==typeof t&&(s=Buffer.byteLength(t)),this._valueLength+=s,this._overheadLength+=Buffer.byteLength(e)+d.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion"))&&(i.knownLength||this._valuesToMeasure.push(t))},d.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,(function(i,s){var r;i?t(i):(r=s.size-(e.start?e.start:0),t(null,r))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(i){e.pause(),t(null,+i.headers["content-length"])})),e.resume()):t("Unknown stream")},d.prototype._multiPartHeader=function(e,t,i){if("string"==typeof i.header)return i.header;var s,r=this._getContentDisposition(t,i),n=this._getContentType(t,i),o="",a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(n||[])};for(var c in"object"==typeof i.header&&u(a,i.header),a)a.hasOwnProperty(c)&&null!=(s=a[c])&&(Array.isArray(s)||(s=[s]),s.length&&(o+=c+": "+s.join("; ")+d.LINE_BREAK));return"--"+this.getBoundary()+d.LINE_BREAK+o+d.LINE_BREAK},d.prototype._getContentDisposition=function(e,t){var i,s;return"string"==typeof t.filepath?i=n.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?i=n.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(i=n.basename(e.client._httpMessage.path||"")),i&&(s='filename="'+i+'"'),s},d.prototype._getContentType=function(e,t){var i=t.contentType;return!i&&e.name&&(i=p.lookup(e.name)),!i&&e.path&&(i=p.lookup(e.path)),!i&&e.readable&&e.hasOwnProperty("httpVersion")&&(i=e.headers["content-type"]),i||!t.filepath&&!t.filename||(i=p.lookup(t.filepath||t.filename)),i||"object"!=typeof e||(i=d.DEFAULT_CONTENT_TYPE),i},d.prototype._multiPartFooter=function(){return function(e){var t=d.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},d.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+d.LINE_BREAK},d.prototype.getHeaders=function(e){var t,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(i[t.toLowerCase()]=e[t]);return i},d.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},d.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),i=0,s=this._streams.length;i{e.exports=function(e,t){return Object.keys(t).forEach((function(i){e[i]=e[i]||t[i]})),e}},87534:(e,t,i)=>{var s=i(14598),r=i(73837),n=i(71017),o=i(13685),a=i(95687),c=i(57310).parse,l=i(57147),p=i(12781).Stream,A=i(69335),u=i(62720),d=i(39049);function h(e){if(!(this instanceof h))return new h(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],s.call(this),e=e||{})this[t]=e[t]}e.exports=h,r.inherits(h,s),h.LINE_BREAK="\r\n",h.DEFAULT_CONTENT_TYPE="application/octet-stream",h.prototype.append=function(e,t,i){"string"==typeof(i=i||{})&&(i={filename:i});var n=s.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),r.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,i),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,i)}},h.prototype._trackLength=function(e,t,i){var s=0;null!=i.knownLength?s+=+i.knownLength:Buffer.isBuffer(t)?s=t.length:"string"==typeof t&&(s=Buffer.byteLength(t)),this._valueLength+=s,this._overheadLength+=Buffer.byteLength(e)+h.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof p)&&(i.knownLength||this._valuesToMeasure.push(t))},h.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,(function(i,s){var r;i?t(i):(r=s.size-(e.start?e.start:0),t(null,r))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(i){e.pause(),t(null,+i.headers["content-length"])})),e.resume()):t("Unknown stream")},h.prototype._multiPartHeader=function(e,t,i){if("string"==typeof i.header)return i.header;var s,r=this._getContentDisposition(t,i),n=this._getContentType(t,i),o="",a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(n||[])};for(var c in"object"==typeof i.header&&d(a,i.header),a)a.hasOwnProperty(c)&&null!=(s=a[c])&&(Array.isArray(s)||(s=[s]),s.length&&(o+=c+": "+s.join("; ")+h.LINE_BREAK));return"--"+this.getBoundary()+h.LINE_BREAK+o+h.LINE_BREAK},h.prototype._getContentDisposition=function(e,t){var i,s;return"string"==typeof t.filepath?i=n.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?i=n.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(i=n.basename(e.client._httpMessage.path||"")),i&&(s='filename="'+i+'"'),s},h.prototype._getContentType=function(e,t){var i=t.contentType;return!i&&e.name&&(i=A.lookup(e.name)),!i&&e.path&&(i=A.lookup(e.path)),!i&&e.readable&&e.hasOwnProperty("httpVersion")&&(i=e.headers["content-type"]),i||!t.filepath&&!t.filename||(i=A.lookup(t.filepath||t.filename)),i||"object"!=typeof e||(i=h.DEFAULT_CONTENT_TYPE),i},h.prototype._multiPartFooter=function(){return function(e){var t=h.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},h.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+h.LINE_BREAK},h.prototype.getHeaders=function(e){var t,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(i[t.toLowerCase()]=e[t]);return i},h.prototype.setBoundary=function(e){this._boundary=e},h.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},h.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),i=0,s=this._streams.length;i{e.exports=function(e,t){return Object.keys(t).forEach((function(i){e[i]=e[i]||t[i]})),e}},38125:(e,t,i)=>{"use strict";const s=i(57147),r=i(66577),n=i(62683),o=i(97537),a=i(56398),c=i(2237),l=i(68042),p=i(28418),A=i(38164);function u(e,t){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let i=l(e);const s=u.cache[i.content];if(!t){if(s)return i=Object.assign({},s),i.orig=s.orig,i;u.cache[i.content]=i}return function(e,t){const i=n(t),s=i.delimiters[0],o="\n"+i.delimiters[1];let c=e.content;i.language&&(e.language=i.language);const l=s.length;if(!A.startsWith(c,s,l))return a(e,i),e;if(c.charAt(l)===s.slice(-1))return e;c=c.slice(l);const d=c.length,h=u.language(c,i);h.name&&(e.language=h.name,c=c.slice(h.raw.length));let m=c.indexOf(o);-1===m&&(m=d),e.matter=c.slice(0,m);return""===e.matter.replace(/^\s*#[^\n]+/gm,"").trim()?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=p(e.language,e.matter,i),m===d?e.content="":(e.content=c.slice(m+o.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1))),a(e,i),(!0===i.sections||"function"==typeof i.section)&&r(e,i.section),e}(i,t)}u.engines=c,u.stringify=function(e,t,i){return"string"==typeof e&&(e=u(e,i)),o(e,t,i)},u.read=function(e,t){const i=u(s.readFileSync(e,"utf8"),t);return i.path=e,i},u.test=function(e,t){return A.startsWith(e,n(t).delimiters[0])},u.language=function(e,t){const i=n(t).delimiters[0];u.test(e)&&(e=e.slice(i.length));const s=e.slice(0,e.search(/\r?\n/));return{raw:s,name:s?s.trim():""}},u.cache={},u.clearCache=function(){u.cache={}},e.exports=u},62683:(e,t,i)=>{"use strict";const s=i(2237),r=i(38164);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=r.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},s,t.parsers,t.engines),t}},21825:e=>{"use strict";e.exports=function(e,t){let i=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===i)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof i&&(i={parse:i}),i}},2237:(module,exports,__webpack_require__)=>{"use strict";const yaml=__webpack_require__(43236),engines=exports=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const i=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,i.replacer,i.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(e){if(!1!==wrap&&/(unexpected|identifier)/i.test(e.message))return parse(str,options,!1);throw new SyntaxError(e)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}},56398:(e,t,i)=>{"use strict";const s=i(62683);e.exports=function(e,t){const i=s(t);if(null==e.data&&(e.data={}),"function"==typeof i.excerpt)return i.excerpt(e,i);const r=e.data.excerpt_separator||i.excerpt_separator;if(null==r&&(!1===i.excerpt||null==i.excerpt))return e;const n="string"==typeof i.excerpt?i.excerpt:r||i.delimiters[0],o=e.content.indexOf(n);return-1!==o&&(e.excerpt=e.content.slice(0,o)),e}},28418:(e,t,i)=>{"use strict";const s=i(21825),r=i(62683);e.exports=function(e,t,i){const n=r(i),o=s(e,n);if("function"!=typeof o.parse)throw new TypeError('expected "'+e+'.parse" to be a function');return o.parse(t,n)}},97537:(e,t,i)=>{"use strict";const s=i(79049),r=i(21825),n=i(62683);function o(e){return"\n"!==e.slice(-1)?e+"\n":e}e.exports=function(e,t,i){if(null==t&&null==i)switch(s(e)){case"object":t=e.data,i={};break;case"string":return e;default:throw new TypeError("expected file to be a string or object")}const a=e.content,c=n(i);if(null==t){if(!c.data)return e;t=c.data}const l=e.language||c.language,p=r(l,c);if("function"!=typeof p.stringify)throw new TypeError('expected "'+l+'.stringify" to be a function');t=Object.assign({},e.data,t);const A=c.delimiters[0],u=c.delimiters[1],d=p.stringify(t,i).trim();let h="";return"{}"!==d&&(h=o(A)+o(d)+o(u)),"string"==typeof e.excerpt&&""!==e.excerpt&&-1===a.indexOf(e.excerpt.trim())&&(h+=o(e.excerpt)+o(u)),h+o(a)}},68042:(e,t,i)=>{"use strict";const s=i(79049),r=i(97537),n=i(38164);e.exports=function(e){return"object"!==s(e)&&(e={content:e}),"object"!==s(e.data)&&(e.data={}),e.contents&&null==e.content&&(e.content=e.contents),n.define(e,"orig",n.toBuffer(e.content)),n.define(e,"language",e.language||""),n.define(e,"matter",e.matter||""),n.define(e,"stringify",(function(t,i){return i&&i.language&&(e.language=i.language),r(e,t,i)})),e.content=n.toString(e.content),e.isEmpty=!1,e.excerpt="",e}},38164:(e,t,i)=>{"use strict";const s=i(47494),r=i(79049);t.define=function(e,t,i){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:i})},t.isBuffer=function(e){return"buffer"===r(e)},t.isObject=function(e){return"object"===r(e)},t.toBuffer=function(e){return"string"==typeof e?Buffer.from(e):e},t.toString=function(e){if(t.isBuffer(e))return s(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return s(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,i){return"number"!=typeof i&&(i=t.length),e.slice(0,i)===t}},5506:e=>{"use strict";e.exports=(e,t=process.argv)=>{const i=e.startsWith("-")?"":1===e.length?"-":"--",s=t.indexOf(i+e),r=t.indexOf("--");return-1!==s&&(-1===r||s{"use strict";e.exports=(e,t=1,i)=>{if(i={indent:" ",includeEmptyLines:!1,...i},"string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof i.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i.indent}\``);if(0===t)return e;const s=i.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(s,i.indent.repeat(t))}},44236:(e,t,i)=>{try{var s=i(73837);if("function"!=typeof s.inherits)throw"";e.exports=s.inherits}catch(t){e.exports=i(67483)}},67483:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}},30547:e=>{e.exports=function(){return"undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type||!("undefined"==typeof process||"object"!=typeof process.versions||!process.versions.electron)||"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0}},60195:e=>{"use strict";e.exports=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)}},27759:e=>{"use strict";e.exports=({stream:e=process.stdout}={})=>Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))},42412:e=>{"use strict";var t=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.writable=function(e){return t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},t.readable=function(e){return t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},t.duplex=function(e){return t.writable(e)&&t.readable(e)},t.transform=function(e){return t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},5881:e=>{"use strict";e.exports=()=>"win32"!==process.platform||Boolean(process.env.CI)||Boolean(process.env.WT_SESSION)||"vscode"===process.env.TERM_PROGRAM||"xterm-256color"===process.env.TERM||"alacritty"===process.env.TERM},43236:(e,t,i)=>{"use strict";var s=i(5033);e.exports=s},5033:(e,t,i)=>{"use strict";var s=i(84780),r=i(44418);function n(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=i(42257),e.exports.Schema=i(38107),e.exports.FAILSAFE_SCHEMA=i(19777),e.exports.JSON_SCHEMA=i(93886),e.exports.CORE_SCHEMA=i(71514),e.exports.DEFAULT_SAFE_SCHEMA=i(79251),e.exports.DEFAULT_FULL_SCHEMA=i(13536),e.exports.load=s.load,e.exports.loadAll=s.loadAll,e.exports.safeLoad=s.safeLoad,e.exports.safeLoadAll=s.safeLoadAll,e.exports.dump=r.dump,e.exports.safeDump=r.safeDump,e.exports.YAMLException=i(86822),e.exports.MINIMAL_SCHEMA=i(19777),e.exports.SAFE_SCHEMA=i(79251),e.exports.DEFAULT_SCHEMA=i(13536),e.exports.scan=n("scan"),e.exports.parse=n("parse"),e.exports.compose=n("compose"),e.exports.addConstructor=n("addConstructor")},90560:e=>{"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var i,s="";for(i=0;i{"use strict";var s=i(90560),r=i(86822),n=i(13536),o=i(79251),a=Object.prototype.toString,c=Object.prototype.hasOwnProperty,l=9,p=10,A=13,u=32,d=33,h=34,m=35,g=37,f=38,E=39,C=42,y=44,v=45,I=58,B=61,w=62,b=63,Q=64,x=91,k=93,D=96,S=123,_=124,R=125,T={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},F=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function N(e){var t,i,n;if(t=e.toString(16).toUpperCase(),e<=255)i="x",n=2;else if(e<=65535)i="u",n=4;else{if(!(e<=4294967295))throw new r("code point within a string may not be greater than 0xFFFFFFFF");i="U",n=8}return"\\"+i+s.repeat("0",n-t.length)+t}function L(e){this.schema=e.schema||n,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=s.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var i,s,r,n,o,a,l;if(null===t)return{};for(i={},r=0,n=(s=Object.keys(t)).length;r-1&&i>=e.flowLevel;switch(function(e,t,i,s,r){var n,o,a,c,l=!1,A=!1,u=-1!==s,T=-1,F=P(c=e.charCodeAt(0))&&65279!==c&&!U(c)&&c!==v&&c!==b&&c!==I&&c!==y&&c!==x&&c!==k&&c!==S&&c!==R&&c!==m&&c!==f&&c!==C&&c!==d&&c!==_&&c!==B&&c!==w&&c!==E&&c!==h&&c!==g&&c!==Q&&c!==D&&!U(e.charCodeAt(e.length-1));if(t)for(n=0;n0?e.charCodeAt(n-1):null,F=F&&G(o,a)}else{for(n=0;ns&&" "!==e[T+1],T=n);else if(!P(o))return Y;a=n>0?e.charCodeAt(n-1):null,F=F&&G(o,a)}A=A||u&&n-T-1>s&&" "!==e[T+1]}return l||A?i>9&&V(e)?Y:A?q:J:F&&!r(e)?j:H}(t,a,e.indent,o,(function(t){return function(e,t){var i,s;for(i=0,s=e.implicitTypes.length;i"+z(t,e.indent)+$(O(function(e,t){for(var i,s,r,n=/(\n+)([^\n]*)/g,o=(r=-1!==(r=e.indexOf("\n"))?r:e.length,n.lastIndex=r,X(e.slice(0,r),t)),a="\n"===e[0]||" "===e[0];s=n.exec(e);){var c=s[1],l=s[2];i=" "===l[0],o+=c+(a||i||""===l?"":"\n")+X(l,t),a=i}return o}(t,o),n));case Y:return'"'+function(e){for(var t,i,s,r="",n=0;n=55296&&t<=56319&&(i=e.charCodeAt(n+1))>=56320&&i<=57343?(r+=N(1024*(t-55296)+i-56320+65536),n++):r+=!(s=T[t])&&P(t)?e[n]:s||N(t);return r}(t)+'"';default:throw new r("impossible error: invalid scalar style")}}()}function z(e,t){var i=V(e)?String(t):"",s="\n"===e[e.length-1];return i+(!s||"\n"!==e[e.length-2]&&"\n"!==e?s?"":"-":"+")+"\n"}function $(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function X(e,t){if(""===e||" "===e[0])return e;for(var i,s,r=/ [^ ]/g,n=0,o=0,a=0,c="";i=r.exec(e);)(a=i.index)-n>t&&(s=o>n?o:a,c+="\n"+e.slice(n,s),n=s+1),o=a;return c+="\n",e.length-n>t&&o>n?c+=e.slice(n,o)+"\n"+e.slice(o+1):c+=e.slice(n),c.slice(1)}function K(e,t,i){var s,n,o,l,p,A;for(o=0,l=(n=i?e.explicitTypes:e.implicitTypes).length;o tag resolver accepts not "'+A+'" style');s=p.represent[A](t,A)}e.dump=s}return!0}return!1}function Z(e,t,i,s,n,o){e.tag=null,e.dump=i,K(e,i,!1)||K(e,i,!0);var c=a.call(e.dump);s&&(s=e.flowLevel<0||e.flowLevel>t);var l,A,u="[object Object]"===c||"[object Array]"===c;if(u&&(A=-1!==(l=e.duplicates.indexOf(i))),(null!==e.tag&&"?"!==e.tag||A||2!==e.indent&&t>0)&&(n=!1),A&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(u&&A&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===c)s&&0!==Object.keys(e.dump).length?(function(e,t,i,s){var n,o,a,c,l,A,u="",d=e.tag,h=Object.keys(i);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new r("sortKeys must be a boolean or a function");for(n=0,o=h.length;n1024)&&(e.dump&&p===e.dump.charCodeAt(0)?A+="?":A+="? "),A+=e.dump,l&&(A+=M(e,t)),Z(e,t+1,c,!0,l)&&(e.dump&&p===e.dump.charCodeAt(0)?A+=":":A+=": ",u+=A+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,n),A&&(e.dump="&ref_"+l+e.dump)):(function(e,t,i){var s,r,n,o,a,c="",l=e.tag,p=Object.keys(i);for(s=0,r=p.length;s1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Z(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),A&&(e.dump="&ref_"+l+" "+e.dump));else if("[object Array]"===c){var d=e.noArrayIndent&&t>0?t-1:t;s&&0!==e.dump.length?(function(e,t,i,s){var r,n,o="",a=e.tag;for(r=0,n=i.length;r "+e.dump)}return!0}function ee(e,t){var i,s,r=[],n=[];for(te(e,r,n),i=0,s=n.length;i{"use strict";function t(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=t},84780:(e,t,i)=>{"use strict";var s=i(90560),r=i(86822),n=i(20917),o=i(79251),a=i(13536),c=Object.prototype.hasOwnProperty,l=1,p=2,A=3,u=4,d=1,h=2,m=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=/[\x85\u2028\u2029]/,E=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,y=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function v(e){return Object.prototype.toString.call(e)}function I(e){return 10===e||13===e}function B(e){return 9===e||32===e}function w(e){return 9===e||32===e||10===e||13===e}function b(e){return 44===e||91===e||93===e||123===e||125===e}function Q(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function x(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function k(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var D=new Array(256),S=new Array(256),_=0;_<256;_++)D[_]=x(_)?1:0,S[_]=x(_);function R(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function T(e,t){return new r(t,new n(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function F(e,t){throw T(e,t)}function N(e,t){e.onWarning&&e.onWarning.call(null,T(e,t))}var L={YAML:function(e,t,i){var s,r,n;null!==e.version&&F(e,"duplication of %YAML directive"),1!==i.length&&F(e,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(i[0]))&&F(e,"ill-formed argument of the YAML directive"),r=parseInt(s[1],10),n=parseInt(s[2],10),1!==r&&F(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=n<2,1!==n&&2!==n&&N(e,"unsupported YAML version of the document")},TAG:function(e,t,i){var s,r;2!==i.length&&F(e,"TAG directive accepts exactly two arguments"),s=i[0],r=i[1],C.test(s)||F(e,"ill-formed tag handle (first argument) of the TAG directive"),c.call(e.tagMap,s)&&F(e,'there is a previously declared suffix for "'+s+'" tag handle'),y.test(r)||F(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[s]=r}};function O(e,t,i,s){var r,n,o,a;if(t1&&(e.result+=s.repeat("\n",t-1))}function H(e,t){var i,s,r=e.tag,n=e.anchor,o=[],a=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);0!==s&&45===s&&w(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,G(e,!0,-1)&&e.lineIndent<=t)o.push(null),s=e.input.charCodeAt(e.position);else if(i=e.line,Y(e,t,A,!1,!0),o.push(e.result),G(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>t)&&0!==s)F(e,"bad indentation of a sequence entry");else if(e.lineIndentt?x=1:e.lineIndent===t?x=0:e.lineIndentt?x=1:e.lineIndent===t?x=0:e.lineIndentt)&&(Y(e,t,u,!0,r)&&(f?m=e.result:g=e.result),f||(U(e,A,d,h,m,g,n,o),h=m=g=null),G(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)F(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===n?F(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?F(e,"repeat of an indentation width identifier"):(A=t+n-1,p=!0)}if(B(o)){do{o=e.input.charCodeAt(++e.position)}while(B(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!I(o)&&0!==o)}for(;0!==o;){for(P(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!p||e.lineIndentA&&(A=e.lineIndent),I(o))u++;else{if(e.lineIndent 0){for(r=o,n=0;r>0;r--)(o=Q(a=e.input.charCodeAt(++e.position)))>=0?n=(n<<4)+o:F(e,"expected hexadecimal character");e.result+=k(n),e.position++}else F(e,"unknown escape sequence");i=s=e.position}else I(a)?(O(e,i,s,!0),j(e,G(e,!1,t)),i=s=e.position):e.position===e.lineStart&&V(e)?F(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}F(e,"unexpected end of the stream within a double quoted scalar")}(e,y)?R=!0:function(e){var t,i,s;if(42!==(s=e.input.charCodeAt(e.position)))return!1;for(s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!w(s)&&!b(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&F(e,"name of an alias node must contain at least one character"),i=e.input.slice(t,e.position),c.call(e.anchorMap,i)||F(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],G(e,!0,-1),!0}(e)?(R=!0,null===e.tag&&null===e.anchor||F(e,"alias node should not have any properties")):function(e,t,i){var s,r,n,o,a,c,l,p,A=e.kind,u=e.result;if(w(p=e.input.charCodeAt(e.position))||b(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(w(s=e.input.charCodeAt(e.position+1))||i&&b(s)))return!1;for(e.kind="scalar",e.result="",r=n=e.position,o=!1;0!==p;){if(58===p){if(w(s=e.input.charCodeAt(e.position+1))||i&&b(s))break}else if(35===p){if(w(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&V(e)||i&&b(p))break;if(I(p)){if(a=e.line,c=e.lineStart,l=e.lineIndent,G(e,!1,-1),e.lineIndent>=t){o=!0,p=e.input.charCodeAt(e.position);continue}e.position=n,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(O(e,r,n,!1),j(e,e.line-a),r=n=e.position,o=!1),B(p)||(n=e.position+1),p=e.input.charCodeAt(++e.position)}return O(e,r,n,!1),!!e.result||(e.kind=A,e.result=u,!1)}(e,y,l===i)&&(R=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===x&&(R=g&&H(e,v))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&F(e,'unacceptable node kind for !> tag; it should be "scalar", not "'+e.kind+'"'),f=0,E=e.implicitTypes.length;f tag; it should be "'+C.kind+'", not "'+e.kind+'"'),C.resolve(e.result)?(e.result=C.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):F(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):F(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||R}function W(e){var t,i,s,r,n=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(r=e.input.charCodeAt(e.position))&&(G(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(o=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!w(r);)r=e.input.charCodeAt(++e.position);for(s=[],(i=e.input.slice(t,e.position)).length<1&&F(e,"directive name must not be less than one character in length");0!==r;){for(;B(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!I(r));break}if(I(r))break;for(t=e.position;0!==r&&!w(r);)r=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==r&&P(e),c.call(L,i)?L[i](e,i,s):N(e,'unknown document directive "'+i+'"')}G(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,G(e,!0,-1)):o&&F(e,"directives end mark is expected"),Y(e,e.lineIndent-1,u,!1,!0),G(e,!0,-1),e.checkLineBreaks&&f.test(e.input.slice(n,e.position))&&N(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&V(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,G(e,!0,-1)):e.position{"use strict";var s=i(90560);function r(e,t,i,s,r){this.name=e,this.buffer=t,this.position=i,this.line=s,this.column=r}r.prototype.getSnippet=function(e,t){var i,r,n,o,a;if(!this.buffer)return null;for(e=e||4,t=t||75,i="",r=this.position;r>0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(r-1));)if(r-=1,this.position-r>t/2-1){i=" ... ",r+=5;break}for(n="",o=this.position;ot/2-1){n=" ... ",o-=5;break}return a=this.buffer.slice(r,o),s.repeat(" ",e)+i+a+n+"\n"+s.repeat(" ",e+this.position-r+i.length)+"^"},r.prototype.toString=function(e){var t,i="";return this.name&&(i+='in "'+this.name+'" '),i+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(i+=":\n"+t),i},e.exports=r},38107:(e,t,i)=>{"use strict";var s=i(90560),r=i(86822),n=i(42257);function o(e,t,i){var s=[];return e.include.forEach((function(e){i=o(e,t,i)})),e[t].forEach((function(e){i.forEach((function(t,i){t.tag===e.tag&&t.kind===e.kind&&s.push(i)})),i.push(e)})),i.filter((function(e,t){return-1===s.indexOf(t)}))}function a(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=o(this,"implicit",[]),this.compiledExplicit=o(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,i={scalar:{},sequence:{},mapping:{},fallback:{}};function s(e){i[e.kind][e.tag]=i.fallback[e.tag]=e}for(e=0,t=arguments.length;e{"use strict";var s=i(38107);e.exports=new s({include:[i(93886)]})},13536:(e,t,i)=>{"use strict";var s=i(38107);e.exports=s.DEFAULT=new s({include:[i(79251)],explicit:[i(7021),i(55844),i(1327)]})},79251:(e,t,i)=>{"use strict";var s=i(38107);e.exports=new s({include:[i(71514)],implicit:[i(1363),i(3174)],explicit:[i(81676),i(53900),i(21908),i(30768)]})},19777:(e,t,i)=>{"use strict";var s=i(38107);e.exports=new s({explicit:[i(99678),i(23371),i(17261)]})},93886:(e,t,i)=>{"use strict";var s=i(38107);e.exports=new s({include:[i(19777)],implicit:[i(40707),i(47847),i(84302),i(28249)]})},42257:(e,t,i)=>{"use strict";var s=i(86822),r=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];e.exports=function(e,t){var i,o;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===r.indexOf(t))throw new s('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(i=t.styleAliases||null,o={},null!==i&&Object.keys(i).forEach((function(e){i[e].forEach((function(t){o[String(t)]=e}))})),o),-1===n.indexOf(this.kind))throw new s('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},81676:(e,t,i)=>{"use strict";var s;try{s=i(14300).Buffer}catch(e){}var r=i(42257),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,i,s=0,r=e.length,o=n;for(i=0;i64)){if(t<0)return!1;s+=6}return s%8==0},construct:function(e){var t,i,r=e.replace(/[\r\n=]/g,""),o=r.length,a=n,c=0,l=[];for(t=0;t>16&255),l.push(c>>8&255),l.push(255&c)),c=c<<6|a.indexOf(r.charAt(t));return 0==(i=o%4*6)?(l.push(c>>16&255),l.push(c>>8&255),l.push(255&c)):18===i?(l.push(c>>10&255),l.push(c>>2&255)):12===i&&l.push(c>>4&255),s?s.from?s.from(l):new s(l):l},predicate:function(e){return s&&s.isBuffer(e)},represent:function(e){var t,i,s="",r=0,o=e.length,a=n;for(t=0;t>18&63],s+=a[r>>12&63],s+=a[r>>6&63],s+=a[63&r]),r=(r<<8)+e[t];return 0==(i=o%3)?(s+=a[r>>18&63],s+=a[r>>12&63],s+=a[r>>6&63],s+=a[63&r]):2===i?(s+=a[r>>10&63],s+=a[r>>4&63],s+=a[r<<2&63],s+=a[64]):1===i&&(s+=a[r>>2&63],s+=a[r<<4&63],s+=a[64],s+=a[64]),s}})},47847:(e,t,i)=>{"use strict";var s=i(42257);e.exports=new s("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},28249:(e,t,i)=>{"use strict";var s=i(90560),r=i(42257),n=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),o=/^[-+]?[0-9]+e/;e.exports=new r("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!n.test(e)||"_"===e[e.length-1])},construct:function(e){var t,i,s,r;return i="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,r=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===i?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){r.unshift(parseFloat(e,10))})),t=0,s=1,r.forEach((function(e){t+=e*s,s*=60})),i*t):i*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||s.isNegativeZero(e))},represent:function(e,t){var i;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(s.isNegativeZero(e))return"-0.0";return i=e.toString(10),o.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"})},84302:(e,t,i)=>{"use strict";var s=i(90560),r=i(42257);function n(e){return 48<=e&&e<=55}function o(e){return 48<=e&&e<=57}e.exports=new r("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,i,s=e.length,r=0,a=!1;if(!s)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===s)return!0;if("b"===(t=e[++r])){for(r++;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},1327:(e,t,i)=>{"use strict";var s;try{s=i(87491)}catch(e){"undefined"!=typeof window&&(s=window.esprima)}var r=i(42257);e.exports=new r("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",i=s.parse(t,{range:!0});return"Program"===i.type&&1===i.body.length&&"ExpressionStatement"===i.body[0].type&&("ArrowFunctionExpression"===i.body[0].expression.type||"FunctionExpression"===i.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,i="("+e+")",r=s.parse(i,{range:!0}),n=[];if("Program"!==r.type||1!==r.body.length||"ExpressionStatement"!==r.body[0].type||"ArrowFunctionExpression"!==r.body[0].expression.type&&"FunctionExpression"!==r.body[0].expression.type)throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach((function(e){n.push(e.name)})),t=r.body[0].expression.body.range,"BlockStatement"===r.body[0].expression.body.type?new Function(n,i.slice(t[0]+1,t[1]-1)):new Function(n,"return "+i.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},55844:(e,t,i)=>{"use strict";var s=i(42257);e.exports=new s("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,i=/\/([gim]*)$/.exec(e),s="";if("/"===t[0]){if(i&&(s=i[1]),s.length>3)return!1;if("/"!==t[t.length-s.length-1])return!1}return!0},construct:function(e){var t=e,i=/\/([gim]*)$/.exec(e),s="";return"/"===t[0]&&(i&&(s=i[1]),t=t.slice(1,t.length-s.length-1)),new RegExp(t,s)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},7021:(e,t,i)=>{"use strict";var s=i(42257);e.exports=new s("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},17261:(e,t,i)=>{"use strict";var s=i(42257);e.exports=new s("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},3174:(e,t,i)=>{"use strict";var s=i(42257);e.exports=new s("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},40707:(e,t,i)=>{"use strict";var s=i(42257);e.exports=new s("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},53900:(e,t,i)=>{"use strict";var s=i(42257),r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=new s("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,i,s,o,a,c=[],l=e;for(t=0,i=l.length;t{"use strict";var s=i(42257),r=Object.prototype.toString;e.exports=new s("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,i,s,n,o,a=e;for(o=new Array(a.length),t=0,i=a.length;t{"use strict";var s=i(42257);e.exports=new s("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},30768:(e,t,i)=>{"use strict";var s=i(42257),r=Object.prototype.hasOwnProperty;e.exports=new s("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,i=e;for(t in i)if(r.call(i,t)&&null!==i[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},99678:(e,t,i)=>{"use strict";var s=i(42257);e.exports=new s("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},1363:(e,t,i)=>{"use strict";var s=i(42257),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new s("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==r.exec(e)||null!==n.exec(e))},construct:function(e){var t,i,s,o,a,c,l,p,A=0,u=null;if(null===(t=r.exec(e))&&(t=n.exec(e)),null===t)throw new Error("Date resolve error");if(i=+t[1],s=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(i,s,o));if(a=+t[4],c=+t[5],l=+t[6],t[7]){for(A=t[7].slice(0,3);A.length<3;)A+="0";A=+A}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),p=new Date(Date.UTC(i,s,o,a,c,l,A)),u&&p.setTime(p.getTime()-u),p},instanceOf:Date,represent:function(e){return e.toISOString()}})},20097:(e,t,i)=>{"use strict";var s=i(37980),r=i(99719);function n(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=i(95344),e.exports.Schema=i(42459),e.exports.FAILSAFE_SCHEMA=i(69366),e.exports.JSON_SCHEMA=i(74068),e.exports.CORE_SCHEMA=i(75243),e.exports.DEFAULT_SCHEMA=i(66392),e.exports.load=s.load,e.exports.loadAll=s.loadAll,e.exports.dump=r.dump,e.exports.YAMLException=i(34699),e.exports.types={binary:i(3389),float:i(25948),map:i(69274),null:i(91237),pairs:i(97988),set:i(576),timestamp:i(26405),bool:i(93691),int:i(30492),merge:i(30945),omap:i(4868),seq:i(56821),str:i(43432)},e.exports.safeLoad=n("safeLoad","load"),e.exports.safeLoadAll=n("safeLoadAll","loadAll"),e.exports.safeDump=n("safeDump","dump")},11392:e=>{"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var i,s="";for(i=0;i{"use strict";var s=i(11392),r=i(34699),n=i(66392),o=Object.prototype.toString,a=Object.prototype.hasOwnProperty,c=65279,l=9,p=10,A=13,u=32,d=33,h=34,m=35,g=37,f=38,E=39,C=42,y=44,v=45,I=58,B=61,w=62,b=63,Q=64,x=91,k=93,D=96,S=123,_=124,R=125,T={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},F=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],N=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function L(e){var t,i,n;if(t=e.toString(16).toUpperCase(),e<=255)i="x",n=2;else if(e<=65535)i="u",n=4;else{if(!(e<=4294967295))throw new r("code point within a string may not be greater than 0xFFFFFFFF");i="U",n=8}return"\\"+i+s.repeat("0",n-t.length)+t}var O=2;function M(e){this.schema=e.schema||n,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=s.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var i,s,r,n,o,c,l;if(null===t)return{};for(i={},r=0,n=(s=Object.keys(t)).length;r=55296&&s<=56319&&t+1=56320&&i<=57343?1024*(s-55296)+i-56320+65536:s}function q(e){return/^\n* /.test(e)}var Y=1,W=2,z=3,$=4,X=5;function K(e,t,i,s,n){e.dump=function(){if(0===t.length)return e.quotingType===O?'""':"''";if(!e.noCompatMode&&(-1!==F.indexOf(t)||N.test(t)))return e.quotingType===O?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,i),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),l=s||e.flowLevel>-1&&i>=e.flowLevel;switch(function(e,t,i,s,r,n,o,a){var l,A,u=0,T=null,F=!1,N=!1,L=-1!==s,M=-1,U=V(A=J(e,0))&&A!==c&&!G(A)&&A!==v&&A!==b&&A!==I&&A!==y&&A!==x&&A!==k&&A!==S&&A!==R&&A!==m&&A!==f&&A!==C&&A!==d&&A!==_&&A!==B&&A!==w&&A!==E&&A!==h&&A!==g&&A!==Q&&A!==D&&function(e){return!G(e)&&e!==I}(J(e,e.length-1));if(t||o)for(l=0;l=65536?l+=2:l++){if(!V(u=J(e,l)))return X;U=U&&H(u,T,a),T=u}else{for(l=0;l=65536?l+=2:l++){if((u=J(e,l))===p)F=!0,L&&(N=N||l-M-1>s&&" "!==e[M+1],M=l);else if(!V(u))return X;U=U&&H(u,T,a),T=u}N=N||L&&l-M-1>s&&" "!==e[M+1]}return F||N?i>9&&q(e)?X:o?n===O?X:W:N?$:z:!U||o||r(e)?n===O?X:W:Y}(t,l,e.indent,a,(function(t){return function(e,t){var i,s;for(i=0,s=e.implicitTypes.length;i"+Z(t,e.indent)+ee(U(function(e,t){for(var i,s,r,n=/(\n+)([^\n]*)/g,o=(r=-1!==(r=e.indexOf("\n"))?r:e.length,n.lastIndex=r,te(e.slice(0,r),t)),a="\n"===e[0]||" "===e[0];s=n.exec(e);){var c=s[1],l=s[2];i=" "===l[0],o+=c+(a||i||""===l?"":"\n")+te(l,t),a=i}return o}(t,a),o));case X:return'"'+function(e){for(var t,i="",s=0,r=0;r=65536?r+=2:r++)s=J(e,r),!(t=T[s])&&V(s)?(i+=e[r],s>=65536&&(i+=e[r+1])):i+=t||L(s);return i}(t)+'"';default:throw new r("impossible error: invalid scalar style")}}()}function Z(e,t){var i=q(e)?String(t):"",s="\n"===e[e.length-1];return i+(!s||"\n"!==e[e.length-2]&&"\n"!==e?s?"":"-":"+")+"\n"}function ee(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function te(e,t){if(""===e||" "===e[0])return e;for(var i,s,r=/ [^ ]/g,n=0,o=0,a=0,c="";i=r.exec(e);)(a=i.index)-n>t&&(s=o>n?o:a,c+="\n"+e.slice(n,s),n=s+1),o=a;return c+="\n",e.length-n>t&&o>n?c+=e.slice(n,o)+"\n"+e.slice(o+1):c+=e.slice(n),c.slice(1)}function ie(e,t,i,s){var r,n,o,a="",c=e.tag;for(r=0,n=i.length;r tag resolver accepts not "'+A+'" style');s=p.represent[A](t,A)}e.dump=s}return!0}return!1}function re(e,t,i,s,n,a,c){e.tag=null,e.dump=i,se(e,i,!1)||se(e,i,!0);var l,A=o.call(e.dump),u=s;s&&(s=e.flowLevel<0||e.flowLevel>t);var d,h,m="[object Object]"===A||"[object Array]"===A;if(m&&(h=-1!==(d=e.duplicates.indexOf(i))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&t>0)&&(n=!1),h&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(m&&h&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),"[object Object]"===A)s&&0!==Object.keys(e.dump).length?(function(e,t,i,s){var n,o,a,c,l,A,u="",d=e.tag,h=Object.keys(i);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new r("sortKeys must be a boolean or a function");for(n=0,o=h.length;n1024)&&(e.dump&&p===e.dump.charCodeAt(0)?A+="?":A+="? "),A+=e.dump,l&&(A+=P(e,t)),re(e,t+1,c,!0,l)&&(e.dump&&p===e.dump.charCodeAt(0)?A+=":":A+=": ",u+=A+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,n),h&&(e.dump="&ref_"+d+e.dump)):(function(e,t,i){var s,r,n,o,a,c="",l=e.tag,p=Object.keys(i);for(s=0,r=p.length;s1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),re(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),h&&(e.dump="&ref_"+d+" "+e.dump));else if("[object Array]"===A)s&&0!==e.dump.length?(e.noArrayIndent&&!c&&t>0?ie(e,t-1,e.dump,n):ie(e,t,e.dump,n),h&&(e.dump="&ref_"+d+e.dump)):(function(e,t,i){var s,r,n,o="",a=e.tag;for(s=0,r=i.length;s",e.dump=l+" "+e.dump)}return!0}function ne(e,t){var i,s,r=[],n=[];for(oe(e,r,n),i=0,s=n.length;i{"use strict";function t(e,t){var i="",s=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(i+="\n\n"+e.mark.snippet),s+" "+i):s}function i(e,i){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=i,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=i},37980:(e,t,i)=>{"use strict";var s=i(11392),r=i(34699),n=i(25638),o=i(66392),a=Object.prototype.hasOwnProperty,c=1,l=2,p=3,A=4,u=1,d=2,h=3,m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,f=/[,\[\]\{\}]/,E=/^(?:!|!!|![a-z\-]+!)$/i,C=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function y(e){return Object.prototype.toString.call(e)}function v(e){return 10===e||13===e}function I(e){return 9===e||32===e}function B(e){return 9===e||32===e||10===e||13===e}function w(e){return 44===e||91===e||93===e||123===e||125===e}function b(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Q(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function x(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var k=new Array(256),D=new Array(256),S=0;S<256;S++)k[S]=Q(S)?1:0,D[S]=Q(S);function _(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||o,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function R(e,t){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new r(t,i)}function T(e,t){throw R(e,t)}function F(e,t){e.onWarning&&e.onWarning.call(null,R(e,t))}var N={YAML:function(e,t,i){var s,r,n;null!==e.version&&T(e,"duplication of %YAML directive"),1!==i.length&&T(e,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(i[0]))&&T(e,"ill-formed argument of the YAML directive"),r=parseInt(s[1],10),n=parseInt(s[2],10),1!==r&&T(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=n<2,1!==n&&2!==n&&F(e,"unsupported YAML version of the document")},TAG:function(e,t,i){var s,r;2!==i.length&&T(e,"TAG directive accepts exactly two arguments"),s=i[0],r=i[1],E.test(s)||T(e,"ill-formed tag handle (first argument) of the TAG directive"),a.call(e.tagMap,s)&&T(e,'there is a previously declared suffix for "'+s+'" tag handle'),C.test(r)||T(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){T(e,"tag prefix is malformed: "+r)}e.tagMap[s]=r}};function L(e,t,i,s){var r,n,o,a;if(t1&&(e.result+=s.repeat("\n",t-1))}function j(e,t){var i,s,r=e.tag,n=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);0!==s&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,T(e,"tab characters must not be used in indentation")),45===s)&&B(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,P(e,!0,-1)&&e.lineIndent<=t)o.push(null),s=e.input.charCodeAt(e.position);else if(i=e.line,q(e,t,p,!1,!0),o.push(e.result),P(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>t)&&0!==s)T(e,"bad indentation of a sequence entry");else if(e.lineIndentt?_=1:e.lineIndent===t?_=0:e.lineIndentt?_=1:e.lineIndent===t?_=0:e.lineIndentt)&&(C&&(o=e.line,a=e.lineStart,c=e.position),q(e,t,A,!0,r)&&(C?f=e.result:E=e.result),C||(M(e,h,m,g,f,E,o,a,c),g=f=E=null),P(e,!0,-1),p=e.input.charCodeAt(e.position)),(e.line===n||e.lineIndent>t)&&0!==p)T(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===n?T(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?T(e,"repeat of an indentation width identifier"):(A=t+n-1,p=!0)}if(I(o)){do{o=e.input.charCodeAt(++e.position)}while(I(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!v(o)&&0!==o)}for(;0!==o;){for(U(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!p||e.lineIndentA&&(A=e.lineIndent),v(o))m++;else{if(e.lineIndent 0){for(r=o,n=0;r>0;r--)(o=b(a=e.input.charCodeAt(++e.position)))>=0?n=(n<<4)+o:T(e,"expected hexadecimal character");e.result+=x(n),e.position++}else T(e,"unknown escape sequence");i=s=e.position}else v(a)?(L(e,i,s,!0),V(e,P(e,!1,t)),i=s=e.position):e.position===e.lineStart&&G(e)?T(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}T(e,"unexpected end of the stream within a double quoted scalar")}(e,Q)?F=!0:function(e){var t,i,s;if(42!==(s=e.input.charCodeAt(e.position)))return!1;for(s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!B(s)&&!w(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&T(e,"name of an alias node must contain at least one character"),i=e.input.slice(t,e.position),a.call(e.anchorMap,i)||T(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],P(e,!0,-1),!0}(e)?(F=!0,null===e.tag&&null===e.anchor||T(e,"alias node should not have any properties")):function(e,t,i){var s,r,n,o,a,c,l,p,A=e.kind,u=e.result;if(B(p=e.input.charCodeAt(e.position))||w(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(B(s=e.input.charCodeAt(e.position+1))||i&&w(s)))return!1;for(e.kind="scalar",e.result="",r=n=e.position,o=!1;0!==p;){if(58===p){if(B(s=e.input.charCodeAt(e.position+1))||i&&w(s))break}else if(35===p){if(B(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&G(e)||i&&w(p))break;if(v(p)){if(a=e.line,c=e.lineStart,l=e.lineIndent,P(e,!1,-1),e.lineIndent>=t){o=!0,p=e.input.charCodeAt(e.position);continue}e.position=n,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(L(e,r,n,!1),V(e,e.line-a),r=n=e.position,o=!1),I(p)||(n=e.position+1),p=e.input.charCodeAt(++e.position)}return L(e,r,n,!1),!!e.result||(e.kind=A,e.result=u,!1)}(e,Q,c===i)&&(F=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===_&&(F=g&&j(e,S))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&T(e,'unacceptable node kind for !> tag; it should be "scalar", not "'+e.kind+'"'),f=0,E=e.implicitTypes.length;f"),null!==e.result&&y.kind!==e.kind&&T(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"'),y.resolve(e.result,e.tag)?(e.result=y.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):T(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||F}function Y(e){var t,i,s,r,n=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(P(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(o=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!B(r);)r=e.input.charCodeAt(++e.position);for(s=[],(i=e.input.slice(t,e.position)).length<1&&T(e,"directive name must not be less than one character in length");0!==r;){for(;I(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!v(r));break}if(v(r))break;for(t=e.position;0!==r&&!B(r);)r=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==r&&U(e),a.call(N,i)?N[i](e,i,s):F(e,'unknown document directive "'+i+'"')}P(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,P(e,!0,-1)):o&&T(e,"directives end mark is expected"),q(e,e.lineIndent-1,A,!1,!0),P(e,!0,-1),e.checkLineBreaks&&g.test(e.input.slice(n,e.position))&&F(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&G(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,P(e,!0,-1)):e.position{"use strict";var s=i(34699),r=i(95344);function n(e,t){var i=[];return e[t].forEach((function(e){var t=i.length;i.forEach((function(i,s){i.tag===e.tag&&i.kind===e.kind&&i.multi===e.multi&&(t=s)})),i[t]=e})),i}function o(e){return this.extend(e)}o.prototype.extend=function(e){var t=[],i=[];if(e instanceof r)i.push(e);else if(Array.isArray(e))i=i.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new s("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof r))throw new s("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new s("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new s("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),i.forEach((function(e){if(!(e instanceof r))throw new s("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var a=Object.create(o.prototype);return a.implicit=(this.implicit||[]).concat(t),a.explicit=(this.explicit||[]).concat(i),a.compiledImplicit=n(a,"implicit"),a.compiledExplicit=n(a,"explicit"),a.compiledTypeMap=function(){var e,t,i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function s(e){e.multi?(i.multi[e.kind].push(e),i.multi.fallback.push(e)):i[e.kind][e.tag]=i.fallback[e.tag]=e}for(e=0,t=arguments.length;e{"use strict";e.exports=i(74068)},66392:(e,t,i)=>{"use strict";e.exports=i(75243).extend({implicit:[i(26405),i(30945)],explicit:[i(3389),i(4868),i(97988),i(576)]})},69366:(e,t,i)=>{"use strict";var s=i(42459);e.exports=new s({explicit:[i(43432),i(56821),i(69274)]})},74068:(e,t,i)=>{"use strict";e.exports=i(69366).extend({implicit:[i(91237),i(93691),i(30492),i(25948)]})},25638:(e,t,i)=>{"use strict";var s=i(11392);function r(e,t,i,s,r){var n="",o="",a=Math.floor(r/2)-1;return s-t>a&&(t=s-a+(n=" ... ").length),i-s>a&&(i=s+a-(o=" ...").length),{str:n+e.slice(t,i).replace(/\t/g,"→")+o,pos:s-t+n.length}}function n(e,t){return s.repeat(" ",t-e.length)+e}e.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var i,o=/\r?\n|\r|\0/g,a=[0],c=[],l=-1;i=o.exec(e.buffer);)c.push(i.index),a.push(i.index+i[0].length),e.position<=i.index&&l<0&&(l=a.length-2);l<0&&(l=a.length-1);var p,A,u="",d=Math.min(e.line+t.linesAfter,c.length).toString().length,h=t.maxLength-(t.indent+d+3);for(p=1;p<=t.linesBefore&&!(l-p<0);p++)A=r(e.buffer,a[l-p],c[l-p],e.position-(a[l]-a[l-p]),h),u=s.repeat(" ",t.indent)+n((e.line-p+1).toString(),d)+" | "+A.str+"\n"+u;for(A=r(e.buffer,a[l],c[l],e.position,h),u+=s.repeat(" ",t.indent)+n((e.line+1).toString(),d)+" | "+A.str+"\n",u+=s.repeat("-",t.indent+d+3+A.pos)+"^\n",p=1;p<=t.linesAfter&&!(l+p>=c.length);p++)A=r(e.buffer,a[l+p],c[l+p],e.position-(a[l]-a[l+p]),h),u+=s.repeat(" ",t.indent)+n((e.line+p+1).toString(),d)+" | "+A.str+"\n";return u.replace(/\n$/,"")}},95344:(e,t,i)=>{"use strict";var s=i(34699),r=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];e.exports=function(e,t){var i,o;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===r.indexOf(t))throw new s('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(i=t.styleAliases||null,o={},null!==i&&Object.keys(i).forEach((function(e){i[e].forEach((function(t){o[String(t)]=e}))})),o),-1===n.indexOf(this.kind))throw new s('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},3389:(e,t,i)=>{"use strict";var s=i(95344),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new s("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,i,s=0,n=e.length,o=r;for(i=0;i64)){if(t<0)return!1;s+=6}return s%8==0},construct:function(e){var t,i,s=e.replace(/[\r\n=]/g,""),n=s.length,o=r,a=0,c=[];for(t=0;t>16&255),c.push(a>>8&255),c.push(255&a)),a=a<<6|o.indexOf(s.charAt(t));return 0==(i=n%4*6)?(c.push(a>>16&255),c.push(a>>8&255),c.push(255&a)):18===i?(c.push(a>>10&255),c.push(a>>2&255)):12===i&&c.push(a>>4&255),new Uint8Array(c)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,i,s="",n=0,o=e.length,a=r;for(t=0;t>18&63],s+=a[n>>12&63],s+=a[n>>6&63],s+=a[63&n]),n=(n<<8)+e[t];return 0==(i=o%3)?(s+=a[n>>18&63],s+=a[n>>12&63],s+=a[n>>6&63],s+=a[63&n]):2===i?(s+=a[n>>10&63],s+=a[n>>4&63],s+=a[n<<2&63],s+=a[64]):1===i&&(s+=a[n>>2&63],s+=a[n<<4&63],s+=a[64],s+=a[64]),s}})},93691:(e,t,i)=>{"use strict";var s=i(95344);e.exports=new s("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},25948:(e,t,i)=>{"use strict";var s=i(11392),r=i(95344),n=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),o=/^[-+]?[0-9]+e/;e.exports=new r("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!n.test(e)||"_"===e[e.length-1])},construct:function(e){var t,i;return i="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===i?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:i*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||s.isNegativeZero(e))},represent:function(e,t){var i;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(s.isNegativeZero(e))return"-0.0";return i=e.toString(10),o.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"})},30492:(e,t,i)=>{"use strict";var s=i(11392),r=i(95344);function n(e){return 48<=e&&e<=55}function o(e){return 48<=e&&e<=57}e.exports=new r("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,i,s=e.length,r=0,a=!1;if(!s)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===s)return!0;if("b"===(t=e[++r])){for(r++;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},69274:(e,t,i)=>{"use strict";var s=i(95344);e.exports=new s("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},30945:(e,t,i)=>{"use strict";var s=i(95344);e.exports=new s("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},91237:(e,t,i)=>{"use strict";var s=i(95344);e.exports=new s("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},4868:(e,t,i)=>{"use strict";var s=i(95344),r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=new s("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,i,s,o,a,c=[],l=e;for(t=0,i=l.length;t{"use strict";var s=i(95344),r=Object.prototype.toString;e.exports=new s("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,i,s,n,o,a=e;for(o=new Array(a.length),t=0,i=a.length;t{"use strict";var s=i(95344);e.exports=new s("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},576:(e,t,i)=>{"use strict";var s=i(95344),r=Object.prototype.hasOwnProperty;e.exports=new s("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,i=e;for(t in i)if(r.call(i,t)&&null!==i[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},43432:(e,t,i)=>{"use strict";var s=i(95344);e.exports=new s("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},26405:(e,t,i)=>{"use strict";var s=i(95344),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new s("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==r.exec(e)||null!==n.exec(e))},construct:function(e){var t,i,s,o,a,c,l,p,A=0,u=null;if(null===(t=r.exec(e))&&(t=n.exec(e)),null===t)throw new Error("Date resolve error");if(i=+t[1],s=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(i,s,o));if(a=+t[4],c=+t[5],l=+t[6],t[7]){for(A=t[7].slice(0,3);A.length<3;)A+="0";A=+A}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),p=new Date(Date.UTC(i,s,o,a,c,l,A)),u&&p.setTime(p.getTime()-u),p},instanceOf:Date,represent:function(e){return e.toISOString()}})},79049:e=>{var t=Object.prototype.toString;function i(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var s=typeof e;if("boolean"===s)return"boolean";if("string"===s)return"string";if("number"===s)return"number";if("symbol"===s)return"symbol";if("function"===s)return"GeneratorFunction"===i(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){return!(!e.constructor||"function"!=typeof e.constructor.isBuffer)&&e.constructor.isBuffer(e)}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(i(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(s=t.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return s.slice(8,-1).toLowerCase().replace(/\s/g,"")}},6853:(e,t,i)=>{"use strict";const s=i(47309),r=i(5881),n={info:s.blue("ℹ"),success:s.green("✔"),warning:s.yellow("⚠"),error:s.red("✖")},o={info:s.blue("i"),success:s.green("√"),warning:s.yellow("‼"),error:s.red("×")};e.exports=r()?n:o},29416:(e,t,i)=>{"use strict";const s=i(87406),r=Symbol("max"),n=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),p=Symbol("noDisposeOnSet"),A=Symbol("lruList"),u=Symbol("cache"),d=Symbol("updateAgeOnGet"),h=()=>1,m=(e,t,i)=>{const s=e[u].get(t);if(s){const t=s.value;if(g(e,t)){if(E(e,s),!e[a])return}else i&&(e[d]&&(s.value.now=Date.now()),e[A].unshiftNode(s));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const i=Date.now()-t.now;return t.maxAge?i>t.maxAge:e[c]&&i>e[c]},f=e=>{if(e[n]>e[r])for(let t=e[A].tail;e[n]>e[r]&&null!==t;){const i=t.prev;E(e,t),t=i}},E=(e,t)=>{if(t){const i=t.value;e[l]&&e[l](i.key,i.value),e[n]-=i.length,e[u].delete(i.key),e[A].removeNode(t)}};class C{constructor(e,t,i,s,r){this.key=e,this.value=t,this.length=i,this.now=s,this.maxAge=r||0}}const y=(e,t,i,s)=>{let r=i.value;g(e,r)&&(E(e,i),e[a]||(r=void 0)),r&&t.call(s,r.value,r.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[r]=e.max||1/0;const t=e.length||h;if(this[o]="function"!=typeof t?h:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[p]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[r]=e||1/0,f(this)}get max(){return this[r]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,f(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[o]&&(this[o]=e,this[n]=0,this[A].forEach((e=>{e.length=this[o](e.value,e.key),this[n]+=e.length}))),f(this)}get lengthCalculator(){return this[o]}get length(){return this[n]}get itemCount(){return this[A].length}rforEach(e,t){t=t||this;for(let i=this[A].tail;null!==i;){const s=i.prev;y(this,e,i,t),i=s}}forEach(e,t){t=t||this;for(let i=this[A].head;null!==i;){const s=i.next;y(this,e,i,t),i=s}}keys(){return this[A].toArray().map((e=>e.key))}values(){return this[A].toArray().map((e=>e.value))}reset(){this[l]&&this[A]&&this[A].length&&this[A].forEach((e=>this[l](e.key,e.value))),this[u]=new Map,this[A]=new s,this[n]=0}dump(){return this[A].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[A]}set(e,t,i){if((i=i||this[c])&&"number"!=typeof i)throw new TypeError("maxAge must be a number");const s=i?Date.now():0,a=this[o](t,e);if(this[u].has(e)){if(a>this[r])return E(this,this[u].get(e)),!1;const o=this[u].get(e).value;return this[l]&&(this[p]||this[l](e,o.value)),o.now=s,o.maxAge=i,o.value=t,this[n]+=a-o.length,o.length=a,this.get(e),f(this),!0}const d=new C(e,t,a,s,i);return d.length>this[r]?(this[l]&&this[l](e,t),!1):(this[n]+=d.length,this[A].unshift(d),this[u].set(e,this[A].head),f(this),!0)}has(e){if(!this[u].has(e))return!1;const t=this[u].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[A].tail;return e?(E(this,e),e.value):null}del(e){E(this,this[u].get(e))}load(e){this.reset();const t=Date.now();for(let i=e.length-1;i>=0;i--){const s=e[i],r=s.e||0;if(0===r)this.set(s.k,s.v);else{const e=r-t;e>0&&this.set(s.k,s.v,e)}}}prune(){this[u].forEach(((e,t)=>m(this,t,!1)))}}},69759:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i extends Error{}class s extends i{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class r extends i{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class n extends i{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class o extends i{}class a extends i{constructor(e){super(`Invalid unit ${e}`)}}class c extends i{}class l extends i{constructor(){super("Zone is an abstract class")}}const p="numeric",A="short",u="long",d={year:p,month:p,day:p},h={year:p,month:A,day:p},m={year:p,month:A,day:p,weekday:A},g={year:p,month:u,day:p},f={year:p,month:u,day:p,weekday:u},E={hour:p,minute:p},C={hour:p,minute:p,second:p},y={hour:p,minute:p,second:p,timeZoneName:A},v={hour:p,minute:p,second:p,timeZoneName:u},I={hour:p,minute:p,hourCycle:"h23"},B={hour:p,minute:p,second:p,hourCycle:"h23"},w={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:A},b={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:u},Q={year:p,month:p,day:p,hour:p,minute:p},x={year:p,month:p,day:p,hour:p,minute:p,second:p},k={year:p,month:A,day:p,hour:p,minute:p},D={year:p,month:A,day:p,hour:p,minute:p,second:p},S={year:p,month:A,day:p,weekday:A,hour:p,minute:p},_={year:p,month:u,day:p,hour:p,minute:p,timeZoneName:A},R={year:p,month:u,day:p,hour:p,minute:p,second:p,timeZoneName:A},T={year:p,month:u,day:p,weekday:u,hour:p,minute:p,timeZoneName:u},F={year:p,month:u,day:p,weekday:u,hour:p,minute:p,second:p,timeZoneName:u};class N{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(e,t){throw new l}formatOffset(e,t){throw new l}offset(e){throw new l}equals(e){throw new l}get isValid(){throw new l}}let L=null;class O extends N{static get instance(){return null===L&&(L=new O),L}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return $e(e,t,i)}formatOffset(e,t){return et(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let M={};const U={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let P={};class G extends N{static create(e){return P[e]||(P[e]=new G(e)),P[e]}static resetCache(){P={},M={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=G.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return $e(e,t,i,this.name)}formatOffset(e,t){return et(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const i=(s=this.name,M[s]||(M[s]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:s,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),M[s]);var s;let[r,n,o,a,c,l,p]=i.formatToParts?function(e,t){const i=e.formatToParts(t),s=[];for(let e=0;e=0?u:1e3+u,(qe({year:r,month:n,day:o,hour:24===c?0:c,minute:l,second:p,millisecond:0})-A)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let V={},j={};function H(e,t={}){const i=JSON.stringify([e,t]);let s=j[i];return s||(s=new Intl.DateTimeFormat(e,t),j[i]=s),s}let J={},q={},Y=null,W={};function z(e,t,i,s){const r=e.listingMode();return"error"===r?null:"en"===r?i(t):s(t)}class ${constructor(e,t,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:r,...n}=i;if(!t||Object.keys(n).length>0){const t={useGrouping:!1,...i};i.padTo>0&&(t.minimumIntegerDigits=i.padTo),this.inf=function(e,t={}){const i=JSON.stringify([e,t]);let s=J[i];return s||(s=new Intl.NumberFormat(e,t),J[i]=s),s}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Me(this.floor?Math.floor(e):Ve(e,3),this.padTo)}}class X{constructor(e,t,i){let s;if(this.opts=i,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,i=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&G.create(i).valid?(s=i,this.dt=e):(s="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const r={...this.opts};r.timeZone=r.timeZone||s,this.dtf=H(t,r)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class K{constructor(e,t,i){this.opts={style:"long",...i},!t&&Re()&&(this.rtf=function(e,t={}){const{base:i,...s}=t,r=JSON.stringify([e,s]);let n=q[r];return n||(n=new Intl.RelativeTimeFormat(e,t),q[r]=n),n}(e,i))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,i="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===i&&n){const i="days"===e;switch(t){case 1:return i?"tomorrow":`next ${r[e][0]}`;case-1:return i?"yesterday":`last ${r[e][0]}`;case 0:return i?"today":`this ${r[e][0]}`}}const o=Object.is(t,-0)||t<0,a=Math.abs(t),c=1===a,l=r[e],p=s?c?l[1]:l[2]||l[1]:c?r[e][0]:e;return o?`${a} ${p} ago`:`in ${a} ${p}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Z={firstDay:1,minimalDays:4,weekend:[6,7]};class ee{static fromOpts(e){return ee.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,i,s,r=!1){const n=e||de.defaultLocale,o=n||(r?"en-US":Y||(Y=(new Intl.DateTimeFormat).resolvedOptions().locale,Y)),a=t||de.defaultNumberingSystem,c=i||de.defaultOutputCalendar,l=Le(s)||de.defaultWeekSettings;return new ee(o,a,c,l,n)}static resetCache(){Y=null,j={},J={},q={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:i,weekSettings:s}={}){return ee.create(e,t,i,s)}constructor(e,t,i,s,r){const[n,o,a]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const i=e.indexOf("-u-");if(-1===i)return[e];{let t,s;try{t=H(e).resolvedOptions(),s=e}catch(r){const n=e.substring(0,i);t=H(n).resolvedOptions(),s=n}const{numberingSystem:r,calendar:n}=t;return[s,r,n]}}(e);this.locale=n,this.numberingSystem=t||o||null,this.outputCalendar=i||a||null,this.weekSettings=s,this.intl=function(e,t,i){return i||t?(e.includes("-u-")||(e+="-u"),i&&(e+=`-ca-${i}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?ee.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Le(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return z(this,e,nt,(()=>{const i=t?{month:e,day:"numeric"}:{month:e},s=t?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=function(e){const t=[];for(let i=1;i<=12;i++){const s=os.utc(2009,i,1);t.push(e(s))}return t}((e=>this.extract(e,i,"month")))),this.monthsCache[s][e]}))}weekdays(e,t=!1){return z(this,e,lt,(()=>{const i=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=t?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=function(e){const t=[];for(let i=1;i<=7;i++){const s=os.utc(2016,11,13+i);t.push(e(s))}return t}((e=>this.extract(e,i,"weekday")))),this.weekdaysCache[s][e]}))}meridiems(){return z(this,void 0,(()=>pt),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[os.utc(2016,11,13,9),os.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return z(this,e,ht,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[os.utc(-40,1,1),os.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,i){const s=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===i));return s?s.value:null}numberFormatter(e={}){return new $(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new X(e,this.intl,t)}relFormatter(e={}){return new K(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const i=JSON.stringify([e,t]);let s=V[i];return s||(s=new Intl.ListFormat(e,t),V[i]=s),s}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Te()?function(e){let t=W[e];if(!t){const i=new Intl.Locale(e);t="getWeekInfo"in i?i.getWeekInfo():i.weekInfo,W[e]=t}return t}(this.locale):Z}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let te=null;class ie extends N{static get utcInstance(){return null===te&&(te=new ie(0)),te}static instance(e){return 0===e?ie.utcInstance:new ie(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ie(Xe(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${et(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${et(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return et(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class se extends N{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function re(e,t){if(De(e)||null===e)return t;if(e instanceof N)return e;if("string"==typeof e){const i=e.toLowerCase();return"default"===i?t:"local"===i||"system"===i?O.instance:"utc"===i||"gmt"===i?ie.utcInstance:ie.parseSpecifier(i)||G.create(e)}return Se(e)?ie.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new se(e)}let ne,oe=()=>Date.now(),ae="system",ce=null,le=null,pe=null,Ae=60,ue=null;class de{static get now(){return oe}static set now(e){oe=e}static set defaultZone(e){ae=e}static get defaultZone(){return re(ae,O.instance)}static get defaultLocale(){return ce}static set defaultLocale(e){ce=e}static get defaultNumberingSystem(){return le}static set defaultNumberingSystem(e){le=e}static get defaultOutputCalendar(){return pe}static set defaultOutputCalendar(e){pe=e}static get defaultWeekSettings(){return ue}static set defaultWeekSettings(e){ue=Le(e)}static get twoDigitCutoffYear(){return Ae}static set twoDigitCutoffYear(e){Ae=e%100}static get throwOnInvalid(){return ne}static set throwOnInvalid(e){ne=e}static resetCaches(){ee.resetCache(),G.resetCache()}}class he{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const me=[0,31,59,90,120,151,181,212,243,273,304,334],ge=[0,31,60,91,121,152,182,213,244,274,305,335];function fe(e,t){return new he("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Ee(e,t,i){const s=new Date(Date.UTC(e,t-1,i));e<100&&e>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return 0===r?7:r}function Ce(e,t,i){return i+(je(e)?ge:me)[t-1]}function ye(e,t){const i=je(e)?ge:me,s=i.findIndex((e=>eWe(s,t,i)?(c=s+1,l=1):c=s,{weekYear:c,weekNumber:l,weekday:a,...tt(e)}}function Be(e,t=4,i=1){const{weekYear:s,weekNumber:r,weekday:n}=e,o=ve(Ee(s,1,t),i),a=He(s);let c,l=7*r+n-o-7+t;l<1?(c=s-1,l+=He(c)):l>a?(c=s+1,l-=He(s)):c=s;const{month:p,day:A}=ye(c,l);return{year:c,month:p,day:A,...tt(e)}}function we(e){const{year:t,month:i,day:s}=e;return{year:t,ordinal:Ce(t,i,s),...tt(e)}}function be(e){const{year:t,ordinal:i}=e,{month:s,day:r}=ye(t,i);return{year:t,month:s,day:r,...tt(e)}}function Qe(e,t){if(!De(e.localWeekday)||!De(e.localWeekNumber)||!De(e.localWeekYear)){if(!De(e.weekday)||!De(e.weekNumber)||!De(e.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return De(e.localWeekday)||(e.weekday=e.localWeekday),De(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),De(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function xe(e){const t=_e(e.year),i=Oe(e.month,1,12),s=Oe(e.day,1,Je(e.year,e.month));return t?i?!s&&fe("day",e.day):fe("month",e.month):fe("year",e.year)}function ke(e){const{hour:t,minute:i,second:s,millisecond:r}=e,n=Oe(t,0,23)||24===t&&0===i&&0===s&&0===r,o=Oe(i,0,59),a=Oe(s,0,59),c=Oe(r,0,999);return n?o?a?!c&&fe("millisecond",r):fe("second",s):fe("minute",i):fe("hour",t)}function De(e){return void 0===e}function Se(e){return"number"==typeof e}function _e(e){return"number"==typeof e&&e%1==0}function Re(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Te(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Fe(e,t,i){if(0!==e.length)return e.reduce(((e,s)=>{const r=[t(s),s];return e&&i(e[0],r[0])===e[0]?e:r}),null)[1]}function Ne(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e){if(null==e)return null;if("object"!=typeof e)throw new c("Week settings must be an object");if(!Oe(e.firstDay,1,7)||!Oe(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Oe(e,1,7))))throw new c("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Oe(e,t,i){return _e(e)&&e>=t&&e<=i}function Me(e,t=2){let i;return i=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),i}function Ue(e){return De(e)||null===e||""===e?void 0:parseInt(e,10)}function Pe(e){return De(e)||null===e||""===e?void 0:parseFloat(e)}function Ge(e){if(!De(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Ve(e,t,i=!1){const s=10**t;return(i?Math.trunc:Math.round)(e*s)/s}function je(e){return e%4==0&&(e%100!=0||e%400==0)}function He(e){return je(e)?366:365}function Je(e,t){const i=(s=t-1)-12*Math.floor(s/12)+1;var s;return 2===i?je(e+(t-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function qe(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Ye(e,t,i){return-ve(Ee(e,1,t),i)+t-1}function We(e,t=4,i=1){const s=Ye(e,t,i),r=Ye(e+1,t,i);return(He(e)-s+r)/7}function ze(e){return e>99?e:e>de.twoDigitCutoffYear?1900+e:2e3+e}function $e(e,t,i,s=null){const r=new Date(e),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(n.timeZone=s);const o={timeZoneName:t,...n},a=new Intl.DateTimeFormat(i,o).formatToParts(r).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function Xe(e,t){let i=parseInt(e,10);Number.isNaN(i)&&(i=0);const s=parseInt(t,10)||0;return 60*i+(i<0||Object.is(i,-0)?-s:s)}function Ke(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new c(`Invalid unit value ${e}`);return t}function Ze(e,t){const i={};for(const s in e)if(Ne(e,s)){const r=e[s];if(null==r)continue;i[t(s)]=Ke(r)}return i}function et(e,t){const i=Math.trunc(Math.abs(e/60)),s=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${Me(i,2)}:${Me(s,2)}`;case"narrow":return`${r}${i}${s>0?`:${s}`:""}`;case"techie":return`${r}${Me(i,2)}${Me(s,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function tt(e){return function(e,t){return["hour","minute","second","millisecond"].reduce(((t,i)=>(t[i]=e[i],t)),{})}(e)}const it=["January","February","March","April","May","June","July","August","September","October","November","December"],st=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rt=["J","F","M","A","M","J","J","A","S","O","N","D"];function nt(e){switch(e){case"narrow":return[...rt];case"short":return[...st];case"long":return[...it];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ot=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],at=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ct=["M","T","W","T","F","S","S"];function lt(e){switch(e){case"narrow":return[...ct];case"short":return[...at];case"long":return[...ot];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const pt=["AM","PM"],At=["Before Christ","Anno Domini"],ut=["BC","AD"],dt=["B","A"];function ht(e){switch(e){case"narrow":return[...dt];case"short":return[...ut];case"long":return[...At];default:return null}}function mt(e,t){let i="";for(const s of e)s.literal?i+=s.val:i+=t(s.val);return i}const gt={D:d,DD:h,DDD:g,DDDD:f,t:E,tt:C,ttt:y,tttt:v,T:I,TT:B,TTT:w,TTTT:b,f:Q,ff:k,fff:_,ffff:T,F:x,FF:D,FFF:R,FFFF:F};class ft{static create(e,t={}){return new ft(e,t)}static parseFormat(e){let t=null,i="",s=!1;const r=[];for(let n=0;n0&&r.push({literal:s||/^\s+$/.test(i),val:i}),t=null,i="",s=!s):s||o===t?i+=o:(i.length>0&&r.push({literal:/^\s+$/.test(i),val:i}),i=o,t=o)}return i.length>0&&r.push({literal:s||/^\s+$/.test(i),val:i}),r}static macroTokenToFormatOpts(e){return gt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Me(e,t);const i={...this.opts};return t>0&&(i.padTo=t),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){const i="en"===this.loc.listingMode(),s=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(t,i)=>this.loc.extract(e,t,i),n=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",o=(t,s)=>i?function(e,t){return nt(t)[e.month-1]}(e,t):r(s?{month:t}:{month:t,day:"numeric"},"month"),a=(t,s)=>i?function(e,t){return lt(t)[e.weekday-1]}(e,t):r(s?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),c=t=>{const i=ft.macroTokenToFormatOpts(t);return i?this.formatWithSystemDefault(e,i):t},l=t=>i?function(e,t){return ht(t)[e.year<0?0:1]}(e,t):r({era:t},"era");return mt(ft.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return n({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return n({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return n({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return i?function(e){return pt[e.hour<12?0:1]}(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return s?r({day:"numeric"},"day"):this.num(e.day);case"dd":return s?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return a("short",!0);case"cccc":return a("long",!0);case"ccccc":return a("narrow",!0);case"EEE":return a("short",!1);case"EEEE":return a("long",!1);case"EEEEE":return a("narrow",!1);case"L":return s?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return s?r({month:"numeric"},"month"):this.num(e.month);case"MM":return s?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return s?r({year:"numeric"},"year"):this.num(e.year);case"yy":return s?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(t)}}))}formatDurationFromString(e,t){const i=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=ft.parseFormat(t),r=s.reduce(((e,{literal:t,val:i})=>t?e:e.concat(i)),[]);return mt(s,(e=>t=>{const s=i(t);return s?this.num(e.get(s),t.length):t})(e.shiftTo(...r.map(i).filter((e=>e)))))}}const Et=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ct(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function yt(...e){return t=>e.reduce((([e,i,s],r)=>{const[n,o,a]=r(t,s);return[{...e,...n},o||i,a]}),[{},null,1]).slice(0,2)}function vt(e,...t){if(null==e)return[null,null];for(const[i,s]of t){const t=i.exec(e);if(t)return s(t)}return[null,null]}function It(...e){return(t,i)=>{const s={};let r;for(r=0;rvoid 0!==e&&(t||e&&p)?-e:e;return[{years:u(Pe(i)),months:u(Pe(s)),weeks:u(Pe(r)),days:u(Pe(n)),hours:u(Pe(o)),minutes:u(Pe(a)),seconds:u(Pe(c),"-0"===c),milliseconds:u(Ge(l),A)}]}const Mt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ut(e,t,i,s,r,n,o){const a={year:2===t.length?ze(Ue(t)):Ue(t),month:st.indexOf(i)+1,day:Ue(s),hour:Ue(r),minute:Ue(n)};return o&&(a.second=Ue(o)),e&&(a.weekday=e.length>3?ot.indexOf(e)+1:at.indexOf(e)+1),a}const Pt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Gt(e){const[,t,i,s,r,n,o,a,c,l,p,A]=e,u=Ut(t,r,s,i,n,o,a);let d;return d=c?Mt[c]:l?0:Xe(p,A),[u,new ie(d)]}const Vt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,jt=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ht=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Jt(e){const[,t,i,s,r,n,o,a]=e;return[Ut(t,r,s,i,n,o,a),ie.utcInstance]}function qt(e){const[,t,i,s,r,n,o,a]=e;return[Ut(t,a,i,s,r,n,o),ie.utcInstance]}const Yt=Ct(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Qt),Wt=Ct(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Qt),zt=Ct(/(\d{4})-?(\d{3})/,Qt),$t=Ct(bt),Xt=yt((function(e,t){return[{year:_t(e,t),month:_t(e,t+1,1),day:_t(e,t+2,1)},null,t+3]}),Rt,Tt,Ft),Kt=yt(xt,Rt,Tt,Ft),Zt=yt(kt,Rt,Tt,Ft),ei=yt(Rt,Tt,Ft),ti=yt(Rt),ii=Ct(/(\d{4})-(\d\d)-(\d\d)/,St),si=Ct(Dt),ri=yt(Rt,Tt,Ft),ni="Invalid Duration",oi={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},ai={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...oi},ci={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...oi},li=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],pi=li.slice(0).reverse();function Ai(e,t,i=!1){const s={values:i?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new hi(s)}function ui(e,t){var i;let s=null!=(i=t.milliseconds)?i:0;for(const i of pi.slice(1))t[i]&&(s+=t[i]*e[i].milliseconds);return s}function di(e,t){const i=ui(e,t)<0?-1:1;li.reduceRight(((s,r)=>{if(De(t[r]))return s;if(s){const n=t[s]*i,o=e[r][s],a=Math.floor(n/o);t[r]+=a*i,t[s]-=a*o*i}return r}),null),li.reduce(((i,s)=>{if(De(t[s]))return i;if(i){const r=t[i]%1;t[i]-=r,t[s]+=r*e[i][s]}return s}),null)}class hi{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let i=t?ci:ai;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||ee.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,t){return hi.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new c("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new hi({values:Ze(e,hi.normalizeUnit),loc:ee.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Se(e))return hi.fromMillis(e);if(hi.isDuration(e))return e;if("object"==typeof e)return hi.fromObject(e);throw new c(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[i]=function(e){return vt(e,[Lt,Ot])}(e);return i?hi.fromObject(i,t):hi.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[i]=function(e){return vt(e,[Nt,ti])}(e);return i?hi.fromObject(i,t):hi.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new c("need to specify a reason the Duration is invalid");const i=e instanceof he?e:new he(e,t);if(de.throwOnInvalid)throw new n(i);return new hi({invalid:i})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new a(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const i={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?ft.create(this.loc,i).formatDurationFromString(this,e):ni}toHuman(e={}){if(!this.isValid)return ni;const t=li.map((t=>{const i=this.values[t];return De(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(i)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=Ve(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},os.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?ui(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=hi.fromDurationLike(e),i={};for(const e of li)(Ne(t.values,e)||Ne(this.values,e))&&(i[e]=t.get(e)+this.get(e));return Ai(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const t=hi.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const i of Object.keys(this.values))t[i]=Ke(e(this.values[i],i));return Ai(this,{values:t},!0)}get(e){return this[hi.normalizeUnit(e)]}set(e){return this.isValid?Ai(this,{values:{...this.values,...Ze(e,hi.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:i,matrix:s}={}){return Ai(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:s,conversionAccuracy:i})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return di(this.matrix,e),Ai(this,{values:e},!0)}rescale(){return this.isValid?Ai(this,{values:function(e){const t={};for(const[i,s]of Object.entries(e))0!==s&&(t[i]=s);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>hi.normalizeUnit(e)));const t={},i={},s=this.toObject();let r;for(const n of li)if(e.indexOf(n)>=0){r=n;let e=0;for(const t in i)e+=this.matrix[t][n]*i[t],i[t]=0;Se(s[n])&&(e+=s[n]);const o=Math.trunc(e);t[n]=o,i[n]=(1e3*e-1e3*o)/1e3}else Se(s[n])&&(i[n]=s[n]);for(const e in i)0!==i[e]&&(t[r]+=e===r?i[e]:i[e]/this.matrix[r][e]);return di(this.matrix,t),Ai(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Ai(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const s of li)if(t=this.values[s],i=e.values[s],!(void 0===t||0===t?void 0===i||0===i:t===i))return!1;var t,i;return!0}}const mi="Invalid Interval";class gi{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new c("need to specify a reason the Interval is invalid");const i=e instanceof he?e:new he(e,t);if(de.throwOnInvalid)throw new r(i);return new gi({invalid:i})}static fromDateTimes(e,t){const i=as(e),s=as(t),r=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?gi.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(as).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),i=[];let{s}=this,r=0;for(;s+this.e?this.e:e;i.push(gi.fromDateTimes(s,n)),s=n,r+=1}return i}splitBy(e){const t=hi.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let i,{s}=this,r=1;const n=[];for(;se*r)));i=+e>+this.e?this.e:e,n.push(gi.fromDateTimes(s,i)),s=i,r+=1}return n}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,i=this.e=i?null:gi.fromDateTimes(t,i)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return gi.fromDateTimes(t,i)}static merge(e){const[t,i]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],i)=>t?t.overlaps(i)||t.abutsStart(i)?[e,t.union(i)]:[e.concat([t]),i]:[e,i]),[[],null]);return i&&t.push(i),t}static xor(e){let t=null,i=0;const s=[],r=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),n=Array.prototype.concat(...r).sort(((e,t)=>e.time-t.time));for(const e of n)i+="s"===e.type?1:-1,1===i?t=e.time:(t&&+t!=+e.time&&s.push(gi.fromDateTimes(t,e.time)),t=null);return gi.merge(s)}difference(...e){return gi.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:mi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=d,t={}){return this.isValid?ft.create(this.s.loc.clone(t),e).formatInterval(this):mi}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:mi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:mi}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:mi}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:mi}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):hi.invalid(this.invalidReason)}mapEndpoints(e){return gi.fromDateTimes(e(this.s),e(this.e))}}class fi{static hasDST(e=de.defaultZone){const t=os.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return G.isValidZone(e)}static normalizeZone(e){return re(e,de.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||ee.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||ee.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||ee.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||ee.create(t,i,r)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||ee.create(t,i,r)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null}={}){return(s||ee.create(t,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null}={}){return(s||ee.create(t,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return ee.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return ee.create(t,null,"gregory").eras(e)}static features(){return{relative:Re(),localeWeek:Te()}}}function Ei(e,t){const i=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=i(t)-i(e);return Math.floor(hi.fromMillis(s).as("days"))}const Ci={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},yi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},vi=Ci.hanidec.replace(/[\[|\]]/g,"").split("");function Ii({numberingSystem:e},t=""){return new RegExp(`${Ci[e||"latn"]}${t}`)}function Bi(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let i=0;i=i&&s<=r&&(t+=s-i)}}return parseInt(t,10)}return t}(e))}}const wi=`[ ${String.fromCharCode(160)}]`,bi=new RegExp(wi,"g");function Qi(e){return e.replace(/\./g,"\\.?").replace(bi,wi)}function xi(e){return e.replace(/\./g,"").replace(bi," ").toLowerCase()}function ki(e,t){return null===e?null:{regex:RegExp(e.map(Qi).join("|")),deser:([i])=>e.findIndex((e=>xi(i)===xi(e)))+t}}function Di(e,t){return{regex:e,deser:([,e,t])=>Xe(e,t),groups:t}}function Si(e){return{regex:e,deser:([e])=>e}}const _i={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Ri=null;function Ti(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const i=Ni(ft.macroTokenToFormatOpts(e.val),t);return null==i||i.includes(void 0)?e:i}(e,t))))}function Fi(e,t,i){const s=Ti(ft.parseFormat(i),e),r=s.map((t=>function(e,t){const i=Ii(t),s=Ii(t,"{2}"),r=Ii(t,"{3}"),n=Ii(t,"{4}"),o=Ii(t,"{6}"),a=Ii(t,"{1,2}"),c=Ii(t,"{1,3}"),l=Ii(t,"{1,6}"),p=Ii(t,"{1,9}"),A=Ii(t,"{2,4}"),u=Ii(t,"{4,6}"),d=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},h=(h=>{if(e.literal)return d(h);switch(h.val){case"G":return ki(t.eras("short"),0);case"GG":return ki(t.eras("long"),0);case"y":return Bi(l);case"yy":case"kk":return Bi(A,ze);case"yyyy":case"kkkk":return Bi(n);case"yyyyy":return Bi(u);case"yyyyyy":return Bi(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Bi(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Bi(s);case"MMM":return ki(t.months("short",!0),1);case"MMMM":return ki(t.months("long",!0),1);case"LLL":return ki(t.months("short",!1),1);case"LLLL":return ki(t.months("long",!1),1);case"o":case"S":return Bi(c);case"ooo":case"SSS":return Bi(r);case"u":return Si(p);case"uu":return Si(a);case"uuu":case"E":case"c":return Bi(i);case"a":return ki(t.meridiems(),0);case"EEE":return ki(t.weekdays("short",!1),1);case"EEEE":return ki(t.weekdays("long",!1),1);case"ccc":return ki(t.weekdays("short",!0),1);case"cccc":return ki(t.weekdays("long",!0),1);case"Z":case"ZZ":return Di(new RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return Di(new RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return Si(/[a-z_+-/]{1,256}?/i);case" ":return Si(/[^\S\n\r]/);default:return d(h)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return h.token=e,h}(t,e))),n=r.find((e=>e.invalidReason));if(n)return{input:t,tokens:s,invalidReason:n.invalidReason};{const[e,i]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(r),n=RegExp(e,"i"),[a,c]=function(e,t,i){const s=e.match(t);if(s){const e={};let t=1;for(const r in i)if(Ne(i,r)){const n=i[r],o=n.groups?n.groups+1:1;!n.literal&&n.token&&(e[n.token.val[0]]=n.deser(s.slice(t,t+o))),t+=o}return[s,e]}return[s,{}]}(t,n,i),[l,p,A]=c?function(e){let t,i=null;return De(e.z)||(i=G.create(e.z)),De(e.Z)||(i||(i=new ie(e.Z)),t=e.Z),De(e.q)||(e.M=3*(e.q-1)+1),De(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),De(e.u)||(e.S=Ge(e.u)),[Object.keys(e).reduce(((t,i)=>{const s=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(i);return s&&(t[s]=e[i]),t}),{}),i,t]}(c):[null,null,void 0];if(Ne(c,"a")&&Ne(c,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:s,regex:n,rawMatches:a,matches:c,result:l,zone:p,specificOffset:A}}}function Ni(e,t){if(!e)return null;const i=ft.create(t,e).dtFormatter((Ri||(Ri=os.fromMillis(1555555555555)),Ri)),s=i.formatToParts(),r=i.resolvedOptions();return s.map((t=>function(e,t,i){const{type:s,value:r}=e;if("literal"===s){const e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}const n=t[s];let o=s;"hour"===s&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":i.hour12?"hour12":"hour24");let a=_i[o];if("object"==typeof a&&(a=a[n]),a)return{literal:!1,val:a}}(t,e,r)))}const Li="Invalid DateTime",Oi=864e13;function Mi(e){return new he("unsupported zone",`the zone "${e.name}" is not supported`)}function Ui(e){return null===e.weekData&&(e.weekData=Ie(e.c)),e.weekData}function Pi(e){return null===e.localWeekData&&(e.localWeekData=Ie(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Gi(e,t){const i={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new os({...i,...t,old:i})}function Vi(e,t,i){let s=e-60*t*1e3;const r=i.offset(s);if(t===r)return[s,t];s-=60*(r-t)*1e3;const n=i.offset(s);return r===n?[s,r]:[e-60*Math.min(r,n)*1e3,Math.max(r,n)]}function ji(e,t){const i=new Date(e+=60*t*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Hi(e,t,i){return Vi(qe(e),t,i)}function Ji(e,t){const i=e.o,s=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),n={...e.c,year:s,month:r,day:Math.min(e.c.day,Je(s,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=hi.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=qe(n);let[c,l]=Vi(a,i,e.zone);return 0!==o&&(c+=o,l=e.zone.offset(c)),{ts:c,o:l}}function qi(e,t,i,s,r,n){const{setZone:o,zone:a}=i;if(e&&0!==Object.keys(e).length||t){const s=t||a,r=os.fromObject(e,{...i,zone:s,specificOffset:n});return o?r:r.setZone(a)}return os.invalid(new he("unparsable",`the input "${r}" can't be parsed as ${s}`))}function Yi(e,t,i=!0){return e.isValid?ft.create(ee.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Wi(e,t){const i=e.c.year>9999||e.c.year<0;let s="";return i&&e.c.year>=0&&(s+="+"),s+=Me(e.c.year,i?6:4),t?(s+="-",s+=Me(e.c.month),s+="-",s+=Me(e.c.day)):(s+=Me(e.c.month),s+=Me(e.c.day)),s}function zi(e,t,i,s,r,n){let o=Me(e.c.hour);return t?(o+=":",o+=Me(e.c.minute),0===e.c.millisecond&&0===e.c.second&&i||(o+=":")):o+=Me(e.c.minute),0===e.c.millisecond&&0===e.c.second&&i||(o+=Me(e.c.second),0===e.c.millisecond&&s||(o+=".",o+=Me(e.c.millisecond,3))),r&&(e.isOffsetFixed&&0===e.offset&&!n?o+="Z":e.o<0?(o+="-",o+=Me(Math.trunc(-e.o/60)),o+=":",o+=Me(Math.trunc(-e.o%60))):(o+="+",o+=Me(Math.trunc(e.o/60)),o+=":",o+=Me(Math.trunc(e.o%60)))),n&&(o+="["+e.zone.ianaName+"]"),o}const $i={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Xi={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ki={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Zi=["year","month","day","hour","minute","second","millisecond"],es=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ts=["year","ordinal","hour","minute","second","millisecond"];function is(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new a(e);return t}(e)}}function ss(e,t){const i=re(t.zone,de.defaultZone),s=ee.fromObject(t),r=de.now();let n,o;if(De(e.year))n=r;else{for(const t of Zi)De(e[t])&&(e[t]=$i[t]);const t=xe(e)||ke(e);if(t)return os.invalid(t);const s=i.offset(r);[n,o]=Hi(e,s,i)}return new os({ts:n,zone:i,loc:s,o})}function rs(e,t,i){const s=!!De(i.round)||i.round,r=(e,r)=>(e=Ve(e,s||i.calendary?0:2,!0),t.loc.clone(i).relFormatter(i).format(e,r)),n=s=>i.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(i.unit)return r(n(i.unit),i.unit);for(const e of i.units){const t=n(e);if(Math.abs(t)>=1)return r(t,e)}return r(e>t?-0:0,i.units[i.units.length-1])}function ns(e){let t,i={};return e.length>0&&"object"==typeof e[e.length-1]?(i=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[i,t]}class os{constructor(e){const t=e.zone||de.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new he("invalid input"):null)||(t.isValid?null:Mi(t));this.ts=De(e.ts)?de.now():e.ts;let s=null,r=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,r]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);s=ji(this.ts,e),i=Number.isNaN(s.year)?new he("invalid input"):null,s=i?null:s,r=i?null:e}this._zone=t,this.loc=e.loc||ee.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=s,this.o=r,this.isLuxonDateTime=!0}static now(){return new os({})}static local(){const[e,t]=ns(arguments),[i,s,r,n,o,a,c]=t;return ss({year:i,month:s,day:r,hour:n,minute:o,second:a,millisecond:c},e)}static utc(){const[e,t]=ns(arguments),[i,s,r,n,o,a,c]=t;return e.zone=ie.utcInstance,ss({year:i,month:s,day:r,hour:n,minute:o,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const i=(s=e,"[object Date]"===Object.prototype.toString.call(s)?e.valueOf():NaN);var s;if(Number.isNaN(i))return os.invalid("invalid input");const r=re(t.zone,de.defaultZone);return r.isValid?new os({ts:i,zone:r,loc:ee.fromObject(t)}):os.invalid(Mi(r))}static fromMillis(e,t={}){if(Se(e))return e<-Oi||e>Oi?os.invalid("Timestamp out of range"):new os({ts:e,zone:re(t.zone,de.defaultZone),loc:ee.fromObject(t)});throw new c(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Se(e))return new os({ts:1e3*e,zone:re(t.zone,de.defaultZone),loc:ee.fromObject(t)});throw new c("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const i=re(t.zone,de.defaultZone);if(!i.isValid)return os.invalid(Mi(i));const s=ee.fromObject(t),r=Ze(e,is),{minDaysInFirstWeek:n,startOfWeek:a}=Qe(r,s),c=de.now(),l=De(t.specificOffset)?i.offset(c):t.specificOffset,p=!De(r.ordinal),A=!De(r.year),u=!De(r.month)||!De(r.day),d=A||u,h=r.weekYear||r.weekNumber;if((d||p)&&h)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&p)throw new o("Can't mix ordinal dates with month/day");const m=h||r.weekday&&!d;let g,f,E=ji(c,l);m?(g=es,f=Xi,E=Ie(E,n,a)):p?(g=ts,f=Ki,E=we(E)):(g=Zi,f=$i);let C=!1;for(const e of g)De(r[e])?r[e]=C?f[e]:E[e]:C=!0;const y=m?function(e,t=4,i=1){const s=_e(e.weekYear),r=Oe(e.weekNumber,1,We(e.weekYear,t,i)),n=Oe(e.weekday,1,7);return s?r?!n&&fe("weekday",e.weekday):fe("week",e.weekNumber):fe("weekYear",e.weekYear)}(r,n,a):p?function(e){const t=_e(e.year),i=Oe(e.ordinal,1,He(e.year));return t?!i&&fe("ordinal",e.ordinal):fe("year",e.year)}(r):xe(r),v=y||ke(r);if(v)return os.invalid(v);const I=m?Be(r,n,a):p?be(r):r,[B,w]=Hi(I,l,i),b=new os({ts:B,zone:i,o:w,loc:s});return r.weekday&&d&&e.weekday!==b.weekday?os.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${b.toISO()}`):b}static fromISO(e,t={}){const[i,s]=function(e){return vt(e,[Yt,Xt],[Wt,Kt],[zt,Zt],[$t,ei])}(e);return qi(i,s,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[i,s]=function(e){return vt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Pt,Gt])}(e);return qi(i,s,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[i,s]=function(e){return vt(e,[Vt,Jt],[jt,Jt],[Ht,qt])}(e);return qi(i,s,t,"HTTP",t)}static fromFormat(e,t,i={}){if(De(e)||De(t))throw new c("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:r=null}=i,n=ee.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),[o,a,l,p]=function(e,t,i){const{result:s,zone:r,specificOffset:n,invalidReason:o}=Fi(e,t,i);return[s,r,n,o]}(n,e,t);return p?os.invalid(p):qi(o,a,i,`format ${t}`,e,l)}static fromString(e,t,i={}){return os.fromFormat(e,t,i)}static fromSQL(e,t={}){const[i,s]=function(e){return vt(e,[ii,Xt],[si,ri])}(e);return qi(i,s,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new c("need to specify a reason the DateTime is invalid");const i=e instanceof he?e:new he(e,t);if(de.throwOnInvalid)throw new s(i);return new os({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const i=Ni(e,ee.fromObject(t));return i?i.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Ti(ft.parseFormat(e),ee.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ui(this).weekYear:NaN}get weekNumber(){return this.isValid?Ui(this).weekNumber:NaN}get weekday(){return this.isValid?Ui(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Pi(this).weekday:NaN}get localWeekNumber(){return this.isValid?Pi(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Pi(this).weekYear:NaN}get ordinal(){return this.isValid?we(this.c).ordinal:NaN}get monthShort(){return this.isValid?fi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?fi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?fi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?fi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,i=qe(this.c),s=this.zone.offset(i-e),r=this.zone.offset(i+e),n=this.zone.offset(i-s*t),o=this.zone.offset(i-r*t);if(n===o)return[this];const a=i-n*t,c=i-o*t,l=ji(a,n),p=ji(c,o);return l.hour===p.hour&&l.minute===p.minute&&l.second===p.second&&l.millisecond===p.millisecond?[Gi(this,{ts:a}),Gi(this,{ts:c})]:[this]}get isInLeapYear(){return je(this.year)}get daysInMonth(){return Je(this.year,this.month)}get daysInYear(){return this.isValid?He(this.year):NaN}get weeksInWeekYear(){return this.isValid?We(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?We(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:i,calendar:s}=ft.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:i,outputCalendar:s}}toUTC(e=0,t={}){return this.setZone(ie.instance(e),t)}toLocal(){return this.setZone(de.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:i=!1}={}){if((e=re(e,de.defaultZone)).equals(this.zone))return this;if(e.isValid){let s=this.ts;if(t||i){const t=e.offset(this.ts),i=this.toObject();[s]=Hi(i,t,e)}return Gi(this,{ts:s,zone:e})}return os.invalid(Mi(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:i}={}){return Gi(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:i})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Ze(e,is),{minDaysInFirstWeek:i,startOfWeek:s}=Qe(t,this.loc),r=!De(t.weekYear)||!De(t.weekNumber)||!De(t.weekday),n=!De(t.ordinal),a=!De(t.year),c=!De(t.month)||!De(t.day),l=a||c,p=t.weekYear||t.weekNumber;if((l||n)&&p)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&n)throw new o("Can't mix ordinal dates with month/day");let A;r?A=Be({...Ie(this.c,i,s),...t},i,s):De(t.ordinal)?(A={...this.toObject(),...t},De(t.day)&&(A.day=Math.min(Je(A.year,A.month),A.day))):A=be({...we(this.c),...t});const[u,d]=Hi(A,this.o,this.zone);return Gi(this,{ts:u,o:d})}plus(e){return this.isValid?Gi(this,Ji(this,hi.fromDurationLike(e))):this}minus(e){return this.isValid?Gi(this,Ji(this,hi.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const i={},s=hi.normalizeUnit(e);switch(s){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0}if("weeks"===s)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;tthis.valueOf(),o=function(e,t,i,s){let[r,n,o,a]=function(e,t,i){const s=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const i=Ei(e,t);return(i-i%7)/7}],["days",Ei]],r={},n=e;let o,a;for(const[c,l]of s)i.indexOf(c)>=0&&(o=c,r[c]=l(e,t),a=n.plus(r),a>t?(r[c]--,(e=n.plus(r))>t&&(a=e,r[c]--,e=n.plus(r))):e=a);return[e,r,a,o]}(e,t,i);const c=t-r,l=i.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(o0?hi.fromMillis(c,s).shiftTo(...l).plus(p):p}(n?this:e,n?e:this,r,s);var a;return n?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(os.now(),e,t)}until(e){return this.isValid?gi.fromDateTimes(this,e):this}hasSame(e,t,i){if(!this.isValid)return!1;const s=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t,i)<=s&&s<=r.endOf(t,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||os.fromObject({},{zone:this.zone}),i=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(os.isDateTime))throw new c("max requires all arguments be DateTimes");return Fe(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,i={}){const{locale:s=null,numberingSystem:r=null}=i;return Fi(ee.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,i={}){return os.fromFormatExplain(e,t,i)}static get DATE_SHORT(){return d}static get DATE_MED(){return h}static get DATE_MED_WITH_WEEKDAY(){return m}static get DATE_FULL(){return g}static get DATE_HUGE(){return f}static get TIME_SIMPLE(){return E}static get TIME_WITH_SECONDS(){return C}static get TIME_WITH_SHORT_OFFSET(){return y}static get TIME_WITH_LONG_OFFSET(){return v}static get TIME_24_SIMPLE(){return I}static get TIME_24_WITH_SECONDS(){return B}static get TIME_24_WITH_SHORT_OFFSET(){return w}static get TIME_24_WITH_LONG_OFFSET(){return b}static get DATETIME_SHORT(){return Q}static get DATETIME_SHORT_WITH_SECONDS(){return x}static get DATETIME_MED(){return k}static get DATETIME_MED_WITH_SECONDS(){return D}static get DATETIME_MED_WITH_WEEKDAY(){return S}static get DATETIME_FULL(){return _}static get DATETIME_FULL_WITH_SECONDS(){return R}static get DATETIME_HUGE(){return T}static get DATETIME_HUGE_WITH_SECONDS(){return F}}function as(e){if(os.isDateTime(e))return e;if(e&&e.valueOf&&Se(e.valueOf()))return os.fromJSDate(e);if(e&&"object"==typeof e)return os.fromObject(e);throw new c(`Unknown datetime argument: ${e}, of type ${typeof e}`)}t.DateTime=os,t.Duration=hi,t.FixedOffsetZone=ie,t.IANAZone=G,t.Info=fi,t.Interval=gi,t.InvalidZone=se,t.Settings=de,t.SystemZone=O,t.VERSION="3.4.4",t.Zone=N},10257:(e,t,i)=>{e.exports=i(66450)},69335:(e,t,i)=>{"use strict";var s,r,n,o=i(10257),a=i(71017).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),i=t&&o[t[1].toLowerCase()];return i&&i.charset?i.charset:!(!t||!l.test(t[1]))&&"UTF-8"}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var i=-1===e.indexOf("/")?t.lookup(e):e;if(!i)return!1;if(-1===i.indexOf("charset")){var s=t.charset(i);s&&(i+="; charset="+s.toLowerCase())}return i},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var i=c.exec(e),s=i&&t.extensions[i[1].toLowerCase()];return!(!s||!s.length)&&s[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var i=a("x."+e).toLowerCase().substr(1);return i&&t.types[i]||!1},t.types=Object.create(null),s=t.extensions,r=t.types,n=["nginx","apache",void 0,"iana"],Object.keys(o).forEach((function(e){var t=o[e],i=t.extensions;if(i&&i.length){s[e]=i;for(var a=0;ap||l===p&&"application/"===r[c].substr(0,12)))continue}r[c]=e}}}))},70474:e=>{"use strict";const t=(e,t)=>{for(const i of Reflect.ownKeys(t))Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i));return e};e.exports=t,e.exports.default=t},44247:e=>{var t=1e3,i=60*t,s=60*i,r=24*s;function n(e,t,i,s){var r=t>=1.5*i;return Math.round(e/i)+" "+s+(r?"s":"")}e.exports=function(e,o){o=o||{};var a,c,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var o=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*r;case"hours":case"hour":case"hrs":case"hr":case"h":return o*s;case"minutes":case"minute":case"mins":case"min":case"m":return o*i;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===l&&isFinite(e))return o.long?(a=e,(c=Math.abs(a))>=r?n(a,c,r,"day"):c>=s?n(a,c,s,"hour"):c>=i?n(a,c,i,"minute"):c>=t?n(a,c,t,"second"):a+" ms"):function(e){var n=Math.abs(e);return n>=r?Math.round(e/r)+"d":n>=s?Math.round(e/s)+"h":n>=i?Math.round(e/i)+"m":n>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},83733:(e,t,i)=>{var s=i(12781);function r(e){s.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}function n(e){return function(){var t=this._dest,i=this._src;t&&t[e]&&t[e].apply(t,arguments),i&&i[e]&&i[e].apply(i,arguments)}}e.exports=r,r.prototype=Object.create(s.prototype),Object.defineProperty(r.prototype,"constructor",{value:r,enumerable:!1}),r.prototype.mute=function(){this.muted=!0},r.prototype.unmute=function(){this.muted=!1},Object.defineProperty(r.prototype,"_onpipe",{value:function(e){this._src=e},enumerable:!1,writable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isTTY",{get:function(){return this._dest?this._dest.isTTY:!!this._src&&this._src.isTTY},set:function(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),r.prototype.pipe=function(e,t){return this._dest=e,s.prototype.pipe.call(this,e,t)},r.prototype.pause=function(){if(this._src)return this._src.pause()},r.prototype.resume=function(){if(this._src)return this._src.resume()},r.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return 0===e.indexOf(this._prompt)&&(e=(e=e.substr(this._prompt.length)).replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&0===e.indexOf(this._prompt)&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)},r.prototype.end=function(e){this.muted&&(e=e&&this.replace?e.toString().replace(/./g,this.replace):null),e&&this.emit("data",e),this.emit("end")},r.prototype.destroy=n("destroy"),r.prototype.destroySoon=n("destroySoon"),r.prototype.close=n("close")},39470:(e,t,i)=>{"use strict";i.r(t),i.d(t,{App:()=>ve,OAuthApp:()=>Ie,Octokit:()=>ye,RequestError:()=>Q.RequestError,createNodeMiddleware:()=>fe});var s=i(96049);function r(e,t,i){const s="function"==typeof t?t.endpoint(i):e.request.endpoint(t,i),r="function"==typeof t?t:e.request,n=s.method,o=s.headers;let a=s.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)||"url"in e.data)return e;const t=e.data.incomplete_results,i=e.data.repository_selection,s=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const r=Object.keys(e.data)[0],n=e.data[r];return e.data=n,void 0!==t&&(e.data.incomplete_results=t),void 0!==i&&(e.data.repository_selection=i),e.data.total_count=s,e}(await r({method:n,url:a,headers:o}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return a="",{value:{status:200,headers:{},data:[]}}}}})}}function n(e,t,i,s){return"function"==typeof i&&(s=i,i=void 0),o(e,[],r(e,t,i)[Symbol.asyncIterator](),s)}function o(e,t,i,s){return i.next().then((r=>{if(r.done)return t;let n=!1;return t=t.concat(s?s(r.value,(function(){n=!0})):r.value.data),n?t:o(e,t,i,s)}))}var a=Object.assign(n,{iterator:r});function c(e){return{paginate:Object.assign(n.bind(null,e),{iterator:r.bind(null,e)})}}c.VERSION="9.2.1";class l extends Error{constructor(e,t){super(((e,t)=>`The cursor at "${e.join(",")}" did not change its value "${t}" after a page transition. Please make sure your that your query is set up correctly.`)(e.pathInQuery,t)),this.pageInfo=e,this.cursorValue=t,this.name="MissingCursorChangeError",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class p extends Error{constructor(e){super(`No pageInfo property found in response. Please make sure to specify the pageInfo in your query. Response-Data: ${JSON.stringify(e,null,2)}`),this.response=e,this.name="MissingPageInfo",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}function A(e){const t=u(e,"pageInfo");if(0===t.length)throw new p(e);return t}const u=(e,t,i=[])=>{for(const r of Object.keys(e)){const n=[...i,r],o=e[r];if(o.hasOwnProperty(t))return n;if(s=o,"[object Object]"===Object.prototype.toString.call(s)){const e=u(o,t,n);if(e.length>0)return e}}var s;return[]},d=(e,t)=>t.reduce(((e,t)=>e[t]),e),h=(e,t,i)=>{const s=t[t.length-1],r=[...t].slice(0,-1),n=d(e,r);n[s]="function"==typeof i?i(n[s]):i},m=e=>e.hasOwnProperty("hasNextPage"),g=e=>(t,i={})=>{let s=!0,r={...i};return{[Symbol.asyncIterator]:()=>({async next(){if(!s)return{done:!0,value:{}};const i=await e.graphql(t,r),n=(e=>{const t=A(e);return{pathInQuery:t,pageInfo:d(e,[...t,"pageInfo"])}})(i),o=(a=n.pageInfo,m(a)?a.endCursor:a.startCursor);var a;if(s=(e=>m(e)?e.hasNextPage:e.hasPreviousPage)(n.pageInfo),s&&o===r.cursor)throw new l(n,o);return r={...r,cursor:o},{done:!1,value:i}}})}},f=(e,t)=>{if(0===Object.keys(e).length)return Object.assign(e,t);const i=A(e),s=[...i,"nodes"],r=d(t,s);r&&h(e,s,(e=>[...e,...r]));const n=[...i,"edges"],o=d(t,n);o&&h(e,n,(e=>[...e,...o]));const a=[...i,"pageInfo"];return h(e,a,d(t,a)),e},E=e=>{const t=g(e);return async(e,i={})=>{let s={};for await(const r of t(e,i))s=f(s,r);return s}};const C=new Map;for(const[e,t]of Object.entries({actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}}))for(const[i,s]of Object.entries(t)){const[t,r,n]=s,[o,a]=t.split(/ /),c=Object.assign({method:o,url:a},r);C.has(e)||C.set(e,new Map),C.get(e).set(i,{scope:e,methodName:i,endpointDefaults:c,decorations:n})}const y={has:({scope:e},t)=>C.get(e).has(t),getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:!0,writable:!0,enumerable:!0}},defineProperty:(e,t,i)=>(Object.defineProperty(e.cache,t,i),!0),deleteProperty:(e,t)=>(delete e.cache[t],!0),ownKeys:({scope:e})=>[...C.get(e).keys()],set:(e,t,i)=>e.cache[t]=i,get({octokit:e,scope:t,cache:i},s){if(i[s])return i[s];const r=C.get(t).get(s);if(!r)return;const{endpointDefaults:n,decorations:o}=r;return i[s]=o?function(e,t,i,s,r){const n=e.request.defaults(s);return Object.assign((function(...s){let o=n.endpoint.merge(...s);if(r.mapToData)return o=Object.assign({},o,{data:o[r.mapToData],[r.mapToData]:void 0}),n(o);if(r.renamed){const[s,n]=r.renamed;e.log.warn(`octokit.${t}.${i}() has been renamed to octokit.${s}.${n}()`)}if(r.deprecated&&e.log.warn(r.deprecated),r.renamedParameters){const o=n.endpoint.merge(...s);for(const[s,n]of Object.entries(r.renamedParameters))s in o&&(e.log.warn(`"${s}" parameter is deprecated for "octokit.${t}.${i}()". Use "${n}" instead`),n in o||(o[n]=o[s]),delete o[s]);return n(o)}return n(...s)}),n)}(e,t,s,n,o):e.request.defaults(n),i[s]}};function v(e){const t={};for(const i of C.keys())t[i]=new Proxy({octokit:e,scope:i,cache:{}},y);return t}function I(e){return{rest:v(e)}}async function B(e,t,i,s){if(!i.request||!i.request.request)throw i;if(i.status>=400&&!e.doNotRetry.includes(i.status)){const r=null!=s.request.retries?s.request.retries:e.retries,n=Math.pow((s.request.retryCount||0)+1,2);throw t.retry.retryRequest(i,r,n)}throw i}I.VERSION="10.4.1";var w=i(32722),b=i.n(w),Q=i(98838);async function x(e,t,i,s){const r=new(b());return r.on("failed",(function(t,i){const r=~~t.request.request.retries,n=~~t.request.request.retryAfter;if(s.request.retryCount=i.retryCount+1,r>i.retryCount)return n*e.retryAfterBaseValue})),r.schedule(k.bind(null,e,t,i),s)}async function k(e,t,i,s){const r=await i(i,s);return r.data&&r.data.errors&&/Something went wrong while executing your query/.test(r.data.errors[0].message)?B(e,t,new Q.RequestError(r.data.errors[0].message,500,{request:s,response:r}),s):r}function D(e,t){const i=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);return i.enabled&&(e.hook.error("request",B.bind(null,i,e)),e.hook.wrap("request",x.bind(null,i,e))),{retry:{retryRequest:(e,t,i)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:i}),e)}}}D.VERSION="0.0.0-development";const S=()=>Promise.resolve();function _(e,t,i){return e.retryLimiter.schedule(R,e,t,i)}async function R(e,t,i){const s="GET"!==i.method&&"HEAD"!==i.method,{pathname:r}=new URL(i.url,"http://github.test"),n="GET"===i.method&&r.startsWith("/search/"),o=r.startsWith("/graphql"),a=~~t.retryCount>0?{priority:0,weight:0}:{};e.clustering&&(a.expiration=6e4),(s||o)&&await e.write.key(e.id).schedule(a,S),s&&e.triggersNotification(r)&&await e.notifications.key(e.id).schedule(a,S),n&&await e.search.key(e.id).schedule(a,S);const c=e.global.key(e.id).schedule(a,t,i);if(o){const e=await c;if(null!=e.data.errors&&e.data.errors.some((e=>"RATE_LIMITED"===e.type)))throw Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data})}return c}const T=function(e){const t=`^(?:${["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"].map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/"))).map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(t,"i")}(),F=T.test.bind(T),N={};function L(e,t){const{enabled:i=!0,Bottleneck:s=b(),id:r="no-id",timeout:n=12e4,connection:o}=t.throttle||{};if(!i)return{};const a={connection:o,timeout:n};null==N.global&&function(e,t){N.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t}),N.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t}),N.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t}),N.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})}(s,a);const c=Object.assign({clustering:null!=o,triggersNotification:F,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new s,id:r,...N},t.throttle);if("function"!=typeof c.onSecondaryRateLimit||"function"!=typeof c.onRateLimit)throw new Error("octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n ");const l={},p=new s.Events(l);return l.on("secondary-limit",c.onSecondaryRateLimit),l.on("rate-limit",c.onRateLimit),l.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t))),c.retryLimiter.on("failed",(async function(t,i){const[s,r,n]=i.args,{pathname:o}=new URL(n.url,"http://github.test");if((!o.startsWith("/graphql")||401===t.status)&&403!==t.status)return;const a=~~r.retryCount;r.retryCount=a,n.request.retryCount=a;const{wantRetry:c,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const i=Number(t.response.headers["retry-after"])||s.fallbackSecondaryRateRetryAfter;return{wantRetry:await p.trigger("secondary-limit",i,n,e,a),retryAfter:i}}if(null!=t.response.headers&&"0"===t.response.headers["x-ratelimit-remaining"]||(t.response.data?.errors??[]).some((e=>"RATE_LIMITED"===e.type))){const i=new Date(1e3*~~t.response.headers["x-ratelimit-reset"]).getTime(),s=Math.max(Math.ceil((i-Date.now())/1e3)+1,0);return{wantRetry:await p.trigger("rate-limit",s,n,e,a),retryAfter:s}}return{}}();return c?(r.retryCount++,l*s.retryAfterBaseValue):void 0})),e.hook.wrap("request",_.bind(null,c)),{}}L.VERSION="8.2.0",L.triggersNotification=F;var O=i(61786),M=i(32546),U=i(37573);const P=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e}),G=["branch_protection_configuration","branch_protection_rule.disabled","branch_protection_rule.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_dispatch","repository_import","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.performed","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function V(e,t,i){e.hooks[t]||(e.hooks[t]=[]),e.hooks[t].push(i)}function j(e,t,i){if(Array.isArray(t))t.forEach((t=>j(e,t,i)));else{if(["*","error"].includes(t)){const e="*"===t?"any":t,i=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(i)}G.includes(t)||e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`),V(e,t,i)}}function H(e,t){V(e,"*",t)}function J(e,t){V(e,"error",t)}var q=i(14686),Y=i.n(q);function W(e,t){let i;try{i=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler'),console.log(e)}i&&i.catch&&i.catch((e=>{console.log('FATAL: Error occurred in "error" event handler'),console.log(e)}))}function z(e,t){const i=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new(Y())([t]),{event:t,errors:[t]});return i.forEach((t=>W(t,e))),Promise.reject(e)}if(!t||!t.name)throw new(Y())(["Event name not passed"]);if(!t.payload)throw new(Y())(["Event payload not passed"]);const s=function(e,t,i){const s=[e.hooks[i],e.hooks["*"]];return t&&s.unshift(e.hooks[`${i}.${t}`]),[].concat(...s.filter(Boolean))}(e,"action"in t.payload?t.payload.action:null,t.name);if(0===s.length)return Promise.resolve();const r=[],n=s.map((i=>{let s=Promise.resolve(t);return e.transform&&(s=s.then(e.transform)),s.then((e=>i(e))).catch((e=>r.push(Object.assign(e,{event:t}))))}));return Promise.all(n).then((()=>{if(0===r.length)return;const e=new(Y())(r);throw Object.assign(e,{event:t,errors:r}),i.forEach((t=>W(t,e))),e}))}function $(e,t,i){if(Array.isArray(t))t.forEach((t=>$(e,t,i)));else if(e.hooks[t])for(let s=e.hooks[t].length-1;s>=0;s--)if(e.hooks[t][s]===i)return void e.hooks[t].splice(s,1)}function X(e){const t={hooks:{},log:P(e&&e.log)};return e&&e.transform&&(t.transform=e.transform),{on:j.bind(null,t),onAny:H.bind(null,t),onError:J.bind(null,t),removeListener:$.bind(null,t),receive:z.bind(null,t)}}const K=require("node:crypto");var Z=(e=>(e.SHA1="sha1",e.SHA256="sha256",e))(Z||{});const ee="4.1.0";async function te(e,t){const{secret:i,algorithm:s}="object"==typeof e?{secret:e.secret,algorithm:e.algorithm||Z.SHA256}:{secret:e,algorithm:Z.SHA256};if(!i||!t)throw new TypeError("[@octokit/webhooks-methods] secret & payload required for sign()");if("string"!=typeof t)throw new TypeError("[@octokit/webhooks-methods] payload must be a string");if(!Object.values(Z).includes(s))throw new TypeError(`[@octokit/webhooks] Algorithm ${s} is not supported. Must be 'sha1' or 'sha256'`);return`${s}=${(0,K.createHmac)(s,i).update(t).digest("hex")}`}te.VERSION=ee;const ie=require("node:buffer"),se=e=>e.startsWith("sha256=")?"sha256":"sha1";async function re(e,t,i){if(!e||!t||!i)throw new TypeError("[@octokit/webhooks-methods] secret, eventPayload & signature required");if("string"!=typeof t)throw new TypeError("[@octokit/webhooks-methods] eventPayload must be a string");const s=ie.Buffer.from(i),r=se(i),n=ie.Buffer.from(await te({secret:e,algorithm:r},t));return s.length===n.length&&(0,K.timingSafeEqual)(s,n)}async function ne(e,t){if(!await re(e.secret,t.payload,t.signature).catch((()=>!1))){const i=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(i,{event:t,status:400}))}let i;try{i=JSON.parse(t.payload)}catch(e){throw e.message="Invalid JSON",e.status=400,new(Y())([e])}return e.eventHandler.receive({id:t.id,name:t.name,payload:i})}re.VERSION=ee;class oe{constructor(e){if(!e||!e.secret)throw new Error("[@octokit/webhooks] options.secret required");const t={eventHandler:X(e),secret:e.secret,hooks:{},log:P(e.log)};this.sign=te.bind(null,e.secret),this.verify=re.bind(null,e.secret),this.on=t.eventHandler.on,this.onAny=t.eventHandler.onAny,this.onError=t.eventHandler.onError,this.removeListener=t.eventHandler.removeListener,this.receive=t.eventHandler.receive,this.verifyAndReceive=ne.bind(null,t)}}const ae=["x-github-event","x-hub-signature-256","x-github-delivery"];async function ce(e,t,i,s,r){let n;try{n=new URL(i.url,"http://localhost").pathname}catch(e){return s.writeHead(422,{"content-type":"application/json"}),s.end(JSON.stringify({error:`Request URL could not be parsed: ${i.url}`})),!0}if(n!==t.path)return r?.(),!1;if("POST"!==i.method)return function(e,t){t.writeHead(404,{"content-type":"application/json"}),t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}(i,s),!0;if(!i.headers["content-type"]||!i.headers["content-type"].startsWith("application/json"))return s.writeHead(415,{"content-type":"application/json",accept:"application/json"}),s.end(JSON.stringify({error:'Unsupported "Content-Type" header value. Must be "application/json"'})),!0;const o=function(e){return ae.filter((t=>!(t in e.headers)))}(i).join(", ");if(o)return s.writeHead(400,{"content-type":"application/json"}),s.end(JSON.stringify({error:`Required headers missing: ${o}`})),!0;const a=i.headers["x-github-event"],c=i.headers["x-hub-signature-256"],l=i.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${l})`);let p=!1;const A=setTimeout((()=>{p=!0,s.statusCode=202,s.end("still processing\n")}),9e3).unref();try{const t=await function(e){return"body"in e?"object"==typeof e.body&&"rawBody"in e&&e.rawBody instanceof Buffer?Promise.resolve(e.rawBody.toString("utf8")):Promise.resolve(e.body):new Promise(((t,i)=>{let s=[];e.on("error",(e=>i(new(Y())([e])))),e.on("data",(e=>s.push(e))),e.on("end",(()=>setImmediate(t,1===s.length?s[0].toString("utf8"):Buffer.concat(s).toString("utf8"))))}))}(i);return await e.verifyAndReceive({id:l,name:a,payload:t,signature:c}),clearTimeout(A),p||s.end("ok\n"),!0}catch(e){if(clearTimeout(A),p)return!0;const i=Array.from(e)[0],r=i.message?`${i.name}: ${i.message}`:"Error: An Unspecified error occurred";return s.statusCode=void 0!==i.status?i.status:500,t.log.error(e),s.end(JSON.stringify({error:r})),!0}}async function le(e,t){return e.octokit.auth({type:"installation",installationId:t,factory(e){const i={...e.octokitOptions,authStrategy:O.createAppAuth,auth:{...e,installationId:t}};return new e.octokit.constructor(i)}})}function pe(e){return Object.assign(Ae.bind(null,e),{iterator:ue.bind(null,e)})}async function Ae(e,t){const i=ue(e)[Symbol.asyncIterator]();let s=await i.next();for(;!s.done;)await t(s.value),s=await i.next()}function ue(e){return{async*[Symbol.asyncIterator](){const t=a.iterator(e.octokit,"GET /app/installations");for await(const{data:i}of t)for(const t of i){const i=await le(e,t.id);yield{octokit:i,installation:t}}}}}function de(e){return Object.assign(he.bind(null,e),{iterator:me.bind(null,e)})}async function he(e,t,i){const s=me(e,i?t:void 0)[Symbol.asyncIterator]();let r=await s.next();for(;!r.done;)i?await i(r.value):await t(r.value),r=await s.next()}function me(e,t){return{async*[Symbol.asyncIterator](){const i=t?function(e,t){return{async*[Symbol.asyncIterator](){yield{octokit:await e.getInstallationOctokit(t)}}}}(e,t.installationId):e.eachInstallation.iterator();for await(const{octokit:e}of i){const t=a.iterator(e,"GET /installation/repositories");for await(const{data:i}of t)for(const t of i)yield{octokit:e,repository:t}}}}}function ge(){}function fe(e,t={}){const i=Object.assign({debug:ge,info:ge,warn:console.warn.bind(console),error:console.error.bind(console)},t.log),s={pathPrefix:"/api/github",...t,log:i},r=function(e,{path:t="/api/github/webhooks",log:i=P()}={}){return ce.bind(null,e,{path:t,log:i})}(e.webhooks,{path:s.pathPrefix+"/webhooks",log:i}),n=(0,M.createNodeMiddleware)(e.oauth,{pathPrefix:s.pathPrefix+"/oauth"});return Ee.bind(null,s.pathPrefix,r,n)}async function Ee(e,t,i,s,r,n){const{pathname:o}=new URL(s.url,"http://localhost");return o.startsWith(`${e}/`)?(o===`${e}/webhooks`?t(s,r):o.startsWith(`${e}/oauth/`)?i(s,r):(0,M.sendNodeResponse)((0,M.unknownRouteResponse)(s),r),!0):(n?.(),!1)}var Ce=class{static{this.VERSION="14.1.0"}static defaults(e){return class extends(this){constructor(...t){super({...e,...t[0]})}}}constructor(e){const t=e.Octokit||s.Octokit,i=Object.assign({appId:e.appId,privateKey:e.privateKey},e.oauth?{clientId:e.oauth.clientId,clientSecret:e.oauth.clientSecret}:{});this.octokit=new t({authStrategy:O.createAppAuth,auth:i,log:e.log}),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),e.webhooks?this.webhooks=function(e,t){return new oe({secret:t.secret,transform:async t=>{if(!("installation"in t.payload)||"object"!=typeof t.payload.installation){const i=new e.constructor({authStrategy:U.createUnauthenticatedAuth,auth:{reason:'"installation" key missing in webhook event payload'}});return{...t,octokit:i}}const i=t.payload.installation.id,s=await e.auth({type:"installation",installationId:i,factory:e=>new e.octokit.constructor({...e.octokitOptions,authStrategy:O.createAppAuth,auth:{...e,installationId:i}})});return s.hook.before("request",(e=>{e.headers["x-github-delivery"]=t.id})),{...t,octokit:s}}})}(this.octokit,e.webhooks):Object.defineProperty(this,"webhooks",{get(){throw new Error("[@octokit/app] webhooks option not set")}}),e.oauth?this.oauth=new M.OAuthApp({...e.oauth,clientType:"github-app",Octokit:t}):Object.defineProperty(this,"oauth",{get(){throw new Error("[@octokit/app] oauth.clientId / oauth.clientSecret options are not set")}}),this.getInstallationOctokit=le.bind(null,this),this.eachInstallation=pe(this),this.eachRepository=de(this)}},ye=s.Octokit.plugin(I,c,(function(e){return e.graphql,{graphql:Object.assign(e.graphql,{paginate:Object.assign(E(e),{iterator:g(e)})})}}),D,L).defaults({userAgent:"octokit.js/3.1.2",throttle:{onRateLimit:function(e,t,i){if(i.log.warn(`Request quota exhausted for request ${t.method} ${t.url}`),0===t.request.retryCount)return i.log.info(`Retrying after ${e} seconds!`),!0},onSecondaryRateLimit:function(e,t,i){if(i.log.warn(`SecondaryRateLimit detected for request ${t.method} ${t.url}`),0===t.request.retryCount)return i.log.info(`Retrying after ${e} seconds!`),!0}}}),ve=Ce.defaults({Octokit:ye}),Ie=M.OAuthApp.defaults({Octokit:ye})},36219:(e,t,i)=>{var s=i(42065);function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function n(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},i=e.name||"Function wrapped with `once`";return t.onceError=i+" shouldn't be called more than once",t.called=!1,t}e.exports=s(r),e.exports.strict=s(n),r.proto=r((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return n(this)},configurable:!0})}))},86015:(e,t,i)=>{"use strict";const s=i(70474),r=new WeakMap,n=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let i,n=0;const o=e.displayName||e.name||"",a=function(...s){if(r.set(a,++n),1===n)i=e.apply(this,s),e=null;else if(!0===t.throw)throw new Error(`Function \`${o}\` can only be called once`);return i};return s(a,e),r.set(a,n),a};e.exports=n,e.exports.default=n,e.exports.callCount=e=>{if(!r.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return r.get(e)}},7540:(e,t,i)=>{"use strict";const s=i(14521),r=i(47309),n=i(55693),o=i(60881),a=i(6853),c=i(20281),l=i(80762),p=i(27759),A=i(5881),{BufferListStream:u}=i(26221),d=Symbol("text"),h=Symbol("prefixText");class m{constructor(){this.requests=0,this.mutedStream=new u,this.mutedStream.pipe(process.stdout);const e=this;this.ourEmit=function(t,i,...s){const{stdin:r}=process;if(e.requests>0||r.emit===e.ourEmit){if("keypress"===t)return;"data"===t&&i.includes(3)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[t,i,...s])}else Reflect.apply(process.stdin.emit,this,[t,i,...s])}}start(){this.requests++,1===this.requests&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,0===this.requests&&this.realStop()}realStart(){"win32"!==process.platform&&(this.rl=s.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",(()=>{0===process.listenerCount("SIGINT")?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))})))}realStop(){"win32"!==process.platform&&(this.rl.close(),this.rl=void 0)}}let g;class f{constructor(e){g||(g=new m),"string"==typeof e&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=!1!==this.options.hideCursor,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled="boolean"==typeof this.options.isEnabled?this.options.isEnabled:p({stream:this.stream}),this.isSilent="boolean"==typeof this.options.isSilent&&this.options.isSilent,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){void 0!==e&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,"object"==typeof e){if(void 0===e.frames)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(A())if(void 0===e)this._spinner=o.dots;else{if("default"===e||!o[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this._spinner=o[e]}else this._spinner=o.line;this._updateInterval(this._spinner.interval)}get text(){return this[d]}set text(e){this[d]=e,this.updateLineCount()}get prefixText(){return this[h]}set prefixText(e){this[h]=e,this.updateLineCount()}get isSpinning(){return void 0!==this.id}getFullPrefixText(e=this[h],t=" "){return"string"==typeof e?e+t:"function"==typeof e?e()+t:""}updateLineCount(){const e=this.stream.columns||80,t=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(const i of c(t+"--"+this[d]).split("\n"))this.lineCount+=Math.max(1,Math.ceil(l(i)/e))}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=e}get isSilent(){return this._isSilent}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=e}frame(){const{frames:e}=this.spinner;let t=e[this.frameIndex];return this.color&&(t=r[this.color](t)),this.frameIndex=++this.frameIndex%e.length,("string"==typeof this.prefixText&&""!==this.prefixText?this.prefixText+" ":"")+t+("string"==typeof this.text?" "+this.text:"")}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent||(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount),this}start(e){return e&&(this.text=e),this.isSilent?this:this.isEnabled?(this.isSpinning||(this.hideCursor&&n.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,g.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.stream.write(`- ${this.text}\n`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&n.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(g.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:a.success,text:e})}fail(e){return this.stopAndPersist({symbol:a.error,text:e})}warn(e){return this.stopAndPersist({symbol:a.warning,text:e})}info(e){return this.stopAndPersist({symbol:a.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;const t=e.prefixText||this.prefixText,i=e.text||this.text,s="string"==typeof i?" "+i:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(t," ")}${e.symbol||" "}${s}\n`),this}}e.exports=function(e){return new f(e)},e.exports.promise=(e,t)=>{if("function"!=typeof e.then)throw new TypeError("Parameter `action` must be a Promise");const i=new f(t);return i.start(),(async()=>{try{await e,i.succeed()}catch{i.fail()}})(),i}},23209:e=>{"use strict";e.exports=(e,t)=>(t=t||(()=>{}),e.then((e=>new Promise((e=>{e(t())})).then((()=>e))),(e=>new Promise((e=>{e(t())})).then((()=>{throw e})))))},88464:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=i(21883),r=i(26123),n=i(83991),o=()=>{},a=new r.TimeoutError;t.default=class extends s{constructor(e){var t,i,s,r;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=o,this._resolveIdle=o,!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:n.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${null!==(i=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==i?i:""}\` (${typeof e.intervalCap})`);if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${null!==(r=null===(s=e.interval)||void 0===s?void 0:s.toString())&&void 0!==r?r:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=!0===e.throwOnTimeout,this._isPaused=!1===e.autoStart}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount{this._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((()=>{this._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!("number"==typeof e&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise(((i,s)=>{this._queue.enqueue((async()=>{this._pendingCount++,this._intervalCount++;try{const n=void 0===this._timeout&&void 0===t.timeout?e():r.default(Promise.resolve(e()),void 0===t.timeout?this._timeout:t.timeout,(()=>{(void 0===t.throwOnTimeout?this._throwOnTimeout:t.throwOnTimeout)&&s(a)}));i(await n)}catch(e){s(e)}this._next()}),t),this._tryToStartAnother(),this.emit("add")}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(0!==this._queue.size)return new Promise((e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}}))}async onIdle(){if(0!==this._pendingCount||0!==this._queue.size)return new Promise((e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}}))}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}},10392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){let s=0,r=e.length;for(;r>0;){const n=r/2|0;let o=s+n;i(e[o],t)<=0?(s=++o,r-=n+1):r=n}return s}},83991:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=i(10392);t.default=class{constructor(){this._queue=[]}enqueue(e,t){const i={priority:(t=Object.assign({priority:0},t)).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority)return void this._queue.push(i);const r=s.default(this._queue,i,((e,t)=>t.priority-e.priority));this._queue.splice(r,0,i)}dequeue(){const e=this._queue.shift();return null==e?void 0:e.run}filter(e){return this._queue.filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return this._queue.length}}},32656:(e,t,i)=>{"use strict";const s=i(83490),r=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class n extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,({message:e}=e)):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}}const o=(e,t)=>new Promise(((i,o)=>{t={onFailedAttempt:()=>{},retries:10,...t};const a=s.operation(t);a.attempt((async s=>{try{i(await e(s))}catch(e){if(!(e instanceof Error))return void o(new TypeError(`Non-error was thrown: "${e}". You should only throw errors.`));if(e instanceof n)a.stop(),o(e.originalError);else if(e instanceof TypeError&&(c=e.message,!r.includes(c)))a.stop(),o(e);else{((e,t,i)=>{const s=i.retries-(t-1);e.attemptNumber=t,e.retriesLeft=s})(e,s,t);try{await t.onFailedAttempt(e)}catch(e){return void o(e)}a.retry(e)||o(a.mainError())}}var c}))}));e.exports=o,e.exports.default=o,e.exports.AbortError=n},26123:(e,t,i)=>{"use strict";const s=i(23209);class r extends Error{constructor(e){super(e),this.name="TimeoutError"}}const n=(e,t,i)=>new Promise(((n,o)=>{if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===1/0)return void n(e);const a=setTimeout((()=>{if("function"==typeof i){try{n(i())}catch(e){o(e)}return}const s=i instanceof Error?i:new r("string"==typeof i?i:`Promise timed out after ${t} milliseconds`);"function"==typeof e.cancel&&e.cancel(),o(s)}),t);s(e.then(n,o),(()=>{clearTimeout(a)}))}));e.exports=n,e.exports.default=n,e.exports.TimeoutError=r},30486:(e,t,i)=>{"use strict";const s=i(30746),r=i(94057),n=e.exports;n.prompt=(e,t)=>(t=r(t),s(e,t)),n.password=(e,t)=>(t=r({silent:!0,trim:!1,default:"",...t}),s(e,t)),n.confirm=(e,t)=>((t=r({trim:!1,...t})).validator.unshift((e=>{switch(e=e.toLowerCase()){case"y":case"yes":case"1":return!0;case"n":case"no":case"0":return!1;default:throw new Error(`Invalid choice: ${e}`)}})),s(e,t)),n.choose=(e,t,i)=>((i=r({trim:!1,...i})).validator.unshift((e=>{const i=t.findIndex((t=>e==t));if(-1===i)throw new Error(`Invalid choice: ${e}`);return t[i]})),s(e,i))},94057:e=>{"use strict";e.exports=function(e){if(void 0!==(e={validator:void 0,retry:!0,trim:!0,default:void 0,useDefaultOnTimeout:!1,silent:!1,replace:"",input:process.stdin,output:process.stdout,timeout:0,...e}).default&&"string"!=typeof e.default)throw new Error("The default option value must be a string");return Array.isArray(e.validator)||(e.validator=e.validator?[e.validator]:[]),e}},30746:(e,t,i)=>{"use strict";const{EOL:s}=i(22037),{promisify:r}=i(73837),n=r(i(91460));e.exports=async function e(t,i){let r;try{r=await n({prompt:t,silent:i.silent,replace:i.replace,input:i.input,output:i.output,timeout:i.timeout})}catch(e){if("timed out"!==e.message||void 0===i.default||!i.useDefaultOnTimeout)throw Object.assign(new Error(e.message),{code:"TIMEDOUT"});r=i.default}if(i.trim&&(r=r.trim()),!r){if(void 0===i.default)return e(t,i);r=i.default}try{for(const e in i.validator)r=await i.validator[e](r)}catch(r){if(i.retry)return r.message&&i.output.write(r.message+s),e(t,i);throw r}return r}},67841:(e,t,i)=>{"use strict";var s=i(57310).parse,r={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},n=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function o(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.getProxyForUrl=function(e){var t="string"==typeof e?s(e):e||{},i=t.protocol,a=t.host,c=t.port;if("string"!=typeof a||!a||"string"!=typeof i)return"";if(i=i.split(":",1)[0],!function(e,t){var i=(o("npm_config_no_proxy")||o("no_proxy")).toLowerCase();return!i||"*"!==i&&i.split(/[,\s]/).every((function(i){if(!i)return!0;var s=i.match(/^(.+):(\d+)$/),r=s?s[1]:i,o=s?parseInt(s[2]):0;return!(!o||o===t)||(/^[.*]/.test(r)?("*"===r.charAt(0)&&(r=r.slice(1)),!n.call(e,r)):e!==r)}))}(a=a.replace(/:\d*$/,""),c=parseInt(c)||r[i]||0))return"";var l=o("npm_config_"+i+"_proxy")||o(i+"_proxy")||o("npm_config_proxy")||o("all_proxy");return l&&-1===l.indexOf("://")&&(l=i+"://"+l),l}},91460:(e,t,i)=>{e.exports=function(e,t){if(e.num)throw new Error("read() no longer accepts a char number limit");if(void 0!==e.default&&"string"!=typeof e.default&&"number"!=typeof e.default)throw new Error("default value must be string or number");var i=e.input||process.stdin,n=e.output||process.stdout,o=(e.prompt||"").trim()+" ",a=e.silent,c=!1,l=e.timeout,p=e.default||"";p&&(a?o+="() ":e.edit?c=!0:o+="("+p+") ");var A=!(!e.terminal&&!n.isTTY),u=new r({replace:e.replace,prompt:o});u.pipe(n,{end:!1});var d={input:i,output:n=u,terminal:A};if(process.version.match(/^v0\.6/))var h=s.createInterface(d.input,d.output);else h=s.createInterface(d);n.unmute(),h.setPrompt(o),h.prompt(),a?n.mute():c&&(h.line=p,h.cursor=p.length,h._refreshLine());var m,g=!1;function f(){g=!0,h.close(),process.version.match(/^v0\.6/)&&(h.input.removeAllListeners("data"),h.input.removeAllListeners("keypress"),h.input.pause()),clearTimeout(m),n.mute(),n.end()}function E(e){if(!g)return f(),t(e)}h.on("line",(function(e){if(!g){a&&A&&(n.unmute(),n.write("\r\n")),f(),e=e.replace(/\r?\n$/,"");var i=!(!c||e!==p);p&&!e&&(i=!0,e=p),t(null,e,i)}})),h.on("error",E),h.on("SIGINT",(function(){h.close(),E(new Error("canceled"))})),l&&(m=setTimeout((function(){E(new Error("timed out"))}),l))};var s=i(14521),r=i(83733)},38618:e=>{"use strict";const t={};function i(e,i,s){s||(s=Error);class r extends s{constructor(e,t,s){super(function(e,t,s){return"string"==typeof i?i:i(e,t,s)}(e,t,s))}}r.prototype.name=s.name,r.prototype.code=e,t[e]=r}function s(e,t){if(Array.isArray(e)){const i=e.length;return e=e.map((e=>String(e))),i>2?`one of ${t} ${e.slice(0,i-1).join(", ")}, or `+e[i-1]:2===i?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,i){let r;var n;let o;if("string"==typeof t&&(n="not ",t.substr(0,4)===n)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,i){return(void 0===i||i>e.length)&&(i=e.length),e.substring(i-9,i)===t}(e," argument"))o=`The ${e} ${r} ${s(t,"type")}`;else{o=`The "${e}" ${"number"!=typeof c&&(c=0),c+1>(a=e).length||-1===a.indexOf(".",c)?"argument":"property"} ${r} ${s(t,"type")}`}var a,c;return o+=". Received type "+typeof i,o}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},23955:(e,t,i)=>{"use strict";var s=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};e.exports=l;var r=i(40794),n=i(33216);i(44236)(l,r);for(var o=s(n.prototype),a=0;a{"use strict";e.exports=r;var s=i(93685);function r(e){if(!(this instanceof r))return new r(e);s.call(this,e)}i(44236)(r,s),r.prototype._transform=function(e,t,i){i(null,e)}},40794:(e,t,i)=>{"use strict";var s;e.exports=w,w.ReadableState=B,i(82361).EventEmitter;var r,n=function(e,t){return e.listeners(t).length},o=i(63834),a=i(14300).Buffer,c=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=i(73837);r=l&&l.debuglog?l.debuglog("stream"):function(){};var p,A,u,d=i(68741),h=i(48045),m=i(36782).getHighWaterMark,g=i(38618).q,f=g.ERR_INVALID_ARG_TYPE,E=g.ERR_STREAM_PUSH_AFTER_EOF,C=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(44236)(w,o);var v=h.errorOrDestroy,I=["error","close","destroy","pause","resume"];function B(e,t,r){s=s||i(23955),e=e||{},"boolean"!=typeof r&&(r=t instanceof s),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=i(23457).s),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function w(e){if(s=s||i(23955),!(this instanceof w))return new w(e);var t=this instanceof s;this._readableState=new B(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function b(e,t,i,s,n){r("readableAddChunk",t);var o,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(r("onEofChunk"),!t.ended){if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,S(e)))}}(e,l);else if(n||(o=function(e,t){var i,s;return s=t,a.isBuffer(s)||s instanceof c||"string"==typeof t||void 0===t||e.objectMode||(i=new f("chunk",["string","Buffer","Uint8Array"],t)),i}(l,t)),o)v(e,o);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),s)l.endEmitted?v(e,new y):Q(e,l,t,!0);else if(l.ended)v(e,new E);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!i?(t=l.decoder.write(t),l.objectMode||0!==t.length?Q(e,l,t,!1):_(e,l)):Q(e,l,t,!1)}else s||(l.reading=!1,_(e,l));return!l.ended&&(l.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function D(e){var t=e._readableState;r("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(r("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(S,e))}function S(e){var t=e._readableState;r("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function _(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function F(e){r("readable nexttick read 0"),e.read(0)}function N(e,t){r("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(r("flow",t.flowing);t.flowing&&null!==e.read(););}function O(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):i=t.buffer.consume(e,t.decoder),i);var i}function M(e){var t=e._readableState;r("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(U,t,e))}function U(e,t){if(r("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var i=t._writableState;(!i||i.autoDestroy&&i.finished)&&t.destroy()}}function P(e,t){for(var i=0,s=e.length;i=t.highWaterMark:t.length>0)||t.ended))return r("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):D(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&M(this),null;var s,n=t.needReadable;return r("need readable",n),(0===t.length||t.length-e0?O(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&M(this)),null!==s&&this.emit("data",s),s},w.prototype._read=function(e){v(this,new C("_read()"))},w.prototype.pipe=function(e,t){var i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,r("pipe count=%d opts=%j",s.pipesCount,t);var o=t&&!1===t.end||e===process.stdout||e===process.stderr?h:a;function a(){r("onend"),e.end()}s.endEmitted?process.nextTick(o):i.once("end",o),e.on("unpipe",(function t(n,o){r("onunpipe"),n===i&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,r("cleanup"),e.removeListener("close",u),e.removeListener("finish",d),e.removeListener("drain",c),e.removeListener("error",A),e.removeListener("unpipe",t),i.removeListener("end",a),i.removeListener("end",h),i.removeListener("data",p),l=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;r("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n(e,"data")&&(t.flowing=!0,L(e))}}(i);e.on("drain",c);var l=!1;function p(t){r("ondata");var n=e.write(t);r("dest.write",n),!1===n&&((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==P(s.pipes,e))&&!l&&(r("false write response, pause",s.awaitDrain),s.awaitDrain++),i.pause())}function A(t){r("onerror",t),h(),e.removeListener("error",A),0===n(e,"error")&&v(e,t)}function u(){e.removeListener("finish",d),h()}function d(){r("onfinish"),e.removeListener("close",u),h()}function h(){r("unpipe"),i.unpipe(e)}return i.on("data",p),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",A),e.once("close",u),e.once("finish",d),e.emit("pipe",i),s.flowing||(r("pipe resume"),i.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var s=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n0,!1!==s.flowing&&this.resume()):"readable"===e&&(s.endEmitted||s.readableListening||(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,r("on readable",s.length,s.reading),s.length?D(this):s.reading||process.nextTick(F,this))),i},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(e,t){var i=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(T,this),i},w.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(T,this),t},w.prototype.resume=function(){var e=this._readableState;return e.flowing||(r("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(N,e,t))}(this,e)),e.paused=!1,this},w.prototype.pause=function(){return r("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(r("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(e){var t=this,i=this._readableState,s=!1;for(var n in e.on("end",(function(){if(r("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(n){r("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n||(i.objectMode||n&&n.length)&&(t.push(n)||(s=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var o=0;o{"use strict";e.exports=p;var s=i(38618).q,r=s.ERR_METHOD_NOT_IMPLEMENTED,n=s.ERR_MULTIPLE_CALLBACK,o=s.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=s.ERR_TRANSFORM_WITH_LENGTH_0,c=i(23955);function l(e,t){var i=this._transformState;i.transforming=!1;var s=i.writecb;if(null===s)return this.emit("error",new n);i.writechunk=null,i.writecb=null,null!=t&&this.push(t),s(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length{"use strict";function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var s=e.entry;for(e.entry=null;s;){var r=s.callback;t.pendingcb--,r(undefined),s=s.next}t.corkedRequestsFree.next=e}(t,e)}}var r;e.exports=w,w.WritableState=B;var n,o={deprecate:i(64096)},a=i(63834),c=i(14300).Buffer,l=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=i(48045),A=i(36782).getHighWaterMark,u=i(38618).q,d=u.ERR_INVALID_ARG_TYPE,h=u.ERR_METHOD_NOT_IMPLEMENTED,m=u.ERR_MULTIPLE_CALLBACK,g=u.ERR_STREAM_CANNOT_PIPE,f=u.ERR_STREAM_DESTROYED,E=u.ERR_STREAM_NULL_VALUES,C=u.ERR_STREAM_WRITE_AFTER_END,y=u.ERR_UNKNOWN_ENCODING,v=p.errorOrDestroy;function I(){}function B(e,t,n){r=r||i(23955),e=e||{},"boolean"!=typeof n&&(n=t instanceof r),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=A(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,s=i.sync,r=i.writecb;if("function"!=typeof r)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,s,r){--t.pendingcb,i?(process.nextTick(r,s),process.nextTick(S,e,t),e._writableState.errorEmitted=!0,v(e,s)):(r(s),e._writableState.errorEmitted=!0,v(e,s),S(e,t))}(e,i,s,t,r);else{var n=k(i)||e.destroyed;n||i.corked||i.bufferProcessing||!i.bufferedRequest||x(e,i),s?process.nextTick(Q,e,i,n,r):Q(e,i,n,r)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function w(e){var t=this instanceof(r=r||i(23955));if(!t&&!n.call(w,this))return new w(e);this._writableState=new B(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function b(e,t,i,s,r,n,o){t.writelen=s,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new f("write")):i?e._writev(r,t.onwrite):e._write(r,n,t.onwrite),t.sync=!1}function Q(e,t,i,s){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,s(),S(e,t)}function x(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var r=t.bufferedRequestCount,n=new Array(r),o=t.corkedRequestsFree;o.entry=i;for(var a=0,c=!0;i;)n[a]=i,i.isBuf||(c=!1),i=i.next,a+=1;n.allBuffers=c,b(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;i;){var l=i.chunk,p=i.encoding,A=i.callback;if(b(e,t,!1,t.objectMode?1:l.length,l,p,A),i=i.next,t.bufferedRequestCount--,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequest=i,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function D(e,t){e._final((function(i){t.pendingcb--,i&&v(e,i),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var i=k(t);if(i&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(D,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var s=e._readableState;(!s||s.autoDestroy&&s.endEmitted)&&e.destroy()}return i}i(44236)(w,a),B.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(B.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===w&&e&&e._writableState instanceof B}})):n=function(e){return e instanceof this},w.prototype.pipe=function(){v(this,new g)},w.prototype.write=function(e,t,i){var s,r=this._writableState,n=!1,o=!r.objectMode&&(s=e,c.isBuffer(s)||s instanceof l);return o&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(i=t,t=null),o?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof i&&(i=I),r.ending?function(e,t){var i=new C;v(e,i),process.nextTick(t,i)}(this,i):(o||function(e,t,i,s){var r;return null===i?r=new E:"string"==typeof i||t.objectMode||(r=new d("chunk",["string","Buffer"],i)),!r||(v(e,r),process.nextTick(s,r),!1)}(this,r,e,i))&&(r.pendingcb++,n=function(e,t,i,s,r,n){if(!i){var o=function(e,t,i){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,i)),t}(t,s,r);s!==o&&(i=!0,r="buffer",s=o)}var a=t.objectMode?1:s.length;t.length+=a;var l=t.length-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,i){i(new h("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,i){var s=this._writableState;return"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||function(e,t,i){t.ending=!0,S(e,t),i&&(t.finished?process.nextTick(i):e.once("finish",i)),t.ended=!0,e.writable=!1}(this,s,i),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=p.destroy,w.prototype._undestroy=p.undestroy,w.prototype._destroy=function(e,t){t(e)}},21505:(e,t,i)=>{"use strict";var s;function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var n=i(3825),o=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),p=Symbol("lastPromise"),A=Symbol("handlePromise"),u=Symbol("stream");function d(e,t){return{value:e,done:t}}function h(e){var t=e[o];if(null!==t){var i=e[u].read();null!==i&&(e[p]=null,e[o]=null,e[a]=null,t(d(i,!1)))}}function m(e){process.nextTick(h,e)}var g=Object.getPrototypeOf((function(){})),f=Object.setPrototypeOf((r(s={get stream(){return this[u]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(d(void 0,!0));if(this[u].destroyed)return new Promise((function(t,i){process.nextTick((function(){e[c]?i(e[c]):t(d(void 0,!0))}))}));var i,s=this[p];if(s)i=new Promise(function(e,t){return function(i,s){e.then((function(){t[l]?i(d(void 0,!0)):t[A](i,s)}),s)}}(s,this));else{var r=this[u].read();if(null!==r)return Promise.resolve(d(r,!1));i=new Promise(this[A])}return this[p]=i,i}},Symbol.asyncIterator,(function(){return this})),r(s,"return",(function(){var e=this;return new Promise((function(t,i){e[u].destroy(null,(function(e){e?i(e):t(d(void 0,!0))}))}))})),s),g);e.exports=function(e){var t,i=Object.create(f,(r(t={},u,{value:e,writable:!0}),r(t,o,{value:null,writable:!0}),r(t,a,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:e._readableState.endEmitted,writable:!0}),r(t,A,{value:function(e,t){var s=i[u].read();s?(i[p]=null,i[o]=null,i[a]=null,e(d(s,!1))):(i[o]=e,i[a]=t)},writable:!0}),t));return i[p]=null,n(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=i[a];return null!==t&&(i[p]=null,i[o]=null,i[a]=null,t(e)),void(i[c]=e)}var s=i[o];null!==s&&(i[p]=null,i[o]=null,i[a]=null,s(d(void 0,!0))),i[l]=!0})),e.on("readable",m.bind(null,i)),i}},68741:(e,t,i)=>{"use strict";function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,i,s,r=c.allocUnsafe(e>>>0),n=this.head,o=0;n;)t=n.data,i=r,s=o,c.prototype.copy.call(t,i,s),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(e,t){var i;return er.length?r.length:e;if(n===r.length?s+=r:s+=r.slice(0,e),0==(e-=n)){n===r.length?(++i,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(n));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),i=this.head,s=1;for(i.data.copy(t),e-=i.data.length;i=i.next;){var r=i.data,n=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,n),0==(e-=n)){n===r.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=r.slice(n));break}++s}return this.length-=s,t}},{key:p,value:function(e,t){return l(this,r(r({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},48045:e=>{"use strict";function t(e,t){s(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(e,t){e.emit("error",t)}e.exports={destroy:function(e,r){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(s,this,e)):process.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!r&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(t,n,e)):process.nextTick(t,n,e):r?(process.nextTick(i,n),r(e)):process.nextTick(i,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var i=e._readableState,s=e._writableState;i&&i.autoDestroy||s&&s.autoDestroy?e.destroy(t):e.emit("error",t)}}},3825:(e,t,i)=>{"use strict";var s=i(38618).q.ERR_STREAM_PREMATURE_CLOSE;function r(){}e.exports=function e(t,i,n){if("function"==typeof i)return e(t,null,i);i||(i={}),n=function(e){var t=!1;return function(){if(!t){t=!0;for(var i=arguments.length,s=new Array(i),r=0;r{"use strict";function s(e,t,i,s,r,n,o){try{var a=e[n](o),c=a.value}catch(e){return void i(e)}a.done?t(c):Promise.resolve(c).then(s,r)}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var o=i(38618).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,i){var a;if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else{if(!t||!t[Symbol.iterator])throw new o("iterable",["Iterable"],t);a=t[Symbol.iterator]()}var c=new e(function(e){for(var t=1;t{"use strict";var s,r=i(38618).q,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r0,(function(e){p||(p=e),e&&u.forEach(c),n||(u.forEach(c),A(p))}))}));return t.reduce(l)}},36782:(e,t,i)=>{"use strict";var s=i(38618).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,i,r){var n=function(e,t,i){return null!=e.highWaterMark?e.highWaterMark:t?e[i]:null}(t,r,i);if(null!=n){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new s(r?i:"highWaterMark",n);return Math.floor(n)}return e.objectMode?16:16384}}},63834:(e,t,i)=>{e.exports=i(12781)},65945:(e,t,i)=>{var s=i(12781);"disable"===process.env.READABLE_STREAM&&s?(e.exports=s.Readable,Object.assign(e.exports,s),e.exports.Stream=s):((t=e.exports=i(40794)).Stream=s||t,t.Readable=t,t.Writable=i(33216),t.Duplex=i(23955),t.Transform=i(93685),t.PassThrough=i(70637),t.finished=i(3825),t.pipeline=i(3599))},60350:(e,t,i)=>{"use strict";const s=i(86015),r=i(82877);e.exports=s((()=>{r((()=>{process.stderr.write("[?25h")}),{alwaysLast:!0})}))},83490:(e,t,i)=>{e.exports=i(25630)},25630:(e,t,i)=>{var s=i(44264);t.operation=function(e){var i=t.timeouts(e);return new s(i,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var i in e)t[i]=e[i];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],r=0;r{function t(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var i=this._timeouts.shift();if(void 0===i){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1)}var s=this;return this._timer=setTimeout((function(){s._attempts++,s._operationTimeoutCb&&(s._timeout=setTimeout((function(){s._operationTimeoutCb(s._attempts)}),s._operationTimeout),s._options.unref&&s._timeout.unref()),s._fn(s._attempts)}),i),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){i._operationTimeoutCb()}),i._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,i=0,s=0;s=i&&(t=r,i=o)}return t}},21607:(e,t,i)=>{var s=i(14300),r=s.Buffer;function n(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=s:(n(s,t),t.Buffer=o),o.prototype=Object.create(r.prototype),n(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var s=r(e);return void 0!==t?"string"==typeof i?s.fill(t,i):s.fill(t):s.fill(0),s},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s.SlowBuffer(e)}},66577:(e,t,i)=>{"use strict";var s=i(79049),r=i(75080);function n(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function o(e){return e}e.exports=function(e,t){"function"==typeof t&&(t={parse:t});var i=function(e){if("object"!==s(e)&&(e={content:e}),"string"!=typeof e.content&&!((t=e.content)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)))throw new TypeError("expected a buffer or string");var t;return e.content=e.content.toString(),e.sections=[],e}(e),a=r({},{section_delimiter:"---",parse:o},t),c=a.section_delimiter,l=i.content.split(/\r?\n/),p=null,A={key:"",data:"",content:""},u=[],d=[];function h(e){i.content=e,p=[],u=[]}function m(e){d.length&&(A.key=function(e,t){return e?e.slice(t.length).trim():""}(d[0],c),A.content=e,a.parse(A,p),p.push(A),A={key:"",data:"",content:""},u=[],d=[])}for(var g=0;g{const s=Symbol("SemVer ANY");class r{static get ANY(){return s}constructor(e,t){if(t=n(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===s?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new p(i[2],this.options.loose):this.semver=s}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===s||e===s)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new A(e.value,t).test(this.value):""===e.operator?""===e.value||new A(this.value,t).test(e.semver):!((t=n(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=r;const n=i(11296),{safeRe:o,t:a}=i(63573),c=i(8176),l=i(49175),p=i(7742),A=i(33957)},33957:(e,t,i)=>{class s{constructor(e,t){if(t=n(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&f(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+e,i=r.get(t);if(i)return i;const s=this.options.loose,n=s?l[p.HYPHENRANGELOOSE]:l[p.HYPHENRANGE];e=e.replace(n,D(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(l[p.COMPARATORTRIM],A),a("comparator trim",e),e=e.replace(l[p.TILDETRIM],u),a("tilde trim",e),e=e.replace(l[p.CARETTRIM],d),a("caret trim",e);let c=e.split(" ").map((e=>C(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));s&&(c=c.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(l[p.COMPARATORLOOSE]))))),a("range list",c);const f=new Map,E=c.map((e=>new o(e,this.options)));for(const e of E){if(g(e))return[e];f.set(e.value,e)}f.size>1&&f.has("")&&f.delete("");const y=[...f.values()];return r.set(t,y),y}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((i=>E(i,t)&&e.set.some((e=>E(e,t)&&i.every((i=>e.every((e=>i.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,f=e=>""===e.value,E=(e,t)=>{let i=!0;const s=e.slice();let r=s.pop();for(;i&&s.length;)i=s.every((e=>r.intersects(e,t))),r=s.pop();return i},C=(e,t)=>(a("comp",e,t),e=B(e,t),a("caret",e),e=v(e,t),a("tildes",e),e=b(e,t),a("xrange",e),e=x(e,t),a("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>{const i=t.loose?l[p.TILDELOOSE]:l[p.TILDE];return e.replace(i,((t,i,s,r,n)=>{let o;return a("tilde",e,t,i,s,r,n),y(i)?o="":y(s)?o=`>=${i}.0.0 <${+i+1}.0.0-0`:y(r)?o=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:n?(a("replaceTilde pr",n),o=`>=${i}.${s}.${r}-${n} <${i}.${+s+1}.0-0`):o=`>=${i}.${s}.${r} <${i}.${+s+1}.0-0`,a("tilde return",o),o}))},B=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{a("caret",e,t);const i=t.loose?l[p.CARETLOOSE]:l[p.CARET],s=t.includePrerelease?"-0":"";return e.replace(i,((t,i,r,n,o)=>{let c;return a("caret",e,t,i,r,n,o),y(i)?c="":y(r)?c=`>=${i}.0.0${s} <${+i+1}.0.0-0`:y(n)?c="0"===i?`>=${i}.${r}.0${s} <${i}.${+r+1}.0-0`:`>=${i}.${r}.0${s} <${+i+1}.0.0-0`:o?(a("replaceCaret pr",o),c="0"===i?"0"===r?`>=${i}.${r}.${n}-${o} <${i}.${r}.${+n+1}-0`:`>=${i}.${r}.${n}-${o} <${i}.${+r+1}.0-0`:`>=${i}.${r}.${n}-${o} <${+i+1}.0.0-0`):(a("no pr"),c="0"===i?"0"===r?`>=${i}.${r}.${n}${s} <${i}.${r}.${+n+1}-0`:`>=${i}.${r}.${n}${s} <${i}.${+r+1}.0-0`:`>=${i}.${r}.${n} <${+i+1}.0.0-0`),a("caret return",c),c}))},b=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>Q(e,t))).join(" ")),Q=(e,t)=>{e=e.trim();const i=t.loose?l[p.XRANGELOOSE]:l[p.XRANGE];return e.replace(i,((i,s,r,n,o,c)=>{a("xRange",e,i,s,r,n,o,c);const l=y(r),p=l||y(n),A=p||y(o),u=A;return"="===s&&u&&(s=""),c=t.includePrerelease?"-0":"",l?i=">"===s||"<"===s?"<0.0.0-0":"*":s&&u?(p&&(n=0),o=0,">"===s?(s=">=",p?(r=+r+1,n=0,o=0):(n=+n+1,o=0)):"<="===s&&(s="<",p?r=+r+1:n=+n+1),"<"===s&&(c="-0"),i=`${s+r}.${n}.${o}${c}`):p?i=`>=${r}.0.0${c} <${+r+1}.0.0-0`:A&&(i=`>=${r}.${n}.0${c} <${r}.${+n+1}.0-0`),a("xRange return",i),i}))},x=(e,t)=>(a("replaceStars",e,t),e.trim().replace(l[p.STAR],"")),k=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?p.GTE0PRE:p.GTE0],"")),D=e=>(t,i,s,r,n,o,a,c,l,p,A,u,d)=>`${i=y(s)?"":y(r)?`>=${s}.0.0${e?"-0":""}`:y(n)?`>=${s}.${r}.0${e?"-0":""}`:o?`>=${i}`:`>=${i}${e?"-0":""}`} ${c=y(l)?"":y(p)?`<${+l+1}.0.0-0`:y(A)?`<${l}.${+p+1}.0-0`:u?`<=${l}.${p}.${A}-${u}`:e?`<${l}.${p}.${+A+1}-0`:`<=${c}`}`.trim(),S=(e,t,i)=>{for(let i=0;i0){const s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}},7742:(e,t,i)=>{const s=i(49175),{MAX_LENGTH:r,MAX_SAFE_INTEGER:n}=i(11321),{safeRe:o,t:a}=i(63573),c=i(11296),{compareIdentifiers:l}=i(9029);class p{constructor(e,t){if(t=c(t),e instanceof p){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>r)throw new TypeError(`version is longer than ${r} characters`);s("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(t===this.prerelease.join(".")&&!1===i)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let s=[t,e];!1===i&&(s=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=p},59440:(e,t,i)=>{const s=i(80769);e.exports=(e,t)=>{const i=s(e.trim().replace(/^[=v]+/,""),t);return i?i.version:null}},8176:(e,t,i)=>{const s=i(89883),r=i(30448),n=i(59880),o=i(20705),a=i(16683),c=i(81562);e.exports=(e,t,i,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof i&&(i=i.version),e===i;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof i&&(i=i.version),e!==i;case"":case"=":case"==":return s(e,i,l);case"!=":return r(e,i,l);case">":return n(e,i,l);case">=":return o(e,i,l);case"<":return a(e,i,l);case"<=":return c(e,i,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},68923:(e,t,i)=>{const s=i(7742),r=i(80769),{safeRe:n,t:o}=i(63573);e.exports=(e,t)=>{if(e instanceof s)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let t;for(;(t=n[o.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&t.index+t[0].length===i.index+i[0].length||(i=t),n[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;n[o.COERCERTL].lastIndex=-1}else i=e.match(n[o.COERCE]);return null===i?null:r(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t)}},30791:(e,t,i)=>{const s=i(7742);e.exports=(e,t,i)=>{const r=new s(e,i),n=new s(t,i);return r.compare(n)||r.compareBuild(n)}},96185:(e,t,i)=>{const s=i(85239);e.exports=(e,t)=>s(e,t,!0)},85239:(e,t,i)=>{const s=i(7742);e.exports=(e,t,i)=>new s(e,i).compare(new s(t,i))},17530:(e,t,i)=>{const s=i(80769);e.exports=(e,t)=>{const i=s(e,null,!0),r=s(t,null,!0),n=i.compare(r);if(0===n)return null;const o=n>0,a=o?i:r,c=o?r:i,l=!!a.prerelease.length;if(c.prerelease.length&&!l)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";const p=l?"pre":"";return i.major!==r.major?p+"major":i.minor!==r.minor?p+"minor":i.patch!==r.patch?p+"patch":"prerelease"}},89883:(e,t,i)=>{const s=i(85239);e.exports=(e,t,i)=>0===s(e,t,i)},59880:(e,t,i)=>{const s=i(85239);e.exports=(e,t,i)=>s(e,t,i)>0},20705:(e,t,i)=>{const s=i(85239);e.exports=(e,t,i)=>s(e,t,i)>=0},81382:(e,t,i)=>{const s=i(7742);e.exports=(e,t,i,r,n)=>{"string"==typeof i&&(n=r,r=i,i=void 0);try{return new s(e instanceof s?e.version:e,i).inc(t,r,n).version}catch(e){return null}}},16683:(e,t,i)=>{const s=i(85239);e.exports=(e,t,i)=>s(e,t,i)<0},81562:(e,t,i)=>{const s=i(85239);e.exports=(e,t,i)=>s(e,t,i)<=0},39374:(e,t,i)=>{const s=i(7742);e.exports=(e,t)=>new s(e,t).major},92531:(e,t,i)=>{const s=i(7742);e.exports=(e,t)=>new s(e,t).minor},30448:(e,t,i)=>{const s=i(85239);e.exports=(e,t,i)=>0!==s(e,t,i)},80769:(e,t,i)=>{const s=i(7742);e.exports=(e,t,i=!1)=>{if(e instanceof s)return e;try{return new s(e,t)}catch(e){if(!i)return null;throw e}}},15140:(e,t,i)=>{const s=i(7742);e.exports=(e,t)=>new s(e,t).patch},53057:(e,t,i)=>{const s=i(80769);e.exports=(e,t)=>{const i=s(e,t);return i&&i.prerelease.length?i.prerelease:null}},20540:(e,t,i)=>{const s=i(85239);e.exports=(e,t,i)=>s(t,e,i)},57213:(e,t,i)=>{const s=i(30791);e.exports=(e,t)=>e.sort(((e,i)=>s(i,e,t)))},21695:(e,t,i)=>{const s=i(33957);e.exports=(e,t,i)=>{try{t=new s(t,i)}catch(e){return!1}return t.test(e)}},62626:(e,t,i)=>{const s=i(30791);e.exports=(e,t)=>e.sort(((e,i)=>s(e,i,t)))},69367:(e,t,i)=>{const s=i(80769);e.exports=(e,t)=>{const i=s(e,t);return i?i.version:null}},50595:(e,t,i)=>{const s=i(63573),r=i(11321),n=i(7742),o=i(9029),a=i(80769),c=i(69367),l=i(59440),p=i(81382),A=i(17530),u=i(39374),d=i(92531),h=i(15140),m=i(53057),g=i(85239),f=i(20540),E=i(96185),C=i(30791),y=i(62626),v=i(57213),I=i(59880),B=i(16683),w=i(89883),b=i(30448),Q=i(20705),x=i(81562),k=i(8176),D=i(68923),S=i(41896),_=i(33957),R=i(21695),T=i(42988),F=i(20069),N=i(57581),L=i(64349),O=i(36456),M=i(83098),U=i(21609),P=i(79675),G=i(1226),V=i(69315),j=i(79196);e.exports={parse:a,valid:c,clean:l,inc:p,diff:A,major:u,minor:d,patch:h,prerelease:m,compare:g,rcompare:f,compareLoose:E,compareBuild:C,sort:y,rsort:v,gt:I,lt:B,eq:w,neq:b,gte:Q,lte:x,cmp:k,coerce:D,Comparator:S,Range:_,satisfies:R,toComparators:T,maxSatisfying:F,minSatisfying:N,minVersion:L,validRange:O,outside:M,gtr:U,ltr:P,intersects:G,simplifyRange:V,subset:j,SemVer:n,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},11321:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},49175:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},9029:e=>{const t=/^[0-9]+$/,i=(e,i)=>{const s=t.test(e),r=t.test(i);return s&&r&&(e=+e,i=+i),e===i?0:s&&!r?-1:r&&!s?1:ei(t,e)}},11296:e=>{const t=Object.freeze({loose:!0}),i=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:i},63573:(e,t,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:n}=i(11321),o=i(49175),a=(t=e.exports={}).re=[],c=t.safeRe=[],l=t.src=[],p=t.t={};let A=0;const u="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",n],[u,r]],h=(e,t,i)=>{const s=(e=>{for(const[t,i]of d)e=e.split(`${t}*`).join(`${t}{0,${i}}`).split(`${t}+`).join(`${t}{1,${i}}`);return e})(t),r=A++;o(e,r,t),p[e]=r,l[r]=t,a[r]=new RegExp(t,i?"g":void 0),c[r]=new RegExp(s,i?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u}*`),h("MAINVERSION",`(${l[p.NUMERICIDENTIFIER]})\\.(${l[p.NUMERICIDENTIFIER]})\\.(${l[p.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${l[p.NUMERICIDENTIFIERLOOSE]})\\.(${l[p.NUMERICIDENTIFIERLOOSE]})\\.(${l[p.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${l[p.NUMERICIDENTIFIER]}|${l[p.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${l[p.NUMERICIDENTIFIERLOOSE]}|${l[p.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${l[p.PRERELEASEIDENTIFIER]}(?:\\.${l[p.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${l[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[p.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${u}+`),h("BUILD",`(?:\\+(${l[p.BUILDIDENTIFIER]}(?:\\.${l[p.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${l[p.MAINVERSION]}${l[p.PRERELEASE]}?${l[p.BUILD]}?`),h("FULL",`^${l[p.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${l[p.MAINVERSIONLOOSE]}${l[p.PRERELEASELOOSE]}?${l[p.BUILD]}?`),h("LOOSE",`^${l[p.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${l[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${l[p.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${l[p.XRANGEIDENTIFIER]})(?:\\.(${l[p.XRANGEIDENTIFIER]})(?:\\.(${l[p.XRANGEIDENTIFIER]})(?:${l[p.PRERELEASE]})?${l[p.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${l[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[p.XRANGEIDENTIFIERLOOSE]})(?:${l[p.PRERELEASELOOSE]})?${l[p.BUILD]}?)?)?`),h("XRANGE",`^${l[p.GTLT]}\\s*${l[p.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${l[p.GTLT]}\\s*${l[p.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?(?:$|[^\\d])`),h("COERCERTL",l[p.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${l[p.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${l[p.LONETILDE]}${l[p.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${l[p.LONETILDE]}${l[p.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${l[p.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${l[p.LONECARET]}${l[p.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${l[p.LONECARET]}${l[p.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${l[p.GTLT]}\\s*(${l[p.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${l[p.GTLT]}\\s*(${l[p.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${l[p.GTLT]}\\s*(${l[p.LOOSEPLAIN]}|${l[p.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${l[p.XRANGEPLAIN]})\\s+-\\s+(${l[p.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${l[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[p.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},21609:(e,t,i)=>{const s=i(83098);e.exports=(e,t,i)=>s(e,t,">",i)},1226:(e,t,i)=>{const s=i(33957);e.exports=(e,t,i)=>(e=new s(e,i),t=new s(t,i),e.intersects(t,i))},79675:(e,t,i)=>{const s=i(83098);e.exports=(e,t,i)=>s(e,t,"<",i)},20069:(e,t,i)=>{const s=i(7742),r=i(33957);e.exports=(e,t,i)=>{let n=null,o=null,a=null;try{a=new r(t,i)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&-1!==o.compare(e)||(n=e,o=new s(n,i)))})),n}},57581:(e,t,i)=>{const s=i(7742),r=i(33957);e.exports=(e,t,i)=>{let n=null,o=null,a=null;try{a=new r(t,i)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&1!==o.compare(e)||(n=e,o=new s(n,i)))})),n}},64349:(e,t,i)=>{const s=i(7742),r=i(33957),n=i(59880);e.exports=(e,t)=>{e=new r(e,t);let i=new s("0.0.0");if(e.test(i))return i;if(i=new s("0.0.0-0"),e.test(i))return i;i=null;for(let t=0;t{const t=new s(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!n(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||i&&!n(i,o)||(i=o)}return i&&e.test(i)?i:null}},83098:(e,t,i)=>{const s=i(7742),r=i(41896),{ANY:n}=r,o=i(33957),a=i(21695),c=i(59880),l=i(16683),p=i(81562),A=i(20705);e.exports=(e,t,i,u)=>{let d,h,m,g,f;switch(e=new s(e,u),t=new o(t,u),i){case">":d=c,h=p,m=l,g=">",f=">=";break;case"<":d=l,h=A,m=c,g="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,u))return!1;for(let i=0;i{e.semver===n&&(e=new r(">=0.0.0")),o=o||e,a=a||e,d(e.semver,o.semver,u)?o=e:m(e.semver,a.semver,u)&&(a=e)})),o.operator===g||o.operator===f)return!1;if((!a.operator||a.operator===g)&&h(e,a.semver))return!1;if(a.operator===f&&m(e,a.semver))return!1}return!0}},69315:(e,t,i)=>{const s=i(21695),r=i(85239);e.exports=(e,t,i)=>{const n=[];let o=null,a=null;const c=e.sort(((e,t)=>r(e,t,i)));for(const e of c)s(e,t,i)?(a=e,o||(o=e)):(a&&n.push([o,a]),a=null,o=null);o&&n.push([o,null]);const l=[];for(const[e,t]of n)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const p=l.join(" || "),A="string"==typeof t.raw?t.raw:String(t);return p.length{const s=i(33957),r=i(41896),{ANY:n}=r,o=i(21695),a=i(85239),c=[new r(">=0.0.0-0")],l=[new r(">=0.0.0")],p=(e,t,i)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=i.includePrerelease?c:l}if(1===t.length&&t[0].semver===n){if(i.includePrerelease)return!0;t=l}const s=new Set;let r,p,d,h,m,g,f;for(const t of e)">"===t.operator||">="===t.operator?r=A(r,t,i):"<"===t.operator||"<="===t.operator?p=u(p,t,i):s.add(t.semver);if(s.size>1)return null;if(r&&p){if(d=a(r.semver,p.semver,i),d>0)return null;if(0===d&&(">="!==r.operator||"<="!==p.operator))return null}for(const e of s){if(r&&!o(e,String(r),i))return null;if(p&&!o(e,String(p),i))return null;for(const s of t)if(!o(e,String(s),i))return!1;return!0}let E=!(!p||i.includePrerelease||!p.semver.prerelease.length)&&p.semver,C=!(!r||i.includePrerelease||!r.semver.prerelease.length)&&r.semver;E&&1===E.prerelease.length&&"<"===p.operator&&0===E.prerelease[0]&&(E=!1);for(const e of t){if(f=f||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,r)if(C&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===C.major&&e.semver.minor===C.minor&&e.semver.patch===C.patch&&(C=!1),">"===e.operator||">="===e.operator){if(h=A(r,e,i),h===e&&h!==r)return!1}else if(">="===r.operator&&!o(r.semver,String(e),i))return!1;if(p)if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if(m=u(p,e,i),m===e&&m!==p)return!1}else if("<="===p.operator&&!o(p.semver,String(e),i))return!1;if(!e.operator&&(p||r)&&0!==d)return!1}return!(r&&g&&!p&&0!==d||p&&f&&!r&&0!==d||C||E)},A=(e,t,i)=>{if(!e)return t;const s=a(e.semver,t.semver,i);return s>0?e:s<0||">"===t.operator&&">="===e.operator?t:e},u=(e,t,i)=>{if(!e)return t;const s=a(e.semver,t.semver,i);return s<0?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,i={})=>{if(e===t)return!0;e=new s(e,i),t=new s(t,i);let r=!1;e:for(const s of e.set){for(const e of t.set){const t=p(s,e,i);if(r=r||null!==t,t)continue e}if(r)return!1}return!0}},42988:(e,t,i)=>{const s=i(33957);e.exports=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},36456:(e,t,i)=>{const s=i(33957);e.exports=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}}},82877:(e,t,i)=>{var s=global.process;const r=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(r(s)){var n,o=i(39491),a=i(32827),c=/^win/i.test(s.platform),l=i(82361);"function"!=typeof l&&(l=l.EventEmitter),s.__signal_exit_emitter__?n=s.__signal_exit_emitter__:((n=s.__signal_exit_emitter__=new l).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),e.exports=function(e,t){if(!r(global.process))return function(){};o.equal(typeof e,"function","a callback must be provided for exit handler"),!1===d&&h();var i="exit";return t&&t.alwaysLast&&(i="afterexit"),n.on(i,e),function(){n.removeListener(i,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&p()}};var p=function(){d&&r(global.process)&&(d=!1,a.forEach((function(e){try{s.removeListener(e,u[e])}catch(e){}})),s.emit=f,s.reallyExit=m,n.count-=1)};e.exports.unload=p;var A=function(e,t,i){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,i))},u={};a.forEach((function(e){u[e]=function(){r(global.process)&&s.listeners(e).length===n.count&&(p(),A("exit",null,e),A("afterexit",null,e),c&&"SIGHUP"===e&&(e="SIGINT"),s.kill(s.pid,e))}})),e.exports.signals=function(){return a};var d=!1,h=function(){!d&&r(global.process)&&(d=!0,n.count+=1,a=a.filter((function(e){try{return s.on(e,u[e]),!0}catch(e){return!1}})),s.emit=E,s.reallyExit=g)};e.exports.load=h;var m=s.reallyExit,g=function(e){r(global.process)&&(s.exitCode=e||0,A("exit",s.exitCode,null),A("afterexit",s.exitCode,null),m.call(s,s.exitCode))},f=s.emit,E=function(e,t){if("exit"===e&&r(global.process)){void 0!==t&&(s.exitCode=t);var i=f.apply(this,arguments);return A("exit",s.exitCode,null),A("afterexit",s.exitCode,null),i}return f.apply(this,arguments)}}else e.exports=function(){return function(){}}},32827:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},92703:(e,t,i)=>{var s,r,n,o=Object.create,a=Object.defineProperty,c=Object.defineProperties,l=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(e,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,f=(e,t)=>{for(var i in t||(t={}))h.call(t,i)&&g(e,i,t[i]);if(u)for(var i of u(t))m.call(t,i)&&g(e,i,t[i]);return e},E=(e,t)=>c(e,p(t)),C=e=>a(e,"__esModule",{value:!0}),y=(e,t)=>function(){return e&&(t=(0,e[A(e)[0]])(e=0)),t},v=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:!0})},I=(e,t,i,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of A(t))h.call(e,r)||!i&&"default"===r||a(e,r,{get:()=>t[r],enumerable:!(s=l(t,r))||s.enumerable});return e},B=(e=>(t,i)=>e&&e.get(t)||(i=I(C({}),t,1),e&&e.set(t,i),i))("undefined"!=typeof WeakMap?new WeakMap:0),w=(e,t,i)=>new Promise(((s,r)=>{var n=e=>{try{a(i.next(e))}catch(e){r(e)}},o=e=>{try{a(i.throw(e))}catch(e){r(e)}},a=e=>e.done?s(e.value):Promise.resolve(e.value).then(n,o);a((i=i.apply(e,t)).next())})),b=y({"src/lib/errors/git-error.ts"(){s=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),Q=y({"src/lib/errors/git-response-error.ts"(){b(),r=class extends s{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}});function x(...e){const t=new String(e);return n.set(t,e),t}function k(e){return e instanceof String&&n.has(e)}function D(e){return n.get(e)||[]}var S,_,R,T,F,N,L,O=y({"src/lib/args/pathspec.ts"(){n=new WeakMap}}),M=y({"src/lib/errors/git-construct-error.ts"(){b(),S=class extends s{constructor(e,t){super(void 0,t),this.config=e}}}}),U=y({"src/lib/errors/git-plugin-error.ts"(){b(),_=class extends s{constructor(e,t,i){super(e,i),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}}}}),P=y({"src/lib/errors/task-configuration-error.ts"(){b(),R=class extends s{constructor(e){super(void 0,e)}}}});function G(e){return"function"==typeof e?e:N}function V(e){return"function"==typeof e&&e!==N}function j(e,t){const i=e.indexOf(t);return i<=0?[e,""]:[e.substr(0,i),e.substr(i+1)]}function H(e,t=0){return q(e)&&e.length>t?e[t]:void 0}function J(e,t=0){if(q(e)&&e.length>t)return e[e.length-1-t]}function q(e){return!(!e||"number"!=typeof e.length)}function Y(e="",t=!0,i="\n"){return e.split(i).reduce(((e,i)=>{const s=t?i.trim():i;return s&&e.push(s),e}),[])}function W(e,t){return Y(e,!0).map((e=>t(e)))}function z(e){return(0,T.exists)(e,T.FOLDER)}function $(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function X(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function K(e,t){if(Array.isArray(e)){const i=e.indexOf(t);i>=0&&e.splice(i,1)}else e.delete(t);return t}function Z(e){return Array.isArray(e)?e:[e]}function ee(e){return Z(e).map(String)}function te(e,t=0){if(null==e)return t;const i=parseInt(e,10);return isNaN(i)?t:i}function ie(e,t){const i=[];for(let s=0,r=e.length;st in e?{[t]:e[t]}:{})))}function ne(e=0){return new Promise((t=>setTimeout(t,e)))}var oe,ae,ce,le,pe,Ae=y({"src/lib/utils/util.ts"(){T=i(55763),F="\0",N=()=>{},L=Object.prototype.toString.call.bind(Object.prototype.toString)}});function ue(e,t,i){return t(e)?e:arguments.length>2?i:void 0}function de(e,t){const i=k(e)?"string":typeof e;return/number|string|boolean/.test(i)&&(!t||!t.includes(i))}function he(e){return!!e&&"[object Object]"===L(e)}function me(e){return"function"==typeof e}var ge,fe,Ee,Ce,ye,ve=y({"src/lib/utils/argument-filters.ts"(){Ae(),O(),oe=e=>Array.isArray(e),ae=e=>"string"==typeof e,ce=e=>Array.isArray(e)&&e.every(ae),le=e=>ae(e)||Array.isArray(e)&&e.every(ae),pe=e=>null!=e&&!"number|boolean|function".includes(typeof e)&&(Array.isArray(e)||"string"==typeof e||"number"==typeof e.length)}}),Ie=y({"src/lib/utils/exit-codes.ts"(){ge=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.NOT_FOUND=-2]="NOT_FOUND",e[e.UNCLEAN=128]="UNCLEAN",e))(ge||{})}}),Be=y({"src/lib/utils/git-output-streams.ts"(){fe=class{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new fe(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}}),we=y({"src/lib/utils/line-parser.ts"(){Ee=class{constructor(e,t){this.matches=[],this.parse=(e,t)=>(this.resetMatches(),!!this._regExp.every(((t,i)=>this.addMatch(t,i,e(i))))&&!1!==this.useMatches(t,this.prepareMatches())),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}useMatches(e,t){throw new Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,i){const s=i&&e.exec(i);return s&&this.pushMatch(t,s),!!s}pushMatch(e,t){this.matches.push(...t.slice(1))}},Ce=class extends Ee{addMatch(e,t,i){return/^remote:\s/.test(String(i))&&super.addMatch(e,t,i)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}});function be(...e){const t=process.cwd(),i=Object.assign(f({baseDir:t},ye),...e.filter((e=>"object"==typeof e&&e)));return i.baseDir=i.baseDir||t,i.trimmed=!0===i.trimmed,i}var Qe=y({"src/lib/utils/simple-git-options.ts"(){ye={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function xe(e,t=[]){return he(e)?Object.keys(e).reduce(((t,i)=>{const s=e[i];return k(s)?t.push(s):de(s,["boolean"])?t.push(i+"="+s):t.push(i),t}),t):t}function ke(e,t=0,i=!1){const s=[];for(let i=0,r=t<0?e.length:t;i{for(let r=Y(i,s),n=0,o=r.length;n{if(!(n+e>=o))return r[n+e]};t.some((({parse:t})=>t(i,e)))}})),e}var Fe=y({"src/lib/utils/task-parser.ts"(){Ae()}}),Ne={};v(Ne,{ExitCodes:()=>ge,GitOutputStreams:()=>fe,LineParser:()=>Ee,NOOP:()=>N,NULL:()=>F,RemoteLineParser:()=>Ce,append:()=>$,appendTaskOptions:()=>xe,asArray:()=>Z,asFunction:()=>G,asNumber:()=>te,asStringArray:()=>ee,bufferToString:()=>se,callTaskParser:()=>Re,createInstanceConfig:()=>be,delay:()=>ne,filterArray:()=>oe,filterFunction:()=>me,filterHasLength:()=>pe,filterPlainObject:()=>he,filterPrimitives:()=>de,filterString:()=>ae,filterStringArray:()=>ce,filterStringOrStringArray:()=>le,filterType:()=>ue,first:()=>H,folderExists:()=>z,forEachLineWithContent:()=>W,getTrailingOptions:()=>ke,including:()=>X,isUserFunction:()=>V,last:()=>J,objectToString:()=>L,parseStringResponse:()=>Te,pick:()=>re,prefixedArray:()=>ie,remove:()=>K,splitOn:()=>j,toLinesWithContent:()=>Y,trailingFunctionArgument:()=>Se,trailingOptionsArgument:()=>De});var Le,Oe,Me,Ue=y({"src/lib/utils/index.ts"(){ve(),Ie(),Be(),we(),Qe(),_e(),Fe(),Ae()}}),Pe={};function Ge(e){switch(e){case"bare":return je();case"root":return Ve()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:Oe,parser:Me}}function Ve(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:Oe,parser:e=>/^\.(git)?$/.test(e.trim())}}function je(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:Oe,parser:Me}}v(Pe,{CheckRepoActions:()=>Le,checkIsBareRepoTask:()=>je,checkIsRepoRootTask:()=>Ve,checkIsRepoTask:()=>Ge});var He,Je,qe,Ye,We,ze=y({"src/lib/tasks/check-is-repo.ts"(){Ue(),Le=(e=>(e.BARE="bare",e.IN_TREE="tree",e.IS_REPO_ROOT="root",e))(Le||{}),Oe=({exitCode:e},t,i,s)=>{if(128===e&&function(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}(t))return i(Buffer.from("false"));s(t)},Me=e=>"true"===e.trim()}}),$e=y({"src/lib/responses/CleanSummary.ts"(){Ue(),He=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},Je=/^[a-z]+\s*/i,qe=/^[a-z]+\s+[a-z]+\s*/i,Ye=/\/$/}}),Xe={};function Ke(e){return{commands:We,format:"empty",parser:e}}function Ze(e){return{commands:We,format:"empty",parser(){throw"string"==typeof e?new R(e):e}}}function et(e,t=!1){return{commands:e,format:"utf-8",parser:e=>t?String(e).trim():e}}function tt(e){return{commands:e,format:"buffer",parser:e=>e}}function it(e){return"buffer"===e.format}function st(e){return"empty"===e.format||!e.commands.length}v(Xe,{EMPTY_COMMANDS:()=>We,adhocExecTask:()=>Ke,configurationErrorTask:()=>Ze,isBufferTask:()=>it,isEmptyTask:()=>st,straightThroughBufferTask:()=>tt,straightThroughStringTask:()=>et});var rt,nt,ot,at,ct,lt=y({"src/lib/tasks/task.ts"(){P(),We=[]}}),pt={};function At(e,t){const{cleanMode:i,options:s,valid:r}=function(e){let t,i=[],s={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,"").split("").forEach((e=>{var r;!function(e){return"f"===e||"n"===e}(e)?s.options=s.options&&(r=i[i.length]=`-${e}`,/^-[a-z]$/i.test(r)&&ct.has(r.charAt(1))):(t=e,s.cleanMode=!0)})),{cleanMode:t,options:i,valid:s}}(e);return i?r.options?(s.push(...t),s.some(ht)?Ze(rt):ut(i,s)):Ze(ot+JSON.stringify(e)):Ze(nt)}function ut(e,t){return{commands:["clean",`-${e}`,...t],format:"utf-8",parser:t=>function(e,t){const i=new He(e),s=e?qe:Je;return Y(t).forEach((e=>{const t=e.replace(s,"");i.paths.push(t),(Ye.test(t)?i.folders:i.files).push(t)})),i}("n"===e,t)}}function dt(e){return Array.isArray(e)&&e.every((e=>ct.has(e)))}function ht(e){return/^-[^\-]/.test(e)?e.indexOf("i")>0:"--interactive"===e}v(pt,{CONFIG_ERROR_INTERACTIVE_MODE:()=>rt,CONFIG_ERROR_MODE_REQUIRED:()=>nt,CONFIG_ERROR_UNKNOWN_OPTION:()=>ot,CleanOptions:()=>at,cleanTask:()=>ut,cleanWithOptionsTask:()=>At,isCleanOptionsArray:()=>dt});var mt,gt=y({"src/lib/tasks/clean.ts"(){$e(),Ue(),lt(),rt="Git clean interactive mode is not supported",nt='Git clean mode parameter ("n" or "f") is required',ot="Git clean unknown option found in: ",at=(e=>(e.DRY_RUN="n",e.FORCE="f",e.IGNORED_INCLUDED="x",e.IGNORED_ONLY="X",e.EXCLUDING="e",e.QUIET="q",e.RECURSIVE="d",e))(at||{}),ct=new Set(["i",...ee(Object.values(at))])}});function*ft(e,t=null){const i=e.split("\0");for(let e=0,s=i.length-1;eObject.assign(e,this.values[t])),{})),this._all}addFile(e){if(!(e in this.values)){const t=J(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,i){const s=this.addFile(e);s.hasOwnProperty(t)?Array.isArray(s[t])?s[t].push(i):s[t]=[s[t],i]:s[t]=i,this._all=void 0}}}});function yt(e,t){return"string"==typeof e&&Et.hasOwnProperty(e)?e:t}var vt,It,Bt,wt,bt=y({"src/lib/tasks/config.ts"(){Ct(),Ue(),Et=(e=>(e.system="system",e.global="global",e.local="local",e.worktree="worktree",e))(Et||{})}});function Qt(...e){return(new wt).param(...e)}var xt,kt,Dt=y({"src/lib/tasks/grep.ts"(){Ue(),lt(),vt=["-h"],It=Symbol("grepQuery"),wt=class{constructor(){this[Bt]=[]}*[(Bt=It,Symbol.iterator)](){for(const e of this[It])yield e}and(...e){return e.length&&this[It].push("--and","(",...ie(e,"-e"),")"),this}param(...e){return this[It].push(...ie(e,"-e")),this}}}}),St={};function _t(e,t){const i=["reset"];return Tt(e)&&i.push(`--${e}`),i.push(...t),et(i)}function Rt(e){if(Tt(e))return e;switch(typeof e){case"string":case"undefined":return"soft"}}function Tt(e){return kt.includes(e)}v(St,{ResetMode:()=>xt,getResetMode:()=>Rt,resetTask:()=>_t});var Ft=y({"src/lib/tasks/reset.ts"(){lt(),xt=(e=>(e.MIXED="mixed",e.SOFT="soft",e.HARD="hard",e.MERGE="merge",e.KEEP="keep",e))(xt||{}),kt=Array.from(Object.values(xt))}}),Nt={};v(Nt,{CheckRepoActions:()=>Le,CleanOptions:()=>at,GitConfigScope:()=>Et,GitConstructError:()=>S,GitError:()=>s,GitPluginError:()=>_,GitResponseError:()=>r,ResetMode:()=>xt,TaskConfigurationError:()=>R,grepQueryBuilder:()=>Qt,pathspec:()=>x});var Lt=y({"src/lib/api.ts"(){O(),M(),b(),U(),Q(),P(),ze(),gt(),bt(),Dt(),Ft()}}),Ot=y({"src/lib/plugins/abort-plugin.ts"(){U()}});var Mt,Ut,Pt=y({"src/lib/plugins/block-unsafe-operations-plugin.ts"(){U()}}),Gt=y({"src/lib/plugins/command-config-prefixing-plugin.ts"(){Ue()}});var Vt=y({"src/lib/plugins/completion-detection.plugin.ts"(){Mt=i(39487),Ue(),Ut=(0,Mt.deferred)().promise}});function jt(e){return!(!e.exitCode||!e.stdErr.length)}function Ht(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function Jt(e=!1,t=jt,i=Ht){return(s,r)=>!e&&s||!t(r)?s:i(r)}function qt(e){return{type:"task.error",action(t,i){const r=e(t.error,{stdErr:i.stdErr,stdOut:i.stdOut,exitCode:i.exitCode});return Buffer.isBuffer(r)?{error:new s(void 0,r.toString("utf-8"))}:{error:r}}}}var Yt,Wt,zt=y({"src/lib/plugins/error-detection.plugin.ts"(){b()}}),$t=y({"src/lib/plugins/plugin-store.ts"(){Ue(),Yt=class{constructor(){this.plugins=new Set}add(e){const t=[];return Z(e).forEach((e=>e&&this.plugins.add($(t,e)))),()=>{t.forEach((e=>this.plugins.delete(e)))}}exec(e,t,i){let s=t;const r=Object.freeze(Object.create(i));for(const t of this.plugins)t.type===e&&(s=t.action(s,r));return s}}}}),Xt=y({"src/lib/plugins/progress-monitor-plugin.ts"(){Ue()}}),Kt=y({"src/lib/plugins/simple-git-plugin.ts"(){}}),Zt=y({"src/lib/plugins/spawn-options-plugin.ts"(){Ue()}}),ei=y({"src/lib/plugins/timout-plugin.ts"(){U()}}),ti=y({"src/lib/plugins/index.ts"(){Ot(),Pt(),Gt(),Vt(),zt(),$t(),Xt(),Kt(),Zt(),ei()}}),ii=y({"src/lib/plugins/suffix-paths.plugin.ts"(){O()}});function si(e,t,i){return t&&String(t).replace(/\s*/,"")?(s,...r)=>{e(`%s ${s}`,t,...r),i&&i(s,...r)}:i?(t,...s)=>{e(t,...s),i(t,...s)}:e}function ri(e,t,i,s=function(){return(0,Wt.default)("simple-git")}()){const r=e&&`[${e}]`||"",n=[],o="string"==typeof t?s.extend(t):t,a=function(e,t,{namespace:i}){if("string"==typeof e)return e;const s=t&&t.namespace||"";return s.startsWith(i)?s.substr(i.length+1):s||i}(ue(t,ae),o,s);return function t(i){const n=i&&`[${i}]`||"",a=o&&si(o,n)||N,l=si(s,`${r} ${n}`,a);return Object.assign(o?a:l,{label:e,sibling:c,info:l,step:t})}(i);function c(t,i){return $(n,ri(e,a.replace(/^[^:]+/,t),i,s))}}var ni,oi,ai,ci,li=y({"src/lib/git-logger.ts"(){var e;e=i(8856),Wt=I(C(a(null!=e?o(d(e)):{},"default",e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),Ue(),Wt.default.formatters.L=e=>String(pe(e)?e.length:"-"),Wt.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString("utf8"):L(e)}}),pi=y({"src/lib/runners/tasks-pending-queue.ts"(){b(),li(),(oi=ni=class{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const t=ni.getName(e.commands[0]);return{task:e,logger:ri(this.logLabel,t),name:t}}push(e){const t=this.createProgress(e);return t.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,t),t}fatal(e){for(const[t,{logger:i}]of Array.from(this._queue.entries()))t===e.task?(i.info("Failed %o",e),i("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):i.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(t);if(0!==this._queue.size)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){const t=this.withProgress(e);if(!t)throw new s(void 0,"TasksPendingQueue: attempt called for an unknown task");return t.logger("Starting task"),t}static getName(e="empty"){return`task:${e}:${++ni.counter}`}}).counter=0}});function Ai(e,t){return{method:H(e.commands)||"",commands:t}}function ui(e,t,i,s){return r=>{i("%s received %L bytes",t,r),s("%B",r),e.push(r)}}var di,hi=y({"src/lib/runners/git-executor-chain.ts"(){ai=i(32081),b(),lt(),Ue(),pi(),ci=class{constructor(e,t,i){this._executor=e,this._scheduler=t,this._plugins=i,this._chain=Promise.resolve(),this._queue=new oi}get binary(){return this._executor.binary}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then((()=>this.attemptTask(e)))}attemptTask(e){return w(this,null,(function*(){const t=yield this._scheduler.next(),i=()=>this._queue.complete(e);try{const{logger:t}=this._queue.attempt(e);return yield st(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t)}catch(t){throw this.onFatalException(e,t)}finally{i(),t()}}))}onFatalException(e,t){const i=t instanceof s?Object.assign(t,{task:e}):new s(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(i),i}attemptRemoteTask(e,t){return w(this,null,(function*(){const i=this._plugins.exec("spawn.args",[...e.commands],Ai(e,e.commands)),s=yield this.gitResponse(e,this.binary,i,this.outputHandler,t.step("SPAWN")),r=yield this.handleTaskData(e,i,s,t.step("HANDLE"));return t("passing response to task's parser as a %s",e.format),it(e)?Re(e.parser,r):Re(e.parser,r.asStrings())}))}attemptEmptyTask(e,t){return w(this,null,(function*(){return t("empty task bypassing child process to call to task's parser"),e.parser(this)}))}handleTaskData(e,t,i,s){const{exitCode:r,rejection:n,stdOut:o,stdErr:a}=i;return new Promise(((c,l)=>{s("Preparing to handle process response exitCode=%d stdOut=",r);const{error:p}=this._plugins.exec("task.error",{error:n},f(f({},Ai(e,t)),i));return p&&e.onError?(s.info("exitCode=%s handling with custom error handler"),e.onError(i,p,(e=>{s.info("custom error handler treated as success"),s("custom error returned a %s",L(e)),c(new fe(Array.isArray(e)?Buffer.concat(e):e,Buffer.concat(a)))}),l)):p?(s.info("handling as error: exitCode=%s stdErr=%s rejection=%o",r,a.length,n),l(p)):(s.info("retrieving task output complete"),void c(new fe(Buffer.concat(o),Buffer.concat(a))))}))}gitResponse(e,t,i,s,r){return w(this,null,(function*(){const n=r.sibling("output"),o=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},Ai(e,e.commands));return new Promise((a=>{const c=[],l=[];r.info("%s %o",t,i),r("%O",o);let p=this._beforeSpawn(e,i);if(p)return a({stdOut:c,stdErr:l,exitCode:9901,rejection:p});this._plugins.exec("spawn.before",void 0,E(f({},Ai(e,i)),{kill(e){p=e||p}}));const A=(0,ai.spawn)(t,i,o);A.stdout.on("data",ui(c,"stdOut",r,n.step("stdOut"))),A.stderr.on("data",ui(l,"stdErr",r,n.step("stdErr"))),A.on("error",function(e,t){return i=>{t("[ERROR] child process exception %o",i),e.push(Buffer.from(String(i.stack),"ascii"))}}(l,r)),s&&(r("Passing child process stdOut/stdErr to custom outputHandler"),s(t,A.stdout,A.stderr,[...i])),this._plugins.exec("spawn.after",void 0,E(f({},Ai(e,i)),{spawned:A,close(e,t){a({stdOut:c,stdErr:l,exitCode:e,rejection:p||t})},kill(e){A.killed||(p=e,A.kill("SIGINT"))}}))}))}))}_beforeSpawn(e,t){let i;return this._plugins.exec("spawn.before",void 0,E(f({},Ai(e,t)),{kill(e){i=e||i}})),i}}}}),mi={};v(mi,{GitExecutor:()=>di});var gi=y({"src/lib/runners/git-executor.ts"(){hi(),di=class{constructor(e="git",t,i,s){this.binary=e,this.cwd=t,this._scheduler=i,this._plugins=s,this._chain=new ci(this,this._scheduler,this._plugins)}chain(){return new ci(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});var fi=y({"src/lib/task-callback.ts"(){Q(),Ue()}});function Ei(e,t){return Ke((i=>{if(!z(e))throw new Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||i).cwd=e}))}var Ci=y({"src/lib/tasks/change-working-directory.ts"(){Ue(),lt()}});function yi(e){const t=["checkout",...e];return"-b"===t[1]&&t.includes("-B")&&(t[1]=K(t,"-B")),et(t)}var vi,Ii=y({"src/lib/tasks/checkout.ts"(){Ue(),lt()}});function Bi(e){return Te({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},vi,e)}var wi=y({"src/lib/parsers/parse-commit.ts"(){Ue(),vi=[new Ee(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,((e,[t,i,s])=>{e.branch=t,e.commit=s,e.root=!!i})),new Ee(/\s*Author:\s(.+)/i,((e,[t])=>{const i=t.split("<"),s=i.pop();s&&s.includes("@")&&(e.author={email:s.substr(0,s.length-1),name:i.join("<").trim()})})),new Ee(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,((e,[t,i,s])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(i,10)||0,e.summary.deletions=parseInt(s,10)||0})),new Ee(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,((e,[t,i,s])=>{e.summary.changes=parseInt(t,10)||0;const r=parseInt(i,10)||0;"-"===s?e.summary.deletions=r:"+"===s&&(e.summary.insertions=r)}))]}});var bi,Qi,xi,ki,Di=y({"src/lib/tasks/commit.ts"(){wi(),Ue(),lt()}}),Si=y({"src/lib/tasks/first-commit.ts"(){Ue(),lt()}}),_i=y({"src/lib/tasks/hash-object.ts"(){lt()}}),Ri=y({"src/lib/responses/InitSummary.ts"(){bi=class{constructor(e,t,i,s){this.bare=e,this.path=t,this.existing=i,this.gitDir=s}},Qi=/^Init.+ repository in (.+)$/,xi=/^Rein.+ in (.+)$/}});var Ti,Fi=y({"src/lib/tasks/init.ts"(){Ri(),ki="--bare"}});function Ni(e){for(let t=0;tTe(new Oi,t,e,!1)}var qi,Yi,Wi,zi,$i=y({"src/lib/parsers/parse-diff-summary.ts"(){ji(),Hi(),Ue(),Mi=[new Ee(/(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,((e,[t,i,s=""])=>{e.files.push({file:t.trim(),changes:te(i),insertions:s.replace(/[^+]/g,"").length,deletions:s.replace(/[^-]/g,"").length,binary:!1})})),new Ee(/(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,((e,[t,i,s])=>{e.files.push({file:t.trim(),before:te(i),after:te(s),binary:!0})})),new Ee(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,((e,[t,i])=>{const s=/(\d+) i/.exec(i),r=/(\d+) d/.exec(i);e.changed=te(t),e.insertions=te(null==s?void 0:s[1]),e.deletions=te(null==r?void 0:r[1])}))],Ui=[new Ee(/(\d+)\t(\d+)\t(.+)$/,((e,[t,i,s])=>{const r=te(t),n=te(i);e.changed++,e.insertions+=r,e.deletions+=n,e.files.push({file:s,changes:r+n,insertions:r,deletions:n,binary:!1})})),new Ee(/-\t-\t(.+)$/,((e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})}))],Pi=[new Ee(/(.+)$/,((e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})}))],Gi=[new Ee(/([ACDMRTUXB])\s*(.+)$/,((e,[t,i])=>{e.changed++,e.files.push({file:i,changes:0,insertions:0,deletions:0,binary:!1})}))],Vi={"":Mi,"--stat":Mi,"--numstat":Ui,"--name-status":Gi,"--name-only":Pi}}});function Xi(e=Wi,t=zi,i=""){const s=Ji(i);return function(i){const r=Y(i,!0,qi).map((function(i){const r=i.trim().split(Yi),n=function(e,t){return t.reduce(((t,i,s)=>(t[i]=e[s]||"",t)),Object.create({diff:null}))}(r[0].trim().split(e),t);return r.length>1&&r[1].trim()&&(n.diff=s(r[1])),n}));return{all:r,latest:r.length&&r[0]||null,total:r.length}}}var Ki=y({"src/lib/parsers/parse-list-log-summary.ts"(){Ue(),$i(),ji(),qi="òòòòòò ",Yi=" òò",Wi=" ò ",zi=["hash","date","message","refs","author_name","author_email"]}}),Zi={};function es(e){let t=Ni(e);const i=["diff"];return""===t&&(t="--stat",i.push("--stat=4096")),i.push(...e),ts(i)||{commands:i,format:"utf-8",parser:Ji(t)}}function ts(e){const t=e.filter(Li);return t.length>1?Ze(`Summary flags are mutually exclusive - pick one of ${t.join(",")}`):t.length&&e.includes("-z")?Ze(`Summary flag ${t} parsing is not compatible with null termination option '-z'`):void 0}v(Zi,{diffSummaryTask:()=>es,validateLogFormatConfig:()=>ts});var is,ss=y({"src/lib/tasks/diff.ts"(){ji(),$i(),lt()}});function rs(e={},t=[]){const i=ue(e.splitter,ae,Wi),s=!de(e.format)&&e.format?e.format:{hash:"%H",date:!1===e.strictDate?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:!1!==e.mailMap?"%aN":"%an",author_email:!1!==e.mailMap?"%aE":"%ae"},[r,n]=function(e,t){const i=[],s=[];return Object.keys(e).forEach((t=>{i.push(t),s.push(String(e[t]))})),[i,s.join(t)]}(s,i),o=[],a=[`--pretty=format:${qi}${n}${Yi}`,...t],c=e.n||e["max-count"]||e.maxCount;if(c&&a.push(`--max-count=${c}`),e.from||e.to){const t=!1!==e.symmetric?"...":"..";o.push(`${e.from||""}${t}${e.to||""}`)}var l;return ae(e.file)&&a.push("--follow",x(e.file)),xe((l=e,Object.keys(l).reduce(((e,t)=>(t in is||(e[t]=l[t]),e)),{})),a),{fields:r,splitter:i,commands:[...a,...o]}}var ns,os,as,cs,ls,ps=y({"src/lib/tasks/log.ts"(){ji(),O(),Ki(),Ue(),lt(),ss(),is=(e=>(e[e["--pretty"]=0]="--pretty",e[e["max-count"]=1]="max-count",e[e.maxCount=2]="maxCount",e[e.n=3]="n",e[e.file=4]="file",e[e.format=5]="format",e[e.from=6]="from",e[e.to=7]="to",e[e.splitter=8]="splitter",e[e.symmetric=9]="symmetric",e[e.mailMap=10]="mailMap",e[e.multiLine=11]="multiLine",e[e.strictDate=12]="strictDate",e))(is||{})}}),As=y({"src/lib/responses/MergeSummary.ts"(){ns=class{constructor(e,t=null,i){this.reason=e,this.file=t,this.meta=i}toString(){return`${this.file}:${this.reason}`}},os=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),us=y({"src/lib/responses/PullSummary.ts"(){as=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},cs=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}});function ds(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function hs(e){const t=/^\s*(\d+)/.exec(e),i=/delta (\d+)/i.exec(e);return{count:te(t&&t[1]||"0"),delta:te(i&&i[1]||"0")}}var ms,gs,fs=y({"src/lib/parsers/parse-remote-objects.ts"(){Ue(),ls=[new Ce(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,((e,[t,i])=>{const s=t.toLowerCase(),r=ds(e.remoteMessages);Object.assign(r,{[s]:te(i)})})),new Ce(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,((e,[t,i])=>{const s=t.toLowerCase(),r=ds(e.remoteMessages);Object.assign(r,{[s]:te(i)})})),new Ce(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,((e,[t,i,s])=>{const r=ds(e.remoteMessages);r.total=hs(t),r.reused=hs(i),r.packReused=te(s)}))]}});function Es(e,t){return Te({remoteMessages:new gs},ms,t)}var Cs,ys,vs,Is,Bs,ws,bs,Qs,xs,ks=y({"src/lib/parsers/parse-remote-messages.ts"(){Ue(),fs(),ms=[new Ce(/^remote:\s*(.+)$/,((e,[t])=>(e.remoteMessages.all.push(t.trim()),!1))),...ls,new Ce([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],((e,[t])=>{e.remoteMessages.pullRequestUrl=t})),new Ce([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],((e,[t,i,s])=>{e.remoteMessages.vulnerabilities={count:te(t),summary:i,url:s}}))],gs=class{constructor(){this.all=[]}}}}),Ds=y({"src/lib/parsers/parse-pull.ts"(){us(),Ue(),ks(),Cs=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,ys=/^(create|delete) mode \d+ (.+)/,vs=[new Ee(/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,((e,[t,i,s])=>{e.files.push(t),i&&(e.insertions[t]=i.length),s&&(e.deletions[t]=s.length)})),new Ee(Cs,((e,[t,,i,,s])=>(void 0!==i||void 0!==s)&&(e.summary.changes=+t||0,e.summary.insertions=+i||0,e.summary.deletions=+s||0,!0))),new Ee(ys,((e,[t,i])=>{$(e.files,i),$("create"===t?e.created:e.deleted,i)}))],Is=[new Ee(/^from\s(.+)$/i,((e,[t])=>{e.remote=t})),new Ee(/^fatal:\s(.+)$/,((e,[t])=>{e.message=t})),new Ee(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,((e,[t,i,s,r])=>{e.branch.local=s,e.hash.local=t,e.branch.remote=r,e.hash.remote=i}))],Bs=(e,t)=>Te(new as,vs,[e,t]),ws=(e,t)=>Object.assign(new as,Bs(e,t),Es(0,t))}}),Ss=y({"src/lib/parsers/parse-merge.ts"(){As(),Ue(),Ds(),bs=[new Ee(/^Auto-merging\s+(.+)$/,((e,[t])=>{e.merges.push(t)})),new Ee(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,((e,[t,i])=>{e.conflicts.push(new ns(t,i))})),new Ee(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,((e,[t,i,s])=>{e.conflicts.push(new ns(t,i,{deleteRef:s}))})),new Ee(/^CONFLICT\s+\((.+)\):/,((e,[t])=>{e.conflicts.push(new ns(t,null))})),new Ee(/^Automatic merge failed;\s+(.+)$/,((e,[t])=>{e.result=t}))],Qs=(e,t)=>Object.assign(xs(e,t),ws(e,t)),xs=e=>Te(new os,bs,e)}});function _s(e){return e.length?{commands:["merge",...e],format:"utf-8",parser(e,t){const i=Qs(e,t);if(i.failed)throw new r(i);return i}}:Ze("Git.merge requires at least one option")}var Rs,Ts,Fs,Ns=y({"src/lib/tasks/merge.ts"(){Q(),Ss(),lt()}}),Ls=y({"src/lib/parsers/parse-push.ts"(){Ue(),ks(),Rs=[new Ee(/^Pushing to (.+)$/,((e,[t])=>{e.repo=t})),new Ee(/^updating local tracking ref '(.+)'/,((e,[t])=>{e.ref=E(f({},e.ref||{}),{local:t})})),new Ee(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,((e,[t,i,s])=>{e.pushed.push(function(e,t,i){const s=i.includes("deleted"),r=i.includes("tag")||/^refs\/tags/.test(e),n=!i.includes("new");return{deleted:s,tag:r,branch:!r,new:!n,alreadyUpdated:n,local:e,remote:t}}(t,i,s))})),new Ee(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,((e,[t,i,s])=>{e.branch=E(f({},e.branch||{}),{local:t,remote:i,remoteName:s})})),new Ee(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,((e,[t,i,s,r])=>{e.update={head:{local:t,remote:i},hash:{from:s,to:r}}}))],Ts=(e,t)=>{const i=Fs(e,t),s=Es(0,t);return f(f({},i),s)},Fs=(e,t)=>Te({pushed:[]},Rs,[e,t])}}),Os={};function Ms(e={},t){return $(t,"--tags"),Us(e,t)}function Us(e={},t){const i=["push",...t];return e.branch&&i.splice(1,0,e.branch),e.remote&&i.splice(1,0,e.remote),K(i,"-v"),$(i,"--verbose"),$(i,"--porcelain"),{commands:i,format:"utf-8",parser:Ts}}v(Os,{pushTagsTask:()=>Ms,pushTask:()=>Us});var Ps,Gs,Vs,js,Hs,Js=y({"src/lib/tasks/push.ts"(){Ls(),Ue()}}),qs=y({"src/lib/tasks/show.ts"(){Ue(),lt()}}),Ys=y({"src/lib/responses/FileStatusSummary.ts"(){Ps=/^(.+) -> (.+)$/,Gs=class{constructor(e,t,i){if(this.path=e,this.index=t,this.working_dir=i,t+i==="R"){const t=Ps.exec(e)||[null,e,e];this.from=t[1]||"",this.path=t[2]||""}}}}});function Ws(e){const[t,i]=e.split(F);return{from:i||t,to:t}}function zs(e,t,i){return[`${e}${t}`,i]}function $s(e,...t){return t.map((t=>zs(e,t,((e,t)=>$(e.conflicted,t)))))}function Xs(e,t){const i=t.trim();switch(" "){case i.charAt(2):return s(i.charAt(0),i.charAt(1),i.substr(3));case i.charAt(1):return s(" ",i.charAt(0),i.substr(2));default:return}function s(t,i,s){const r=`${t}${i}`,n=js.get(r);n&&n(e,s),"##"!==r&&"!!"!==r&&e.files.push(new Gs(s.replace(/\0.+$/,""),t,i))}}var Ks,Zs,er,tr=y({"src/lib/responses/StatusSummary.ts"(){Ue(),Ys(),Vs=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},js=new Map([zs(" ","A",((e,t)=>$(e.created,t))),zs(" ","D",((e,t)=>$(e.deleted,t))),zs(" ","M",((e,t)=>$(e.modified,t))),zs("A"," ",((e,t)=>$(e.created,t)&&$(e.staged,t))),zs("A","M",((e,t)=>$(e.created,t)&&$(e.staged,t)&&$(e.modified,t))),zs("D"," ",((e,t)=>$(e.deleted,t)&&$(e.staged,t))),zs("M"," ",((e,t)=>$(e.modified,t)&&$(e.staged,t))),zs("M","M",((e,t)=>$(e.modified,t)&&$(e.staged,t))),zs("R"," ",((e,t)=>{$(e.renamed,Ws(t))})),zs("R","M",((e,t)=>{const i=Ws(t);$(e.renamed,i),$(e.modified,i.to)})),zs("!","!",((e,t)=>{$(e.ignored=e.ignored||[],t)})),zs("?","?",((e,t)=>$(e.not_added,t))),...$s("A","A","U"),...$s("D","D","U"),...$s("U","A","D","U"),["##",(e,t)=>{let i;i=/ahead (\d+)/.exec(t),e.ahead=i&&+i[1]||0,i=/behind (\d+)/.exec(t),e.behind=i&&+i[1]||0,i=/^(.+?(?=(?:\.{3}|\s|$)))/.exec(t),e.current=i&&i[1],i=/\.{3}(\S*)/.exec(t),e.tracking=i&&i[1],i=/\son\s([\S]+)$/.exec(t),e.current=i&&i[1]||e.current,e.detached=/\(no branch\)/.test(t)}]]),Hs=function(e){const t=e.split(F),i=new Vs;for(let e=0,s=t.length;e{Object.assign(e,sr(te(t),te(i),te(s),r))})),new Ee(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,((e,[t,i,s,r=""])=>{Object.assign(e,sr(te(t),te(i),s,r))}))]}}),ar={};v(ar,{SimpleGitApi:()=>nr});var cr,lr,pr,Ar=y({"src/lib/simple-git-api.ts"(){fi(),Ci(),Ii(),Di(),bt(),Si(),Dt(),_i(),Fi(),ps(),Ns(),Js(),qs(),ir(),lt(),or(),Ue(),nr=class{constructor(e){this._executor=e}_runTask(e,t){const i=this._executor.chain(),s=i.push(e);return t&&function(e,t,i=N){t.then((e=>{i(null,e)}),(t=>{(null==t?void 0:t.task)===e&&i(t instanceof r?function(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),t=N};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce((function(i,s){return s in e||(i[s]={enumerable:!1,configurable:!1,get:()=>(t(s),e.git[s])}),i}),{}))}(t):t,void 0)}))}(e,s,t),Object.create(this,{then:{value:s.then.bind(s)},catch:{value:s.catch.bind(s)},_executor:{value:i}})}add(e){return this._runTask(et(["add",...Z(e)]),Se(arguments))}cwd(e){const t=Se(arguments);return"string"==typeof e?this._runTask(Ei(e,this._executor),t):"string"==typeof(null==e?void 0:e.path)?this._runTask(Ei(e.path,e.root&&this._executor||void 0),t):this._runTask(Ze("Git.cwd: workingDirectory must be supplied as a string"),t)}hashObject(e,t){return this._runTask(function(e,t){const i=["hash-object",e];return t&&i.push("-w"),et(i,!0)}(e,!0===t),Se(arguments))}init(e){return this._runTask(function(e=!1,t,i){const s=["init",...i];return e&&!s.includes(ki)&&s.splice(1,0,ki),{commands:s,format:"utf-8",parser:e=>function(e,t,i){const s=String(i).trim();let r;if(r=Qi.exec(s))return new bi(e,t,!1,r[1]);if(r=xi.exec(s))return new bi(e,t,!0,r[1]);let n="";const o=s.split(" ");for(;o.length;)if("in"===o.shift()){n=o.join(" ");break}return new bi(e,t,/^re/i.test(s),n)}(s.includes("--bare"),t,e)}}(!0===e,this._executor.cwd,ke(arguments)),Se(arguments))}merge(){return this._runTask(_s(ke(arguments)),Se(arguments))}mergeFromTo(e,t){return ae(e)&&ae(t)?this._runTask(_s([e,t,...ke(arguments)]),Se(arguments,!1)):this._runTask(Ze("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){const e=Us({remote:ue(arguments[0],ae),branch:ue(arguments[1],ae)},ke(arguments));return this._runTask(e,Se(arguments))}stash(){return this._runTask(et(["stash",...ke(arguments)]),Se(arguments))}status(){return this._runTask({format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...ke(arguments).filter((e=>!Ks.includes(e)))],parser:e=>Hs(e)},Se(arguments))}},Object.assign(nr.prototype,{checkout(){return this._runTask(yi(ke(arguments,1)),Se(arguments))},checkoutBranch(e,t){return this._runTask(yi(["-b",e,t,...ke(arguments)]),Se(arguments))},checkoutLocalBranch(e){return this._runTask(yi(["-b",e,...ke(arguments)]),Se(arguments))}},{commit(e,...t){const i=Se(arguments),s=function(e){return!le(e)&&Ze("git.commit: requires the commit message to be supplied as a string/string[]")}(e)||function(e,t,i){return{commands:["-c","core.abbrev=40","commit",...ie(e,"-m"),...t,...i],format:"utf-8",parser:Bi}}(Z(e),Z(ue(t[0],le,[])),[...ue(t[1],oe,[]),...ke(arguments,0,!0)]);return this._runTask(s,i)}},{addConfig(e,t,...i){return this._runTask(function(e,t,i,s){const r=["config",`--${s}`];return i&&r.push("--add"),r.push(e,t),{commands:r,format:"utf-8",parser:e=>e}}(e,t,!0===i[0],yt(i[1],"local")),Se(arguments))},getConfig(e,t){return this._runTask(function(e,t){const i=["config","--null","--show-origin","--get-all",e];return t&&i.splice(1,0,`--${t}`),{commands:i,format:"utf-8",parser:t=>function(e,t){let i=null;const s=[],r=new Map;for(const n of ft(e,t))n.key===t&&(s.push(i=n.value),r.has(n.file)||r.set(n.file,[]),r.get(n.file).push(i));return{key:t,paths:Array.from(r.keys()),scopes:r,value:i,values:s}}(t,e)}}(e,yt(t,void 0)),Se(arguments))},listConfig(...e){return this._runTask(function(e){const t=["config","--list","--show-origin","--null"];return e&&t.push(`--${e}`),{commands:t,format:"utf-8",parser:e=>function(e){const t=new mt;for(const i of ft(e))t.addValue(i.file,String(i.key),i.value);return t}(e)}}(yt(e[0],void 0)),Se(arguments))}},{firstCommit(){return this._runTask(et(["rev-list","--max-parents=0","HEAD"],!0),Se(arguments))}},{grep(e){const t=Se(arguments),i=ke(arguments);for(const e of vt)if(i.includes(e))return this._runTask(Ze(`git.grep: use of "${e}" is not supported.`),t);"string"==typeof e&&(e=Qt().param(e));const s=["grep","--null","-n","--full-name",...i,...e];return this._runTask({commands:s,format:"utf-8",parser:e=>function(e){const t=new Set,i={};return W(e,(e=>{const[s,r,n]=e.split(F);t.add(s),(i[s]=i[s]||[]).push({line:te(r),path:s,preview:n})})),{paths:t,results:i}}(e)},t)}},{log(...e){const t=Se(arguments),i=rs(De(arguments),ue(arguments[0],oe)),s=function(e,t){return ae(e)&&ae(t)&&Ze("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}(...e)||ts(i.commands)||function(e){return function(e,t,i){const s=Xi(e,t,Ni(i));return{commands:["log",...i],format:"utf-8",parser:s}}(e.splitter,e.fields,e.commands)}(i);return this._runTask(s,t)}},{showBuffer(){const e=["show",...ke(arguments,1)];return e.includes("--binary")||e.splice(1,0,"--binary"),this._runTask(tt(e),Se(arguments))},show(){const e=["show",...ke(arguments,1)];return this._runTask(et(e),Se(arguments))}},{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:rr,onError(e,t,i,s){if(-2===e.exitCode)return i(Buffer.from(Zs));s(t)}})}})}}),ur={};v(ur,{Scheduler:()=>pr});var dr=y({"src/lib/runners/scheduler.ts"(){Ue(),cr=i(39487),li(),lr=(()=>{let e=0;return()=>{e++;const{promise:t,done:i}=(0,cr.createDeferred)();return{promise:t,done:i,id:e}}})(),pr=class{constructor(e=2){this.concurrency=e,this.logger=ri("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency)return void this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);const e=$(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done((()=>{this.logger("Completing id=",e.id),K(this.running,e),this.schedule()}))}next(){const{promise:e,id:t}=$(this.pending,lr());return this.logger("Scheduling id=%s",t),this.schedule(),e}}}}),hr={};function mr(e,t){return et(["apply",...t,...e])}v(hr,{applyPatchTask:()=>mr});var gr,fr,Er,Cr,yr=y({"src/lib/tasks/apply-patch.ts"(){lt()}}),vr=y({"src/lib/responses/BranchDeleteSummary.ts"(){gr=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function Ir(e,t){return 1===t&&fr.test(e)}var Br,wr,br=y({"src/lib/parsers/parse-branch-delete.ts"(){vr(),Ue(),fr=/^error[^']+'([^']+)'/m,Er=[new Ee(/(\S+)\s+\(\S+\s([^)]+)\)/,((e,[t,i])=>{const s=function(e,t){return{branch:e,hash:t,success:!0}}(t,i);e.all.push(s),e.branches[t]=s})),new Ee(fr,((e,[t])=>{const i=function(e){return{branch:e,hash:null,success:!1}}(t);e.errors.push(i),e.all.push(i),e.branches[t]=i}))],Cr=(e,t)=>Te(new gr,Er,[e,t])}}),Qr=y({"src/lib/responses/BranchSummary.ts"(){Br=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,t,i,s,r){"*"===e&&(this.detached=t,this.current=i),this.all.push(i),this.branches[i]={current:"*"===e,linkedWorkTree:"+"===e,name:i,commit:s,label:r}}}}});function xr(e){return e?e.charAt(0):""}function kr(e){return Te(new Br,wr,e)}var Dr=y({"src/lib/parsers/parse-branch.ts"(){Qr(),Ue(),wr=[new Ee(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,((e,[t,i,s,r])=>{e.push(xr(t),!0,i,s,r)})),new Ee(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,((e,[t,i,s,r])=>{e.push(xr(t),!1,i,s,r)}))]}}),Sr={};function _r(e){const t=["-d","-D","--delete"];return e.some((e=>t.includes(e)))}function Rr(e){const t=_r(e),i=["branch",...e];return 1===i.length&&i.push("-a"),i.includes("-v")||i.splice(1,0,"-v"),{format:"utf-8",commands:i,parser:(e,i)=>t?Cr(e,i).all[0]:kr(e)}}function Tr(){return{format:"utf-8",commands:["branch","-v"],parser:kr}}function Fr(e,t=!1){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser:(e,t)=>Cr(e,t),onError({exitCode:e,stdOut:t},i,s,r){if(!Ir(String(i),e))return r(i);s(t)}}}function Nr(e,t=!1){const i={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser:(t,i)=>Cr(t,i).branches[e],onError({exitCode:e,stdErr:t,stdOut:s},n,o,a){if(!Ir(String(n),e))return a(n);throw new r(i.parser(se(s),se(t)),String(n))}};return i}v(Sr,{branchLocalTask:()=>Tr,branchTask:()=>Rr,containsDeleteBranchCommand:()=>_r,deleteBranchTask:()=>Nr,deleteBranchesTask:()=>Fr});var Lr,Or=y({"src/lib/tasks/branch.ts"(){Q(),br(),Dr(),Ue()}}),Mr=y({"src/lib/responses/CheckIgnore.ts"(){Lr=e=>e.split(/\n/g).map((e=>e.trim())).filter((e=>!!e))}}),Ur={};function Pr(e){return{commands:["check-ignore",...e],format:"utf-8",parser:Lr}}v(Ur,{checkIgnoreTask:()=>Pr});var Gr=y({"src/lib/tasks/check-ignore.ts"(){Mr()}}),Vr={};function jr(e){return/^--upload-pack(=|$)/.test(e)}function Hr(e,t,i){const s=["clone",...i];return ae(e)&&s.push(e),ae(t)&&s.push(t),s.find(jr)?Ze("git.fetch: potential exploit argument blocked."):et(s)}function Jr(e,t,i){return $(i,"--mirror"),Hr(e,t,i)}v(Vr,{cloneMirrorTask:()=>Jr,cloneTask:()=>Hr});var qr,Yr=y({"src/lib/tasks/clone.ts"(){lt(),Ue()}});function Wr(e,t){return Te({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},qr,[e,t])}var zr=y({"src/lib/parsers/parse-fetch.ts"(){Ue(),qr=[new Ee(/From (.+)$/,((e,[t])=>{e.remote=t})),new Ee(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,((e,[t,i])=>{e.branches.push({name:t,tracking:i})})),new Ee(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,((e,[t,i])=>{e.tags.push({name:t,tracking:i})})),new Ee(/- \[deleted]\s+\S+\s*-> (.+)$/,((e,[t])=>{e.deleted.push({tracking:t})})),new Ee(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,((e,[t,i,s,r])=>{e.updated.push({name:s,tracking:r,to:i,from:t})}))]}}),$r={};function Xr(e){return/^--upload-pack(=|$)/.test(e)}function Kr(e,t,i){const s=["fetch",...i];return e&&t&&s.push(e,t),s.find(Xr)?Ze("git.fetch: potential exploit argument blocked."):{commands:s,format:"utf-8",parser:Wr}}v($r,{fetchTask:()=>Kr});var Zr,en=y({"src/lib/tasks/fetch.ts"(){zr(),lt()}});function tn(e){return Te({moves:[]},Zr,e)}var sn=y({"src/lib/parsers/parse-move.ts"(){Ue(),Zr=[new Ee(/^Renaming (.+) to (.+)$/,((e,[t,i])=>{e.moves.push({from:t,to:i})}))]}}),rn={};function nn(e,t){return{commands:["mv","-v",...Z(e),t],format:"utf-8",parser:tn}}v(rn,{moveTask:()=>nn});var on=y({"src/lib/tasks/move.ts"(){sn(),Ue()}}),an={};function cn(e,t,i){const s=["pull",...i];return e&&t&&s.splice(1,0,e,t),{commands:s,format:"utf-8",parser:(e,t)=>ws(e,t),onError(e,t,i,s){const n=function(e,t){const i=Te(new cs,Is,[e,t]);return i.message&&i}(se(e.stdOut),se(e.stdErr));if(n)return s(new r(n));s(t)}}}v(an,{pullTask:()=>cn});var ln=y({"src/lib/tasks/pull.ts"(){Q(),Ds(),Ue()}});function pn(e){const t={};return un(e,(([e])=>t[e]={name:e})),Object.values(t)}function An(e){const t={};return un(e,(([e,i,s])=>{t.hasOwnProperty(e)||(t[e]={name:e,refs:{fetch:"",push:""}}),s&&i&&(t[e].refs[s.replace(/[^a-z]/g,"")]=i)})),Object.values(t)}function un(e,t){W(e,(e=>t(e.split(/\s+/))))}var dn=y({"src/lib/responses/GetRemoteSummary.ts"(){Ue()}}),hn={};function mn(e,t,i=[]){return et(["remote","add",...i,e,t])}function gn(e){const t=["remote"];return e&&t.push("-v"),{commands:t,format:"utf-8",parser:e?An:pn}}function fn(e=[]){const t=[...e];return"ls-remote"!==t[0]&&t.unshift("ls-remote"),et(t)}function En(e=[]){const t=[...e];return"remote"!==t[0]&&t.unshift("remote"),et(t)}function Cn(e){return et(["remote","remove",e])}v(hn,{addRemoteTask:()=>mn,getRemotesTask:()=>gn,listRemotesTask:()=>fn,remoteTask:()=>En,removeRemoteTask:()=>Cn});var yn=y({"src/lib/tasks/remote.ts"(){dn(),lt()}}),vn={};function In(e={},t){const i=rs(e),s=["stash","list",...i.commands,...t],r=Xi(i.splitter,i.fields,Ni(s));return ts(s)||{commands:s,format:"utf-8",parser:r}}v(vn,{stashListTask:()=>In});var Bn=y({"src/lib/tasks/stash-list.ts"(){ji(),Ki(),ss(),ps()}}),wn={};function bn(e,t){return xn(["add",e,t])}function Qn(e){return xn(["init",...e])}function xn(e){const t=[...e];return"submodule"!==t[0]&&t.unshift("submodule"),et(t)}function kn(e){return xn(["update",...e])}v(wn,{addSubModuleTask:()=>bn,initSubModuleTask:()=>Qn,subModuleTask:()=>xn,updateSubModuleTask:()=>kn});var Dn,Sn,_n=y({"src/lib/tasks/sub-module.ts"(){lt()}});function Rn(e,t){return e===t?0:e>t?1:-1}function Tn(e){return e.trim()}function Fn(e){return"string"==typeof e&&parseInt(e.replace(/^\D+/g,""),10)||0}var Nn=y({"src/lib/responses/TagList.ts"(){Dn=class{constructor(e,t){this.all=e,this.latest=t}},Sn=function(e,t=!1){const i=e.split("\n").map(Tn).filter(Boolean);t||i.sort((function(e,t){const i=e.split("."),s=t.split(".");if(1===i.length||1===s.length)return function(e,t){const i=isNaN(e);return i!==isNaN(t)?i?1:-1:i?Rn(e,t):0}(Fn(i[0]),Fn(s[0]));for(let e=0,t=Math.max(i.length,s.length);ee.indexOf(".")>=0));return new Dn(i,s)}}}),Ln={};function On(e=[]){const t=e.some((e=>/^--sort=/.test(e)));return{format:"utf-8",commands:["tag","-l",...e],parser:e=>Sn(e,t)}}function Mn(e){return{format:"utf-8",commands:["tag",e],parser:()=>({name:e})}}function Un(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser:()=>({name:e})}}v(Ln,{addAnnotatedTagTask:()=>Un,addTagTask:()=>Mn,tagListTask:()=>On});var Pn,Gn,Vn,jn=y({"src/lib/tasks/tag.ts"(){Nn()}}),Hn=(Pn={"src/git.js"(e,t){var{GitExecutor:i}=(gi(),B(mi)),{SimpleGitApi:s}=(Ar(),B(ar)),{Scheduler:r}=(dr(),B(ur)),{configurationErrorTask:n}=(lt(),B(Xe)),{asArray:o,filterArray:a,filterPrimitives:c,filterString:l,filterStringOrStringArray:p,filterType:A,getTrailingOptions:u,trailingFunctionArgument:d,trailingOptionsArgument:h}=(Ue(),B(Ne)),{applyPatchTask:m}=(yr(),B(hr)),{branchTask:g,branchLocalTask:f,deleteBranchesTask:E,deleteBranchTask:C}=(Or(),B(Sr)),{checkIgnoreTask:y}=(Gr(),B(Ur)),{checkIsRepoTask:v}=(ze(),B(Pe)),{cloneTask:I,cloneMirrorTask:w}=(Yr(),B(Vr)),{cleanWithOptionsTask:b,isCleanOptionsArray:Q}=(gt(),B(pt)),{diffSummaryTask:x}=(ss(),B(Zi)),{fetchTask:k}=(en(),B($r)),{moveTask:D}=(on(),B(rn)),{pullTask:S}=(ln(),B(an)),{pushTagsTask:_}=(Js(),B(Os)),{addRemoteTask:R,getRemotesTask:T,listRemotesTask:F,remoteTask:N,removeRemoteTask:L}=(yn(),B(hn)),{getResetMode:O,resetTask:M}=(Ft(),B(St)),{stashListTask:U}=(Bn(),B(vn)),{addSubModuleTask:P,initSubModuleTask:G,subModuleTask:V,updateSubModuleTask:j}=(_n(),B(wn)),{addAnnotatedTagTask:H,addTagTask:J,tagListTask:q}=(jn(),B(Ln)),{straightThroughBufferTask:Y,straightThroughStringTask:W}=(lt(),B(Xe));function z(e,t){this._executor=new i(e.binary,e.baseDir,new r(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}function $(e,t,i,s){return"string"!=typeof i?n(`git.${e}() requires a string 'repoPath'`):t(i,A(s,l),u(arguments))}(z.prototype=Object.create(s.prototype)).constructor=z,z.prototype.customBinary=function(e){return this._executor.binary=e,this},z.prototype.env=function(e,t){return 1===arguments.length&&"object"==typeof e?this._executor.env=e:(this._executor.env=this._executor.env||{})[e]=t,this},z.prototype.stashList=function(e){return this._runTask(U(h(arguments)||{},a(e)&&e||[]),d(arguments))},z.prototype.clone=function(){return this._runTask($("clone",I,...arguments),d(arguments))},z.prototype.mirror=function(){return this._runTask($("mirror",w,...arguments),d(arguments))},z.prototype.mv=function(e,t){return this._runTask(D(e,t),d(arguments))},z.prototype.checkoutLatestTag=function(e){var t=this;return this.pull((function(){t.tags((function(i,s){t.checkout(s.latest,e)}))}))},z.prototype.pull=function(e,t,i,s){return this._runTask(S(A(e,l),A(t,l),u(arguments)),d(arguments))},z.prototype.fetch=function(e,t){return this._runTask(k(A(e,l),A(t,l),u(arguments)),d(arguments))},z.prototype.silent=function(e){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},z.prototype.tags=function(e,t){return this._runTask(q(u(arguments)),d(arguments))},z.prototype.rebase=function(){return this._runTask(W(["rebase",...u(arguments)]),d(arguments))},z.prototype.reset=function(e){return this._runTask(M(O(e),u(arguments)),d(arguments))},z.prototype.revert=function(e){const t=d(arguments);return"string"!=typeof e?this._runTask(n("Commit must be a string"),t):this._runTask(W(["revert",...u(arguments,0,!0),e]),t)},z.prototype.addTag=function(e){const t="string"==typeof e?J(e):n("Git.addTag requires a tag name");return this._runTask(t,d(arguments))},z.prototype.addAnnotatedTag=function(e,t){return this._runTask(H(e,t),d(arguments))},z.prototype.deleteLocalBranch=function(e,t,i){return this._runTask(C(e,"boolean"==typeof t&&t),d(arguments))},z.prototype.deleteLocalBranches=function(e,t,i){return this._runTask(E(e,"boolean"==typeof t&&t),d(arguments))},z.prototype.branch=function(e,t){return this._runTask(g(u(arguments)),d(arguments))},z.prototype.branchLocal=function(e){return this._runTask(f(),d(arguments))},z.prototype.raw=function(e){const t=!Array.isArray(e),i=[].slice.call(t?arguments:e,0);for(let e=0;e[...t,...e]}}(s.config)),i.add(function({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action:(i,s)=>(i.forEach(((r,n)=>{const o=nk(e)&&D(e)||e)));break}t.push(r)}}return i?[...t,"--",...i.map(String)]:t}}),i.add(function({onClose:e=!0,onExit:t=50}={}){function i(e,t,i){!1!==e&&(!0===e?t.promise:t.promise.then((()=>ne(e)))).then(i.done)}return{type:"spawn.after",action(s,r){return w(this,arguments,(function*(s,{spawned:r,close:n}){var o,a;const c=function(){let s=-1;const r={close:(0,Mt.deferred)(),closeTimeout:(0,Mt.deferred)(),exit:(0,Mt.deferred)(),exitTimeout:(0,Mt.deferred)()},n=Promise.race([!1===e?Ut:r.closeTimeout.promise,!1===t?Ut:r.exitTimeout.promise]);return i(e,r.close,r.closeTimeout),i(t,r.exit,r.exitTimeout),{close(e){s=e,r.close.done()},exit(e){s=e,r.exit.done()},get exitCode(){return s},result:n}}();let l=!0,p=()=>{l=!1};null==(o=r.stdout)||o.on("data",p),null==(a=r.stderr)||a.on("data",p),r.on("error",p),r.on("close",(e=>c.close(e))),r.on("exit",(e=>c.exit(e)));try{yield c.result,l&&(yield ne(50)),n(c.exitCode)}catch(e){n(c.exitCode,e)}}))}}}(s.completion)),s.abort&&i.add(function(e){if(e)return[{type:"spawn.before",action(t,i){e.aborted&&i.kill(new _(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(t,i){function s(){i.kill(new _(void 0,"abort","Abort signal received"))}e.addEventListener("abort",s),i.spawned.on("close",(()=>e.removeEventListener("abort",s)))}}]}(s.abort)),s.progress&&i.add(function(e){const t="--progress",i=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action:(e,s)=>i.includes(s.method)?X(e,t):e},{type:"spawn.after",action(i,s){var r;s.commands.includes(t)&&(null==(r=s.spawned.stderr)||r.on("data",(t=>{const i=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString("utf8"));var r;i&&e({method:s.method,stage:(r=i[1],String(r.toLowerCase().split(" ",1))||"unknown"),progress:te(i[2]),processed:te(i[3]),total:te(i[4])})})))}}]}(s.progress)),s.timeout&&i.add(function({block:e,stdErr:t=!0,stdOut:i=!0}){if(e>0)return{type:"spawn.after",action(s,r){var n,o;let a;function c(){a&&clearTimeout(a),a=setTimeout(p,e)}function l(){var e,t;null==(e=r.spawned.stdout)||e.off("data",c),null==(t=r.spawned.stderr)||t.off("data",c),r.spawned.off("exit",l),r.spawned.off("close",l),a&&clearTimeout(a)}function p(){l(),r.kill(new _(void 0,"timeout","block timeout reached"))}i&&(null==(n=r.spawned.stdout)||n.on("data",c)),t&&(null==(o=r.spawned.stderr)||o.on("data",c)),r.spawned.on("exit",l),r.spawned.on("close",l),c()}}}(s.timeout)),s.spawnOptions&&i.add(function(e){const t=re(e,["uid","gid"]);return{type:"spawn.options",action:e=>f(f({},t),e)}}(s.spawnOptions)),i.add(qt(Jt(!0))),s.errors&&i.add(qt(s.errors)),new Vn(s,i)}v(Jn,{esModuleFactory:()=>qn,gitExportFactory:()=>Yn,gitInstanceFactory:()=>Wn});var zn,$n,Xn=y({"src/lib/git-factory.ts"(){Lt(),ti(),ii(),Ue(),Vn=Hn()}}),Kn={};function Zn(...e){let t,i=Promise.resolve();try{t=Wn(...e)}catch(e){i=Promise.reject(e)}function s(){return o}function n(){return i}const o=[...zn,...$n].reduce(((e,o)=>{const a=$n.includes(o),c=a?(l=o,p=t,function(...e){if("function"==typeof e[e.length])throw new TypeError("Promise interface requires that handlers are not supplied inline, trailing function not allowed in call to "+l);return i.then((function(){return new Promise((function(t,i){e.push(((e,s)=>{if(e)return i((n=e)instanceof Error?n:"string"==typeof n?new Error(n):new r(n));var n;t(s)})),p[l].apply(p,e)}))}))}):function(e,t,i){return(...s)=>(t[e](...s),i)}(o,t,e);var l,p;const A=a?n:s;return Object.defineProperty(e,o,{enumerable:!1,configurable:!1,value:t?c:A}),e}),{});return o}v(Kn,{gitP:()=>Zn});var eo=y({"src/lib/runners/promise-wrapped.ts"(){Q(),Xn(),zn=["customBinary","env","outputHandler","silent"],$n=["add","addAnnotatedTag","addConfig","addRemote","addTag","applyPatch","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"]}}),{gitP:to}=(eo(),B(Kn)),{esModuleFactory:io,gitInstanceFactory:so,gitExportFactory:ro}=(Xn(),B(Jn)),no=io(ro(so));e.exports=Object.assign(no,{gitP:to,simpleGit:no})},23457:(e,t,i)=>{"use strict";var s=i(21607).Buffer,r=s.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(s.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=p,this.end=A,t=3;break;default:return this.write=u,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=s.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,i=function(e,t,i){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var s=i.charCodeAt(i.length-1);if(s>=55296&&s<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function p(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function A(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.s=n,n.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i=0?(r>0&&(e.lastNeed=r-1),r):--s=0?(r>0&&(e.lastNeed=r-2),r):--s=0?(r>0&&(2===r?r=0:e.lastNeed=r-3),r):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var s=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,s),e.toString("utf8",t,s)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},20281:(e,t,i)=>{"use strict";const s=i(86873);e.exports=e=>"string"==typeof e?e.replace(s(),""):e},47494:e=>{"use strict";e.exports=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e}},10447:(e,t,i)=>{"use strict";const s=i(22037),r=i(76224),n=i(5506),{env:o}=process;let a;function c(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===a)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const i=a||0;if("dumb"===o.TERM)return i;if("win32"===process.platform){const e=s.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:i;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:i}n("no-color")||n("no-colors")||n("color=false")||n("color=never")?a=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return c(l(e,e&&e.isTTY))},stdout:c(l(!0,r.isatty(1))),stderr:c(l(!0,r.isatty(2)))}},69097:(e,t,i)=>{"use strict";var s=i(85477),r=i(53198),n={TRANSITIONAL:0,NONTRANSITIONAL:1};function o(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")}function a(e){for(var t=0,i=r.length-1;t<=i;){var s=Math.floor((t+i)/2),n=r[s];if(n[0][0]<=e&&n[0][1]>=e)return n;n[0][0]>e?i=s-1:t=s+1}return null}var c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function l(e){return e.replace(c,"_").length}var p=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function A(e,t){"xn--"===e.substr(0,4)&&(e=s.toUnicode(e),n.NONTRANSITIONAL);var i=!1;(o(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(p))&&(i=!0);for(var r=l(e),c=0;c253||0===a.length)&&(n.error=!0);for(var c=0;c63||0===o.length){n.error=!0;break}}return n.error?null:o.join(".")},e.exports.toUnicode=function(e,t){var i=u(e,t,n.NONTRANSITIONAL);return{domain:i.string,error:i.error}},e.exports.PROCESSING_OPTIONS=n},68559:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i(43642),o=r(i(92703)),a=r(i(71017)),c=i(57147),l=i(84041),p=i(54189),A=i(45712),u=i(35539),d=i(91920),h=new n.Command("changefile").description("Changelog utilities").option("-o --owner ","Repository owner. Default: woocommerce","woocommerce").option("-n --name ","Repository name. Default: woocommerce","woocommerce").option("-d --dev-repo-path ","Path to existing repo. Use this option to avoid cloning a fresh repo for development purposes. Note that using this option assumes dependencies are already installed.").argument("","Pull request number").action(((e,t)=>s(void 0,void 0,void 0,(function*(){var i,s;const{owner:r,name:n,devRepoPath:h}=t;l.Logger.startTask(`Getting pull request data for PR number ${e}`);const{prBody:m,headOwner:g,branch:f,fileName:E,head:C,base:y}=yield(0,u.getPullRequestData)({owner:r,name:n},e);l.Logger.endTask(),(0,u.shouldAutomateChangelog)(m)||(l.Logger.notice(`PR #${e} does not have the "Automatically create a changelog entry from the details" checkbox checked. No changelog will be created.`),process.exit(0));const v=(0,u.getChangelogDetails)(m),{significance:I,type:B,message:w,comment:b}=v,Q=(0,u.getChangelogDetailsError)(v);Q&&l.Logger.error(Q),l.Logger.startTask(`Making a temporary clone of '${g}/${n}'`);const x=h||(yield(0,A.cloneAuthenticatedRepo)({owner:g,name:n},!1));l.Logger.endTask(),l.Logger.notice(`Temporary clone of '${g}/${n}' created at ${x}`),"trunk"!==f&&(l.Logger.notice(`Checking out remote branch ${f}`),yield(0,A.checkoutRemoteBranch)(x,f,!1)),l.Logger.notice("Getting all touched projects requiring a changelog");const k=yield(0,d.getTouchedProjectsRequiringChangelog)(x,y,C,E,r,n);try{const e=yield(0,d.getAllProjectPaths)(x);l.Logger.notice("Removing existing changelog files in case a change is reverted and the entry is no longer needed"),e.forEach((e=>{var t,i,s;const r=a.default.join(x,e,"composer.json");if(!(0,c.existsSync)(r))return;const n=JSON.parse((0,c.readFileSync)(r,{encoding:"utf-8"})),o=a.default.join(x,e,null!==(s=null===(i=null===(t=n.extra)||void 0===t?void 0:t.changelogger)||void 0===i?void 0:i["changes-dir"])&&void 0!==s?s:"changelog",E);(0,c.existsSync)(o)&&(l.Logger.notice(`Remove existing changelog file ${o}`),(0,c.rmSync)(o))})),k||(l.Logger.notice("No projects require a changelog"),process.exit(0));for(const e in k){const t=a.default.join(x,k[e]);l.Logger.notice(`Generating changefile for ${e} (${t}))`);const r=JSON.parse((0,c.readFileSync)(a.default.join(t,"composer.json"),{encoding:"utf-8"})),n=a.default.join(t,null!==(s=null===(i=r.extra)||void 0===i?void 0:i.changelogger["changes-dir"])&&void 0!==s?s:"changelog",E);let o=`Significance: ${I}\n`;o+=`Type: ${B}\n`,b&&(o+=`Comment: ${b}\n`),o+=`\n${w}`,(0,c.writeFileSync)(n,o)}}catch(e){l.Logger.error(e)}const D=Object.keys(k).join(", ");l.Logger.notice(`Changelogs created for ${D}`);const S=(0,o.default)({baseDir:x,config:["core.hooksPath=/dev/null"]});(0,p.isGithubCI)()&&(yield S.raw("config","--global","user.email","github-actions@github.com"),yield S.raw("config","--global","user.name","github-actions")),0===(yield S.raw(["status","--short"])).length&&(l.Logger.notice("No changes in changelog files. Skipping commit and push."),process.exit(0)),l.Logger.notice("Adding and committing changes"),yield S.add("."),yield S.commit(`Add changefile(s) from automation for the following project(s): ${D}`),yield S.push("origin",f),l.Logger.notice(`Pushed changes to ${f}`)}))));t.default=h},35539:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getChangelogDetailsError=t.getChangelogDetails=t.getChangelogComment=t.getChangelogMessage=t.getChangelogType=t.getChangelogSignificance=t.shouldAutomateChangelog=t.getPullRequestData=void 0;const r=i(60465),n=i(84041);t.getPullRequestData=(e,t)=>s(void 0,void 0,void 0,(function*(){const{owner:i,name:s}=e,n=yield(0,r.getPullRequest)({owner:i,name:s,prNumber:t}),o=(0,r.isCommunityPullRequest)(n,i,s),a=o?n.head.repo.owner.login:i,c=n.head.ref,l=`${t}-${c.replace(/\//g,"-")}`;return{prBody:n.body,isCommunityPR:o,headOwner:a,branch:c,fileName:l,head:n.head.sha,base:n.base.sha}})),t.shouldAutomateChangelog=e=>/\[(?:x|X)\] Automatically create a changelog entry from the details/gm.test(e),t.getChangelogSignificance=e=>{const t=/\[(?:x|X)\] (Patch|Minor|Major)\r\n/gm,i=e.match(t);if(null!==i){if(!(i.length>1))return t.exec(e)[1].toLowerCase();n.Logger.error("Multiple changelog significances found. Only one can be entered")}else n.Logger.error("No changelog significance found")},t.getChangelogType=e=>{const t=/\[(?:x|X)\] (Fix|Add|Update|Dev|Tweak|Performance|Enhancement) -/gm,i=e.match(t);if(null!==i){if(!(i.length>1))return t.exec(e)[1].toLowerCase();n.Logger.error("Multiple changelog types found. Only one can be entered")}else n.Logger.error("No changelog type found")},t.getChangelogMessage=e=>{const t=/#### Message ?()?(.*)#### Comment/gms.exec(e);t||n.Logger.error("No changelog message found");let i=t[3].trim();return i=i.replace(/\r\n|\n/g," "),i},t.getChangelogComment=e=>{const t=/#### Comment ?()?(.*)<\/details>/gms.exec(e);let i=t?t[3].trim():"";return i=i.replace(/\r\n|\n/g," "),i},t.getChangelogDetails=e=>({significance:(0,t.getChangelogSignificance)(e),type:(0,t.getChangelogType)(e),message:(0,t.getChangelogMessage)(e),comment:(0,t.getChangelogComment)(e)}),t.getChangelogDetailsError=({significance:e,type:t,message:i,comment:s})=>s&&i?"Both a message and comment were found. Only one can be entered":s&&"patch"!==e?"Only patch changes can have a comment. Please change the significance to patch or remove the comment":e?t?s||i?null:"No changelog message or comment found":"No changelog type found":"No changelog significance found"},91920:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getTouchedProjectsRequiringChangelog=t.getAllProjectPaths=t.getTouchedChangeloggerProjectsPathsMappedToProjects=t.getTouchedFilePaths=t.getChangeloggerProjectPaths=t.getAllProjectsPathsFromWorkspace=void 0;const n=i(57147),o=i(73292),a=r(i(71017)),c=i(27639),l=r(i(92703)),p=i(45712);t.getAllProjectsPathsFromWorkspace=(e,t)=>s(void 0,void 0,void 0,(function*(){const i=t.split("- ");return i.shift(),(yield Promise.all(i.map((e=>e.replace(/'/g,"").trim())).map((t=>s(void 0,void 0,void 0,(function*(){return t.includes("*")?yield(0,c.glob)(t,{cwd:e}):t})))))).flat()})),t.getChangeloggerProjectPaths=(e,t)=>s(void 0,void 0,void 0,(function*(){return t.filter((t=>(0,n.existsSync)(`${e}/${t}/composer.json`))).filter((t=>{const i=JSON.parse((0,n.readFileSync)(`${e}/${t}/composer.json`,"utf8"));return i.require&&i.require["automattic/jetpack-changelogger"]||i["require-dev"]&&i["require-dev"]["automattic/jetpack-changelogger"]}))})),t.getTouchedFilePaths=(e,t,i,r,n,o)=>s(void 0,void 0,void 0,(function*(){const s=(0,l.default)({baseDir:e,config:["core.hooksPath=/dev/null"]});return yield s.addRemote(n,(0,p.getAuthenticatedRemote)({owner:n,name:o})),yield s.fetch(n,t),(yield s.raw(["diff","--name-only",`${t}...${i}`])).split("\n").map((e=>e.trim())).filter((e=>!e.includes(`/changelog/${r}`)))})),t.getTouchedChangeloggerProjectsPathsMappedToProjects=(e,t)=>{const i=e.map((e=>e.includes("plugins/woocommerce-admin")?e.replace("plugins/woocommerce-admin","plugins/woocommerce"):e)),s=t.filter((e=>i.some((t=>t.includes(e+"/"))))),r={};for(const e of s){let t=e;t.includes("plugins/")?t=t.replace("plugins/",""):t.includes("packages/js/")&&(t=t.replace("packages/js/","@woocommerce/")),r[t]=e}return r},t.getAllProjectPaths=e=>s(void 0,void 0,void 0,(function*(){const i=yield(0,o.readFile)(a.default.join(e,"pnpm-workspace.yaml"),"utf8");return yield(0,t.getAllProjectsPathsFromWorkspace)(e,i)})),t.getTouchedProjectsRequiringChangelog=(e,i,r,n,o,a)=>s(void 0,void 0,void 0,(function*(){const s=yield(0,t.getAllProjectPaths)(e),c=yield(0,t.getChangeloggerProjectPaths)(e,s),l=yield(0,t.getTouchedFilePaths)(e,i,r,n,o,a);return(0,t.getTouchedChangeloggerProjectsPathsMappedToProjects)(l,c)}))},65999:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const r=i(43642),n=i(57995),o=i(84041),a=i(87190),c=i(35894),l=i(9982),p=i(54189),A=i(19708),u=new r.Command("ci-jobs").description("Generates CI workflow jobs based on the changes since the base ref.").option("-r --base-ref ","Base ref to compare the current ref against for change detection. If not specified, all projects will be considered changed.","").option("-e --event ","Github event for which to run the jobs. If not specified, all events will be considered.","").action((e=>s(void 0,void 0,void 0,(function*(){o.Logger.startTask("Parsing Project Graph",!0);const t=(0,a.buildProjectGraph)();let i;o.Logger.endTask(!0),""===e.event?o.Logger.warn("No event was specified, considering all projects."):o.Logger.warn(`Only projects configured for '${e.event}' event will be considered.`),""===e.baseRef?(o.Logger.warn("No base ref was specified, forcing all projects to be marked as changed."),i=!0):(o.Logger.startTask("Pulling File Changes",!0),i=(0,c.getFileChanges)(t,e.baseRef),o.Logger.endTask(!0)),o.Logger.startTask("Creating Jobs",!0);const s=yield(0,l.createJobsForChanges)(t,i,{commandVars:{baseRef:e.baseRef,event:e.event}});if(o.Logger.endTask(!0),(0,p.isGithubCI)())return(0,n.setOutput)("lint-jobs",JSON.stringify(s.lint)),void A.testTypes.forEach((e=>{(0,n.setOutput)(`${e}-test-jobs`,JSON.stringify(s[`${e}Test`]))}));if(s.lint.length>0){o.Logger.notice("Lint Jobs");for(const e of s.lint){const t=e.optional?"(optional)":"";o.Logger.notice(`- ${e.projectName} - ${e.command}${t}`)}}else o.Logger.notice("No lint jobs to run.");A.testTypes.forEach((e=>{if(s[`${e}Test`].length>0){o.Logger.notice(`${e} test Jobs`);for(const t of s[`${e}Test`]){const e=t.optional?" (optional)":"";o.Logger.notice(`- ${t.projectName} - ${t.name}${e}`)}}else o.Logger.notice(`No ${e} test jobs to run.`)}))}))));t.default=u},19708:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCIConfig=t.CommandVarOptions=t.testTypes=t.ConfigError=void 0;const s=i(31857);class r extends Error{}var n;function o(e,t=[]){const i=[];for(const e of t){const t=(0,s.makeRe)(e);if(!t)throw new Error("Invalid extra glob pattern.");i.push(t)}if("string"==typeof e){const t=(0,s.makeRe)(e);if(!t)throw new r("Changes configuration is an invalid glob pattern.");return i.push(t),i}if(!Array.isArray(e))throw new r("Changes configuration must be a string or array of strings.");for(const t of e){if("string"!=typeof t)throw new r("Changes configuration must be a string or array of strings.");const e=(0,s.makeRe)(t);if(!e)throw new r("Changes configuration is an invalid glob pattern.");i.push(e)}return i}function a(e){const t=e.matchAll(/<([^>]+)>/g);if(!t)return;const i=Object.values(n);for(const e of t){if(2!==e.length)throw new r('Invalid command variable. Variables must be in the format "".');if(!i.includes(e[1]))throw new r(`Invalid command variable "${e[1]}".`)}}function c(e){if(!e.changes)throw new r('A "changes" option is required for the job.');if(!e.command||"string"!=typeof e.command)throw new r('A string "command" option is required for the job.');a(e.command);let t=!1;if(e.optional){if("boolean"!=typeof e.optional)throw new r('The "optional" property must be a boolean.');t=e.optional}return{type:null,changes:o(e.changes,["package.json"]),command:e.command,events:e.events||[],optional:t}}function l(e){const t={};if(!e)return t;if(e.wpVersion){if("string"!=typeof e.wpVersion)throw new r('The "wpVersion" option must be a string.');t.wpVersion=e.wpVersion}if(e.phpVersion){if("string"!=typeof e.phpVersion)throw new r('The "phpVersion" option must be a string.');t.phpVersion=e.phpVersion}if(e.disableHpos){if("boolean"!=typeof e.disableHpos)throw new r('The "disableHpos" option must be a boolean.');t.disableHpos=e.disableHpos}return t}function p(e){const i=c(e);if(!e.name||"string"!=typeof e.name)throw new r('A string "name" option is required for test jobs.');let s="default";e.testType&&t.testTypes.includes(e.testType.toString().toLowerCase())&&(s=e.testType.toLowerCase());const n=Object.assign(Object.assign({},i),{type:"test",testType:s,shardingArguments:e.shardingArguments||[],name:e.name});if(e.testEnv){if("object"!=typeof e.testEnv)throw new r('The "testEnv" option must be an object.');if(!e.testEnv.start||"string"!=typeof e.testEnv.start)throw new r('A string "start" option is required for test environments.');a(e.testEnv.start),n.testEnv={start:e.testEnv.start,config:l(e.testEnv.config)}}return e.cascade&&(n.cascadeKeys=function(e){if("string"==typeof e)return[e];if(!Array.isArray(e))throw new r("Cascade configuration must be a string or array of strings.");const t=[];for(const i of e){if("string"!=typeof i)throw new r("Cascade configuration must be a string or array of strings.");t.push(i)}return t}(e.cascade)),n}t.ConfigError=r,t.testTypes=["default","e2e","api","performance"],function(e){e.BaseRef="baseRef",e.Event="event"}(n||(t.CommandVarOptions=n={})),t.parseCIConfig=function(e){var t;const i={jobs:[]},s=null===(t=e.config)||void 0===t?void 0:t.ci;if(!s)return i;if(s.lint){if("object"!=typeof s.lint)throw new r('The "lint" option must be an object.');i.jobs.push(function(e){const t=c(e);return Object.assign(Object.assign({},t),{type:"lint"})}(s.lint))}if(s.tests){if(!Array.isArray(s.tests))throw new r('The "tests" option must be an array.');for(const e of s.tests)i.jobs.push(p(e))}return i}},35894:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFileChanges=void 0;const s=i(17718);function r(e,t){const i=[];for(const s of t)s.startsWith(e)&&i.push(s.slice(e.length+1));return i}t.getFileChanges=function(e,t){const i=(0,s.execSync)(`git diff --name-only ${t}`,{encoding:"utf8"}).split("\n");if(i.includes("pnpm-lock.yaml"))return!0;const n=function(e){const t={},i=[e],s={};for(;i.length>0;){const e=i.shift();e&&(s[e.name]||(t[e.name]=e.path,s[e.name]=!0,i.push(...e.dependencies)))}return t}(e),o={};for(const e in n){if(!n[e])continue;const t=r(n[e],i);0!==t.length&&(o[e]=t)}return o}},9982:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.createJobsForChanges=t.getShardedJobs=void 0;const r=i(19708),n=i(48150);function o(e,t){return e.replace(/<([^>]+)>/g,((e,i)=>{var s;if(void 0===(null===(s=t.commandVars)||void 0===s?void 0:s[i]))throw new Error(`Missing command variable '${i}'.`);return t.commandVars[i]}))}function a(e,t){let i=[];const s=t.shardingArguments.length;return s<=1?i.push(e):i=Array(s).fill(null).map(((i,r)=>{const n=JSON.parse(JSON.stringify(e));return n.shardNumber=r+1,n.name=`${e.name} ${r+1}/${s}`,n.command=`${e.command} ${t.shardingArguments[r]}`,n})),i}function c(e,t,i,s,r){let n=!1;if(!0===s)n=!0;else for(const e of s){for(const t of i.changes)if(t.test(e)){n=!0;break}if(n)break}return n?{projectName:e,projectPath:t,command:o(i.command,r),optional:i.optional}:null}function l(e,t,i,r,a,c,l){return s(this,void 0,void 0,(function*(){let s=!1;if(!0===r)s=!0;else if(i.cascadeKeys&&i.cascadeKeys.some((e=>c.includes(e)))&&(s=!0),!s)for(const e of r){for(const t of i.changes)if(t.test(e)){s=!0;break}if(s)break}if(!s)return null;const p={projectName:e,projectPath:t,name:i.name,command:o(i.command,a),testEnv:{shouldCreate:!1,envVars:{}},shardNumber:l,optional:i.optional};return i.testEnv&&(p.testEnv={shouldCreate:!0,envVars:yield(0,n.parseTestEnvConfig)(i.testEnv.config),start:o(i.testEnv.start,a)}),p}))}function p(e,t,i,n){var o,A;return s(this,void 0,void 0,(function*(){const s={lint:[],test:[]};r.testTypes.forEach((e=>{s[`${e}Test`]=[]}));const u=[];let d=!1;for(const o of e.dependencies){const e=[...n],a=yield p(o,t,i,e);!1===d&&Object.values(a).some((e=>e.length>0))&&(d=!0),s.lint.push(...a.lint),r.testTypes.forEach((e=>{s[`${e}Test`].push(...a[`${e}Test`])})),u.push(...e)}if(n.push(...u.filter((e=>!n.includes(e)))),!e.ciConfig)return s;for(const r of e.ciConfig.jobs){if(r.jobCreated)continue;if((null===(o=i.commandVars)||void 0===o?void 0:o.event)&&r.events.length>0&&!r.events.map((e=>e.toLowerCase())).includes(i.commandVars.event.toLowerCase()))continue;let p;switch(p=!0===t||(null!==(A=t[e.name])&&void 0!==A?A:[]),r.type){case"lint":{const t=c(e.name,e.path,r,p,i);if(!t)break;r.jobCreated=!0,s.lint.push(t);break}case"test":{d&&(p=!0);const t=yield l(e.name,e.path,r,p,i,n,0);if(!t)break;r.jobCreated=!0,s[`${r.testType}Test`].push(...a(t,r)),r.cascadeKeys&&n.push(...r.cascadeKeys);break}}}return s}))}t.getShardedJobs=a,t.createJobsForChanges=function(e,t,i){return p(e,t,i,[])}},29209:function(e,t,i){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.loadPackage=void 0;const r=s(i(87561)),n=s(i(49411)),o={};t.loadPackage=function(e){return e=n.default.normalize(e),o[e]||(o[e]=JSON.parse(r.default.readFileSync(e,"utf8"))),o[e]}},87190:function(e,t,i){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildProjectGraph=void 0;const r=i(17718),n=s(i(49411)),o=i(19708),a=i(29209);function c(e){const t=[],i=["dependencies","devDependencies"];for(const s of i)if(e[s])for(const i in e[s])e[s][i].startsWith("workspace:")&&(t.includes(i)||t.push(i));return t}t.buildProjectGraph=function(){const e=n.default.join((0,r.execSync)("pnpm -w root",{encoding:"utf-8"}),".."),t=JSON.parse((0,r.execSync)("pnpm -r list --only-projects --json",{encoding:"utf-8"})),i={},s={};let l;for(const r of t){const t=r.path.replace(new RegExp(`^${e.replace(/\\/g,"\\\\")}${n.default.sep}?`),""),p=(0,a.loadPackage)(n.default.join(r.path,"package.json")),A=(0,o.parseCIConfig)(p),u={name:r.name,path:t,ciConfig:A,dependencies:[]};l||(l=u),i[r.name]=c(p),s[r.name]=u}const p=t.map((e=>e.name));for(const e in i){const t=s[e];if(!t)throw new Error(`Unable to find node for ${e}`);for(const r of i[e]){if(!s[r])throw new Error(`Unable to find node for ${r}`);t.dependencies.push(s[r])}for(const e of t.dependencies){const t=p.indexOf(e.name);t>-1&&p.splice(t,1)}}for(const e of p)e!==l.name&&l.dependencies.push(s[e]);return l}},48150:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseTestEnvConfig=void 0;const n=r(i(88849));t.parseTestEnvConfig=function(e){return s(this,void 0,void 0,(function*(){const t={};if(e.wpVersion)try{t.WP_ENV_CORE=yield function(e){return s(this,void 0,void 0,(function*(){if(e.match(/[a-z]+:\/\//i))return e;switch(e){case"master":case"trunk":return"WordPress/WordPress#master";case"nightly":return"https://wordpress.org/nightly-builds/wordpress-latest.zip";case"latest":return"https://wordpress.org/latest.zip"}const t=e.match(/^([0-9]+)\.([0-9]+)\.([0-9]+)$/);if(t){let e=`${t[1]}.${t[2]}`;return"0"!==t[3]&&(e+=`.${t[3]}`),`https://wordpress.org/wordpress-${e}.zip`}return function(e){return s(this,void 0,void 0,(function*(){const t=yield new Promise(((e,t)=>{n.default.get("http://api.wordpress.org/core/stable-check/1.0/",(t=>{let i="";t.on("data",(e=>{i+=e})),t.on("end",(()=>e(JSON.parse(i))))})).on("error",(e=>{t(e)}))})),i=e.match(/^latest(?:-([0-9]+))?$/i);if(i)for(const s in t){if("latest"!==t[s])continue;const r=s.match(/^([0-9]+)\.([0-9]+)/);let n=i[1]?parseInt(i[1],10):0,o=parseInt(r[1],10),a=parseInt(r[2],10);for(;n>0;)a--,a<0&&(o--,a=9),n--;e=o+"."+a}let s=null,r=-1;for(const i in t){const t=i.match(/([0-9]+)\.([0-9]+)(?:\.([0-9]+))?/);if(`${t[1]}.${t[2]}`!==e)continue;const n=void 0===t[3]?0:parseInt(t[3],10);n>r&&(r=n,s=i)}if(!s)throw new Error(`Unable to find latest version for version line ${e}.`);return`https://wordpress.org/wordpress-${s}.zip`}))}(e)}))}(e.wpVersion)}catch(e){throw new Error(`Failed to parse WP version: ${e.message}.`)}return e.phpVersion&&(t.WP_ENV_PHP_VERSION=e.phpVersion),e.disableHpos&&(t.DISABLE_HPOS=1),t}))}},28880:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.acceleratedPrepCommand=void 0;const n=i(43642),o=r(i(92703)),a=i(84041),c=i(45712),l=i(60465),p=i(54189),A=i(15880);t.acceleratedPrepCommand=new n.Command("accelerated-prep").description("Prep for an accelerated release").argument("","Version to bump to use for changelog").argument("","Release date to use in changelog").option("-o --owner ","Repository owner. Default: woocommerce","woocommerce").option("-n --name ","Repository name. Default: woocommerce","woocommerce").option("-b --base ","Base branch to create the PR against. Default: trunk","trunk").option("-d --dry-run","Prepare the version bump and log a diff. Do not create a PR or push to branch",!1).option("-c --commit-direct-to-base","Commit directly to the base branch. Do not create a PR just push directly to base branch",!1).action(((e,t,i)=>s(void 0,void 0,void 0,(function*(){const{owner:s,name:r,base:n,dryRun:u,commitDirectToBase:d}=i;a.Logger.startTask(`Making a temporary clone of '${s}/${r}'`);const h=`github.com/${s}/${r}`,m=`https://${s}:${(0,p.getEnvVar)("GITHUB_TOKEN",!0)}@${h}`,g=yield(0,c.sparseCheckoutRepoShallow)(m,"woocommerce",["plugins/woocommerce/includes/class-woocommerce.php","plugins/woocommerce/composer.json","plugins/woocommerce/package.json","plugins/woocommerce/readme.txt","plugins/woocommerce/woocommerce.php"]);a.Logger.endTask(),a.Logger.notice(`Temporary clone of '${s}/${r}' created at ${g}`);const f=(0,o.default)({baseDir:g,config:["core.hooksPath=/dev/null"]}),E=`prep/${n}-accelerated`;try{if(d)"trunk"===n&&a.Logger.error("The --commit-direct-to-base option cannot be used with the trunk branch as a base. A pull request must be created instead."),a.Logger.notice(`Checking out ${n}`),yield(0,c.checkoutRemoteBranch)(g,n);else{const e=yield f.raw("ls-remote","origin",E);!u&&e.trim().length>0&&a.Logger.error(`Branch ${E} already exists. Run \`git push --delete ${E}\` and rerun this command.`),"trunk"!==n&&(a.Logger.notice(`Checking out ${n}`),yield(0,c.checkoutRemoteBranch)(g,n)),a.Logger.notice(`Creating new branch ${E}`),yield f.checkoutBranch(E,n)}const i=d?n:E;if(a.Logger.notice(`Adding Woo header to main plugin file and creating changelog.txt on ${i} branch`),(0,A.addHeader)(g),(0,A.createChangelog)(g,e,t),u){const e=yield f.diffSummary();return a.Logger.notice("The prep has been completed in the following files:"),a.Logger.warn(e.files.map((e=>e.file)).join("\n")),void a.Logger.notice("Dry run complete. No pull was request created nor was a commit made.")}if(a.Logger.notice("Adding and committing changes"),yield f.add("."),yield f.commit(`Add Woo header to main plugin file and create changelog in ${n}`),a.Logger.notice(`Pushing ${i} branch to Github`),yield f.push("origin",i),!d){a.Logger.startTask("Creating a pull request");const e=yield(0,l.createPullRequest)({owner:s,name:r,title:`Add Woo header to main plugin file and create changelog in ${n}`,body:`This PR adds the Woo header to the main plugin file and creates a changelog.txt file in ${n}.`,head:E,base:n});a.Logger.notice(`Pull request created: ${e.html_url}`),a.Logger.endTask()}}catch(e){a.Logger.error(e)}}))))},15880:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.createChangelog=t.addHeader=void 0;const r=i(73292),n=i(71017),o=i(84041);t.addHeader=e=>s(void 0,void 0,void 0,(function*(){const t=(0,n.join)(e,"plugins/woocommerce/woocommerce.php");try{const e=(yield(0,r.readFile)(t,"utf8")).replace(" * @package WooCommerce\n */"," *\n * Woo: 18734002369816:624a1b9ba2fe66bb06d84bcdd401c6a6\n *\n * @package WooCommerce\n */");yield(0,r.writeFile)(t,e)}catch(e){o.Logger.error(e)}})),t.createChangelog=(e,t,i)=>s(void 0,void 0,void 0,(function*(){const s=(0,n.join)(e,"plugins/woocommerce/changelog.txt");try{const e=`*** WooCommerce ***\n\n${i} - Version ${t}\n* Update - Deploy of WooCommerce ${t}\n`;yield(0,r.writeFile)(s,e)}catch(e){o.Logger.error(e)}}))},58828:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.branchCommand=void 0;const n=i(43642),o=i(50595),a=i(30486),c=r(i(47309)),l=r(i(7540)),p=i(57995),A=i(60465),u=i(60286),d=i(84041),h=i(54189);t.branchCommand=new n.Command("branch").description("Create a new release branch").option("-d --dryRun","Prepare the branch but do not create it.").option("-o --owner ","Repository owner. Default: woocommerce","woocommerce").option("-n --name ","Repository name. Default: woocommerce","woocommerce").option("-b --branch ","Release branch to create. The branch will be determined from Github if none is supplied").option("-s --source ","Branch to create the release branch from. Default: trunk","trunk").action((e=>s(void 0,void 0,void 0,(function*(){const{source:t,branch:i,owner:r,name:n,dryRun:m}=e,g=(0,h.isGithubCI)();let f;if(i)f=i;else{const t=(0,l.default)(c.default.yellow("No branch supplied, going off the latest release version")).start();f=yield(e=>s(void 0,void 0,void 0,(function*(){const t=yield(0,A.getLatestGithubReleaseVersion)(e),i=(0,u.WPIncrement)(t),s=(0,o.parse)(i);return`release/${s.major}.${s.minor}`})))(e),d.Logger.warn(`The next release branch is ${f}`),t.succeed()}const E=(0,l.default)(c.default.yellow(`Check to see if branch ${f} exists on ${r}/${n}`)).start(),C=yield(0,A.doesGithubBranchExist)(e,f);if(E.succeed(),C)if(g&&(d.Logger.error(`Release branch ${f} already exists`),process.exit(0)),yield(0,a.confirm)(c.default.yellow(`Release branch ${f} already exists on ${r}/${n}, do you want to delete it and create a new one from ${t}? [y/n]`))){if(!m){const i=(0,l.default)(c.default.yellow(`Delete branch ${f} on ${r}/${n} and create new one from ${t}`)).start();yield(0,A.deleteGithubBranch)(e,f),i.succeed()}}else d.Logger.notice(`Branch ${f} already exist on ${r}/${n}, no action taken.`),process.exit(0);const y=(0,l.default)(c.default.yellow(`Create branch ${f}`)).start();m&&(y.succeed(),d.Logger.notice(`DRY RUN: Skipping actual creation of branch ${f} on ${r}/${n}`),process.exit(0));const v=yield(0,A.getRefFromGithubBranch)(e,t);yield(0,A.createGithubBranch)(e,f,v),y.succeed(),g&&(0,p.setOutput)("nextReleaseBranch",f),d.Logger.notice(`Branch ${f} successfully created on ${r}/${n}`)}))))},91469:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.changelogCommand=void 0;const r=i(43642),n=i(32081),o=i(84041),a=i(45712),c=i(49994);t.changelogCommand=new r.Command("changelog").description("Make changelog pull requests to trunk and release branch").option("-o --owner ","Repository owner. Default: woocommerce","woocommerce").option("-n --name ","Repository name. Default: woocommerce","woocommerce").option("-d --dev-repo-path ","Path to existing repo. Use this option to avoid cloning a fresh repo for development purposes. Note that using this option assumes dependencies are already installed.").option("-c --commit-direct-to-base","Commit directly to the base branch. Do not create a PR just push directly to base branch",!1).option("-o, --override ","Time Override: The time to use in checking whether the action should run (default: 'now').","now").requiredOption("-v, --version ","Version to bump to").action((e=>s(void 0,void 0,void 0,(function*(){const{owner:t,name:i,version:s,devRepoPath:r}=e;o.Logger.startTask(`Making a temporary clone of '${t}/${i}'`);const l={owner:t||"woocommerce",name:i||"woocommerce"},p=r||(yield(0,a.cloneAuthenticatedRepo)(l,!1));o.Logger.endTask(),o.Logger.notice(`Temporary clone of '${t}/${i}' created at ${p}`),r||(o.Logger.notice(`Installing dependencies in ${p}`),(0,n.execSync)("pnpm install --filter woocommerce",{cwd:p,stdio:"inherit"}));const A=`release/${s}`,u=yield(0,c.updateReleaseBranchChangelogs)(e,p,A);yield(0,c.updateTrunkChangelog)(e,p,A,u)}))))},49994:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.updateTrunkChangelog=t.updateReleaseBranchChangelogs=void 0;const n=r(i(92703)),o=i(32081),a=i(73292),c=r(i(71017)),l=i(84041),p=i(45712),A=i(60465),u=i(15087);t.updateReleaseBranchChangelogs=(e,t,i)=>s(void 0,void 0,void 0,(function*(){const{owner:r,name:d,version:h,commitDirectToBase:m}=e;try{yield(0,p.checkoutRemoteBranch)(t,i,!1)}catch(e){e.message.includes("couldn't find remote ref")&&l.Logger.error(`${i} does not exist on ${r}/${d}.`),l.Logger.error(e)}const g=(0,n.default)({baseDir:t,config:["core.hooksPath=/dev/null"]}),f=`update/${h}-changelog`;try{m||(yield g.checkout({"-b":null,[f]:null})),l.Logger.notice(`Running the changelog script in ${t}`),(0,o.execSync)(`pnpm --filter=@woocommerce/plugin-woocommerce changelog write --add-pr-num -n -vvv --use-version ${h}`,{cwd:t,stdio:"inherit"}),l.Logger.notice(`Committing deleted files in ${t}`),yield g.checkout("pnpm-lock.yaml"),yield g.add("plugins/woocommerce/changelog/"),yield g.commit(`Delete changelog files from ${h} release`);const n=yield g.raw(["rev-parse","HEAD"]);if(l.Logger.notice(`git deletion hash: ${n}`),l.Logger.notice(`Updating readme.txt in ${t}`),yield((e,t)=>s(void 0,void 0,void 0,(function*(){const i=(0,u.getToday)(e).plus({days:u.DAYS_BETWEEN_CODE_FREEZE_AND_RELEASE}).toISODate(),s=c.default.join(t,"plugins","woocommerce","readme.txt"),r=c.default.join(t,"plugins","woocommerce","NEXT_CHANGELOG.md");let n=yield(0,a.readFile)(s,"utf-8"),o=yield(0,a.readFile)(r,"utf-8");o=o.replace(/= (\d+\.\d+\.\d+) YYYY-mm-dd =/,`= $1 ${i} =`),o=o.replace(/\[#(\d+)\](?!\()/g,"[#$1](https://github.com/woocommerce/woocommerce/pull/$1)"),n=n.replace(/== Changelog ==\n(.*?)\[See changelog for all versions\]/s,`== Changelog ==\n\n${o}\n\n[See changelog for all versions]`),yield(0,a.writeFile)(s,n)})))(e.override,t),l.Logger.notice(`Committing readme.txt changes in ${f} on ${t}`),yield g.add("plugins/woocommerce/readme.txt"),yield g.commit(`Update the readme files for the ${h} release`),yield g.push("origin",m?i:f),yield g.checkout("."),m)return l.Logger.notice(`Changelog update was committed directly to ${i}`),{deletionCommitHash:n.trim(),prNumber:-1};l.Logger.notice(`Creating PR for ${f}`);const p=yield(0,A.createPullRequest)({owner:r,name:d,title:`Release: Prepare the changelog for ${h}`,body:`This pull request was automatically generated during the code freeze to prepare the changelog for ${h}`,head:f,base:i});return l.Logger.notice(`Pull request created: ${p.html_url}`),{deletionCommitHash:n.trim(),prNumber:p.number}}catch(e){l.Logger.error(e)}})),t.updateTrunkChangelog=(e,t,i,r)=>s(void 0,void 0,void 0,(function*(){const{owner:s,name:o,version:a}=e,{deletionCommitHash:c,prNumber:p}=r;l.Logger.notice(`Deleting changelogs from trunk ${t}`);const u=(0,n.default)({baseDir:t,config:["core.hooksPath=/dev/null"]});try{yield u.checkout("trunk");const e=`delete/${a}-changelog`;l.Logger.notice(`Committing deletions in ${e} on ${t}`),yield u.checkout({"-b":null,[e]:null}),yield u.raw(["cherry-pick",c]),yield u.push("origin",e),l.Logger.notice(`Creating PR for ${e}`);const r=yield(0,A.createPullRequest)({owner:s,name:o,title:`Release: Remove ${a} change files`,body:`This pull request was automatically generated during the code freeze to remove the changefiles from ${a} that are compiled into the \`${i}\` ${p>0?`branch via #${p}`:""}`,head:e,base:"trunk"});l.Logger.notice(`Pull request created: ${r.html_url}`)}catch(e){l.Logger.error(e)}}))},49535:function(e,t,i){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getVersionCommand=void 0;const r=i(43642),n=i(57995),o=s(i(47309)),a=i(84041),c=i(54189),l=i(15087);t.getVersionCommand=new r.Command("get-version").description("Get the release calendar for a given date").option("-o, --override ","Time Override: The time to use in checking whether the action should run (default: 'now').","now").option("-b, --between ","When provided, instead of showing a single day, will show a releases in the range of to .").action((({override:e,between:t})=>{if(t)return((e,t)=>{(0,c.isGithubCI)()&&(a.Logger.error("-b, --between option is not compatible with GitHub CI Output."),process.exit(1));const i=(0,l.getToday)(e),s=(0,l.getToday)(t),r=(0,l.getVersionsBetween)(i,s);a.Logger.notice(o.default.greenBright.bold(`Releases Between ${i.toFormat("DDDD")} and ${s.toFormat("DDDD")}\n`)),a.Logger.table(["Version","Development Begins","Freeze","Release"],r.map((e=>Object.values(e).map((e=>"function"==typeof e.toFormat?e.toFormat("EEE, MMM dd, yyyy"):e))))),process.exit(0)})(e,t);const i=(0,l.getToday)(e),s=(0,l.getAcceleratedCycle)(i,!1),r=(0,l.getAcceleratedCycle)(i),p=(0,l.getMonthlyCycle)(i,!1),A=(0,l.getMonthlyCycle)(i);a.Logger.notice(o.default.greenBright.bold(`Release Calendar for ${i.toFormat("DDDD")}\n`));const u=[];if(3!==i.get("weekday")&&u.push([`${o.default.red("Accelerated Release Cycle")}`,s.version,s.begin.toFormat("EEE, MMM dd, yyyy"),s.freeze.toFormat("EEE, MMM dd, yyyy"),s.release.toFormat("EEE, MMM dd, yyyy")]),u.push([`${o.default.red("Accelerated Development Cycle")}`,r.version,r.begin.toFormat("EEE, MMM dd, yyyy"),r.freeze.toFormat("EEE, MMM dd, yyyy"),r.release.toFormat("EEE, MMM dd, yyyy")]),i>p.freeze&&u.push([`${o.default.red("Monthly Release Cycle")}`,p.version,p.begin.toFormat("EEE, MMM dd, yyyy"),p.freeze.toFormat("EEE, MMM dd, yyyy"),p.release.toFormat("EEE, MMM dd, yyyy")]),u.push([`${o.default.red("Monthly Development Cycle")}`,A.version,A.begin.toFormat("EEE, MMM dd, yyyy"),A.freeze.toFormat("EEE, MMM dd, yyyy"),A.release.toFormat("EEE, MMM dd, yyyy")]),a.Logger.table(["","Version","Development Begins","Freeze","Release"],u),(0,c.isGithubCI)()){const e=4===i.get("weekday"),t=+i==+A.begin,r=p.version.substr(0,p.version.lastIndexOf("."));(0,n.setOutput)("isTodayAcceleratedFreeze",e?"yes":"no"),(0,n.setOutput)("isTodayMonthlyFreeze",t?"yes":"no"),(0,n.setOutput)("acceleratedVersion",s.version),(0,n.setOutput)("monthlyVersion",p.version),(0,n.setOutput)("monthlyVersionXY",r),(0,n.setOutput)("releasesFrozenToday",JSON.stringify(Object.values(Object.assign(Object.assign({},t&&{monthlyVersion:`${p.version} (Monthly)`}),e&&{aVersion:`${s.version} (AF)`})))),(0,n.setOutput)("acceleratedBranch",`release/${s.version}`),(0,n.setOutput)("monthlyBranch",`release/${r}`),(0,n.setOutput)("monthlyMilestone",A.version),(0,n.setOutput)("acceleratedReleaseDate",s.release.toISODate())}process.exit(0)}))},15087:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVersionsBetween=t.getAcceleratedCycle=t.getMonthlyCycle=t.getSecondTuesday=t.getToday=t.DAYS_BETWEEN_CODE_FREEZE_AND_RELEASE=void 0;const s=i(69759);t.DAYS_BETWEEN_CODE_FREEZE_AND_RELEASE=19,t.getToday=(e="now")=>{const t="now"===e?s.DateTime.now().setZone("utc"):s.DateTime.fromISO(e,{zone:"utc"});if(isNaN(t.toMillis()))throw new Error('Invalid date: Check the override parameter (-o, --override) is a correct ISO formatted string or "now"');return t.set({hour:0,minute:0,second:0,millisecond:0})},t.getSecondTuesday=e=>{const t=e.get("year"),i=e.get("month"),r=s.DateTime.utc(t,i,1).get("weekday"),n=r<=2?10-r:17-r;return s.DateTime.utc(t,i,n)},t.getMonthlyCycle=(e,i=!0)=>{const r=s.DateTime.fromObject({year:2023,month:7,day:12,hour:0,minute:0},{zone:"UTC"}),n=(0,t.getSecondTuesday)(e),o=(0,t.getSecondTuesday)(n.plus({months:1})),a=e<=n?n:o,c=(0,t.getSecondTuesday)(a.minus({days:t.DAYS_BETWEEN_CODE_FREEZE_AND_RELEASE+2})),l=(0,t.getSecondTuesday)(a.plus({months:1})),p=a.minus({days:t.DAYS_BETWEEN_CODE_FREEZE_AND_RELEASE+1}),A=((12*(c.get("year")-r.get("year"))+c.get("month")-r.get("month")+80)/10).toFixed(1)+".0";return i&&e>p?(0,t.getMonthlyCycle)(l,!1):{version:A,begin:c.minus({days:t.DAYS_BETWEEN_CODE_FREEZE_AND_RELEASE}),freeze:p,release:a}},t.getAcceleratedCycle=(e,i=!0)=>{i||(e=e.minus({week:1}));const s=e.get("weekday"),r=s<4?3-s:10-s,n=e.plus({days:r}),o=n.minus({days:1}),a=n.plus({days:6}),c=n.minus({days:6}),l=(0,t.getSecondTuesday)(o),p=(0,t.getSecondTuesday)(l.plus({months:1})),A=n<=l?l:p,u=(0,t.getMonthlyCycle)(A,!1),d=(0,t.getSecondTuesday)(A.minus({days:28})),h=10*(o.diff(d,"weeks").toObject().weeks+1);return{version:`${u.version}.${h}`,begin:c,freeze:n,release:a}},t.getVersionsBetween=(e,i)=>{if(e>i)return(0,t.getVersionsBetween)(i,e);const s={};for(let r=e;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=i(43642),r=i(49535),n=i(23777),o=i(58828),a=i(37815),c=i(91469),l=i(28880),p=new s.Command("code-freeze").description("Code freeze utilities").addCommand(r.getVersionCommand).addCommand(n.milestoneCommand).addCommand(o.branchCommand).addCommand(a.versionBumpCommand).addCommand(c.changelogCommand).addCommand(l.acceleratedPrepCommand);t.default=p},23777:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.milestoneCommand=void 0;const n=i(43642),o=r(i(7540)),a=i(60465),c=i(1863),l=i(60286),p=i(84041);t.milestoneCommand=new n.Command("milestone").description("Create a milestone").option("-d --dryRun","Prepare the milestone but do not create it.").option("-o --owner ","Repository owner. Default: woocommerce","woocommerce").option("-n --name ","Repository name. Default: woocommerce","woocommerce").option("-m --milestone ","Milestone to create. Next milestone is gathered from Github if none is supplied").action((e=>s(void 0,void 0,void 0,(function*(){var t;const{owner:i,name:s,dryRun:r,milestone:n}=e;let A,u;if(n)p.Logger.warn(`Manually creating milestone ${n} in ${i}/${s}`),A=n;else{const t=(0,o.default)("No milestone supplied, going off the latest release version").start(),r=yield(0,a.getLatestGithubReleaseVersion)(e);t.succeed(),u=(0,l.WPIncrement)(r),A=(0,l.WPIncrement)(u),p.Logger.warn(`The latest release in ${i}/${s} is version: ${r}`),p.Logger.warn(`The next release in ${i}/${s} will be version: ${u}`),p.Logger.warn(`The next milestone in ${i}/${s} will be: ${A}`)}const d=(0,o.default)(`Creating a ${A} milestone`).start();r&&(d.succeed(),p.Logger.notice(`DRY RUN: Skipping actual creation of milestone ${A}`),process.exit(0));try{yield(0,c.octokitWithAuth)().request(`POST /repos/${i}/${s}/milestones`,{title:A})}catch(e){(null===(t=e.response.data.errors)||void 0===t?void 0:t.some((e=>"already_exists"===e.code)))?(d.succeed(),p.Logger.notice(`Milestone ${A} already exists in ${i}/${s}`),process.exit(0)):(d.fail(),p.Logger.error(`\nFailed to create milestone ${A} in ${i}/${s}`),p.Logger.error(e.response.data.message),process.exit(1))}d.succeed(),p.Logger.notice(`Successfully created milestone ${A} in ${i}/${s}`)}))))},76531:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.bumpFiles=void 0;const r=i(78248),n=i(57775);t.bumpFiles=(e,t)=>s(void 0,void 0,void 0,(function*(){let i=t;yield(0,n.updatePluginFile)(e,i),i=(0,r.stripPrereleaseParameters)(i),yield(0,n.updateReadmeChangelog)(e,i),yield(0,n.updateJSON)("composer",e,i),yield(0,n.updateJSON)("package",e,i),yield(0,n.updateClassPluginFile)(e,i)}))},37815:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.versionBumpCommand=void 0;const n=i(43642),o=r(i(92703)),a=i(84041),c=i(45712),l=i(60465),p=i(54189),A=i(60286),u=i(76531),d=i(78248);t.versionBumpCommand=new n.Command("version-bump").description("Bump versions ahead of new development cycle").argument("","Version to bump to").option("-o --owner ","Repository owner. Default: woocommerce","woocommerce").option("-n --name ","Repository name. Default: woocommerce","woocommerce").option("-b --base ","Base branch to create the PR against. Default: trunk","trunk").option("-d --dry-run","Prepare the version bump and log a diff. Do not create a PR or push to branch",!1).option("-c --commit-direct-to-base","Commit directly to the base branch. Do not create a PR just push directly to base branch",!1).option("-f --force","Force a version bump, even when the new version is less than the existing version",!1).option("-a --allow-accel","Allow accelerated versioning. When this option is not present, versions must be semantically correct",!1).action(((e,t)=>s(void 0,void 0,void 0,(function*(){const{owner:i,name:s,base:r,dryRun:n,commitDirectToBase:h}=t;a.Logger.startTask(`Making a temporary clone of '${i}/${s}'`);const m=`github.com/${i}/${s}`,g=`https://${i}:${(0,p.getEnvVar)("GITHUB_TOKEN",!0)}@${m}`,f=yield(0,c.sparseCheckoutRepoShallow)(g,"woocommerce",["plugins/woocommerce/includes/class-woocommerce.php","plugins/woocommerce/composer.json","plugins/woocommerce/package.json","plugins/woocommerce/readme.txt","plugins/woocommerce/woocommerce.php"]);a.Logger.endTask(),a.Logger.notice(`Temporary clone of '${i}/${s}' created at ${f}`);const E=(0,o.default)({baseDir:f,config:["core.hooksPath=/dev/null"]}),C=(0,d.getIsAccelRelease)(e)?e:(0,A.getMajorMinor)(e),y=`prep/${r}-for-next-dev-cycle-${C}`;try{if(h)"trunk"===r&&a.Logger.error("The --commit-direct-to-base option cannot be used with the trunk branch as a base. A pull request must be created instead."),a.Logger.notice(`Checking out ${r}`),yield(0,c.checkoutRemoteBranch)(f,r);else{const e=yield E.raw("ls-remote","origin",y);!n&&e.trim().length>0&&a.Logger.error(`Branch ${y} already exists. Run \`git push --delete ${y}\` and rerun this command.`),"trunk"!==r&&(a.Logger.notice(`Checking out ${r}`),yield(0,c.checkoutRemoteBranch)(f,r)),a.Logger.notice(`Creating new branch ${y}`),yield E.checkoutBranch(y,r)}a.Logger.notice("Validating arguments"),yield(0,d.validateArgs)(f,e,t);const o=h?r:y;if(a.Logger.notice(`Bumping versions in ${i}/${s} on ${o} branch`),yield(0,u.bumpFiles)(f,e),n){const t=yield E.diffSummary();return a.Logger.notice(`The version has been bumped to ${e} in the following files:`),a.Logger.warn(t.files.map((e=>e.file)).join("\n")),void a.Logger.notice("Dry run complete. No pull was request created nor was a commit made.")}if(a.Logger.notice("Adding and committing changes"),yield E.add("."),yield E.commit(`Prep ${r} for ${C} cycle with version bump to ${e}`),a.Logger.notice(`Pushing ${o} branch to Github`),yield E.push("origin",o),!h){a.Logger.startTask("Creating a pull request");const t=yield(0,l.createPullRequest)({owner:i,name:s,title:`Prep ${r} for ${C} cycle`,body:`This PR updates the versions in ${r} to ${e}.`,head:y,base:r});a.Logger.notice(`Pull request created: ${t.html_url}`),a.Logger.endTask()}}catch(e){a.Logger.error(e)}}))))},57775:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.updatePluginFile=t.updateJSON=t.updateClassPluginFile=t.updateReadmeChangelog=void 0;const r=i(73292),n=i(57147),o=i(71017),a=i(84041);t.updateReadmeChangelog=(e,t)=>s(void 0,void 0,void 0,(function*(){const i=(0,o.join)(e,"plugins/woocommerce/readme.txt");try{const e=(yield(0,r.readFile)(i,"utf8")).replace(/= \d+\.\d+\.\d+ \d\d\d\d-XX-XX =\n/m,`= ${t} ${(new Date).getFullYear()}-XX-XX =\n`);yield(0,r.writeFile)(i,e)}catch(e){a.Logger.error(e)}})),t.updateClassPluginFile=(e,t)=>s(void 0,void 0,void 0,(function*(){const i=(0,o.join)(e,"plugins/woocommerce/includes/class-woocommerce.php");(0,n.existsSync)(i)||a.Logger.error("File 'class-woocommerce.php' does not exist.");try{const e=(yield(0,r.readFile)(i,"utf8")).replace(/public \$version = '\d+\.\d+\.\d+';\n/m,`public $version = '${t}';\n`);yield(0,r.writeFile)(i,e)}catch(e){a.Logger.error(e)}})),t.updateJSON=(e,t,i)=>s(void 0,void 0,void 0,(function*(){const s=(0,o.join)(t,`plugins/woocommerce/${e}.json`);try{const e=JSON.parse(yield(0,r.readFile)(s,"utf8"));e.version=i,yield(0,r.writeFile)(s,JSON.stringify(e,null,"\t")+"\n")}catch(e){a.Logger.error(e)}})),t.updatePluginFile=(e,t)=>s(void 0,void 0,void 0,(function*(){const i=(0,o.join)(e,"plugins/woocommerce/woocommerce.php");try{const e=(yield(0,r.readFile)(i,"utf8")).replace(/Version: \d+\.\d+\.\d+.*\n/m,`Version: ${t}\n`);yield(0,r.writeFile)(i,e)}catch(e){a.Logger.error(e)}}))},78248:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateArgs=t.stripPrereleaseParameters=t.getCurrentVersion=t.getIsAccelRelease=void 0;const r=i(50595),n=i(71017),o=i(73292),a=i(84041);t.getIsAccelRelease=e=>null!==e.match(/^(?:\d+\.){3}\d+?$/),t.getCurrentVersion=e=>s(void 0,void 0,void 0,(function*(){const t=(0,n.join)(e,"plugins/woocommerce/woocommerce.php");try{const e=(yield(0,o.readFile)(t,"utf8")).match(/Version:\s*(.*)/);return e?e[1]:void 0}catch(e){a.Logger.error(e)}})),t.stripPrereleaseParameters=e=>{const t=(0,r.parse)(e);if(t){const{major:e,minor:i,patch:s}=t;return`${e}.${i}.${s}`}return e},t.validateArgs=(e,i,n)=>s(void 0,void 0,void 0,(function*(){const{allowAccel:s,base:o,force:c}=n,l=i;if(s&&(0,t.getIsAccelRelease)(l))"trunk"===o&&a.Logger.error(`Version ${l} is not a development version bump and cannot be applied to trunk, which only accepts development version bumps.`);else{(0,r.valid)(l)||a.Logger.error("Invalid version supplied, please pass in a semantically correct version or use the correct option for accel releases.");const e=(0,r.prerelease)(l);e&&"dev"===e[0]||"trunk"!==o||a.Logger.error(`Version ${l} is not a development version bump and cannot be applied to trunk, which only accepts development version bumps.`)}if(c)return;const p=yield(0,t.getCurrentVersion)(e);if(p){if((0,r.lt)(l,p)){if(l.includes("a.")&&p.includes("dev"))return;a.Logger.error("The version supplied is less than the current version, please supply a valid version.")}}else a.Logger.error("Unable to determine current version")}))},54189:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isGithubCI=t.getEnvVar=void 0;const s=i(84041);t.getEnvVar=(e,t=!1)=>{const i=process.env[e];return void 0===i&&t&&s.Logger.error(`You need to provide a value for ${e} in your environment either via an environment variable or the .env file.`),i||""},t.isGithubCI=()=>!(!process.env.CI&&!process.env.GITHUB_ACTIONS)},45712:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.checkoutRemoteBranch=t.generateDiff=t.getPullRequestNumberFromHash=t.getLineCommitHash=t.getCommitHash=t.diffHashes=t.checkoutRef=t.sparseCheckoutRepoShallow=t.sparseCheckoutRepo=t.cloneAuthenticatedRepo=t.getAuthenticatedRemote=t.cloneRepoShallow=t.cloneRepo=t.getPatches=t.getStartingLineNumber=t.getFilename=void 0;const r=i(32081),n=i(71017),o=i(22037),a=i(57147),c=i(92703),l=i(26874),p=i(73292),A=i(41041),u=i(54189);t.getFilename=e=>e.replace(/^a(.*)\s.*/,"$1"),t.getStartingLineNumber=e=>{const t=e.replace(/^@@ -\d+,\d+ \+(\d+),\d+ @@.*?$/,"$1");if(!t.match(/^\d+$/))throw new Error("Unable to parse line number from patch");return parseInt(t,10)},t.getPatches=(e,t)=>{const i=e.split("diff --git "),s=[];for(const e in i){const r=i[e];r.match(t)&&s.push(r)}return s},t.cloneRepo=(e,t={})=>s(void 0,void 0,void 0,(function*(){const i=(0,n.join)((0,o.tmpdir)(),"code-analyzer-tmp",(0,l.v4)());(0,a.mkdirSync)(i,{recursive:!0});const s=(0,c.simpleGit)({baseDir:i});return yield s.clone(e,i,t),(e=>{try{return new A.URL(e),!0}catch(e){return!1}})(e)||(0,r.execSync)(`cp ${e}/.git/config ${i}/.git/config`),yield s.fetch(),i})),t.cloneRepoShallow=e=>s(void 0,void 0,void 0,(function*(){return yield(0,t.cloneRepo)(e,{"--depth":1})})),t.getAuthenticatedRemote=e=>{const{owner:t,name:i}=e,s=`github.com/${t}/${i}`;return`https://${t}:${(0,u.getEnvVar)("GITHUB_TOKEN",!0)}@${s}`},t.cloneAuthenticatedRepo=(e,i=!0)=>s(void 0,void 0,void 0,(function*(){const s=(0,t.getAuthenticatedRemote)(e);return i?yield(0,t.cloneRepoShallow)(s):yield(0,t.cloneRepo)(s)})),t.sparseCheckoutRepo=(e,t,i,r="trunk",a={})=>s(void 0,void 0,void 0,(function*(){const s=(0,n.join)((0,o.tmpdir)(),t);yield(0,p.rm)(s,{recursive:!0,force:!0}),yield(0,p.mkdir)(s,{recursive:!0});const l=(0,c.simpleGit)({baseDir:s});return yield l.clone(e,s,Object.assign(Object.assign({},{"--no-checkout":null}),a)),yield l.raw("sparse-checkout","init",{"--cone":null}),yield l.raw("sparse-checkout","set",i.join(" ")),yield l.checkout(r),s})),t.sparseCheckoutRepoShallow=(e,i,r,n="trunk")=>s(void 0,void 0,void 0,(function*(){return yield(0,t.sparseCheckoutRepo)(e,i,r,n,{"--depth":1})})),t.checkoutRef=(e,t)=>(0,c.simpleGit)({baseDir:e,config:["core.hooksPath=/dev/null"]}).checkout(t),t.diffHashes=(e,t,i,s=[])=>{const r=(0,c.simpleGit)({baseDir:e});return s.length?r.diff([`${t}..${i}`,"--",".",...s.map((e=>`:^${e}`))]):r.diff([`${t}..${i}`])};const d=e=>/^[0-9a-f]{7,40}$/i.test(e);t.getCommitHash=(e,t)=>s(void 0,void 0,void 0,(function*(){const i=d(t);try{yield(0,c.simpleGit)({baseDir:e}).show(t)}catch(e){throw new Error(`${t} is not a valid commit hash or branch name that exists in git history`)}return i?t:(0,c.simpleGit)({baseDir:e}).revparse([t])})),t.getLineCommitHash=(e,t,i)=>s(void 0,void 0,void 0,(function*(){const s=t.replace(/^\//,"");try{const t=yield(0,c.simpleGit)({baseDir:e}),r=(yield t.raw(["blame",`-L${i},${i}`,s])).match(/^([a-f0-9]+)\s+/);if(!r)throw new Error(`Unable to git blame ${s}:${i}`);return r[1]}catch(e){throw new Error(`Unable to git blame ${s}:${i}`)}})),t.getPullRequestNumberFromHash=(e,t)=>s(void 0,void 0,void 0,(function*(){try{const i=yield(0,c.simpleGit)({baseDir:e,config:["core.hooksPath=/dev/null"]}),s=yield i.revparse("HEAD");yield i.checkout(t);const r=(yield i.raw(["log","-1","--first-parent","--format=%cI\n%s"])).split("\n");yield i.checkout(s);const n=r[1].trim().match(/(?:^Merge pull request #(\d+))|(?:\(#(\d+)\)$)/);if(n)return n[1]?parseInt(n[1],10):parseInt(n[2],10);throw new Error(`Unable to get PR number from hash ${t}.`)}catch(e){throw new Error(`Unable to get PR number from hash ${t}.`)}})),t.generateDiff=(e,i,r,n,o=[])=>s(void 0,void 0,void 0,(function*(){try{const s=(0,c.simpleGit)({baseDir:e,config:["core.hooksPath=/dev/null"]}),n=[i,r].filter((e=>!d(e)));for(const e of n)yield s.checkout([e]);const a=yield(0,t.getCommitHash)(e,i),l=yield(0,t.getCommitHash)(e,r);if(!(yield(0,c.simpleGit)({baseDir:e}).checkIsRepo()))throw new Error("Not a git repository");return yield(0,t.diffHashes)(e,a,l,o)}catch(e){return e instanceof Error?n(`Unable to create diff. Check that git repo, base hash, and compare hash all exist.\n Error: ${e.message}`):n("Unable to create diff. Check that git repo, base hash, and compare hash all exist."),""}})),t.checkoutRemoteBranch=(e,t,i=!0)=>s(void 0,void 0,void 0,(function*(){const s=(0,c.simpleGit)({baseDir:e,config:["core.hooksPath=/dev/null"]});yield s.raw(["remote","set-branches","--add","origin",t]);const r=["fetch","origin",t];i&&r.push("--depth=1"),yield s.raw(r),yield s.raw(["checkout","-b",t,`origin/${t}`])}))},1863:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.octokitWithAuth=t.graphqlWithAuth=void 0;const s=i(46321),r=i(39470),n=i(54189);let o,a;t.graphqlWithAuth=()=>o||(o=s.graphql.defaults({headers:{authorization:`Bearer ${(0,n.getEnvVar)("GITHUB_TOKEN",!0)}`}}),o),t.octokitWithAuth=()=>a||(a=new r.Octokit({auth:(0,n.getEnvVar)("GITHUB_TOKEN",!0)}),a)},60465:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isCommunityPullRequest=t.getPullRequest=t.createPullRequest=t.deleteGithubBranch=t.createGithubBranch=t.getRefFromGithubBranch=t.doesGithubBranchExist=t.getLatestGithubReleaseVersion=void 0;const r=i(1863);t.getLatestGithubReleaseVersion=e=>s(void 0,void 0,void 0,(function*(){const{owner:t,name:i}=e;return(yield(0,r.graphqlWithAuth)()(`\n\t\t\t{\n\t\t\t repository(owner: "${t}", name: "${i}") {\n\t\t\t\t\treleases(\n\t\t\t\t\t\tfirst: 25\n\t\t\t\t\t\torderBy: { field: CREATED_AT, direction: DESC }\n\t\t\t\t\t) {\n\t\t\t\t\t\tnodes {\n\t\t\t\t\t\t\ttagName\n\t\t\t\t\t\t\tisLatest\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t`)).repository.releases.nodes.find((e=>e.isLatest)).tagName})),t.doesGithubBranchExist=(e,t)=>s(void 0,void 0,void 0,(function*(){const{owner:i,name:s}=e;try{return(yield(0,r.octokitWithAuth)().request("GET /repos/{owner}/{repo}/branches/{branch}",{owner:i,repo:s,branch:t})).data.name===t}catch(e){if(404===e.status&&"Branch not found"===e.response.data.message)return!1;throw new Error(e)}})),t.getRefFromGithubBranch=(e,t)=>s(void 0,void 0,void 0,(function*(){const{owner:i,name:s}=e,{repository:n}=yield(0,r.graphqlWithAuth)()(`\n\t\t\t{\n\t\t\t repository(owner:"${i}", name:"${s}") {\n\t\t\t\t\tref(qualifiedName: "refs/heads/${t}") {\n\t\t\t\t\t\ttarget {\n\t\t\t\t\t\t ... on Commit {\n\t\t\t\t\t\t\t history(first: 1) {\n\t\t\t\t\t\t\t\tedges{ node{ oid } }\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t}\n\t\t`);return n.ref.target.history.edges.shift().node.oid})),t.createGithubBranch=(e,t,i)=>s(void 0,void 0,void 0,(function*(){const{owner:s,name:n}=e;yield(0,r.octokitWithAuth)().request("POST /repos/{owner}/{repo}/git/refs",{owner:s,repo:n,ref:`refs/heads/${t}`,sha:i})})),t.deleteGithubBranch=(e,t)=>s(void 0,void 0,void 0,(function*(){const{owner:i,name:s}=e;yield(0,r.octokitWithAuth)().request("DELETE /repos/{owner}/{repo}/git/refs/heads/{ref}",{owner:i,repo:s,ref:t})})),t.createPullRequest=e=>s(void 0,void 0,void 0,(function*(){const{head:t,base:i,owner:s,name:n,title:o,body:a}=e;return(yield(0,r.octokitWithAuth)().request("POST /repos/{owner}/{repo}/pulls",{owner:s,repo:n,title:o,body:a,head:t,base:i})).data})),t.getPullRequest=e=>s(void 0,void 0,void 0,(function*(){const{owner:t,name:i,prNumber:s}=e;return(yield(0,r.octokitWithAuth)().request("GET /repos/{owner}/{repo}/pulls/{pull_number}",{owner:t,repo:i,pull_number:Number(s)})).data})),t.isCommunityPullRequest=(e,t,i)=>e.head.repo.full_name!==`${t}/${i}`},84041:function(e,t,i){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const r=s(i(7540)),n=s(i(47309)),o=s(i(91969)),a=i(54189),c={verbose:3,warn:2,error:1,silent:0},{log:l,error:p,warn:A}=console;class u{static get loggingLevel(){return c[(0,a.getEnvVar)("LOGGER_LEVEL")||"warn"]}static error(e,t=!0){u.loggingLevel>=c.error&&(e instanceof Error?p(n.default.red(`${e.message}\n${e.stack}`)):p("string"==typeof e?n.default.red(e):n.default.red(JSON.stringify(e,null,2))),t&&process.exit(1))}static warn(e){u.loggingLevel>=c.warn&&A(n.default.yellow(e))}static notice(e){u.loggingLevel>c.silent&&l(n.default.green(e))}static startTask(e,t=!1){if(u.loggingLevel>c.silent&&!(0,a.isGithubCI)()){const t=(0,r.default)(n.default.green(`${e}...`)).start();u.lastSpinner=t}else(0,a.isGithubCI)()&&!t&&u.notice(e)}static table(e,t){if(u.loggingLevel>c.silent){const i=new o.default({head:e,rows:t});l(i.toString())}}static endTask(e=!1){u.loggingLevel>c.silent&&u.lastSpinner&&!(0,a.isGithubCI)()?(u.lastSpinner.succeed(`${u.lastSpinner.text} complete.`),u.lastSpinner=null):(0,a.isGithubCI)()&&!e&&u.notice("Task complete.")}}t.Logger=u},38200:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestAsync=t.execAsync=void 0;const s=i(73837),r=i(32081),n=i(95687);t.execAsync=(0,s.promisify)(r.exec),t.requestAsync=(e,t)=>new Promise(((i,s)=>{const r=(0,n.request)(e,(e=>{let t="";e.setEncoding("utf8"),e.on("data",(e=>{t+=e})),e.on("end",(()=>{const s=Object.assign(Object.assign({},e),{body:t});i(s)}))}));r.on("error",(e=>{s(e)})),t&&r.write(t),r.end()}))},60286:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMajorMinor=t.WPIncrement=void 0;const s=i(50595);t.WPIncrement=e=>{const t=(0,s.parse)(e);return(0,s.inc)(t,9===t.minor?"major":"minor")},t.getMajorMinor=e=>{const t=(0,s.parse)(e);return`${t.major}.${t.minor}`}},33467:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i(43642),o=r(i(47707)),a=r(i(47309)),c=r(i(90772)),l=r(i(44152)),p=r(i(96420)),A=r(i(6156)),u=r(i(68559)),d=r(i(65999)),h=r(i(36131)),m=r(i(18832)),g=i(84041),f=i(54189);c.default.config(),(0,f.isGithubCI)()||g.Logger.notice(a.default.rgb(150,88,138).bold(o.default.textSync("WooCommerce \n Utils")));const E=(new n.Command).name("utils").description("Monorepo utilities").addCommand(l.default).addCommand(p.default).addCommand(u.default).addCommand(d.default).addCommand(h.default).addCommand(A.default).addCommand(m.default);E.exitOverride(),s(void 0,void 0,void 0,(function*(){try{yield E.parseAsync(process.argv)}catch(e){((0,f.isGithubCI)()||"commander.help"!==e.code)&&g.Logger.error(e)}}))},6156:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=i(43642),r=i(25456),n=new s.Command("md-docs").description("Utilities for generating markdown doc manifests.").addCommand(r.generateManifestCommand,{isDefault:!0});t.default=n},25456:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateManifestCommand=void 0;const n=i(57147),o=i(43642),a=r(i(71017)),c=i(54027),l=i(84041),p=i(39213);t.generateManifestCommand=new o.Command("create").description("Create a manifest file representing the contents of a markdown directory.").argument("","Path to directory of Markdown files to generate the manifest from.").argument("","Name of the project to generate the manifest for, used to uniquely identify manifest entries.").option("-o --outputFilePath ","Full path and filename of where to output the manifest.",`${process.cwd()}/manifest.json`).option("-b --baseUrl ","Base url to resolve markdown file URLs to in the manifest.","https://raw.githubusercontent.com/woocommerce/woocommerce/trunk").option("-r --rootDir ","Root directory of the markdown files, used to generate URLs.",process.cwd()).option("-be --baseEditUrl ","Base url to provide edit links to. This option will be ignored if your baseUrl is not a GitHub URL.","https://github.com/woocommerce/woocommerce/edit/trunk").action(((e,t,i)=>s(void 0,void 0,void 0,(function*(){const{outputFilePath:s,baseUrl:r,rootDir:o,baseEditUrl:A}=i,u=a.default.isAbsolute(o)?o:a.default.join(process.cwd(),o),d=a.default.isAbsolute(e)?e:a.default.join(process.cwd(),e),h=a.default.isAbsolute(s)?s:a.default.join(process.cwd(),s);l.Logger.startTask("Generating manifest");const m=yield(0,c.generateManifestFromDirectory)(u,d,t,r,A),g=yield(0,p.processMarkdownLinks)(m,u,d,t);l.Logger.endTask(),l.Logger.startTask("Writing manifest"),yield(0,n.writeFile)(h,JSON.stringify(g,null,2),(e=>{e&&l.Logger.error(e)})),l.Logger.endTask(),l.Logger.notice(`Manifest output at ${s}`)}))))},41488:function(e,t,i){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generatePostFrontMatter=void 0;const r=s(i(38125)),n=s(i(20097));t.generatePostFrontMatter=(e,t)=>{var i,s;const o=["post_date","post_title","page_template","post_author","post_name","category_title","category_slug","content","menu_title","tags"],a=(0,r.default)(e,{engines:{yaml:e=>n.default.load(e,{schema:n.default.JSON_SCHEMA})}}),c=null===(i=a.content.split("\n").filter((e=>"# "===e.substring(0,2)))[0])||void 0===i?void 0:i.substring(2).trim();return a.data.post_title=null!==(s=a.data.post_title)&&void 0!==s?s:c,null!=t&&t&&(a.data.content=a.content),Object.keys(a.data).filter((e=>o.includes(e))).reduce(((e,t)=>(e[t]=a.data[t],e)),{})}},54027:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateManifestFromDirectory=t.generatePostId=void 0;const n=r(i(57147)),o=r(i(71017)),a=i(27639),c=r(i(6113)),l=i(41488),p=i(77303);function A(e,t=""){const i=c.default.createHash("sha1");return i.update(`${t}/${e}`),i.digest("hex")}function u(e,t){return t.filter((t=>e.match(t))).length>0}function d(e,t,i,r,h,m,g,f=!0){var E,C;return s(this,void 0,void 0,(function*(){const s={},y=o.default.join(t,"README.md");if(f){if(n.default.existsSync(y)){const e=n.default.readFileSync(y,"utf-8"),t=(0,l.generatePostFrontMatter)(e,!0);s.content=t.content,s.category_slug=t.category_slug,s.category_title=t.category_title,s.menu_title=t.menu_title}const e=o.default.basename(t),i=e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ");s.category_slug=null!==(E=s.category_slug)&&void 0!==E?E:e,s.category_title=null!==(C=s.category_title)&&void 0!==C?C:i}const v=a.glob.sync(o.default.join(t,"*.md")).filter((e=>!u(e,g)));v.length>0&&(s.posts=[]),v.forEach((a=>{if(a!==y||!f){const u=n.default.readFileSync(a,"utf-8"),d=(0,l.generatePostFrontMatter)(u);r.includes("github")&&(d.edit_url=(0,p.generateFileUrl)(h,e,t,a));const g=Object.assign({},d);g.hash=c.default.createHash("sha256").update(JSON.stringify(u)).digest("hex");const f=o.default.relative(m,a);s.posts.push(Object.assign(Object.assign({},g),{url:(0,p.generateFileUrl)(r,e,t,a),filePath:a,id:A(f,i)}))}})),s.categories=[];const I=n.default.readdirSync(t,{withFileTypes:!0}).filter((e=>e.isDirectory())).filter((e=>!u(e.name,g))).map((e=>o.default.join(t,e.name)));for(const t of I){const n=yield d(e,t,i,r,h,m,g);s.categories.push(n)}return s}))}t.generatePostId=A,t.generateManifestFromDirectory=function(e,t,i,r,a){return s(this,void 0,void 0,(function*(){const s=t,l=o.default.join(t,".manifestignore");let p;n.default.existsSync(l)&&(p=n.default.readFileSync(l,"utf-8").split("\n").map((e=>e.trim())).filter((e=>e.length>0)).filter((e=>"#"!==e.substring(0,1))));const A=yield d(e,t,i,r,a,s,null!=p?p:[],!1),u=c.default.createHash("sha256").update(JSON.stringify(A)).digest("hex");return Object.assign(Object.assign({},A),{hash:u})}))}},77303:function(e,t,i){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateFileUrl=void 0;const r=s(i(71017));t.generateFileUrl=(e,t,i,s)=>{for(const e of[t,i,s])if(!r.default.isAbsolute(e))throw new Error(`File URLs cannot be generated without absolute paths. ${e} is not absolute.`);const n=r.default.resolve(i,s);return`${e}/${r.default.relative(t,n)}`}},39213:function(e,t,i){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.processMarkdownLinks=void 0;const r=s(i(71017)),n=s(i(57147)),o=i(54027);t.processMarkdownLinks=(e,i,s,a)=>{const c=Object.assign({},e);return c.posts&&(c.posts=c.posts.map((e=>{const t=Object.assign({},e),c=r.default.resolve(i,t.filePath),l=n.default.readFileSync(c,"utf-8"),p=/\[(?:.*?)\]\((.*?)\)/g;let A;for(;A=p.exec(l);){const e=A[1],i=r.default.resolve(r.default.dirname(c),e),l=r.default.relative(s,i);if(n.default.existsSync(i)){const i=(0,o.generatePostId)(l,a);t.links=t.links||{},t.links[e]=i}}return delete t.filePath,t}))),c.categories&&(c.categories=c.categories.map((e=>(0,t.processMarkdownLinks)(e,i,s,a)))),c}},18832:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const r=i(43642),n=i(85314),o=i(84041),a=i(54189),c=i(19906),l=new r.Command("slack-test-report").description("Send a test report to Slack").requiredOption("-c --conclusion ",`Test run conclusion. Expected one of: ${["success","failure","skipped","cancelled"]}`).option("-r --report-name ",'The name of the report. Example: "post-merge tests", "daily e2e tests"',"").option("-u --username ","The Slack username.","Github reporter").option("-n --pr-number ","The PR number to be included in the message, if the event is pull_request.","").option("-t --pr-title ","The PR title to be included in the message, if the event is pull_request.","Default PR title").option("-m --commit-message ","The commit message.","").action((e=>s(void 0,void 0,void 0,(function*(){""===e.reportName&&o.Logger.warn("No report name was specified. Using a default message.");const t="failure"===e.conclusion,i=(0,a.getEnvVar)("SLACK_CHANNEL",!0);if(t){const{username:s}=e,r=new n.WebClient((0,a.getEnvVar)("SLACK_TOKEN",!0)),{text:l,mainMsgBlocks:p,detailsMsgBlocksChunks:A}=yield(0,c.createMessage)({isFailure:t,reportName:e.reportName,username:e.username,sha:(0,a.getEnvVar)("GITHUB_SHA",!0),commitMessage:e.commitMessage,prTitle:e.prTitle,prNumber:e.prNumber,actor:(0,a.getEnvVar)("GITHUB_ACTOR",!0),triggeringActor:(0,a.getEnvVar)("GITHUB_TRIGGERING_ACTOR",!0),eventName:(0,a.getEnvVar)("GITHUB_EVENT_NAME",!0),runId:(0,a.getEnvVar)("GITHUB_RUN_ID",!0),runAttempt:(0,a.getEnvVar)("GITHUB_RUN_ATTEMPT",!0),serverUrl:(0,a.getEnvVar)("GITHUB_SERVER_URL",!0),repository:(0,a.getEnvVar)("GITHUB_REPOSITORY",!0),refType:(0,a.getEnvVar)("GITHUB_REF_TYPE",!0),refName:(0,a.getEnvVar)("GITHUB_REF_NAME",!0)});o.Logger.notice("Sending new message");const u=(yield(0,c.postMessage)(r,{text:`${l}`,blocks:p,channel:i,username:s})).ts;A.length>0&&(o.Logger.notice("Replying with failure details"),yield(0,c.postMessage)(r,{text:l,blocks:A,channel:i,username:s,thread_ts:u}))}else o.Logger.notice(`No message will be sent for '${e.conclusion}'`)}))));t.default=l},19906:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.postMessage=t.createMessage=void 0;const n=r(i(57147)),o=i(84041);function a(e){return{type:"plain_text",text:e,emoji:!1}}function c(e,t){return{type:"button",text:{type:"plain_text",text:e},url:t}}function l(e,t){const i=[];for(let s=0;s50?l.substring(0,48)+"...":l;E.push(a(`Commit: ${t.substring(0,8)} ${e}`),v),C.push(c(`Commit ${t.substring(0,8)}`,`${d}/${h}/commit/${t}`))}"repository_dispatch"===i&&(f=`for event _*${i}*_`),E.push(y);const B=`:x:\t${p?`_*${p}*_ failed`:"Failure"} ${f}`;return{text:B,mainMsgBlocks:[{type:"section",text:{type:"mrkdwn",text:B}},{type:"context",elements:E},{type:"actions",elements:C}],detailsMsgBlocksChunks:[]}}))},t.postMessage=function(e,t){return s(this,void 0,void 0,(function*(){const{text:i,blocks:s=[],channel:r,username:a,icon_emoji:c,ts:p,thread_ts:A}=t;let u;const d=function(e,t,i){const s=function(e,t){const i=[];let s=0;for(let r=0;r50?r.push(...l(e,50)):r.push(e);return r}(s);for(const t of d)if("file"===t[0].type){if(!n.default.existsSync(t[0].path)){o.Logger.error("File not found: "+t[0].path);continue}try{u=yield e.files.upload({file:n.default.createReadStream(t[0].path),channels:r,thread_ts:A})}catch(e){o.Logger.error(e)}}else try{u=yield e.chat.postMessage({text:i,blocks:t,channel:r,ts:p,thread_ts:A,username:a,icon_emoji:c,unfurl_links:!1,unfurl_media:!1})}catch(e){o.Logger.error(e)}return u}))}},96420:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=i(43642),r=i(45048),n=i(58318),o=new s.Command("slack").description("Slack message sending utilities").addCommand(r.slackMessageCommand,{isDefault:!0}).addCommand(n.slackFileCommand);t.default=o},58318:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.slackFileCommand=void 0;const r=i(43642),n=i(85314),o=i(71017),a=i(57147),c=i(84041);t.slackFileCommand=new r.Command("file").description("Send a file upload message to a slack channel").argument("","Slack authentication token bearing required scopes.").argument("","Text based message to send to the slack channel.").argument("","File path to upload to the slack channel.").argument("","Slack channel IDs to send the message to. Pass as many as you like.").option("--dont-fail","Do not fail the command if a message fails to send to any channel.").option("--reply-ts ","Reply to the message with the corresponding ts").option("--filename ","If provided, the filename that will be used for the file on Slack.").action(((e,t,i,r,{dontFail:l,replyTs:p,filename:A})=>s(void 0,void 0,void 0,(function*(){c.Logger.startTask(`Attempting to send message to Slack for channels: ${r.join(",")}`);const s=!l;i&&!(0,a.existsSync)(i)&&c.Logger.error(`Unable to open file with path: ${i}`,s);const u=new n.WebClient(e);for(const e of r)try{const s={file:i,filename:A||(0,o.basename)(i),channel_id:e,initial_comment:t.replace(/\\n/g,"\n"),request_file_info:!1,thread_ts:p||null};yield u.files.uploadV2(s),c.Logger.notice(`Successfully uploaded ${i} to channel: ${e}`)}catch(e){"code"in e&&e.code===n.ErrorCode.PlatformError&&"message"in e&&e.message.includes("missing_scope")?c.Logger.error("The provided token does not have the required scopes, please add files:write and chat:write to the token.",s):c.Logger.error(e,s)}c.Logger.endTask()}))))},45048:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.slackMessageCommand=void 0;const r=i(43642),n=i(57995),o=i(84041),a=i(38200),c=i(54189);t.slackMessageCommand=new r.Command("message").description("Send a plain-text message to a slack channel").argument("","Slack authentication token bearing required scopes.").argument("","Text based message to send to the slack channel.").argument("","Slack channels to send the message to. Pass as many as you like.").option("--dont-fail","Do not fail the command if a message fails to send to any channel.").action(((e,t,i,{dontFail:r})=>s(void 0,void 0,void 0,(function*(){o.Logger.startTask(`Attempting to send message to Slack for channels: ${i.join(",")}`);const s=!r;for(const r of i){const i={hostname:"slack.com",path:"/api/chat.postMessage",method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}};try{const{statusCode:e,body:l}=yield(0,a.requestAsync)(i,JSON.stringify({channel:r,text:t.replace(/\\n/g,"\n")}));o.Logger.endTask();const p=JSON.parse(l);p.ok&&200===e?(o.Logger.notice(`Slack message sent successfully to channel: ${r}`),(0,c.isGithubCI)()&&(0,n.setOutput)("ts",p.ts)):o.Logger.error(`Slack API returned an error: ${null==p?void 0:p.error}, message failed to send to ${r}.`,s)}catch(e){o.Logger.error(e,s)}}}))))},36131:function(e,t,i){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(43642),n=s(i(72940)),o=s(i(55992)),a=new r.Command("workflows").description("Profile Github workflows").addCommand(o.default).addCommand(n.default);t.default=a},72940:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const r=i(43642),n=i(90703),o=i(84041),a=new r.Command("list").description("List all Github workflows in a repository").option("-o --owner ","Repository owner. Default: woocommerce","woocommerce").option("-n --name ","Repository name. Default: woocommerce","woocommerce").action((({owner:e,name:t})=>s(void 0,void 0,void 0,(function*(){o.Logger.startTask("Listing all workflows");const i=yield(0,n.getAllWorkflows)(e,t);o.Logger.notice(`There are ${i.length} workflows in the repository.`),o.Logger.table(["Workflow Name","configuration file","Id"],i.map((e=>[e.name,e.path.replace(".github/workflows/",""),e.id]))),o.Logger.endTask()}))));t.default=a},55992:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const r=i(43642),n=i(90703),o=i(44887),a=i(84041),c=new r.Command("profile").description("Profile GitHub workflows").argument("","Start date in YYYY-MM-DD format").argument("","End date in YYYY-MM-DD format").argument("","Workflow Id or filename.").option("-o --owner ","Repository owner. Default: woocommerce","woocommerce").option("-n --name ","Repository name. Default: woocommerce","woocommerce").option("-s --show-steps").action(((e,t,i,{owner:r,name:c,showSteps:l})=>s(void 0,void 0,void 0,(function*(){const s=yield(0,n.getWorkflowData)(i,r,c);a.Logger.notice(`Processing workflow id ${i}: "${s.name}" from ${e} to ${t}`);const p=yield(0,n.getWorkflowRunData)({id:i,owner:r,name:c,start:e,end:t});let A={};if(l){const{nodeIds:e}=p;A=yield(0,n.getRunJobData)(e)}(0,o.logWorkflowRunResults)(s.name,p),l&&((0,o.logJobResults)(A),(0,o.logStepResults)(A))}))));t.default=c},76682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={WORKFLOW_DURATION_CUTOFF_MINUTES:60}},90703:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getRunJobData=t.getCompiledJobData=t.getWorkflowRunData=t.getWorkflowData=t.getAllWorkflows=void 0;const n=i(1863),o=i(84041),a=i(18113),c=r(i(76682));t.getAllWorkflows=(e,t)=>s(void 0,void 0,void 0,(function*(){const i={owner:e,repo:t};return(yield(0,a.requestPaginatedData)({count_items_processed:0,count_items_available:0,workflows:[]},"GET /repos/{owner}/{repo}/actions/workflows",i,((e,t)=>{const{total_count:i,workflows:s}=e;return t.count_items_available=i,t.count_items_processed+=s.length,t.workflows=t.workflows.concat(s),t}))).workflows}));const l=(e,t)=>{const{workflow_runs:i,total_count:s}=e;if(0===s)return t;t.count_items_available=s,t.count_items_processed+=i.length,o.Logger.notice(`Fetched workflows ${t.count_items_processed} / ${t.count_items_available}`);const{WORKFLOW_DURATION_CUTOFF_MINUTES:r}=c.default;return i.forEach((e=>{if(t[e.conclusion]++,"success"===e.conclusion){t.nodeIds.push(e.node_id);const i=new Date(e.updated_at).getTime()-new Date(e.run_started_at).getTime();i<6e4*r&&t.times.push(i)}})),t};t.getWorkflowData=(e,t,i)=>s(void 0,void 0,void 0,(function*(){const{data:s}=yield(0,n.octokitWithAuth)().request("GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}",{owner:t,repo:i,workflow_id:e});return s})),t.getWorkflowRunData=e=>s(void 0,void 0,void 0,(function*(){const{id:t,start:i,end:s,owner:r,name:n}=e,o={owner:r,repo:n,workflow_id:t,created:`${i}..${s}`};return yield(0,a.requestPaginatedData)({count_items_available:0,nodeIds:[],times:[],success:0,failure:0,cancelled:0,skipped:0,count_items_processed:0},"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",o,l)})),t.getCompiledJobData=(e,t={})=>{const{nodes:i}=e;return i.forEach((e=>{e.checkSuite.checkRuns.nodes.forEach((e=>{const{name:i,startedAt:s,completedAt:r}=e,n=new Date(r).getTime()-new Date(s).getTime();t[i]||(t[i]={times:[],steps:{}}),t[i].times.push(n),e.steps.nodes.forEach((e=>{const{name:s,startedAt:r,completedAt:n}=e;if("Set up job"===s||"Complete job"===s||s.startsWith("Post "))return;const o=new Date(n).getTime()-new Date(r).getTime();t[i].steps[s]||(t[i].steps[s]=[]),t[i].steps[s].push(o)}))}))})),t},t.getRunJobData=e=>s(void 0,void 0,void 0,(function*(){o.Logger.notice(`Processing individual data for the ${e.length} successful workflow run(s)`);let i={};const r=(0,n.graphqlWithAuth)();return yield Promise.all(function(e,t){const i=[];for(let t=0;ts(void 0,void 0,void 0,(function*(){o.Logger.notice(`Fetched runs ${50===n.length?50*(a+1):50*a+n.length} / ${e.length}`);const s=yield r("\n\t\t\t\tquery($nodeIds: [ID!]!){ \n\t\t\t\t\tnodes ( ids: $nodeIds ) {\n\t\t\t\t\t... on WorkflowRun {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tworkflow {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\tname\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcheckSuite {\n\t\t\t\t\t\t\tcheckRuns ( first: 20, filterBy: { status: COMPLETED } ) {\n\t\t\t\t\t\t\t\t\tnodes {\n\t\t\t\t\t\t\t\t\t\tname\n\t\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\t\tstartedAt\n\t\t\t\t\t\t\t\t\t\tcompletedAt\n\t\t\t\t\t\t\t\t\t\tsteps ( first: 50 ) {\n\t\t\t\t\t\t\t\t\t\t\tnodes {\n\t\t\t\t\t\t\t\t\t\t\t\tname\n\t\t\t\t\t\t\t\t\t\t\t\tstartedAt\n\t\t\t\t\t\t\t\t\t\t\t\tcompletedAt\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",{nodeIds:n});i=(0,t.getCompiledJobData)(s,i)}))))),i}))},18113:function(e,t,i){"use strict";var s=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(r,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.requestPaginatedData=void 0;const r=i(1863);t.requestPaginatedData=(e,i,n,o,a=1,c=50)=>s(void 0,void 0,void 0,(function*(){const{data:s}=yield(0,r.octokitWithAuth)().request(i,Object.assign(Object.assign({},n),{page:a,per_page:c}));let l=o(s,e);const{total_count:p}=s;return p>l.count_items_processed&&(l=yield(0,t.requestPaginatedData)(l,i,n,o,a+1)),l}))},44887:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logStepResults=t.logJobResults=t.logWorkflowRunResults=void 0;const s=i(84041),r=i(52190);t.logWorkflowRunResults=(e,t)=>{s.Logger.table(["Workflow Name","Total runs","success","failed","cancelled","average (min)","median (min)","longest (min)","shortest (min)","90th percentile (min)"],[[e,t.count_items_available.toString(),t.success.toString(),t.failure.toString(),t.cancelled.toString(),((0,r.calculateMean)(t.times)/1e3/60).toFixed(2),((0,r.calculateMedian)(t.times)/1e3/60).toFixed(2),(Math.max(...t.times)/1e3/60).toFixed(2),(Math.min(...t.times)/1e3/60).toFixed(2),((0,r.calculate90thPercentile)(t.times)/1e3/60).toFixed(2)]])},t.logJobResults=e=>{const t=Object.keys(e).map((t=>{const i=e[t];return[t,((0,r.calculateMean)(i.times)/1e3/60).toFixed(2),((0,r.calculateMedian)(i.times)/1e3/60).toFixed(2),(Math.max(...i.times)/1e3/60).toFixed(2),(Math.min(...i.times)/1e3/60).toFixed(2),((0,r.calculate90thPercentile)(i.times)/1e3/60).toFixed(2)]}));s.Logger.table(["Job Name","average (min)","median (min)","longest (min)","shortest (min)","90th percentile (min)"],t)},t.logStepResults=e=>{Object.keys(e).forEach((t=>{const i=e[t],n=Object.keys(i.steps).map((e=>{const t=i.steps[e];return[e,((0,r.calculateMean)(t)/1e3/60).toFixed(2),((0,r.calculateMedian)(t)/1e3/60).toFixed(2),(Math.max(...t)/1e3/60).toFixed(2),(Math.min(...t)/1e3/60).toFixed(2),((0,r.calculate90thPercentile)(t)/1e3/60).toFixed(2)]}));s.Logger.table([`Steps for job: ${t}`,"average (min)","median (min)","longest (min)","shortest (min)","90th percentile (min)"],n)}))}},52190:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculate90thPercentile=t.calculateMedian=t.calculateMean=void 0,t.calculateMean=e=>0===e.length?0:e.reduce((function(e,t){return e+t}),0)/e.length,t.calculateMedian=e=>{const t=[...e];if(0===t.length)return 0;t.sort((function(e,t){return e-t}));const i=Math.floor(t.length/2);return t.length%2==0?(t[i-1]+t[i])/2:t[i]},t.calculate90thPercentile=e=>{const t=[...e].sort(((e,t)=>e-t));return t[Math.ceil(.9*t.length)-1]}},42785:(e,t,i)=>{e.exports=i(46163)},46163:(e,t,i)=>{"use strict";i(41808);var s,r=i(24404),n=i(13685),o=i(95687),a=i(82361),c=(i(39491),i(73837));function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,i,s,r){for(var n=A(i,s,r),o=0,a=t.requests.length;o=this.maxSockets?r.requests.push(n):r.createSocket(n,(function(t){function i(){r.emit("free",t,n)}function s(e){r.removeSocket(t),t.removeListener("free",i),t.removeListener("close",s),t.removeListener("agentRemove",s)}t.on("free",i),t.on("close",s),t.on("agentRemove",s),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var i=this,r={};i.sockets.push(r);var n=u({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),s("making CONNECT request");var o=i.request(n);function a(n,a,c){var l;return o.removeAllListeners(),a.removeAllListeners(),200!==n.statusCode?(s("tunneling socket could not be established, statusCode=%d",n.statusCode),a.destroy(),(l=new Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",l),void i.removeSocket(r)):c.length>0?(s("got illegal response body from proxy"),a.destroy(),(l=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",l),void i.removeSocket(r)):(s("tunneling connection has established"),i.sockets[i.sockets.indexOf(r)]=a,t(a))}o.useChunkedEncodingByDefault=!1,o.once("response",(function(e){e.upgrade=!0})),o.once("upgrade",(function(e,t,i){process.nextTick((function(){a(e,t,i)}))})),o.once("connect",a),o.once("error",(function(t){o.removeAllListeners(),s("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),i.removeSocket(r)})),o.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var i=this.requests.shift();i&&this.createSocket(i,(function(e){i.request.onSocket(e)}))}},s=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},t.debug=s},90083:(e,t,i)=>{"use strict";const s=i(21330),r=i(77575),n=i(14269),o=i(34884),a=i(99963),c=i(69895),l=i(38446),{InvalidArgumentError:p}=n,A=i(24649),u=i(34413),d=i(82913),h=i(19115),m=i(17389),g=i(67130),f=i(89066),E=i(13030),{getGlobalDispatcher:C,setGlobalDispatcher:y}=i(1081),v=i(80572),I=i(1901),B=i(93421);let w;try{i(6113),w=!0}catch{w=!1}function b(e){return(t,i,s)=>{if("function"==typeof i&&(s=i,i=null),!t||"string"!=typeof t&&"object"!=typeof t&&!(t instanceof URL))throw new p("invalid url");if(null!=i&&"object"!=typeof i)throw new p("invalid opts");if(i&&null!=i.path){if("string"!=typeof i.path)throw new p("invalid opts.path");let e=i.path;i.path.startsWith("/")||(e=`/${e}`),t=new URL(l.parseOrigin(t).origin+e)}else i||(i="object"==typeof t?t:{}),t=l.parseURL(t);const{agent:r,dispatcher:n=C()}=i;if(r)throw new p("unsupported opts.agent. Did you mean opts.client?");return e.call(n,{...i,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:i.method||(i.body?"PUT":"GET")},s)}}if(Object.assign(r.prototype,A),e.exports.Dispatcher=r,e.exports.Client=s,e.exports.Pool=o,e.exports.BalancedPool=a,e.exports.Agent=c,e.exports.ProxyAgent=f,e.exports.RetryHandler=E,e.exports.DecoratorHandler=v,e.exports.RedirectHandler=I,e.exports.createRedirectInterceptor=B,e.exports.buildConnector=u,e.exports.errors=n,e.exports.setGlobalDispatcher=y,e.exports.getGlobalDispatcher=C,l.nodeMajor>16||16===l.nodeMajor&&l.nodeMinor>=8){let t=null;e.exports.fetch=async function(e){t||(t=i(71973).fetch);try{return await t(...arguments)}catch(e){throw"object"==typeof e&&Error.captureStackTrace(e,this),e}},e.exports.Headers=i(32567).Headers,e.exports.Response=i(77012).Response,e.exports.Request=i(38766).Request,e.exports.FormData=i(20038).FormData,e.exports.File=i(5441).File,e.exports.FileReader=i(18318).FileReader;const{setGlobalOrigin:s,getGlobalOrigin:r}=i(83364);e.exports.setGlobalOrigin=s,e.exports.getGlobalOrigin=r;const{CacheStorage:n}=i(82514),{kConstruct:o}=i(14872);e.exports.caches=new n(o)}if(l.nodeMajor>=16){const{deleteCookie:t,getCookies:s,getSetCookies:r,setCookie:n}=i(11802);e.exports.deleteCookie=t,e.exports.getCookies=s,e.exports.getSetCookies=r,e.exports.setCookie=n;const{parseMIMEType:o,serializeAMimeType:a}=i(12790);e.exports.parseMIMEType=o,e.exports.serializeAMimeType=a}if(l.nodeMajor>=18&&w){const{WebSocket:t}=i(13272);e.exports.WebSocket=t}e.exports.request=b(A.request),e.exports.stream=b(A.stream),e.exports.pipeline=b(A.pipeline),e.exports.connect=b(A.connect),e.exports.upgrade=b(A.upgrade),e.exports.MockClient=d,e.exports.MockPool=m,e.exports.MockAgent=h,e.exports.mockErrors=g},69895:(e,t,i)=>{"use strict";const{InvalidArgumentError:s}=i(14269),{kClients:r,kRunning:n,kClose:o,kDestroy:a,kDispatch:c,kInterceptors:l}=i(84199),p=i(56479),A=i(34884),u=i(21330),d=i(38446),h=i(93421),{WeakRef:m,FinalizationRegistry:g}=i(20590)(),f=Symbol("onConnect"),E=Symbol("onDisconnect"),C=Symbol("onConnectionError"),y=Symbol("maxRedirections"),v=Symbol("onDrain"),I=Symbol("factory"),B=Symbol("finalizer"),w=Symbol("options");function b(e,t){return t&&1===t.connections?new u(e,t):new A(e,t)}e.exports=class extends p{constructor({factory:e=b,maxRedirections:t=0,connect:i,...n}={}){if(super(),"function"!=typeof e)throw new s("factory must be a function.");if(null!=i&&"function"!=typeof i&&"object"!=typeof i)throw new s("connect must be a function or an object");if(!Number.isInteger(t)||t<0)throw new s("maxRedirections must be a positive number");i&&"function"!=typeof i&&(i={...i}),this[l]=n.interceptors&&n.interceptors.Agent&&Array.isArray(n.interceptors.Agent)?n.interceptors.Agent:[h({maxRedirections:t})],this[w]={...d.deepClone(n),connect:i},this[w].interceptors=n.interceptors?{...n.interceptors}:void 0,this[y]=t,this[I]=e,this[r]=new Map,this[B]=new g((e=>{const t=this[r].get(e);void 0!==t&&void 0===t.deref()&&this[r].delete(e)}));const o=this;this[v]=(e,t)=>{o.emit("drain",e,[o,...t])},this[f]=(e,t)=>{o.emit("connect",e,[o,...t])},this[E]=(e,t,i)=>{o.emit("disconnect",e,[o,...t],i)},this[C]=(e,t,i)=>{o.emit("connectionError",e,[o,...t],i)}}get[n](){let e=0;for(const t of this[r].values()){const i=t.deref();i&&(e+=i[n])}return e}[c](e,t){let i;if(!e.origin||!("string"==typeof e.origin||e.origin instanceof URL))throw new s("opts.origin must be a non-empty string or URL.");i=String(e.origin);const n=this[r].get(i);let o=n?n.deref():null;return o||(o=this[I](e.origin,this[w]).on("drain",this[v]).on("connect",this[f]).on("disconnect",this[E]).on("connectionError",this[C]),this[r].set(i,new m(o)),this[B].register(o,i)),o.dispatch(e,t)}async[o](){const e=[];for(const t of this[r].values()){const i=t.deref();i&&e.push(i.close())}await Promise.all(e)}async[a](e){const t=[];for(const i of this[r].values()){const s=i.deref();s&&t.push(s.destroy(e))}await Promise.all(t)}}},73213:(e,t,i)=>{const{addAbortListener:s}=i(38446),{RequestAbortedError:r}=i(14269),n=Symbol("kListener"),o=Symbol("kSignal");function a(e){e.abort?e.abort():e.onError(new r)}e.exports={addSignal:function(e,t){e[o]=null,e[n]=null,t&&(t.aborted?a(e):(e[o]=t,e[n]=()=>{a(e)},s(e[o],e[n])))},removeSignal:function(e){e[o]&&("removeEventListener"in e[o]?e[o].removeEventListener("abort",e[n]):e[o].removeListener("abort",e[n]),e[o]=null,e[n]=null)}}},59280:(e,t,i)=>{"use strict";const{AsyncResource:s}=i(50852),{InvalidArgumentError:r,RequestAbortedError:n,SocketError:o}=i(14269),a=i(38446),{addSignal:c,removeSignal:l}=i(73213);class p extends s{constructor(e,t){if(!e||"object"!=typeof e)throw new r("invalid opts");if("function"!=typeof t)throw new r("invalid callback");const{signal:i,opaque:s,responseHeaders:n}=e;if(i&&"function"!=typeof i.on&&"function"!=typeof i.addEventListener)throw new r("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=s||null,this.responseHeaders=n||null,this.callback=t,this.abort=null,c(this,i)}onConnect(e,t){if(!this.callback)throw new n;this.abort=e,this.context=t}onHeaders(){throw new o("bad connect",null)}onUpgrade(e,t,i){const{callback:s,opaque:r,context:n}=this;l(this),this.callback=null;let o=t;null!=o&&(o="raw"===this.responseHeaders?a.parseRawHeaders(t):a.parseHeaders(t)),this.runInAsyncScope(s,null,null,{statusCode:e,headers:o,socket:i,opaque:r,context:n})}onError(e){const{callback:t,opaque:i}=this;l(this),t&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:i})})))}}e.exports=function e(t,i){if(void 0===i)return new Promise(((i,s)=>{e.call(this,t,((e,t)=>e?s(e):i(t)))}));try{const e=new p(t,i);this.dispatch({...t,method:"CONNECT"},e)}catch(e){if("function"!=typeof i)throw e;const s=t&&t.opaque;queueMicrotask((()=>i(e,{opaque:s})))}}},90496:(e,t,i)=>{"use strict";const{Readable:s,Duplex:r,PassThrough:n}=i(12781),{InvalidArgumentError:o,InvalidReturnValueError:a,RequestAbortedError:c}=i(14269),l=i(38446),{AsyncResource:p}=i(50852),{addSignal:A,removeSignal:u}=i(73213),d=i(39491),h=Symbol("resume");class m extends s{constructor(){super({autoDestroy:!0}),this[h]=null}_read(){const{[h]:e}=this;e&&(this[h]=null,e())}_destroy(e,t){this._read(),t(e)}}class g extends s{constructor(e){super({autoDestroy:!0}),this[h]=e}_read(){this[h]()}_destroy(e,t){e||this._readableState.endEmitted||(e=new c),t(e)}}class f extends p{constructor(e,t){if(!e||"object"!=typeof e)throw new o("invalid opts");if("function"!=typeof t)throw new o("invalid handler");const{signal:i,method:s,opaque:n,onInfo:a,responseHeaders:p}=e;if(i&&"function"!=typeof i.on&&"function"!=typeof i.addEventListener)throw new o("signal must be an EventEmitter or EventTarget");if("CONNECT"===s)throw new o("invalid method");if(a&&"function"!=typeof a)throw new o("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=n||null,this.responseHeaders=p||null,this.handler=t,this.abort=null,this.context=null,this.onInfo=a||null,this.req=(new m).on("error",l.nop),this.ret=new r({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{const{body:e}=this;e&&e.resume&&e.resume()},write:(e,t,i)=>{const{req:s}=this;s.push(e,t)||s._readableState.destroyed?i():s[h]=i},destroy:(e,t)=>{const{body:i,req:s,res:r,ret:n,abort:o}=this;e||n._readableState.endEmitted||(e=new c),o&&e&&o(),l.destroy(i,e),l.destroy(s,e),l.destroy(r,e),u(this),t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)})),this.res=null,A(this,i)}onConnect(e,t){const{ret:i,res:s}=this;if(d(!s,"pipeline cannot be retried"),i.destroyed)throw new c;this.abort=e,this.context=t}onHeaders(e,t,i){const{opaque:s,handler:r,context:n}=this;if(e<200){if(this.onInfo){const i="raw"===this.responseHeaders?l.parseRawHeaders(t):l.parseHeaders(t);this.onInfo({statusCode:e,headers:i})}return}let o;this.res=new g(i);try{this.handler=null;const i="raw"===this.responseHeaders?l.parseRawHeaders(t):l.parseHeaders(t);o=this.runInAsyncScope(r,null,{statusCode:e,headers:i,opaque:s,body:this.res,context:n})}catch(e){throw this.res.on("error",l.nop),e}if(!o||"function"!=typeof o.on)throw new a("expected Readable");o.on("data",(e=>{const{ret:t,body:i}=this;!t.push(e)&&i.pause&&i.pause()})).on("error",(e=>{const{ret:t}=this;l.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;e._readableState.ended||l.destroy(e,new c)})),this.body=o}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null,l.destroy(t,e)}}e.exports=function(e,t){try{const i=new f(e,t);return this.dispatch({...e,body:i.req},i),i.ret}catch(e){return(new n).destroy(e)}}},69250:(e,t,i)=>{"use strict";const s=i(66972),{InvalidArgumentError:r,RequestAbortedError:n}=i(14269),o=i(38446),{getResolveErrorBodyCallback:a}=i(93390),{AsyncResource:c}=i(50852),{addSignal:l,removeSignal:p}=i(73213);class A extends c{constructor(e,t){if(!e||"object"!=typeof e)throw new r("invalid opts");const{signal:i,method:s,opaque:n,body:a,onInfo:c,responseHeaders:p,throwOnError:A,highWaterMark:u}=e;try{if("function"!=typeof t)throw new r("invalid callback");if(u&&("number"!=typeof u||u<0))throw new r("invalid highWaterMark");if(i&&"function"!=typeof i.on&&"function"!=typeof i.addEventListener)throw new r("signal must be an EventEmitter or EventTarget");if("CONNECT"===s)throw new r("invalid method");if(c&&"function"!=typeof c)throw new r("invalid onInfo callback");super("UNDICI_REQUEST")}catch(e){throw o.isStream(a)&&o.destroy(a.on("error",o.nop),e),e}this.responseHeaders=p||null,this.opaque=n||null,this.callback=t,this.res=null,this.abort=null,this.body=a,this.trailers={},this.context=null,this.onInfo=c||null,this.throwOnError=A,this.highWaterMark=u,o.isStream(a)&&a.on("error",(e=>{this.onError(e)})),l(this,i)}onConnect(e,t){if(!this.callback)throw new n;this.abort=e,this.context=t}onHeaders(e,t,i,r){const{callback:n,opaque:c,abort:l,context:p,responseHeaders:A,highWaterMark:u}=this,d="raw"===A?o.parseRawHeaders(t):o.parseHeaders(t);if(e<200)return void(this.onInfo&&this.onInfo({statusCode:e,headers:d}));const h=("raw"===A?o.parseHeaders(t):d)["content-type"],m=new s({resume:i,abort:l,contentType:h,highWaterMark:u});this.callback=null,this.res=m,null!==n&&(this.throwOnError&&e>=400?this.runInAsyncScope(a,null,{callback:n,body:m,contentType:h,statusCode:e,statusMessage:r,headers:d}):this.runInAsyncScope(n,null,null,{statusCode:e,headers:d,trailers:this.trailers,opaque:c,body:m,context:p}))}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;p(this),o.parseHeaders(e,this.trailers),t.push(null)}onError(e){const{res:t,callback:i,body:s,opaque:r}=this;p(this),i&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(i,null,e,{opaque:r})}))),t&&(this.res=null,queueMicrotask((()=>{o.destroy(t,e)}))),s&&(this.body=null,o.destroy(s,e))}}e.exports=function e(t,i){if(void 0===i)return new Promise(((i,s)=>{e.call(this,t,((e,t)=>e?s(e):i(t)))}));try{this.dispatch(t,new A(t,i))}catch(e){if("function"!=typeof i)throw e;const s=t&&t.opaque;queueMicrotask((()=>i(e,{opaque:s})))}},e.exports.RequestHandler=A},19420:(e,t,i)=>{"use strict";const{finished:s,PassThrough:r}=i(12781),{InvalidArgumentError:n,InvalidReturnValueError:o,RequestAbortedError:a}=i(14269),c=i(38446),{getResolveErrorBodyCallback:l}=i(93390),{AsyncResource:p}=i(50852),{addSignal:A,removeSignal:u}=i(73213);class d extends p{constructor(e,t,i){if(!e||"object"!=typeof e)throw new n("invalid opts");const{signal:s,method:r,opaque:o,body:a,onInfo:l,responseHeaders:p,throwOnError:u}=e;try{if("function"!=typeof i)throw new n("invalid callback");if("function"!=typeof t)throw new n("invalid factory");if(s&&"function"!=typeof s.on&&"function"!=typeof s.addEventListener)throw new n("signal must be an EventEmitter or EventTarget");if("CONNECT"===r)throw new n("invalid method");if(l&&"function"!=typeof l)throw new n("invalid onInfo callback");super("UNDICI_STREAM")}catch(e){throw c.isStream(a)&&c.destroy(a.on("error",c.nop),e),e}this.responseHeaders=p||null,this.opaque=o||null,this.factory=t,this.callback=i,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=a,this.onInfo=l||null,this.throwOnError=u||!1,c.isStream(a)&&a.on("error",(e=>{this.onError(e)})),A(this,s)}onConnect(e,t){if(!this.callback)throw new a;this.abort=e,this.context=t}onHeaders(e,t,i,n){const{factory:a,opaque:p,context:A,callback:u,responseHeaders:d}=this,h="raw"===d?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200)return void(this.onInfo&&this.onInfo({statusCode:e,headers:h}));let m;if(this.factory=null,this.throwOnError&&e>=400){const i=("raw"===d?c.parseHeaders(t):h)["content-type"];m=new r,this.callback=null,this.runInAsyncScope(l,null,{callback:u,body:m,contentType:i,statusCode:e,statusMessage:n,headers:h})}else{if(null===a)return;if(m=this.runInAsyncScope(a,null,{statusCode:e,headers:h,opaque:p,context:A}),!m||"function"!=typeof m.write||"function"!=typeof m.end||"function"!=typeof m.on)throw new o("expected Writable");s(m,{readable:!1},(e=>{const{callback:t,res:i,opaque:s,trailers:r,abort:n}=this;this.res=null,!e&&i.readable||c.destroy(i,e),this.callback=null,this.runInAsyncScope(t,null,e||null,{opaque:s,trailers:r}),e&&n()}))}return m.on("drain",i),this.res=m,!0!==(void 0!==m.writableNeedDrain?m.writableNeedDrain:m._writableState&&m._writableState.needDrain)}onData(e){const{res:t}=this;return!t||t.write(e)}onComplete(e){const{res:t}=this;u(this),t&&(this.trailers=c.parseHeaders(e),t.end())}onError(e){const{res:t,callback:i,opaque:s,body:r}=this;u(this),this.factory=null,t?(this.res=null,c.destroy(t,e)):i&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(i,null,e,{opaque:s})}))),r&&(this.body=null,c.destroy(r,e))}}e.exports=function e(t,i,s){if(void 0===s)return new Promise(((s,r)=>{e.call(this,t,i,((e,t)=>e?r(e):s(t)))}));try{this.dispatch(t,new d(t,i,s))}catch(e){if("function"!=typeof s)throw e;const i=t&&t.opaque;queueMicrotask((()=>s(e,{opaque:i})))}}},59168:(e,t,i)=>{"use strict";const{InvalidArgumentError:s,RequestAbortedError:r,SocketError:n}=i(14269),{AsyncResource:o}=i(50852),a=i(38446),{addSignal:c,removeSignal:l}=i(73213),p=i(39491);class A extends o{constructor(e,t){if(!e||"object"!=typeof e)throw new s("invalid opts");if("function"!=typeof t)throw new s("invalid callback");const{signal:i,opaque:r,responseHeaders:n}=e;if(i&&"function"!=typeof i.on&&"function"!=typeof i.addEventListener)throw new s("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=n||null,this.opaque=r||null,this.callback=t,this.abort=null,this.context=null,c(this,i)}onConnect(e,t){if(!this.callback)throw new r;this.abort=e,this.context=null}onHeaders(){throw new n("bad upgrade",null)}onUpgrade(e,t,i){const{callback:s,opaque:r,context:n}=this;p.strictEqual(e,101),l(this),this.callback=null;const o="raw"===this.responseHeaders?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(s,null,null,{headers:o,socket:i,opaque:r,context:n})}onError(e){const{callback:t,opaque:i}=this;l(this),t&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:i})})))}}e.exports=function e(t,i){if(void 0===i)return new Promise(((i,s)=>{e.call(this,t,((e,t)=>e?s(e):i(t)))}));try{const e=new A(t,i);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},e)}catch(e){if("function"!=typeof i)throw e;const s=t&&t.opaque;queueMicrotask((()=>i(e,{opaque:s})))}}},24649:(e,t,i)=>{"use strict";e.exports.request=i(69250),e.exports.stream=i(19420),e.exports.pipeline=i(90496),e.exports.upgrade=i(59168),e.exports.connect=i(59280)},66972:(e,t,i)=>{"use strict";const s=i(39491),{Readable:r}=i(12781),{RequestAbortedError:n,NotSupportedError:o,InvalidArgumentError:a}=i(14269),c=i(38446),{ReadableStreamFrom:l,toUSVString:p}=i(38446);let A;const u=Symbol("kConsume"),d=Symbol("kReading"),h=Symbol("kBody"),m=Symbol("abort"),g=Symbol("kContentType"),f=()=>{};async function E(e,t){if(function(e){return c.isDisturbed(e)||function(e){return e[h]&&!0===e[h].locked||e[u]}(e)}(e))throw new TypeError("unusable");return s(!e[u]),new Promise(((i,s)=>{e[u]={type:t,stream:e,resolve:i,reject:s,length:0,body:[]},e.on("error",(function(e){I(this[u],e)})).on("close",(function(){null!==this[u].body&&I(this[u],new n)})),process.nextTick(C,e[u])}))}function C(e){if(null===e.body)return;const{_readableState:t}=e.stream;for(const i of t.buffer)v(e,i);for(t.endEmitted?y(this[u]):e.stream.on("end",(function(){y(this[u])})),e.stream.resume();null!=e.stream.read(););}function y(e){const{type:t,body:s,resolve:r,stream:n,length:o}=e;try{if("text"===t)r(p(Buffer.concat(s)));else if("json"===t)r(JSON.parse(Buffer.concat(s)));else if("arrayBuffer"===t){const e=new Uint8Array(o);let t=0;for(const i of s)e.set(i,t),t+=i.byteLength;r(e.buffer)}else"blob"===t&&(A||(A=i(14300).Blob),r(new A(s,{type:n[g]})));I(e)}catch(e){n.destroy(e)}}function v(e,t){e.length+=t.length,e.body.push(t)}function I(e,t){null!==e.body&&(t?e.reject(t):e.resolve(),e.type=null,e.stream=null,e.resolve=null,e.reject=null,e.length=0,e.body=null)}e.exports=class extends r{constructor({resume:e,abort:t,contentType:i="",highWaterMark:s=65536}){super({autoDestroy:!0,read:e,highWaterMark:s}),this._readableState.dataEmitted=!1,this[m]=t,this[u]=null,this[h]=null,this[g]=i,this[d]=!1}destroy(e){return this.destroyed?this:(e||this._readableState.endEmitted||(e=new n),e&&this[m](),super.destroy(e))}emit(e,...t){return"data"===e?this._readableState.dataEmitted=!0:"error"===e&&(this._readableState.errorEmitted=!0),super.emit(e,...t)}on(e,...t){return"data"!==e&&"readable"!==e||(this[d]=!0),super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const i=super.off(e,...t);return"data"!==e&&"readable"!==e||(this[d]=this.listenerCount("data")>0||this.listenerCount("readable")>0),i}removeListener(e,...t){return this.off(e,...t)}push(e){return this[u]&&null!==e&&0===this.readableLength?(v(this[u],e),!this[d]||super.push(e)):super.push(e)}async text(){return E(this,"text")}async json(){return E(this,"json")}async blob(){return E(this,"blob")}async arrayBuffer(){return E(this,"arrayBuffer")}async formData(){throw new o}get bodyUsed(){return c.isDisturbed(this)}get body(){return this[h]||(this[h]=l(this),this[u]&&(this[h].getReader(),s(this[h].locked))),this[h]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const i=e&&e.signal;if(i)try{if("object"!=typeof i||!("aborted"in i))throw new a("signal must be an AbortSignal");c.throwIfAborted(i)}catch(e){return Promise.reject(e)}return this.closed?Promise.resolve(null):new Promise(((e,s)=>{const r=i?c.addAbortListener(i,(()=>{this.destroy()})):f;this.on("close",(function(){r(),i&&i.aborted?s(i.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"})):e(null)})).on("error",f).on("data",(function(e){t-=e.length,t<=0&&this.destroy()})).resume()}))}}},93390:(e,t,i)=>{const s=i(39491),{ResponseStatusCodeError:r}=i(14269),{toUSVString:n}=i(38446);e.exports={getResolveErrorBodyCallback:async function({callback:e,body:t,contentType:i,statusCode:o,statusMessage:a,headers:c}){s(t);let l=[],p=0;for await(const e of t)if(l.push(e),p+=e.length,p>131072){l=null;break}if(204!==o&&i&&l){try{if(i.startsWith("application/json")){const t=JSON.parse(n(Buffer.concat(l)));return void process.nextTick(e,new r(`Response status code ${o}${a?`: ${a}`:""}`,o,c,t))}if(i.startsWith("text/")){const t=n(Buffer.concat(l));return void process.nextTick(e,new r(`Response status code ${o}${a?`: ${a}`:""}`,o,c,t))}}catch(e){}process.nextTick(e,new r(`Response status code ${o}${a?`: ${a}`:""}`,o,c))}else process.nextTick(e,new r(`Response status code ${o}${a?`: ${a}`:""}`,o,c))}}},99963:(e,t,i)=>{"use strict";const{BalancedPoolMissingUpstreamError:s,InvalidArgumentError:r}=i(14269),{PoolBase:n,kClients:o,kNeedDrain:a,kAddClient:c,kRemoveClient:l,kGetDispatcher:p}=i(35443),A=i(34884),{kUrl:u,kInterceptors:d}=i(84199),{parseOrigin:h}=i(38446),m=Symbol("factory"),g=Symbol("options"),f=Symbol("kGreatestCommonDivisor"),E=Symbol("kCurrentWeight"),C=Symbol("kIndex"),y=Symbol("kWeight"),v=Symbol("kMaxWeightPerServer"),I=Symbol("kErrorPenalty");function B(e,t){return 0===t?e:B(t,e%t)}function w(e,t){return new A(e,t)}e.exports=class extends n{constructor(e=[],{factory:t=w,...i}={}){if(super(),this[g]=i,this[C]=-1,this[E]=0,this[v]=this[g].maxWeightPerServer||100,this[I]=this[g].errorPenalty||15,Array.isArray(e)||(e=[e]),"function"!=typeof t)throw new r("factory must be a function.");this[d]=i.interceptors&&i.interceptors.BalancedPool&&Array.isArray(i.interceptors.BalancedPool)?i.interceptors.BalancedPool:[],this[m]=t;for(const t of e)this.addUpstream(t);this._updateBalancedPoolStats()}addUpstream(e){const t=h(e).origin;if(this[o].find((e=>e[u].origin===t&&!0!==e.closed&&!0!==e.destroyed)))return this;const i=this[m](t,Object.assign({},this[g]));this[c](i),i.on("connect",(()=>{i[y]=Math.min(this[v],i[y]+this[I])})),i.on("connectionError",(()=>{i[y]=Math.max(1,i[y]-this[I]),this._updateBalancedPoolStats()})),i.on("disconnect",((...e)=>{const t=e[2];t&&"UND_ERR_SOCKET"===t.code&&(i[y]=Math.max(1,i[y]-this[I]),this._updateBalancedPoolStats())}));for(const e of this[o])e[y]=this[v];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){this[f]=this[o].map((e=>e[y])).reduce(B,0)}removeUpstream(e){const t=h(e).origin,i=this[o].find((e=>e[u].origin===t&&!0!==e.closed&&!0!==e.destroyed));return i&&this[l](i),this}get upstreams(){return this[o].filter((e=>!0!==e.closed&&!0!==e.destroyed)).map((e=>e[u].origin))}[p](){if(0===this[o].length)throw new s;if(!this[o].find((e=>!e[a]&&!0!==e.closed&&!0!==e.destroyed)))return;if(this[o].map((e=>e[a])).reduce(((e,t)=>e&&t),!0))return;let e=0,t=this[o].findIndex((e=>!e[a]));for(;e++this[o][t][y]&&!e[a]&&(t=this[C]),0===this[C]&&(this[E]=this[E]-this[f],this[E]<=0&&(this[E]=this[v])),e[y]>=this[E]&&!e[a])return e}return this[E]=this[o][t][y],this[C]=t,this[o][t]}}},54940:(e,t,i)=>{"use strict";const{kConstruct:s}=i(14872),{urlEquals:r,fieldValues:n}=i(76544),{kEnumerableProperty:o,isDisturbed:a}=i(38446),{kHeadersList:c}=i(84199),{webidl:l}=i(51877),{Response:p,cloneResponse:A}=i(77012),{Request:u}=i(38766),{kState:d,kHeaders:h,kGuard:m,kRealm:g}=i(59082),{fetching:f}=i(71973),{urlIsHttpHttpsScheme:E,createDeferredPromise:C,readAllBytes:y}=i(29479),v=i(39491),{getGlobalDispatcher:I}=i(1081);class B{#e;constructor(){arguments[0]!==s&&l.illegalConstructor(),this.#e=arguments[1]}async match(e,t={}){l.brandCheck(this,B),l.argumentLengthCheck(arguments,1,{header:"Cache.match"}),e=l.converters.RequestInfo(e),t=l.converters.CacheQueryOptions(t);const i=await this.matchAll(e,t);if(0!==i.length)return i[0]}async matchAll(e=void 0,t={}){l.brandCheck(this,B),void 0!==e&&(e=l.converters.RequestInfo(e)),t=l.converters.CacheQueryOptions(t);let i=null;if(void 0!==e)if(e instanceof u){if(i=e[d],"GET"!==i.method&&!t.ignoreMethod)return[]}else"string"==typeof e&&(i=new u(e)[d]);const s=[];if(void 0===e)for(const e of this.#e)s.push(e[1]);else{const e=this.#t(i,t);for(const t of e)s.push(t[1])}const r=[];for(const e of s){const t=new p(e.body?.source??null),i=t[d].body;t[d]=e,t[d].body=i,t[h][c]=e.headersList,t[h][m]="immutable",r.push(t)}return Object.freeze(r)}async add(e){l.brandCheck(this,B),l.argumentLengthCheck(arguments,1,{header:"Cache.add"});const t=[e=l.converters.RequestInfo(e)],i=this.addAll(t);return await i}async addAll(e){l.brandCheck(this,B),l.argumentLengthCheck(arguments,1,{header:"Cache.addAll"}),e=l.converters["sequence"](e);const t=[],i=[];for(const t of e){if("string"==typeof t)continue;const e=t[d];if(!E(e.url)||"GET"!==e.method)throw l.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}const s=[];for(const r of e){const e=new u(r)[d];if(!E(e.url))throw l.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."});e.initiator="fetch",e.destination="subresource",i.push(e);const o=C();s.push(f({request:e,dispatcher:I(),processResponse(e){if("error"===e.type||206===e.status||e.status<200||e.status>299)o.reject(l.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(e.headersList.contains("vary")){const t=n(e.headersList.get("vary"));for(const e of t)if("*"===e){o.reject(l.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of s)e.abort();return}}},processResponseEndOfBody(e){e.aborted?o.reject(new DOMException("aborted","AbortError")):o.resolve(e)}})),t.push(o.promise)}const r=Promise.all(t),o=await r,a=[];let c=0;for(const e of o){const t={type:"put",request:i[c],response:e};a.push(t),c++}const p=C();let A=null;try{this.#i(a)}catch(e){A=e}return queueMicrotask((()=>{null===A?p.resolve(void 0):p.reject(A)})),p.promise}async put(e,t){l.brandCheck(this,B),l.argumentLengthCheck(arguments,2,{header:"Cache.put"}),e=l.converters.RequestInfo(e),t=l.converters.Response(t);let i=null;if(i=e instanceof u?e[d]:new u(e)[d],!E(i.url)||"GET"!==i.method)throw l.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"});const s=t[d];if(206===s.status)throw l.errors.exception({header:"Cache.put",message:"Got 206 status"});if(s.headersList.contains("vary")){const e=n(s.headersList.get("vary"));for(const t of e)if("*"===t)throw l.errors.exception({header:"Cache.put",message:"Got * vary field value"})}if(s.body&&(a(s.body.stream)||s.body.stream.locked))throw l.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"});const r=A(s),o=C();if(null!=s.body){const e=s.body.stream.getReader();y(e).then(o.resolve,o.reject)}else o.resolve(void 0);const c=[],p={type:"put",request:i,response:r};c.push(p);const h=await o.promise;null!=r.body&&(r.body.source=h);const m=C();let g=null;try{this.#i(c)}catch(e){g=e}return queueMicrotask((()=>{null===g?m.resolve():m.reject(g)})),m.promise}async delete(e,t={}){l.brandCheck(this,B),l.argumentLengthCheck(arguments,1,{header:"Cache.delete"}),e=l.converters.RequestInfo(e),t=l.converters.CacheQueryOptions(t);let i=null;if(e instanceof u){if(i=e[d],"GET"!==i.method&&!t.ignoreMethod)return!1}else v("string"==typeof e),i=new u(e)[d];const s=[],r={type:"delete",request:i,options:t};s.push(r);const n=C();let o,a=null;try{o=this.#i(s)}catch(e){a=e}return queueMicrotask((()=>{null===a?n.resolve(!!o?.length):n.reject(a)})),n.promise}async keys(e=void 0,t={}){l.brandCheck(this,B),void 0!==e&&(e=l.converters.RequestInfo(e)),t=l.converters.CacheQueryOptions(t);let i=null;if(void 0!==e)if(e instanceof u){if(i=e[d],"GET"!==i.method&&!t.ignoreMethod)return[]}else"string"==typeof e&&(i=new u(e)[d]);const s=C(),r=[];if(void 0===e)for(const e of this.#e)r.push(e[0]);else{const e=this.#t(i,t);for(const t of e)r.push(t[0])}return queueMicrotask((()=>{const e=[];for(const t of r){const i=new u("https://a");i[d]=t,i[h][c]=t.headersList,i[h][m]="immutable",i[g]=t.client,e.push(i)}s.resolve(Object.freeze(e))})),s.promise}#i(e){const t=this.#e,i=[...t],s=[],r=[];try{for(const i of e){if("delete"!==i.type&&"put"!==i.type)throw l.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if("delete"===i.type&&null!=i.response)throw l.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#t(i.request,i.options,s).length)throw new DOMException("???","InvalidStateError");let e;if("delete"===i.type){if(e=this.#t(i.request,i.options),0===e.length)return[];for(const i of e){const e=t.indexOf(i);v(-1!==e),t.splice(e,1)}}else if("put"===i.type){if(null==i.response)throw l.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});const r=i.request;if(!E(r.url))throw l.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if("GET"!==r.method)throw l.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(null!=i.options)throw l.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});e=this.#t(i.request);for(const i of e){const e=t.indexOf(i);v(-1!==e),t.splice(e,1)}t.push([i.request,i.response]),s.push([i.request,i.response])}r.push([i.request,i.response])}return r}catch(e){throw this.#e.length=0,this.#e=i,e}}#t(e,t,i){const s=[],r=i??this.#e;for(const i of r){const[r,n]=i;this.#s(e,r,n,t)&&s.push(i)}return s}#s(e,t,i=null,s){const o=new URL(e.url),a=new URL(t.url);if(s?.ignoreSearch&&(a.search="",o.search=""),!r(o,a,!0))return!1;if(null==i||s?.ignoreVary||!i.headersList.contains("vary"))return!0;const c=n(i.headersList.get("vary"));for(const i of c){if("*"===i)return!1;if(t.headersList.get(i)!==e.headersList.get(i))return!1}return!0}}Object.defineProperties(B.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:o,matchAll:o,add:o,addAll:o,put:o,delete:o,keys:o});const w=[{key:"ignoreSearch",converter:l.converters.boolean,defaultValue:!1},{key:"ignoreMethod",converter:l.converters.boolean,defaultValue:!1},{key:"ignoreVary",converter:l.converters.boolean,defaultValue:!1}];l.converters.CacheQueryOptions=l.dictionaryConverter(w),l.converters.MultiCacheQueryOptions=l.dictionaryConverter([...w,{key:"cacheName",converter:l.converters.DOMString}]),l.converters.Response=l.interfaceConverter(p),l.converters["sequence"]=l.sequenceConverter(l.converters.RequestInfo),e.exports={Cache:B}},82514:(e,t,i)=>{"use strict";const{kConstruct:s}=i(14872),{Cache:r}=i(54940),{webidl:n}=i(51877),{kEnumerableProperty:o}=i(38446);class a{#r=new Map;constructor(){arguments[0]!==s&&n.illegalConstructor()}async match(e,t={}){if(n.brandCheck(this,a),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"}),e=n.converters.RequestInfo(e),null!=(t=n.converters.MultiCacheQueryOptions(t)).cacheName){if(this.#r.has(t.cacheName)){const i=this.#r.get(t.cacheName),n=new r(s,i);return await n.match(e,t)}}else for(const i of this.#r.values()){const n=new r(s,i),o=await n.match(e,t);if(void 0!==o)return o}}async has(e){return n.brandCheck(this,a),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"}),e=n.converters.DOMString(e),this.#r.has(e)}async open(e){if(n.brandCheck(this,a),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"}),e=n.converters.DOMString(e),this.#r.has(e)){const t=this.#r.get(e);return new r(s,t)}const t=[];return this.#r.set(e,t),new r(s,t)}async delete(e){return n.brandCheck(this,a),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"}),e=n.converters.DOMString(e),this.#r.delete(e)}async keys(){return n.brandCheck(this,a),[...this.#r.keys()]}}Object.defineProperties(a.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:o,has:o,open:o,delete:o,keys:o}),e.exports={CacheStorage:a}},14872:(e,t,i)=>{"use strict";e.exports={kConstruct:i(84199).kConstruct}},76544:(e,t,i)=>{"use strict";const s=i(39491),{URLSerializer:r}=i(12790),{isValidHeaderName:n}=i(29479);e.exports={urlEquals:function(e,t,i=!1){return r(e,i)===r(t,i)},fieldValues:function(e){s(null!==e);const t=[];for(let i of e.split(","))i=i.trim(),i.length&&n(i)&&t.push(i);return t}}},21330:(e,t,i)=>{"use strict";const s=i(39491),r=i(41808),n=i(13685),{pipeline:o}=i(12781),a=i(38446),c=i(13196),l=i(80120),p=i(56479),{RequestContentLengthMismatchError:A,ResponseContentLengthMismatchError:u,InvalidArgumentError:d,RequestAbortedError:h,HeadersTimeoutError:m,HeadersOverflowError:g,SocketError:f,InformationalError:E,BodyTimeoutError:C,HTTPParserError:y,ResponseExceededMaxSizeError:v,ClientDestroyedError:I}=i(14269),B=i(34413),{kUrl:w,kReset:b,kServerName:Q,kClient:x,kBusy:k,kParser:D,kConnect:S,kBlocking:_,kResuming:R,kRunning:T,kPending:F,kSize:N,kWriting:L,kQueue:O,kConnected:M,kConnecting:U,kNeedDrain:P,kNoRef:G,kKeepAliveDefaultTimeout:V,kHostHeader:j,kPendingIdx:H,kRunningIdx:J,kError:q,kPipelining:Y,kSocket:W,kKeepAliveTimeoutValue:z,kMaxHeadersSize:$,kKeepAliveMaxTimeout:X,kKeepAliveTimeoutThreshold:K,kHeadersTimeout:Z,kBodyTimeout:ee,kStrictContentLength:te,kConnector:ie,kMaxRedirections:se,kMaxRequests:re,kCounter:ne,kClose:oe,kDestroy:ae,kDispatch:ce,kInterceptors:le,kLocalAddress:pe,kMaxResponseSize:Ae,kHTTPConnVersion:ue,kHost:de,kHTTP2Session:he,kHTTP2SessionState:me,kHTTP2BuildRequest:ge,kHTTP2CopyHeaders:fe,kHTTP1BuildRequest:Ee}=i(84199);let Ce;try{Ce=i(85158)}catch{Ce={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:ye,HTTP2_HEADER_METHOD:ve,HTTP2_HEADER_PATH:Ie,HTTP2_HEADER_SCHEME:Be,HTTP2_HEADER_CONTENT_LENGTH:we,HTTP2_HEADER_EXPECT:be,HTTP2_HEADER_STATUS:Qe}}=Ce;let xe=!1;const ke=Buffer[Symbol.species],De=Symbol("kClosedResolve"),Se={};try{const e=i(67643);Se.sendHeaders=e.channel("undici:client:sendHeaders"),Se.beforeConnect=e.channel("undici:client:beforeConnect"),Se.connectError=e.channel("undici:client:connectError"),Se.connected=e.channel("undici:client:connected")}catch{Se.sendHeaders={hasSubscribers:!1},Se.beforeConnect={hasSubscribers:!1},Se.connectError={hasSubscribers:!1},Se.connected={hasSubscribers:!1}}function _e(e){s("ERR_TLS_CERT_ALTNAME_INVALID"!==e.code),this[W][q]=e,$e(this[x],e)}function Re(e,t,i){const s=new E(`HTTP/2: "frameError" received - type ${e}, code ${t}`);0===i&&(this[W][q]=s,$e(this[x],s))}function Te(){a.destroy(this,new f("other side closed")),a.destroy(this[W],new f("other side closed"))}function Fe(e){const t=this[x],i=new E(`HTTP/2: "GOAWAY" frame received with code ${e}`);if(t[W]=null,t[he]=null,t.destroyed){s(0===this[F]);const e=t[O].splice(t[J]);for(let t=0;t0){const e=t[O][t[J]];t[O][t[J]++]=null,ct(t,e,i)}t[H]=t[J],s(0===t[T]),t.emit("disconnect",t[w],[t],i),tt(t)}const Ne=i(90115),Le=i(93421),Oe=Buffer.alloc(0);let Me=null,Ue=async function(){const e=process.env.JEST_WORKER_ID?i(99072):void 0;let t;try{t=await WebAssembly.compile(Buffer.from(i(37954),"base64"))}catch(s){t=await WebAssembly.compile(Buffer.from(e||i(99072),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,i)=>0,wasm_on_status:(e,t,i)=>{s.strictEqual(Pe.ptr,e);const r=t-je+Ge.byteOffset;return Pe.onStatus(new ke(Ge.buffer,r,i))||0},wasm_on_message_begin:e=>(s.strictEqual(Pe.ptr,e),Pe.onMessageBegin()||0),wasm_on_header_field:(e,t,i)=>{s.strictEqual(Pe.ptr,e);const r=t-je+Ge.byteOffset;return Pe.onHeaderField(new ke(Ge.buffer,r,i))||0},wasm_on_header_value:(e,t,i)=>{s.strictEqual(Pe.ptr,e);const r=t-je+Ge.byteOffset;return Pe.onHeaderValue(new ke(Ge.buffer,r,i))||0},wasm_on_headers_complete:(e,t,i,r)=>(s.strictEqual(Pe.ptr,e),Pe.onHeadersComplete(t,Boolean(i),Boolean(r))||0),wasm_on_body:(e,t,i)=>{s.strictEqual(Pe.ptr,e);const r=t-je+Ge.byteOffset;return Pe.onBody(new ke(Ge.buffer,r,i))||0},wasm_on_message_complete:e=>(s.strictEqual(Pe.ptr,e),Pe.onMessageComplete()||0)}})}();Ue.catch();let Pe=null,Ge=null,Ve=0,je=null;const He=1,Je=3;class qe{constructor(e,t,{exports:i}){s(Number.isFinite(e[$])&&e[$]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(Ne.TYPE.RESPONSE),this.client=e,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[$],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[Ae]}setTimeout(e,t){this.timeoutType=t,e!==this.timeoutValue?(c.clearTimeout(this.timeout),e?(this.timeout=c.setTimeout(Ye,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){!this.socket.destroyed&&this.paused&&(s(null!=this.ptr),s(null==Pe),this.llhttp.llhttp_resume(this.ptr),s(2===this.timeoutType),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||Oe),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){const e=this.socket.read();if(null===e)break;this.execute(e)}}execute(e){s(null!=this.ptr),s(null==Pe),s(!this.paused);const{socket:t,llhttp:i}=this;e.length>Ve&&(je&&i.free(je),Ve=4096*Math.ceil(e.length/4096),je=i.malloc(Ve)),new Uint8Array(i.memory.buffer,je,Ve).set(e);try{let s;try{Ge=e,Pe=this,s=i.llhttp_execute(this.ptr,je,e.length)}catch(e){throw e}finally{Pe=null,Ge=null}const r=i.llhttp_get_error_pos(this.ptr)-je;if(s===Ne.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(r));else if(s===Ne.ERROR.PAUSED)this.paused=!0,t.unshift(e.slice(r));else if(s!==Ne.ERROR.OK){const t=i.llhttp_get_error_reason(this.ptr);let n="";if(t){const e=new Uint8Array(i.memory.buffer,t).indexOf(0);n="Response does not match the HTTP/1.1 protocol ("+Buffer.from(i.memory.buffer,t,e).toString()+")"}throw new y(n,Ne.ERROR[s],e.slice(r))}}catch(e){a.destroy(t,e)}}destroy(){s(null!=this.ptr),s(null==Pe),this.llhttp.llhttp_free(this.ptr),this.ptr=null,c.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;return e.destroyed?-1:t[O][t[J]]?void 0:-1}onHeaderField(e){const t=this.headers.length;0==(1&t)?this.headers.push(e):this.headers[t-1]=Buffer.concat([this.headers[t-1],e]),this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;1==(1&t)?(this.headers.push(e),t+=1):this.headers[t-1]=Buffer.concat([this.headers[t-1],e]);const i=this.headers[t-2];10===i.length&&"keep-alive"===i.toString().toLowerCase()?this.keepAlive+=e.toString():10===i.length&&"connection"===i.toString().toLowerCase()?this.connection+=e.toString():14===i.length&&"content-length"===i.toString().toLowerCase()&&(this.contentLength+=e.toString()),this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&a.destroy(this.socket,new g)}onUpgrade(e){const{upgrade:t,client:i,socket:r,headers:n,statusCode:o}=this;s(t);const c=i[O][i[J]];s(c),s(!r.destroyed),s(r===i[W]),s(!this.paused),s(c.upgrade||"CONNECT"===c.method),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,s(this.headers.length%2==0),this.headers=[],this.headersSize=0,r.unshift(e),r[D].destroy(),r[D]=null,r[x]=null,r[q]=null,r.removeListener("error",ze).removeListener("readable",We).removeListener("end",Xe).removeListener("close",Ke),i[W]=null,i[O][i[J]++]=null,i.emit("disconnect",i[w],[i],new E("upgrade"));try{c.onUpgrade(o,n,r)}catch(e){a.destroy(r,e)}tt(i)}onHeadersComplete(e,t,i){const{client:r,socket:n,headers:o,statusText:c}=this;if(n.destroyed)return-1;const l=r[O][r[J]];if(!l)return-1;if(s(!this.upgrade),s(this.statusCode<200),100===e)return a.destroy(n,new f("bad response",a.getSocketInfo(n))),-1;if(t&&!l.upgrade)return a.destroy(n,new f("bad upgrade",a.getSocketInfo(n))),-1;if(s.strictEqual(this.timeoutType,He),this.statusCode=e,this.shouldKeepAlive=i||"HEAD"===l.method&&!n[b]&&"keep-alive"===this.connection.toLowerCase(),this.statusCode>=200){const e=null!=l.bodyTimeout?l.bodyTimeout:r[ee];this.setTimeout(e,2)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if("CONNECT"===l.method)return s(1===r[T]),this.upgrade=!0,2;if(t)return s(1===r[T]),this.upgrade=!0,2;if(s(this.headers.length%2==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&r[Y]){const e=this.keepAlive?a.parseKeepAliveTimeout(this.keepAlive):null;if(null!=e){const t=Math.min(e-r[K],r[X]);t<=0?n[b]=!0:r[z]=t}else r[z]=r[V]}else n[b]=!0;const p=!1===l.onHeaders(e,o,this.resume,c);return l.aborted?-1:"HEAD"===l.method||e<200?1:(n[_]&&(n[_]=!1,tt(r)),p?Ne.ERROR.PAUSED:0)}onBody(e){const{client:t,socket:i,statusCode:r,maxResponseSize:n}=this;if(i.destroyed)return-1;const o=t[O][t[J]];return s(o),s.strictEqual(this.timeoutType,2),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),s(r>=200),n>-1&&this.bytesRead+e.length>n?(a.destroy(i,new v),-1):(this.bytesRead+=e.length,!1===o.onData(e)?Ne.ERROR.PAUSED:void 0)}onMessageComplete(){const{client:e,socket:t,statusCode:i,upgrade:r,headers:n,contentLength:o,bytesRead:c,shouldKeepAlive:l}=this;if(t.destroyed&&(!i||l))return-1;if(r)return;const p=e[O][e[J]];return s(p),s(i>=100),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",s(this.headers.length%2==0),this.headers=[],this.headersSize=0,i<200?void 0:"HEAD"!==p.method&&o&&c!==parseInt(o,10)?(a.destroy(t,new u),-1):(p.onComplete(n),e[O][e[J]++]=null,t[L]?(s.strictEqual(e[T],0),a.destroy(t,new E("reset")),Ne.ERROR.PAUSED):l?t[b]&&0===e[T]?(a.destroy(t,new E("reset")),Ne.ERROR.PAUSED):void(1===e[Y]?setImmediate(tt,e):tt(e)):(a.destroy(t,new E("reset")),Ne.ERROR.PAUSED))}}function Ye(e){const{socket:t,timeoutType:i,client:r}=e;i===He?(!t[L]||t.writableNeedDrain||r[T]>1)&&(s(!e.paused,"cannot be paused while waiting for headers"),a.destroy(t,new m)):2===i?e.paused||a.destroy(t,new C):i===Je&&(s(0===r[T]&&r[z]),a.destroy(t,new E("socket idle timeout")))}function We(){const{[D]:e}=this;e&&e.readMore()}function ze(e){const{[x]:t,[D]:i}=this;s("ERR_TLS_CERT_ALTNAME_INVALID"!==e.code),"h2"===t[ue]||"ECONNRESET"!==e.code||!i.statusCode||i.shouldKeepAlive?(this[q]=e,$e(this[x],e)):i.onMessageComplete()}function $e(e,t){if(0===e[T]&&"UND_ERR_INFO"!==t.code&&"UND_ERR_SOCKET"!==t.code){s(e[H]===e[J]);const i=e[O].splice(e[J]);for(let s=0;s0&&"UND_ERR_INFO"!==i.code){const t=e[O][e[J]];e[O][e[J]++]=null,ct(e,t,i)}e[H]=e[J],s(0===e[T]),e.emit("disconnect",e[w],[e],i),tt(e)}async function Ze(e){s(!e[U]),s(!e[W]);let{host:t,hostname:i,protocol:n,port:o}=e[w];if("["===i[0]){const e=i.indexOf("]");s(-1!==e);const t=i.substring(1,e);s(r.isIP(t)),i=t}e[U]=!0,Se.beforeConnect.hasSubscribers&&Se.beforeConnect.publish({connectParams:{host:t,hostname:i,protocol:n,port:o,servername:e[Q],localAddress:e[pe]},connector:e[ie]});try{const r=await new Promise(((s,r)=>{e[ie]({host:t,hostname:i,protocol:n,port:o,servername:e[Q],localAddress:e[pe]},((e,t)=>{e?r(e):s(t)}))}));if(e.destroyed)return void a.destroy(r.on("error",(()=>{})),new I);if(e[U]=!1,s(r),"h2"===r.alpnProtocol){xe||(xe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));const t=Ce.connect(e[w],{createConnection:()=>r,peerMaxConcurrentStreams:e[me].maxConcurrentStreams});e[ue]="h2",t[x]=e,t[W]=r,t.on("error",_e),t.on("frameError",Re),t.on("end",Te),t.on("goaway",Fe),t.on("close",Ke),t.unref(),e[he]=t,r[he]=t}else Me||(Me=await Ue,Ue=null),r[G]=!1,r[L]=!1,r[b]=!1,r[_]=!1,r[D]=new qe(e,r,Me);r[ne]=0,r[re]=e[re],r[x]=e,r[q]=null,r.on("error",ze).on("readable",We).on("end",Xe).on("close",Ke),e[W]=r,Se.connected.hasSubscribers&&Se.connected.publish({connectParams:{host:t,hostname:i,protocol:n,port:o,servername:e[Q],localAddress:e[pe]},connector:e[ie],socket:r}),e.emit("connect",e[w],[e])}catch(r){if(e.destroyed)return;if(e[U]=!1,Se.connectError.hasSubscribers&&Se.connectError.publish({connectParams:{host:t,hostname:i,protocol:n,port:o,servername:e[Q],localAddress:e[pe]},connector:e[ie],error:r}),"ERR_TLS_CERT_ALTNAME_INVALID"===r.code)for(s(0===e[T]);e[F]>0&&e[O][e[H]].servername===e[Q];){const t=e[O][e[H]++];ct(e,t,r)}else $e(e,r);e.emit("connectionError",e[w],[e],r)}tt(e)}function et(e){e[P]=0,e.emit("drain",e[w],[e])}function tt(e,t){2!==e[R]&&(e[R]=2,function(e,t){for(;;){if(e.destroyed)return void s(0===e[F]);if(e[De]&&!e[N])return e[De](),void(e[De]=null);const i=e[W];if(i&&!i.destroyed&&"h2"!==i.alpnProtocol)if(0===e[N]?!i[G]&&i.unref&&(i.unref(),i[G]=!0):i[G]&&i.ref&&(i.ref(),i[G]=!1),0===e[N])i[D].timeoutType!==Je&&i[D].setTimeout(e[z],Je);else if(e[T]>0&&i[D].statusCode<200&&i[D].timeoutType!==He){const t=e[O][e[J]],s=null!=t.headersTimeout?t.headersTimeout:e[Z];i[D].setTimeout(s,He)}if(e[k])e[P]=2;else if(2===e[P]){t?(e[P]=1,process.nextTick(et,e)):et(e);continue}if(0===e[F])return;if(e[T]>=(e[Y]||1))return;const r=e[O][e[H]];if("https:"===e[w].protocol&&e[Q]!==r.servername){if(e[T]>0)return;if(e[Q]=r.servername,i&&i.servername!==r.servername)return void a.destroy(i,new E("servername changed"))}if(e[U])return;if(!i&&!e[he])return void Ze(e);if(i.destroyed||i[L]||i[b]||i[_])return;if(e[T]>0&&!r.idempotent)return;if(e[T]>0&&(r.upgrade||"CONNECT"===r.method))return;if(e[T]>0&&0!==a.bodyLength(r.body)&&(a.isStream(r.body)||a.isAsyncIterable(r.body)))return;!r.aborted&&st(e,r)?e[H]++:e[O].splice(e[H],1)}}(e,t),e[R]=0,e[J]>256&&(e[O].splice(0,e[J]),e[H]-=e[J],e[J]=0))}function it(e){return"GET"!==e&&"HEAD"!==e&&"OPTIONS"!==e&&"TRACE"!==e&&"CONNECT"!==e}function st(e,t){if("h2"===e[ue])return void function(e,t,i){const{body:r,method:n,path:o,host:c,upgrade:p,expectContinue:u,signal:d,headers:m}=i;let g,f;if(g="string"==typeof m?l[fe](m.trim()):m,p)return ct(e,i,new Error("Upgrade not supported for H2")),!1;try{i.onConnect((t=>{i.aborted||i.completed||ct(e,i,t||new h)}))}catch(t){ct(e,i,t)}if(i.aborted)return!1;const C=e[me];if(g[ye]=c||e[de],g[ve]=n,"CONNECT"===n)return t.ref(),f=t.request(g,{endStream:!1,signal:d}),f.id&&!f.pending?(i.onUpgrade(null,null,f),++C.openStreams):f.once("ready",(()=>{i.onUpgrade(null,null,f),++C.openStreams})),f.once("close",(()=>{C.openStreams-=1,0===C.openStreams&&t.unref()})),!0;g[Ie]=o,g[Be]="https";const y="PUT"===n||"POST"===n||"PATCH"===n;r&&"function"==typeof r.read&&r.read(0);let v=a.bodyLength(r);if(null==v&&(v=i.contentLength),0!==v&&y||(v=null),it(n)&&v>0&&null!=i.contentLength&&i.contentLength!==v){if(e[te])return ct(e,i,new A),!1;process.emitWarning(new A)}null!=v&&(s(r,"no body must not have content length"),g[we]=`${v}`),t.ref();const I="GET"===n||"HEAD"===n;return u?(g[be]="100-continue",f=t.request(g,{endStream:I,signal:d}),f.once("continue",B)):(f=t.request(g,{endStream:I,signal:d}),B()),++C.openStreams,f.once("response",(e=>{const{[Qe]:t,...s}=e;!1===i.onHeaders(Number(t),s,f.resume.bind(f),"")&&f.pause()})),f.once("end",(()=>{i.onComplete([])})),f.on("data",(e=>{!1===i.onData(e)&&f.pause()})),f.once("close",(()=>{C.openStreams-=1,0===C.openStreams&&t.unref()})),f.once("error",(function(t){!e[he]||e[he].destroyed||this.closed||this.destroyed||(C.streams-=1,a.destroy(f,t))})),f.once("frameError",((t,s)=>{const r=new E(`HTTP/2: "frameError" received - type ${t}, code ${s}`);ct(e,i,r),!e[he]||e[he].destroyed||this.closed||this.destroyed||(C.streams-=1,a.destroy(f,r))})),!0;function B(){r?a.isBuffer(r)?(s(v===r.byteLength,"buffer body must have content length"),f.cork(),f.write(r),f.uncork(),f.end(),i.onBodySent(r),i.onRequestSent()):a.isBlobLike(r)?"function"==typeof r.stream?ot({client:e,request:i,contentLength:v,h2stream:f,expectsPayload:y,body:r.stream(),socket:e[W],header:""}):nt({body:r,client:e,request:i,contentLength:v,expectsPayload:y,h2stream:f,header:"",socket:e[W]}):a.isStream(r)?rt({body:r,client:e,request:i,contentLength:v,expectsPayload:y,socket:e[W],h2stream:f,header:""}):a.isIterable(r)?ot({body:r,client:e,request:i,contentLength:v,expectsPayload:y,header:"",h2stream:f,socket:e[W]}):s(!1):i.onRequestSent()}}(e,e[he],t);const{body:i,method:r,path:n,host:o,upgrade:c,headers:p,blocking:u,reset:d}=t,m="PUT"===r||"POST"===r||"PATCH"===r;i&&"function"==typeof i.read&&i.read(0);const g=a.bodyLength(i);let f=g;if(null===f&&(f=t.contentLength),0!==f||m||(f=null),it(r)&&f>0&&null!==t.contentLength&&t.contentLength!==f){if(e[te])return ct(e,t,new A),!1;process.emitWarning(new A)}const C=e[W];try{t.onConnect((i=>{t.aborted||t.completed||(ct(e,t,i||new h),a.destroy(C,new E("aborted")))}))}catch(i){ct(e,t,i)}if(t.aborted)return!1;"HEAD"===r&&(C[b]=!0),(c||"CONNECT"===r)&&(C[b]=!0),null!=d&&(C[b]=d),e[re]&&C[ne]++>=e[re]&&(C[b]=!0),u&&(C[_]=!0);let y=`${r} ${n} HTTP/1.1\r\n`;return y+="string"==typeof o?`host: ${o}\r\n`:e[j],c?y+=`connection: upgrade\r\nupgrade: ${c}\r\n`:e[Y]&&!C[b]?y+="connection: keep-alive\r\n":y+="connection: close\r\n",p&&(y+=p),Se.sendHeaders.hasSubscribers&&Se.sendHeaders.publish({request:t,headers:y,socket:C}),i&&0!==g?a.isBuffer(i)?(s(f===i.byteLength,"buffer body must have content length"),C.cork(),C.write(`${y}content-length: ${f}\r\n\r\n`,"latin1"),C.write(i),C.uncork(),t.onBodySent(i),t.onRequestSent(),m||(C[b]=!0)):a.isBlobLike(i)?"function"==typeof i.stream?ot({body:i.stream(),client:e,request:t,socket:C,contentLength:f,header:y,expectsPayload:m}):nt({body:i,client:e,request:t,socket:C,contentLength:f,header:y,expectsPayload:m}):a.isStream(i)?rt({body:i,client:e,request:t,socket:C,contentLength:f,header:y,expectsPayload:m}):a.isIterable(i)?ot({body:i,client:e,request:t,socket:C,contentLength:f,header:y,expectsPayload:m}):s(!1):(0===f?C.write(`${y}content-length: 0\r\n\r\n`,"latin1"):(s(null===f,"no body must not have content length"),C.write(`${y}\r\n`,"latin1")),t.onRequestSent()),!0}function rt({h2stream:e,body:t,client:i,request:r,socket:n,contentLength:c,header:l,expectsPayload:p}){if(s(0!==c||0===i[T],"stream body cannot be pipelined"),"h2"===i[ue]){const E=o(t,e,(i=>{i?(a.destroy(t,i),a.destroy(e,i)):r.onRequestSent()}));function C(e){r.onBodySent(e)}return E.on("data",C),void E.once("end",(()=>{E.removeListener("data",C),a.destroy(E)}))}let A=!1;const u=new at({socket:n,request:r,contentLength:c,client:i,expectsPayload:p,header:l}),d=function(e){if(!A)try{!u.write(e)&&this.pause&&this.pause()}catch(e){a.destroy(this,e)}},m=function(){A||t.resume&&t.resume()},g=function(){if(A)return;const e=new h;queueMicrotask((()=>f(e)))},f=function(e){if(!A){if(A=!0,s(n.destroyed||n[L]&&i[T]<=1),n.off("drain",m).off("error",f),t.removeListener("data",d).removeListener("end",f).removeListener("error",f).removeListener("close",g),!e)try{u.end()}catch(t){e=t}u.destroy(e),!e||"UND_ERR_INFO"===e.code&&"reset"===e.message?a.destroy(t):a.destroy(t,e)}};t.on("data",d).on("end",f).on("error",f).on("close",g),t.resume&&t.resume(),n.on("drain",m).on("error",f)}async function nt({h2stream:e,body:t,client:i,request:r,socket:n,contentLength:o,header:c,expectsPayload:l}){s(o===t.size,"blob body must have content length");const p="h2"===i[ue];try{if(null!=o&&o!==t.size)throw new A;const s=Buffer.from(await t.arrayBuffer());p?(e.cork(),e.write(s),e.uncork()):(n.cork(),n.write(`${c}content-length: ${o}\r\n\r\n`,"latin1"),n.write(s),n.uncork()),r.onBodySent(s),r.onRequestSent(),l||(n[b]=!0),tt(i)}catch(t){a.destroy(p?e:n,t)}}async function ot({h2stream:e,body:t,client:i,request:r,socket:n,contentLength:o,header:a,expectsPayload:c}){s(0!==o||0===i[T],"iterator body cannot be pipelined");let l=null;function p(){if(l){const e=l;l=null,e()}}const A=()=>new Promise(((e,t)=>{s(null===l),n[q]?t(n[q]):l=e}));if("h2"===i[ue]){e.on("close",p).on("drain",p);try{for await(const i of t){if(n[q])throw n[q];const t=e.write(i);r.onBodySent(i),t||await A()}}catch(t){e.destroy(t)}finally{r.onRequestSent(),e.end(),e.off("close",p).off("drain",p)}return}n.on("close",p).on("drain",p);const u=new at({socket:n,request:r,contentLength:o,client:i,expectsPayload:c,header:a});try{for await(const e of t){if(n[q])throw n[q];u.write(e)||await A()}u.end()}catch(e){u.destroy(e)}finally{n.off("close",p).off("drain",p)}}class at{constructor({socket:e,request:t,contentLength:i,client:s,expectsPayload:r,header:n}){this.socket=e,this.request=t,this.contentLength=i,this.client=s,this.bytesWritten=0,this.expectsPayload=r,this.header=n,e[L]=!0}write(e){const{socket:t,request:i,contentLength:s,client:r,bytesWritten:n,expectsPayload:o,header:a}=this;if(t[q])throw t[q];if(t.destroyed)return!1;const c=Buffer.byteLength(e);if(!c)return!0;if(null!==s&&n+c>s){if(r[te])throw new A;process.emitWarning(new A)}t.cork(),0===n&&(o||(t[b]=!0),null===s?t.write(`${a}transfer-encoding: chunked\r\n`,"latin1"):t.write(`${a}content-length: ${s}\r\n\r\n`,"latin1")),null===s&&t.write(`\r\n${c.toString(16)}\r\n`,"latin1"),this.bytesWritten+=c;const l=t.write(e);return t.uncork(),i.onBodySent(e),l||t[D].timeout&&t[D].timeoutType===He&&t[D].timeout.refresh&&t[D].timeout.refresh(),l}end(){const{socket:e,contentLength:t,client:i,bytesWritten:s,expectsPayload:r,header:n,request:o}=this;if(o.onRequestSent(),e[L]=!1,e[q])throw e[q];if(!e.destroyed){if(0===s?r?e.write(`${n}content-length: 0\r\n\r\n`,"latin1"):e.write(`${n}\r\n`,"latin1"):null===t&&e.write("\r\n0\r\n\r\n","latin1"),null!==t&&s!==t){if(i[te])throw new A;process.emitWarning(new A)}e[D].timeout&&e[D].timeoutType===He&&e[D].timeout.refresh&&e[D].timeout.refresh(),tt(i)}}destroy(e){const{socket:t,client:i}=this;t[L]=!1,e&&(s(i[T]<=1,"pipeline should only contain this request"),a.destroy(t,e))}}function ct(e,t,i){try{t.onError(i),s(t.aborted)}catch(i){e.emit("error",i)}}e.exports=class extends p{constructor(e,{interceptors:t,maxHeaderSize:i,headersTimeout:s,socketTimeout:o,requestTimeout:c,connectTimeout:l,bodyTimeout:p,idleTimeout:A,keepAlive:u,keepAliveTimeout:h,maxKeepAliveTimeout:m,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:f,socketPath:E,pipelining:C,tls:y,strictContentLength:v,maxCachedSessions:I,maxRedirections:b,connect:x,maxRequestsPerClient:k,localAddress:D,maxResponseSize:S,autoSelectFamily:_,autoSelectFamilyAttemptTimeout:T,allowH2:F,maxConcurrentStreams:N}={}){if(super(),void 0!==u)throw new d("unsupported keepAlive, use pipelining=0 instead");if(void 0!==o)throw new d("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==c)throw new d("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==A)throw new d("unsupported idleTimeout, use keepAliveTimeout instead");if(void 0!==m)throw new d("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(null!=i&&!Number.isFinite(i))throw new d("invalid maxHeaderSize");if(null!=E&&"string"!=typeof E)throw new d("invalid socketPath");if(null!=l&&(!Number.isFinite(l)||l<0))throw new d("invalid connectTimeout");if(null!=h&&(!Number.isFinite(h)||h<=0))throw new d("invalid keepAliveTimeout");if(null!=g&&(!Number.isFinite(g)||g<=0))throw new d("invalid keepAliveMaxTimeout");if(null!=f&&!Number.isFinite(f))throw new d("invalid keepAliveTimeoutThreshold");if(null!=s&&(!Number.isInteger(s)||s<0))throw new d("headersTimeout must be a positive integer or zero");if(null!=p&&(!Number.isInteger(p)||p<0))throw new d("bodyTimeout must be a positive integer or zero");if(null!=x&&"function"!=typeof x&&"object"!=typeof x)throw new d("connect must be a function or an object");if(null!=b&&(!Number.isInteger(b)||b<0))throw new d("maxRedirections must be a positive number");if(null!=k&&(!Number.isInteger(k)||k<0))throw new d("maxRequestsPerClient must be a positive number");if(null!=D&&("string"!=typeof D||0===r.isIP(D)))throw new d("localAddress must be valid string IP address");if(null!=S&&(!Number.isInteger(S)||S<-1))throw new d("maxResponseSize must be a positive number");if(null!=T&&(!Number.isInteger(T)||T<-1))throw new d("autoSelectFamilyAttemptTimeout must be a positive number");if(null!=F&&"boolean"!=typeof F)throw new d("allowH2 must be a valid boolean value");if(null!=N&&("number"!=typeof N||N<1))throw new d("maxConcurrentStreams must be a possitive integer, greater than 0");"function"!=typeof x&&(x=B({...y,maxCachedSessions:I,allowH2:F,socketPath:E,timeout:l,...a.nodeHasAutoSelectFamily&&_?{autoSelectFamily:_,autoSelectFamilyAttemptTimeout:T}:void 0,...x})),this[le]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Le({maxRedirections:b})],this[w]=a.parseOrigin(e),this[ie]=x,this[W]=null,this[Y]=null!=C?C:1,this[$]=i||n.maxHeaderSize,this[V]=null==h?4e3:h,this[X]=null==g?6e5:g,this[K]=null==f?1e3:f,this[z]=this[V],this[Q]=null,this[pe]=null!=D?D:null,this[R]=0,this[P]=0,this[j]=`host: ${this[w].hostname}${this[w].port?`:${this[w].port}`:""}\r\n`,this[ee]=null!=p?p:3e5,this[Z]=null!=s?s:3e5,this[te]=null==v||v,this[se]=b,this[re]=k,this[De]=null,this[Ae]=S>-1?S:-1,this[ue]="h1",this[he]=null,this[me]=F?{openStreams:0,maxConcurrentStreams:null!=N?N:100}:null,this[de]=`${this[w].hostname}${this[w].port?`:${this[w].port}`:""}`,this[O]=[],this[J]=0,this[H]=0}get pipelining(){return this[Y]}set pipelining(e){this[Y]=e,tt(this,!0)}get[F](){return this[O].length-this[H]}get[T](){return this[H]-this[J]}get[N](){return this[O].length-this[J]}get[M](){return!!this[W]&&!this[U]&&!this[W].destroyed}get[k](){const e=this[W];return e&&(e[b]||e[L]||e[_])||this[N]>=(this[Y]||1)||this[F]>0}[S](e){Ze(this),this.once("connect",e)}[ce](e,t){const i=e.origin||this[w].origin,s="h2"===this[ue]?l[ge](i,e,t):l[Ee](i,e,t);return this[O].push(s),this[R]||(null==a.bodyLength(s.body)&&a.isIterable(s.body)?(this[R]=1,process.nextTick(tt,this)):tt(this,!0)),this[R]&&2!==this[P]&&this[k]&&(this[P]=2),this[P]<2}async[oe](){return new Promise((e=>{this[N]?this[De]=e:e(null)}))}async[ae](e){return new Promise((t=>{const i=this[O].splice(this[H]);for(let t=0;t{this[De]&&(this[De](),this[De]=null),t()};null!=this[he]&&(a.destroy(this[he],e),this[he]=null,this[me]=null),this[W]?a.destroy(this[W].on("close",s),e):queueMicrotask(s),tt(this)}))}}},20590:(e,t,i)=>{"use strict";const{kConnected:s,kSize:r}=i(84199);class n{constructor(e){this.value=e}deref(){return 0===this.value[s]&&0===this.value[r]?void 0:this.value}}class o{constructor(e){this.finalizer=e}register(e,t){e.on&&e.on("disconnect",(()=>{0===e[s]&&0===e[r]&&this.finalizer(t)}))}}e.exports=function(){return process.env.NODE_V8_COVERAGE?{WeakRef:n,FinalizationRegistry:o}:{WeakRef:global.WeakRef||n,FinalizationRegistry:global.FinalizationRegistry||o}}},48514:e=>{"use strict";e.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}},11802:(e,t,i)=>{"use strict";const{parseSetCookie:s}=i(28779),{stringify:r,getHeadersList:n}=i(73626),{webidl:o}=i(51877),{Headers:a}=i(32567);function c(e,t){o.argumentLengthCheck(arguments,2,{header:"setCookie"}),o.brandCheck(e,a,{strict:!1}),t=o.converters.Cookie(t),r(t)&&e.append("Set-Cookie",r(t))}o.converters.DeleteCookieAttributes=o.dictionaryConverter([{converter:o.nullableConverter(o.converters.DOMString),key:"path",defaultValue:null},{converter:o.nullableConverter(o.converters.DOMString),key:"domain",defaultValue:null}]),o.converters.Cookie=o.dictionaryConverter([{converter:o.converters.DOMString,key:"name"},{converter:o.converters.DOMString,key:"value"},{converter:o.nullableConverter((e=>"number"==typeof e?o.converters["unsigned long long"](e):new Date(e))),key:"expires",defaultValue:null},{converter:o.nullableConverter(o.converters["long long"]),key:"maxAge",defaultValue:null},{converter:o.nullableConverter(o.converters.DOMString),key:"domain",defaultValue:null},{converter:o.nullableConverter(o.converters.DOMString),key:"path",defaultValue:null},{converter:o.nullableConverter(o.converters.boolean),key:"secure",defaultValue:null},{converter:o.nullableConverter(o.converters.boolean),key:"httpOnly",defaultValue:null},{converter:o.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:o.sequenceConverter(o.converters.DOMString),key:"unparsed",defaultValue:[]}]),e.exports={getCookies:function(e){o.argumentLengthCheck(arguments,1,{header:"getCookies"}),o.brandCheck(e,a,{strict:!1});const t=e.get("cookie"),i={};if(!t)return i;for(const e of t.split(";")){const[t,...s]=e.split("=");i[t.trim()]=s.join("=")}return i},deleteCookie:function(e,t,i){o.argumentLengthCheck(arguments,2,{header:"deleteCookie"}),o.brandCheck(e,a,{strict:!1}),t=o.converters.DOMString(t),i=o.converters.DeleteCookieAttributes(i),c(e,{name:t,value:"",expires:new Date(0),...i})},getSetCookies:function(e){o.argumentLengthCheck(arguments,1,{header:"getSetCookies"}),o.brandCheck(e,a,{strict:!1});const t=n(e).cookies;return t?t.map((e=>s(Array.isArray(e)?e[1]:e))):[]},setCookie:c}},28779:(e,t,i)=>{"use strict";const{maxNameValuePairSize:s,maxAttributeValueSize:r}=i(48514),{isCTLExcludingHtab:n}=i(73626),{collectASequenceOfCodePointsFast:o}=i(12790),a=i(39491);function c(e,t={}){if(0===e.length)return t;a(";"===e[0]);let i="";(e=e.slice(1)).includes(";")?(i=o(";",e,{position:0}),e=e.slice(i.length)):(i=e,e="");let s="",n="";if(i.includes("=")){const e={position:0};s=o("=",i,e),n=i.slice(e.position+1)}else s=i;if(s=s.trim(),n=n.trim(),n.length>r)return c(e,t);const l=s.toLowerCase();if("expires"===l){const e=new Date(n);t.expires=e}else if("max-age"===l){const i=n.charCodeAt(0);if((i<48||i>57)&&"-"!==n[0])return c(e,t);if(!/^\d+$/.test(n))return c(e,t);const s=Number(n);t.maxAge=s}else if("domain"===l){let e=n;"."===e[0]&&(e=e.slice(1)),e=e.toLowerCase(),t.domain=e}else if("path"===l){let e="";e=0===n.length||"/"!==n[0]?"/":n,t.path=e}else if("secure"===l)t.secure=!0;else if("httponly"===l)t.httpOnly=!0;else if("samesite"===l){let e="Default";const i=n.toLowerCase();i.includes("none")&&(e="None"),i.includes("strict")&&(e="Strict"),i.includes("lax")&&(e="Lax"),t.sameSite=e}else t.unparsed??=[],t.unparsed.push(`${s}=${n}`);return c(e,t)}e.exports={parseSetCookie:function(e){if(n(e))return null;let t="",i="",r="",a="";if(e.includes(";")){const s={position:0};t=o(";",e,s),i=e.slice(s.position)}else t=e;if(t.includes("=")){const e={position:0};r=o("=",t,e),a=t.slice(e.position+1)}else a=t;return r=r.trim(),a=a.trim(),r.length+a.length>s?null:{name:r,value:a,...c(i)}},parseUnparsedAttributes:c}},73626:(e,t,i)=>{"use strict";const s=i(39491),{kHeadersList:r}=i(84199);let n;e.exports={isCTLExcludingHtab:function(e){if(0===e.length)return!1;for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||e>=10||e<=31||127===e)return!1}},stringify:function(e){if(0===e.name.length)return null;!function(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||"("===t||")"===t||">"===t||"<"===t||"@"===t||","===t||";"===t||":"===t||"\\"===t||'"'===t||"/"===t||"["===t||"]"===t||"?"===t||"="===t||"{"===t||"}"===t)throw new Error("Invalid cookie name")}}(e.name),function(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||34===e||44===e||59===e||92===e||e>126)throw new Error("Invalid header value")}}(e.value);const t=[`${e.name}=${e.value}`];var i;e.name.startsWith("__Secure-")&&(e.secure=!0),e.name.startsWith("__Host-")&&(e.secure=!0,e.domain=null,e.path="/"),e.secure&&t.push("Secure"),e.httpOnly&&t.push("HttpOnly"),"number"==typeof e.maxAge&&(function(e){if(e<0)throw new Error("Invalid cookie max-age")}(e.maxAge),t.push(`Max-Age=${e.maxAge}`)),e.domain&&(function(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-"))throw new Error("Invalid cookie domain")}(e.domain),t.push(`Domain=${e.domain}`)),e.path&&(function(e){for(const t of e)if(t.charCodeAt(0)<33||";"===t)throw new Error("Invalid cookie path")}(e.path),t.push(`Path=${e.path}`)),e.expires&&"Invalid Date"!==e.expires.toString()&&t.push("Expires="+("number"==typeof(i=e.expires)&&(i=new Date(i)),`${["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][i.getUTCDay()]}, ${i.getUTCDate().toString().padStart(2,"0")} ${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][i.getUTCMonth()]} ${i.getUTCFullYear()} ${i.getUTCHours().toString().padStart(2,"0")}:${i.getUTCMinutes().toString().padStart(2,"0")}:${i.getUTCSeconds().toString().padStart(2,"0")} GMT`)),e.sameSite&&t.push(`SameSite=${e.sameSite}`);for(const i of e.unparsed){if(!i.includes("="))throw new Error("Invalid unparsed");const[e,...s]=i.split("=");t.push(`${e.trim()}=${s.join("=")}`)}return t.join("; ")},getHeadersList:function(e){if(e[r])return e[r];n||(n=Object.getOwnPropertySymbols(e).find((e=>"headers list"===e.description)),s(n,"Headers cannot be parsed"));const t=e[n];return s(t),t}}},34413:(e,t,i)=>{"use strict";const s=i(41808),r=i(39491),n=i(38446),{InvalidArgumentError:o,ConnectTimeoutError:a}=i(14269);let c,l;l=global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}},e.exports=function({allowH2:e,maxCachedSessions:t,socketPath:p,timeout:A,...u}){if(null!=t&&(!Number.isInteger(t)||t<0))throw new o("maxCachedSessions must be a positive integer or zero");const d={path:p,...u},h=new l(null==t?100:t);return A=null==A?1e4:A,e=null!=e&&e,function({hostname:t,host:o,protocol:l,port:p,servername:u,localAddress:m,httpSocket:g},f){let E;if("https:"===l){c||(c=i(24404));const s=(u=u||d.servername||n.getServerName(o)||null)||t,a=h.get(s)||null;r(s),E=c.connect({highWaterMark:16384,...d,servername:u,session:a,localAddress:m,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:g,port:p||443,host:t}),E.on("session",(function(e){h.set(s,e)}))}else r(!g,"httpSocket can only be sent on TLS update"),E=s.connect({highWaterMark:65536,...d,localAddress:m,port:p||80,host:t});if(null==d.keepAlive||d.keepAlive){const e=void 0===d.keepAliveInitialDelay?6e4:d.keepAliveInitialDelay;E.setKeepAlive(!0,e)}const C=function(e,t){if(!t)return()=>{};let i=null,s=null;const r=setTimeout((()=>{i=setImmediate((()=>{"win32"===process.platform?s=setImmediate((()=>e())):e()}))}),t);return()=>{clearTimeout(r),clearImmediate(i),clearImmediate(s)}}((()=>function(e){n.destroy(e,new a)}(E)),A);return E.setNoDelay(!0).once("https:"===l?"secureConnect":"connect",(function(){if(C(),f){const e=f;f=null,e(null,this)}})).on("error",(function(e){if(C(),f){const t=f;f=null,t(e)}})),E}}},14269:e=>{"use strict";class t extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}}class i extends t{constructor(e){super(e),Error.captureStackTrace(this,i),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class s extends t{constructor(e){super(e),Error.captureStackTrace(this,s),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class r extends t{constructor(e){super(e),Error.captureStackTrace(this,r),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class n extends t{constructor(e){super(e),Error.captureStackTrace(this,n),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class o extends t{constructor(e,t,i,s){super(e),Error.captureStackTrace(this,o),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.status=t,this.statusCode=t,this.headers=i}}class a extends t{constructor(e){super(e),Error.captureStackTrace(this,a),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class c extends t{constructor(e){super(e),Error.captureStackTrace(this,c),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class l extends t{constructor(e){super(e),Error.captureStackTrace(this,l),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED"}}class p extends t{constructor(e){super(e),Error.captureStackTrace(this,p),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO"}}class A extends t{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="RequestContentLengthMismatchError",this.message=e||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class u extends t{constructor(e){super(e),Error.captureStackTrace(this,u),this.name="ResponseContentLengthMismatchError",this.message=e||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class d extends t{constructor(e){super(e),Error.captureStackTrace(this,d),this.name="ClientDestroyedError",this.message=e||"The client is destroyed",this.code="UND_ERR_DESTROYED"}}class h extends t{constructor(e){super(e),Error.captureStackTrace(this,h),this.name="ClientClosedError",this.message=e||"The client is closed",this.code="UND_ERR_CLOSED"}}class m extends t{constructor(e,t){super(e),Error.captureStackTrace(this,m),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=t}}class g extends t{constructor(e){super(e),Error.captureStackTrace(this,g),this.name="NotSupportedError",this.message=e||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}}class f extends Error{constructor(e,t,i){super(e),Error.captureStackTrace(this,f),this.name="HTTPParserError",this.code=t?`HPE_${t}`:void 0,this.data=i?i.toString():void 0}}class E extends t{constructor(e){super(e),Error.captureStackTrace(this,E),this.name="ResponseExceededMaxSizeError",this.message=e||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class C extends t{constructor(e,t,{headers:i,data:s}){super(e),Error.captureStackTrace(this,C),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=t,this.data=s,this.headers=i}}e.exports={HTTPParserError:f,UndiciError:t,HeadersTimeoutError:s,HeadersOverflowError:r,BodyTimeoutError:n,RequestContentLengthMismatchError:A,ConnectTimeoutError:i,ResponseStatusCodeError:o,InvalidArgumentError:a,InvalidReturnValueError:c,RequestAbortedError:l,ClientDestroyedError:d,ClientClosedError:h,InformationalError:p,SocketError:m,NotSupportedError:g,ResponseContentLengthMismatchError:u,BalancedPoolMissingUpstreamError:class extends t{constructor(e){super(e),Error.captureStackTrace(this,g),this.name="MissingUpstreamError",this.message=e||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}},ResponseExceededMaxSizeError:E,RequestRetryError:C}},80120:(e,t,i)=>{"use strict";const{InvalidArgumentError:s,NotSupportedError:r}=i(14269),n=i(39491),{kHTTP2BuildRequest:o,kHTTP2CopyHeaders:a,kHTTP1BuildRequest:c}=i(84199),l=i(38446),p=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,A=/[^\t\x20-\x7e\x80-\xff]/,u=/[^\u0021-\u00ff]/,d=Symbol("handler"),h={};let m;try{const e=i(67643);h.create=e.channel("undici:request:create"),h.bodySent=e.channel("undici:request:bodySent"),h.headers=e.channel("undici:request:headers"),h.trailers=e.channel("undici:request:trailers"),h.error=e.channel("undici:request:error")}catch{h.create={hasSubscribers:!1},h.bodySent={hasSubscribers:!1},h.headers={hasSubscribers:!1},h.trailers={hasSubscribers:!1},h.error={hasSubscribers:!1}}class g{constructor(e,{path:t,method:r,body:n,headers:o,query:a,idempotent:c,blocking:A,upgrade:g,headersTimeout:f,bodyTimeout:C,reset:y,throwOnError:v,expectContinue:I},B){if("string"!=typeof t)throw new s("path must be a string");if("/"!==t[0]&&!t.startsWith("http://")&&!t.startsWith("https://")&&"CONNECT"!==r)throw new s("path must be an absolute URL or start with a slash");if(null!==u.exec(t))throw new s("invalid request path");if("string"!=typeof r)throw new s("method must be a string");if(null===p.exec(r))throw new s("invalid request method");if(g&&"string"!=typeof g)throw new s("upgrade must be a string");if(null!=f&&(!Number.isFinite(f)||f<0))throw new s("invalid headersTimeout");if(null!=C&&(!Number.isFinite(C)||C<0))throw new s("invalid bodyTimeout");if(null!=y&&"boolean"!=typeof y)throw new s("invalid reset");if(null!=I&&"boolean"!=typeof I)throw new s("invalid expectContinue");if(this.headersTimeout=f,this.bodyTimeout=C,this.throwOnError=!0===v,this.method=r,this.abort=null,null==n)this.body=null;else if(l.isStream(n)){this.body=n;const e=this.body._readableState;e&&e.autoDestroy||(this.endHandler=function(){l.destroy(this)},this.body.on("end",this.endHandler)),this.errorHandler=e=>{this.abort?this.abort(e):this.error=e},this.body.on("error",this.errorHandler)}else if(l.isBuffer(n))this.body=n.byteLength?n:null;else if(ArrayBuffer.isView(n))this.body=n.buffer.byteLength?Buffer.from(n.buffer,n.byteOffset,n.byteLength):null;else if(n instanceof ArrayBuffer)this.body=n.byteLength?Buffer.from(n):null;else if("string"==typeof n)this.body=n.length?Buffer.from(n):null;else{if(!(l.isFormDataLike(n)||l.isIterable(n)||l.isBlobLike(n)))throw new s("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");this.body=n}if(this.completed=!1,this.aborted=!1,this.upgrade=g||null,this.path=a?l.buildURL(t,a):t,this.origin=e,this.idempotent=null==c?"HEAD"===r||"GET"===r:c,this.blocking=null!=A&&A,this.reset=null==y?null:y,this.host=null,this.contentLength=null,this.contentType=null,this.headers="",this.expectContinue=null!=I&&I,Array.isArray(o)){if(o.length%2!=0)throw new s("headers array must be even");for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},38446:(e,t,i)=>{"use strict";const s=i(39491),{kDestroyed:r,kBodyUsed:n}=i(84199),{IncomingMessage:o}=i(13685),a=i(12781),c=i(41808),{InvalidArgumentError:l}=i(14269),{Blob:p}=i(14300),A=i(73837),{stringify:u}=i(63477),[d,h]=process.versions.node.split(".").map((e=>Number(e)));function m(e){return e&&"object"==typeof e&&"function"==typeof e.pipe&&"function"==typeof e.on}function g(e){return p&&e instanceof p||e&&"object"==typeof e&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function f(e){if("string"==typeof e){if(e=new URL(e),!/^https?:/.test(e.origin||e.protocol))throw new l("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}if(!e||"object"!=typeof e)throw new l("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(e.origin||e.protocol))throw new l("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(e instanceof URL)){if(null!=e.port&&""!==e.port&&!Number.isFinite(parseInt(e.port)))throw new l("Invalid URL: port must be a valid integer or a string representation of an integer.");if(null!=e.path&&"string"!=typeof e.path)throw new l("Invalid URL path: the path must be a string or null/undefined.");if(null!=e.pathname&&"string"!=typeof e.pathname)throw new l("Invalid URL pathname: the pathname must be a string or null/undefined.");if(null!=e.hostname&&"string"!=typeof e.hostname)throw new l("Invalid URL hostname: the hostname must be a string or null/undefined.");if(null!=e.origin&&"string"!=typeof e.origin)throw new l("Invalid URL origin: the origin must be a string or null/undefined.");const t=null!=e.port?e.port:"https:"===e.protocol?443:80;let i=null!=e.origin?e.origin:`${e.protocol}//${e.hostname}:${t}`,s=null!=e.path?e.path:`${e.pathname||""}${e.search||""}`;i.endsWith("/")&&(i=i.substring(0,i.length-1)),s&&!s.startsWith("/")&&(s=`/${s}`),e=new URL(i+s)}return e}function E(e){return!e||!(!e.destroyed&&!e[r])}function C(e){const t=e&&e._readableState;return E(e)&&t&&!t.endEmitted}const y=/timeout=(\d+)/;function v(e){return e instanceof Uint8Array||Buffer.isBuffer(e)}let I;const B=!!String.prototype.toWellFormed,w=Object.create(null);w.enumerable=!0,e.exports={kEnumerableProperty:w,nop:function(){},isDisturbed:function(e){return!(!e||!(a.isDisturbed?a.isDisturbed(e)||e[n]:e[n]||e.readableDidRead||e._readableState&&e._readableState.dataEmitted||C(e)))},isErrored:function(e){return!(!e||!(a.isErrored?a.isErrored(e):/state: 'errored'/.test(A.inspect(e))))},isReadable:function(e){return!(!e||!(a.isReadable?a.isReadable(e):/state: 'readable'/.test(A.inspect(e))))},toUSVString:function(e){return B?`${e}`.toWellFormed():A.toUSVString?A.toUSVString(e):`${e}`},isReadableAborted:C,isBlobLike:g,parseOrigin:function(e){if("/"!==(e=f(e)).pathname||e.search||e.hash)throw new l("invalid url");return e},parseURL:f,getServerName:function(e){if(!e)return null;s.strictEqual(typeof e,"string");const t=function(e){if("["===e[0]){const t=e.indexOf("]");return s(-1!==t),e.substring(1,t)}const t=e.indexOf(":");return-1===t?e:e.substring(0,t)}(e);return c.isIP(t)?"":t},isStream:m,isIterable:function(e){return!(null==e||"function"!=typeof e[Symbol.iterator]&&"function"!=typeof e[Symbol.asyncIterator])},isAsyncIterable:function(e){return!(null==e||"function"!=typeof e[Symbol.asyncIterator])},isDestroyed:E,parseRawHeaders:function(e){const t=[];let i=!1,s=-1;for(let r=0;re.toString("utf8"))):t[s]=e[i+1].toString("utf8")}return"content-length"in t&&"content-disposition"in t&&(t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")),t},parseKeepAliveTimeout:function(e){const t=e.toString().match(y);return t?1e3*parseInt(t[1],10):null},destroy:function(e,t){null!=e&&m(e)&&!E(e)&&("function"==typeof e.destroy?(Object.getPrototypeOf(e).constructor===o&&(e.socket=null),e.destroy(t)):t&&process.nextTick(((e,t)=>{e.emit("error",t)}),e,t),!0!==e.destroyed&&(e[r]=!0))},bodyLength:function(e){if(null==e)return 0;if(m(e)){const t=e._readableState;return t&&!1===t.objectMode&&!0===t.ended&&Number.isFinite(t.length)?t.length:null}return g(e)?null!=e.size?e.size:null:v(e)?e.byteLength:null},deepClone:function(e){return JSON.parse(JSON.stringify(e))},ReadableStreamFrom:function(e){if(I||(I=i(35356).ReadableStream),I.from)return I.from(async function*(e){for await(const t of e)yield Buffer.isBuffer(t)?t:Buffer.from(t)}(e));let t;return new I({async start(){t=e[Symbol.asyncIterator]()},async pull(e){const{done:i,value:s}=await t.next();if(i)queueMicrotask((()=>{e.close()}));else{const t=Buffer.isBuffer(s)?s:Buffer.from(s);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)},isBuffer:v,validateHandler:function(e,t,i){if(!e||"object"!=typeof e)throw new l("handler must be an object");if("function"!=typeof e.onConnect)throw new l("invalid onConnect method");if("function"!=typeof e.onError)throw new l("invalid onError method");if("function"!=typeof e.onBodySent&&void 0!==e.onBodySent)throw new l("invalid onBodySent method");if(i||"CONNECT"===t){if("function"!=typeof e.onUpgrade)throw new l("invalid onUpgrade method")}else{if("function"!=typeof e.onHeaders)throw new l("invalid onHeaders method");if("function"!=typeof e.onData)throw new l("invalid onData method");if("function"!=typeof e.onComplete)throw new l("invalid onComplete method")}},getSocketInfo:function(e){return{localAddress:e.localAddress,localPort:e.localPort,remoteAddress:e.remoteAddress,remotePort:e.remotePort,remoteFamily:e.remoteFamily,timeout:e.timeout,bytesWritten:e.bytesWritten,bytesRead:e.bytesRead}},isFormDataLike:function(e){return e&&"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&&"FormData"===e[Symbol.toStringTag]},buildURL:function(e,t){if(e.includes("?")||e.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');const i=u(t);return i&&(e+="?"+i),e},throwIfAborted:function(e){if(e)if("function"==typeof e.throwIfAborted)e.throwIfAborted();else if(e.aborted){const e=new Error("The operation was aborted");throw e.name="AbortError",e}},addAbortListener:function(e,t){return"addEventListener"in e?(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)):(e.addListener("abort",t),()=>e.removeListener("abort",t))},parseRangeHeader:function(e){if(null==e||""===e)return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null},nodeMajor:d,nodeMinor:h,nodeHasAutoSelectFamily:d>18||18===d&&h>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},56479:(e,t,i)=>{"use strict";const s=i(77575),{ClientDestroyedError:r,ClientClosedError:n,InvalidArgumentError:o}=i(14269),{kDestroy:a,kClose:c,kDispatch:l,kInterceptors:p}=i(84199),A=Symbol("destroyed"),u=Symbol("closed"),d=Symbol("onDestroyed"),h=Symbol("onClosed"),m=Symbol("Intercepted Dispatch");e.exports=class extends s{constructor(){super(),this[A]=!1,this[d]=null,this[u]=!1,this[h]=[]}get destroyed(){return this[A]}get closed(){return this[u]}get interceptors(){return this[p]}set interceptors(e){if(e)for(let t=e.length-1;t>=0;t--)if("function"!=typeof this[p][t])throw new o("interceptor must be an function");this[p]=e}close(e){if(void 0===e)return new Promise(((e,t)=>{this.close(((i,s)=>i?t(i):e(s)))}));if("function"!=typeof e)throw new o("invalid callback");if(this[A])return void queueMicrotask((()=>e(new r,null)));if(this[u])return void(this[h]?this[h].push(e):queueMicrotask((()=>e(null,null))));this[u]=!0,this[h].push(e);const t=()=>{const e=this[h];this[h]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(t)}))}destroy(e,t){if("function"==typeof e&&(t=e,e=null),void 0===t)return new Promise(((t,i)=>{this.destroy(e,((e,s)=>e?i(e):t(s)))}));if("function"!=typeof t)throw new o("invalid callback");if(this[A])return void(this[d]?this[d].push(t):queueMicrotask((()=>t(null,null))));e||(e=new r),this[A]=!0,this[d]=this[d]||[],this[d].push(t);const i=()=>{const e=this[d];this[d]=null;for(let t=0;t{queueMicrotask(i)}))}[m](e,t){if(!this[p]||0===this[p].length)return this[m]=this[l],this[l](e,t);let i=this[l].bind(this);for(let e=this[p].length-1;e>=0;e--)i=this[p][e](i);return this[m]=i,i(e,t)}dispatch(e,t){if(!t||"object"!=typeof t)throw new o("handler must be an object");try{if(!e||"object"!=typeof e)throw new o("opts must be an object.");if(this[A]||this[d])throw new r;if(this[u])throw new n;return this[m](e,t)}catch(e){if("function"!=typeof t.onError)throw new o("invalid onError method");return t.onError(e),!1}}}},77575:(e,t,i)=>{"use strict";const s=i(82361);e.exports=class extends s{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}},92144:(e,t,i)=>{"use strict";const s=i(54085),r=i(38446),{ReadableStreamFrom:n,isBlobLike:o,isReadableStreamLike:a,readableStreamClose:c,createDeferredPromise:l,fullyReadBody:p}=i(29479),{FormData:A}=i(20038),{kState:u}=i(59082),{webidl:d}=i(51877),{DOMException:h,structuredClone:m}=i(32335),{Blob:g,File:f}=i(14300),{kBodyUsed:E}=i(84199),C=i(39491),{isErrored:y}=i(38446),{isUint8Array:v,isArrayBuffer:I}=i(29830),{File:B}=i(5441),{parseMIMEType:w,serializeAMimeType:b}=i(12790);let Q=globalThis.ReadableStream;const x=f??B,k=new TextEncoder,D=new TextDecoder;function S(e,t=!1){Q||(Q=i(35356).ReadableStream);let s=null;s=e instanceof Q?e:o(e)?e.stream():new Q({async pull(e){e.enqueue("string"==typeof p?k.encode(p):p),queueMicrotask((()=>c(e)))},start(){},type:void 0}),C(a(s));let l=null,p=null,A=null,u=null;if("string"==typeof e)p=e,u="text/plain;charset=UTF-8";else if(e instanceof URLSearchParams)p=e.toString(),u="application/x-www-form-urlencoded;charset=UTF-8";else if(I(e))p=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))p=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(r.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(1e11*Math.random())}`.padStart(11,"0")}`,i=`--${t}\r\nContent-Disposition: form-data`,s=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),r=e=>e.replace(/\r?\n|\r/g,"\r\n"),n=[],o=new Uint8Array([13,10]);A=0;let a=!1;for(const[t,c]of e)if("string"==typeof c){const e=k.encode(i+`; name="${s(r(t))}"`+`\r\n\r\n${r(c)}\r\n`);n.push(e),A+=e.byteLength}else{const e=k.encode(`${i}; name="${s(r(t))}"`+(c.name?`; filename="${s(c.name)}"`:"")+"\r\n"+`Content-Type: ${c.type||"application/octet-stream"}\r\n\r\n`);n.push(e,c,o),"number"==typeof c.size?A+=e.byteLength+c.size+o.byteLength:a=!0}const c=k.encode(`--${t}--`);n.push(c),A+=c.byteLength,a&&(A=null),p=e,l=async function*(){for(const e of n)e.stream?yield*e.stream():yield e},u="multipart/form-data; boundary="+t}else if(o(e))p=e,A=e.size,e.type&&(u=e.type);else if("function"==typeof e[Symbol.asyncIterator]){if(t)throw new TypeError("keepalive");if(r.isDisturbed(e)||e.locked)throw new TypeError("Response body object should not be disturbed or locked");s=e instanceof Q?e:n(e)}if(("string"==typeof p||r.isBuffer(p))&&(A=Buffer.byteLength(p)),null!=l){let t;s=new Q({async start(){t=l(e)[Symbol.asyncIterator]()},async pull(e){const{value:i,done:r}=await t.next();return r?queueMicrotask((()=>{e.close()})):y(s)||e.enqueue(new Uint8Array(i)),e.desiredSize>0},async cancel(e){await t.return()},type:void 0})}return[{stream:s,source:p,length:A},u]}async function*_(e){if(e)if(v(e))yield e;else{const t=e.stream;if(r.isDisturbed(t))throw new TypeError("The body has already been consumed.");if(t.locked)throw new TypeError("The stream is locked.");t[E]=!0,yield*t}}function R(e){if(e.aborted)throw new h("The operation was aborted.","AbortError")}async function T(e,t,i){if(d.brandCheck(e,i),R(e[u]),null!=(s=e[u].body)&&(s.stream.locked||r.isDisturbed(s.stream)))throw new TypeError("Body is unusable");var s;const n=l(),o=e=>n.reject(e),a=e=>{try{n.resolve(t(e))}catch(e){o(e)}};return null==e[u].body?(a(new Uint8Array),n.promise):(await p(e[u].body,a,o),n.promise)}function F(e){return 0===e.length?"":(239===e[0]&&187===e[1]&&191===e[2]&&(e=e.subarray(3)),D.decode(e))}function N(e){return JSON.parse(F(e))}e.exports={extractBody:S,safelyExtractBody:function(e,t=!1){return Q||(Q=i(35356).ReadableStream),e instanceof Q&&(C(!r.isDisturbed(e),"The body has already been consumed."),C(!e.locked,"The stream is locked.")),S(e,t)},cloneBody:function(e){const[t,i]=e.stream.tee(),s=m(i,{transfer:[i]}),[,r]=s.tee();return e.stream=t,{stream:r,length:e.length,source:e.source}},mixinBody:function(e){var t;Object.assign(e.prototype,(t=e,{blob(){return T(this,(e=>{let t=function(e){const{headersList:t}=e[u],i=t.get("content-type");return null===i?"failure":w(i)}(this);return"failure"===t?t="":t&&(t=b(t)),new g([e],{type:t})}),t)},arrayBuffer(){return T(this,(e=>new Uint8Array(e).buffer),t)},text(){return T(this,F,t)},json(){return T(this,N,t)},async formData(){d.brandCheck(this,t),R(this[u]);const e=this.headers.get("Content-Type");if(/multipart\/form-data/.test(e)){const e={};for(const[t,i]of this.headers)e[t.toLowerCase()]=i;const t=new A;let i;try{i=new s({headers:e,preservePath:!0})}catch(e){throw new h(`${e}`,"AbortError")}i.on("field",((e,i)=>{t.append(e,i)})),i.on("file",((e,i,s,r,n)=>{const o=[];if("base64"===r||"base64"===r.toLowerCase()){let r="";i.on("data",(e=>{r+=e.toString().replace(/[\r\n]/gm,"");const t=r.length-r.length%4;o.push(Buffer.from(r.slice(0,t),"base64")),r=r.slice(t)})),i.on("end",(()=>{o.push(Buffer.from(r,"base64")),t.append(e,new x(o,s,{type:n}))}))}else i.on("data",(e=>{o.push(e)})),i.on("end",(()=>{t.append(e,new x(o,s,{type:n}))}))}));const r=new Promise(((e,t)=>{i.on("finish",e),i.on("error",(e=>t(new TypeError(e))))}));if(null!==this.body)for await(const e of _(this[u].body))i.write(e);return i.end(),await r,t}if(/application\/x-www-form-urlencoded/.test(e)){let e;try{let t="";const i=new TextDecoder("utf-8",{ignoreBOM:!0});for await(const e of _(this[u].body)){if(!v(e))throw new TypeError("Expected Uint8Array chunk");t+=i.decode(e,{stream:!0})}t+=i.decode(),e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new A;for(const[i,s]of e)t.append(i,s);return t}throw await Promise.resolve(),R(this[u]),d.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}))}}},32335:(e,t,i)=>{"use strict";const{MessageChannel:s,receiveMessageOnPort:r}=i(71267),n=["GET","HEAD","POST"],o=new Set(n),a=[301,302,303,307,308],c=new Set(a),l=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"],p=new Set(l),A=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],u=new Set(A),d=["GET","HEAD","OPTIONS","TRACE"],h=new Set(d),m=["CONNECT","TRACE","TRACK"],g=new Set(m),f=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],E=new Set(f),C=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let y;const v=globalThis.structuredClone??function(e,t=void 0){if(0===arguments.length)throw new TypeError("missing argument");return y||(y=new s),y.port1.unref(),y.port2.unref(),y.port1.postMessage(e,t?.transfer),r(y.port2).message};e.exports={DOMException:C,structuredClone:v,subresource:f,forbiddenMethods:m,requestBodyHeader:["content-encoding","content-language","content-location","content-type","content-length"],referrerPolicy:A,requestRedirect:["follow","manual","error"],requestMode:["navigate","same-origin","no-cors","cors"],requestCredentials:["omit","same-origin","include"],requestCache:["default","no-store","reload","no-cache","force-cache","only-if-cached"],redirectStatus:a,corsSafeListedMethods:n,nullBodyStatus:[101,204,205,304],safeMethods:d,badPorts:l,requestDuplex:["half"],subresourceSet:E,badPortsSet:p,redirectStatusSet:c,corsSafeListedMethodsSet:o,safeMethodsSet:h,forbiddenMethodsSet:g,referrerPolicySet:u}},12790:(e,t,i)=>{const s=i(39491),{atob:r}=i(14300),{isomorphicDecode:n}=i(29479),o=new TextEncoder,a=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/,c=/(\u000A|\u000D|\u0009|\u0020)/,l=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function p(e,t=!1){if(!t)return e.href;const i=e.href,s=e.hash.length;return 0===s?i:i.substring(0,i.length-s)}function A(e,t,i){let s="";for(;i.positione.length)return"failure";t.position++;let s=u(";",e,t);if(s=f(s,!1,!0),0===s.length||!a.test(s))return"failure";const r=i.toLowerCase(),n=s.toLowerCase(),o={type:r,subtype:n,parameters:new Map,essence:`${r}/${n}`};for(;t.positionc.test(e)),e,t);let i=A((e=>";"!==e&&"="!==e),e,t);if(i=i.toLowerCase(),t.position