refactor: improve imports (#217)

* refactor: improve imports

Signed-off-by: Ardalan Amini <[email protected]>

* ci: fix release workflow

Signed-off-by: Ardalan Amini <[email protected]>

* 📝 Add docstrings to `refactor/improve-imports` (#218)

* 📝 Add docstrings to `refactor/improve-imports`

Docstrings generation was requested by @ardalanamini.

* https://github.com/ardalanamini/auto-changelog/pull/217#issuecomment-2953761296

The following files were modified:

* `src/changelog.ts`
* `src/footer.ts`
* `src/generate.ts`
* `src/inputs/commit-types.ts`
* `src/inputs/default-commit-type.ts`
* `src/inputs/github-token.ts`
* `src/inputs/include-commit-links.ts`
* `src/inputs/include-compare-link.ts`
* `src/inputs/include-pr-links.ts`
* `src/inputs/mention-authors.ts`
* `src/inputs/mention-new-contributors.ts`
* `src/inputs/release-name-prefix.ts`
* `src/inputs/release-name.ts`
* `src/inputs/semver.ts`
* `src/inputs/use-github-autolink.ts`
* `src/outputs/set-changelog.ts`
* `src/outputs/set-prerelease.ts`
* `src/outputs/set-release-id.ts`
* `src/utils/octokit.ts`

* Update changelog.ts

Signed-off-by: Ardalan Amini <[email protected]>

* style: address linter errors

Signed-off-by: Ardalan Amini <[email protected]>

---------

Signed-off-by: Ardalan Amini <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Ardalan Amini <[email protected]>

---------

Signed-off-by: Ardalan Amini <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Ardalan Aminiandcoderabbitai[bot] authored and GitHub committed 2025-06-08 12:29:09 +03:30
1 parent 99fcfc116e
commit f54a10a737
66 files changed
+238 -121

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v4
- name: Changelog
uses: ardalanamini/auto-changelog@master
uses: ardalanamini/auto-changelog@main
id : changelog
- name: Create Release
+51 -51
View File
@@ -1,42 +1,42 @@
import{createRequire as e}from"node:module";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),u=e(import.meta.url),d=s(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.toCommandProperties=exports.toCommandValue=void 0;function t(e){return e==null?``:typeof e==`string`||e instanceof String?e:JSON.stringify(e)}exports.toCommandValue=t;function n(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}exports.toCommandProperties=n}),f=s(exports=>{var t=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},n=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.issue=exports.issueCommand=void 0;let i=r(u(`os`)),a=d();function o(e,t,n){let r=new l(e,t,n);process.stdout.write(r.toString()+i.EOL)}exports.issueCommand=o;function s(e,t=``){o(e,{},t)}exports.issue=s;let c=`::`;var l=class{constructor(e,t,n){e||=`missing.command`,this.command=e,this.properties=t,this.message=n}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=` `;let t=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let r=this.properties[n];r&&(t?t=!1:e+=`,`,e+=`${n}=${p(r)}`)}}return e+=`${c}${f(this.message)}`,e}};function f(e){return(0,a.toCommandValue)(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`)}function p(e){return(0,a.toCommandValue)(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}}),p=s(exports=>{var t=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},n=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.prepareKeyValueMessage=exports.issueFileCommand=void 0;let i=r(u(`crypto`)),a=r(u(`fs`)),o=r(u(`os`)),s=d();function c(e,t){let n=process.env[`GITHUB_${e}`];if(!n)throw Error(`Unable to find environment variable for file command ${e}`);if(!a.existsSync(n))throw Error(`Missing file at path: ${n}`);a.appendFileSync(n,`${(0,s.toCommandValue)(t)}${o.EOL}`,{encoding:`utf8`})}exports.issueFileCommand=c;function l(e,t){let n=`ghadelimiter_${i.randomUUID()}`,r=(0,s.toCommandValue)(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(r.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${o.EOL}${r}${o.EOL}${n}`}exports.prepareKeyValueMessage=l}),m=s(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.checkBypass=exports.getProxyUrl=void 0;function t(e){let t=e.protocol===`https:`;if(n(e))return;let r=(()=>t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(r)try{return new URL(r)}catch{if(!r.startsWith(`http://`)&&!r.startsWith(`https://`))return new URL(`http://${r}`)}else return}exports.getProxyUrl=t;function n(e){if(!e.hostname)return!1;let t=e.hostname;if(r(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let i;e.port?i=Number(e.port):e.protocol===`http:`?i=80:e.protocol===`https:`&&(i=443);let a=[e.hostname.toUpperCase()];typeof i==`number`&&a.push(`${a[0]}:${i}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||a.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}exports.checkBypass=n;function r(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}}),h=s(exports=>{var Line truncated
`,t.message,t.stack);var i=Error(`tunneling socket could not be established, cause=`+t.message);i.code=`ECONNRESET`,e.request.emit(`error`,i),n.removeSocket(r)}},p.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,function(e){n.request.onSocket(e)})}};function m(e,t){var r=this;p.prototype.createSocket.call(r,e,function(i){var a=e.request.getHeader(`host`),o=g({},r.options,{socket:i,servername:a?a.replace(/:.*$/,``):e.host}),s=n.connect(0,o);r.sockets[r.sockets.indexOf(i)]=s,t(s)})}function h(e,t,n){return typeof e==`string`?{host:e,port:t,localAddress:n}:e}function g(e){for(var t=1,n=arguments.length;t<n;++t){var r=arguments[t];if(typeof r==`object`)for(var i=Object.keys(r),a=0,o=i.length;a<o;++a){var s=i[a];r[s]!==void 0&&(e[s]=r[s])}}return e}var _;_=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);typeof e[0]==`string`?e[0]=`TUNNEL: `+e[0]:e.unshift(`TUNNEL:`),console.error.apply(console,e)}:function(){},exports.debug=_}),g=s((exports,t)=>{t.exports=h()}),_=s((exports,t)=>{t.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`)}}),v=s((exports,t)=>{var n=class extends Error{constructor(e){super(e),this.name=`UndiciError`,this.code=`UND_ERR`}},r=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`ConnectTimeoutError`,this.message=t||`Connect Timeout Error`,this.code=`UND_ERR_CONNECT_TIMEOUT`}},i=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`HeadersTimeoutError`,this.message=t||`Headers Timeout Error`,this.code=`UND_ERR_HEADERS_TIMEOUT`}},a=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`HeadersOverflowError`,this.message=t||`Headers Overflow Error`,this.code=`UND_ERR_HEADERS_OVERFLOW`}},o=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`BodyTimeoutError`,this.message=t||`Body Timeout Error`,this.code=`UND_ERR_BODY_TIMEOUT`}},s=class e extends n{constructor(t,n,r,i){super(t),Error.captureStackTrace(this,e),this.name=`ResponseStatusCodeError`,this.message=t||`Response Status Code Error`,this.code=`UND_ERR_RESPONSE_STATUS_CODE`,this.body=i,this.status=n,this.statusCode=n,this.headers=r}},c=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`InvalidArgumentError`,this.message=t||`Invalid Argument Error`,this.code=`UND_ERR_INVALID_ARG`}},l=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`InvalidReturnValueError`,this.message=t||`Invalid Return Value Error`,this.code=`UND_ERR_INVALID_RETURN_VALUE`}},u=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`AbortError`,this.message=t||`Request aborted`,this.code=`UND_ERR_ABORTED`} Line truncated
`,t.message,t.stack);var i=Error(`tunneling socket could not be established, cause=`+t.message);i.code=`ECONNRESET`,e.request.emit(`error`,i),n.removeSocket(r)}},p.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,function(e){n.request.onSocket(e)})}};function m(e,t){var r=this;p.prototype.createSocket.call(r,e,function(i){var a=e.request.getHeader(`host`),o=g({},r.options,{socket:i,servername:a?a.replace(/:.*$/,``):e.host}),s=n.connect(0,o);r.sockets[r.sockets.indexOf(i)]=s,t(s)})}function h(e,t,n){return typeof e==`string`?{host:e,port:t,localAddress:n}:e}function g(e){for(var t=1,n=arguments.length;t<n;++t){var r=arguments[t];if(typeof r==`object`)for(var i=Object.keys(r),a=0,o=i.length;a<o;++a){var s=i[a];r[s]!==void 0&&(e[s]=r[s])}}return e}var _;_=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);typeof e[0]==`string`?e[0]=`TUNNEL: `+e[0]:e.unshift(`TUNNEL:`),console.error.apply(console,e)}:function(){},exports.debug=_}),g=s((exports,t)=>{t.exports=h()}),_=s((exports,t)=>{t.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`)}}),v=s((exports,t)=>{var n=class extends Error{constructor(e){super(e),this.name=`UndiciError`,this.code=`UND_ERR`}},r=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`ConnectTimeoutError`,this.message=t||`Connect Timeout Error`,this.code=`UND_ERR_CONNECT_TIMEOUT`}},i=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`HeadersTimeoutError`,this.message=t||`Headers Timeout Error`,this.code=`UND_ERR_HEADERS_TIMEOUT`}},a=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`HeadersOverflowError`,this.message=t||`Headers Overflow Error`,this.code=`UND_ERR_HEADERS_OVERFLOW`}},o=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`BodyTimeoutError`,this.message=t||`Body Timeout Error`,this.code=`UND_ERR_BODY_TIMEOUT`}},s=class e extends n{constructor(t,n,r,i){super(t),Error.captureStackTrace(this,e),this.name=`ResponseStatusCodeError`,this.message=t||`Response Status Code Error`,this.code=`UND_ERR_RESPONSE_STATUS_CODE`,this.body=i,this.status=n,this.statusCode=n,this.headers=r}},c=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`InvalidArgumentError`,this.message=t||`Invalid Argument Error`,this.code=`UND_ERR_INVALID_ARG`}},l=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`InvalidReturnValueError`,this.message=t||`Invalid Return Value Error`,this.code=`UND_ERR_INVALID_RETURN_VALUE`}},u=class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`AbortError`,this.message=t||`Request aborted`,this.code=`UND_ERR_ABORTED`} Line truncated
\r
`),s=/\r\n/g,c=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function l(e){n.call(this),e||={};let t=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=i(e,`maxHeaderPairs`,2e3),this.maxHeaderSize=i(e,`maxHeaderSize`,80*1024),this.buffer=``,this.header={},this.finished=!1,this.ss=new a(o),this.ss.on(`info`,function(e,n,r,i){n&&!t.maxed&&(t.nread+i-r>=t.maxHeaderSize?(i=t.maxHeaderSize-t.nread+r,t.nread=t.maxHeaderSize,t.maxed=!0):t.nread+=i-r,t.buffer+=n.toString(`binary`,r,i)),e&&t._finish()})}r(l,n),l.prototype.push=function(e){let t=this.ss.push(e);if(this.finished)return t},l.prototype.reset=function(){this.finished=!1,this.buffer=``,this.header={},this.ss.reset()},l.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let e=this.header;this.header={},this.buffer=``,this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit(`header`,e)},l.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let e=this.buffer.split(s),t=e.length,n,r;for(var i=0;i<t;++i){if(e[i].length===0)continue;if((e[i][0]===` `||e[i][0]===` `)&&r){this.header[r][this.header[r].length-1]+=e[i];continue}let t=e[i].indexOf(`:`);if(t===-1||t===0)return;if(n=c.exec(e[i]),r=n[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(n[2]||``),++this.npairs===this.maxHeaderPairs)break}},t.exports=l}),E=s((exports,t)=>{let n=u(`node:stream`).Writable,r=u(`node:util`).inherits,i=S(),a=C(),o=T(),s=45,c=Buffer.from(`-`),l=Buffer.from(`\r
`),d=function(){};function f(e){if(!(this instanceof f))return new f(e);if(n.call(this,e),!e||!e.headerFirst&&typeof e.boundary!=`string`)throw TypeError(`Boundary required`);typeof e.boundary==`string`?this.setBoundary(e.boundary):this._bparser=void 0,this._headerFirst=e.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:e.partHwm},this._pause=!1;let t=this;this._hparser=new o(e),this._hparser.on(`header`,function(e){t._inHeader=!1,t._part.emit(`header`,e)})}r(f,n),f.prototype.emit=function(e){if(e===`finish`&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit(`error`,Error(`Unexpected end of multipart data`)),e._part&&!e._ignoreData){let t=e._isPreamble?`Preamble`:`Part`;e._part.emit(`error`,Error(t+` terminated early due to unexpected end of multipart data`)),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit(`finish`),e._realFinish=!1});return}e._realFinish=!0,e.emit(`finish`),e._realFinish=!1})}}else n.prototype.emit.apply(this,arguments)},f.prototype._write=function(e,t,n){if(!this._hparser&&!this._bparser)return n();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new a(this._partOpts),this.listenerCount(`preamble`)===0?this._ignore():this.emit(`preamble`,this._part));let t=this._hparser.push(e);if(!this._inHeader&&t!==void 0&&t<e.length)e=e.slice(t);else return n()}this._firstWrite&&(this._bparser.push(l),this._firstWrite=!1),this._bparser.push(e),this._pause?this._cb=n:n()},f.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0},f.prototype.setBoundary=function(e){let t=this;this._bparser=new i(`\r
--`+e),this._bparser.on(`info`,function(e,n,r,i){t._oninfo(e,n,r,i)})},f.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on(`error`,d),this._part.resume())},f.prototype._oninfo=function(e,t,n,r){let i,o=this,l=0,u,d=!0;if(!this._part&&this._justMatched&&t){for(;this._dashes<2&&n+l<r;)if(t[n+l]===s)++l,++this._dashes;else{this._dashes&&(i=c),this._dashes=0;break}if(this._dashes===2&&(n+l<r&&this.listenerCount(`trailer`)!==0&&this.emit(`trailer`,t.slice(n+l,r)),this.reset(),this._finished=!0,o._parts===0&&(o._realFinish=!0,o.emit(`finish`),o._realFinish=!1)),this._dashes)return}this._justMatched&&=!1,this._part||(this._part=new a(this._partOpts),this._part._read=function(e){o._unpause()},this._isPreamble&&this.listenerCount(`preamble`)!==0?this.emit(`preamble`,this._part):this._isPreamble!==!0&&this.listenerCount(`part`)!==0?this.emit(`part`,this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),t&&n<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(d=this._part.push(i)),d=this._part.push(t.slice(n,r)),d||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),u=this._hparser.push(t.slice(n,r)),!this._inHeader&&u!==void 0&&u<r&&this._oninfo(!1,t,n+u,r))),e&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:n!==r&&(++this._parts,this._part.on(`end`,function(){--o._parts===0&&(o._finished?(o._realFinish=!0,o.emit(`finish`),o._realFinish=!1):o._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)},f.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let e=this._cb;this._cb=void 0,e()}},t.exports=f}),D=s((exports,t)=>{let n=new TextDecoder(`utf-8`),r=new Map([[`utf-8`,n],[`utf8`,n]]);function i(e){let t;for(;;)switch(e){case`utf-8`:case`utf8`:return a.utf8;case`latin1`:case`ascii`:case`us-ascii`:case`iso-8859-1`:case`iso8859-1`:case`iso88591`:case`iso_8859-1`:case`windows-1252`:case`iso_8859-1:1987`:case`cp1252`:case`x-cp1252`:return a.latin1;case`utf16le`:case`utf-16le`:case`ucs2`:case`ucs-2`:return a.utf16le;case`base64`:return a.base64;default:if(t===void 0){t=!0,e=e.toLowerCase();continue}return a.other.bind(e)}}let a={utf8:(e,t)=>e.length===0?``:(typeof e==`string`&&(e=Buffer.from(e,t)),e.utf8Slice(0,e.length)),latin1:(e,t)=>e.length===0?``:typeof e==`string`?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>e.length===0?``:(typeof e==`string`&&(e=Buffer.from(e,t)),e.ucs2Slice(0,e.length)),base64:(e,t)=>e.length===0?``:(typeof e==`string`&&(e=Buffer.from(e,t)),e.base64Slice(0,e.length)),other:(e,t)=>{if(e.length===0)return``;if(typeof e==`string`&&(e=Buffer.from(e,t)),r.has((void 0).toString()))try{return r.get(void 0).decode(e)}catch{}return typeof e==`string`?e:e.toString()}};function o(e,t,n){return e&&i(n)(e,t)}t.exports=o}),O=s((exports,t)=>{let n=D(),r=/%[a-fA-F0-9][a-fA-F0-9]/g,i={"%00":`\0`,"%01":``,"%02":``,"%03":``,"%04":``,"%05":``,"%06":``,"%07":`\x07`,"%08":`\b`,"%09":` `,"%0a":`
`,"%0A":`
`,"%0b":`\v`,"%0B":`\v`,"%0c":`\f`,"%0C":`\f`,"%0d":`\r`,"%0D":`\r`,"%0e":``,"%0E":``,"%0f":``,"%0F":``,"%10":``,"%11":``,"%12":``,"%13":``,"%14":``,"%15":``,"%16":``,"%17":``,"%18":``,"%19":``,"%1a":``,"%1A":``,"%1b":`\x1B`,"%1B":`\x1B`,"%1c":``,"%1C":``,"%1d":``,"%1D":``,"%1e":``,"%1E":``,"%1f":``,"%1F":``,"%20":` `,"%21":`!`,"%22":`"`,"%23":`#`,"%24":`$`,"%25":`%`,"%26":`&`,"%27":`'`,"%28":`(`,"%29":`)`,"%2a":`*`,"%2A":`*`,"%2b":`+`,"%2B":`+`,"%2c":`,`,"%2C":`,`,"%2d":`-`,"%2D":`-`,"%2e":`.`,"%2E":`.`,"%2f":`/`,"%2F":`/`,"%30":`0`,"%31":`1`,"%32":`2`,"%33":`3`,"%34":`4`,"%35":`5`,"%36":`6`,"%37":`7`,"%38":`8`,"%39":`9`,"%3a":`:`,"%3A":`:`,"%3b":`;`,"%3B":`;`,"%3c":`<`,"%3C":`<`,"%3d":`=`,"%3D":`=`,"%3e":`>`,"%3E":`>`,"%3f":`?`,"%3F":`?`,"%40":`@`,"%41":`A`,"%42":`B`,"%43":`C`,"%44":`D`,"%45":`E`,"%46":`F`,"%47":`G`,"%48":`H`,"%49":`I`,"%4a":`J`,"%4A":`J`,"%4b":`K`,"%4B":`K`,"%4c":`L`,"%4C":`L`,"%4d":`M`,"%4D":`M`,"%4e":`N`,"%4E":`N`,"%4f":`O`,"%4F":`O`,"%50":`P`,"%51":`Q`,"%52":`R`,"%53":`S`,"%54":`T`,"%55":`U`,"%56":`V`,"%57":`W`,"%58":`X`,"%59":`Y`,"%5a":`Z`,"%5A":`Z`,"%5b":`[`,"%5B":`[`,"%5c":`\\`,"%5C":`\\`,"%5d":`]`,"%5D":`]`,"%5e":`^`,"%5E":`^`,"%5f":`_`,"%5F":`_`,"%60":"`","%61":`a`,"%62":`b`,"%63":`c`,"%64":`d`,"%65":`e`,"%66":`f`,"%67":`g`,"%68":`h`,"%69":`i`,"%6a":`j`,"%6A":`j`,"%6b":`k`,"%6B":`k`,"%6c":`l`,"%6C":`l`,"%6d":`m`,"%6D":`m`,"%6e":`n`,"%6E":`n`,"%6f":`o`,"%6F":`o`,"%70":`p`,"%71":`q`,"%72":`r`,"%73":`s`,"%74":`t`,"%75":`u`,"%76":`v`,"%77":`w`,"%78":`x`,"%79":`y`,"%7a":`z`,"%7A":`z`,"%7b":`{`,"%7B":`{`,"%7c":`|`,"%7C":`|`,"%7d":`}`,"%7D":`}`,"%7e":`~`,"%7E":`~`,"%7f":``,"%7F":``,"%80":`€`,"%81":``,"%82":`‚`,"%83":`ƒ`,"%84":`„`,"%85":`…`,"%86":`†`,"%87":`‡`,"%88":`ˆ`,"%89":`‰`,"%8a":`Š`,"%8A":`Š`,"%8b":`‹`,"%8B":`‹`,"%8c":`Œ`,"%8C":`Œ`,"%8d":``,"%8D":``,"%8e":`Ž`,"%8E":`Ž`,"%8f":``,"%8F":``,"%90":``,"%91":`‘`,"%92":`’`,"%93":`“`,"%94":`”`,"%95":`•`,"%96":`–`,"%97":`—`,"%98":`˜`,"%99":`™`,"%9a":`š`,"%9A":`š`,"%9b":`›`,"%9B":`›`,"%9c":`œ`,"%9C":`œ`,"%9d":``,"%9D":``,"%9e":`ž`,"%9E":`ž`,"%9f":`Ÿ`,"%9F":`Ÿ`,"%a0":`\xA0`,"%A0":`\xA0`,"%a1":`¡`,"%A1":`¡`,"%a2":`¢`,"%A2":`¢`,"%a3":`£`,"%A3":`£`,"%a4":`¤`,"%A4":`¤`,"%a5":`¥`,"%A5":`¥`,"%a6":`¦`,"%A6":`¦`,"%a7":`§`,"%A7":`§`,"%a8":`¨`,"%A8":`¨`,"%a9":`©`,"%A9":`©`,"%aa":`ª`,"%Aa":`ª`,"%aA":`ª`,"%AA":`ª`,"%ab":`«`,"%Ab":`«`,"%aB":`«`,"%AB":`«`,"%ac":`¬`,"%Ac":`¬`,"%aC":`¬`,"%AC":`¬`,"%ad":`­`,"%Ad":`­`,"%aD":`­`,"%AD":`­`,"%ae":`®`,"%Ae":`®`,"%aE":`®`,"%AE":`®`,"%af":`¯`,"%Af":`¯`,"%aF":`¯`,"%AF":`¯`,"%b0":`°`,"%B0":`°`,"%b1":`±`,"%B1":`±`,"%b2":`²`,"%B2":`²`,"%b3":`³`,"%B3":`³`,"%b4":`´`,"%B4":`´`,"%b5":`µ`,"%B5":`µ`,"%b6":``,"%B6":``,"%b7":`·`,"%B7":`·`,"%b8":`¸`,"%B8":`¸`,"%b9":`¹`,"%B9":`¹`,"%ba":`º`,"%Ba":`º`,"%bA":`º`,"%BA":`º`,"%bb":`»`,"%Bb":`»`,"%bB":`»`,"%BB":`»`,"%bc":`¼`,"%Bc":`¼`,"%bC":`¼`,"%BC":`¼`,"%bd":`½`,"%Bd":`½`,"%bD":`½`,"%BD":`½`,"%be":`¾`,"%Be":`¾`,"%bE":`¾`,"%BE":`¾`,"%bf":`¿`,"%Bf":`¿`,"%bF":`¿`,"%BF":`¿`,"%c0":`À`,"%C0":`À`,"%c1":`Á`,"%C1":`Á`,"%c2":`Â`,"%C2":`Â`,"%c3":`Ã`,"%C3":`Ã`,"%c4":`Ä`,"%C4":`Ä`,"%c5":`Å`,"%C5":`Å`,"%c6":`Æ`,"%C6":`Æ`,"%c7":`Ç`,"%C7":`Ç`,"%c8":`È`,"%C8":`È`,"%c9":`É`,"%C9":`É`,"%ca":`Ê`,"%Ca":`Ê`,"%cA":`Ê`,"%CA":`Ê`,"%cb":`Ë`,"%Cb":`Ë`,"%cB":`Ë`,"%CB":`Ë`,"%cc":`Ì`,"%Cc":`Ì`,"%cC":`Ì`,"%CC":`Ì`,"%cd":`Í`,"%Cd":`Í`,"%cD":`Í`,"%CD":`Í`,"%ce":`Î`,"%Ce":`Î`,"%cE":`Î`,"%CE":`Î`,"%cf":`Ï`,"%Cf":`Ï`,"%cF":`Ï`,"%CF":`Ï`,"%d0":`Ð`,"%D0":`Ð`,"%d1":`Ñ`,"%D1":`Ñ`,"%d2":`Ò`,"%D2":`Ò`,"%d3":`Ó`,"%D3":`Ó`,"%d4":`Ô`,"%D4":`Ô`,"%d5":`Õ`,"%D5":`Õ`,"%d6":`Ö`,"%D6":`Ö`,"%d7":`×`,"%D7":`×`,"%d8":`Ø`,"%D8":`Ø`,"%d9":`Ù`,"%D9":`Ù`,"%da":`Ú`,"%Da":`Ú`,"%dA":`Ú`,"%DA":`Ú`,"%db":`Û`,"%Db":`Û`,"%dB":`Û`,"%DB":`Û`,"%dc":`Ü`,"%Dc":`Ü`,"%dC":`Ü`,"%DC":`Ü`,"%dd":`Ý`,"%Dd":`Ý`,"%dD":`Ý`,"%DD":`Ý`,"%de":`Þ`,"%De":`Þ`,"%dE":`Þ`,"%DE":`Þ`,"%df":`ß`,"%Df":`ß`,"%dF":`ß`,"%DF":`ß`,"%e0":`à`,"%E0":`à`,"%e1":`á`,"%E1":`á`,"%e2":`â`,"%E2":`â`,"%e3":`ã`,"%E3":`ã`,"%e4":`ä`,"%E4":`ä`,"%e5":`å`,"%E5":`å`,"%e6":`æ`,"%E6":`æ`,"%e7":`ç`,"%E7":`ç`,"%e8":`è`,"%E8":`è`,"%e9":`é`,"%E9":`é`,"%ea":`ê`,"%Ea":`ê`,"%eA":`ê`,"%EA":`ê`,"%eb":`ë`,"%Eb":`ë`,"%eB":`ë`,"%EB":`ë`,"%ec":`ì`,"%Ec":`ì`,"%eC":`ì`,"%EC":`ì`,"%ed":`í`,"%Ed":`í`,"%eD":`í`,"%ED":`í`,"%ee":`î`,"%Ee":`î`,"%eE":`î`,"%EE":`î`,"%ef":`ï`,"%Ef":`ï`,"%eF":`ï`,"%EF":`ï`,"%f0":`ð`,"%F0":`ð`,"%f1":`ñ`,"%F1":`ñ`,"%f2":`ò`,"%F2":`ò`,"%f3":`ó`,"%F3":`ó`,"%f4":`ô`,"%F4":`ô`,"%f5":`õ`,"%F5":`õ`,"%f6":`ö`,"%F6":`ö`,"%f7":`÷`,"%F7":`÷`,"%f8":`ø`,"%F8":`ø`,"%f9":`ù`,"%F9":`ù`,"%fa":`ú`,"%Fa":`ú`,"%fA":`ú`,"%FA":`ú`,"%fb":`û`,"%Fb":`û`,"%fB":`û`,"%FB":`û`,"%fc":`ü`,"%Fc":`ü`,"%fC":`ü`,"%FC":`ü`,"%fd":`ý`,"%Fd":`ý`,"%fD":`ý`,"%FD":`ý`,"%fe":`þ`,"%Fe":`þ`,"%fE":`þ`,"%FE": Line truncated
`))}function E(e,t){let{headersList:n}=t,i=(n.get(`referrer-policy`)??``).split(`,`),a=``;if(i.length>0)for(let e=i.length;e!==0;e--){let t=i[e-1].trim();if(r.has(t)){a=t;break}}a!==``&&(e.referrerPolicy=a)}function D(){return`allowed`}function O(){return`success`}function k(){return`success`}function A(e){let t=null;t=e.mode,e.headersList.set(`sec-fetch-mode`,t)}function j(e){let t=e.origin;if(e.responseTainting===`cors`||e.mode===`websocket`)t&&e.headersList.append(`origin`,t);else if(e.method!==`GET`&&e.method!==`HEAD`){switch(e.referrerPolicy){case`no-referrer`:t=null;break;case`no-referrer-when-downgrade`:case`strict-origin`:case`strict-origin-when-cross-origin`:e.origin&&ve(e.origin)&&!ve(_(e))&&(t=null);break;case`same-origin`:U(e,_(e))||(t=null);break;default:}t&&e.headersList.append(`origin`,t)}}function M(e){return o.now()}function N(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function I(){return{referrerPolicy:`strict-origin-when-cross-origin`}}function L(e){return{referrerPolicy:e.referrerPolicy}}function R(e){let t=e.referrerPolicy;d(t);let n=null;if(e.referrer===`client`){let e=a();if(!e||e.origin===`null`)return`no-referrer`;n=new URL(e)}else e.referrer instanceof URL&&(n=e.referrer);let r=z(n),i=z(n,!0);r.toString().length>4096&&(r=i);let o=U(e,r),s=B(r)&&!B(e.url);switch(t){case`origin`:return i??z(n,!0);case`unsafe-url`:return r;case`same-origin`:return o?i:`no-referrer`;case`origin-when-cross-origin`:return o?r:i;case`strict-origin-when-cross-origin`:{let t=_(e);return U(r,t)?r:B(r)&&!B(t)?`no-referrer`:i}case`strict-origin`:case`no-referrer-when-downgrade`:default:return s?`no-referrer`:i}}function z(e,t){return d(e instanceof URL),e.protocol===`file:`||e.protocol===`about:`||e.protocol===`blank:`?`no-referrer`:(e.username=``,e.password=``,e.hash=``,t&&(e.pathname=``,e.search=``),e)}function B(e){if(!(e instanceof URL))return!1;if(e.href===`about:blank`||e.href===`about:srcdoc`||e.protocol===`data:`||e.protocol===`file:`)return!0;return t(e.origin);function t(e){if(e==null||e===`null`)return!1;let t=new URL(e);return!!(t.protocol===`https:`||t.protocol===`wss:`||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||t.hostname===`localhost`||t.hostname.includes(`localhost.`)||t.hostname.endsWith(`.localhost`))}}function V(e,t){if(m===void 0)return!0;let n=te(t);if(n===`no metadata`||n.length===0)return!0;let r=H(n),i=ne(n,r);for(let t of i){let n=t.algo,r=t.hash,i=m.createHash(n).update(e).digest(`base64`);if(i[i.length-1]===`=`&&(i=i[i.length-2]===`=`?i.slice(0,-2):i.slice(0,-1)),re(i,r))return!0}return!1}let ee=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function te(e){let t=[],n=!0;for(let r of e.split(` `)){n=!1;let e=ee.exec(r);if(e===null||e.groups===void 0||e.groups.algo===void 0)continue;let i=e.groups.algo.toLowerCase();p.includes(i)&&t.push(e.groups)}return n===!0?`no metadata`:t}function H(e){let t=e[0].algo;if(t[3]===`5`)return t;for(let n=1;n<e.length;++n){let r=e[n];if(r.algo[3]===`5`){t=`sha512`;break}else if(t[3]===`3`)continue;else r.algo[3]===`3`&&(t=`sha384`)}return t}function ne(e,t){if(e.length===1)return e;let n=0;for(let r=0;r<e.length;++r)e[r].algo===t&&(e[n++]=e[r]);return e.length=n,e}function re(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n]){if(e[n]===`+`&&t[n]===`-`||e[n]===`/`&&t[n]===`_`)continue;return!1}return!0}function ie(e){}function U(e,t){return e.origin===t.origin&&e.origin===`null`||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}function W(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return{promise:n,resolve:e,reject:t}}function ae(e){return e.controller.state===`aborted`}function oe(e){return e.controller.state===`aborted`||e.controller.state===`terminated`}let G={delete:`DELETE`,DELETE:`DELETE`,get:`GET`,GET:`GET`,head:`HEAD`,HEAD:`HEAD`,options:`OPTIONS`,OPTIONS:`OPTIONS`,post:`POST`,POST:`POST`,put:`PUT`,PUT:`PUT`};Object.setPrototypeOf(G,null);function se(e){return G[e.toLowerCase()]??e}function ce(e){let t=JSON.stringify(e);if(t===void 0)throw TypeError(`Value is not JSON serializable`);return d(typeof t==`string`),t}let le=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function K(e,t,n){let r={index:0,kind:n,target:e},i={next(){if(Object.getPrototypeOf(this)!==i)throw TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let{index:e,kind:n,target:a}=r,o=a(),s=o.length;if(e>=s)return{value:void 0,done:!0};let c=o[e];return r.index=e+1,q(c,n)},[Symbol.toStringTag]:`${t} Iterator`};return Object.setPrototypeOf(i,le),Object.setPrototypeOf({},i)}function q(e,t){let n;switch(t){case`key`:n=e[0];break;case`value`:n=e[1];break;case`key+value`Line truncated
`,"%0b":`\v`,"%0B":`\v`,"%0c":`\f`,"%0C":`\f`,"%0d":`\r`,"%0D":`\r`,"%0e":``,"%0E":``,"%0f":``,"%0F":``,"%10":``,"%11":``,"%12":``,"%13":``,"%14":``,"%15":``,"%16":``,"%17":``,"%18":``,"%19":``,"%1a":``,"%1A":``,"%1b":`\x1B`,"%1B":`\x1B`,"%1c":``,"%1C":``,"%1d":``,"%1D":``,"%1e":``,"%1E":``,"%1f":``,"%1F":``,"%20":` `,"%21":`!`,"%22":`"`,"%23":`#`,"%24":`$`,"%25":`%`,"%26":`&`,"%27":`'`,"%28":`(`,"%29":`)`,"%2a":`*`,"%2A":`*`,"%2b":`+`,"%2B":`+`,"%2c":`,`,"%2C":`,`,"%2d":`-`,"%2D":`-`,"%2e":`.`,"%2E":`.`,"%2f":`/`,"%2F":`/`,"%30":`0`,"%31":`1`,"%32":`2`,"%33":`3`,"%34":`4`,"%35":`5`,"%36":`6`,"%37":`7`,"%38":`8`,"%39":`9`,"%3a":`:`,"%3A":`:`,"%3b":`;`,"%3B":`;`,"%3c":`<`,"%3C":`<`,"%3d":`=`,"%3D":`=`,"%3e":`>`,"%3E":`>`,"%3f":`?`,"%3F":`?`,"%40":`@`,"%41":`A`,"%42":`B`,"%43":`C`,"%44":`D`,"%45":`E`,"%46":`F`,"%47":`G`,"%48":`H`,"%49":`I`,"%4a":`J`,"%4A":`J`,"%4b":`K`,"%4B":`K`,"%4c":`L`,"%4C":`L`,"%4d":`M`,"%4D":`M`,"%4e":`N`,"%4E":`N`,"%4f":`O`,"%4F":`O`,"%50":`P`,"%51":`Q`,"%52":`R`,"%53":`S`,"%54":`T`,"%55":`U`,"%56":`V`,"%57":`W`,"%58":`X`,"%59":`Y`,"%5a":`Z`,"%5A":`Z`,"%5b":`[`,"%5B":`[`,"%5c":`\\`,"%5C":`\\`,"%5d":`]`,"%5D":`]`,"%5e":`^`,"%5E":`^`,"%5f":`_`,"%5F":`_`,"%60":"`","%61":`a`,"%62":`b`,"%63":`c`,"%64":`d`,"%65":`e`,"%66":`f`,"%67":`g`,"%68":`h`,"%69":`i`,"%6a":`j`,"%6A":`j`,"%6b":`k`,"%6B":`k`,"%6c":`l`,"%6C":`l`,"%6d":`m`,"%6D":`m`,"%6e":`n`,"%6E":`n`,"%6f":`o`,"%6F":`o`,"%70":`p`,"%71":`q`,"%72":`r`,"%73":`s`,"%74":`t`,"%75":`u`,"%76":`v`,"%77":`w`,"%78":`x`,"%79":`y`,"%7a":`z`,"%7A":`z`,"%7b":`{`,"%7B":`{`,"%7c":`|`,"%7C":`|`,"%7d":`}`,"%7D":`}`,"%7e":`~`,"%7E":`~`,"%7f":``,"%7F":``,"%80":`€`,"%81":``,"%82":`‚`,"%83":`ƒ`,"%84":`„`,"%85":`…`,"%86":`†`,"%87":`‡`,"%88":`ˆ`,"%89":`‰`,"%8a":`Š`,"%8A":`Š`,"%8b":`‹`,"%8B":`‹`,"%8c":`Œ`,"%8C":`Œ`,"%8d":``,"%8D":``,"%8e":`Ž`,"%8E":`Ž`,"%8f":``,"%8F":``,"%90":``,"%91":`‘`,"%92":`’`,"%93":`“`,"%94":`”`,"%95":`•`,"%96":`–`,"%97":`—`,"%98":`˜`,"%99":`™`,"%9a":`š`,"%9A":`š`,"%9b":`›`,"%9B":`›`,"%9c":`œ`,"%9C":`œ`,"%9d":``,"%9D":``,"%9e":`ž`,"%9E":`ž`,"%9f":`Ÿ`,"%9F":`Ÿ`,"%a0":`\xA0`,"%A0":`\xA0`,"%a1":`¡`,"%A1":`¡`,"%a2":`¢`,"%A2":`¢`,"%a3":`£`,"%A3":`£`,"%a4":`¤`,"%A4":`¤`,"%a5":`¥`,"%A5":`¥`,"%a6":`¦`,"%A6":`¦`,"%a7":`§`,"%A7":`§`,"%a8":`¨`,"%A8":`¨`,"%a9":`©`,"%A9":`©`,"%aa":`ª`,"%Aa":`ª`,"%aA":`ª`,"%AA":`ª`,"%ab":`«`,"%Ab":`«`,"%aB":`«`,"%AB":`«`,"%ac":`¬`,"%Ac":`¬`,"%aC":`¬`,"%AC":`¬`,"%ad":`­`,"%Ad":`­`,"%aD":`­`,"%AD":`­`,"%ae":`®`,"%Ae":`®`,"%aE":`®`,"%AE":`®`,"%af":`¯`,"%Af":`¯`,"%aF":`¯`,"%AF":`¯`,"%b0":`°`,"%B0":`°`,"%b1":`±`,"%B1":`±`,"%b2":`²`,"%B2":`²`,"%b3":`³`,"%B3":`³`,"%b4":`´`,"%B4":`´`,"%b5":`µ`,"%B5":`µ`,"%b6":``,"%B6":``,"%b7":`·`,"%B7":`·`,"%b8":`¸`,"%B8":`¸`,"%b9":`¹`,"%B9":`¹`,"%ba":`º`,"%Ba":`º`,"%bA":`º`,"%BA":`º`,"%bb":`»`,"%Bb":`»`,"%bB":`»`,"%BB":`»`,"%bc":`¼`,"%Bc":`¼`,"%bC":`¼`,"%BC":`¼`,"%bd":`½`,"%Bd":`½`,"%bD":`½`,"%BD":`½`,"%be":`¾`,"%Be":`¾`,"%bE":`¾`,"%BE":`¾`,"%bf":`¿`,"%Bf":`¿`,"%bF":`¿`,"%BF":`¿`,"%c0":`À`,"%C0":`À`,"%c1":`Á`,"%C1":`Á`,"%c2":`Â`,"%C2":`Â`,"%c3":`Ã`,"%C3":`Ã`,"%c4":`Ä`,"%C4":`Ä`,"%c5":`Å`,"%C5":`Å`,"%c6":`Æ`,"%C6":`Æ`,"%c7":`Ç`,"%C7":`Ç`,"%c8":`È`,"%C8":`È`,"%c9":`É`,"%C9":`É`,"%ca":`Ê`,"%Ca":`Ê`,"%cA":`Ê`,"%CA":`Ê`,"%cb":`Ë`,"%Cb":`Ë`,"%cB":`Ë`,"%CB":`Ë`,"%cc":`Ì`,"%Cc":`Ì`,"%cC":`Ì`,"%CC":`Ì`,"%cd":`Í`,"%Cd":`Í`,"%cD":`Í`,"%CD":`Í`,"%ce":`Î`,"%Ce":`Î`,"%cE":`Î`,"%CE":`Î`,"%cf":`Ï`,"%Cf":`Ï`,"%cF":`Ï`,"%CF":`Ï`,"%d0":`Ð`,"%D0":`Ð`,"%d1":`Ñ`,"%D1":`Ñ`,"%d2":`Ò`,"%D2":`Ò`,"%d3":`Ó`,"%D3":`Ó`,"%d4":`Ô`,"%D4":`Ô`,"%d5":`Õ`,"%D5":`Õ`,"%d6":`Ö`,"%D6":`Ö`,"%d7":`×`,"%D7":`×`,"%d8":`Ø`,"%D8":`Ø`,"%d9":`Ù`,"%D9":`Ù`,"%da":`Ú`,"%Da":`Ú`,"%dA":`Ú`,"%DA":`Ú`,"%db":`Û`,"%Db":`Û`,"%dB":`Û`,"%DB":`Û`,"%dc":`Ü`,"%Dc":`Ü`,"%dC":`Ü`,"%DC":`Ü`,"%dd":`Ý`,"%Dd":`Ý`,"%dD":`Ý`,"%DD":`Ý`,"%de":`Þ`,"%De":`Þ`,"%dE":`Þ`,"%DE":`Þ`,"%df":`ß`,"%Df":`ß`,"%dF":`ß`,"%DF":`ß`,"%e0":`à`,"%E0":`à`,"%e1":`á`,"%E1":`á`,"%e2":`â`,"%E2":`â`,"%e3":`ã`,"%E3":`ã`,"%e4":`ä`,"%E4":`ä`,"%e5":`å`,"%E5":`å`,"%e6":`æ`,"%E6":`æ`,"%e7":`ç`,"%E7":`ç`,"%e8":`è`,"%E8":`è`,"%e9":`é`,"%E9":`é`,"%ea":`ê`,"%Ea":`ê`,"%eA":`ê`,"%EA":`ê`,"%eb":`ë`,"%Eb":`ë`,"%eB":`ë`,"%EB":`ë`,"%ec":`ì`,"%Ec":`ì`,"%eC":`ì`,"%EC":`ì`,"%ed":`í`,"%Ed":`í`,"%eD":`í`,"%ED":`í`,"%ee":`î`,"%Ee":`î`,"%eE":`î`,"%EE":`î`,"%ef":`ï`,"%Ef":`ï`,"%eF":`ï`,"%EF":`ï`,"%f0":`ð`,"%F0":`ð`,"%f1":`ñ`,"%F1":`ñ`,"%f2":`ò`,"%F2":`ò`,"%f3":`ó`,"%F3":`ó`,"%f4":`ô`,"%F4":`ô`,"%f5":`õ`,"%F5":`õ`,"%f6":`ö`,"%F6":`ö`,"%f7":`÷`,"%F7":`÷`,"%f8":`ø`,"%F8":`ø`,"%f9":`ù`,"%F9":`ù`,"%fa":`ú`,"%Fa":`ú`,"%fA":`ú`,"%FA":`ú`,"%fb":`û`,"%Fb":`û`,"%fB":`û`,"%FB":`û`,"%fc":`ü`,"%Fc":`ü`,"%fC":`ü`,"%FC":`ü`,"%fd":`ý`,"%Fd":`ý`,"%fD":`ý`,"%FD":`ý`,"%fe":`þ`,"%Fe":`þ`,"%fE":`þ`,"%FE": Line truncated
`))}function E(e,t){let{headersList:n}=t,i=(n.get(`referrer-policy`)??``).split(`,`),a=``;if(i.length>0)for(let e=i.length;e!==0;e--){let t=i[e-1].trim();if(r.has(t)){a=t;break}}a!==``&&(e.referrerPolicy=a)}function D(){return`allowed`}function O(){return`success`}function k(){return`success`}function A(e){let t=null;t=e.mode,e.headersList.set(`sec-fetch-mode`,t)}function j(e){let t=e.origin;if(e.responseTainting===`cors`||e.mode===`websocket`)t&&e.headersList.append(`origin`,t);else if(e.method!==`GET`&&e.method!==`HEAD`){switch(e.referrerPolicy){case`no-referrer`:t=null;break;case`no-referrer-when-downgrade`:case`strict-origin`:case`strict-origin-when-cross-origin`:e.origin&&ye(e.origin)&&!ye(_(e))&&(t=null);break;case`same-origin`:H(e,_(e))||(t=null);break;default:}t&&e.headersList.append(`origin`,t)}}function M(e){return o.now()}function N(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function I(){return{referrerPolicy:`strict-origin-when-cross-origin`}}function L(e){return{referrerPolicy:e.referrerPolicy}}function R(e){let t=e.referrerPolicy;d(t);let n=null;if(e.referrer===`client`){let e=a();if(!e||e.origin===`null`)return`no-referrer`;n=new URL(e)}else e.referrer instanceof URL&&(n=e.referrer);let r=z(n),i=z(n,!0);r.toString().length>4096&&(r=i);let o=H(e,r),s=B(r)&&!B(e.url);switch(t){case`origin`:return i??z(n,!0);case`unsafe-url`:return r;case`same-origin`:return o?i:`no-referrer`;case`origin-when-cross-origin`:return o?r:i;case`strict-origin-when-cross-origin`:{let t=_(e);return H(r,t)?r:B(r)&&!B(t)?`no-referrer`:i}case`strict-origin`:case`no-referrer-when-downgrade`:default:return s?`no-referrer`:i}}function z(e,t){return d(e instanceof URL),e.protocol===`file:`||e.protocol===`about:`||e.protocol===`blank:`?`no-referrer`:(e.username=``,e.password=``,e.hash=``,t&&(e.pathname=``,e.search=``),e)}function B(e){if(!(e instanceof URL))return!1;if(e.href===`about:blank`||e.href===`about:srcdoc`||e.protocol===`data:`||e.protocol===`file:`)return!0;return t(e.origin);function t(e){if(e==null||e===`null`)return!1;let t=new URL(e);return!!(t.protocol===`https:`||t.protocol===`wss:`||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||t.hostname===`localhost`||t.hostname.includes(`localhost.`)||t.hostname.endsWith(`.localhost`))}}function V(e,t){if(m===void 0)return!0;let n=te(t);if(n===`no metadata`||n.length===0)return!0;let r=ne(n),i=re(n,r);for(let t of i){let n=t.algo,r=t.hash,i=m.createHash(n).update(e).digest(`base64`);if(i[i.length-1]===`=`&&(i=i[i.length-2]===`=`?i.slice(0,-2):i.slice(0,-1)),ie(i,r))return!0}return!1}let ee=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function te(e){let t=[],n=!0;for(let r of e.split(` `)){n=!1;let e=ee.exec(r);if(e===null||e.groups===void 0||e.groups.algo===void 0)continue;let i=e.groups.algo.toLowerCase();p.includes(i)&&t.push(e.groups)}return n===!0?`no metadata`:t}function ne(e){let t=e[0].algo;if(t[3]===`5`)return t;for(let n=1;n<e.length;++n){let r=e[n];if(r.algo[3]===`5`){t=`sha512`;break}else if(t[3]===`3`)continue;else r.algo[3]===`3`&&(t=`sha384`)}return t}function re(e,t){if(e.length===1)return e;let n=0;for(let r=0;r<e.length;++r)e[r].algo===t&&(e[n++]=e[r]);return e.length=n,e}function ie(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n]){if(e[n]===`+`&&t[n]===`-`||e[n]===`/`&&t[n]===`_`)continue;return!1}return!0}function ae(e){}function H(e,t){return e.origin===t.origin&&e.origin===`null`||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}function U(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return{promise:n,resolve:e,reject:t}}function oe(e){return e.controller.state===`aborted`}function se(e){return e.controller.state===`aborted`||e.controller.state===`terminated`}let W={delete:`DELETE`,DELETE:`DELETE`,get:`GET`,GET:`GET`,head:`HEAD`,HEAD:`HEAD`,options:`OPTIONS`,OPTIONS:`OPTIONS`,post:`POST`,POST:`POST`,put:`PUT`,PUT:`PUT`};Object.setPrototypeOf(W,null);function ce(e){return W[e.toLowerCase()]??e}function le(e){let t=JSON.stringify(e);if(t===void 0)throw TypeError(`Value is not JSON serializable`);return d(typeof t==`string`),t}let ue=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function G(e,t,n){let r={index:0,kind:n,target:e},i={next(){if(Object.getPrototypeOf(this)!==i)throw TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let{index:e,kind:n,target:a}=r,o=a(),s=o.length;if(e>=s)return{value:void 0,done:!0};let c=o[e];return r.index=e+1,K(c,n)},[Symbol.toStringTag]:`${t} Iterator`};return Object.setPrototypeOf(i,ue),Object.setPrototypeOf({},i)}function K(e,t){let n;switch(t){case`key`:n=e[0];break;case`value`:n=e[1];break;case`key+valuLine truncated
`||e===` `||e===` `}function x(e,t=!0,n=!0){let r=0,i=e.length-1;if(t)for(;r<e.length&&b(e[r]);r++);if(n)for(;i>0&&b(e[i]);i--);return e.slice(r,i+1)}function S(e){return e===`\r`||e===`
`||e===` `||e===`\f`||e===` `}function C(e,t=!0,n=!0){let r=0,i=e.length-1;if(t)for(;r<e.length&&S(e[r]);r++);if(n)for(;i>0&&S(e[i]);i--);return e.slice(r,i+1)}t.exports={dataURLProcessor:l,URLSerializer:d,collectASequenceOfCodePoints:f,collectASequenceOfCodePointsFast:p,stringPercentDecode:m,parseMIMEType:g,collectAnHTTPQuotedString:v,serializeAMimeType:y}}),B=s((exports,t)=>{let{Blob:n,File:r}=u(`buffer`),{types:i}=u(`util`),{kState:a}=L(),{isBlobLike:o}=I(),{webidl:s}=R(),{parseMIMEType:c,serializeAMimeType:l}=z(),{kEnumerableProperty:d}=b(),f=new TextEncoder;var p=class e extends n{constructor(e,t,n={}){s.argumentLengthCheck(arguments,2,{header:`File constructor`}),e=s.converters[`sequence<BlobPart>`](e),t=s.converters.USVString(t),n=s.converters.FilePropertyBag(n);let r=t,i=n.type,o;substep:{if(i){if(i=c(i),i===`failure`){i=``;break substep}i=l(i).toLowerCase()}o=n.lastModified}super(h(e,n),{type:i}),this[a]={name:r,lastModified:o,type:i}}get name(){return s.brandCheck(this,e),this[a].name}get lastModified(){return s.brandCheck(this,e),this[a].lastModified}get type(){return s.brandCheck(this,e),this[a].type}},m=class e{constructor(e,t,n={}){let r=t,i=n.type,o=n.lastModified??Date.now();this[a]={blobLike:e,name:r,type:i,lastModified:o}}stream(...t){return s.brandCheck(this,e),this[a].blobLike.stream(...t)}arrayBuffer(...t){return s.brandCheck(this,e),this[a].blobLike.arrayBuffer(...t)}slice(...t){return s.brandCheck(this,e),this[a].blobLike.slice(...t)}text(...t){return s.brandCheck(this,e),this[a].blobLike.text(...t)}get size(){return s.brandCheck(this,e),this[a].blobLike.size}get type(){return s.brandCheck(this,e),this[a].blobLike.type}get name(){return s.brandCheck(this,e),this[a].name}get lastModified(){return s.brandCheck(this,e),this[a].lastModified}get[Symbol.toStringTag](){return`File`}};Object.defineProperties(p.prototype,{[Symbol.toStringTag]:{value:`File`,configurable:!0},name:d,lastModified:d}),s.converters.Blob=s.interfaceConverter(n),s.converters.BlobPart=function(e,t){if(s.util.Type(e)===`Object`){if(o(e))return s.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||i.isAnyArrayBuffer(e))return s.converters.BufferSource(e,t)}return s.converters.USVString(e,t)},s.converters[`sequence<BlobPart>`]=s.sequenceConverter(s.converters.BlobPart),s.converters.FilePropertyBag=s.dictionaryConverter([{key:`lastModified`,converter:s.converters[`long long`],get defaultValue(){return Date.now()}},{key:`type`,converter:s.converters.DOMString,defaultValue:``},{key:`endings`,converter:e=>(e=s.converters.DOMString(e),e=e.toLowerCase(),e!==`native`&&(e=`transparent`),e),defaultValue:`transparent`}]);function h(e,t){let n=[];for(let r of e)if(typeof r==`string`){let e=r;t.endings===`native`&&(e=g(e)),n.push(f.encode(e))}else i.isAnyArrayBuffer(r)||i.isTypedArray(r)?r.buffer?n.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):n.push(new Uint8Array(r)):o(r)&&n.push(r);return n}function g(e){let t=`
`;return process.platform===`win32`&&(t=`\r
`),e.replace(/\r?\n/g,t)}function _(e){return r&&e instanceof r||e instanceof p||e&&(typeof e.stream==`function`||typeof e.arrayBuffer==`function`)&&e[Symbol.toStringTag]===`File`}t.exports={File:p,FileLike:m,isFileLike:_}}),V=s((exports,t)=>{let{isBlobLike:n,toUSVString:r,makeIterator:i}=I(),{kState:a}=L(),{File:o,FileLike:s,isFileLike:c}=B(),{webidl:l}=R(),{Blob:d,File:f}=u(`buffer`),p=f??o;var m=class e{constructor(e){if(e!==void 0)throw l.errors.conversionFailed({prefix:`FormData constructor`,argument:`Argument 1`,types:[`undefined`]});this[a]=[]}append(t,r,i=void 0){if(l.brandCheck(this,e),l.argumentLengthCheck(arguments,2,{header:`FormData.append`}),arguments.length===3&&!n(r))throw TypeError(`Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'`);t=l.converters.USVString(t),r=n(r)?l.converters.Blob(r,{strict:!1}):l.converters.USVString(r),i=arguments.length===3?l.converters.USVString(i):void 0;let o=h(t,r,i);this[a].push(o)}delete(t){l.brandCheck(this,e),l.argumentLengthCheck(arguments,1,{header:`FormData.delete`}),t=l.converters.USVString(t),this[a]=this[a].filter(e=>e.name!==t)}get(t){l.brandCheck(this,e),l.argumentLengthCheck(arguments,1,{header:`FormData.get`}),t=l.converters.USVString(t);let n=this[a].findIndex(e=>e.name===t);return n===-1?null:this[a][n].value}getAll(t){return l.brandCheck(this,e),l.argumentLengthCheck(arguments,1,{header:`FormData.getAll`}),t=l.converters.USVString(t),this[a].filter(e=>e.name===t).map(e=>e.value)}has(t){return l.brandCheck(this,e),l.argumentLengthCheck(arguments,1,{header:`FormData.has`}),t=l.converters.USVString(t),this[a].findIndex(e=>e.name===t)!==-1}set(t,i,o=void 0){if(l.brandCheck(this,e),l.argumentLengthCheck(arguments,2,{header:`FormData.set`}),arguments.length===3&&!n(i))throw TypeError(`Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'`);t=l.converters.USVString(t),i=n(i)?l.converters.Blob(i,{strict:!1}):l.converters.USVString(i),o=arguments.length===3?r(o):void 0;let s=h(t,i,o),c=this[a].findIndex(e=>e.name===t);c===-1?this[a].push(s):this[a]=[...this[a].slice(0,c),s,...this[a].slice(c+1).filter(e=>e.name!==t)]}entries(){return l.brandCheck(this,e),i(()=>this[a].map(e=>[e.name,e.value]),`FormData`,`key+value`)}keys(){return l.brandCheck(this,e),i(()=>this[a].map(e=>[e.name,e.value]),`FormData`,`key`)}values(){return l.brandCheck(this,e),i(()=>this[a].map(e=>[e.name,e.value]),`FormData`,`value`)}forEach(t,n=globalThis){if(l.brandCheck(this,e),l.argumentLengthCheck(arguments,1,{header:`FormData.forEach`}),typeof t!=`function`)throw TypeError(`Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.`);for(let[e,r]of this)t.apply(n,[r,e,this])}};m.prototype[Symbol.iterator]=m.prototype.entries,Object.defineProperties(m.prototype,{[Symbol.toStringTag]:{value:`FormData`,configurable:!0}});function h(e,t,n){if(e=Buffer.from(e).toString(`utf8`),typeof t==`string`)t=Buffer.from(t).toString(`utf8`);else if(c(t)||(t=t instanceof d?new p([t],`blob`,{type:t.type}):new s(t,`blob`,{type:t.type})),n!==void 0){let e={type:t.type,lastModified:t.lastModified};t=f&&t instanceof f||t instanceof o?new p([t],n,e):new s(t,n,e)}return{name:e,value:t}}t.exports={FormData:m}}),ee=s((exports,t)=>{let n=N(),r=b(),{ReadableStreamFrom:i,isBlobLike:a,isReadableStreamLike:o,readableStreamClose:s,createDeferredPromise:c,fullyReadBody:l}=I(),{FormData:d}=V(),{kState:f}=L(),{webidl:p}=R(),{DOMException:m,structuredClone:h}=P(),{Blob:g,File:v}=u(`buffer`),{kBodyUsed:y}=_(),x=u(`assert`),{isErrored:S}=b(),{isUint8Array:C,isArrayBuffer:w}=u(`util/types`),{File:T}=B(),{parseMIMEType:E,serializeAMimeType:D}=z(),O;try{let e=u(`node:crypto`);O=t=>e.randomInt(0,t)}catch{O=e=>Math.floor(Math.random(e))}let k=globalThis.ReadableStream,A=v??T,j=new TextEncoder,M=new TextDecoder;function F(e,t=!1){k||=u(`stream/web`).ReadableStream;let n=null;n=e instanceof k?e:a(e)?e.stream():new k({async pull(e){e.enqueue(typeof l==`string`?j.encode(l):l),queueMicrotask(()=>s(e))},start(){},type:void 0}),x(o(n));let c=null,l=null,d=null,f=null;if(typeof e==`string`)l=e,f=`text/plain;charset=UTF-8`;else if(e instanceof URLSearchParams)l=e.toString(),f=`application/x-www-form-urlencoded;charset=UTF-8`;else if(w(e))l=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(r.isFormDataLike(e)){let t=`----formdata-undici-0${`${O(1e11)}`.padStart(11,`0`)}`,n=`--${t}\r\nContent-Disposition: form-data`,r=e=>e.replace(/\n/g,`%0A`).replace(/\r/g,`%0D`).replace(/"/g,`%22`),i=e=>e.replace(/\r?\n|\r/g,`\r
`),a=[],o=new Uint8Array([13,10]);d=0;let s=!1;for(let[t,c]of e)if(typeof c==`string`){let e=j.encode(n+`; name="${r(i(t))}"\r\n\r\n${i(c)}\r\n`);a.push(e),d+=e.byteLength}else{let e=j.encode(`${n}; name="${r(i(t))}"`+(c.name?`; filename="${r(c.name)}"`:``)+`\r
Content-Type: ${c.type||`application/octet-stream`}\r\n\r\n`);a.push(e,c,o),typeof c.size==`number`?d+=e.byteLength+c.size+o.byteLength:s=!0}let u=j.encode(`--${t}--`);a.push(u),d+=u.byteLength,s&&(d=null),l=e,c=async function*(){for(let e of a)e.stream?yield*e.stream():yield e},f=`multipart/form-data; boundary=`+t}else if(a(e))l=e,d=e.size,e.type&&(f=e.type);else if(typeof e[Symbol.asyncIterator]==`function`){if(t)throw TypeError(`keepalive`);if(r.isDisturbed(e)||e.locked)throw TypeError(`Response body object should not be disturbed or locked`);n=e instanceof k?e:i(e)}if((typeof l==`string`||r.isBuffer(l))&&(d=Buffer.byteLength(l)),c!=null){let t;n=new k({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){let{value:r,done:i}=await t.next();return i?queueMicrotask(()=>{e.close()}):S(n)||e.enqueue(new Uint8Array(r)),e.desiredSize>0},async cancel(e){await t.return()},type:void 0})}let p={stream:n,source:l,length:d};return[p,f]}function ee(e,t=!1){return k||=u(`stream/web`).ReadableStream,e instanceof k&&(x(!r.isDisturbed(e),`The body has already been consumed.`),x(!e.locked,`The stream is locked.`)),F(e,t)}function te(e){let[t,n]=e.stream.tee(),r=h(n,{transfer:[n]}),[,i]=r.tee();return e.stream=t,{stream:i,length:e.length,source:e.source}}async function*H(e){if(e)if(C(e))yield e;else{let t=e.stream;if(r.isDisturbed(t))throw TypeError(`The body has already been consumed.`);if(t.locked)throw TypeError(`The stream is locked.`);t[y]=!0,yield*t}}function ne(e){if(e.aborted)throw new m(`The operation was aborted.`,`AbortError`)}function re(e){let t={blob(){return U(this,e=>{let t=G(this);return t===`failure`?t=``:t&&=D(t),new g([e],{type:t})},e)},arrayBuffer(){return U(this,e=>new Uint8Array(e).buffer,e)},text(){return U(this,ae,e)},json(){return U(this,oe,e)},async formData(){p.brandCheck(this,e),ne(this[f]);let t=this.headers.get(`Content-Type`);if(/multipart\/form-data/.test(t)){let e={};for(let[t,n]of this.headers)e[t.toLowerCase()]=n;let t=new d,r;try{r=new n({headers:e,preservePath:!0})}catch(e){throw new m(`${e}`,`AbortError`)}r.on(`field`,(e,n)=>{t.append(e,n)}),r.on(`file`,(e,n,r,i,a)=>{let o=[];if(i===`base64`||i.toLowerCase()===`base64`){let i=``;n.on(`data`,e=>{i+=e.toString().replace(/[\r\n]/gm,``);let t=i.length-i.length%4;o.push(Buffer.from(i.slice(0,t),`base64`)),i=i.slice(t)}),n.on(`end`,()=>{o.push(Buffer.from(i,`base64`)),t.append(e,new A(o,r,{type:a}))})}else n.on(`data`,e=>{o.push(e)}),n.on(`end`,()=>{t.append(e,new A(o,r,{type:a}))})});let i=new Promise((e,t)=>{r.on(`finish`,e),r.on(`error`,e=>t(TypeError(e)))});if(this.body!==null)for await(let e of H(this[f].body))r.write(e);return r.end(),await i,t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t=``,n=new TextDecoder(`utf-8`,{ignoreBOM:!0});for await(let e of H(this[f].body)){if(!C(e))throw TypeError(`Expected Uint8Array chunk`);t+=n.decode(e,{stream:!0})}t+=n.decode(),e=new URLSearchParams(t)}catch(e){throw Object.assign(TypeError(),{cause:e})}let t=new d;for(let[n,r]of e)t.append(n,r);return t}else throw await Promise.resolve(),ne(this[f]),p.errors.exception({header:`${e.name}.formData`,message:`Could not parse content as FormData.`})}};return t}function ie(e){Object.assign(e.prototype,re(e))}async function U(e,t,n){if(p.brandCheck(e,n),ne(e[f]),W(e[f].body))throw TypeError(`Body is unusable`);let r=c(),i=e=>r.reject(e),a=e=>{try{r.resolve(t(e))}catch(e){i(e)}};return e[f].body==null?(a(new Uint8Array),r.promise):(await l(e[f].body,a,i),r.promise)}function W(e){return e!=null&&(e.stream.locked||r.isDisturbed(e.stream))}function ae(e){if(e.length===0)return``;e[0]===239&&e[1]===187&&e[2]===191&&(e=e.subarray(3));let t=M.decode(e);return t}function oe(e){return JSON.parse(ae(e))}function G(e){let{headersList:t}=e[f],n=t.get(`content-type`);return n===null?`failure`:E(n)}t.exports={extractBody:F,safelyExtractBody:ee,cloneBody:te,mixinBody:ie}}),te=s((exports,t)=>{let{InvalidArgumentError:n,NotSupportedError:r}=v(),i=u(`assert`),{kHTTP2BuildRequest:a,kHTTP2CopyHeaders:o,kHTTP1BuildRequest:s}=_(),c=b(),l=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,d=/[^\t\x20-\x7e\x80-\xff]/,f=/[^\u0021-\u00ff]/,p=Symbol(`handler`),m={},h;try{let e=u(`diagnostics_channel`);m.create=e.channel(`undici:request:create`),m.bodySent=e.channel(`undici:request:bodySent`),m.headers=e.channel(`undici:request:headers`),m.trailers=e.channel(`undici:request:trailers`),m.error=e.channel(`undici:request:error`)}catch{m.create={hasSubscribers:!1},m.bodySent={hasSubscribers:!1},m.headers={hasSubscribers:!1},m.trailers={hasSubscribers:!1},m.error={hasSubscribers:!1}}var g=class e{constructor(e,{path:t,method:r,body:i,headers:a,query:o,idempotent:s,blocking:u,upgrade:d,headersTimeout:g,bodyTimeout:_,reset:v,throwOnError:y,expectContinue:b},S){if(typeof t!=`string`)throw new n(`path must be a string`);if(t[0]!==`/`&&!(t.startsWith(`http://`)||t.startsWith(`https://`))&&r!==`CONNECT`)throw new n(`path must be an absolute URL or start with a slash`);if(f.exec(tLine truncated
`),n={};for(let e of t){let[t,r]=e.split(`: `);if(r==null||r.length===0)continue;n[t]?n[t]+=`,${r}`:n[t]=r}return n}};function y(e,t,r){if(t&&typeof t==`object`||(t=t==null?``:`${t}`,d.exec(t)!==null))throw new n(`invalid ${e} header`);return r?t:`${e}: ${t}\r\n`}function x(e,t,i,a=!1){if(i&&typeof i==`object`&&!Array.isArray(i))throw new n(`invalid ${t} header`);if(i!==void 0)if(e.host===null&&t.length===4&&t.toLowerCase()===`host`){if(d.exec(i)!==null)throw new n(`invalid ${t} header`);e.host=i}else if(e.contentLength===null&&t.length===14&&t.toLowerCase()===`content-length`){if(e.contentLength=parseInt(i,10),!Number.isFinite(e.contentLength))throw new n(`invalid content-length header`)}else if(e.contentType===null&&t.length===12&&t.toLowerCase()===`content-type`)e.contentType=i,a?e.headers[t]=y(t,i,a):e.headers+=y(t,i);else if(t.length===17&&t.toLowerCase()===`transfer-encoding`)throw new n(`invalid transfer-encoding header`);else if(t.length===10&&t.toLowerCase()===`connection`){let t=typeof i==`string`?i.toLowerCase():null;if(t!==`close`&&t!==`keep-alive`)throw new n(`invalid connection header`);t===`close`&&(e.reset=!0)}else if(t.length===10&&t.toLowerCase()===`keep-alive`)throw new n(`invalid keep-alive header`);else if(t.length===7&&t.toLowerCase()===`upgrade`)throw new n(`invalid upgrade header`);else if(t.length===6&&t.toLowerCase()===`expect`)throw new r(`expect header not supported`);else if(l.exec(t)===null)throw new n(`invalid header key`);else if(Array.isArray(i))for(let n=0;n<i.length;n++)a?e.headers[t]?e.headers[t]+=`,${y(t,i[n],a)}`:e.headers[t]=y(t,i[n],a):e.headers+=y(t,i[n]);else a?e.headers[t]=y(t,i,a):e.headers+=y(t,i)}t.exports=g}),H=s((exports,t)=>{let n=u(`events`);var r=class extends n{dispatch(){throw Error(`not implemented`)}close(){throw Error(`not implemented`)}destroy(){throw Error(`not implemented`)}};t.exports=r}),ne=s((exports,t)=>{let n=H(),{ClientDestroyedError:r,ClientClosedError:i,InvalidArgumentError:a}=v(),{kDestroy:o,kClose:s,kDispatch:c,kInterceptors:l}=_(),u=Symbol(`destroyed`),d=Symbol(`closed`),f=Symbol(`onDestroyed`),p=Symbol(`onClosed`),m=Symbol(`Intercepted Dispatch`);var h=class extends n{constructor(){super(),this[u]=!1,this[f]=null,this[d]=!1,this[p]=[]}get destroyed(){return this[u]}get closed(){return this[d]}get interceptors(){return this[l]}set interceptors(e){if(e)for(let t=e.length-1;t>=0;t--){let e=this[l][t];if(typeof e!=`function`)throw new a(`interceptor must be an function`)}this[l]=e}close(e){if(e===void 0)return new Promise((e,t)=>{this.close((n,r)=>n?t(n):e(r))});if(typeof e!=`function`)throw new a(`invalid callback`);if(this[u]){queueMicrotask(()=>e(new r,null));return}if(this[d]){this[p]?this[p].push(e):queueMicrotask(()=>e(null,null));return}this[d]=!0,this[p].push(e);let t=()=>{let e=this[p];this[p]=null;for(let t=0;t<e.length;t++)e[t](null,null)};this[s]().then(()=>this.destroy()).then(()=>{queueMicrotask(t)})}destroy(e,t){if(typeof e==`function`&&(t=e,e=null),t===void 0)return new Promise((t,n)=>{this.destroy(e,(e,r)=>e?n(e):t(r))});if(typeof t!=`function`)throw new a(`invalid callback`);if(this[u]){this[f]?this[f].push(t):queueMicrotask(()=>t(null,null));return}e||=new r,this[u]=!0,this[f]=this[f]||[],this[f].push(t);let n=()=>{let e=this[f];this[f]=null;for(let t=0;t<e.length;t++)e[t](null,null)};this[o](e).then(()=>{queueMicrotask(n)})}[m](e,t){if(!this[l]||this[l].length===0)return this[m]=this[c],this[c](e,t);let n=this[c].bind(this);for(let e=this[l].length-1;e>=0;e--)n=this[l][e](n);return this[m]=n,n(e,t)}dispatch(e,t){if(!t||typeof t!=`object`)throw new a(`handler must be an object`);try{if(!e||typeof e!=`object`)throw new a(`opts must be an object.`);if(this[u]||this[f])throw new r;if(this[d])throw new i;return this[m](e,t)}catch(e){if(typeof t.onError!=`function`)throw new a(`invalid onError method`);return t.onError(e),!1}}};t.exports=h}),re=s((exports,t)=>{let n=u(`net`),r=u(`assert`),i=b(),{InvalidArgumentError:a,ConnectTimeoutError:o}=v(),s,c;c=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)return;let t=this._sessionCache.get(e);t!==void 0&&t.deref()===void 0&&this._sessionCache.delete(e)})}get(e){let t=this._sessionCache.get(e);return t?t.deref():null}set(e,t){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(t)),this._sessionRegistry.register(t,e))}}:class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,t){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}};function l({allowH2:e,maxCachedSessions:t,socketPath:o,timeout:l,...p}){if(t!=null&&(!Number.isInteger(t)||t<0))throw new a(`maxCachedSessions must be a poLine truncated
Content-Type: ${c.type||`application/octet-stream`}\r\n\r\n`);a.push(e,c,o),typeof c.size==`number`?d+=e.byteLength+c.size+o.byteLength:s=!0}let u=j.encode(`--${t}--`);a.push(u),d+=u.byteLength,s&&(d=null),l=e,c=async function*(){for(let e of a)e.stream?yield*e.stream():yield e},f=`multipart/form-data; boundary=`+t}else if(a(e))l=e,d=e.size,e.type&&(f=e.type);else if(typeof e[Symbol.asyncIterator]==`function`){if(t)throw TypeError(`keepalive`);if(r.isDisturbed(e)||e.locked)throw TypeError(`Response body object should not be disturbed or locked`);n=e instanceof k?e:i(e)}if((typeof l==`string`||r.isBuffer(l))&&(d=Buffer.byteLength(l)),c!=null){let t;n=new k({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){let{value:r,done:i}=await t.next();return i?queueMicrotask(()=>{e.close()}):S(n)||e.enqueue(new Uint8Array(r)),e.desiredSize>0},async cancel(e){await t.return()},type:void 0})}let p={stream:n,source:l,length:d};return[p,f]}function ee(e,t=!1){return k||=u(`stream/web`).ReadableStream,e instanceof k&&(x(!r.isDisturbed(e),`The body has already been consumed.`),x(!e.locked,`The stream is locked.`)),F(e,t)}function te(e){let[t,n]=e.stream.tee(),r=h(n,{transfer:[n]}),[,i]=r.tee();return e.stream=t,{stream:i,length:e.length,source:e.source}}async function*ne(e){if(e)if(C(e))yield e;else{let t=e.stream;if(r.isDisturbed(t))throw TypeError(`The body has already been consumed.`);if(t.locked)throw TypeError(`The stream is locked.`);t[y]=!0,yield*t}}function re(e){if(e.aborted)throw new m(`The operation was aborted.`,`AbortError`)}function ie(e){let t={blob(){return H(this,e=>{let t=W(this);return t===`failure`?t=``:t&&=D(t),new g([e],{type:t})},e)},arrayBuffer(){return H(this,e=>new Uint8Array(e).buffer,e)},text(){return H(this,oe,e)},json(){return H(this,se,e)},async formData(){p.brandCheck(this,e),re(this[f]);let t=this.headers.get(`Content-Type`);if(/multipart\/form-data/.test(t)){let e={};for(let[t,n]of this.headers)e[t.toLowerCase()]=n;let t=new d,r;try{r=new n({headers:e,preservePath:!0})}catch(e){throw new m(`${e}`,`AbortError`)}r.on(`field`,(e,n)=>{t.append(e,n)}),r.on(`file`,(e,n,r,i,a)=>{let o=[];if(i===`base64`||i.toLowerCase()===`base64`){let i=``;n.on(`data`,e=>{i+=e.toString().replace(/[\r\n]/gm,``);let t=i.length-i.length%4;o.push(Buffer.from(i.slice(0,t),`base64`)),i=i.slice(t)}),n.on(`end`,()=>{o.push(Buffer.from(i,`base64`)),t.append(e,new A(o,r,{type:a}))})}else n.on(`data`,e=>{o.push(e)}),n.on(`end`,()=>{t.append(e,new A(o,r,{type:a}))})});let i=new Promise((e,t)=>{r.on(`finish`,e),r.on(`error`,e=>t(TypeError(e)))});if(this.body!==null)for await(let e of ne(this[f].body))r.write(e);return r.end(),await i,t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t=``,n=new TextDecoder(`utf-8`,{ignoreBOM:!0});for await(let e of ne(this[f].body)){if(!C(e))throw TypeError(`Expected Uint8Array chunk`);t+=n.decode(e,{stream:!0})}t+=n.decode(),e=new URLSearchParams(t)}catch(e){throw Object.assign(TypeError(),{cause:e})}let t=new d;for(let[n,r]of e)t.append(n,r);return t}else throw await Promise.resolve(),re(this[f]),p.errors.exception({header:`${e.name}.formData`,message:`Could not parse content as FormData.`})}};return t}function ae(e){Object.assign(e.prototype,ie(e))}async function H(e,t,n){if(p.brandCheck(e,n),re(e[f]),U(e[f].body))throw TypeError(`Body is unusable`);let r=c(),i=e=>r.reject(e),a=e=>{try{r.resolve(t(e))}catch(e){i(e)}};return e[f].body==null?(a(new Uint8Array),r.promise):(await l(e[f].body,a,i),r.promise)}function U(e){return e!=null&&(e.stream.locked||r.isDisturbed(e.stream))}function oe(e){if(e.length===0)return``;e[0]===239&&e[1]===187&&e[2]===191&&(e=e.subarray(3));let t=M.decode(e);return t}function se(e){return JSON.parse(oe(e))}function W(e){let{headersList:t}=e[f],n=t.get(`content-type`);return n===null?`failure`:E(n)}t.exports={extractBody:F,safelyExtractBody:ee,cloneBody:te,mixinBody:ae}}),te=s((exports,t)=>{let{InvalidArgumentError:n,NotSupportedError:r}=v(),i=u(`assert`),{kHTTP2BuildRequest:a,kHTTP2CopyHeaders:o,kHTTP1BuildRequest:s}=_(),c=b(),l=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,d=/[^\t\x20-\x7e\x80-\xff]/,f=/[^\u0021-\u00ff]/,p=Symbol(`handler`),m={},h;try{let e=u(`diagnostics_channel`);m.create=e.channel(`undici:request:create`),m.bodySent=e.channel(`undici:request:bodySent`),m.headers=e.channel(`undici:request:headers`),m.trailers=e.channel(`undici:request:trailers`),m.error=e.channel(`undici:request:error`)}catch{m.create={hasSubscribers:!1},m.bodySent={hasSubscribers:!1},m.headers={hasSubscribers:!1},m.trailers={hasSubscribers:!1},m.error={hasSubscribers:!1}}var g=class e{constructor(e,{path:t,method:r,body:i,headers:a,query:o,idempotent:s,blocking:u,upgrade:d,headersTimeout:g,bodyTimeout:_,reset:v,throwOnError:y,expectContinue:b},S){if(typeof t!=`string`)throw new n(`path must be a string`);if(t[0]!==`/`&&!(t.startsWith(`http://`)||t.startsWith(`https://`))&&r!==`CONNECT`)throw new n(`path must be an absolute URL or start with a slash`);if(f.exeLine truncated
`),n={};for(let e of t){let[t,r]=e.split(`: `);if(r==null||r.length===0)continue;n[t]?n[t]+=`,${r}`:n[t]=r}return n}};function y(e,t,r){if(t&&typeof t==`object`||(t=t==null?``:`${t}`,d.exec(t)!==null))throw new n(`invalid ${e} header`);return r?t:`${e}: ${t}\r\n`}function x(e,t,i,a=!1){if(i&&typeof i==`object`&&!Array.isArray(i))throw new n(`invalid ${t} header`);if(i!==void 0)if(e.host===null&&t.length===4&&t.toLowerCase()===`host`){if(d.exec(i)!==null)throw new n(`invalid ${t} header`);e.host=i}else if(e.contentLength===null&&t.length===14&&t.toLowerCase()===`content-length`){if(e.contentLength=parseInt(i,10),!Number.isFinite(e.contentLength))throw new n(`invalid content-length header`)}else if(e.contentType===null&&t.length===12&&t.toLowerCase()===`content-type`)e.contentType=i,a?e.headers[t]=y(t,i,a):e.headers+=y(t,i);else if(t.length===17&&t.toLowerCase()===`transfer-encoding`)throw new n(`invalid transfer-encoding header`);else if(t.length===10&&t.toLowerCase()===`connection`){let t=typeof i==`string`?i.toLowerCase():null;if(t!==`close`&&t!==`keep-alive`)throw new n(`invalid connection header`);t===`close`&&(e.reset=!0)}else if(t.length===10&&t.toLowerCase()===`keep-alive`)throw new n(`invalid keep-alive header`);else if(t.length===7&&t.toLowerCase()===`upgrade`)throw new n(`invalid upgrade header`);else if(t.length===6&&t.toLowerCase()===`expect`)throw new r(`expect header not supported`);else if(l.exec(t)===null)throw new n(`invalid header key`);else if(Array.isArray(i))for(let n=0;n<i.length;n++)a?e.headers[t]?e.headers[t]+=`,${y(t,i[n],a)}`:e.headers[t]=y(t,i[n],a):e.headers+=y(t,i[n]);else a?e.headers[t]=y(t,i,a):e.headers+=y(t,i)}t.exports=g}),ne=s((exports,t)=>{let n=u(`events`);var r=class extends n{dispatch(){throw Error(`not implemented`)}close(){throw Error(`not implemented`)}destroy(){throw Error(`not implemented`)}};t.exports=r}),re=s((exports,t)=>{let n=ne(),{ClientDestroyedError:r,ClientClosedError:i,InvalidArgumentError:a}=v(),{kDestroy:o,kClose:s,kDispatch:c,kInterceptors:l}=_(),u=Symbol(`destroyed`),d=Symbol(`closed`),f=Symbol(`onDestroyed`),p=Symbol(`onClosed`),m=Symbol(`Intercepted Dispatch`);var h=class extends n{constructor(){super(),this[u]=!1,this[f]=null,this[d]=!1,this[p]=[]}get destroyed(){return this[u]}get closed(){return this[d]}get interceptors(){return this[l]}set interceptors(e){if(e)for(let t=e.length-1;t>=0;t--){let e=this[l][t];if(typeof e!=`function`)throw new a(`interceptor must be an function`)}this[l]=e}close(e){if(e===void 0)return new Promise((e,t)=>{this.close((n,r)=>n?t(n):e(r))});if(typeof e!=`function`)throw new a(`invalid callback`);if(this[u]){queueMicrotask(()=>e(new r,null));return}if(this[d]){this[p]?this[p].push(e):queueMicrotask(()=>e(null,null));return}this[d]=!0,this[p].push(e);let t=()=>{let e=this[p];this[p]=null;for(let t=0;t<e.length;t++)e[t](null,null)};this[s]().then(()=>this.destroy()).then(()=>{queueMicrotask(t)})}destroy(e,t){if(typeof e==`function`&&(t=e,e=null),t===void 0)return new Promise((t,n)=>{this.destroy(e,(e,r)=>e?n(e):t(r))});if(typeof t!=`function`)throw new a(`invalid callback`);if(this[u]){this[f]?this[f].push(t):queueMicrotask(()=>t(null,null));return}e||=new r,this[u]=!0,this[f]=this[f]||[],this[f].push(t);let n=()=>{let e=this[f];this[f]=null;for(let t=0;t<e.length;t++)e[t](null,null)};this[o](e).then(()=>{queueMicrotask(n)})}[m](e,t){if(!this[l]||this[l].length===0)return this[m]=this[c],this[c](e,t);let n=this[c].bind(this);for(let e=this[l].length-1;e>=0;e--)n=this[l][e](n);return this[m]=n,n(e,t)}dispatch(e,t){if(!t||typeof t!=`object`)throw new a(`handler must be an object`);try{if(!e||typeof e!=`object`)throw new a(`opts must be an object.`);if(this[u]||this[f])throw new r;if(this[d])throw new i;return this[m](e,t)}catch(e){if(typeof t.onError!=`function`)throw new a(`invalid onError method`);return t.onError(e),!1}}};t.exports=h}),ie=s((exports,t)=>{let n=u(`net`),r=u(`assert`),i=b(),{InvalidArgumentError:a,ConnectTimeoutError:o}=v(),s,c;c=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)return;let t=this._sessionCache.get(e);t!==void 0&&t.deref()===void 0&&this._sessionCache.delete(e)})}get(e){let t=this._sessionCache.get(e);return t?t.deref():null}set(e,t){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(t)),this._sessionRegistry.register(t,e))}}:class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,t){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}};function l({allowH2:e,maxCachedSessions:t,socketPath:o,timeout:l,...p}){if(t!=null&&(!Number.isInteger(t)||t<0))throw new a(`maxCachedSessions must be a Line truncated
`:v+=`connection: close\r
`,l&&(v+=l),Ke.sendHeaders.hasSubscribers&&Ke.sendHeaders.publish({request:t,headers:v,socket:_}),!r||h===0?(g===0?_.write(`${v}content-length: 0\r\n\r\n`,`latin1`):(n(g===null,`no body must not have content length`),_.write(`${v}\r\n`,`latin1`)),t.onRequestSent()):o.isBuffer(r)?(n(g===r.byteLength,`buffer body must have content length`),_.cork(),_.write(`${v}content-length: ${g}\r\n\r\n`,`latin1`),_.write(r),_.uncork(),t.onBodySent(r),t.onRequestSent(),p||(_[k]=!0)):o.isBlobLike(r)?typeof r.stream==`function`?Et({body:r.stream(),client:e,request:t,socket:_,contentLength:g,header:v,expectsPayload:p}):Tt({body:r,client:e,request:t,socket:_,contentLength:g,header:v,expectsPayload:p}):o.isStream(r)?wt({body:r,client:e,request:t,socket:_,contentLength:g,header:v,expectsPayload:p}):o.isIterable(r)?Et({body:r,client:e,request:t,socket:_,contentLength:g,header:v,expectsPayload:p}):n(!1),!0}function Ct(e,t,r){let{body:i,method:a,path:s,host:l,upgrade:u,expectContinue:f,signal:p,headers:h}=r,g;if(g=typeof h==`string`?c[Ne](h.trim()):h,u)return Ot(e,r,Error(`Upgrade not supported for H2`)),!1;try{r.onConnect(t=>{r.aborted||r.completed||Ot(e,r,t||new m)})}catch(t){Ot(e,r,t)}if(r.aborted)return!1;let _,v=e[je];if(g[Ie]=l||e[ke],g[Le]=a,a===`CONNECT`)return t.ref(),_=t.request(g,{endStream:!1,signal:p}),_.id&&!_.pending?(r.onUpgrade(null,null,_),++v.openStreams):_.once(`ready`,()=>{r.onUpgrade(null,null,_),++v.openStreams}),_.once(`close`,()=>{--v.openStreams,v.openStreams===0&&t.unref()}),!0;g[Re]=s,g[ze]=`https`;let y=a===`PUT`||a===`POST`||a===`PATCH`;i&&typeof i.read==`function`&&i.read(0);let b=o.bodyLength(i);if(b??=r.contentLength,(b===0||!y)&&(b=null),xt(a)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[_e])return Ot(e,r,new d),!1;process.emitWarning(new d)}b!=null&&(n(i,`no body must not have content length`),g[Be]=`${b}`),t.ref();let x=a===`GET`||a===`HEAD`;return f?(g[Ve]=`100-continue`,_=t.request(g,{endStream:x,signal:p}),_.once(`continue`,C)):(_=t.request(g,{endStream:x,signal:p}),C()),++v.openStreams,_.once(`response`,e=>{let{[He]:t,...n}=e;r.onHeaders(Number(t),n,_.resume.bind(_),``)===!1&&_.pause()}),_.once(`end`,()=>{r.onComplete([])}),_.on(`data`,e=>{r.onData(e)===!1&&_.pause()}),_.once(`close`,()=>{--v.openStreams,v.openStreams===0&&t.unref()}),_.once(`error`,function(t){e[Ae]&&!e[Ae].destroyed&&!this.closed&&!this.destroyed&&(--v.streams,o.destroy(_,t))}),_.once(`frameError`,(t,n)=>{let i=new S(`HTTP/2: "frameError" received - type ${t}, code ${n}`);Ot(e,r,i),e[Ae]&&!e[Ae].destroyed&&!this.closed&&!this.destroyed&&(--v.streams,o.destroy(_,i))}),!0;function C(){i?o.isBuffer(i)?(n(b===i.byteLength,`buffer body must have content length`),_.cork(),_.write(i),_.uncork(),_.end(),r.onBodySent(i),r.onRequestSent()):o.isBlobLike(i)?typeof i.stream==`function`?Et({client:e,request:r,contentLength:b,h2stream:_,expectsPayload:y,body:i.stream(),socket:e[J],header:``}):Tt({body:i,client:e,request:r,contentLength:b,expectsPayload:y,h2stream:_,header:``,socket:e[J]}):o.isStream(i)?wt({body:i,client:e,request:r,contentLength:b,expectsPayload:y,socket:e[J],h2stream:_,header:``}):o.isIterable(i)?Et({body:i,client:e,request:r,contentLength:b,expectsPayload:y,header:``,h2stream:_,socket:e[J]}):n(!1):r.onRequestSent()}}function wt({h2stream:e,body:t,client:r,request:i,socket:s,contentLength:c,header:l,expectsPayload:u}){if(n(c!==0||r[L]===0,`stream body cannot be pipelined`),r[Oe]===`h2`){let n=a(t,e,n=>{n?(o.destroy(t,n),o.destroy(e,n)):i.onRequestSent()});n.on(`data`,r),n.once(`end`,()=>{n.removeListener(`data`,r),o.destroy(n)});function r(e){i.onBodySent(e)}return}let d=!1,f=new Dt({socket:s,request:i,contentLength:c,client:r,expectsPayload:u,header:l}),p=function(e){if(!d)try{!f.write(e)&&this.pause&&this.pause()}catch(e){o.destroy(this,e)}},h=function(){d||t.resume&&t.resume()},g=function(){if(d)return;let e=new m;queueMicrotask(()=>_(e))},_=function(e){if(!d){if(d=!0,n(s.destroyed||s[B]&&r[L]<=1),s.off(`drain`,h).off(`error`,_),t.removeListener(`data`,p).removeListener(`end`,_).removeListener(`error`,_).removeListener(`close`,g),!e)try{f.end()}catch(t){e=t}f.destroy(e),e&&(e.code!==`UND_ERR_INFO`||e.message!==`reset`)?o.destroy(t,e):o.destroy(t)}};t.on(`data`,p).on(`end`,_).on(`error`,_).on(`close`,g),t.resume&&t.resume(),s.on(`drain`,h).on(`error`,_)}async function Tt({h2stream:e,body:t,client:r,request:i,socket:a,contentLength:s,header:c,expectsPayload:l}){n(s===t.size,`blob body must have content length`);let u=r[Oe]===`h2`;try{if(s!=null&&s!==t.size)throw new d;let n=Buffer.from(await t.arrayBuffer());u?(e.cork(),e.write(n),e.uncork()):(a.cork(),a.write(`${c}content-length: ${s}\r\n\r\n`,`latin1`),a.write(n),a.uncork()),i.onBodySent(n),i.onRequestSent(),l||(a[k]=!0),yt(r)}catch(t){o.destroy(u?e:a,t)}}async function Et({h2stream:e,body:t,client:r,request:i,socket:a,contentLength:o,header:s,expectsPayload:c}){n(o!==0||r[L]===0,`iterator body cannot be pipelined`);let l=null;function u(){if(l){let e=l;l=n Line truncated
`,l&&(v+=l),qe.sendHeaders.hasSubscribers&&qe.sendHeaders.publish({request:t,headers:v,socket:_}),!r||h===0?(g===0?_.write(`${v}content-length: 0\r\n\r\n`,`latin1`):(n(g===null,`no body must not have content length`),_.write(`${v}\r\n`,`latin1`)),t.onRequestSent()):o.isBuffer(r)?(n(g===r.byteLength,`buffer body must have content length`),_.cork(),_.write(`${v}content-length: ${g}\r\n\r\n`,`latin1`),_.write(r),_.uncork(),t.onBodySent(r),t.onRequestSent(),p||(_[k]=!0)):o.isBlobLike(r)?typeof r.stream==`function`?Et({body:r.stream(),client:e,request:t,socket:_,contentLength:g,header:v,expectsPayload:p}):Tt({body:r,client:e,request:t,socket:_,contentLength:g,header:v,expectsPayload:p}):o.isStream(r)?wt({body:r,client:e,request:t,socket:_,contentLength:g,header:v,expectsPayload:p}):o.isIterable(r)?Et({body:r,client:e,request:t,socket:_,contentLength:g,header:v,expectsPayload:p}):n(!1),!0}function Ct(e,t,r){let{body:i,method:a,path:s,host:l,upgrade:u,expectContinue:f,signal:p,headers:h}=r,g;if(g=typeof h==`string`?c[Pe](h.trim()):h,u)return Ot(e,r,Error(`Upgrade not supported for H2`)),!1;try{r.onConnect(t=>{r.aborted||r.completed||Ot(e,r,t||new m)})}catch(t){Ot(e,r,t)}if(r.aborted)return!1;let _,v=e[Me];if(g[Le]=l||e[Ae],g[Re]=a,a===`CONNECT`)return t.ref(),_=t.request(g,{endStream:!1,signal:p}),_.id&&!_.pending?(r.onUpgrade(null,null,_),++v.openStreams):_.once(`ready`,()=>{r.onUpgrade(null,null,_),++v.openStreams}),_.once(`close`,()=>{--v.openStreams,v.openStreams===0&&t.unref()}),!0;g[ze]=s,g[Be]=`https`;let y=a===`PUT`||a===`POST`||a===`PATCH`;i&&typeof i.read==`function`&&i.read(0);let b=o.bodyLength(i);if(b??=r.contentLength,(b===0||!y)&&(b=null),xt(a)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[ve])return Ot(e,r,new d),!1;process.emitWarning(new d)}b!=null&&(n(i,`no body must not have content length`),g[Ve]=`${b}`),t.ref();let x=a===`GET`||a===`HEAD`;return f?(g[He]=`100-continue`,_=t.request(g,{endStream:x,signal:p}),_.once(`continue`,C)):(_=t.request(g,{endStream:x,signal:p}),C()),++v.openStreams,_.once(`response`,e=>{let{[Ue]:t,...n}=e;r.onHeaders(Number(t),n,_.resume.bind(_),``)===!1&&_.pause()}),_.once(`end`,()=>{r.onComplete([])}),_.on(`data`,e=>{r.onData(e)===!1&&_.pause()}),_.once(`close`,()=>{--v.openStreams,v.openStreams===0&&t.unref()}),_.once(`error`,function(t){e[je]&&!e[je].destroyed&&!this.closed&&!this.destroyed&&(--v.streams,o.destroy(_,t))}),_.once(`frameError`,(t,n)=>{let i=new S(`HTTP/2: "frameError" received - type ${t}, code ${n}`);Ot(e,r,i),e[je]&&!e[je].destroyed&&!this.closed&&!this.destroyed&&(--v.streams,o.destroy(_,i))}),!0;function C(){i?o.isBuffer(i)?(n(b===i.byteLength,`buffer body must have content length`),_.cork(),_.write(i),_.uncork(),_.end(),r.onBodySent(i),r.onRequestSent()):o.isBlobLike(i)?typeof i.stream==`function`?Et({client:e,request:r,contentLength:b,h2stream:_,expectsPayload:y,body:i.stream(),socket:e[q],header:``}):Tt({body:i,client:e,request:r,contentLength:b,expectsPayload:y,h2stream:_,header:``,socket:e[q]}):o.isStream(i)?wt({body:i,client:e,request:r,contentLength:b,expectsPayload:y,socket:e[q],h2stream:_,header:``}):o.isIterable(i)?Et({body:i,client:e,request:r,contentLength:b,expectsPayload:y,header:``,h2stream:_,socket:e[q]}):n(!1):r.onRequestSent()}}function wt({h2stream:e,body:t,client:r,request:i,socket:s,contentLength:c,header:l,expectsPayload:u}){if(n(c!==0||r[L]===0,`stream body cannot be pipelined`),r[ke]===`h2`){let n=a(t,e,n=>{n?(o.destroy(t,n),o.destroy(e,n)):i.onRequestSent()});n.on(`data`,r),n.once(`end`,()=>{n.removeListener(`data`,r),o.destroy(n)});function r(e){i.onBodySent(e)}return}let d=!1,f=new Dt({socket:s,request:i,contentLength:c,client:r,expectsPayload:u,header:l}),p=function(e){if(!d)try{!f.write(e)&&this.pause&&this.pause()}catch(e){o.destroy(this,e)}},h=function(){d||t.resume&&t.resume()},g=function(){if(d)return;let e=new m;queueMicrotask(()=>_(e))},_=function(e){if(!d){if(d=!0,n(s.destroyed||s[B]&&r[L]<=1),s.off(`drain`,h).off(`error`,_),t.removeListener(`data`,p).removeListener(`end`,_).removeListener(`error`,_).removeListener(`close`,g),!e)try{f.end()}catch(t){e=t}f.destroy(e),e&&(e.code!==`UND_ERR_INFO`||e.message!==`reset`)?o.destroy(t,e):o.destroy(t)}};t.on(`data`,p).on(`end`,_).on(`error`,_).on(`close`,g),t.resume&&t.resume(),s.on(`drain`,h).on(`error`,_)}async function Tt({h2stream:e,body:t,client:r,request:i,socket:a,contentLength:s,header:c,expectsPayload:l}){n(s===t.size,`blob body must have content length`);let u=r[ke]===`h2`;try{if(s!=null&&s!==t.size)throw new d;let n=Buffer.from(await t.arrayBuffer());u?(e.cork(),e.write(n),e.uncork()):(a.cork(),a.write(`${c}content-length: ${s}\r\n\r\n`,`latin1`),a.write(n),a.uncork()),i.onBodySent(n),i.onRequestSent(),l||(a[k]=!0),Y(r)}catch(t){o.destroy(u?e:a,t)}}async function Et({h2stream:e,body:t,client:r,request:i,socket:a,contentLength:o,header:s,expectsPayload:c}){n(o!==0||r[L]===0,`iterator body cannot be pipelined`);let l=null;function u(){if(l){let e=l;l=nu Line truncated
0\r
\r
`,`latin1`),t!==null&&r!==t){if(n[_e])throw new d;process.emitWarning(new d)}e[N].timeout&&e[N].timeoutType===st&&e[N].timeout.refresh&&e[N].timeout.refresh(),yt(n)}}destroy(e){let{socket:t,client:r}=this;t[B]=!1,e&&(n(r[L]<=1,`pipeline should only contain this request`),o.destroy(t,e))}};function Ot(e,t,r){try{t.onError(r),n(t.aborted)}catch(t){e.emit(`error`,t)}}t.exports=qe}),ce=s((exports,t)=>{let n=2048,r=n-1;var i=class{constructor(){this.bottom=0,this.top=0,this.list=Array(n),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&r}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&r,e)}};t.exports=class{constructor(){this.head=this.tail=new i}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new i),this.head.push(e)}shift(){let e=this.tail,t=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),t}}}),le=s((exports,t)=>{let{kFree:n,kConnected:r,kPending:i,kQueued:a,kRunning:o,kSize:s}=_(),c=Symbol(`pool`);var l=class{constructor(e){this[c]=e}get connected(){return this[c][r]}get free(){return this[c][n]}get pending(){return this[c][i]}get queued(){return this[c][a]}get running(){return this[c][o]}get size(){return this[c][s]}};t.exports=l}),K=s((exports,t)=>{let n=ne(),r=ce(),{kConnected:i,kSize:a,kRunning:o,kPending:s,kQueued:c,kBusy:l,kFree:u,kUrl:d,kClose:f,kDestroy:p,kDispatch:m}=_(),h=le(),g=Symbol(`clients`),v=Symbol(`needDrain`),y=Symbol(`queue`),b=Symbol(`closed resolve`),x=Symbol(`onDrain`),S=Symbol(`onConnect`),C=Symbol(`onDisconnect`),w=Symbol(`onConnectionError`),T=Symbol(`get dispatcher`),E=Symbol(`add client`),D=Symbol(`remove client`),O=Symbol(`stats`);var k=class extends n{constructor(){super(),this[y]=new r,this[g]=[],this[c]=0;let e=this;this[x]=function(t,n){let r=e[y],i=!1;for(;!i;){let t=r.shift();if(!t)break;e[c]--,i=!this.dispatch(t.opts,t.handler)}this[v]=i,!this[v]&&e[v]&&(e[v]=!1,e.emit(`drain`,t,[e,...n])),e[b]&&r.isEmpty()&&Promise.all(e[g].map(e=>e.close())).then(e[b])},this[S]=(t,n)=>{e.emit(`connect`,t,[e,...n])},this[C]=(t,n,r)=>{e.emit(`disconnect`,t,[e,...n],r)},this[w]=(t,n,r)=>{e.emit(`connectionError`,t,[e,...n],r)},this[O]=new h(this)}get[l](){return this[v]}get[i](){return this[g].filter(e=>e[i]).length}get[u](){return this[g].filter(e=>e[i]&&!e[v]).length}get[s](){let e=this[c];for(let{[s]:t}of this[g])e+=t;return e}get[o](){let e=0;for(let{[o]:t}of this[g])e+=t;return e}get[a](){let e=this[c];for(let{[a]:t}of this[g])e+=t;return e}get stats(){return this[O]}async[f](){return this[y].isEmpty()?Promise.all(this[g].map(e=>e.close())):new Promise(e=>{this[b]=e})}async[p](e){for(;;){let t=this[y].shift();if(!t)break;t.handler.onError(e)}return Promise.all(this[g].map(t=>t.destroy(e)))}[m](e,t){let n=this[T]();return n?n.dispatch(e,t)||(n[v]=!0,this[v]=!this[T]()):(this[v]=!0,this[y].push({opts:e,handler:t}),this[c]++),!this[v]}[E](e){return e.on(`drain`,this[x]).on(`connect`,this[S]).on(`disconnect`,this[C]).on(`connectionError`,this[w]),this[g].push(e),this[v]&&process.nextTick(()=>{this[v]&&this[x](e[d],[this,e])}),this}[D](e){e.close(()=>{let t=this[g].indexOf(e);t!==-1&&this[g].splice(t,1)}),this[v]=this[g].some(e=>!e[v]&&e.closed!==!0&&e.destroyed!==!0)}};t.exports={PoolBase:k,kClients:g,kNeedDrain:v,kAddClient:E,kRemoveClient:D,kGetDispatcher:T}}),q=s((exports,t)=>{let{PoolBase:n,kClients:r,kNeedDrain:i,kAddClient:a,kGetDispatcher:o}=K(),s=se(),{InvalidArgumentError:c}=v(),l=b(),{kUrl:u,kInterceptors:d}=_(),f=re(),p=Symbol(`options`),m=Symbol(`connections`),h=Symbol(`factory`);function g(e,t){return new s(e,t)}var y=class extends n{constructor(e,{connections:t,factory:n=g,connect:i,connectTimeout:a,tls:o,maxCachedSessions:s,socketPath:_,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y,allowH2:b,...x}={}){if(super(),t!=null&&(!Number.isFinite(t)||t<0))throw new c(`invalid connections`);if(typeof n!=`function`)throw new c(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new c(`connect must be a function or an object`);typeof i!=`function`&&(i=f({...o,maxCachedSessions:s,allowH2:b,socketPath:_,timeout:a,...l.nodeHasAutoSelectFamily&&v?{autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y}:void 0,...i})),this[d]=x.interceptors&&x.interceptors.Pool&&Array.isArray(x.interceptors.Pool)?x.interceptors.Pool:[],this[m]=t||null,this[u]=l.parseOrigin(e),this[p]={...l.deepClone(x),connect:i,allowH2:b},this[p].interceptors=x.interceptors?{...x.interceptors}:void 0,this[h]=n,this.on(`connectionError`,(e,t,n)=>{for(let e of t){let t=this[r].indexOf(e);t!==-1&&this[r].splice(t,1)}})}[o](){let e=this[r].find(e=>!e[i]);return e||((!this[m]||this[r].length<this[m])&&(e=this[h](this[u],this[p]),this[a](e)),e)}};t.exports=y}),ue=s((exports,t)=>{let{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:r}=v(),{PoolBase:i,kClients Line truncated
`,`latin1`),t!==null&&r!==t){if(n[ve])throw new d;process.emitWarning(new d)}e[N].timeout&&e[N].timeoutType===ct&&e[N].timeout.refresh&&e[N].timeout.refresh(),Y(n)}}destroy(e){let{socket:t,client:r}=this;t[B]=!1,e&&(n(r[L]<=1,`pipeline should only contain this request`),o.destroy(t,e))}};function Ot(e,t,r){try{t.onError(r),n(t.aborted)}catch(t){e.emit(`error`,t)}}t.exports=Je}),le=s((exports,t)=>{let n=2048,r=n-1;var i=class{constructor(){this.bottom=0,this.top=0,this.list=Array(n),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&r}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&r,e)}};t.exports=class{constructor(){this.head=this.tail=new i}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new i),this.head.push(e)}shift(){let e=this.tail,t=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),t}}}),ue=s((exports,t)=>{let{kFree:n,kConnected:r,kPending:i,kQueued:a,kRunning:o,kSize:s}=_(),c=Symbol(`pool`);var l=class{constructor(e){this[c]=e}get connected(){return this[c][r]}get free(){return this[c][n]}get pending(){return this[c][i]}get queued(){return this[c][a]}get running(){return this[c][o]}get size(){return this[c][s]}};t.exports=l}),G=s((exports,t)=>{let n=re(),r=le(),{kConnected:i,kSize:a,kRunning:o,kPending:s,kQueued:c,kBusy:l,kFree:u,kUrl:d,kClose:f,kDestroy:p,kDispatch:m}=_(),h=ue(),g=Symbol(`clients`),v=Symbol(`needDrain`),y=Symbol(`queue`),b=Symbol(`closed resolve`),x=Symbol(`onDrain`),S=Symbol(`onConnect`),C=Symbol(`onDisconnect`),w=Symbol(`onConnectionError`),T=Symbol(`get dispatcher`),E=Symbol(`add client`),D=Symbol(`remove client`),O=Symbol(`stats`);var k=class extends n{constructor(){super(),this[y]=new r,this[g]=[],this[c]=0;let e=this;this[x]=function(t,n){let r=e[y],i=!1;for(;!i;){let t=r.shift();if(!t)break;e[c]--,i=!this.dispatch(t.opts,t.handler)}this[v]=i,!this[v]&&e[v]&&(e[v]=!1,e.emit(`drain`,t,[e,...n])),e[b]&&r.isEmpty()&&Promise.all(e[g].map(e=>e.close())).then(e[b])},this[S]=(t,n)=>{e.emit(`connect`,t,[e,...n])},this[C]=(t,n,r)=>{e.emit(`disconnect`,t,[e,...n],r)},this[w]=(t,n,r)=>{e.emit(`connectionError`,t,[e,...n],r)},this[O]=new h(this)}get[l](){return this[v]}get[i](){return this[g].filter(e=>e[i]).length}get[u](){return this[g].filter(e=>e[i]&&!e[v]).length}get[s](){let e=this[c];for(let{[s]:t}of this[g])e+=t;return e}get[o](){let e=0;for(let{[o]:t}of this[g])e+=t;return e}get[a](){let e=this[c];for(let{[a]:t}of this[g])e+=t;return e}get stats(){return this[O]}async[f](){return this[y].isEmpty()?Promise.all(this[g].map(e=>e.close())):new Promise(e=>{this[b]=e})}async[p](e){for(;;){let t=this[y].shift();if(!t)break;t.handler.onError(e)}return Promise.all(this[g].map(t=>t.destroy(e)))}[m](e,t){let n=this[T]();return n?n.dispatch(e,t)||(n[v]=!0,this[v]=!this[T]()):(this[v]=!0,this[y].push({opts:e,handler:t}),this[c]++),!this[v]}[E](e){return e.on(`drain`,this[x]).on(`connect`,this[S]).on(`disconnect`,this[C]).on(`connectionError`,this[w]),this[g].push(e),this[v]&&process.nextTick(()=>{this[v]&&this[x](e[d],[this,e])}),this}[D](e){e.close(()=>{let t=this[g].indexOf(e);t!==-1&&this[g].splice(t,1)}),this[v]=this[g].some(e=>!e[v]&&e.closed!==!0&&e.destroyed!==!0)}};t.exports={PoolBase:k,kClients:g,kNeedDrain:v,kAddClient:E,kRemoveClient:D,kGetDispatcher:T}}),K=s((exports,t)=>{let{PoolBase:n,kClients:r,kNeedDrain:i,kAddClient:a,kGetDispatcher:o}=G(),s=ce(),{InvalidArgumentError:c}=v(),l=b(),{kUrl:u,kInterceptors:d}=_(),f=ie(),p=Symbol(`options`),m=Symbol(`connections`),h=Symbol(`factory`);function g(e,t){return new s(e,t)}var y=class extends n{constructor(e,{connections:t,factory:n=g,connect:i,connectTimeout:a,tls:o,maxCachedSessions:s,socketPath:_,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y,allowH2:b,...x}={}){if(super(),t!=null&&(!Number.isFinite(t)||t<0))throw new c(`invalid connections`);if(typeof n!=`function`)throw new c(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new c(`connect must be a function or an object`);typeof i!=`function`&&(i=f({...o,maxCachedSessions:s,allowH2:b,socketPath:_,timeout:a,...l.nodeHasAutoSelectFamily&&v?{autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y}:void 0,...i})),this[d]=x.interceptors&&x.interceptors.Pool&&Array.isArray(x.interceptors.Pool)?x.interceptors.Pool:[],this[m]=t||null,this[u]=l.parseOrigin(e),this[p]={...l.deepClone(x),connect:i,allowH2:b},this[p].interceptors=x.interceptors?{...x.interceptors}:void 0,this[h]=n,this.on(`connectionError`,(e,t,n)=>{for(let e of t){let t=this[r].indexOf(e);t!==-1&&this[r].splice(t,1)}})}[o](){let e=this[r].find(e=>!e[i]);return e||((!this[m]||this[r].length<this[m])&&(e=this[h](this[u],this[p]),this[a](e)),e)}};t.exports=y}),de=s((exports,t)=>{let{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:r}=v(),{PoolBase:i,kClients: Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(t)}
`.trim())}};t.exports=T}),Ae=s((exports,t)=>{let{kProxy:n,kClose:r,kDestroy:i,kInterceptors:a}=_(),{URL:o}=u(`url`),s=de(),c=q(),l=ne(),{InvalidArgumentError:d,RequestAbortedError:f}=v(),p=re(),m=Symbol(`proxy agent`),h=Symbol(`proxy client`),g=Symbol(`proxy headers`),y=Symbol(`request tls settings`),b=Symbol(`proxy tls settings`),x=Symbol(`connect endpoint function`);function S(e){return e===`https:`?443:80}function C(e){if(typeof e==`string`&&(e={uri:e}),!e||!e.uri)throw new d(`Proxy opts.uri is mandatory`);return{uri:e.uri,protocol:e.protocol||`https`}}function w(e,t){return new c(e,t)}var T=class extends l{constructor(e){if(super(e),this[n]=C(e),this[m]=new s(e),this[a]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e==`string`&&(e={uri:e}),!e||!e.uri)throw new d(`Proxy opts.uri is mandatory`);let{clientFactory:t=w}=e;if(typeof t!=`function`)throw new d(`Proxy opts.clientFactory must be a function.`);this[y]=e.requestTls,this[b]=e.proxyTls,this[g]=e.headers||{};let r=new o(e.uri),{origin:i,port:c,host:l,username:u,password:_}=r;if(e.auth&&e.token)throw new d(`opts.auth cannot be used in combination with opts.token`);e.auth?this[g][`proxy-authorization`]=`Basic ${e.auth}`:e.token?this[g][`proxy-authorization`]=e.token:u&&_&&(this[g][`proxy-authorization`]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(_)}`).toString(`base64`)}`);let v=p({...e.proxyTls});this[x]=p({...e.requestTls}),this[h]=t(r,{connect:v}),this[m]=new s({...e,connect:async(e,t)=>{let n=e.host;e.port||(n+=`:${S(e.protocol)}`);try{let{socket:r,statusCode:a}=await this[h].connect({origin:i,port:c,path:n,signal:e.signal,headers:{...this[g],host:l}});if(a!==200&&(r.on(`error`,()=>{}).destroy(),t(new f(`Proxy response (${a}) !== 200 when HTTP Tunneling`))),e.protocol!==`https:`){t(null,r);return}let o;o=this[y]?this[y].servername:e.servername,this[x]({...e,servername:o,httpSocket:r},t)}catch(e){t(e)}}})}dispatch(e,t){let{host:n}=new o(e.origin),r=E(e.headers);return D(r),this[m].dispatch({...e,headers:{...r,host:n}},t)}async[r](){await this[m].close(),await this[h].close()}async[i](){await this[m].destroy(),await this[h].destroy()}};function E(e){if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}return e}function D(e){let t=e&&Object.keys(e).find(e=>e.toLowerCase()===`proxy-authorization`);if(t)throw new d(`Proxy-Authorization should be sent in ProxyAgent constructor`)}t.exports=T}),je=s((exports,t)=>{let n=u(`assert`),{kRetryHandlerDefaultRetry:r}=_(),{RequestRetryError:i}=v(),{isDisturbed:a,parseHeaders:o,parseRangeHeader:s}=b();function c(e){let t=Date.now(),n=new Date(e).getTime()-t;return n}var l=class e{constructor(t,n){let{retryOptions:i,...a}=t,{retry:o,maxRetries:s,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:f,retryAfter:p,statusCodes:m}=i??{};this.dispatch=n.dispatch,this.handler=n.handler,this.opts=a,this.abort=null,this.aborted=!1,this.retryOpts={retry:o??e[r],retryAfter:p??!0,maxTimeout:c??30*1e3,timeout:l??500,timeoutFactor:u??2,maxRetries:s??5,methods:d??[`GET`,`HEAD`,`OPTIONS`,`PUT`,`DELETE`,`TRACE`],statusCodes:m??[500,502,503,504,429],errorCodes:f??[`ECONNRESET`,`ECONNREFUSED`,`ENOTFOUND`,`ENETDOWN`,`ENETUNREACH`,`EHOSTDOWN`,`EHOSTUNREACH`,`EPIPE`]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(e=>{this.aborted=!0,this.abort?this.abort(e):this.reason=e})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,t,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,t,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[r](e,{state:t,opts:n},r){let{statusCode:i,code:a,headers:o}=e,{method:s,retryOptions:l}=n,{maxRetries:u,timeout:d,maxTimeout:f,timeoutFactor:p,statusCodes:m,errorCodes:h,methods:g}=l,{counter:_,currentTimeout:v}=t;if(v=v!=null&&v>0?v:d,a&&a!==`UND_ERR_REQ_RETRY`&&a!==`UND_ERR_SOCKET`&&!h.includes(a)){r(e);return}if(Array.isArray(g)&&!g.includes(s)){r(e);return}if(i!=null&&Array.isArray(m)&&!m.includes(i)){r(e);return}if(_>u){r(e);return}let y=o!=null&&o[`retry-after`];y&&(y=Number(y),y=isNaN(y)?c(y):y*1e3);let b=y>0?Math.min(y,f):Math.min(v*p**_,f);t.currentTimeout=b,setTimeout(()=>r(null),b)}onHeaders(e,t,r,a){let c=o(t);if(this.retryCount+=1,e>=300)return this.abort(new i(`Request failed`,e,{headers:c,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let t=s(c[`content-range`]);if(!t)return this.abort(new i(`Content-Range mismatch`,e,{headers:c,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==c.etag)return this.abort(new i(`ETag mismatch`,e,{headers:c,count:this.retryCount})),!1;let{start:a,size:o,end:l=o}=t;return n(this.start===a,`content-range mismatch`),n(this.end==null||this.end===l,`content-range mismatch`),this.resume=r,!0}if(this.end==null){if(e=== Line truncated
`.trim())}};t.exports=T}),je=s((exports,t)=>{let{kProxy:n,kClose:r,kDestroy:i,kInterceptors:a}=_(),{URL:o}=u(`url`),s=fe(),c=K(),l=re(),{InvalidArgumentError:d,RequestAbortedError:f}=v(),p=ie(),m=Symbol(`proxy agent`),h=Symbol(`proxy client`),g=Symbol(`proxy headers`),y=Symbol(`request tls settings`),b=Symbol(`proxy tls settings`),x=Symbol(`connect endpoint function`);function S(e){return e===`https:`?443:80}function C(e){if(typeof e==`string`&&(e={uri:e}),!e||!e.uri)throw new d(`Proxy opts.uri is mandatory`);return{uri:e.uri,protocol:e.protocol||`https`}}function w(e,t){return new c(e,t)}var T=class extends l{constructor(e){if(super(e),this[n]=C(e),this[m]=new s(e),this[a]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e==`string`&&(e={uri:e}),!e||!e.uri)throw new d(`Proxy opts.uri is mandatory`);let{clientFactory:t=w}=e;if(typeof t!=`function`)throw new d(`Proxy opts.clientFactory must be a function.`);this[y]=e.requestTls,this[b]=e.proxyTls,this[g]=e.headers||{};let r=new o(e.uri),{origin:i,port:c,host:l,username:u,password:_}=r;if(e.auth&&e.token)throw new d(`opts.auth cannot be used in combination with opts.token`);e.auth?this[g][`proxy-authorization`]=`Basic ${e.auth}`:e.token?this[g][`proxy-authorization`]=e.token:u&&_&&(this[g][`proxy-authorization`]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(_)}`).toString(`base64`)}`);let v=p({...e.proxyTls});this[x]=p({...e.requestTls}),this[h]=t(r,{connect:v}),this[m]=new s({...e,connect:async(e,t)=>{let n=e.host;e.port||(n+=`:${S(e.protocol)}`);try{let{socket:r,statusCode:a}=await this[h].connect({origin:i,port:c,path:n,signal:e.signal,headers:{...this[g],host:l}});if(a!==200&&(r.on(`error`,()=>{}).destroy(),t(new f(`Proxy response (${a}) !== 200 when HTTP Tunneling`))),e.protocol!==`https:`){t(null,r);return}let o;o=this[y]?this[y].servername:e.servername,this[x]({...e,servername:o,httpSocket:r},t)}catch(e){t(e)}}})}dispatch(e,t){let{host:n}=new o(e.origin),r=E(e.headers);return D(r),this[m].dispatch({...e,headers:{...r,host:n}},t)}async[r](){await this[m].close(),await this[h].close()}async[i](){await this[m].destroy(),await this[h].destroy()}};function E(e){if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}return e}function D(e){let t=e&&Object.keys(e).find(e=>e.toLowerCase()===`proxy-authorization`);if(t)throw new d(`Proxy-Authorization should be sent in ProxyAgent constructor`)}t.exports=T}),Me=s((exports,t)=>{let n=u(`assert`),{kRetryHandlerDefaultRetry:r}=_(),{RequestRetryError:i}=v(),{isDisturbed:a,parseHeaders:o,parseRangeHeader:s}=b();function c(e){let t=Date.now(),n=new Date(e).getTime()-t;return n}var l=class e{constructor(t,n){let{retryOptions:i,...a}=t,{retry:o,maxRetries:s,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:f,retryAfter:p,statusCodes:m}=i??{};this.dispatch=n.dispatch,this.handler=n.handler,this.opts=a,this.abort=null,this.aborted=!1,this.retryOpts={retry:o??e[r],retryAfter:p??!0,maxTimeout:c??30*1e3,timeout:l??500,timeoutFactor:u??2,maxRetries:s??5,methods:d??[`GET`,`HEAD`,`OPTIONS`,`PUT`,`DELETE`,`TRACE`],statusCodes:m??[500,502,503,504,429],errorCodes:f??[`ECONNRESET`,`ECONNREFUSED`,`ENOTFOUND`,`ENETDOWN`,`ENETUNREACH`,`EHOSTDOWN`,`EHOSTUNREACH`,`EPIPE`]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(e=>{this.aborted=!0,this.abort?this.abort(e):this.reason=e})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,t,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,t,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[r](e,{state:t,opts:n},r){let{statusCode:i,code:a,headers:o}=e,{method:s,retryOptions:l}=n,{maxRetries:u,timeout:d,maxTimeout:f,timeoutFactor:p,statusCodes:m,errorCodes:h,methods:g}=l,{counter:_,currentTimeout:v}=t;if(v=v!=null&&v>0?v:d,a&&a!==`UND_ERR_REQ_RETRY`&&a!==`UND_ERR_SOCKET`&&!h.includes(a)){r(e);return}if(Array.isArray(g)&&!g.includes(s)){r(e);return}if(i!=null&&Array.isArray(m)&&!m.includes(i)){r(e);return}if(_>u){r(e);return}let y=o!=null&&o[`retry-after`];y&&(y=Number(y),y=isNaN(y)?c(y):y*1e3);let b=y>0?Math.min(y,f):Math.min(v*p**_,f);t.currentTimeout=b,setTimeout(()=>r(null),b)}onHeaders(e,t,r,a){let c=o(t);if(this.retryCount+=1,e>=300)return this.abort(new i(`Request failed`,e,{headers:c,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let t=s(c[`content-range`]);if(!t)return this.abort(new i(`Content-Range mismatch`,e,{headers:c,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==c.etag)return this.abort(new i(`ETag mismatch`,e,{headers:c,count:this.retryCount})),!1;let{start:a,size:o,end:l=o}=t;return n(this.start===a,`content-range mismatch`),n(this.end==null||this.end===l,`content-range mismatch`),this.resume=r,!0}if(this.end==null){if(e=== Line truncated
Error Code : ${e.statusCode}\n
Error Message: ${e.message}`)}),a=(r=i.result)?.value;if(!a)throw Error(`Response json body do not have ID Token field`);return a})}static getIDToken(n){return t(this,void 0,void 0,function*(){try{let t=e.getIDTokenUrl();if(n){let e=encodeURIComponent(n);t=`${t}&audience=${e}`}(0,i.debug)(`ID token url is ${t}`);let r=yield e.getCall(t);return(0,i.setSecret)(r),r}catch(e){throw Error(`Error message: ${e.message}`)}})}};exports.OidcClient=a}),ct=s(exports=>{var t=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.summary=exports.markdownSummary=exports.SUMMARY_DOCS_URL=exports.SUMMARY_ENV_VAR=void 0;let n=u(`os`),r=u(`fs`),{access:i,appendFile:a,writeFile:o}=r.promises;exports.SUMMARY_ENV_VAR=`GITHUB_STEP_SUMMARY`,exports.SUMMARY_DOCS_URL=`https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary`;var s=class{constructor(){this._buffer=``}filePath(){return t(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch{throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath})}wrap(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${t}"`).join(``);return t?`<${e}${r}>${t}</${e}>`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,function*(){let t=!!e?.overwrite,n=yield this.filePath(),r=t?o:a;return yield r(n,this._buffer,{encoding:`utf8`}),this.emptyBuffer()})}clear(){return t(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer=``,this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){let n=Object.assign({},t&&{lang:t}),r=this.wrap(`pre`,this.wrap(`code`,e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){let n=t?`ol`:`ul`,r=e.map(e=>this.wrap(`li`,e)).join(``),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if(typeof e==`string`)return this.wrap(`td`,e);let{header:t,data:n,colspan:r,rowspan:i}=e,a=t?`th`:`td`,o=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(a,n,o)}).join(``);return this.wrap(`tr`,t)}).join(``),n=this.wrap(`table`,t);return this.addRaw(n).addEOL()}addDetails(e,t){let n=this.wrap(`details`,this.wrap(`summary`,e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){let{width:r,height:i}=n||{},a=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),o=this.wrap(`img`,null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){let n=`h${t}`,r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(n)?n:`h1`,i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap(`hr`,null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap(`br`,null);return this.addRaw(e).addEOL()}addQuote(e,t){let n=Object.assign({},t&&{cite:t}),r=this.wrap(`blockquote`,e,n);return this.addRaw(r).addEOL()}addLink(e,t){let n=this.wrap(`a`,e,{href:t});return this.addRaw(n).addEOL()}};let c=new s;exports.markdownSummary=c,exports.summary=c}),lt=s(exports=>{var t=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},n=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.toPlatformPath=exports.toWin32Path=exports.toPosixPath=void 0;let i=r(u(`path`));function a(e){return e.replace(/[\\]/g,`/`)}exports.toPosixPath=a;function o(e){return e.replace(/[/]/g,`\\`)}exports.toWin32Path=o;function s(e){return e.replace(/[/\\]/g,i.sep)}exports.toPlatformPath=s}),ut=s(exports=>{var t=Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},n=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var r={};if(e!=n Line truncated
`);return{name:t,version:n}});exports.platform=o.default.platform(),exports.arch=o.default.arch(),exports.isWindows=exports.platform===`win32`,exports.isMacOS=exports.platform===`darwin`,exports.isLinux=exports.platform===`linux`;function f(){return i(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield exports.isWindows?c():exports.isMacOS?l():d()),{platform:exports.platform,arch:exports.arch,isWindows:exports.isWindows,isMacOS:exports.isMacOS,isLinux:exports.isLinux})})}exports.getDetails=f}),ht=s(exports=>{var t=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},n=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.platform=exports.toPlatformPath=exports.toWin32Path=exports.toPosixPath=exports.markdownSummary=exports.summary=exports.getIDToken=exports.getState=exports.saveState=exports.group=exports.endGroup=exports.startGroup=exports.info=exports.notice=exports.warning=exports.error=exports.debug=exports.isDebug=exports.setFailed=exports.setCommandEcho=exports.setOutput=exports.getBooleanInput=exports.getMultilineInput=exports.getInput=exports.addPath=exports.setSecret=exports.exportVariable=exports.ExitCode=void 0;let a=f(),o=p(),s=d(),c=r(u(`os`)),l=r(u(`path`)),m=st();var h;(function(e){e[e.Success=0]=`Success`,e[e.Failure=1]=`Failure`})(h||(exports.ExitCode=h={}));function g(e,t){let n=(0,s.toCommandValue)(t);process.env[e]=n;let r=process.env.GITHUB_ENV||``;if(r)return(0,o.issueFileCommand)(`ENV`,(0,o.prepareKeyValueMessage)(e,t));(0,a.issueCommand)(`set-env`,{name:e},n)}exports.exportVariable=g;function _(e){(0,a.issueCommand)(`add-mask`,{},e)}exports.setSecret=_;function v(e){let t=process.env.GITHUB_PATH||``;t?(0,o.issueFileCommand)(`PATH`,e):(0,a.issueCommand)(`add-path`,{},e),process.env.PATH=`${e}${l.delimiter}${process.env.PATH}`}exports.addPath=v;function y(e,t){let n=process.env[`INPUT_${e.replace(/ /g,`_`).toUpperCase()}`]||``;if(t&&t.required&&!n)throw Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}exports.getInput=y;function b(e,t){let n=y(e,t).split(`
`).filter(e=>e!==``);return t&&t.trimWhitespace===!1?n:n.map(e=>e.trim())}exports.getMultilineInput=b;function x(e,t){let n=[`true`,`True`,`TRUE`],r=[`false`,`False`,`FALSE`],i=y(e,t);if(n.includes(i))return!0;if(r.includes(i))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)}exports.getBooleanInput=x;function S(e,t){let n=process.env.GITHUB_OUTPUT||``;if(n)return(0,o.issueFileCommand)(`OUTPUT`,(0,o.prepareKeyValueMessage)(e,t));process.stdout.write(c.EOL),(0,a.issueCommand)(`set-output`,{name:e},(0,s.toCommandValue)(t))}exports.setOutput=S;function C(e){(0,a.issue)(`echo`,e?`on`:`off`)}exports.setCommandEcho=C;function w(e){process.exitCode=h.Failure,D(e)}exports.setFailed=w;function T(){return process.env.RUNNER_DEBUG===`1`}exports.isDebug=T;function E(e){(0,a.issueCommand)(`debug`,{},e)}exports.debug=E;function D(e,t={}){(0,a.issueCommand)(`error`,(0,s.toCommandProperties)(t),e instanceof Error?e.toString():e)}exports.error=D;function O(e,t={}){(0,a.issueCommand)(`warning`,(0,s.toCommandProperties)(t),e instanceof Error?e.toString():e)}exports.warning=O;function k(e,t={}){(0,a.issueCommand)(`notice`,(0,s.toCommandProperties)(t),e instanceof Error?e.toString():e)}exports.notice=k;function A(e){process.stdout.write(e+c.EOL)}exports.info=A;function j(e){(0,a.issue)(`group`,e)}exports.startGroup=j;function M(){(0,a.issue)(`endgroup`)}exports.endGroup=M;function N(e,t){return i(this,void 0,void 0,function*(){j(e);let n;try{n=yield t()}finally{M()}return n})}exports.group=N;function P(e,t){let n=process.env.GITHUB_STATE||``;if(n)return(0,o.issueFileCommand)(`STATE`,(0,o.prepareKeyValueMessage)(e,t));(0,a.issueCommand)(`save-state`,{name:e},(0,s.toCommandValue)(t))}exports.saveState=P;function F(e){return process.env[`STATE_${e}`]||``}exports.getState=F;function I(e){return i(this,void 0,void 0,function*(){return yield m.OidcClient.getIDToken(e)})}exports.getIDToken=I;var L=ct();Object.defineProperty(exports,`summary`,{enumerable:!0,get:function(){return L.summary}});var R=ct();Object.defineProperty(exports,`markdownSummary`,{enumerable:!0,get:function(){return R.markdownSummary}});var z=lt();Object.defineProperty(exports,`toPosixPath`,{enumerable:!0,get:function(){return z.toPosixPath}}),Object.defineProperty(exports,`toWin32Path`,{enumerable:!0,get:function(){return z.toWin32Path}}),Object.defineProperty(exports,`toPlatformPath`,{enumerable:!0,get:function(){return z.toPlatformPath}}),exports.platform=r(mt())}),gt=s(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.Context=void 0;let t=u(`fs`),n=u(`os`);var r=class{constructor(){var e,r,i;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,t.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,t.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:`utf8`}));else{let e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${n.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)??`https://api.github.com`,this.serverUrl=(r=process.env.GITHUB_SERVER_URL)??`https://github.com`,this.graphqlUrl=(i=process.env.GITHUB_GRAPHQL_URL)??`https://api.github.com/graphql`}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,t]=process.env.GITHUB_REPOSITORY.split(`/`);return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw Error(`context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'`)}};exports.Context=r}),_t=s(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.checkBypass=exports.getProxyUrl=void 0;function t(e){let t=e.protocol===`https:`;if(n(e))return;let r=(()=>t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(r)try{return new i(r)}catch{if(!r.startsWith(`http://`)&&!r.startsWith(`https://`))return new i(`http://${r}`)}else return}exports.getProxyUrl=t;function n(e){if(!e.hostname)return!1;let t=e.hostname;if(r(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let i;e.port?i=Number(e.port):e.protocol===`http:`?i=80:e.protocol===`https:`&&(i=443);let a=[e.hostname.toUpperCase()];typeof i==`number`&&a.push(`${a[0]}:${i}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||a.some(t=>t===e||t.endsWith(`. Line truncated
Error Message: ${e.message}`)}),a=(r=i.result)?.value;if(!a)throw Error(`Response json body do not have ID Token field`);return a})}static getIDToken(n){return t(this,void 0,void 0,function*(){try{let t=e.getIDTokenUrl();if(n){let e=encodeURIComponent(n);t=`${t}&audience=${e}`}(0,i.debug)(`ID token url is ${t}`);let r=yield e.getCall(t);return(0,i.setSecret)(r),r}catch(e){throw Error(`Error message: ${e.message}`)}})}};exports.OidcClient=a}),lt=s(exports=>{var t=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.summary=exports.markdownSummary=exports.SUMMARY_DOCS_URL=exports.SUMMARY_ENV_VAR=void 0;let n=u(`os`),r=u(`fs`),{access:i,appendFile:a,writeFile:o}=r.promises;exports.SUMMARY_ENV_VAR=`GITHUB_STEP_SUMMARY`,exports.SUMMARY_DOCS_URL=`https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary`;var s=class{constructor(){this._buffer=``}filePath(){return t(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch{throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath})}wrap(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${t}"`).join(``);return t?`<${e}${r}>${t}</${e}>`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,function*(){let t=!!e?.overwrite,n=yield this.filePath(),r=t?o:a;return yield r(n,this._buffer,{encoding:`utf8`}),this.emptyBuffer()})}clear(){return t(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer=``,this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){let n=Object.assign({},t&&{lang:t}),r=this.wrap(`pre`,this.wrap(`code`,e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){let n=t?`ol`:`ul`,r=e.map(e=>this.wrap(`li`,e)).join(``),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if(typeof e==`string`)return this.wrap(`td`,e);let{header:t,data:n,colspan:r,rowspan:i}=e,a=t?`th`:`td`,o=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(a,n,o)}).join(``);return this.wrap(`tr`,t)}).join(``),n=this.wrap(`table`,t);return this.addRaw(n).addEOL()}addDetails(e,t){let n=this.wrap(`details`,this.wrap(`summary`,e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){let{width:r,height:i}=n||{},a=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),o=this.wrap(`img`,null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){let n=`h${t}`,r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(n)?n:`h1`,i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap(`hr`,null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap(`br`,null);return this.addRaw(e).addEOL()}addQuote(e,t){let n=Object.assign({},t&&{cite:t}),r=this.wrap(`blockquote`,e,n);return this.addRaw(r).addEOL()}addLink(e,t){let n=this.wrap(`a`,e,{href:t});return this.addRaw(n).addEOL()}};let c=new s;exports.markdownSummary=c,exports.summary=c}),ut=s(exports=>{var t=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},n=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.toPlatformPath=exports.toWin32Path=exports.toPosixPath=void 0;let i=r(u(`path`));function a(e){return e.replace(/[\\]/g,`/`)}exports.toPosixPath=a;function o(e){return e.replace(/[/]/g,`\\`)}exports.toWin32Path=o;function s(e){return e.replace(/[/\\]/g,i.sep)}exports.toPlatformPath=s}),dt=s(exports=>{var t=Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},n=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var r={};if(e!=n Line truncated
`);return{name:t,version:n}});exports.platform=o.default.platform(),exports.arch=o.default.arch(),exports.isWindows=exports.platform===`win32`,exports.isMacOS=exports.platform===`darwin`,exports.isLinux=exports.platform===`linux`;function f(){return i(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield exports.isWindows?c():exports.isMacOS?l():d()),{platform:exports.platform,arch:exports.arch,isWindows:exports.isWindows,isMacOS:exports.isMacOS,isLinux:exports.isLinux})})}exports.getDetails=f}),gt=s(exports=>{var t=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},n=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.platform=exports.toPlatformPath=exports.toWin32Path=exports.toPosixPath=exports.markdownSummary=exports.summary=exports.getIDToken=exports.getState=exports.saveState=exports.group=exports.endGroup=exports.startGroup=exports.info=exports.notice=exports.warning=exports.error=exports.debug=exports.isDebug=exports.setFailed=exports.setCommandEcho=exports.setOutput=exports.getBooleanInput=exports.getMultilineInput=exports.getInput=exports.addPath=exports.setSecret=exports.exportVariable=exports.ExitCode=void 0;let a=f(),o=p(),s=d(),c=r(u(`os`)),l=r(u(`path`)),m=ct();var h;(function(e){e[e.Success=0]=`Success`,e[e.Failure=1]=`Failure`})(h||(exports.ExitCode=h={}));function g(e,t){let n=(0,s.toCommandValue)(t);process.env[e]=n;let r=process.env.GITHUB_ENV||``;if(r)return(0,o.issueFileCommand)(`ENV`,(0,o.prepareKeyValueMessage)(e,t));(0,a.issueCommand)(`set-env`,{name:e},n)}exports.exportVariable=g;function _(e){(0,a.issueCommand)(`add-mask`,{},e)}exports.setSecret=_;function v(e){let t=process.env.GITHUB_PATH||``;t?(0,o.issueFileCommand)(`PATH`,e):(0,a.issueCommand)(`add-path`,{},e),process.env.PATH=`${e}${l.delimiter}${process.env.PATH}`}exports.addPath=v;function y(e,t){let n=process.env[`INPUT_${e.replace(/ /g,`_`).toUpperCase()}`]||``;if(t&&t.required&&!n)throw Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}exports.getInput=y;function b(e,t){let n=y(e,t).split(`
`).filter(e=>e!==``);return t&&t.trimWhitespace===!1?n:n.map(e=>e.trim())}exports.getMultilineInput=b;function x(e,t){let n=[`true`,`True`,`TRUE`],r=[`false`,`False`,`FALSE`],i=y(e,t);if(n.includes(i))return!0;if(r.includes(i))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)}exports.getBooleanInput=x;function S(e,t){let n=process.env.GITHUB_OUTPUT||``;if(n)return(0,o.issueFileCommand)(`OUTPUT`,(0,o.prepareKeyValueMessage)(e,t));process.stdout.write(c.EOL),(0,a.issueCommand)(`set-output`,{name:e},(0,s.toCommandValue)(t))}exports.setOutput=S;function C(e){(0,a.issue)(`echo`,e?`on`:`off`)}exports.setCommandEcho=C;function w(e){process.exitCode=h.Failure,D(e)}exports.setFailed=w;function T(){return process.env.RUNNER_DEBUG===`1`}exports.isDebug=T;function E(e){(0,a.issueCommand)(`debug`,{},e)}exports.debug=E;function D(e,t={}){(0,a.issueCommand)(`error`,(0,s.toCommandProperties)(t),e instanceof Error?e.toString():e)}exports.error=D;function O(e,t={}){(0,a.issueCommand)(`warning`,(0,s.toCommandProperties)(t),e instanceof Error?e.toString():e)}exports.warning=O;function k(e,t={}){(0,a.issueCommand)(`notice`,(0,s.toCommandProperties)(t),e instanceof Error?e.toString():e)}exports.notice=k;function A(e){process.stdout.write(e+c.EOL)}exports.info=A;function j(e){(0,a.issue)(`group`,e)}exports.startGroup=j;function M(){(0,a.issue)(`endgroup`)}exports.endGroup=M;function N(e,t){return i(this,void 0,void 0,function*(){j(e);let n;try{n=yield t()}finally{M()}return n})}exports.group=N;function P(e,t){let n=process.env.GITHUB_STATE||``;if(n)return(0,o.issueFileCommand)(`STATE`,(0,o.prepareKeyValueMessage)(e,t));(0,a.issueCommand)(`save-state`,{name:e},(0,s.toCommandValue)(t))}exports.saveState=P;function F(e){return process.env[`STATE_${e}`]||``}exports.getState=F;function I(e){return i(this,void 0,void 0,function*(){return yield m.OidcClient.getIDToken(e)})}exports.getIDToken=I;var L=lt();Object.defineProperty(exports,`summary`,{enumerable:!0,get:function(){return L.summary}});var R=lt();Object.defineProperty(exports,`markdownSummary`,{enumerable:!0,get:function(){return R.markdownSummary}});var z=ut();Object.defineProperty(exports,`toPosixPath`,{enumerable:!0,get:function(){return z.toPosixPath}}),Object.defineProperty(exports,`toWin32Path`,{enumerable:!0,get:function(){return z.toWin32Path}}),Object.defineProperty(exports,`toPlatformPath`,{enumerable:!0,get:function(){return z.toPlatformPath}}),exports.platform=r(ht())});const _t=new Map;function vt(e,t,n=!1){return(n||!_t.has(e))&&_t.set(e,t()),_t.get(e)}var yt=l(gt());function Y(e,t=!0){return vt(e,()=>(0,yt.getBooleanInput)(e,{required:t}))}var bt=s(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.Context=void 0;let t=u(`fs`),n=u(`os`);var r=class{constructor(){var e,r,i;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,t.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,t.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:`utf8`}));else{let e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${n.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)??`https://api.github.com`,this.serverUrl=(r=process.env.GITHUB_SERVER_URL)??`https://github.com`,this.graphqlUrl=(i=process.env.GITHUB_GRAPHQL_URL)??`https://api.github.com/graphql`}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,t]=process.env.GITHUB_REPOSITORY.split(`/`);return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw Error(`context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'`)}};exports.Context=r}),xt=s(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.checkBypass=exports.getProxyUrl=void 0;function t(e){let t=e.protocol===`https:`;if(n(e))return;let r=(()=>t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(r)try{return new i(r)}catch{if(!r.startsWith(`http://`)&&!r.startsWith(`https://`))return new i(`http://${r}`)}else return}exports.getProxyUrl=t;function n(e){if(!e.hostname)return!1;let t=e.hostname;if(r(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let i;e.port?i=Number(e.port):e.protocol===`http:`?i=80:e.protocol===`https:`&&(i=443);let a=[eLine truncated
`+e.errors.map(e=>` - ${e.message}`).join(`
`)}var g=class extends Error{constructor(e,t,n){super(h(n)),this.request=e,this.headers=t,this.response=n,this.name=`GraphqlResponseError`,this.errors=n.errors,this.data=n.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},_=[`method`,`baseUrl`,`url`,`headers`,`request`,`query`,`mediaType`],v=[`query`,`method`,`url`],y=/\/api\/v3\/?$/;function b(e,t,n){if(n){if(typeof t==`string`&&`query`in n)return Promise.reject(Error(`[@octokit/graphql] "query" cannot be used as variable name`));for(let e in n){if(!v.includes(e))continue;return Promise.reject(Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}let r=typeof t==`string`?Object.assign({query:t},n):t,i=Object.keys(r).reduce((e,t)=>_.includes(t)?(e[t]=r[t],e):(e.variables||={},e.variables[t]=r[t],e),{}),a=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return y.test(a)&&(i.url=a.replace(y,`/api/graphql`)),e(i).then(e=>{if(e.data.errors){let t={};for(let n of Object.keys(e.headers))t[n]=e.headers[n];throw new g(i,t,e.data)}return e.data.data})}function x(e,t){let n=e.defaults(t),r=(e,t)=>b(n,e,t);return Object.assign(r,{defaults:x.bind(null,n),endpoint:n.endpoint})}var S=x(u.request,{headers:{"user-agent":`octokit-graphql.js/${f} ${(0,d.getUserAgent)()}`},method:`POST`,url:`/graphql`});function C(e){return x(e,{method:`POST`,url:`/graphql`})}}),Mt=s((exports,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},s=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},c=e=>s(n({},`__esModule`,{value:!0}),e),l={};o(l,{createTokenAuth:()=>g}),t.exports=c(l);var u=/^v1\./,d=/^ghs_/,f=/^ghu_/;async function p(e){let t=e.split(/\./).length===3,n=u.test(e)||d.test(e),r=f.test(e),i=t?`app`:n?`installation`:r?`user-to-server`:`oauth`;return{type:`token`,token:e,tokenType:i}}function m(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function h(e,t,n,r){let i=t.endpoint.merge(n,r);return i.headers.authorization=m(e),t(i)}var g=function(e){if(!e)throw Error(`[@octokit/auth-token] No token passed to createTokenAuth`);if(typeof e!=`string`)throw Error(`[@octokit/auth-token] Token passed to createTokenAuth is not a string`);return e=e.replace(/^(token|bearer) +/i,``),Object.assign(p.bind(null,e),{hook:h.bind(null,e)})}}),Nt=s((exports,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},s=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},c=e=>s(n({},`__esModule`,{value:!0}),e),l={};o(l,{Octokit:()=>b}),t.exports=c(l);var u=bt(),d=wt(),f=At(),p=jt(),m=Mt(),h=`5.2.1`,g=()=>{},_=console.warn.bind(console),v=console.error.bind(console),y=`octokit-core.js/${h} ${(0,u.getUserAgent)()}`,b=class{static{this.VERSION=h}static defaults(e){let t=class extends this{constructor(...t){let n=t[0]||{};if(typeof e==`function`){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){let t=this.plugins,n=class extends this{static{this.plugins=t.concat(e.filter(e=>!t.includes(e)))}};return n}constructor(e={}){let t=new d.Collection,n={baseUrl:f.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,`request`)}),mediaType:{previews:[],format:``}};if(n.headers[`user-agent`]=e.userAgent?`${e.userAgent} ${y}`:y,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers[`time-zone`]=e.timeZone),this.request=f.request.defaults(n),this.graphql=(0,p.withCustomRequest)(this.request).defaults(n),this.log=Object.assign({debug:g,info:g,warn:_,error:v},e.log),this.hook=t,e.authStrategy){let{authStrategy:n,...r}=e,i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:r},e.auth));t.wrap(`request`,i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:`unauthenticated`});else{let n=(0,m.createTokenAuth)(e.auth);t.wrap(`request`,n.hook),this.auth=n}let r=this.constructor;for(let t=0;t<r.plugins.length;++t)Object.assign(this,r.plugins[t](this,e))}}}),Pt=s((exports,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},s=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},c=e=>s(n({},`__esModule`,{value:!0}),e),l={};o(l,{legacyRestEndpointMethods:()=>v,restEndpointMethods:()=>_}),t.exports=c Line truncated
`)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},exports.Directives=a}),Bt=s(exports=>{var t=X(),n=Rt();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e),n=`Anchor must not contain whitespace or control characters: ${t}`;throw Error(n)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}exports.anchorIsValid=r,exports.anchorNames=i,exports.createNodeAnchors=o,exports.findNewAnchor=a}),Vt=s(exports=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let r=i[n],a=t(e,i,String(n),r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=t(e,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let r=t(e,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let a=t(e,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}return e.call(n,r,i)}exports.applyReviver=t}),Ht=s(exports=>{var t=X();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}exports.toJS=n}),Ut=s(exports=>{var t=Vt(),n=X(),r=Ht(),i=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}};exports.NodeBase=i}),Wt=s(exports=>{var t=Bt(),n=Rt(),r=X(),i=Ut(),a=Ht(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||(a.toJS(o,null,t),c=n.get(o)),!c||c.res===void 0){let e=`This should not happen: Alias anchor was not resolved?`;throw ReferenceError(e)}if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i)){let e=`Excessive alias count indicates a resource exhaustion attack`;throw ReferenceError(e)}return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}exports.Alias=o}),Z=s(exports=>{var t=X(),n=Ut(),r=Ht();let i=e=>!e||typeof e!=`function`&&typeof e!=`object`;var a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,exports.Scalar=a,exports.isScalarValue=i}),Gt=s(exports=>{var t=Wt(),n=X(),r=Z();let i=`tag:yaml.org,2002:`;function a(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function o(e,o,s){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=s.schema[n.M Line truncated
`)}var g=class extends Error{constructor(e,t,n){super(h(n)),this.request=e,this.headers=t,this.response=n,this.name=`GraphqlResponseError`,this.errors=n.errors,this.data=n.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},_=[`method`,`baseUrl`,`url`,`headers`,`request`,`query`,`mediaType`],v=[`query`,`method`,`url`],y=/\/api\/v3\/?$/;function b(e,t,n){if(n){if(typeof t==`string`&&`query`in n)return Promise.reject(Error(`[@octokit/graphql] "query" cannot be used as variable name`));for(let e in n){if(!v.includes(e))continue;return Promise.reject(Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}let r=typeof t==`string`?Object.assign({query:t},n):t,i=Object.keys(r).reduce((e,t)=>_.includes(t)?(e[t]=r[t],e):(e.variables||={},e.variables[t]=r[t],e),{}),a=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return y.test(a)&&(i.url=a.replace(y,`/api/graphql`)),e(i).then(e=>{if(e.data.errors){let t={};for(let n of Object.keys(e.headers))t[n]=e.headers[n];throw new g(i,t,e.data)}return e.data.data})}function x(e,t){let n=e.defaults(t),r=(e,t)=>b(n,e,t);return Object.assign(r,{defaults:x.bind(null,n),endpoint:n.endpoint})}var S=x(u.request,{headers:{"user-agent":`octokit-graphql.js/${f} ${(0,d.getUserAgent)()}`},method:`POST`,url:`/graphql`});function C(e){return x(e,{method:`POST`,url:`/graphql`})}}),It=s((exports,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},s=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},c=e=>s(n({},`__esModule`,{value:!0}),e),l={};o(l,{createTokenAuth:()=>g}),t.exports=c(l);var u=/^v1\./,d=/^ghs_/,f=/^ghu_/;async function p(e){let t=e.split(/\./).length===3,n=u.test(e)||d.test(e),r=f.test(e),i=t?`app`:n?`installation`:r?`user-to-server`:`oauth`;return{type:`token`,token:e,tokenType:i}}function m(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function h(e,t,n,r){let i=t.endpoint.merge(n,r);return i.headers.authorization=m(e),t(i)}var g=function(e){if(!e)throw Error(`[@octokit/auth-token] No token passed to createTokenAuth`);if(typeof e!=`string`)throw Error(`[@octokit/auth-token] Token passed to createTokenAuth is not a string`);return e=e.replace(/^(token|bearer) +/i,``),Object.assign(p.bind(null,e),{hook:h.bind(null,e)})}}),Lt=s((exports,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},s=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},c=e=>s(n({},`__esModule`,{value:!0}),e),l={};o(l,{Octokit:()=>b}),t.exports=c(l);var u=wt(),d=Ot(),f=Pt(),p=Ft(),m=It(),h=`5.2.1`,g=()=>{},_=console.warn.bind(console),v=console.error.bind(console),y=`octokit-core.js/${h} ${(0,u.getUserAgent)()}`,b=class{static{this.VERSION=h}static defaults(e){let t=class extends this{constructor(...t){let n=t[0]||{};if(typeof e==`function`){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){let t=this.plugins,n=class extends this{static{this.plugins=t.concat(e.filter(e=>!t.includes(e)))}};return n}constructor(e={}){let t=new d.Collection,n={baseUrl:f.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,`request`)}),mediaType:{previews:[],format:``}};if(n.headers[`user-agent`]=e.userAgent?`${e.userAgent} ${y}`:y,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers[`time-zone`]=e.timeZone),this.request=f.request.defaults(n),this.graphql=(0,p.withCustomRequest)(this.request).defaults(n),this.log=Object.assign({debug:g,info:g,warn:_,error:v},e.log),this.hook=t,e.authStrategy){let{authStrategy:n,...r}=e,i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:r},e.auth));t.wrap(`request`,i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:`unauthenticated`});else{let n=(0,m.createTokenAuth)(e.auth);t.wrap(`request`,n.hook),this.auth=n}let r=this.constructor;for(let t=0;t<r.plugins.length;++t)Object.assign(this,r.plugins[t](this,e))}}}),Rt=s((exports,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},s=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},c=e=>s(n({},`__esModule`,{value:!0}),e),l={};o(l,{legacyRestEndpointMethods:()=>v,restEndpointMethods:()=>_}),t.exports=c Line truncated
`)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},exports.Directives=a}),Wt=s(exports=>{var t=X(),n=Ht();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e),n=`Anchor must not contain whitespace or control characters: ${t}`;throw Error(n)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}exports.anchorIsValid=r,exports.anchorNames=i,exports.createNodeAnchors=o,exports.findNewAnchor=a}),Gt=s(exports=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let r=i[n],a=t(e,i,String(n),r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=t(e,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let r=t(e,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let a=t(e,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}return e.call(n,r,i)}exports.applyReviver=t}),Kt=s(exports=>{var t=X();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}exports.toJS=n}),qt=s(exports=>{var t=Gt(),n=X(),r=Kt(),i=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}};exports.NodeBase=i}),Jt=s(exports=>{var t=Wt(),n=Ht(),r=X(),i=qt(),a=Kt(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||(a.toJS(o,null,t),c=n.get(o)),!c||c.res===void 0){let e=`This should not happen: Alias anchor was not resolved?`;throw ReferenceError(e)}if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i)){let e=`Excessive alias count indicates a resource exhaustion attack`;throw ReferenceError(e)}return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}exports.Alias=o}),Z=s(exports=>{var t=X(),n=qt(),r=Kt();let i=e=>!e||typeof e!=`function`&&typeof e!=`object`;var a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,exports.Scalar=a,exports.isScalarValue=i}),Yt=s(exports=>{var t=Jt(),n=X(),r=Z();let i=`tag:yaml.org,2002:`;function a(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function o(e,o,s){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=s.schema[n.M Line truncated
`)?n(r,t):r.includes(`
`)?`
`+n(r,t):(e.endsWith(` `)?``:` `)+r;exports.indentComment=n,exports.lineComment=r,exports.stringifyComment=t}),Jt=s(exports=>{let t=`flow`,n=`block`,r=`quoted`;function i(e,t,i=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;s<c&&(c=0);let d=Math.max(1+c,1+s-t.length);if(e.length<=d)return e;let f=[],p={},m=s-t.length;typeof o==`number`&&(o>s-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;i===n&&(v=a(e,v,t.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(i===r&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===`
`+n(r,t):(e.endsWith(` `)?``:` `)+r;exports.indentComment=n,exports.lineComment=r,exports.stringifyComment=t}),Qt=s(exports=>{let t=`flow`,n=`block`,r=`quoted`;function i(e,t,i=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;s<c&&(c=0);let d=Math.max(1+c,1+s-t.length);if(e.length<=d)return e;let f=[],p={},m=s-t.length;typeof o==`number`&&(o>s-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;i===n&&(v=a(e,v,t.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(i===r&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===`
`)i===n&&(v=a(e,v,t.length)),m=v+t.length+d,h=void 0;else{if(o===` `&&g&&g!==` `&&g!==`
`&&g!==` `){let t=e[v+1];t&&t!==` `&&t!==`
`&&t!==` `&&(h=v)}if(v>=m)if(h)f.push(h),m=h+d,h=void 0;else if(i===r){for(;g===` `||g===` `;)g=o,o=e[v+=1],_=!0;let t=v>b+1?v-2:y-1;if(p[t])return e;f.push(t),p[t]=!0,m=t+d,h=void 0}else _=!0}g=o}if(_&&u&&u(),f.length===0)return e;l&&l();let x=e.slice(0,f[0]);for(let n=0;n<f.length;++n){let a=f[n],o=f[n+1]||e.length;a===0?x=`\n${t}${e.slice(0,o)}`:(i===r&&p[a]&&(x+=`${e[a]}\\`),x+=`\n${t}${e.slice(a+1,o)}`)}return x}function a(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
`);r=t,i=t+1,a=e[i]}return r}exports.FOLD_BLOCK=n,exports.FOLD_FLOW=t,exports.FOLD_QUOTED=r,exports.foldFlowLines=i}),Yt=s(exports=>{var t=Z(),n=Jt();let r=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
`);r=t,i=t+1,a=e[i]}return r}exports.FOLD_BLOCK=n,exports.FOLD_FLOW=t,exports.FOLD_QUOTED=r,exports.foldFlowLines=i}),$t=s(exports=>{var t=Z(),n=Qt();let r=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
`){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function o(e,t){let a=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return a;let{implicitKey:o}=t,s=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?` `:``),l=``,u=0;for(let e=0,t=a[e];t;t=a[++e])if(t===` `&&a[e+1]===`\\`&&a[e+2]===`n`&&(l+=a.slice(u,e)+`\\ `,e+=1,u=e,t=`\\`),t===`\\`)switch(a[e+1]){case`u`:{l+=a.slice(u,e);let t=a.substr(e+2,4);switch(t){case`0000`:l+=`\\0`;break;case`0007`:l+=`\\a`;break;case`000b`:l+=`\\v`;break;case`001b`:l+=`\\e`;break;case`0085`:l+=`\\N`;break;case`00a0`:l+=`\\_`;break;case`2028`:l+=`\\L`;break;case`2029`:l+=`\\P`;break;default:t.substr(0,2)===`00`?l+=`\\x`+t.substr(2):l+=a.substr(e,6)}e+=5,u=e+1}break;case`n`:if(o||a[e+2]===`"`||a.length<s)e+=1;else{for(l+=a.slice(u,e)+`
`;a[e+2]===`\\`&&a[e+3]===`n`&&a[e+4]!==`"`;)l+=`
@@ -54,29 +54,29 @@ ${e.format(t)}
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${g}`),i=!1,a=r(u,!0);p!==`folded`&&o!==t.Scalar.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let c=n.foldFlowLines(`${T}${e}${b}`,g,n.FOLD_BLOCK,a);if(!i)return`>${D}\n${g}${c}`}return s=s.replace(/\n+/g,`$&${g}`),`|${D}\n${g}${T}${s}${b}`}function d(e,a,o,s){let{type:l,value:d}=e,{actualString:f,implicitKey:p,indent:m,indentStep:h,inFlow:g}=a;if(p&&d.includes(`
`)||g&&/[[\]{},]/.test(d))return c(d,a);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(d))return p||g||!d.includes(`
`)?c(d,a):u(e,a,o,s);if(!p&&!g&&l!==t.Scalar.PLAIN&&d.includes(`
`))return u(e,a,o,s);if(i(d)){if(m===``)return a.forceBlockIndent=!0,u(e,a,o,s);if(p&&m===h)return c(d,a)}let _=d.replace(/\n+/g,`$&\n${m}`);if(f){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}exports.stringifyString=f}),Xt=s(exports=>{var t=Bt(),n=X(),r=qt(),i=Yt();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>c=e});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}\n${t.indent}${d}`:d}exports.createStringifyContext=a,exports.stringify=c}),Zt=s(exports=>{var t=X(),n=Z(),r=Xt(),i=qt();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`){let e=`With simple keys, collection cannot be used as a key value`;throw Error(e)}}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}\n${d}:`):(b=`${b}:`,g&&(b+=i.lineComment(b,o.indent,p(g))));let x,S,C;t.isNode(a)?(x=!!a.spaceBefore,S=a.commentBefore,C=a.comment):(x=!1,S=null,C=null,a&&typeof a==`object`&&(a=u.createNode(a))),o.implicitKey=!1,!_&&!g&&t.isScalar(a)&&(o.indentAtStart=b.length+1),y=!1,!m&&f.length>=2&&!o.inFlow&&!_&&t.isSeq(a)&&!a.flow&&!a.tag&&!a.anchor&&(o.indent=o.indent.substring(2));let w=!1,T=r.stringify(a,o,()=>w=!0,()=>y=!0),E=` `;if(g||x||S){if(E=x?`
`))return u(e,a,o,s);if(i(d)){if(m===``)return a.forceBlockIndent=!0,u(e,a,o,s);if(p&&m===h)return c(d,a)}let _=d.replace(/\n+/g,`$&\n${m}`);if(f){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}exports.stringifyString=f}),en=s(exports=>{var t=Wt(),n=X(),r=Zt(),i=$t();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>c=e});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}\n${t.indent}${d}`:d}exports.createStringifyContext=a,exports.stringify=c}),tn=s(exports=>{var t=X(),n=Z(),r=en(),i=Zt();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`){let e=`With simple keys, collection cannot be used as a key value`;throw Error(e)}}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}\n${d}:`):(b=`${b}:`,g&&(b+=i.lineComment(b,o.indent,p(g))));let x,S,C;t.isNode(a)?(x=!!a.spaceBefore,S=a.commentBefore,C=a.comment):(x=!1,S=null,C=null,a&&typeof a==`object`&&(a=u.createNode(a))),o.implicitKey=!1,!_&&!g&&t.isScalar(a)&&(o.indentAtStart=b.length+1),y=!1,!m&&f.length>=2&&!o.inFlow&&!_&&t.isSeq(a)&&!a.flow&&!a.tag&&!a.anchor&&(o.indent=o.indent.substring(2));let w=!1,T=r.stringify(a,o,()=>w=!0,()=>y=!0),E=` `;if(g||x||S){if(E=x?`
`:``,S){let e=p(S);E+=`\n${i.indentComment(e,o.indent)}`}T===``&&!o.inFlow?E===`
`&&(E=`
`):E+=`\n${o.indent}`}else if(!_&&t.isCollection(a)){let e=T[0],t=T.indexOf(`
`),n=t!==-1,r=o.inFlow??a.flow??a.items.length===0;if(n||!r){let r=!1;if(n&&(e===`&`||e===`!`)){let n=T.indexOf(` `);e===`&`&&n!==-1&&n<t&&T[n+1]===`!`&&(n=T.indexOf(` `,n+1)),(n===-1||t<n)&&(r=!0)}r||(E=`\n${o.indent}`)}}else (T===``||T[0]===`
`)&&(E=``);return b+=E+T,o.inFlow?w&&s&&s():C&&!w?b+=i.lineComment(b,o.indent,p(C)):y&&c&&c(),b}exports.stringifyPair=a}),Qt=s(exports=>{var t=u(`process`);function n(e,...t){e===`debug`&&console.log(...t)}function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}exports.debug=n,exports.warn=r}),$t=s(exports=>{var t=X(),n=Z();let r=`<<`,i={identify:e=>e===r||typeof e==`symbol`&&e.description===r,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(r)),{addToJSMap:o}),stringify:()=>r},a=(e,r)=>(i.identify(r)||t.isScalar(r)&&(!r.type||r.type===n.Scalar.PLAIN)&&i.identify(r.value))&&e?.doc.schema.tags.some(e=>e.tag===i.tag&&e.default);function o(e,n,r){if(r=e&&t.isAlias(r)?r.resolve(e.doc):r,t.isSeq(r))for(let t of r.items)s(e,n,t);else if(Array.isArray(r))for(let t of r)s(e,n,t);else s(e,n,r)}function s(e,n,r){let i=e&&t.isAlias(r)?r.resolve(e.doc):r;if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}exports.addMergeToJSMap=o,exports.isMergeKey=a,exports.merge=i}),en=s(exports=>{var t=Qt(),n=$t(),r=Xt(),i=X(),a=Ht();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}exports.addPairToJSMap=o}),tn=s(exports=>{var t=Gt(),n=Zt(),r=en(),i=X();function a(e,n,r){let i=t.createNode(e,void 0,r),a=t.createNode(n,void 0,r);return new o(i,a)}var o=class e{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};exports.Pair=o,exports.createPair=a}),nn=s(exports=>{var t=X(),n=Xt(),r=qt();function i(e,t,n){let r=t.inFlow??e.flow,i=r?o:a;return i(e,t,n)}function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;e<i.length;++e){let c=i[e],u=null;if(t.isNode(c))!h&&c.spaceBefore&&g.push(``),s(a,g,c.commentBefore,h),c.comment&&(u=c.comment);else if(t.isPair(c)){let e=t.isNode(c.key)?c.key:null;e&&(!h&&e.spaceBefore&&g.push(``),s(a,g,e.commentBefore,h))}h=!1;let d=n.stringify(c,m,()=>u=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;e<g.length;++e){let t=g[e];_+=t?`\n${f}${t}`:`
`)&&(E=``);return b+=E+T,o.inFlow?w&&s&&s():C&&!w?b+=i.lineComment(b,o.indent,p(C)):y&&c&&c(),b}exports.stringifyPair=a}),nn=s(exports=>{var t=u(`process`);function n(e,...t){e===`debug`&&console.log(...t)}function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}exports.debug=n,exports.warn=r}),rn=s(exports=>{var t=X(),n=Z();let r=`<<`,i={identify:e=>e===r||typeof e==`symbol`&&e.description===r,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(r)),{addToJSMap:o}),stringify:()=>r},a=(e,r)=>(i.identify(r)||t.isScalar(r)&&(!r.type||r.type===n.Scalar.PLAIN)&&i.identify(r.value))&&e?.doc.schema.tags.some(e=>e.tag===i.tag&&e.default);function o(e,n,r){if(r=e&&t.isAlias(r)?r.resolve(e.doc):r,t.isSeq(r))for(let t of r.items)s(e,n,t);else if(Array.isArray(r))for(let t of r)s(e,n,t);else s(e,n,r)}function s(e,n,r){let i=e&&t.isAlias(r)?r.resolve(e.doc):r;if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}exports.addMergeToJSMap=o,exports.isMergeKey=a,exports.merge=i}),an=s(exports=>{var t=nn(),n=rn(),r=en(),i=X(),a=Kt();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}exports.addPairToJSMap=o}),on=s(exports=>{var t=Yt(),n=tn(),r=an(),i=X();function a(e,n,r){let i=t.createNode(e,void 0,r),a=t.createNode(n,void 0,r);return new o(i,a)}var o=class e{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};exports.Pair=o,exports.createPair=a}),sn=s(exports=>{var t=X(),n=en(),r=Zt();function i(e,t,n){let r=t.inFlow??e.flow,i=r?o:a;return i(e,t,n)}function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;e<i.length;++e){let c=i[e],u=null;if(t.isNode(c))!h&&c.spaceBefore&&g.push(``),s(a,g,c.commentBefore,h),c.comment&&(u=c.comment);else if(t.isPair(c)){let e=t.isNode(c.key)?c.key:null;e&&(!h&&e.spaceBefore&&g.push(``),s(a,g,e.commentBefore,h))}h=!1;let d=n.stringify(c,m,()=>u=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;e<g.length;++e){let t=g[e];_+=t?`\n${f}${t}`:`
`}}return e?(_+=`
`+r.indentComment(p(e),f),d&&d()):h&&u&&u(),_}function o({items:e},i,{flowChars:a,itemIndent:o}){let{indent:c,indentStep:l,flowCollectionPadding:u,options:{commentString:d}}=i;o+=l;let f=Object.assign({},i,{indent:o,inFlow:!0,type:null}),p=!1,m=0,h=[];for(let a=0;a<e.length;++a){let c=e[a],l=null;if(t.isNode(c))c.spaceBefore&&h.push(``),s(i,h,c.commentBefore,!1),c.comment&&(l=c.comment);else if(t.isPair(c)){let e=t.isNode(c.key)?c.key:null;e&&(e.spaceBefore&&h.push(``),s(i,h,e.commentBefore,!1),e.comment&&(p=!0));let n=t.isNode(c.value)?c.value:null;n?(n.comment&&(l=n.comment),n.commentBefore&&(p=!0)):c.value==null&&e?.comment&&(l=e.comment)}l&&(p=!0);let u=n.stringify(c,f,()=>l=null);a<e.length-1&&(u+=`,`),l&&(u+=r.lineComment(u,o,d(l))),!p&&(h.length>m||u.includes(`
`))&&(p=!0),h.push(u),m=h.length}let{start:g,end:_}=a;if(h.length===0)return g+_;if(!p){let e=h.reduce((e,t)=>e+t.length+2,2);p=i.options.lineWidth>0&&e>i.options.lineWidth}if(p){let e=g;for(let t of h)e+=t?`\n${l}${c}${t}`:`
`;return`${e}\n${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}exports.stringifyCollection=i}),rn=s(exports=>{var t=nn(),n=en(),r=Kt(),i=X(),a=tn(),o=Z();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}var c=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=(e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);if(!t)return!1;let n=this.items.splice(this.items.indexOf(t),1);return n.length>0}get(e,t){let n=s(this.items,e),r=n?.value;return(!t&&i.isScalar(r)?r.value:r)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}};exports.YAMLMap=c,exports.findPair=s}),an=s(exports=>{var t=X(),n=rn();let r={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)};exports.map=r}),on=s(exports=>{var t=Gt(),n=nn(),r=Kt(),i=X(),a=Z(),o=Ht(),s=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);if(typeof t!=`number`)return!1;let n=this.items.splice(t,1);return n.length>0}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=c(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];i.isScalar(r)&&a.isScalarValue(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(o.toJS(e,String(r++),t));return n}toString(e,t,r){return e?n.stringifyCollection(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,n,r){let{replacer:i}=r,a=new this(e);if(n&&Symbol.iterator in Object(n)){let e=0;for(let o of n){if(typeof i==`function`){let t=n instanceof Set?o:String(e++);o=i.call(n,t,o)}a.items.push(t.createNode(o,void 0,r))}}return a}};function c(e){let t=i.isScalar(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}exports.YAMLSeq=s}),sn=s(exports=>{var t=X(),n=on();let r={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)};exports.seq=r}),cn=s(exports=>{var t=Yt();let n={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}};exports.string=n}),ln=s(exports=>{var t=Z();let n={identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new t.Scalar(null),stringify:({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr};exports.nullTag=n}),un=s(exports=>{var t=Z();let n={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new t.Scalar(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},r){if(e&&n.test.test(e)){let n=e[0]===`t`||e[0]===`T`;if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};exports.boolTag=n}),dn=s(exports=>{f Line truncated
`:` `)}return r.stringifyString({comment:e,type:i,value:u},o,s,c)}};exports.binary=i}),_n=s(exports=>{var t=X(),n=tn(),r=Z(),i=on();function a(e,i){if(t.isSeq(e))for(let a=0;a<e.items.length;++a){let o=e.items[a];if(!t.isPair(o)){if(t.isMap(o)){o.items.length>1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}let s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};exports.createPairs=o,exports.pairs=s,exports.resolvePairs=a}),vn=s(exports=>{var t=X(),n=Ht(),r=rn(),i=on(),a=_n(),o=class e extends i.YAMLSeq{constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;let s={collection:`seq`,identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:(e,t,n)=>o.from(e,t,n)};exports.YAMLOMap=o,exports.omap=s}),yn=s(exports=>{var t=Z();function n({value:e,source:t},n){let a=e?r:i;return t&&a.test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let r={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new t.Scalar(!0),stringify:n},i={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new t.Scalar(!1),stringify:n};exports.falseTag=i,exports.trueTag=r}),bn=s(exports=>{var t=Z(),n=dn();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber},i={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},a={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber};exports.float=a,exports.floatExp=i,exports.floatNaN=r}),xn=s(exports=>{var t=dn();let n=e=>typeof e==`bigint`||Number.isInteger(e);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}let a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>r(e,2,2,n),stringify:e=>i(e,2,`0b`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>r(e,1,8,n),stringify:e=>i(e,8,`0`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)};exports.int=s,exports.intBin= Line truncated
`;return`${e}\n${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}exports.stringifyCollection=i}),cn=s(exports=>{var t=sn(),n=an(),r=Xt(),i=X(),a=on(),o=Z();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}var c=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=(e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);if(!t)return!1;let n=this.items.splice(this.items.indexOf(t),1);return n.length>0}get(e,t){let n=s(this.items,e),r=n?.value;return(!t&&i.isScalar(r)?r.value:r)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}};exports.YAMLMap=c,exports.findPair=s}),ln=s(exports=>{var t=X(),n=cn();let r={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)};exports.map=r}),un=s(exports=>{var t=Yt(),n=sn(),r=Xt(),i=X(),a=Z(),o=Kt(),s=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);if(typeof t!=`number`)return!1;let n=this.items.splice(t,1);return n.length>0}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=c(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];i.isScalar(r)&&a.isScalarValue(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(o.toJS(e,String(r++),t));return n}toString(e,t,r){return e?n.stringifyCollection(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,n,r){let{replacer:i}=r,a=new this(e);if(n&&Symbol.iterator in Object(n)){let e=0;for(let o of n){if(typeof i==`function`){let t=n instanceof Set?o:String(e++);o=i.call(n,t,o)}a.items.push(t.createNode(o,void 0,r))}}return a}};function c(e){let t=i.isScalar(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}exports.YAMLSeq=s}),dn=s(exports=>{var t=X(),n=un();let r={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)};exports.seq=r}),fn=s(exports=>{var t=$t();let n={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}};exports.string=n}),pn=s(exports=>{var t=Z();let n={identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new t.Scalar(null),stringify:({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr};exports.nullTag=n}),mn=s(exports=>{var t=Z();let n={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new t.Scalar(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},r){if(e&&n.test.test(e)){let n=e[0]===`t`||e[0]===`T`;if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};exports.boolTag=n}),hn=s(exports=>{f Line truncated
`:` `)}return r.stringifyString({comment:e,type:i,value:u},o,s,c)}};exports.binary=i}),xn=s(exports=>{var t=X(),n=on(),r=Z(),i=un();function a(e,i){if(t.isSeq(e))for(let a=0;a<e.items.length;++a){let o=e.items[a];if(!t.isPair(o)){if(t.isMap(o)){o.items.length>1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}let s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};exports.createPairs=o,exports.pairs=s,exports.resolvePairs=a}),Sn=s(exports=>{var t=X(),n=Kt(),r=cn(),i=un(),a=xn(),o=class e extends i.YAMLSeq{constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;let s={collection:`seq`,identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:(e,t,n)=>o.from(e,t,n)};exports.YAMLOMap=o,exports.omap=s}),Cn=s(exports=>{var t=Z();function n({value:e,source:t},n){let a=e?r:i;return t&&a.test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let r={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new t.Scalar(!0),stringify:n},i={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new t.Scalar(!1),stringify:n};exports.falseTag=i,exports.trueTag=r}),wn=s(exports=>{var t=Z(),n=hn();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber},i={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},a={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber};exports.float=a,exports.floatExp=i,exports.floatNaN=r}),Tn=s(exports=>{var t=hn();let n=e=>typeof e==`bigint`||Number.isInteger(e);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}let a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>r(e,2,2,n),stringify:e=>i(e,2,`0b`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>r(e,1,8,n),stringify:e=>i(e,8,`0`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)};exports.int=s,exports.intBin= Line truncated
`)?(a.push(`...`),a.push(r.indentComment(t,``))):a.push(`... ${t}`)}else a.push(`...`);else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,``)),t&&((!l||u)&&a[a.length-1]!==``&&a.push(``),a.push(r.indentComment(c(t),``)))}return a.join(`
`)+`
`}exports.stringifyDocument=i}),On=s(exports=>{var t=Wt(),n=Kt(),r=X(),i=tn(),a=Ht(),o=En(),s=Dn(),c=Bt(),l=Vt(),u=Gt(),d=zt(),f=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=e=>typeof e==`number`||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}exports.Document=f}),kn=s(exports=>{var t=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}};let i=(e,t)=>n=>{if(n.pos[0]===-1)re Line truncated
`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};exports.YAMLError=t,exports.YAMLParseError=n,exports.YAMLWarning=r,exports.prettifyError=i}),An=s(exports=>{function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),m=!1),h&&(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),h=null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}exports.resolveProps=t}),jn=s(exports=>{function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}exports.containsNewline=t}),Mn=s(exports=>{var t=jn();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];if(i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)){let e=`Flow end indicator should be more indented than parent`;r(i,`BAD_INDENT`,e,!0)}}}exports.flowIndentCheck=n}),Nn=s(exports=>{var t=X();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}exports.mapIncludes=n}),Pn=s(exports=>{var t=tn(),n=rn(),r=An(),i=jn(),a=Mn(),o=Nn();let s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=f?.nodeClass??n.YAMLMap,m=new p(l.schema);l.atRoot&&=!1;let h=u.offset,g=null;for(let n of u.items){let{start:f,key:p,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:p??_?.[0],offset:h,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(p&&(p.type===`block-seq`?d(h,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in p&&p.indent!==u.indent&&d(h,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){g=y.end,y.comment&&(m.comment?m.comment+=`
`}exports.stringifyDocument=i}),Mn=s(exports=>{var t=Jt(),n=Xt(),r=X(),i=on(),a=Kt(),o=An(),s=jn(),c=Wt(),l=Gt(),u=Yt(),d=Ut(),f=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=e=>typeof e==`number`||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}exports.Document=f}),Nn=s(exports=>{var t=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}};let i=(e,t)=>n=>{if(n.pos[0]===-1)re Line truncated
`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};exports.YAMLError=t,exports.YAMLParseError=n,exports.YAMLWarning=r,exports.prettifyError=i}),Pn=s(exports=>{function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),m=!1),h&&(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),h=null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}exports.resolveProps=t}),Fn=s(exports=>{function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}exports.containsNewline=t}),In=s(exports=>{var t=Fn();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];if(i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)){let e=`Flow end indicator should be more indented than parent`;r(i,`BAD_INDENT`,e,!0)}}}exports.flowIndentCheck=n}),Ln=s(exports=>{var t=X();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}exports.mapIncludes=n}),Rn=s(exports=>{var t=on(),n=cn(),r=Pn(),i=Fn(),a=In(),o=Ln();let s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=f?.nodeClass??n.YAMLMap,m=new p(l.schema);l.atRoot&&=!1;let h=u.offset,g=null;for(let n of u.items){let{start:f,key:p,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:p??_?.[0],offset:h,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(p&&(p.type===`block-seq`?d(h,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in p&&p.indent!==u.indent&&d(h,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){g=y.end,y.comment&&(m.comment?m.comment+=`
`+y.comment:m.comment=y.comment);continue}(y.newlineAfterProp||i.containsNewline(p))&&d(p??f[f.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else y.found?.indent!==u.indent&&d(h,`BAD_INDENT`,s);l.atKey=!0;let x=y.end,S=p?e(l,p,y,d):c(l,x,f,null,y,d);l.schema.compat&&a.flowIndentCheck(u.indent,p,d),l.atKey=!1,o.mapIncludes(l,m.items,S)&&d(x,`DUPLICATE_KEY`,`Map keys must be unique`);let C=r.resolveProps(_??[],{indicator:`map-value-ind`,next:v,offset:S.range[2],onError:d,parentIndent:u.indent,startOnNewline:!p||p.type===`block-scalar`});if(h=C.end,C.found){b&&(v?.type===`block-map`&&!C.hasNewline&&d(h,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),l.options.strict&&y.start<C.found.offset-1024&&d(S.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let r=v?e(l,v,C,d):c(l,h,_,null,C,d);l.schema.compat&&a.flowIndentCheck(u.indent,v,d),h=r.range[2];let i=new t.Pair(S,r);l.options.keepSourceTokens&&(i.srcToken=n),m.items.push(i)}else{b&&d(S.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),C.comment&&(S.comment?S.comment+=`
`+C.comment:S.comment=C.comment);let e=new t.Pair(S);l.options.keepSourceTokens&&(e.srcToken=n),m.items.push(e)}}return g&&g<h&&d(g,`IMPOSSIBLE`,`Map comment with trailing content`),m.range=[u.offset,h,g??h],m}exports.resolveBlockMap=c}),Fn=s(exports=>{var t=on(),n=An(),r=Mn();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=c?.nodeClass??t.YAMLSeq,u=new l(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let d=o.offset,f=null;for(let{start:t,value:c}of o.items){let l=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:d,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!l.found)if(l.anchor||l.tag||c)c&&c.type===`block-seq`?s(l.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(d,`MISSING_CHAR`,`Sequence item without - indicator`);else{f=l.end,l.comment&&(u.comment=l.comment);continue}let p=c?e(a,c,l,s):i(a,l.end,t,null,l,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),d=p.range[2],u.items.push(p)}return u.range=[o.offset,d,f??d],u}exports.resolveBlockSeq=i}),In=s(exports=>{function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}exports.resolveEnd=t}),Ln=s(exports=>{var t=X(),n=tn(),r=rn(),i=on(),a=In(),o=An(),s=jn(),c=Nn();let l=`Block collections are not allowed within flow collections`,u=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=h?.nodeClass??(g?r.YAMLMap:i.YAMLSeq),y=new v(f.schema);y.flow=!0;let b=f.atRoot;b&&(f.atRoot=!1),f.atKey&&=!1;let x=p.offset+p.start.source.length;for(let i=0;i<p.items.length;++i){let a=p.items[i],{start:h,key:v,sep:b,value:S}=a,C=o.resolveProps(h,{flow:_,indicator:`explicit-key-ind`,next:v??b?.[0],offset:x,onError:m,parentIndent:p.indent,startOnNewline:!1});if(!C.found){if(!C.anchor&&!C.tag&&!b&&!S){i===0&&C.comma?m(C.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${_}`):i<p.items.length-1&&m(C.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${_}`),C.comment&&(y.comment?y.comment+=`
`+C.comment:S.comment=C.comment);let e=new t.Pair(S);l.options.keepSourceTokens&&(e.srcToken=n),m.items.push(e)}}return g&&g<h&&d(g,`IMPOSSIBLE`,`Map comment with trailing content`),m.range=[u.offset,h,g??h],m}exports.resolveBlockMap=c}),zn=s(exports=>{var t=un(),n=Pn(),r=In();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=c?.nodeClass??t.YAMLSeq,u=new l(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let d=o.offset,f=null;for(let{start:t,value:c}of o.items){let l=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:d,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!l.found)if(l.anchor||l.tag||c)c&&c.type===`block-seq`?s(l.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(d,`MISSING_CHAR`,`Sequence item without - indicator`);else{f=l.end,l.comment&&(u.comment=l.comment);continue}let p=c?e(a,c,l,s):i(a,l.end,t,null,l,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),d=p.range[2],u.items.push(p)}return u.range=[o.offset,d,f??d],u}exports.resolveBlockSeq=i}),Bn=s(exports=>{function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}exports.resolveEnd=t}),Vn=s(exports=>{var t=X(),n=on(),r=cn(),i=un(),a=Bn(),o=Pn(),s=Fn(),c=Ln();let l=`Block collections are not allowed within flow collections`,u=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=h?.nodeClass??(g?r.YAMLMap:i.YAMLSeq),y=new v(f.schema);y.flow=!0;let b=f.atRoot;b&&(f.atRoot=!1),f.atKey&&=!1;let x=p.offset+p.start.source.length;for(let i=0;i<p.items.length;++i){let a=p.items[i],{start:h,key:v,sep:b,value:S}=a,C=o.resolveProps(h,{flow:_,indicator:`explicit-key-ind`,next:v??b?.[0],offset:x,onError:m,parentIndent:p.indent,startOnNewline:!1});if(!C.found){if(!C.anchor&&!C.tag&&!b&&!S){i===0&&C.comma?m(C.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${_}`):i<p.items.length-1&&m(C.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${_}`),C.comment&&(y.comment?y.comment+=`
`+C.comment:y.comment=C.comment),x=C.end;continue}!g&&f.options.strict&&s.containsNewline(v)&&m(v,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(i===0)C.comma&&m(C.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${_}`);else if(C.comma||m(C.start,`MISSING_CHAR`,`Missing , between ${_} items`),C.comment){let e=``;loop:for(let t of h)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let n=y.items[y.items.length-1];t.isPair(n)&&(n=n.value??n.key),n.comment?n.comment+=`
`+e:n.comment=e,C.comment=C.comment.substring(e.length+1)}}if(!g&&!b&&!C.found){let t=S?e(f,S,C,m):d(f,C.end,b,null,C,m);y.items.push(t),x=t.range[2],u(S)&&m(t.range,`BLOCK_IN_FLOW`,l)}else{f.atKey=!0;let t=C.end,i=v?e(f,v,C,m):d(f,t,h,null,C,m);u(v)&&m(i.range,`BLOCK_IN_FLOW`,l),f.atKey=!1;let s=o.resolveProps(b??[],{flow:_,indicator:`map-value-ind`,next:S,offset:i.range[2],onError:m,parentIndent:p.indent,startOnNewline:!1});if(s.found){if(!g&&!C.found&&f.options.strict){if(b)for(let e of b){if(e===s.found)break;if(e.type===`newline`){m(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}C.start<s.found.offset-1024&&m(s.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else S&&(`source`in S&&S.source&&S.source[0]===`:`?m(S,`MISSING_CHAR`,`Missing space after : in ${_}`):m(s.start,`MISSING_CHAR`,`Missing , or : between ${_} items`));let w=S?e(f,S,s,m):s.found?d(f,s.end,b,null,s,m):null;w?u(S)&&m(w.range,`BLOCK_IN_FLOW`,l):s.comment&&(i.comment?i.comment+=`
`+s.comment:i.comment=s.comment);let T=new n.Pair(i,w);if(f.options.keepSourceTokens&&(T.srcToken=a),g){let e=y;c.mapIncludes(f,e.items,i)&&m(t,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(T)}else{let e=new r.YAMLMap(f.schema);e.flow=!0,e.items.push(T);let t=(w??i).range;e.range=[i.range[0],t[1],t[2]],y.items.push(e)}x=w?w.range[2]:s.end}}let S=g?`}`:`]`,[C,...w]=p.end,T=x;if(C&&C.source===S)T=C.offset+C.source.length;else{let e=_[0].toUpperCase()+_.substring(1),t=b?`${e} must end with a ${S}`:`${e} in block collection must be sufficiently indented and end with a ${S}`;m(x,b?`MISSING_CHAR`:`BAD_INDENT`,t),C&&C.source.length!==1&&w.unshift(C)}if(w.length>0){let e=a.resolveEnd(w,T,f.options.strict,m);e.comment&&(y.comment?y.comment+=`
`+e.comment:y.comment=e.comment),y.range=[p.offset,T,e.offset]}else y.range=[p.offset,T,T];return y}exports.resolveFlowCollection=d}),Rn=s(exports=>{var t=X(),n=Z(),r=rn(),i=on(),a=Pn(),o=Fn(),s=Ln();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;if(n&&(!t||t.offset<n.offset)){let e=`Missing newline after block sequence props`;l(n,`MISSING_CHAR`,e)}}let f=o.type===`block-map`?`map`:o.type===`block-seq`?`seq`:o.start.source===`{`?`map`:`seq`;if(!u||!d||d===`!`||d===r.YAMLMap.tagName&&f===`map`||d===i.YAMLSeq.tagName&&f===`seq`)return c(e,a,o,l,d);let p=a.schema.tags.find(e=>e.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t&&t.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}exports.composeCollection=l}),zn=s(exports=>{var t=Z();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?`
`+e.comment:y.comment=e.comment),y.range=[p.offset,T,e.offset]}else y.range=[p.offset,T,T];return y}exports.resolveFlowCollection=d}),Hn=s(exports=>{var t=X(),n=Z(),r=cn(),i=un(),a=Rn(),o=zn(),s=Vn();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;if(n&&(!t||t.offset<n.offset)){let e=`Missing newline after block sequence props`;l(n,`MISSING_CHAR`,e)}}let f=o.type===`block-map`?`map`:o.type===`block-seq`?`seq`:o.start.source===`{`?`map`:`seq`;if(!u||!d||d===`!`||d===r.YAMLMap.tagName&&f===`map`||d===i.YAMLSeq.tagName&&f===`seq`)return c(e,a,o,l,d);let p=a.schema.tags.find(e=>e.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t&&t.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}exports.composeCollection=l}),Un=s(exports=>{var t=Z();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?`
`.repeat(Math.max(1,l.length-1)):``,t=o+s.length;return n.source&&(t+=n.source.length),{value:e,type:c,comment:s.comment,range:[o,t,t]}}let d=n.indent+s.indent,f=n.offset+s.length,p=0;for(let t=0;t<u;++t){let[n,r]=l[t];if(r===``||r===`\r`)s.indent===0&&n.length>d&&(d=n.length);else{if(n.length<d){let e=`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`;a(f+n.length,`MISSING_CHAR`,e)}if(s.indent===0&&(d=n.length),p=t,d===0&&!e.atRoot){let e=`Block scalar values in collections must be indented`;a(f,`BAD_INDENT`,e)}break}f+=n.length+r.length+1}for(let e=l.length-1;e>=u;--e)l[e][0].length>d&&(u=e+1);let m=``,h=``,g=!1;for(let e=0;e<p;++e)m+=l[e][0].slice(d)+`
`;for(let e=p;e<u;++e){let[n,r]=l[e];f+=n.length+r.length+1;let i=r[r.length-1]===`\r`;if(i&&(r=r.slice(0,-1)),r&&n.length<d){let e=s.indent?`explicit indentation indicator`:`first line`,t=`Block scalar lines must not be less indented than their ${e}`;a(f-r.length-(i?2:1),`BAD_INDENT`,t),n=``}c===t.Scalar.BLOCK_LITERAL?(m+=h+n.slice(d)+r,h=`
`):n.length>d||r[0]===` `?(h===` `?h=`
@@ -91,7 +91,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
`+l[e][0].slice(d);m[m.length-1]!==`
`&&(m+=`
`);break;default:m+=`
`}let _=o+s.length+n.source.length;return{value:m,type:c,comment:s.comment,range:[o,_,_]}}function r({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:if(n&&!l){let e=`Comments must be separated from other tokens by white space characters`;r(i,`MISSING_CHAR`,e)}d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{let e=`Unexpected token in block scalar header: ${i.type}`;r(i,`UNEXPECTED_TOKEN`,e);let t=i.source;t&&typeof t==`string`&&(d+=t.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function i(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=r?.[1]?[r[1],n.slice(r[1].length)]:[``,n],a=[i];for(let e=1;e<t.length;e+=2)a.push([t[e],t[e+1]]);return a}exports.resolveBlockScalar=n}),Bn=s(exports=>{var t=Z(),n=In();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=(e,t,n)=>o(c+e,t,n);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}function o(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r?
`}let _=o+s.length+n.source.length;return{value:m,type:c,comment:s.comment,range:[o,_,_]}}function r({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:if(n&&!l){let e=`Comments must be separated from other tokens by white space characters`;r(i,`MISSING_CHAR`,e)}d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{let e=`Unexpected token in block scalar header: ${i.type}`;r(i,`UNEXPECTED_TOKEN`,e);let t=i.source;t&&typeof t==`string`&&(d+=t.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function i(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=r?.[1]?[r[1],n.slice(r[1].length)]:[``,n],a=[i];for(let e=1;e<t.length;e+=2)a.push([t[e],t[e+1]]);return a}exports.resolveBlockScalar=n}),Wn=s(exports=>{var t=Z(),n=Bn();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=(e,t,n)=>o(c+e,t,n);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}function o(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r?
`,`sy`),n=RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
`,`sy`)}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=` `,o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===``?a===`
`?i+=a:a=`
@@ -106,10 +106,10 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
`);)r===`
`&&(n+=`
`),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}let l={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
`,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function u(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i),o=a?parseInt(i,16):NaN;if(isNaN(o)){let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}return String.fromCodePoint(o)}exports.resolveFlowScalar=r}),Vn=s(exports=>{var t=X(),n=Z(),r=zn(),i=Bn();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];if(s.tag!==e.tag){let t=n.tagString(s.tag),r=n.tagString(e.tag),i=`Value may be parsed as either ${t} or ${r}`;o(a,`TAG_RESOLVE_FAILED`,i,!0)}}return s}exports.composeScalar=a}),Hn=s(exports=>{function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}exports.emptyScalarPosition=t}),Un=s(exports=>{var t=Wt(),n=X(),r=Rn(),i=Vn(),a=In(),o=Hn();let s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1));break;default:{let n=t.type===`error`?t.message:`Unsupported token (type: ${t.type})`;o(t,`UNEXPECTED_TOKEN`,n),h=l(e,t.offset,void 0,null,a,o),g=!1}}if(p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)){let e=`With stringKeys, all keys must be strings`;o(m??t,`NON_STRING_KEY`,e)}return d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}exports.composeEmptyNode=l,exports.composeNode=c}),Wn=s(exports=>{var t=On(),n=Un(),r=In(),i=An();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}exports.composeDoc=a}),Gn=s(exports=>{var t=u(`process`),n=zt(),r=On(),i=kn(),a=X(),o=Wn(),s=In();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,Line truncated
`,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function u(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i),o=a?parseInt(i,16):NaN;if(isNaN(o)){let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}return String.fromCodePoint(o)}exports.resolveFlowScalar=r}),Gn=s(exports=>{var t=X(),n=Z(),r=Un(),i=Wn();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];if(s.tag!==e.tag){let t=n.tagString(s.tag),r=n.tagString(e.tag),i=`Value may be parsed as either ${t} or ${r}`;o(a,`TAG_RESOLVE_FAILED`,i,!0)}}return s}exports.composeScalar=a}),Kn=s(exports=>{function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}exports.emptyScalarPosition=t}),qn=s(exports=>{var t=Jt(),n=X(),r=Hn(),i=Gn(),a=Bn(),o=Kn();let s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1));break;default:{let n=t.type===`error`?t.message:`Unsupported token (type: ${t.type})`;o(t,`UNEXPECTED_TOKEN`,n),h=l(e,t.offset,void 0,null,a,o),g=!1}}if(p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)){let e=`With stringKeys, all keys must be strings`;o(m??t,`NON_STRING_KEY`,e)}return d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}exports.composeEmptyNode=l,exports.composeNode=c}),Jn=s(exports=>{var t=Mn(),n=qn(),r=Bn(),i=Pn();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}exports.composeDoc=a}),Yn=s(exports=>{var t=u(`process`),n=Ut(),r=Mn(),i=Nn(),a=X(),o=Jn(),s=Bn();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,Line truncated
`:`
`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var d=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let a=c(e);r?this.warnings.push(new i.YAMLWarning(a,t,n)):this.errors.push(new i.YAMLParseError(a,t,n))},this.directives=new n.Directives({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=l(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(a.isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];a.isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:l(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(t.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=c(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=o.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){let t=`Unexpected doc-end without preceding document`;this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t));break}this.doc.directives.docEnd=!0;let t=s.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}};exports.Composer=d}),Kn=s(exports=>{var t=zn(),n=Bn(),r=kn(),i=Yt();function a(e,i=!0,a){if(e){let o=(e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:`
`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var d=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let a=c(e);r?this.warnings.push(new i.YAMLWarning(a,t,n)):this.errors.push(new i.YAMLParseError(a,t,n))},this.directives=new n.Directives({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=l(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(a.isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];a.isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:l(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(t.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=c(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=o.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){let t=`Unexpected doc-end without preceding document`;this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t));break}this.doc.directives.docEnd=!0;let t=s.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}};exports.Composer=d}),Xn=s(exports=>{var t=Un(),n=Wn(),r=Nn(),i=$t();function a(e,i=!0,a){if(e){let o=(e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:`
`}];switch(c[0]){case`|`:case`>`:{let e=c.indexOf(`
`),t=c.substring(0,e),n=c.substring(e+1)+`
`,i=[{type:`block-scalar-header`,offset:o,indent:r,source:t}];return l(i,u)||i.push({type:`newline`,offset:-1,indent:r,source:`
@@ -117,9 +117,9 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
`),r=t.substring(0,n),i=t.substring(n+1)+`
`;if(e.type===`block-scalar`){let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);t.source=r,e.source=i}else{let{offset:t}=e,n=`indent`in e?e.indent:-1,a=[{type:`block-scalar-header`,offset:t,indent:n,source:r}];l(a,`end`in e?e.end:void 0)||a.push({type:`newline`,offset:-1,indent:n,source:`
`});for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:`block-scalar`,indent:n,props:a,source:i})}}function l(e,t){if(t)for(let n of t)switch(n.type){case`space`:case`comment`:e.push(n);break;case`newline`:return e.push(n),!0}return!1}function u(e,t,n){switch(e.type){case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:e.type=n,e.source=t;break;case`block-scalar`:{let r=e.props.slice(1),i=t.length;e.props[0].type===`block-scalar-header`&&(i-=e.props[0].source.length);for(let e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case`block-map`:case`block-seq`:{let r=e.offset+t.length,i={type:`newline`,offset:r,indent:e.indent,source:`
`};delete e.items,Object.assign(e,{type:n,source:t,end:[i]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}exports.createScalarToken=o,exports.resolveAsScalar=a,exports.setScalarValue=s}),qn=s(exports=>{let t=e=>`type`in e?n(e):r(e);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}exports.stringify=t}),Jn=s(exports=>{let t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n<c.items.length;++n){let o=a(Object.freeze(e.concat([[s,n]])),c.items[n],i);if(typeof o==`number`)n=o-1;else if(o===t)return t;else o===r&&(c.items.splice(n,1),--n)}typeof o==`function`&&s===`key`&&(o=o(n,e))}}return typeof o==`function`?o(n,e):o}exports.visit=i}),Yn=s(exports=>{var t=Kn(),n=qn(),r=Jn();let i=``,a=``,o=``,s=``,c=e=>!!e&&`items`in e,l=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function u(e){switch(e){case i:return`<BOM>`;case a:return`<DOC>`;case o:return`<FLOW_END>`;case s:return`<SCALAR>`;default:return JSON.stringify(e)}}function d(e){switch(e){case i:return`byte-order-mark`;case a:return`doc-mode`;case o:return`flow-error-end`;case s:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
`};delete e.items,Object.assign(e,{type:n,source:t,end:[i]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}exports.createScalarToken=o,exports.resolveAsScalar=a,exports.setScalarValue=s}),Zn=s(exports=>{let t=e=>`type`in e?n(e):r(e);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}exports.stringify=t}),Qn=s(exports=>{let t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n<c.items.length;++n){let o=a(Object.freeze(e.concat([[s,n]])),c.items[n],i);if(typeof o==`number`)n=o-1;else if(o===t)return t;else o===r&&(c.items.splice(n,1),--n)}typeof o==`function`&&s===`key`&&(o=o(n,e))}}return typeof o==`function`?o(n,e):o}exports.visit=i}),$n=s(exports=>{var t=Xn(),n=Zn(),r=Qn();let i=``,a=``,o=``,s=``,c=e=>!!e&&`items`in e,l=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function u(e){switch(e){case i:return`<BOM>`;case a:return`<DOC>`;case o:return`<FLOW_END>`;case s:return`<SCALAR>`;default:return JSON.stringify(e)}}function d(e){switch(e){case i:return`byte-order-mark`;case a:return`doc-mode`;case o:return`flow-error-end`;case s:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
`:case`\r
`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}exports.createScalarToken=t.createScalarToken,exports.resolveAsScalar=t.resolveAsScalar,exports.setScalarValue=t.setScalarValue,exports.stringify=n.stringify,exports.visit=r.visit,exports.BOM=i,exports.DOCUMENT=a,exports.FLOW_END=o,exports.SCALAR=s,exports.isCollection=c,exports.isScalar=l,exports.prettyToken=u,exports.tokenType=d}),Xn=s(exports=>{var t=Yn();function n(e){switch(e){case void 0:case` `:case`
`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}exports.createScalarToken=t.createScalarToken,exports.resolveAsScalar=t.resolveAsScalar,exports.setScalarValue=t.setScalarValue,exports.stringify=n.stringify,exports.visit=r.visit,exports.BOM=i,exports.DOCUMENT=a,exports.FLOW_END=o,exports.SCALAR=s,exports.isCollection=c,exports.isScalar=l,exports.prettyToken=u,exports.tokenType=d}),er=s(exports=>{var t=$n();function n(e){switch(e){case void 0:case` `:case`
`:case`\r`:case` `:return!0;default:return!1}}let r=new Set(`0123456789ABCDEFabcdef`),i=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),a=new Set(`,[]{}`),o=new Set(` ,[]{}
\r `),s=e=>!e||o.has(e);var c=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
`?!0:t===`\r`?this.buffer[e+1]===`
@@ -138,21 +138,21 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
`,t=this.buffer[i+1]):r=i),t===`#`||e&&a.has(t))break;if(o===`
`){let e=this.continueScalar(i+1);if(e===-1)break;i=Math.max(i,e-2)}}else{if(e&&a.has(o))break;r=i}return!o&&!this.atEnd?this.setNext(`plain-scalar`):(yield t.SCALAR,yield*this.pushToIndex(r+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){switch(this.charAt(0)){case`!`:return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case`&`:return(yield*this.pushUntil(s))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case`-`:case`?`:case`:`:{let e=this.flowLevel>0,t=this.charAt(1);if(n(t)||e&&a.has(t))return e?this.flowKey&&=!1:this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!n(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.has(t))t=this.buffer[++e];else if(t===`%`&&r.has(this.buffer[e+1])&&r.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
`?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};exports.Lexer=c}),Zn=s(exports=>{var t=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};exports.LineCounter=t}),Qn=s(exports=>{var t=u(`process`),n=Yn(),r=Xn();function i(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function a(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function o(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function s(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function c(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function l(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!i(t.start,`explicit-key-ind`)&&!i(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,o(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var d=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new r.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,t.env.LOG_TOKENS&&console.log(`|`,n.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let r=n.tokenType(e);if(r)if(r===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=r,yield*this.step(),r){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){let e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){let e=this.peek(1);if(this.type===`doc-end`&&(!e||e.type!==`doc-end`)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t)if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&l(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e= Line truncated
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};exports.Lexer=c}),tr=s(exports=>{var t=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};exports.LineCounter=t}),nr=s(exports=>{var t=u(`process`),n=$n(),r=er();function i(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function a(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function o(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function s(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function c(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function l(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!i(t.start,`explicit-key-ind`)&&!i(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,o(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var d=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new r.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,t.env.LOG_TOKENS&&console.log(`|`,n.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let r=n.tokenType(e);if(r)if(r===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=r,yield*this.step(),r){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){let e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){let e=this.peek(1);if(this.type===`doc-end`&&(!e||e.type!==`doc-end`)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t)if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&l(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e= Line truncated
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,a=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(a=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(a.push(this.sourceToken),e.items.push({start:a}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(a.push(this.sourceToken),e.items.push({start:a,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(o(t.key)&&!i(t.sep,`newline`)){let e=c(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else a.length>0?t.sep=t.sep.concat(a,this.sourceToken):t.sep.push(this.sourceToken);else if(i(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=c(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||r?e.items.push({start:a,key:null,sep:[this.sourceToken]}):i(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:a,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!i(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:a});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||i(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e&&e.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`Line truncated
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=s(e),n=c(t);return n.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=s(e),n=c(t);return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;case`space`:case`comment`:default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};exports.Parser=d}),$n=s(exports=>{var t=Gn(),n=On(),r=kn(),i=Qt(),a=X(),o=Zn(),s=Qn();function c(e){let t=e.prettyErrors!==!1,n=e.lineCounter||t&&new o.LineCounter||null;return{lineCounter:n,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}exports.parse=d,exports.parseAllDocuments=l,exports.parseDocument=u,exports.stringify=f}),er=s(exports=>{var t=Gn(),n=On(),r=En(),i=kn(),a=Wt(),o=X(),s=tn(),c=Z(),l=rn(),u=on(),d=Yn(),f=Xn(),p=Zn(),m=Qn(),h=$n(),g=Rt();exports.Composer=t.Composer,exports.Document=n.Document,exports.Schema=r.Schema,exports.YAMLError=i.YAMLError,exports.YAMLParseError=i.YAMLParseError,exports.YAMLWarning=i.YAMLWarning,exports.Alias=a.Alias,exports.isAlias=o.isAlias,exports.isCollection=o.isCollection,exports.isDocument=o.isDocument,exports.isMap=o.isMap,exports.isNode=o.isNode,exports.isPair=o.isPair,exports.isScalar=o.isScalar,exports.isSeq=o.isSeq,exports.Pair=s.Pair,exports.Scalar=c.Scalar,exports.YAMLMap=l.YAMLMap,exports.YAMLSeq=u.YAMLSeq,exports.CST=d,exports.Lexer=f.Lexer,exports.LineCounter=p.LineCounter,exports.Parser=m.Parser,exports.parse=h.parse,exports.parseAllDocuments=h.parseAllDocuments,exports.parseDocument=h.parseDocument,exports.stringify=h.stringify,exports.visit=g.visit,exports.visitAsync=g.visitAsync});const tr=new Map;function nr(e,t,n=!1){return(n||!tr.has(e))&&tr.set(e,t()),tr.get(e)}var rr=l(ht());function ir(e,t=e=>e,n=!0){return typeof t==`boolean`&&(n=t,t=e=>e),nr(e,()=>t((0,rr.getInput)(e,{required:n})))}var ar=l(er());function or(){return ir(`commit-types`,e=>ar.parse(e))}function sr(){return ir(`default-commit-type`)}function cr(){return ir(`github-token`)}var lr=l(ht());function ur(e,t=!0){return nr(e,()=>(0,lr.getBooleanInput)(e,{required:t}))}function dr(){return ur(`include-commit-links`)}function fr(){return ur(`include-compare-link`)}function pr(){return ur(`include-pr-links`)}function mr(){return ur(`mention-authors`)}function hr(){return ur(`mention-new-contributors`)}function gr(){return ir(`release-name-prefix`,!1)}function _r(){re Line truncated
`)}},Mi=class extends Ei{scopes=new Map;constructor(e){super(),this.type=e}addScope(e=``){let{scopes:t}=this;if(e=wi(e),t.has(e))return t.get(e);let n=new ji(e);return t.set(e,n),n}print(e=``){let{type:t,scopes:n}=this;if(n.size===0)return null;let r=[`${e}## ${t}`],i=[...n.keys()].sort((e,t)=>e.localeCompare(t));for(let t of i){let i=n.get(t),a=i.print(e);a&&r.push(a)}return r.length===1?null:r.join(`
`)}},Ni=class extends Ei{defaultType=sr();typeMap=or();types=new Map;addType(e=``){let{types:t,typeMap:n,defaultType:r}=this;if(e=n[wi(e)]??r,t.has(e))return t.get(e);let i=new Mi(e);return t.set(e,i),i}print(e=``){let{types:t,typeMap:n,defaultType:r}=this;if(t.size===0)return null;let i=[...new Set([...Object.values(n),...r])],a=[];for(let n of i){let r=t.get(n);if(!r)continue;let i=r.print(e);i&&a.push(i)}return a.length===0?null:a.join(`
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=s(e),n=c(t);return n.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=s(e),n=c(t);return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;case`space`:case`comment`:default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};exports.Parser=d}),rr=s(exports=>{var t=Yn(),n=Mn(),r=Nn(),i=nn(),a=X(),o=tr(),s=nr();function c(e){let t=e.prettyErrors!==!1,n=e.lineCounter||t&&new o.LineCounter||null;return{lineCounter:n,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}exports.parse=d,exports.parseAllDocuments=l,exports.parseDocument=u,exports.stringify=f}),ir=s(exports=>{var t=Yn(),n=Mn(),r=An(),i=Nn(),a=Jt(),o=X(),s=on(),c=Z(),l=cn(),u=un(),d=$n(),f=er(),p=tr(),m=nr(),h=rr(),g=Ht();exports.Composer=t.Composer,exports.Document=n.Document,exports.Schema=r.Schema,exports.YAMLError=i.YAMLError,exports.YAMLParseError=i.YAMLParseError,exports.YAMLWarning=i.YAMLWarning,exports.Alias=a.Alias,exports.isAlias=o.isAlias,exports.isCollection=o.isCollection,exports.isDocument=o.isDocument,exports.isMap=o.isMap,exports.isNode=o.isNode,exports.isPair=o.isPair,exports.isScalar=o.isScalar,exports.isSeq=o.isSeq,exports.Pair=s.Pair,exports.Scalar=c.Scalar,exports.YAMLMap=l.YAMLMap,exports.YAMLSeq=u.YAMLSeq,exports.CST=d,exports.Lexer=f.Lexer,exports.LineCounter=p.LineCounter,exports.Parser=m.Parser,exports.parse=h.parse,exports.parseAllDocuments=h.parseAllDocuments,exports.parseDocument=h.parseDocument,exports.stringify=h.stringify,exports.visit=g.visit,exports.visitAsync=g.visitAsync}),ar=l(gt());function or(e,t=e=>e,n=!0){return typeof t==`boolean`&&(n=t,t=e=>e),vt(e,()=>t((0,ar.getInput)(e,{required:n})))}var sr=l(ir());function cr(){return or(`commit-types`,e=>sr.parse(e))}function lr(){return or(`default-commit-type`)}function ur(){return or(`github-token`)}function dr(){return Y(`include-commit-links`)}function fr(){return Y(`include-compare-link`)}function pr(){return Y(`include-pr-links`)}function mr(){return Y(`mention-authors`)}function hr(){return Y(`mention-new-contributors`)}function gr(){return or(`release-name-prefix`,!1)}function _r(){return or(`release-name`)}function vr(){return Y(`semver`)}function yr(){return Y(`use-github-autolink`)}var br=l(Vt());function xr(){return vt(`octokit`,()=>(0,br.getOctokit)(ur()))}var S Line truncated
`)}},Fi=class extends ki{scopes=new Map;constructor(e){super(),this.type=e}addScope(e=``){let{scopes:t}=this;if(e=wi(e),t.has(e))return t.get(e);let n=new Pi(e);return t.set(e,n),n}print(e=``){let{type:t,scopes:n}=this;if(n.size===0)return null;let r=[`${e}## ${t}`],i=[...n.keys()].sort((e,t)=>e.localeCompare(t));for(let t of i){let i=n.get(t),a=i.print(e);a&&r.push(a)}return r.length===1?null:r.join(`
`)}},Ii=class extends ki{defaultType=lr();typeMap=cr();types=new Map;addType(e=``){let{types:t,typeMap:n,defaultType:r}=this;if(e=n[wi(e)]??r,t.has(e))return t.get(e);let i=new Fi(e);return t.set(e,i),i}print(e=``){let{types:t,typeMap:n,defaultType:r}=this;if(t.size===0)return null;let i=[...new Set([...Object.values(n),...r])],a=[];for(let n of i){let r=t.get(n);if(!r)continue;let i=r.print(e);i&&a.push(i)}return a.length===0?null:a.join(`
`)}},Pi=l(ht());async function Fi(e){let{owner:t,repo:n}=Ci(),r=new Ni;for await(let i of wr(t,n,e)){let e=i.commit.message.split(`
`)[0];(0,Pi.debug)(`commit message -> ${e}`);let{type:t,scope:n,description:a,pr:o,flag:s,breaking:c}=Or(e);if(a=wi(a),!a||(s=wi(s),s===`ignore`))continue;let l=r.addType(t),u=l.addScope(n),d=u.addCommit(a,c),f=d.addAuthor(i.author?.login);f.addReference(i.sha,o)}let i=r.print();return i?`${i}\n`:``}function Ii(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Li=Ii();function Ri(e){Li=e}var zi={exec:()=>null};function Q(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Bi.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Bi={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},Vi=/^(?:[ \t]*(?:\n|$))+/,Hi=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ui=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Wi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Gi=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ki=/(?:[*+-]|\d{1,9}[.)])/,qi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ji=Q(qi).replace(/bull/g,Ki).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Yi=Q(qi).replace(/bull/g,Ki).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Xi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Zi=/^[^\n]+/,Qi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,$i=Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Qi).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ea=Q(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ki).getRegex(),ta=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,na=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ra=Q(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?( Line truncated
]`).replace(`lheading`,Ji).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},ua=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,da=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,fa=/^( {2,}|\\)\n(?!\s*$)/,pa=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ma=/[\p{P}\p{S}]/u,ha=/[\s\p{P}\p{S}]/u,ga=/[^\s\p{P}\p{S}]/u,_a=Q(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,ha).getRegex(),va=/(?!~)[\p{P}\p{S}]/u,ya=/(?!~)[\s\p{P}\p{S}]/u,ba=/(?:[^\s\p{P}\p{S}]|~)/u,xa=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Sa=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ca=Q(Sa,`u`).replace(/punct/g,ma).getRegex(),wa=Q(Sa,`u`).replace(/punct/g,va).getRegex(),Ta=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Ea=Q(Ta,`gu`).replace(/notPunctSpace/g,ga).replace(/punctSpace/g,ha).replace(/punct/g,ma).getRegex(),Da=Q(Ta,`gu`).replace(/notPunctSpace/g,ba).replace(/punctSpace/g,ya).replace(/punct/g,va).getRegex(),Oa=Q(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ga).replace(/punctSpace/g,ha).replace(/punct/g,ma).getRegex(),ka=Q(/\\(punct)/,`gu`).replace(/punct/g,ma).getRegex(),Aa=Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ja=Q(na).replace(`(?:-->|$)`,`-->`).getRegex(),Ma=Q(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,ja).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Na=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Pa=Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,Na).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Fa=Q(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Na).replace(`ref`,Qi).getRegex(),Ia=Q(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Qi).getRegex(),La=Q(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Fa).replace(`nolink`,Ia).getRegex(),Ra={_backpedal:zi,anyPunctuation:ka,autolink:Aa,blockSkip:xa,br:fa,code:da,del:zi,emStrongLDelim:Ca,emStrongRDelimAst:Ea,emStrongRDelimUnd:Oa,escape:ua,link:Pa,nolink:Ia,punctuation:_a,reflink:Fa,reflinkSearch:La,tag:Ma,text:pa,url:zi},za={...Ra,link:Q(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Na).getRegex(),reflink:Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Na).getRegex()},Ba={...Ra,emStrongRDelimAst:Da,emStrongLDelim:wa,url:Q(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Va={...Ba,br:Q(fa).replace(`{2,}`,`*`).getRegex(),text:Q(Ba.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Ha={normal:oa,gfm:ca,pedantic:la},Ua={normal:Ra,gfm:Ba,breaks:Va,pedantic:za},Wa={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Ga=e=>Wa[e];function Ka(e,t){if(t){if(Bi.escapeTest.test(e))return e.replace(Bi.escapeReplace,Ga)}else if(Bi.escapeTestNoEncode.test(e))return e.replace(Bi.escapeReplaceNoEncode,Ga);return e}function qa(e){try{e=encodeURI(e).replace(Bi.percentDecode,`%`)}catch{return null}return e}function Ja(e,t){let n=e.replace(Bi.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}),r=n.split(Bi.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push(``);for(;i<r.length;i++)r[i]=r[i].trim().replace(Bi.slashPipe,`|`);return r}function Ya(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Xa(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]Line truncated
`)}},Li=l(gt());async function Ri(e){let{owner:t,repo:n}=Ci(),r=new Ii;for await(let i of wr(t,n,e)){let e=i.commit.message.split(`
`)[0];(0,Li.debug)(`commit message -> ${e}`);let{type:t,scope:n,description:a,pr:o,flag:s,breaking:c}=Or(e);if(a=wi(a),!a||(s=wi(s),s===`ignore`))continue;let l=r.addType(t),u=l.addScope(n),d=u.addCommit(a,c),f=d.addAuthor(i.author?.login);f.addReference(i.sha,o)}let i=r.print();return i?`${i}\n`:``}function zi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Bi=zi();function Vi(e){Bi=e}var Hi={exec:()=>null};function Q(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Ui.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Ui={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},Wi=/^(?:[ \t]*(?:\n|$))+/,Gi=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ki=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,qi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ji=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Yi=/(?:[*+-]|\d{1,9}[.)])/,Xi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Zi=Q(Xi).replace(/bull/g,Yi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Qi=Q(Xi).replace(/bull/g,Yi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),$i=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ea=/^[^\n]+/,ta=/(?!\s*\])(?:\\.|[^\[\]\\])+/,na=Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,ta).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ra=Q(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Yi).getRegex(),ia=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,aa=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,oa=Q(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?( Line truncated
]`).replace(`lheading`,Zi).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},pa=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ma=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ha=/^( {2,}|\\)\n(?!\s*$)/,ga=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_a=/[\p{P}\p{S}]/u,va=/[\s\p{P}\p{S}]/u,ya=/[^\s\p{P}\p{S}]/u,ba=Q(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,va).getRegex(),xa=/(?!~)[\p{P}\p{S}]/u,Sa=/(?!~)[\s\p{P}\p{S}]/u,Ca=/(?:[^\s\p{P}\p{S}]|~)/u,wa=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Ta=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ea=Q(Ta,`u`).replace(/punct/g,_a).getRegex(),Da=Q(Ta,`u`).replace(/punct/g,xa).getRegex(),Oa=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,ka=Q(Oa,`gu`).replace(/notPunctSpace/g,ya).replace(/punctSpace/g,va).replace(/punct/g,_a).getRegex(),Aa=Q(Oa,`gu`).replace(/notPunctSpace/g,Ca).replace(/punctSpace/g,Sa).replace(/punct/g,xa).getRegex(),ja=Q(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ya).replace(/punctSpace/g,va).replace(/punct/g,_a).getRegex(),Ma=Q(/\\(punct)/,`gu`).replace(/punct/g,_a).getRegex(),Na=Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Pa=Q(aa).replace(`(?:-->|$)`,`-->`).getRegex(),Fa=Q(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Pa).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ia=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,La=Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,Ia).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ra=Q(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Ia).replace(`ref`,ta).getRegex(),za=Q(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,ta).getRegex(),Ba=Q(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Ra).replace(`nolink`,za).getRegex(),Va={_backpedal:Hi,anyPunctuation:Ma,autolink:Na,blockSkip:wa,br:ha,code:ma,del:Hi,emStrongLDelim:Ea,emStrongRDelimAst:ka,emStrongRDelimUnd:ja,escape:pa,link:La,nolink:za,punctuation:ba,reflink:Ra,reflinkSearch:Ba,tag:Fa,text:ga,url:Hi},Ha={...Va,link:Q(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Ia).getRegex(),reflink:Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Ia).getRegex()},Ua={...Va,emStrongRDelimAst:Aa,emStrongLDelim:Da,url:Q(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Wa={...Ua,br:Q(ha).replace(`{2,}`,`*`).getRegex(),text:Q(Ua.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Ga={normal:la,gfm:da,pedantic:fa},Ka={normal:Va,gfm:Ua,breaks:Wa,pedantic:Ha},qa={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Ja=e=>qa[e];function Ya(e,t){if(t){if(Ui.escapeTest.test(e))return e.replace(Ui.escapeReplace,Ja)}else if(Ui.escapeTestNoEncode.test(e))return e.replace(Ui.escapeReplaceNoEncode,Ja);return e}function Xa(e){try{e=encodeURI(e).replace(Ui.percentDecode,`%`)}catch{return null}return e}function Za(e,t){let n=e.replace(Ui.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}),r=n.split(Ui.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push(``);for(;i<r.length;i++)r[i]=r[i].trim().replace(Ui.slashPipe,`|`);return r}function Qa(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function $a(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]Line truncated
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
`)}var $a=class{options;rules;lexer;constructor(e){this.options=e||Li}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:Ya(e,`
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Qa(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Ya(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Ya(t[0],`
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Ya(t[0],`
`)}var no=class{options;rules;lexer;constructor(e){this.options=e||Bi}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:Qa(e,`
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=to(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Qa(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Qa(t[0],`
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Qa(t[0],`
`).split(`
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
@@ -170,10 +170,10 @@ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
`,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
`+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
`+l}!u&&!l.trim()&&(u=!0),r+=f+`
`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>e.type===`space`),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e={type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]};return e}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Ja(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Ja(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Ya(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Xa(t[2],`()`);if(e===-2)return;if(e>-1){let n=t[0].indexOf(`!`)===0?5:4,r=n+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Za(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `),r=t[e.toLowerCase()];if(!r){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Za(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;let i=r[1]||r[2]||``;if(!i||!n||this.rules.inline.punctuation.exec(n)){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},eo=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Li,this.options.tokenizer=this.options.tokenizer||new $a,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Bi,block:Ha.normal,inline:Ua.normal};this.options.pedantic?(t.block=Ha.pedantic,t.inline=Ua.pedantic):this.options.gfm&&(t.block=Ha.gfm,this.options.breaks?t.inline=Ua.breaks:t.inline=Ua.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ha,inline:Ua}}static lex(t,n){let r=new e(n);return r.lex(t)}static lexInline(t,n){let r=new e(n);return r.inlineTokens(t)}lex(e){e=e.replace(Bi.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(Bi.tabCharGlobal,` `).replace(Bi.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>e.type===`space`),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e={type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]};return e}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Za(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Za(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Qa(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=$a(t[2],`()`);if(e===-2)return;if(e>-1){let n=t[0].indexOf(`!`)===0?5:4,r=n+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),eo(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `),r=t[e.toLowerCase()];if(!r){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return eo(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;let i=r[1]||r[2]||``;if(!i||!n||this.rules.inline.punctuation.exec(n)){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},ro=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Bi,this.options.tokenizer=this.options.tokenizer||new no,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Ui,block:Ga.normal,inline:Ka.normal};this.options.pedantic?(t.block=Ga.pedantic,t.inline=Ka.pedantic):this.options.gfm&&(t.block=Ga.gfm,this.options.breaks?t.inline=Ka.breaks:t.inline=Ka.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ga,inline:Ka}}static lex(t,n){let r=new e(n);return r.lex(t)}static lexInline(t,n){let r=new e(n);return r.inlineTokens(t)}lex(e){e=e.replace(Ui.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(Ui.tabCharGlobal,` `).replace(Ui.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=`
@@ -182,16 +182,16 @@ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
`+r.raw,a.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,a=``;for(;e;){i||(a=``),i=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,a)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(o)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(a=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},to=class{options;parser;constructor(e){this.options=e||Li}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Bi.notSpaceStart)?.[0],i=e.replace(Bi.endingNewline,``)+`
`;return r?`<pre><code class="language-`+Ka(r)+`">`+(n?i:Ka(i,!0))+`</code></pre>
`:`<pre><code>`+(n?i:Ka(i,!0))+`</code></pre>
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,a=``;for(;e;){i||(a=``),i=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,a)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(o)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(a=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},io=class{options;parser;constructor(e){this.options=e||Bi}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Ui.notSpaceStart)?.[0],i=e.replace(Ui.endingNewline,``)+`
`;return r?`<pre><code class="language-`+Ya(r)+`">`+(n?i:Ya(i,!0))+`</code></pre>
`:`<pre><code>`+(n?i:Ya(i,!0))+`</code></pre>
`}blockquote({tokens:e}){let t=this.parser.parse(e);return`<blockquote>
${t}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
`+r+`</`+i+`>
`}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+Ka(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+Ya(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox">`}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
<thead>
@@ -200,9 +200,9 @@ ${t}</blockquote>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`,r=e.align?`<${n} align="${e.align}">`:`<${n}>`;return r+t+`</${n}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ka(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=qa(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Ka(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=qa(e);if(i===null)return Ka(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${Ka(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Ka(e.text)}},no=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},ro=class e{options;renderer;textRenderer;constructor(e){this.options=e||Li,this.options.renderer=this.options.renderer||new to,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new no}static parse(t,n){let r=new e(n);return r.parse(t)}static parseInline(t,n){let r=new e(n);return r.parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
`+this.renderer.text(i);t?n+=this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o,escaped:!0}]}):n+=o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},io=class{options;block;constructor(e){this.options=e||Li}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?eo.lex:eo.lexInline}provideParser(){return this.block?ro.parse:ro.parseInline}},ao=class{defaults=Ii();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ro;Renderer=to;TextRenderer=no;Lexer=eo;Tokenizer=$a;Hooks=io;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new to(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new $a(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new io;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];io.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let n=i.call(t,e);return a.call(t,n)}:t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return eo.lex(e,t??this.defaults)}parser(e,t){return ro.parse(e,t??this.defaults)}parseMarkdown(e){let t=(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(t==null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));i.hooks&&(i.ho Line truncated
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Ka(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},oo=new ao;function $(e,t){return oo.parse(e,t)}$.options=$.setOptions=function(e){return oo.setOptions(e),$.defaults=oo.defaults,Ri($.defaults),$},$.getDefaults=Ii,$.defaults=Li,$.use=function(...e){return oo.use(...e),$.defaults=oo.defaults,Ri($.defaults),$},$.walkTokens=function(e,t){return oo.walkTokens(e,t)},$.parseInline=oo.parseInline,$.Parser=ro,$.parser=ro.parse,$.Renderer=to,$.TextRenderer=no,$.Lexer=eo,$.lexer=eo.lex,$.Tokenizer=$a,$.Hooks=io,$.parse=$;var so=$.options,co=$.setOptions,lo=$.use,uo=$.walkTokens,fo=$.parseInline,po=ro.parse,mo=eo.lex;async function ho(e){let{owner:t,repo:n,url:r}=Ci(),i=_r(),a=[];if(hr()){let{rest:r}=xr(),{data:o}=await r.repos.generateReleaseNotes({owner:t,repo:n,tag_name:i,previous_tag_name:e}),s=$.lexer(o.body),c=s.findIndex(e=>e.type===`heading`&&e.text===`New Contributors`),l=s[c+1];l.type===`list`&&a.push(`## New Contributors\n${l.raw}\n`)}if(fr()&&e){let t=`${r}/compare/${e}...${i}`;(!yr()||gr())&&(t=`\`[${e}...${i}](${r}/compare/${e}...${i})\``),a.push(`**Full Changelog**: ${t}`)}return a.length>0&&a.unshift(``),a.join(`
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ya(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Xa(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Ya(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Xa(e);if(i===null)return Ya(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${Ya(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Ya(e.text)}},ao=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},oo=class e{options;renderer;textRenderer;constructor(e){this.options=e||Bi,this.options.renderer=this.options.renderer||new io,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ao}static parse(t,n){let r=new e(n);return r.parse(t)}static parseInline(t,n){let r=new e(n);return r.parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
`+this.renderer.text(i);t?n+=this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o,escaped:!0}]}):n+=o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},so=class{options;block;constructor(e){this.options=e||Bi}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?ro.lex:ro.lexInline}provideParser(){return this.block?oo.parse:oo.parseInline}},co=class{defaults=zi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=oo;Renderer=io;TextRenderer=ao;Lexer=ro;Tokenizer=no;Hooks=so;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new io(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new no(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new so;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];so.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let n=i.call(t,e);return a.call(t,n)}:t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ro.lex(e,t??this.defaults)}parser(e,t){return oo.parse(e,t??this.defaults)}parseMarkdown(e){let t=(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(t==null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));i.hooks&&(i.ho Line truncated
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Ya(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},lo=new co;function $(e,t){return lo.parse(e,t)}$.options=$.setOptions=function(e){return lo.setOptions(e),$.defaults=lo.defaults,Vi($.defaults),$},$.getDefaults=zi,$.defaults=Bi,$.use=function(...e){return lo.use(...e),$.defaults=lo.defaults,Vi($.defaults),$},$.walkTokens=function(e,t){return lo.walkTokens(e,t)},$.parseInline=lo.parseInline,$.Parser=oo,$.parser=oo.parse,$.Renderer=io,$.TextRenderer=ao,$.Lexer=ro,$.lexer=ro.lex,$.Tokenizer=no,$.Hooks=so,$.parse=$;var uo=$.options,fo=$.setOptions,po=$.use,mo=$.walkTokens,ho=$.parseInline,go=oo.parse,_o=ro.lex;async function vo(e){let{owner:t,repo:n,url:r}=Ci(),i=_r(),a=[];if(hr()){let{rest:r}=xr(),{data:o}=await r.repos.generateReleaseNotes({owner:t,repo:n,tag_name:i,previous_tag_name:e}),s=$.lexer(o.body),c=s.findIndex(e=>e.type===`heading`&&e.text===`New Contributors`),l=s[c+1];l.type===`list`&&a.push(`## New Contributors\n${l.raw}\n`)}if(fr()&&e){let t=`${r}/compare/${e}...${i}`;(!yr()||gr())&&(t=`\`[${e}...${i}](${r}/compare/${e}...${i})\``),a.push(`**Full Changelog**: ${t}`)}return a.length>0&&a.unshift(``),a.join(`
`)}function go(e){Er(`changelog`,e)}function _o(e){Er(`prerelease`,e)}function vo(e){Er(`release-id`,e)}async function yo(){let{paginate:e,rest:t}=xr(),{owner:n,repo:r}=Ci(),i={releaseId:`latest`,prerelease:!1},a=null;if(vr()){if(a=xi(),a==null)throw Error(`Expected a semver compatible releaseName, got "${_r()}" instead.`);i.prerelease=a.prerelease.length>0,i.prerelease&&(i.releaseId=`${a.prerelease[0]}`)}let o=e.iterator(t.repos.listTags,{per_page:100,owner:n,repo:r});loop:for await(let{data:e}of o)for(let{name:t,commit:n}of e){if(Cr()===n.sha)continue;if(a==null){i.previous={name:t,sha:n.sha};break loop}let e=xi(t);if(e==null||a.compare(e)<=0||e.prerelease.length>0&&!i.prerelease)continue;i.previous={name:t,sha:n.sha};break loop}return i}async function bo(){let{prerelease:e,releaseId:t,previous:n}=await yo();_o(e),vo(t);let r=await Fi(n?.sha);r+=await ho(n?.name),go(r)}var xo=l(ht());bo().catch(xo.setFailed);
`)}async function yo(){let{paginate:e,rest:t}=xr(),{owner:n,repo:r}=Ci(),i={releaseId:`latest`,prerelease:!1},a=null;if(vr()){if(a=xi(),a==null)throw Error(`Expected a semver compatible releaseName, got "${_r()}" instead.`);i.prerelease=a.prerelease.length>0,i.prerelease&&(i.releaseId=`${a.prerelease[0]}`)}let o=e.iterator(t.repos.listTags,{per_page:100,owner:n,repo:r});loop:for await(let{data:e}of o)for(let{name:t,commit:n}of e){if(Cr()===n.sha)continue;if(a==null){i.previous={name:t,sha:n.sha};break loop}let e=xi(t);if(e==null||a.compare(e)<=0||e.prerelease.length>0&&!i.prerelease)continue;i.previous={name:t,sha:n.sha};break loop}return i}async function bo(){let{prerelease:e,releaseId:t,previous:n}=await yo();Ei(e),Di(t);let r=await Ri(n?.sha);r+=await vo(n?.name),Ti(r)}var xo=l(gt());bo().catch(xo.setFailed);
//# sourceMappingURL=index.js.map
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"index.js","names":["input","__createBinding","__setModuleDefault","__importStar","os","utils_1","__createBinding","__setModuleDefault","__importStar","crypto","fs","os","utils_1","getProxyUrl","_a","checkBypass","isLoopbackAddress","net","tls","http","https","events","assert","util","options","onError","error","socket","debug","UndiciError","ConnectTimeoutError","HeadersTimeoutError","HeadersOverflowError","BodyTimeoutError","ResponseStatusCodeError","InvalidArgumentError","InvalidReturnValueError","RequestAbortedError","InformationalError","RequestContentLengthMismatchError","ResponseContentLengthMismatchError","ClientDestroyedError","ClientClosedError","SocketError","NotSupportedError","BalancedPoolMissingUpstreamError","HTTPParserError","ResponseExceededMaxSizeError","RequestRetryError","headerNameLowerCasedRecord","assert","stream","net","nodeMajor","nodeMinor","nop","isBlobLike","Blob","buildURL","InvalidArgumentError","path","parseOrigin","idx","kDestroyed","err","parseHeaders","handler","upgrade","isDisturbed","kBodyUsed","isErrored","isReadable","ReadableStream","ReadableStreamFrom","iterator","throwIfAborted","addAbortListener","toUSVString","parseRangeHeader","kEnumerableProperty","EventEmitter","inherits","inherits","ReadableStream","PartStream","getLimit","EventEmitter","inherits","getLimit","StreamSearch","HeaderParser","WritableStream","inherits","Dicer","decodeText","decodeText","parseParams","basename","path","Dicer","parseParams","decodeText","getLimit","RE_CHARSET","finished","Readable","Decoder","Busboy","corsSafeListedMethodsSet","nullBodyStatus","redirectStatusSet","badPortsSet","referrerPolicy","requestRedirect","safeMethodsSet","requestMode","requestCredentials","requestCache","requestBodyHeader","requestDuplex","forbiddenMethodsSet","subresourceSet","DOMException","structuredClone","options","getGlobalOrigin","assert","crypto","responseLocationURL","requestCurrentURL","request","requestBadPort","isErrorLike","isValidReasonPhrase","isValidHTTPToken","isValidHeaderName","isValidHeaderValue","setRequestReferrerPolicyOnRedirect","crossOriginResourcePolicyCheck","corsCheck","TAOCheck","appendFetchMetadata","appendRequestOriginHeader","coarsenedSharedCurrentTime","createOpaqueTimingInfo","makePolicyContainer","clonePolicyContainer","determineRequestsReferrer","globalOrigin","bytesMatch","tryUpgradeRequestToAPotentiallyTrustworthyURL","sameOrigin","createDeferredPromise","isAborted","isCancelled","normalizeMethodRecord","normalizeMethod","serializeJavascriptValueToJSONString","makeIterator","iterator","kind","fullyReadBody","ReadableStream","isReadableStreamLike","stream","isomorphicDecode","input","readableStreamClose","isomorphicEncode","readAllBytes","urlIsLocal","urlHasHttpsScheme","urlIsHttpHttpsScheme","hasOwn","webidl","context","seq","keys","options","toUSVString","assert","encoder","dataURLProcessor","input","URLSerializer","collectASequenceOfCodePointsFast","output","parseMIMEType","binary","serializeAMimeType","NativeFile","File","Blob","options","t","kState","FileLike","kEnumerableProperty","webidl","isFileLike","UndiciFile","NativeFile","File","FormData","kState","entry","Blob","options","util","assert","crypto","ReadableStream","textEncoder","extractBody","stream","escape","chunk","iterator","safelyExtractBody","cloneBody","kBodyUsed","DOMException","Blob","kState","FormData","mixinBody","error","output","assert","util","channels","extractBody","diagnosticsChannel","Request","handler","path","InvalidArgumentError","upgrade","abort","resume","error","kHTTP1BuildRequest","kHTTP2BuildRequest","request","kHTTP2CopyHeaders","NotSupportedError","Dispatcher","Dispatcher","DispatcherBase","kInterceptors","InvalidArgumentError","ClientDestroyedError","kClose","err","kDestroy","handler","kDispatch","net","assert","util","buildConnector","InvalidArgumentError","options","connect","session","onConnectTimeout","utils_1","ERROR","TYPE","FLAGS","LENIENT_FLAGS","METHODS","FINISH","HEADER_STATE","util","assert","EE","kBody","RedirectHandler","handler","InvalidArgumentError","abort","error","resume","path","RedirectHandler","createRedirectInterceptor","handler","assert","http","util","Request","DispatcherBase","buildConnector","kClosedResolve","channels","diagnosticsChannel","Client","InvalidArgumentError","connect","tls","kInterceptors","kUrl","kNeedDrain","kMaxRedirections","kQueue","kPending","kRunning","kSize","kConnected","kBusy","kDispatch","handler","request","kClose","kDestroy","kError","kClient","SocketError","constants","createRedirectInterceptor","upgrade","Parser","exports","onSocketError","onSocketClose","parser","socket","bodyLength","RequestAbortedError","path","stream","headers","finished","err","kSize","FixedQueue","PoolStats","kConnected","kFree","kPending","kQueued","kRunning","kSize","DispatcherBase","kClients","kNeedDrain","kOnDrain","kOnConnect","kOnDisconnect","kOnConnectionError","kGetDispatcher","kAddClient","kRemoveClient","PoolBase","kConnected",Line truncated
{"version":3,"file":"index.js","names":["input","__createBinding","__setModuleDefault","__importStar","os","utils_1","__createBinding","__setModuleDefault","__importStar","crypto","fs","os","utils_1","getProxyUrl","_a","checkBypass","isLoopbackAddress","net","tls","http","https","events","assert","util","options","onError","error","socket","debug","UndiciError","ConnectTimeoutError","HeadersTimeoutError","HeadersOverflowError","BodyTimeoutError","ResponseStatusCodeError","InvalidArgumentError","InvalidReturnValueError","RequestAbortedError","InformationalError","RequestContentLengthMismatchError","ResponseContentLengthMismatchError","ClientDestroyedError","ClientClosedError","SocketError","NotSupportedError","BalancedPoolMissingUpstreamError","HTTPParserError","ResponseExceededMaxSizeError","RequestRetryError","headerNameLowerCasedRecord","assert","stream","net","nodeMajor","nodeMinor","nop","isBlobLike","Blob","buildURL","InvalidArgumentError","path","parseOrigin","idx","kDestroyed","err","parseHeaders","handler","upgrade","isDisturbed","kBodyUsed","isErrored","isReadable","ReadableStream","ReadableStreamFrom","iterator","throwIfAborted","addAbortListener","toUSVString","parseRangeHeader","kEnumerableProperty","EventEmitter","inherits","inherits","ReadableStream","PartStream","getLimit","EventEmitter","inherits","getLimit","StreamSearch","HeaderParser","WritableStream","inherits","Dicer","decodeText","decodeText","parseParams","basename","path","Dicer","parseParams","decodeText","getLimit","RE_CHARSET","finished","Readable","Decoder","Busboy","corsSafeListedMethodsSet","nullBodyStatus","redirectStatusSet","badPortsSet","referrerPolicy","requestRedirect","safeMethodsSet","requestMode","requestCredentials","requestCache","requestBodyHeader","requestDuplex","forbiddenMethodsSet","subresourceSet","DOMException","structuredClone","options","getGlobalOrigin","assert","crypto","responseLocationURL","requestCurrentURL","request","requestBadPort","isErrorLike","isValidReasonPhrase","isValidHTTPToken","isValidHeaderName","isValidHeaderValue","setRequestReferrerPolicyOnRedirect","crossOriginResourcePolicyCheck","corsCheck","TAOCheck","appendFetchMetadata","appendRequestOriginHeader","coarsenedSharedCurrentTime","createOpaqueTimingInfo","makePolicyContainer","clonePolicyContainer","determineRequestsReferrer","globalOrigin","bytesMatch","tryUpgradeRequestToAPotentiallyTrustworthyURL","sameOrigin","createDeferredPromise","isAborted","isCancelled","normalizeMethodRecord","normalizeMethod","serializeJavascriptValueToJSONString","makeIterator","iterator","kind","fullyReadBody","ReadableStream","isReadableStreamLike","stream","isomorphicDecode","input","readableStreamClose","isomorphicEncode","readAllBytes","urlIsLocal","urlHasHttpsScheme","urlIsHttpHttpsScheme","hasOwn","webidl","context","seq","keys","options","toUSVString","assert","encoder","dataURLProcessor","input","URLSerializer","collectASequenceOfCodePointsFast","output","parseMIMEType","binary","serializeAMimeType","NativeFile","File","Blob","options","t","kState","FileLike","kEnumerableProperty","webidl","isFileLike","UndiciFile","NativeFile","File","FormData","kState","entry","Blob","options","util","assert","crypto","ReadableStream","textEncoder","extractBody","stream","escape","chunk","iterator","safelyExtractBody","cloneBody","kBodyUsed","DOMException","Blob","kState","FormData","mixinBody","error","output","assert","util","channels","extractBody","diagnosticsChannel","Request","handler","path","InvalidArgumentError","upgrade","abort","resume","error","kHTTP1BuildRequest","kHTTP2BuildRequest","request","kHTTP2CopyHeaders","NotSupportedError","Dispatcher","Dispatcher","DispatcherBase","kInterceptors","InvalidArgumentError","ClientDestroyedError","kClose","err","kDestroy","handler","kDispatch","net","assert","util","buildConnector","InvalidArgumentError","options","connect","session","onConnectTimeout","utils_1","ERROR","TYPE","FLAGS","LENIENT_FLAGS","METHODS","FINISH","HEADER_STATE","util","assert","EE","kBody","RedirectHandler","handler","InvalidArgumentError","abort","error","resume","path","RedirectHandler","createRedirectInterceptor","handler","assert","http","util","Request","DispatcherBase","buildConnector","kClosedResolve","channels","diagnosticsChannel","Client","InvalidArgumentError","connect","tls","kInterceptors","kUrl","kNeedDrain","kMaxRedirections","kQueue","kPending","kRunning","kSize","kConnected","kBusy","kDispatch","handler","request","kClose","kDestroy","kError","kClient","SocketError","constants","createRedirectInterceptor","upgrade","Parser","exports","onSocketError","onSocketClose","parser","socket","bodyLength","RequestAbortedError","path","stream","headers","finished","err","kSize","FixedQueue","PoolStats","kConnected","kFree","kPending","kQueued","kRunning","kSize","DispatcherBase","kClients","kNeedDrain","kOnDrain","kOnConnect","kOnDisconnect","kOnConnectionError","kGetDispatcher","kAddClient","kRemoveClient","PoolBase","kConnected",Line truncated
+7
View File
@@ -25,6 +25,13 @@
"node": ">= 20"
},
"main": "dist/index.js",
"imports": {
"#nodes": "./src/nodes/index.ts",
"#inputs": "./src/inputs/index.ts",
"#outputs": "./src/outputs/index.ts",
"#utils": "./src/utils/index.ts",
"#utils/*": "./src/utils/*.ts"
},
"scripts": {
"prepare": "is-ci || husky",
"lint": "eslint --cache --cache-location ./.cache/eslint/ .",
+13 -2
View File
@@ -23,9 +23,20 @@
*/
import { debug } from "@actions/core";
import { ChangelogNode } from "./nodes/index.js";
import { iterateCommits, parseCommitMessage, repository, trim } from "./utils/index.js";
import { ChangelogNode } from "#nodes";
import { iterateCommits, parseCommitMessage, repository, trim } from "#utils";
/**
* Generates a changelog string from commit history, grouping entries by type, scope, and author.
*
* Iterates over repository commits starting from an optional commit SHA,
* parses commit messages, and organizes them into a hierarchical changelog structure.
* Commits with empty descriptions or flagged as "ignore" are excluded.
* The resulting changelog is returned as a formatted string or an empty string if no valid entries are found.
*
* @param lastSha - Optional SHA of the last processed commit; if provided, only newer commits are included.
* @returns The formatted changelog string, or an empty string if there are no relevant commits.
*/
export async function generateChangelog(lastSha?: string): Promise<string> {
const { owner, repo } = repository();
+11 -2
View File
@@ -29,9 +29,18 @@ import {
releaseName,
releaseNamePrefix,
useGitHubAutolink,
} from "./inputs/index.js";
import { octokit, repository } from "./utils/index.js";
} from "#inputs";
import { octokit, repository } from "#utils";
/**
* Generates a markdown-formatted footer for a release note, optionally including new contributors and a changelog link.
*
* If enabled by configuration, the footer may include a "New Contributors" section extracted
* from GitHub-generated release notes and a "Full Changelog" link comparing the previous and current release tags.
*
* @param previousTagName - The previous release tag to compare against, if available.
* @returns The formatted footer string, or an empty string if no sections are included.
*/
export async function generateFooter(previousTagName?: string): Promise<string> {
const { owner, repo, url } = repository();
const tagName = releaseName();
+7 -1
View File
@@ -22,11 +22,17 @@
* SOFTWARE.
*/
import { setChangelog, setPrerelease, setReleaseId } from "#outputs";
import { generateChangelog } from "./changelog.js";
import { generateFooter } from "./footer.js";
import { setChangelog, setPrerelease, setReleaseId } from "./outputs/index.js";
import { getTagInfo } from "./tag.js";
/**
* Generates and sets release metadata and changelog content based on the latest tag information.
*
* Retrieves tag details, updates prerelease status and release ID, generates the changelog and footer,
* and sets the complete changelog output.
*/
export async function generate(): Promise<void> {
const { prerelease, releaseId, previous } = await getTagInfo();
+8 -1
View File
@@ -23,8 +23,15 @@
*/
import YAML from "yaml";
import { input } from "../utils/input.js";
import { input } from "#utils/input";
/**
* Retrieves and parses the "commit-types" input as a mapping of commit type keys to descriptions.
*
* @returns An object mapping commit type identifiers to their descriptions.
*
* @throws {import("yaml").YAMLParseError} If the "commit-types" input is not valid YAML.
*/
export function commitTypes(): Record<string, string> {
return input("commit-types", value => YAML.parse(value));
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { input } from "../utils/input.js";
import { input } from "#utils/input";
/**
* Retrieves the default commit type from user or environment input.
*
* @returns The default commit type as a string.
*/
export function defaultCommitType(): string {
return input("default-commit-type");
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { input } from "../utils/input.js";
import { input } from "#utils/input";
/**
* Retrieves the GitHub authentication token from user input or configuration.
*
* @returns The GitHub token as a string.
*/
export function gitHubToken(): string {
return input("github-token");
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { booleanInput } from "../utils/boolean-input.js";
import { booleanInput } from "#utils/boolean-input";
/**
* Determines whether commit links should be included based on the "include-commit-links" input.
*
* @returns `true` if commit links should be included; otherwise, `false`.
*/
export function includeCommitLinks(): boolean {
return booleanInput("include-commit-links");
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { booleanInput } from "../utils/boolean-input.js";
import { booleanInput } from "#utils/boolean-input";
/**
* Determines whether the compare link should be included based on the "include-compare-link" input.
*
* @returns `true` if the compare link should be included; otherwise, `false`.
*/
export function includeCompareLink(): boolean {
return booleanInput("include-compare-link");
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { booleanInput } from "../utils/boolean-input.js";
import { booleanInput } from "#utils/boolean-input";
/**
* Determines whether pull request links should be included based on the "include-pr-links" input.
*
* @returns `true` if pull request links should be included; otherwise, `false`.
*/
export function includePRLinks(): boolean {
return booleanInput("include-pr-links");
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { booleanInput } from "../utils/boolean-input.js";
import { booleanInput } from "#utils/boolean-input";
/**
* Determines whether authors should be mentioned based on the "mention-authors" input.
*
* @returns `true` if author mentions are enabled; otherwise, `false`.
*/
export function mentionAuthors(): boolean {
return booleanInput("mention-authors");
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { booleanInput } from "../utils/boolean-input.js";
import { booleanInput } from "#utils/boolean-input";
/**
* Determines whether new contributors should be mentioned based on configuration.
*
* @returns `true` if mentioning new contributors is enabled; otherwise, `false`.
*/
export function mentionNewContributors(): boolean {
return booleanInput("mention-new-contributors");
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { input } from "../utils/input.js";
import { input } from "#utils/input";
/**
* Retrieves the configured release name prefix.
*
* @returns The value associated with the "release-name-prefix" input, or an empty string if not set.
*/
export function releaseNamePrefix(): string {
return input("release-name-prefix", false);
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { input } from "../utils/input.js";
import { input } from "#utils/input";
/**
* Retrieves the release name from user input.
*
* @returns The value entered for the "release-name" input.
*/
export function releaseName(): string {
return input("release-name");
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { booleanInput } from "../utils/boolean-input.js";
import { booleanInput } from "#utils/boolean-input";
/**
* Determines whether the "semver" input is enabled.
*
* @returns `true` if the "semver" input is set to a truthy value; otherwise, `false`.
*/
export function semver(): boolean {
return booleanInput("semver");
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { booleanInput } from "../utils/boolean-input.js";
import { booleanInput } from "#utils/boolean-input";
/**
* Returns whether GitHub autolink functionality is enabled based on the "use-github-autolink" input.
*
* @returns `true` if GitHub autolink is enabled; otherwise, `false`.
*/
export function useGitHubAutolink(): boolean {
return booleanInput("use-github-autolink");
}
+2 -2
View File
@@ -22,10 +22,10 @@
* SOFTWARE.
*/
import { commitTypes, defaultCommitType } from "#inputs";
import { trim } from "#utils";
import { Node } from "./node.js";
import { TypeNode } from "./type.js";
import { commitTypes, defaultCommitType } from "../inputs/index.js";
import { trim } from "../utils/index.js";
/**
* Represents a changelog node which organizes and processes commit types into structured changelog entries.
+1 -1
View File
@@ -22,10 +22,10 @@
* SOFTWARE.
*/
import { mentionAuthors } from "#inputs";
import { CommitHashNode } from "./commit-hash.js";
import { Node } from "./node.js";
import { PullRequestNode } from "./pull-request.js";
import { mentionAuthors } from "../inputs/index.js";
/**
* Represents a node for a commit author, containing information about the author
+1 -1
View File
@@ -22,8 +22,8 @@
* SOFTWARE.
*/
import { includeCommitLinks } from "#inputs";
import { Node } from "./node.js";
import { includeCommitLinks } from "../inputs/index.js";
/**
* Represents a node that holds a commit hash (SHA) and provides functionality
+2 -2
View File
@@ -23,8 +23,8 @@
*/
import { context } from "@actions/github";
import { useGitHubAutolink } from "../inputs/index.js";
import { repository } from "../utils/index.js";
import { useGitHubAutolink } from "#inputs";
import { repository } from "#utils";
/**
* Represents the base class for all nodes in the changelog,
+1 -1
View File
@@ -22,8 +22,8 @@
* SOFTWARE.
*/
import { includePRLinks } from "#inputs";
import { Node } from "./node.js";
import { includePRLinks } from "../inputs/index.js";
/**
* Represents a node associated with a pull request or issue link.
+1 -1
View File
@@ -22,9 +22,9 @@
* SOFTWARE.
*/
import { trim } from "#utils";
import { Node } from "./node.js";
import { ScopeNode } from "./scope.js";
import { trim } from "../utils/index.js";
/**
* Represents a node for a specific type that manages associated scopes.
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { output } from "../utils/index.js";
import { output } from "#utils";
/**
* Sets the changelog content for output.
*
* @param changelog - The changelog text to be recorded.
*/
export function setChangelog(changelog: string): void {
output("changelog", changelog);
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { output } from "../utils/index.js";
import { output } from "#utils";
/**
* Sets the prerelease status by outputting the given boolean value.
*
* @param prerelease - Indicates whether the prerelease flag should be set.
*/
export function setPrerelease(prerelease: boolean): void {
output("prerelease", prerelease);
}
+6 -1
View File
@@ -22,8 +22,13 @@
* SOFTWARE.
*/
import { output } from "../utils/index.js";
import { output } from "#utils";
/**
* Sets the release ID by passing it to the output handler.
*
* @param releaseId - The release identifier to register.
*/
export function setReleaseId(releaseId: string): void {
output("release-id", releaseId);
}
+2 -2
View File
@@ -23,8 +23,8 @@
*/
import { type SemVer } from "semver";
import { releaseName, semver } from "./inputs/index.js";
import { octokit, parseSemanticVersion as parseSemVersion, repository, sha } from "./utils/index.js";
import { releaseName, semver } from "#inputs";
import { octokit, parseSemanticVersion as parseSemVersion, repository, sha } from "#utils";
export interface TRelease {
name: string;
+8 -1
View File
@@ -24,9 +24,16 @@
import { getOctokit } from "@actions/github";
import { type GitHub } from "@actions/github/lib/utils.js";
import { gitHubToken } from "#inputs";
import { cache } from "./cache.js";
import { gitHubToken } from "../inputs/index.js";
/**
* Returns a cached, authenticated GitHub client instance.
*
* The client is initialized using the current GitHub token and reused across calls to avoid redundant instantiations.
*
* @returns An authenticated {@link GitHub} client instance.
*/
export function octokit(): InstanceType<typeof GitHub> {
return cache("octokit", () => getOctokit(gitHubToken()));
}
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getInput } from "@actions/core";
import { commitTypes } from "../../src/inputs";
import { commitTypes } from "#inputs";
it("should get and parse the \"commit-types\" input", () => {
const inputValue = `
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getInput } from "@actions/core";
import { defaultCommitType } from "../../src/inputs";
import { defaultCommitType } from "#inputs";
it("should get and parse the \"default-commit-type\" input", () => {
const inputValue = "Other Changes";
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getInput } from "@actions/core";
import { gitHubToken } from "../../src/inputs";
import { gitHubToken } from "#inputs";
it("should get and parse the \"github-token\" input", () => {
const inputValue = "github-token-value";
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getBooleanInput } from "@actions/core";
import { includeCommitLinks } from "../../src/inputs";
import { includeCommitLinks } from "#inputs";
it.each([true, false])("should get and parse the \"include-commit-links\" input as %j", (inputValue) => {
jest.mocked(getBooleanInput).mockReturnValueOnce(inputValue);
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getBooleanInput } from "@actions/core";
import { includeCompareLink } from "../../src/inputs";
import { includeCompareLink } from "#inputs";
it.each([true, false])("should get and parse the \"include-compare-link\" input as %j", (inputValue) => {
jest.mocked(getBooleanInput).mockReturnValueOnce(inputValue);
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getBooleanInput } from "@actions/core";
import { includePRLinks } from "../../src/inputs";
import { includePRLinks } from "#inputs";
it.each([true, false])("should retrieve the \"include-pr-links\" input as %j", (inputValue) => {
jest.mocked(getBooleanInput).mockReturnValueOnce(inputValue);
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getBooleanInput } from "@actions/core";
import { mentionAuthors } from "../../src/inputs";
import { mentionAuthors } from "#inputs";
it.each([true, false])("should get and parse the \"mention-authors\" input as %j", (inputValue) => {
jest.mocked(getBooleanInput).mockReturnValueOnce(inputValue);
@@ -23,7 +23,7 @@
*/
import { getBooleanInput } from "@actions/core";
import { mentionNewContributors } from "../../src/inputs";
import { mentionNewContributors } from "#inputs";
it.each([true, false])("should get and parse the \"mention-new-contributors\" input as %j", (inputValue) => {
jest.mocked(getBooleanInput).mockReturnValueOnce(inputValue);
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getInput } from "@actions/core";
import { releaseNamePrefix } from "../../src/inputs";
import { releaseNamePrefix } from "#inputs";
it("should get and parse the \"release-name-prefix\" input", () => {
const inputValue = "@actions/github/";
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getInput } from "@actions/core";
import { releaseName } from "../../src/inputs";
import { releaseName } from "#inputs";
it("should get and parse the \"release-name\" input", () => {
const inputValue = "v1.0.0";
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getBooleanInput } from "@actions/core";
import { semver } from "../../src/inputs";
import { semver } from "#inputs";
it.each([true, false])("should get and parse the \"semver\" input as %j", (inputValue) => {
jest.mocked(getBooleanInput).mockReturnValueOnce(inputValue);
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getBooleanInput } from "@actions/core";
import { useGitHubAutolink } from "../../src/inputs";
import { useGitHubAutolink } from "#inputs";
it.each([true, false])("should retrieve the \"use-github-autolink\" input as %j", (inputValue) => {
jest.mocked(getBooleanInput).mockReturnValueOnce(inputValue);
+1 -1
View File
@@ -22,6 +22,6 @@
* SOFTWARE.
*/
import { clearCache } from "../../src/utils";
import { clearCache } from "#utils";
afterEach(() => clearCache());
+1 -1
View File
@@ -25,7 +25,7 @@
import { getBooleanInput, getInput } from "@actions/core";
import { context } from "@actions/github";
import YAML from "yaml";
import { ChangelogNode, CommitNode, ScopeNode, TypeNode } from "../../src/nodes";
import { ChangelogNode, CommitNode, ScopeNode, TypeNode } from "#nodes";
const repo = {
owner: "ardalanamini",
+1 -1
View File
@@ -24,7 +24,7 @@
import { getBooleanInput } from "@actions/core";
import { context } from "@actions/github";
import { CommitAuthorNode, CommitHashNode, Node, PullRequestNode } from "../../src/nodes";
import { CommitAuthorNode, CommitHashNode, Node, PullRequestNode } from "#nodes";
const repo = {
owner: "ardalanamini",
+1 -1
View File
@@ -24,7 +24,7 @@
import { getBooleanInput } from "@actions/core";
import { context } from "@actions/github";
import { CommitHashNode, Node } from "../../src/nodes";
import { CommitHashNode, Node } from "#nodes";
const repo = {
owner: "ardalanamini",
+1 -1
View File
@@ -24,7 +24,7 @@
import { getBooleanInput } from "@actions/core";
import { context } from "@actions/github";
import { CommitAuthorNode, CommitHashNode, CommitNode, Node } from "../../src/nodes";
import { CommitAuthorNode, CommitHashNode, CommitNode, Node } from "#nodes";
const repo = {
owner: "ardalanamini",
+1 -1
View File
@@ -24,7 +24,7 @@
import { getBooleanInput } from "@actions/core";
import { context } from "@actions/github";
import { Node } from "../../src/nodes";
import { Node } from "#nodes";
it("should create an instance with common values", () => {
const shouldUseGithubAutolink = true;
+1 -1
View File
@@ -24,7 +24,7 @@
import { getBooleanInput } from "@actions/core";
import { context } from "@actions/github";
import { Node, PullRequestNode } from "../../src/nodes";
import { Node, PullRequestNode } from "#nodes";
const repo = {
owner: "ardalanamini",
+1 -1
View File
@@ -24,7 +24,7 @@
import { getBooleanInput } from "@actions/core";
import { context } from "@actions/github";
import { CommitNode, Node, ScopeNode } from "../../src/nodes";
import { CommitNode, Node, ScopeNode } from "#nodes";
const repo = {
owner: "ardalanamini",
+1 -1
View File
@@ -24,7 +24,7 @@
import { getBooleanInput } from "@actions/core";
import { context } from "@actions/github";
import { CommitNode, Node, ScopeNode, TypeNode } from "../../src/nodes";
import { CommitNode, Node, ScopeNode, TypeNode } from "#nodes";
const repo = {
owner: "ardalanamini",
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { info, setOutput } from "@actions/core";
import { setChangelog } from "../../src/outputs";
import { setChangelog } from "#outputs";
it("should log and set the changelog output", () => {
const outputValue = "Changelog Value";
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { info, setOutput } from "@actions/core";
import { setPrerelease } from "../../src/outputs";
import { setPrerelease } from "#outputs";
it.each([true, false])("should output \"prerelease\" value as %j", (outputValue) => {
setPrerelease(outputValue);
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { info, setOutput } from "@actions/core";
import { setReleaseId } from "../../src/outputs";
import { setReleaseId } from "#outputs";
it("should output \"release-id\" value", () => {
const outputName = "release-id";
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getBooleanInput } from "@actions/core";
import { booleanInput, cache } from "../../src/utils";
import { booleanInput, cache } from "#utils";
it("should get and parse a boolean input", () => {
const inputName = "foo";
+1 -1
View File
@@ -22,7 +22,7 @@
* SOFTWARE.
*/
import { cache, clearCache } from "../../src/utils";
import { cache, clearCache } from "#utils";
it("should cache value", () => {
const name = "foo";
+1 -1
View File
@@ -26,7 +26,7 @@ import { getInput } from "@actions/core";
import { getOctokit } from "@actions/github";
import { GitHub } from "@actions/github/lib/utils";
import fetchMock from "fetch-mock";
import { iterateCommits } from "../../src/utils";
import { iterateCommits } from "#utils";
it("should iterate over commits", async () => {
const repo = {
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getInput } from "@actions/core";
import { cache, input } from "../../src/utils";
import { cache, input } from "#utils";
it("should get input value", () => {
const name = "foo";
+1 -1
View File
@@ -25,7 +25,7 @@
import { getInput } from "@actions/core";
import { getOctokit } from "@actions/github";
import { GitHub } from "@actions/github/lib/utils";
import { octokit } from "../../src/utils";
import { octokit } from "#utils";
it("should get octokit instance", () => {
const gitHubTokenInputName = "github-token";
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { info, setOutput } from "@actions/core";
import { output } from "../../src/utils";
import { output } from "#utils";
it("should output value", () => {
const name = "foo";
+1 -1
View File
@@ -23,7 +23,7 @@
*/
/* eslint-disable no-undefined */
import { parseCommitMessage } from "../../src/utils";
import { parseCommitMessage } from "#utils";
describe("acceptable commit message formats", () => {
it("should parse the commit message with breaking false", () => {
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { getInput } from "@actions/core";
import { parseSemanticVersion } from "../../src/utils";
import { parseSemanticVersion } from "#utils";
it("should parse the semver version string", () => {
const major = 1;
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { context } from "@actions/github";
import { repository } from "../../src/utils";
import { repository } from "#utils";
it("should get the repository information with constructed URL", () => {
const repo = {
+1 -1
View File
@@ -23,7 +23,7 @@
*/
import { context } from "@actions/github";
import { sha } from "../../src/utils";
import { sha } from "#utils";
it("should get the current commit sha", () => {
const shaValue = "3c1177539c1a216084f922ea52e56dd719a25945";
+1 -1
View File
@@ -22,7 +22,7 @@
* SOFTWARE.
*/
import { trim } from "../../src/utils/trim.js";
import { trim } from "#utils";
it("should remove leading and trailing whitespace", () => {
expect(trim(" hello ")).toBe("hello");
+2 -2
View File
@@ -4,9 +4,9 @@
/* Basic Options */
"incremental": true, /* Enable incremental compilation */
"target": "ESNext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"target": "ES2024", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "Node16", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
"lib": ["ESNext"], /* Specify library files to be included in the compilation. */
// "lib": ["ESNext"], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */