diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48ac6f03c..f3135c2f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,3 +113,11 @@ jobs: uses: ./rdme-repo/ with: rdme: openapi "oas-examples-repo/3.1/json/petstore.json" --key "${{ secrets.RDME_TEST_PROJECT_API_KEY }}" --id=${{ secrets.RDME_TEST_PROJECT_API_SETTING }} + + # this is a test to ensure that the rdme github action can run properly + # the way that our users invoke it + - name: E2E run of `openapi validate` on `next` branch + uses: readmeio/rdme@next + if: ${{ github.ref }} == 'refs/heads/next' + with: + rdme: openapi validate oas-examples-repo/3.1/json/petstore.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a499fa73..da4043c7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,46 @@ +## [9.0.4-next.3](https://github.com/readmeio/rdme/compare/v9.0.4-next.2...v9.0.4-next.3) (2024-12-12) + + +### Bug Fixes + +* openapi arg doc enhancements, refactors ([#1122](https://github.com/readmeio/rdme/issues/1122)) ([b83b233](https://github.com/readmeio/rdme/commit/b83b23337c09f053bf470bf4b41615353b1f3eae)) + +## [9.0.4-next.2](https://github.com/readmeio/rdme/compare/v9.0.4-next.1...v9.0.4-next.2) (2024-12-11) + + +### Bug Fixes + +* copy package.json file instead of symlinking ([1d56c21](https://github.com/readmeio/rdme/commit/1d56c21b0313fb0dcf0721294196b729eb2eaa49)) + +## [9.0.4-next.1](https://github.com/readmeio/rdme/compare/v9.0.3...v9.0.4-next.1) (2024-12-11) + + +### Bug Fixes + +* bring back [#1117](https://github.com/readmeio/rdme/issues/1117) without breaking everything ([#1120](https://github.com/readmeio/rdme/issues/1120)) ([d5d74c5](https://github.com/readmeio/rdme/commit/d5d74c5ac4200c1e0ceaf994f2ff71086894b2c3)) + +## [9.0.3](https://github.com/readmeio/rdme/compare/v9.0.2...v9.0.3) (2024-12-11) + + +### Bug Fixes + +* revert [#1117](https://github.com/readmeio/rdme/issues/1117) ([#1119](https://github.com/readmeio/rdme/issues/1119)) ([c20cc3c](https://github.com/readmeio/rdme/commit/c20cc3cf89a4e108efa485e46c26e8bfb7ba68d6)) + +## [9.0.3-next.1](https://github.com/readmeio/rdme/compare/v9.0.2...v9.0.3-next.1) (2024-12-11) + + +### Bug Fixes + +* revert [#1117](https://github.com/readmeio/rdme/issues/1117) ([#1119](https://github.com/readmeio/rdme/issues/1119)) ([c20cc3c](https://github.com/readmeio/rdme/commit/c20cc3cf89a4e108efa485e46c26e8bfb7ba68d6)) + +## [9.0.2](https://github.com/readmeio/rdme/compare/v9.0.1...v9.0.2) (2024-12-11) + + +### Bug Fixes + +* **autocomplete:** bad alias ([#1118](https://github.com/readmeio/rdme/issues/1118)) ([5b8d928](https://github.com/readmeio/rdme/commit/5b8d9286e891b1bc5cfbcfce1a1862cb8dbdf2b4)) +* remove import attributes ([#1117](https://github.com/readmeio/rdme/issues/1117)) ([e662654](https://github.com/readmeio/rdme/commit/e66265486cac80f79c79f8594b7c60862fadbe12)), closes [#1115](https://github.com/readmeio/rdme/issues/1115) [/github.com/readmeio/rdme/pull/1115#issuecomment-2532123627](https://github.com//github.com/readmeio/rdme/pull/1115/issues/issuecomment-2532123627) + ## [9.0.2-next.2](https://github.com/readmeio/rdme/compare/v9.0.2-next.1...v9.0.2-next.2) (2024-12-10) diff --git a/bin/dev.js b/bin/dev.js index c87b65b4a..4d228c93e 100755 --- a/bin/dev.js +++ b/bin/dev.js @@ -3,7 +3,7 @@ async function main() { const { execute } = await import('@oclif/core'); await execute({ development: true, dir: import.meta.url }).then(msg => { - if (msg) { + if (msg && typeof msg === 'string') { // eslint-disable-next-line no-console console.log(msg); } diff --git a/dist-gha/commands.js b/dist-gha/commands.js index 235fa7b51..ef253d0b8 100644 --- a/dist-gha/commands.js +++ b/dist-gha/commands.js @@ -60,13 +60,13 @@ and limitations under the License. /*! run-parallel. MIT License. Feross Aboukhadijeh */function requireRunParallel(){if(hasRequiredRunParallel)return runParallel_1;hasRequiredRunParallel=1,runParallel_1=function(t,n){let r,i,o,s=!0;Array.isArray(t)?(r=[],i=t.length):(o=Object.keys(t),r={},i=o.length);function a(t){function i(){n&&n(t,r),n=null}s?e(i):i()}function c(e,t,n){r[e]=n,(0==--i||t)&&a(t)}i?o?o.forEach((function(e){t[e]((function(t,n){c(e,t,n)}))})):t.forEach((function(e,t){e((function(e,n){c(t,e,n)}))})):a(null);s=!1};const e=requireQueueMicrotask();return runParallel_1}var constants$5={},hasRequiredConstants$5;function requireConstants$5(){if(hasRequiredConstants$5)return constants$5;hasRequiredConstants$5=1,Object.defineProperty(constants$5,"__esModule",{value:!0}),constants$5.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const e=process.versions.node.split(".");if(void 0===e[0]||void 0===e[1])throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);const t=Number.parseInt(e[0],10),n=Number.parseInt(e[1],10),r=t>10,i=10===t&&n>=10;return constants$5.IS_SUPPORT_READDIR_WITH_FILE_TYPES=r||i,constants$5}var utils$8={},fs$2={},hasRequiredFs$1,hasRequiredUtils$8;function requireFs$1(){if(hasRequiredFs$1)return fs$2;hasRequiredFs$1=1,Object.defineProperty(fs$2,"__esModule",{value:!0}),fs$2.createDirentFromStats=void 0;class e{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}return fs$2.createDirentFromStats=function(t,n){return new e(t,n)},fs$2}function requireUtils$8(){if(hasRequiredUtils$8)return utils$8;hasRequiredUtils$8=1,Object.defineProperty(utils$8,"__esModule",{value:!0}),utils$8.fs=void 0;const e=requireFs$1();return utils$8.fs=e,utils$8}var common$5={},hasRequiredCommon$4,hasRequiredAsync$5;function requireCommon$4(){if(hasRequiredCommon$4)return common$5;return hasRequiredCommon$4=1,Object.defineProperty(common$5,"__esModule",{value:!0}),common$5.joinPathSegments=void 0,common$5.joinPathSegments=function(e,t,n){return e.endsWith(n)?e+t:e+n+t},common$5}function requireAsync$5(){if(hasRequiredAsync$5)return async$2;hasRequiredAsync$5=1,Object.defineProperty(async$2,"__esModule",{value:!0}),async$2.readdir=async$2.readdirWithFileTypes=async$2.read=void 0;const e=requireOut$3(),t=requireRunParallel(),n=requireConstants$5(),r=requireUtils$8(),i=requireCommon$4();function o(e,n,o){n.fs.readdir(e,{withFileTypes:!0},((s,l)=>{if(null!==s)return void a(o,s);const u=l.map((t=>({dirent:t,name:t.name,path:i.joinPathSegments(e,t.name,n.pathSegmentSeparator)})));if(!n.followSymbolicLinks)return void c(o,u);const d=u.map((e=>function(e,t){return n=>{e.dirent.isSymbolicLink()?t.fs.stat(e.path,((i,o)=>{if(null!==i)return t.throwErrorOnBrokenSymbolicLink?void n(i):void n(null,e);e.dirent=r.fs.createDirentFromStats(e.name,o),n(null,e)})):n(null,e)}}(e,n)));t(d,((e,t)=>{null===e?c(o,t):a(o,e)}))}))}function s(n,o,s){o.fs.readdir(n,((l,u)=>{if(null!==l)return void a(s,l);const d=u.map((t=>{const s=i.joinPathSegments(n,t,o.pathSegmentSeparator);return n=>{e.stat(s,o.fsStatSettings,((e,i)=>{if(null!==e)return void n(e);const a={name:t,path:s,dirent:r.fs.createDirentFromStats(t,i)};o.stats&&(a.stats=i),n(null,a)}))}}));t(d,((e,t)=>{null===e?c(s,t):a(s,e)}))}))}function a(e,t){e(t)}function c(e,t){e(null,t)}return async$2.read=function(e,t,r){t.stats||!n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(e,t,r):o(e,t,r)},async$2.readdirWithFileTypes=o,async$2.readdir=s,async$2}var sync$4={},hasRequiredSync$4;function requireSync$4(){if(hasRequiredSync$4)return sync$4;hasRequiredSync$4=1,Object.defineProperty(sync$4,"__esModule",{value:!0}),sync$4.readdir=sync$4.readdirWithFileTypes=sync$4.read=void 0;const e=requireOut$3(),t=requireConstants$5(),n=requireUtils$8(),r=requireCommon$4();function i(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map((i=>{const o={dirent:i,name:i.name,path:r.joinPathSegments(e,i.name,t.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{const e=t.fs.statSync(o.path);o.dirent=n.fs.createDirentFromStats(o.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink)throw e}return o}))}function o(t,i){return i.fs.readdirSync(t).map((o=>{const s=r.joinPathSegments(t,o,i.pathSegmentSeparator),a=e.statSync(s,i.fsStatSettings),c={name:o,path:s,dirent:n.fs.createDirentFromStats(o,a)};return i.stats&&(c.stats=a),c}))}return sync$4.read=function(e,n){return!n.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?i(e,n):o(e,n)},sync$4.readdirWithFileTypes=i,sync$4.readdir=o,sync$4}var settings$2={},fs$1={},hasRequiredFs,hasRequiredSettings$2,hasRequiredOut$2;function requireFs(){return hasRequiredFs||(hasRequiredFs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const t=require$$0$7;e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync},e.createFileSystemAdapter=function(t){return void 0===t?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}}(fs$1)),fs$1}function requireSettings$2(){if(hasRequiredSettings$2)return settings$2;hasRequiredSettings$2=1,Object.defineProperty(settings$2,"__esModule",{value:!0});const e=require$$0$8,t=requireOut$3(),n=requireFs();return settings$2.default=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},settings$2}function requireOut$2(){if(hasRequiredOut$2)return out$2;hasRequiredOut$2=1,Object.defineProperty(out$2,"__esModule",{value:!0}),out$2.Settings=out$2.scandirSync=out$2.scandir=void 0;const e=requireAsync$5(),t=requireSync$4(),n=requireSettings$2();function r(e={}){return e instanceof n.default?e:new n.default(e)}return out$2.Settings=n.default,out$2.scandir=function(t,n,i){"function"!=typeof n?e.read(t,r(n),i):e.read(t,r(),n)},out$2.scandirSync=function(e,n){const i=r(n);return t.read(e,i)},out$2}var queue={exports:{}},reusify_1,hasRequiredReusify,hasRequiredQueue;function requireReusify(){if(hasRequiredReusify)return reusify_1;return hasRequiredReusify=1,reusify_1=function(e){var t=new e,n=t;return{get:function(){var r=t;return r.next?t=r.next:(t=new e,n=t),r.next=null,r},release:function(e){n.next=e,n=e}}}}function requireQueue(){if(hasRequiredQueue)return queue.exports;hasRequiredQueue=1;var e=requireReusify();function t(t,i,o){if("function"==typeof t&&(o=i,i=t,t=null),!(o>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var s=e(r),a=null,c=null,l=0,u=null,d={push:function(e,r){var f=s.get();f.context=t,f.release=p,f.value=e,f.callback=r||n,f.errorHandler=u,l>=o||d.paused?c?(c.next=f,c=f):(a=f,c=f,d.saturated()):(l++,i.call(t,f.value,f.worked))},drain:n,saturated:n,pause:function(){d.paused=!0},paused:!1,get concurrency(){return o},set concurrency(e){if(!(e>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(o=e,!d.paused)for(;a&&l=o||d.paused?a?(f.next=a,a=f):(a=f,c=f,d.saturated()):(l++,i.call(t,f.value,f.worked))},empty:n,kill:function(){a=null,c=null,d.drain=n},killAndDrain:function(){a=null,c=null,d.drain(),d.drain=n},error:function(e){u=e}};return d;function p(e){e&&s.release(e);var n=a;n&&l<=o?d.paused?l--:(c===a&&(c=null),a=n.next,n.next=null,i.call(t,n.value,n.worked),null===c&&d.empty()):0==--l&&d.drain()}}function n(){}function r(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,r){var i=e.callback,o=e.errorHandler,s=e.value;e.value=null,e.callback=n,e.errorHandler&&o(t,s),i.call(e.context,t,r),e.release(e)}}return queue.exports=t,queue.exports.promise=function(e,r,i){"function"==typeof e&&(i=r,r=e,e=null);var o=t(e,(function(e,t){r.call(this,e).then((function(e){t(null,e)}),t)}),i),s=o.push,a=o.unshift;return o.push=function(e){var t=new Promise((function(t,n){s(e,(function(e,r){e?n(e):t(r)}))}));return t.catch(n),t},o.unshift=function(e){var t=new Promise((function(t,n){a(e,(function(e,r){e?n(e):t(r)}))}));return t.catch(n),t},o.drained=function(){if(o.idle())return new Promise((function(e){e()}));var e=o.drain,t=new Promise((function(t){o.drain=function(){e(),t()}}));return t},o},queue.exports}var common$4={},hasRequiredCommon$3;function requireCommon$3(){if(hasRequiredCommon$3)return common$4;return hasRequiredCommon$3=1,Object.defineProperty(common$4,"__esModule",{value:!0}),common$4.joinPathSegments=common$4.replacePathSegmentSeparator=common$4.isAppliedFilter=common$4.isFatalError=void 0,common$4.isFatalError=function(e,t){return null===e.errorFilter||!e.errorFilter(t)},common$4.isAppliedFilter=function(e,t){return null===e||e(t)},common$4.replacePathSegmentSeparator=function(e,t){return e.split(/[/\\]/).join(t)},common$4.joinPathSegments=function(e,t,n){return""===e?t:e.endsWith(n)?e+t:e+n+t},common$4}var reader$1={},hasRequiredReader$1,hasRequiredAsync$4,hasRequiredAsync$3;function requireReader$1(){if(hasRequiredReader$1)return reader$1;hasRequiredReader$1=1,Object.defineProperty(reader$1,"__esModule",{value:!0});const e=requireCommon$3();return reader$1.default=class{constructor(t,n){this._root=t,this._settings=n,this._root=e.replacePathSegmentSeparator(t,n.pathSegmentSeparator)}},reader$1}function requireAsync$4(){if(hasRequiredAsync$4)return async$3;hasRequiredAsync$4=1,Object.defineProperty(async$3,"__esModule",{value:!0});const e=require$$0$c,t=requireOut$2(),n=requireQueue(),r=requireCommon$3(),i=requireReader$1();class o extends i.default{constructor(r,i){super(r,i),this._settings=i,this._scandir=t.scandir,this._emitter=new e.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)})),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const n={directory:e,base:t};this._queue.push(n,(e=>{null!==e&&this._handleError(e)}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((n,r)=>{if(null===n){for(const t of r)this._handleEntry(t,e.base);t(null,void 0)}else t(n,void 0)}))}_handleError(e){!this._isDestroyed&&r.isFatalError(this._settings,e)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;const n=e.path;void 0!==t&&(e.path=r.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,void 0===t?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}return async$3.default=o,async$3}function requireAsync$3(){if(hasRequiredAsync$3)return async$4;hasRequiredAsync$3=1,Object.defineProperty(async$4,"__esModule",{value:!0});const e=requireAsync$4();return async$4.default=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new e.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError((t=>{!function(e,t){e(t)}(e,t)})),this._reader.onEntry((e=>{this._storage.push(e)})),this._reader.onEnd((()=>{!function(e,t){e(null,t)}(e,this._storage)})),this._reader.read()}},async$4}var stream$2={},hasRequiredStream$2;function requireStream$2(){if(hasRequiredStream$2)return stream$2;hasRequiredStream$2=1,Object.defineProperty(stream$2,"__esModule",{value:!0});const e=require$$0$b,t=requireAsync$4();return stream$2.default=class{constructor(n,r){this._root=n,this._settings=r,this._reader=new t.default(this._root,this._settings),this._stream=new e.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError((e=>{this._stream.emit("error",e)})),this._reader.onEntry((e=>{this._stream.push(e)})),this._reader.onEnd((()=>{this._stream.push(null)})),this._reader.read(),this._stream}},stream$2}var sync$3={},sync$2={},hasRequiredSync$3,hasRequiredSync$2;function requireSync$3(){if(hasRequiredSync$3)return sync$2;hasRequiredSync$3=1,Object.defineProperty(sync$2,"__esModule",{value:!0});const e=requireOut$2(),t=requireCommon$3(),n=requireReader$1();class r extends n.default{constructor(){super(...arguments),this._scandir=e.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{const n=this._scandir(e,this._settings.fsScandirSettings);for(const e of n)this._handleEntry(e,t)}catch(e){this._handleError(e)}}_handleError(e){if(t.isFatalError(this._settings,e))throw e}_handleEntry(e,n){const r=e.path;void 0!==n&&(e.path=t.joinPathSegments(n,e.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,void 0===n?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}return sync$2.default=r,sync$2}function requireSync$2(){if(hasRequiredSync$2)return sync$3;hasRequiredSync$2=1,Object.defineProperty(sync$3,"__esModule",{value:!0});const e=requireSync$3();return sync$3.default=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new e.default(this._root,this._settings)}read(){return this._reader.read()}},sync$3}var settings$1={},hasRequiredSettings$1,hasRequiredOut$1;function requireSettings$1(){if(hasRequiredSettings$1)return settings$1;hasRequiredSettings$1=1,Object.defineProperty(settings$1,"__esModule",{value:!0});const e=require$$0$8,t=requireOut$2();return settings$1.default=class{constructor(n={}){this._options=n,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},settings$1}function requireOut$1(){if(hasRequiredOut$1)return out$3;hasRequiredOut$1=1,Object.defineProperty(out$3,"__esModule",{value:!0}),out$3.Settings=out$3.walkStream=out$3.walkSync=out$3.walk=void 0;const e=requireAsync$3(),t=requireStream$2(),n=requireSync$2(),r=requireSettings$1();function i(e={}){return e instanceof r.default?e:new r.default(e)}return out$3.Settings=r.default,out$3.walk=function(t,n,r){"function"!=typeof n?new e.default(t,i(n)).read(r):new e.default(t,i()).read(n)},out$3.walkSync=function(e,t){const r=i(t);return new n.default(e,r).read()},out$3.walkStream=function(e,n){const r=i(n);return new t.default(e,r).read()},out$3}var reader={},hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,Object.defineProperty(reader,"__esModule",{value:!0});const e=require$$0$8,t=requireOut$3(),n=requireUtils$9();return reader.default=class{constructor(e){this._settings=e,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return e.resolve(this._settings.cwd,t)}_makeEntry(e,t){const r={name:t,path:t,dirent:n.fs.createDirentFromStats(t,e)};return this._settings.stats&&(r.stats=e),r}_isFatalError(e){return!n.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}},reader}var stream$1={},hasRequiredStream$1,hasRequiredAsync$2;function requireStream$1(){if(hasRequiredStream$1)return stream$1;hasRequiredStream$1=1,Object.defineProperty(stream$1,"__esModule",{value:!0});const e=require$$0$b,t=requireOut$3(),n=requireOut$1(),r=requireReader();class i extends r.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=t.stat}dynamic(e,t){return this._walkStream(e,t)}static(t,n){const r=t.map(this._getFullEntryPath,this),i=new e.PassThrough({objectMode:!0});i._write=(e,o,s)=>this._getEntry(r[e],t[e],n).then((t=>{null!==t&&n.entryFilter(t)&&i.push(t),e===r.length-1&&i.end(),s()})).catch(s);for(let e=0;ethis._makeEntry(e,t))).catch((e=>{if(n.errorFilter(e))return null;throw e}))}_getStat(e){return new Promise(((t,n)=>{this._stat(e,this._fsStatSettings,((e,r)=>null===e?t(r):n(e)))}))}}return stream$1.default=i,stream$1}function requireAsync$2(){if(hasRequiredAsync$2)return async$5;hasRequiredAsync$2=1,Object.defineProperty(async$5,"__esModule",{value:!0});const e=requireOut$1(),t=requireReader(),n=requireStream$1();class r extends t.default{constructor(){super(...arguments),this._walkAsync=e.walk,this._readerStream=new n.default(this._settings)}dynamic(e,t){return new Promise(((n,r)=>{this._walkAsync(e,t,((e,t)=>{null===e?n(t):r(e)}))}))}async static(e,t){const n=[],r=this._readerStream.static(e,t);return new Promise(((e,t)=>{r.once("error",t),r.on("data",(e=>n.push(e))),r.once("end",(()=>e(n)))}))}}return async$5.default=r,async$5}var provider={},deep={},partial={},matcher={},hasRequiredMatcher,hasRequiredPartial,hasRequiredDeep;function requireMatcher(){if(hasRequiredMatcher)return matcher;hasRequiredMatcher=1,Object.defineProperty(matcher,"__esModule",{value:!0});const e=requireUtils$9();return matcher.default=class{constructor(e,t,n){this._patterns=e,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(const e of this._patterns){const t=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(t);this._storage.push({complete:n.length<=1,pattern:e,segments:t,sections:n})}}_getPatternSegments(t){return e.pattern.getPatternParts(t,this._micromatchOptions).map((t=>e.pattern.isDynamicPattern(t,this._settings)?{dynamic:!0,pattern:t,patternRe:e.pattern.makeRe(t,this._micromatchOptions)}:{dynamic:!1,pattern:t}))}_splitSegmentsIntoSections(t){return e.array.splitWhen(t,(t=>t.dynamic&&e.pattern.hasGlobStar(t.pattern)))}},matcher}function requirePartial(){if(hasRequiredPartial)return partial;hasRequiredPartial=1,Object.defineProperty(partial,"__esModule",{value:!0});const e=requireMatcher();class t extends e.default{match(e){const t=e.split("/"),n=t.length,r=this._storage.filter((e=>!e.complete||e.segments.length>n));for(const e of r){const r=e.sections[0];if(!e.complete&&n>r.length)return!0;const i=t.every(((t,n)=>{const r=e.segments[n];return!(!r.dynamic||!r.patternRe.test(t))||!r.dynamic&&r.pattern===t}));if(i)return!0}return!1}}return partial.default=t,partial}function requireDeep(){if(hasRequiredDeep)return deep;hasRequiredDeep=1,Object.defineProperty(deep,"__esModule",{value:!0});const e=requireUtils$9(),t=requirePartial();return deep.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,n){const r=this._getMatcher(t),i=this._getNegativePatternsRe(n);return t=>this._filter(e,t,r,i)}_getMatcher(e){return new t.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){const n=t.filter(e.pattern.isAffectDepthOfReadingPattern);return e.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(t,n,r,i){if(this._isSkippedByDeep(t,n.path))return!1;if(this._isSkippedSymbolicLink(n))return!1;const o=e.path.removeLeadingDotSegment(n.path);return!this._isSkippedByPositivePatterns(o,r)&&this._isSkippedByNegativePatterns(o,i)}_isSkippedByDeep(e,t){return this._settings.deep!==1/0&&this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const n=t.split("/").length;if(""===e)return n;return n-e.split("/").length}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(t,n){return!e.pattern.matchAny(t,n)}},deep}var entry$1={},hasRequiredEntry$1;function requireEntry$1(){if(hasRequiredEntry$1)return entry$1;hasRequiredEntry$1=1,Object.defineProperty(entry$1,"__esModule",{value:!0});const e=requireUtils$9();return entry$1.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(t,n){const r=e.pattern.convertPatternsToRe(t,this._micromatchOptions),i=e.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return e=>this._filter(e,r,i)}_filter(t,n,r){const i=e.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(i))return!1;if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;if(this._isSkippedByAbsoluteNegativePatterns(i,r))return!1;const o=t.dirent.isDirectory(),s=this._isMatchToPatterns(i,n,o)&&!this._isMatchToPatterns(i,r,o);return this._settings.unique&&s&&this._createIndexRecord(i),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,n){if(!this._settings.absolute)return!1;const r=e.path.makeAbsolute(this._settings.cwd,t);return e.pattern.matchAny(r,n)}_isMatchToPatterns(t,n,r){const i=e.pattern.matchAny(t,n);return!i&&r?e.pattern.matchAny(t+"/",n):i}},entry$1}var error$1={},hasRequiredError;function requireError(){if(hasRequiredError)return error$1;hasRequiredError=1,Object.defineProperty(error$1,"__esModule",{value:!0});const e=requireUtils$9();return error$1.default=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(t){return e.errno.isEnoentCodeError(t)||this._settings.suppressErrors}},error$1}var entry={},hasRequiredEntry,hasRequiredProvider,hasRequiredAsync$1;function requireEntry(){if(hasRequiredEntry)return entry;hasRequiredEntry=1,Object.defineProperty(entry,"__esModule",{value:!0});const e=requireUtils$9();return entry.default=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(t){let n=t.path;return this._settings.absolute&&(n=e.path.makeAbsolute(this._settings.cwd,n),n=e.path.unixify(n)),this._settings.markDirectories&&t.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:n}):n}},entry}function requireProvider(){if(hasRequiredProvider)return provider;hasRequiredProvider=1,Object.defineProperty(provider,"__esModule",{value:!0});const e=require$$0$8,t=requireDeep(),n=requireEntry$1(),r=requireError(),i=requireEntry();return provider.default=class{constructor(e){this._settings=e,this.errorFilter=new r.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new i.default(this._settings)}_getRootDirectory(t){return e.resolve(this._settings.cwd,t.base)}_getReaderOptions(e){const t="."===e.base?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}},provider}function requireAsync$1(){if(hasRequiredAsync$1)return async$6;hasRequiredAsync$1=1,Object.defineProperty(async$6,"__esModule",{value:!0});const e=requireAsync$2(),t=requireProvider();class n extends t.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}async read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(t,e,n)).map((e=>n.transform(e)))}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}return async$6.default=n,async$6}var stream={},hasRequiredStream;function requireStream(){if(hasRequiredStream)return stream;hasRequiredStream=1,Object.defineProperty(stream,"__esModule",{value:!0});const e=require$$0$b,t=requireStream$1(),n=requireProvider();class r extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(t){const n=this._getRootDirectory(t),r=this._getReaderOptions(t),i=this.api(n,t,r),o=new e.Readable({objectMode:!0,read:()=>{}});return i.once("error",(e=>o.emit("error",e))).on("data",(e=>o.emit("data",r.transform(e)))).once("end",(()=>o.emit("end"))),o.once("close",(()=>i.destroy())),o}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}return stream.default=r,stream}var sync$1={},sync={},hasRequiredSync$1,hasRequiredSync;function requireSync$1(){if(hasRequiredSync$1)return sync;hasRequiredSync$1=1,Object.defineProperty(sync,"__esModule",{value:!0});const e=requireOut$3(),t=requireOut$1(),n=requireReader();class r extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=e.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const n=[];for(const r of e){const e=this._getFullEntryPath(r),i=this._getEntry(e,r,t);null!==i&&t.entryFilter(i)&&n.push(i)}return n}_getEntry(e,t,n){try{const n=this._getStat(e);return this._makeEntry(n,t)}catch(e){if(n.errorFilter(e))return null;throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}return sync.default=r,sync}function requireSync(){if(hasRequiredSync)return sync$1;hasRequiredSync=1,Object.defineProperty(sync$1,"__esModule",{value:!0});const e=requireSync$1(),t=requireProvider();class n extends t.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(t,e,n).map(n.transform)}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}return sync$1.default=n,sync$1}var settings={},hasRequiredSettings,out,hasRequiredOut;function requireSettings(){return hasRequiredSettings||(hasRequiredSettings=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const t=require$$0$7,n=require$$0$9,r=Math.max(n.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};e.default=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,r),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,t){return void 0===e?t:e}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),t)}}}(settings)),settings}function requireOut(){if(hasRequiredOut)return out;hasRequiredOut=1;const e=requireTasks(),t=requireAsync$1(),n=requireStream(),r=requireSync(),i=requireSettings(),o=requireUtils$9();async function s(e,n){c(e);const r=a(e,t.default,n),i=await Promise.all(r);return o.array.flatten(i)}function a(t,n,r){const o=[].concat(t),s=new i.default(r),a=e.generate(o,s),c=new n(s);return a.map(c.read,c)}function c(e){if(![].concat(e).every((e=>o.string.isString(e)&&!o.string.isEmpty(e))))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}return function(t){function s(e,t){c(e);const n=a(e,r.default,t);return o.array.flatten(n)}function l(e,t){c(e);const r=a(e,n.default,t);return o.stream.merge(r)}var u,d;t.glob=t,t.globSync=s,t.globStream=l,t.async=t,t.sync=s,t.stream=l,t.generateTasks=function(t,n){c(t);const r=[].concat(t),o=new i.default(n);return e.generate(r,o)},t.isDynamicPattern=function(e,t){c(e);const n=new i.default(t);return o.pattern.isDynamicPattern(e,n)},t.escapePath=function(e){return c(e),o.path.escape(e)},t.convertPathToPattern=function(e){return c(e),o.path.convertPathToPattern(e)},(u=t.posix||(t.posix={})).escapePath=function(e){return c(e),o.path.escapePosixPath(e)},u.convertPathToPattern=function(e){return c(e),o.path.convertPosixPathToPattern(e)},(d=t.win32||(t.win32={})).escapePath=function(e){return c(e),o.path.escapeWindowsPath(e)},d.convertPathToPattern=function(e){return c(e),o.path.convertWindowsPathToPattern(e)}}(s||(s={})),out=s}var dirGlob={exports:{}},pathType={},hasRequiredPathType,hasRequiredDirGlob;function requirePathType(){if(hasRequiredPathType)return pathType;hasRequiredPathType=1;const{promisify:e}=require$$0__default,t=require$$0$7;async function n(n,r,i){if("string"!=typeof i)throw new TypeError("Expected a string, got "+typeof i);try{return(await e(t[n])(i))[r]()}catch(e){if("ENOENT"===e.code)return!1;throw e}}function r(e,n,r){if("string"!=typeof r)throw new TypeError("Expected a string, got "+typeof r);try{return t[e](r)[n]()}catch(e){if("ENOENT"===e.code)return!1;throw e}}return pathType.isFile=n.bind(null,"stat","isFile"),pathType.isDirectory=n.bind(null,"stat","isDirectory"),pathType.isSymlink=n.bind(null,"lstat","isSymbolicLink"),pathType.isFileSync=r.bind(null,"statSync","isFile"),pathType.isDirectorySync=r.bind(null,"statSync","isDirectory"),pathType.isSymlinkSync=r.bind(null,"lstatSync","isSymbolicLink"),pathType}function requireDirGlob(){if(hasRequiredDirGlob)return dirGlob.exports;hasRequiredDirGlob=1;const e=require$$0$8,t=requirePathType(),n=e=>e.length>1?`{${e.join(",")}}`:e[0],r=(t,n)=>{const r="!"===t[0]?t.slice(1):t;return e.isAbsolute(r)?r:e.join(n,r)},i=(t,r)=>{if(r.files&&!Array.isArray(r.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof r.files}\``);if(r.extensions&&!Array.isArray(r.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof r.extensions}\``);return r.files&&r.extensions?r.files.map((i=>e.posix.join(t,((t,r)=>e.extname(t)?`**/${t}`:`**/${t}.${n(r)}`)(i,r.extensions)))):r.files?r.files.map((n=>e.posix.join(t,`**/${n}`))):r.extensions?[e.posix.join(t,`**/*.${n(r.extensions)}`)]:[e.posix.join(t,"**")]};return dirGlob.exports=async(e,n)=>{if("string"!=typeof(n={cwd:process.cwd(),...n}).cwd)throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof n.cwd}\``);const o=await Promise.all([].concat(e).map((async e=>await t.isDirectory(r(e,n.cwd))?i(e,n):e)));return[].concat.apply([],o)},dirGlob.exports.sync=(e,n)=>{if("string"!=typeof(n={cwd:process.cwd(),...n}).cwd)throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof n.cwd}\``);const o=[].concat(e).map((e=>t.isDirectorySync(r(e,n.cwd))?i(e,n):e));return[].concat.apply([],o)},dirGlob.exports}var gitignore={exports:{}},ignore$2,hasRequiredIgnore$1,slash,hasRequiredSlash,hasRequiredGitignore,streamUtils,hasRequiredStreamUtils,hasRequiredGlobby;function requireIgnore$1(){if(hasRequiredIgnore$1)return ignore$2;function e(e){return Array.isArray(e)?e:[e]}hasRequiredIgnore$1=1;const t=/^\s+$/,n=/(?:[^\\]|^)\\$/,r=/^\\!/,i=/^\\#/,o=/\r?\n/g,s=/^\.*\/|^\.+$/;let a="node-ignore";"undefined"!=typeof Symbol&&(a=Symbol.for("node-ignore"));const c=a,l=/([0-z])-([0-z])/g,u=()=>!1,d=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+" "}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6t+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>"\\"===t?`\\[${n}${(e=>{const{length:t}=e;return e.slice(0,t-t%2)})(r)}${i}`:"]"===i&&r.length%2==0?`[${(e=>e.replace(l,((e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:"")))(n)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],p=Object.create(null),f=e=>"string"==typeof e;class _{constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}}const m=(e,t)=>{const n=e;let o=!1;0===e.indexOf("!")&&(o=!0,e=e.substr(1));const s=((e,t)=>{let n=p[e];return n||(n=d.reduce(((t,[n,r])=>t.replace(n,r.bind(e))),e),p[e]=n),t?new RegExp(n,"i"):new RegExp(n)})(e=e.replace(r,"!").replace(i,"#"),t);return new _(n,e,o,s)},h=(e,t)=>{throw new t(e)},g=(e,t,n)=>{if(!f(e))return n(`path must be a string, but got \`${t}\``,TypeError);if(!e)return n("path must not be empty",TypeError);if(g.isNotRelative(e)){return n(`path should be a ${"`path.relative()`d"} string, but got "${t}"`,RangeError)}return!0},A=e=>s.test(e);g.isNotRelative=A,g.convert=e=>e;class y{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){var r,i,o;r=this,i=c,o=!0,Object.defineProperty(r,i,{value:o}),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[c])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&f(e)&&!t.test(e)&&!n.test(e)&&0!==e.indexOf("#"))(e)){const t=m(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(t){return this._added=!1,e(f(t)?(e=>e.split(o))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach((i=>{const{negative:o}=i;if(r===o&&n!==r||o&&!n&&!r&&!t)return;i.regex.test(e)&&(n=!o,r=o)})),{ignored:n,unignored:r}}_test(e,t,n,r){const i=e&&g.convert(e);return g(i,e,this._allowRelativePaths?u:h),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||(r=e.split("/")),r.pop(),!r.length)return t[e]=this._testOne(e,n);const i=this._t(r.join("/")+"/",t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(t){return e(t).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const v=e=>new y(e);if(v.isPathValid=e=>g(e&&g.convert(e),e,u),v.default=v,ignore$2=v,"undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");g.convert=e;const t=/^[a-z]:\//i;g.isNotRelative=e=>t.test(e)||A(e)}return ignore$2}function requireSlash(){return hasRequiredSlash||(hasRequiredSlash=1,slash=e=>{const t=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}),slash}function requireGitignore(){if(hasRequiredGitignore)return gitignore.exports;hasRequiredGitignore=1;const{promisify:e}=require$$0__default,t=require$$0$7,n=require$$0$8,r=requireOut(),i=requireIgnore$1(),o=requireSlash(),s=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],a=e(t.readFile),c=(e,t)=>{const r=o(n.relative(t.cwd,n.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter((e=>!e.startsWith("#"))).map((e=>t=>t.startsWith("!")?"!"+n.posix.join(e,t.slice(1)):n.posix.join(e,t))(r))},l=e=>{const t=i();for(const n of e)t.add(c(n.content,{cwd:n.cwd,fileName:n.filePath}));return t},u=(e,t)=>r=>e.ignores(o(n.relative(t,((e,t)=>{if(e=o(e),n.isAbsolute(t)){if(o(t).startsWith(e))return t;throw new Error(`Path ${t} is not in cwd ${e}`)}return n.join(e,t)})(t,r.path||r)))),d=({ignore:e=[],cwd:t=o(process.cwd())}={})=>({ignore:e,cwd:t});return gitignore.exports=async e=>{e=d(e);const t=await r("**/.gitignore",{ignore:s.concat(e.ignore),cwd:e.cwd}),i=await Promise.all(t.map((t=>(async(e,t)=>{const r=n.join(t,e);return{cwd:t,filePath:r,content:await a(r,"utf8")}})(t,e.cwd)))),o=l(i);return u(o,e.cwd)},gitignore.exports.sync=e=>{e=d(e);const i=r.sync("**/.gitignore",{ignore:s.concat(e.ignore),cwd:e.cwd}).map((r=>((e,r)=>{const i=n.join(r,e);return{cwd:r,filePath:i,content:t.readFileSync(i,"utf8")}})(r,e.cwd))),o=l(i);return u(o,e.cwd)},gitignore.exports}function requireStreamUtils(){if(hasRequiredStreamUtils)return streamUtils;hasRequiredStreamUtils=1;const{Transform:e}=require$$0$b;class t extends e{constructor(){super({objectMode:!0})}}return streamUtils={FilterStream:class extends t{constructor(e){super(),this._filter=e}_transform(e,t,n){this._filter(e)&&this.push(e),n()}},UniqueStream:class extends t{constructor(){super(),this._pushed=new Set}_transform(e,t,n){this._pushed.has(e)||(this.push(e),this._pushed.add(e)),n()}}}}function requireGlobby(){if(hasRequiredGlobby)return globby.exports;hasRequiredGlobby=1;const e=require$$0$7,t=requireArrayUnion(),n=requireMerge2(),r=requireOut(),i=requireDirGlob(),o=requireGitignore(),{FilterStream:s,UniqueStream:a}=requireStreamUtils(),c=()=>!1,l=e=>"!"===e[0],u=(n,r)=>{(e=>{if(!e.every((e=>"string"==typeof e)))throw new TypeError("Patterns must be a string or an array of strings")})(n=t([].concat(n))),((t={})=>{if(!t.cwd)return;let n;try{n=e.statSync(t.cwd)}catch{return}if(!n.isDirectory())throw new Error("The `cwd` option must be a path to a directory")})(r);const i=[];r={ignore:[],expandDirectories:!0,...r};for(const[e,t]of n.entries()){if(l(t))continue;const o=n.slice(e).filter((e=>l(e))).map((e=>e.slice(1))),s={...r,ignore:r.ignore.concat(o)};i.push({pattern:t,options:s})}return i},d=(e,t)=>e.options.expandDirectories?((e,t)=>{let n={};return e.options.cwd&&(n.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?n={...n,files:e.options.expandDirectories}:"object"==typeof e.options.expandDirectories&&(n={...n,...e.options.expandDirectories}),t(e.pattern,n)})(e,t):[e.pattern],p=e=>e&&e.gitignore?o.sync({cwd:e.cwd,ignore:e.ignore}):c,f=e=>t=>{const{options:n}=e;return n.ignore&&Array.isArray(n.ignore)&&n.expandDirectories&&(n.ignore=i.sync(n.ignore)),{pattern:t,options:n}};return globby.exports=async(n,s)=>{const a=u(n,s),[l,p]=await Promise.all([(async()=>s&&s.gitignore?o({cwd:s.cwd,ignore:s.ignore}):c)(),(async()=>{const e=await Promise.all(a.map((async e=>{const t=await d(e,i);return Promise.all(t.map(f(e)))})));return t(...e)})()]),_=await Promise.all(p.map((e=>r(e.pattern,e.options))));return t(..._).filter((t=>{return!l((n=t,n.stats instanceof e.Stats?n.path:n));var n}))},globby.exports.sync=(e,n)=>{const o=u(e,n),s=[];for(const e of o){const t=d(e,i.sync).map(f(e));s.push(...t)}const a=p(n);let c=[];for(const e of s)c=t(c,r.sync(e.pattern,e.options));return c.filter((e=>!a(e)))},globby.exports.stream=(e,t)=>{const o=u(e,t),c=[];for(const e of o){const t=d(e,i.sync).map(f(e));c.push(...t)}const l=p(t),_=new s((e=>!l(e))),m=new a;return n(c.map((e=>r.stream(e.pattern,e.options)))).pipe(_).pipe(m)},globby.exports.generateGlobTasks=u,globby.exports.hasMagic=(e,t)=>[].concat(e).some((e=>r.isDynamicPattern(e,t))),globby.exports.gitignore=o,globby.exports}var cacheCommand={},aggregateFlags={},flags={},hasRequiredFlags,hasRequiredAggregateFlags,hasRequiredCacheCommand;function requireFlags(){if(hasRequiredFlags)return flags;hasRequiredFlags=1,Object.defineProperty(flags,"__esModule",{value:!0}),flags.help=flags.version=flags.string=flags.url=flags.file=flags.directory=flags.integer=void 0,flags.custom=i,flags.boolean=o,flags.option=function(e){return(t={})=>({parse:async(e,t,n)=>e,...e,...t,input:[],multiple:Boolean(void 0===t.multiple?e.multiple:t.multiple),type:"option"})};const e=require$$0$6,t=requireErrors$4(),n=requireHelp$1(),r=requireFs$4();function i(e){return(t={})=>({parse:async(e,t,n)=>e,...e,...t,input:[],multiple:Boolean(void 0===t.multiple?e?.multiple??!1:t.multiple),type:"option"})}function o(e={}){return{parse:async(e,t)=>e,...e,allowNo:Boolean(e.allowNo),type:"boolean"}}flags.integer=i({async parse(e,n,r){if(!/^-?\d+$/.test(e))throw new t.CLIError(`Expected an integer but received: ${e}`);const i=Number.parseInt(e,10);if(void 0!==r.min&&ir.max)throw new t.CLIError(`Expected an integer less than or equal to ${r.max} but received: ${e}`);return i}}),flags.directory=i({parse:async(e,t,n)=>n.exists?(0,r.dirExists)(e):e}),flags.file=i({parse:async(e,t,n)=>n.exists?(0,r.fileExists)(e):e}),flags.url=i({async parse(n){try{return new e.URL(n)}catch{throw new t.CLIError(`Expected a valid url but received: ${n}`)}}}),flags.string=i();flags.version=(e={})=>o({description:"Show CLI version.",...e,async parse(e,t){t.log(t.config.userAgent),t.exit(0)}});return flags.help=(e={})=>o({description:"Show CLI help.",...e,async parse(e,t){const r=await(0,n.loadHelpClass)(t.config);await new r(t.config,t.config.pjson.oclif.helpOptions??t.config.pjson.helpOptions).showHelp(t.id?[t.id,...t.argv]:t.argv),t.exit(0)}}),flags}function requireAggregateFlags(){if(hasRequiredAggregateFlags)return aggregateFlags;hasRequiredAggregateFlags=1,Object.defineProperty(aggregateFlags,"__esModule",{value:!0}),aggregateFlags.aggregateFlags=function(t,n,r){const i={...n,...t};return r?{json:e,...i}:i};const e=(0,requireFlags().boolean)({description:"Format output as json.",helpGroup:"GLOBAL"});return aggregateFlags}function requireCacheCommand(){if(hasRequiredCacheCommand)return cacheCommand;hasRequiredCacheCommand=1,Object.defineProperty(cacheCommand,"__esModule",{value:!0}),cacheCommand.cacheCommand=async function(t,r,a=!1){const c=i(t,t),l=c.flags??c._flags,u=c.baseFlags??c._baseFlags,[d,p]=await Promise.all([await o((0,e.aggregateFlags)(l,u,c.enableJsonFlag),a),await s((0,n.ensureArgObject)(c.args),a)]),f={aliases:c.aliases??[],args:p,deprecateAliases:c.deprecateAliases,deprecationOptions:c.deprecationOptions,description:c.description,examples:c.examples??c.example,flags:d,hasDynamicHelp:Object.values(d).some((e=>e.hasDynamicHelp)),hidden:c.hidden,hiddenAliases:c.hiddenAliases??[],id:c.id,pluginAlias:r&&r.alias,pluginName:r&&r.name,pluginType:r&&r.type,state:c.state,strict:c.strict,summary:c.summary,usage:c.usage},_=new Set([...Object.keys(f),"plugin","_flags","_enableJsonFlag","_globalFlags","_baseFlags","baseFlags","_--","_base"]),m=Object.keys(c).filter((e=>!_.has(e))),h=Object.fromEntries(m.map((e=>[e,c[e]])));return{...f,...h}};const e=requireAggregateFlags(),t=requireCacheDefaultValue(),n=requireEnsureArgObject(),r=requireUtil$f();function i(e,t){const n=Object.getPrototypeOf(t),o=(0,r.pickBy)(n,(e=>void 0!==e));return Object.keys(n).length>0?i({...o,...e},n):e}async function o(e,n){const r=Object.entries(e).map((async([e,r])=>[e,{aliases:r.aliases,char:r.char,charAliases:r.charAliases,dependsOn:r.dependsOn,deprecateAliases:r.deprecateAliases,deprecated:r.deprecated,description:r.description,env:r.env,exclusive:r.exclusive,helpGroup:r.helpGroup,helpLabel:r.helpLabel,hidden:r.hidden,name:e,noCacheDefault:r.noCacheDefault,relationships:r.relationships,required:r.required,summary:r.summary,..."boolean"===r.type?{allowNo:r.allowNo,type:r.type}:{default:await(0,t.cacheDefaultValue)(r,n),delimiter:r.delimiter,hasDynamicHelp:"function"==typeof r.defaultHelp,helpValue:r.helpValue,multiple:r.multiple,options:r.options,type:r.type}}]));return Object.fromEntries(await Promise.all(r))}async function s(e,n){const r=Object.entries(e).map((async([e,r])=>[e,{default:await(0,t.cacheDefaultValue)(r,n),description:r.description,hidden:r.hidden,name:e,noCacheDefault:r.noCacheDefault,options:r.options,required:r.required}]));return Object.fromEntries(await Promise.all(r))}return cacheCommand}var findRoot={},hasRequiredFindRoot;function requireFindRoot(){if(hasRequiredFindRoot)return findRoot;hasRequiredFindRoot=1,Object.defineProperty(findRoot,"__esModule",{value:!0}),findRoot.debug=r,findRoot.findRoot=async function(t,l){if(t){let u;r(t)(`Finding root using ${l}`);try{u=require.resolve(t,{paths:[l]}),r(t)("Found starting point with require.resolve")}catch{r(t)("require.resolve could not find plugin starting point")}if(u){const n=await o((0,e.dirname)(u),t);if(n)return r(t)(`Found root at ${n}`),n}const d=process.versions.pnp?function(e,t){if(function(e){if(s)return s;try{return s=commonjsRequire(require.resolve("pnpapi",{paths:[e]})),s}catch{}}(t),!s)return;r(e)("Finding root for using pnp method");const n=new Set,i=(t,r)=>{const o=a(t);if(n.has(o))return;const l=s.getPackageInformation(t);if(t.name===e)return l.packageLocation;n.add(o);for(const[e,t]of l.packageDependencies){if(null===t)continue;if(null!==r&&c(l,r,e))continue;const n=s.getLocator(e,t),o=i(n,l);if(o)return o}n.delete(o)};for(const e of s.getDependencyTreeRoots()){const t=i(e);if(t)return t}}(t,l):await async function(t,o){r(t??"root-plugin")("Finding root using legacy method");for(const r of i(o)){let i;if(t){if(i=(0,e.join)(r,"node_modules",t,"package.json"),await(0,n.safeReadJson)(i))return(0,e.dirname)(i);const o=await(0,n.safeReadJson)((0,e.join)(r,"package.json"));if(o?.name===t)return r}else if(i=(0,e.join)(r,"package.json"),await(0,n.safeReadJson)(i))return(0,e.dirname)(i)}}(t,l);return r(t)(d?`Found root at ${d}`:"No root found!"),d}r("root-plugin")(`Finding root plugin using ${l}`);const u=await o(l);return r("root-plugin")(u?`Found root at ${u}`:"No root found!"),u};const e=path$1,t=requireLogger(),n=requireFs$4();function r(...e){return(n,...r)=>(0,t.getLogger)(["find-root",...e].join(":")).debug(n,...r)}function*i(t){for(;(0,e.dirname)(t)!==t;)yield t,t=(0,e.dirname)(t);yield t}async function o(t,o){if(r(o??"root-plugin")(`Finding root starting at ${t}`),o)for(const n of i(t))if(n.endsWith((0,e.basename)(o)))return r(o)("Found root based on plugin name!"),n;for(const s of i(t))if("bin"!==(0,e.basename)((0,e.dirname)(s))||!["dev","dev.cmd","dev.js","run","run.cmd","run.js"].includes((0,e.basename)(s)))try{const t=(0,e.join)(s,"package.json");if(r(o??"root-plugin")(`Checking ${t}`),await(0,n.safeReadJson)(t))return r(o??"root-plugin")("Found root by traversing up from starting point!"),(0,e.dirname)(t)}catch{}}let s;const a=e=>JSON.stringify(e),c=(e,t,n)=>a(e?.packageDependencies.get(n))===a(t?.packageDependencies.get(n));return findRoot}var readPjson={},src$7={},hasRequiredSrc$7,hasRequiredReadPjson,hasRequiredPlugin,hasRequiredPluginLoader;function requireSrc$7(){if(hasRequiredSrc$7)return src$7;hasRequiredSrc$7=1;const e=require$$0$8,t=require$$0$7,n=require$$0$9,r=t.promises.readFile;function i(e,t){return["package.json",`.${e}rc.json`,`.${e}rc.js`,`.${e}rc.cjs`,...t?[]:[`.${e}rc.mjs`],`.config/${e}rc`,`.config/${e}rc.json`,`.config/${e}rc.js`,`.config/${e}rc.cjs`,...t?[]:[`.config/${e}rc.mjs`],`${e}.config.js`,`${e}.config.cjs`,...t?[]:[`${e}.config.mjs`]]}function o(t){return e.dirname(t)||e.sep}const s=(e,t)=>JSON.parse(t),a="function"==typeof __webpack_require__?__non_webpack_require__:commonjsRequire,c=Object.freeze({".js":a,".json":a,".cjs":a,noExt:s});src$7.defaultLoadersSync=c;const l=async e=>{try{return(await import(e)).default}catch(t){try{return a(e)}catch(e){if("ERR_REQUIRE_ESM"===e.code||e instanceof SyntaxError&&e.toString().includes("Cannot use import statement outside a module"))throw t;throw e}}},u=Object.freeze({".js":l,".mjs":l,".cjs":l,".json":s,noExt:s});function d(t,r,o){const s={stopDir:n.homedir(),searchPlaces:i(t,o),ignoreEmptySearchPlaces:!0,cache:!0,transform:e=>e,packageProp:[t],...r,loaders:{...o?c:u,...r.loaders}};return s.searchPlaces.forEach((t=>{const n=e.extname(t)||"noExt",r=s.loaders[n];if(!r)throw new Error(`Missing loader for extension "${t}"`);if("function"!=typeof r)throw new Error(`Loader for extension "${t}" is not a function: Received ${typeof r}.`)})),s}function p(e,t){return"string"==typeof e&&e in t?t[e]:(Array.isArray(e)?e:e.split(".")).reduce(((e,t)=>void 0===e?e:e[t]),t)||null}function f(e){if(!e)throw new Error("load must pass a non-empty string")}function _(e,t){if(!e)throw new Error(`No loader specified for extension "${t}"`);if("function"!=typeof e)throw new Error("loader is not a function")}src$7.defaultLoaders=u;const m=e=>(t,n,r)=>(e&&t.set(n,r),r);return src$7.lilconfig=function(n,i){const{ignoreEmptySearchPlaces:s,loaders:a,packageProp:c,searchPlaces:l,stopDir:u,transform:h,cache:g}=d(n,i??{},!1),A=new Map,y=new Map,v=m(g);return{async search(n=process.cwd()){const i={config:null,filepath:""},d=new Set;let f=n;e:for(;;){if(g){const e=A.get(f);if(void 0!==e){for(const t of d)A.set(t,e);return e}d.add(f)}for(const n of l){const o=e.join(f,n);try{await t.promises.access(o)}catch{continue}const l=String(await r(o)),u=e.extname(n)||"noExt",d=a[u];if("package.json"===n){const e=await d(o,l),t=p(c,e);if(null!=t){i.config=t,i.filepath=o;break e}continue}const m=""===l.trim();if(!m||!s){m?(i.isEmpty=!0,i.config=void 0):(_(d,u),i.config=await d(o,l)),i.filepath=o;break e}}if(f===u||f===o(f))break e;f=o(f)}const m=""===i.filepath&&null===i.config?h(null):h(i);if(g)for(const e of d)A.set(e,m);return m},async load(t){f(t);const n=e.resolve(process.cwd(),t);if(g&&y.has(n))return y.get(n);const{base:i,ext:o}=e.parse(n),l=o||"noExt",u=a[l];_(u,l);const d=String(await r(n));if("package.json"===i){const e=await u(n,d);return v(y,n,h({config:p(c,e),filepath:n}))}const m={config:null,filepath:n},A=""===d.trim();return A&&s?v(y,n,h({config:void 0,filepath:n,isEmpty:!0})):(m.config=A?void 0:await u(n,d),v(y,n,h(A?{...m,isEmpty:A,config:void 0}:m)))},clearLoadCache(){g&&y.clear()},clearSearchCache(){g&&A.clear()},clearCaches(){g&&(y.clear(),A.clear())}}},src$7.lilconfigSync=function(n,r){const{ignoreEmptySearchPlaces:i,loaders:s,packageProp:a,searchPlaces:c,stopDir:l,transform:u,cache:h}=d(n,r??{},!0),g=new Map,A=new Map,y=m(h);return{search(n=process.cwd()){const r={config:null,filepath:""},d=new Set;let f=n;e:for(;;){if(h){const e=g.get(f);if(void 0!==e){for(const t of d)g.set(t,e);return e}d.add(f)}for(const n of c){const o=e.join(f,n);try{t.accessSync(o)}catch{continue}const c=e.extname(n)||"noExt",l=s[c],u=String(t.readFileSync(o));if("package.json"===n){const e=l(o,u),t=p(a,e);if(null!=t){r.config=t,r.filepath=o;break e}continue}const d=""===u.trim();if(!d||!i){d?(r.isEmpty=!0,r.config=void 0):(_(l,c),r.config=l(o,u)),r.filepath=o;break e}}if(f===l||f===o(f))break e;f=o(f)}const m=""===r.filepath&&null===r.config?u(null):u(r);if(h)for(const e of d)g.set(e,m);return m},load(n){f(n);const r=e.resolve(process.cwd(),n);if(h&&A.has(r))return A.get(r);const{base:o,ext:c}=e.parse(r),l=c||"noExt",d=s[l];_(d,l);const m=String(t.readFileSync(r));if("package.json"===o){const e=d(r,m);return u({config:p(a,e),filepath:r})}const g={config:null,filepath:r},v=""===m.trim();return v&&i?y(A,r,u({filepath:r,config:void 0,isEmpty:!0})):(g.config=v?void 0:d(r,m),y(A,r,u(v?{...g,isEmpty:v,config:void 0}:g)))},clearLoadCache(){h&&A.clear()},clearSearchCache(){h&&g.clear()},clearCaches(){h&&(A.clear(),g.clear())}}},src$7}function requireReadPjson(){if(hasRequiredReadPjson)return readPjson;hasRequiredReadPjson=1,Object.defineProperty(readPjson,"__esModule",{value:!0}),readPjson.readPjson=async function(n){const o=(0,t.join)(n,"package.json");if(process.env.OCLIF_DISABLE_RC)return i("OCLIF_DISABLE_RC is set, skipping rc search"),(0,r.readJson)(o);const s=await(0,r.readJson)(o);if(s.oclif)return i(`found oclif config in ${o}`),s;i(`searching for oclif config in ${n}`);const a=(0,e.lilconfig)("oclif",{searchPlaces:[".oclifrc",".oclifrc.json",".oclifrc.js",".oclifrc.mjs",".oclifrc.cjs","oclif.config.js","oclif.config.mjs","oclif.config.cjs"],stopDir:n}),c=await a.search(n);if(!c?.config)return i(`no oclif config found in ${n}`),s;return i(`found oclif config for ${n}: %O`,c),{...s,oclif:c?.config??{}}};const e=requireSrc$7(),t=path$1,n=requireLogger(),r=requireFs$4(),i=(0,n.makeDebug)("read-pjson");return readPjson}function requirePlugin(){if(hasRequiredPlugin)return plugin$1;hasRequiredPlugin=1;var e=plugin$1&&plugin$1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(plugin$1,"__esModule",{value:!0}),plugin$1.Plugin=void 0;const t=e(requireGlobby()),n=path$1,r=require$$1$2,i=e(requireCache$2()),o=requireErrors$4(),s=requireModuleLoader(),a=requirePerformance(),c=requireSymbols$5(),l=requireCacheCommand(),u=requireFindRoot(),d=requireFs$4(),p=requireReadPjson(),f=requireUtil$f(),_=requireTsPath(),m=requireUtil$d(),h=i.default.getInstance().get("@oclif/core");function g(e,t){return e?(t=t?`${t}:`:"",Array.isArray(e)?[...e,e.flatMap((e=>g(e.subtopics,`${t}${e.name}`)))]:Object.keys(e).flatMap((n=>(e[n].name=n,[{...e[n],name:`${t}${n}`},...g(e[n].subtopics,`${t}${e[n].name}`)])))):[]}const A=e=>"function"==typeof e.run?e:e.default&&e.default.run?e.default:Object.values(e).find((e=>"function"==typeof e.run)),y=e=>{if(e&&"function"==typeof e.run)return e},v=["**/*.+(js|cjs|mjs|ts|tsx|mts|cts)","!**/*.+(d.ts|test.ts|test.js|spec.ts|spec.js|d.mts|d.cts)?(x)"];return plugin$1.Plugin=class{options;alias;alreadyLoaded=!1;children=[];commandIDs=[];commands;commandsDir;hasManifest=!1;hooks;isRoot=!1;manifest;moduleType;name;parent;pjson;root;tag;type;valid=!1;version;_base=`${h.name}@${h.version}`;_debug=(0,m.makeDebug)();commandCache;commandDiscoveryOpts;flexibleTaxonomy;constructor(e){this.options=e}get topics(){return g(this.pjson.oclif.topics||{})}async findCommand(e,t={}){const r=a.Performance.mark(a.OCLIF_MARKER_OWNER,`plugin.findCommand#${this.name}.${e}`,{id:e,plugin:this.name}),i=await(async()=>{if("pattern"===this.commandDiscoveryOpts?.strategy){const r=await this.getCommandsDir();if(!r)return;let i,o,a;try{({filePath:a,isESM:o,module:i}=((e,t)=>Boolean(e?.commands[t]&&"isESM"in e.commands[t]&&"relativePath"in e.commands[t]))(this.manifest,e)?await(0,s.loadWithDataFromManifest)(this.manifest.commands[e],this.root):await(0,s.loadWithData)(this,(0,n.join)(r??this.pjson.oclif.commands,...e.split(":")))),this._debug(o?"(import)":"(require)",a)}catch(e){if(!t.must&&"MODULE_NOT_FOUND"===e.code)return;throw e}const c=A(i);if(!c)return;return c.id=e,c.plugin=this,c.isESM=o,c.relativePath=(0,n.relative)(this.root,a||"").split(n.sep),c}if("single"===this.commandDiscoveryOpts?.strategy||"explicit"===this.commandDiscoveryOpts?.strategy){const t=await this.loadCommandsFromTarget(),n=y(t?.[e]);if(!n)return;return n.id=e,n.plugin=this,n}})();return!i&&t.must&&(0,o.error)(`command ${e} not found`),r?.stop(),i}async load(){this.type=this.options.type??"core",this.tag=this.options.tag,this.isRoot=this.options.isRoot??!1,this.options.parent&&(this.parent=this.options.parent);const e=this.options.pjson&&this.options.isRoot?this.options.root:"link"!==this.type||this.parent?await(0,u.findRoot)(this.options.name,this.options.root):this.options.root;if(!e)throw new o.CLIError(`could not find package.json with ${(0,r.inspect)(this.options)}`);if(this.root=e,this._debug(`loading ${this.type} plugin from ${e}`),this.pjson=this.options.pjson??await(0,p.readPjson)(e),this.flexibleTaxonomy=this.options?.flexibleTaxonomy||this.pjson.oclif?.flexibleTaxonomy||!1,this.moduleType="module"===this.pjson.type?"module":"commonjs",this.name=this.pjson.name,this.alias=this.options.name??this.pjson.name,!this.name)throw new o.CLIError(`no name in package.json (${e})`);this._debug=(0,m.makeDebug)(this.name),this.version=this.pjson.version,this.pjson.oclif?this.valid=!0:this.pjson.oclif=this.pjson["cli-engine"]||{},this.hooks=Object.fromEntries(Object.entries(this.pjson.oclif.hooks??{}).map((([e,t])=>[e,(0,f.castArray)(t).map((e=>function(e){return"string"==typeof e?{identifier:"default",target:e}:e.identifier?e:{...e,identifier:"default"}}(e)))]))),this.commandDiscoveryOpts=function(e){if(e){if("string"==typeof e)return{globPatterns:v,strategy:"pattern",target:e};if(!e.target)throw new o.CLIError("`oclif.commandDiscovery.target` is required.");if(!e.strategy)throw new o.CLIError("`oclif.commandDiscovery.strategy` is required.");return"explicit"!==e.strategy||e.identifier||(e.identifier="default"),e}}(this.pjson.oclif?.commands),this._debug("command discovery options",this.commandDiscoveryOpts),this.manifest=await this._manifest(),this.commands=Object.entries(this.manifest.commands).map((([e,t])=>({...t,load:async()=>this.findCommand(e,{must:!0}),pluginAlias:this.alias,pluginType:"jit"===t.pluginType?"jit":this.type}))).sort(((e,t)=>e.id.localeCompare(t.id)))}async _manifest(){const e=Boolean(this.options.ignoreManifest),t=Boolean(this.options.errorOnManifestCreate),r=Boolean(this.options.respectNoCacheDefault),i=async(e=!1)=>{try{const t=(0,n.join)(this.root,(e?".":"")+"oclif.manifest.json"),r=await(0,d.readJson)(t);if(process.env.OCLIF_NEXT_VERSION||r.version.split("-")[0]===this.version.split("-")[0])return this._debug("using manifest from",t),this.hasManifest=!0,r;process.emitWarning(`Mismatched version in ${this.name} plugin manifest. Expected: ${this.version} Received: ${r.version}\nThis usually means you have an oclif.manifest.json file that should be deleted in development. This file should be automatically generated when publishing.`)}catch(t){if("ENOENT"===t.code){if(!e)return i(!0)}else this.warn(t,"readManifest")}},o=a.Performance.mark(a.OCLIF_MARKER_OWNER,`plugin.manifest#${this.name}`,{plugin:this.name});if(!e){const e=await i();if(e)return o?.addDetails({commandCount:Object.keys(e.commands).length,fromCache:!0}),o?.stop(),this.commandIDs=Object.keys(e.commands),e}this.commandIDs=await this.getCommandIDs();const s={commands:(await Promise.all(this.commandIDs.map((async e=>{try{const t=await this.findCommand(e,{must:!0}),n=await(0,l.cacheCommand)(t,this,r);if(n.id=e,this.flexibleTaxonomy){const t=(0,m.getCommandIdPermutations)(e),r=n.aliases.flatMap((e=>(0,m.getCommandIdPermutations)(e)));return[e,{...n,aliasPermutations:r,permutations:t}]}return[e,n]}catch(n){const r=`findCommand (${e})`;if(!1!==Boolean(t))throw this.addErrorScope(n,r);this.warn(n,r)}})))).filter((e=>Boolean(e))).reduce(((e,[t,n])=>(e[t]=n,e)),{}),version:this.version};return o?.addDetails({commandCount:Object.keys(s.commands).length,fromCache:!1}),o?.stop(),s}addErrorScope(e,t){return e.name=e.name??(0,r.inspect)(e).trim(),e.detail=(0,f.compact)([e.detail,`module: ${this._base}`,t&&`task: ${t}`,`plugin: ${this.name}`,`root: ${this.root}`,...e.code?[`code: ${e.code}`]:[],...e.message?[`message: ${e.message}`]:[],"See more details with DEBUG=*"]).join("\n"),e}async getCommandIDs(){const e=a.Performance.mark(a.OCLIF_MARKER_OWNER,`plugin.getCommandIDs#${this.name}`,{plugin:this.name});let t;switch(this.commandDiscoveryOpts?.strategy){case"explicit":case"single":t=await this.getCommandIdsFromTarget()??[];break;case"pattern":t=await this.getCommandIdsFromPattern();break;default:t=[]}return this._debug("found commands",t),e?.addDetails({count:t.length}),e?.stop(),t}async getCommandIdsFromPattern(){const e=await this.getCommandsDir();if(!e)return[];this._debug(`loading IDs from ${e}`);return function(e){return e.map((e=>{const t=(0,n.parse)(e),r=[...t.dir.split("/"),"index"!==t.name&&t.name].filter(Boolean).join(":");return""===r?c.SINGLE_COMMAND_CLI_SYMBOL:r}))}(await(0,t.default)(this.commandDiscoveryOpts?.globPatterns??v,{cwd:e}))}async getCommandIdsFromTarget(){if(await this.loadCommandsFromTarget())return Object.entries(await this.loadCommandsFromTarget()??[]).filter((([,e])=>y(e))).map((([e])=>e))}async getCommandsDir(){return this.commandsDir||(this.commandsDir=await(0,_.tsPath)(this.root,this.commandDiscoveryOpts?.target,this)),this.commandsDir}async loadCommandsFromTarget(){if(this.commandCache)return this.commandCache;if("explicit"===this.commandDiscoveryOpts?.strategy&&this.commandDiscoveryOpts.target){const e=await(0,_.tsPath)(this.root,this.commandDiscoveryOpts.target,this),t=await(0,s.load)(this,e);return this.commandCache=t[this.commandDiscoveryOpts?.identifier??"default"]??{},this.commandCache}if("single"===this.commandDiscoveryOpts?.strategy&&this.commandDiscoveryOpts.target){const e=await(0,_.tsPath)(this.root,this.commandDiscoveryOpts?.target??this.root,this),t=await(0,s.load)(this,e);return this.commandCache={[c.SINGLE_COMMAND_CLI_SYMBOL]:A(t)},this.commandCache}}warn(e,t){"string"==typeof e&&(e=new Error(e));const n=this.addErrorScope(e,t);process.emitWarning(n.name,n)}},plugin$1}function requirePluginLoader(){if(hasRequiredPluginLoader)return pluginLoader;hasRequiredPluginLoader=1,Object.defineProperty(pluginLoader,"__esModule",{value:!0});const e=requireCommonjs(),t=path$1,n=requirePerformance(),r=requireFs$4(),i=requireUtil$f(),o=requirePlugin(),s=(0,requireUtil$d().makeDebug)();function a(t,n){return Object.keys(t).filter((t=>n.some((n=>(0,e.minimatch)(t,n)))))}return pluginLoader.default=class{options;errors=[];plugins=new Map;pluginsProvided=!1;constructor(e){this.options=e,e.plugins&&(this.pluginsProvided=!0,this.plugins=Array.isArray(e.plugins)?new Map(e.plugins.map((e=>[e.name,e]))):e.plugins)}async loadChildren(e){return this.pluginsProvided&&!e.force||(await this.loadUserPlugins(e),await this.loadDevPlugins(e),await this.loadCorePlugins(e)),{errors:this.errors,plugins:this.plugins}}async loadRoot({pjson:e}){let t;if(this.pluginsProvided){const e=[...this.plugins.values()];t=e.find((e=>e.root===this.options.root))??e[0]}else{const r=n.Performance.mark(n.OCLIF_MARKER_OWNER,"plugin.load#root");t=new o.Plugin({isRoot:!0,pjson:e,root:this.options.root}),await t.load(),r?.addDetails({commandCount:t.commands.length,hasManifest:t.hasManifest??!1,name:t.name,topicCount:t.topics.length,type:t.type,usesMain:Boolean(t.pjson.main)}),r?.stop()}return this.plugins.set(t.name,t),t}async loadCorePlugins(e){const{plugins:n}=e.rootPlugin.pjson.oclif;if(n){const t=a(e.rootPlugin.pjson.dependencies??{},n);await this.loadPlugins(e.rootPlugin.root,"core",t)}const{core:i,path:o}=e.pluginAdditions??{core:[]};if(i)if(o){const e=a((await(0,r.readJson)((0,t.join)(o,"package.json"))).dependencies??{},i);await this.loadPlugins(o,"core",e)}else{const t=a(e.rootPlugin.pjson.dependencies??{},i);await this.loadPlugins(e.rootPlugin.root,"core",t)}}async loadDevPlugins(e){if(!1!==e.devPlugins){if((0,i.isProd)())return;try{const{devPlugins:n}=e.rootPlugin.pjson.oclif;if(n){const t=a({...e.rootPlugin.pjson.dependencies,...e.rootPlugin.pjson.devDependencies}??{},n);await this.loadPlugins(e.rootPlugin.root,"dev",t)}const{dev:i,path:o}=e.pluginAdditions??{core:[]};if(i)if(o){const e=await(0,r.readJson)((0,t.join)(o,"package.json")),n=a({...e.dependencies,...e.devDependencies}??{},i);await this.loadPlugins(o,"dev",n)}else{const t=a({...e.rootPlugin.pjson.dependencies,...e.rootPlugin.pjson.devDependencies}??{},i);await this.loadPlugins(e.rootPlugin.root,"dev",t)}}catch(e){process.emitWarning(e)}}}async loadPlugins(e,t,r,i){if(!r||0===r.length)return;const c=n.Performance.mark(n.OCLIF_MARKER_OWNER,`config.loadPlugins#${t}`);s("loading plugins",r),await Promise.all((r||[]).map((async r=>{try{const s="string"==typeof r?r:r.name,c={name:s,root:e,type:t};if("string"!=typeof r&&(c.tag=r.tag||c.tag,c.root=r.root||c.root,c.url=r.url),i&&(c.parent=i),this.plugins.has(s))return;const l=n.Performance.mark(n.OCLIF_MARKER_OWNER,`plugin.load#${s}`),u=new o.Plugin(c);if(await u.load(),l?.addDetails({commandCount:u.commands.length,hasManifest:u.hasManifest,name:u.name,topicCount:u.topics.length,type:u.type,usesMain:Boolean(u.pjson.main)}),l?.stop(),this.plugins.set(u.name,u),i&&(u.parent=i,i.children||(i.children=[]),i.children.push(u)),u.pjson.oclif.plugins){const e=a(("dev"===t?{...u.pjson.dependencies,...u.pjson.devDependencies}:u.pjson.dependencies)??{},u.pjson.oclif.plugins);await this.loadPlugins(u.root,t,e,u)}}catch(e){this.errors.push(e)}}))),c?.addDetails({pluginCount:r.length}),c?.stop()}async loadUserPlugins(e){if(!1!==e.userPlugins)try{const n=(0,t.join)(e.dataDir,"package.json");s("reading user plugins pjson %s",n);const i=await(0,r.readJson)(n,!1);i.oclif||(i.oclif={schema:1}),i.oclif.plugins||(i.oclif.plugins=[]),await this.loadPlugins(n,"user",i.oclif.plugins.filter((e=>"user"===e.type))),await this.loadPlugins(n,"link",i.oclif.plugins.filter((e=>"link"===e.type)))}catch(e){"ENOENT"!==e.code&&process.emitWarning(e)}}},pluginLoader}var config$1=config$2.exports,hasRequiredConfig$1,hasRequiredConfig;function requireConfig$1(){return hasRequiredConfig$1||(hasRequiredConfig$1=1,function(e,t){var n,r=config$1&&config$1.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),i=config$1&&config$1.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=config$1&&config$1.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=n(e),s=0;s1||process.on("warning",(e=>{console.error(e.stack),e.detail&&console.error(e.detail)}))}class N extends Map{validPermutations=new Map;add(e,t){this.validPermutations.set(e,t);for(const n of(0,w.collectUsableIds)([e]))this.has(n)?this.set(n,this.get(n).add(t)):this.set(n,new Set([t]))}get(e){return super.get(e)??new Set}getAllValid(){return[...this.validPermutations.keys()]}getValid(e){return this.validPermutations.get(e)}hasValid(e){return this.validPermutations.has(e)}}class B{options;arch;bin;binAliases;binPath;cacheDir;channel;configDir;dataDir;dirname;flexibleTaxonomy;home;isSingleCommandCLI=!1;name;npmRegistry;nsisCustomization;pjson;platform;plugins=new Map;root;shell;theme;topicSeparator=":";updateConfig;userAgent;userPJSON;valid;version;warned=!1;windows;_base=F;_commandIDs;_commands=new Map;_topics=new Map;commandPermutations=new N;pluginLoader;rootPlugin;topicPermutations=new N;constructor(e){this.options=e}static async load(t=e.filename||__dirname){if((0,m.setLogger)(t),"string"==typeof t&&t.startsWith("file://")&&(t=(0,d.fileURLToPath)(t)),"string"==typeof t&&(t={root:t}),(n=t)&&Boolean(n._base)){if(F!==t._base){I(`reloading config from ${t._base} to ${F}`);const e=new B({...t.options,plugins:t.plugins});return await e.load(),e}return t}var n;const r=new B(t);return await r.load(),r}static get rootPlugin(){return this.rootPlugin}get commandIDs(){return this._commandIDs||(this._commandIDs=this.commands.map((e=>e.id))),this._commandIDs}get commands(){return[...this._commands.values()]}get isProd(){return(0,E.isProd)()}get topics(){return[...this._topics.values()]}get versionDetails(){const[e,t,n]=this.userAgent.split(" ");return{architecture:t,cliVersion:e,nodeVersion:n,osVersion:`${(0,l.type)()} ${(0,l.release)()}`,pluginVersions:Object.fromEntries([...this.plugins.values()].map((e=>[e.name,{root:e.root,type:e.type,version:e.version}]))),rootPath:this.root,shell:this.shell}}dir(e){const t=process.env[`XDG_${e.toUpperCase()}_HOME`]||this.windows&&process.env.LOCALAPPDATA||(0,u.join)(this.home,"data"===e?".local/share":"."+e);return(0,u.join)(t,this.dirname)}findCommand(e,t={}){const n=this.getCmdLookupId(e),r=this._commands.get(n);return t.must&&!r&&(0,f.error)(`command ${n} not found`),r}findMatches(e,t){const n=t.filter((e=>!(0,_.getHelpFlagAdditions)(this).includes(e)&&e.startsWith("-"))).map((e=>e.replaceAll("-",""))),r=[...this.commandPermutations.get(e)].map((e=>this._commands.get(e))).filter((e=>{const t=Object.entries(e.flags).flatMap((([e,t])=>t.char?[t.char,e]:[e]));return n.every((e=>t.includes(e)))}));return r}findTopic(e,t={}){const n=this.getTopicLookupId(e),r=this._topics.get(n);if(r)return r;if(t.must)throw new Error(`topic ${e} not found`)}getAllCommandIDs(){return this.getAllCommands().map((e=>e.id))}getAllCommands(){const e=[...this._commands.values()],t=[...this.commandPermutations.getAllValid()];for(const n of t)if(!this._commands.has(n)){const t=this._commands.get(this.getCmdLookupId(n));e.push({...t,id:n})}return e}getPluginsList(){return[...this.plugins.values()]}async load(){A.settings.performanceEnabled=(void 0===A.settings.performanceEnabled?this.options.enablePerf:A.settings.performanceEnabled)??!1,A.settings.debug&&P(),(0,m.setLogger)(this.options);const e=g.Performance.mark(g.OCLIF_MARKER_OWNER,"config.load");this.pluginLoader=new k.default({plugins:this.options.plugins,root:this.options.root}),this.rootPlugin=await this.pluginLoader.loadRoot({pjson:this.options.pjson});const t=p.default.getInstance();t.set("rootPlugin",this.rootPlugin),t.set("exitCodes",this.rootPlugin.pjson.oclif.exitCodes??{}),this.root=this.rootPlugin.root,this.pjson=this.rootPlugin.pjson,this.plugins.set(this.rootPlugin.name,this.rootPlugin),this.root=this.rootPlugin.root,this.pjson=this.rootPlugin.pjson,this.name=this.pjson.name,this.version=this.options.version||this.pjson.version||"0.0.0",this.channel=this.options.channel||function(e){const t=e.match(/[^-]+(?:-([^.]+))?/);return t&&t[1]||"stable"}(this.version),this.valid=this.rootPlugin.valid,this.arch="ia32"===(0,l.arch)()?"x86":(0,l.arch)(),this.platform=c.default?"wsl":(0,C.getPlatform)(),this.windows="win32"===this.platform,this.bin=this.pjson.oclif.bin||this.name,this.binAliases=this.pjson.oclif.binAliases,this.nsisCustomization=this.pjson.oclif.nsisCustomization,this.dirname=this.pjson.oclif.dirname||this.name,this.flexibleTaxonomy=this.pjson.oclif.flexibleTaxonomy||!1,this.pjson.oclif.topicSeparator&&[" ",":"].includes(this.pjson.oclif.topicSeparator)&&(this.topicSeparator=this.pjson.oclif.topicSeparator),"win32"===this.platform&&(this.dirname=this.dirname.replace("/","\\")),this.userAgent=`${this.name}/${this.version} ${this.platform}-${this.arch} node-${process.version}`,this.shell=this._shell(),this.home=process.env.HOME||this.windows&&this.windowsHome()||(0,C.getHomeDir)()||(0,l.tmpdir)(),this.cacheDir=this.scopedEnvVar("CACHE_DIR")||this.macosCacheDir()||this.dir("cache"),this.configDir=this.scopedEnvVar("CONFIG_DIR")||this.dir("config"),this.dataDir=this.scopedEnvVar("DATA_DIR")||this.dir("data"),this.binPath=this.scopedEnvVar("BINPATH"),this.npmRegistry=this.scopedEnvVar("NPM_REGISTRY")||this.pjson.oclif.npmRegistry,this.theme=await this.loadTheme(),this.updateConfig={...this.pjson.oclif.update,node:this.pjson.oclif.update?.node??{},s3:this.buildS3Config()},this.isSingleCommandCLI=Boolean("string"!=typeof this.pjson.oclif.commands&&"single"===this.pjson.oclif.commands?.strategy&&this.pjson.oclif.commands?.target),this.maybeAdjustDebugSetting(),await this.loadPluginsAndCommands(),I("config done"),e?.addDetails({commandPermutations:this.commands.length,commands:[...this.plugins.values()].reduce(((e,t)=>e+t.commands.length),0),plugins:this.plugins.size,topics:this.topics.length}),e?.stop()}async loadPluginsAndCommands(e){const t=g.Performance.mark(g.OCLIF_MARKER_OWNER,"config.loadAllPlugins"),{errors:n,plugins:r}=await this.pluginLoader.loadChildren({dataDir:this.dataDir,devPlugins:this.options.devPlugins,force:e?.force??!1,pluginAdditions:this.options.pluginAdditions,rootPlugin:this.rootPlugin,userPlugins:this.options.userPlugins});this.plugins=r,t?.stop();const i=g.Performance.mark(g.OCLIF_MARKER_OWNER,"config.loadAllCommands");for(const e of this.plugins.values())this.loadCommands(e),this.loadTopics(e);i?.stop();for(const e of n)this.warn(e)}async loadTheme(){if(this.scopedEnvVarTrue("DISABLE_THEME"))return;const e=(0,u.resolve)(this.configDir,"theme.json"),[t,n]=await Promise.all([await(async()=>{if(this.pjson.oclif.theme)return"string"==typeof this.pjson.oclif.theme?(0,v.safeReadJson)((0,u.resolve)(this.root,this.pjson.oclif.theme)):this.pjson.oclif.theme})(),await(0,v.safeReadJson)(e)]),r={...t,...n};return Object.keys(r).length>0?(0,S.parseTheme)(r):void 0}macosCacheDir(){return"darwin"===this.platform&&(0,u.join)(this.home,"Library","Caches",this.dirname)||void 0}async runCommand(e,t=[],n=null){const r=g.Performance.mark(g.OCLIF_MARKER_OWNER,`config.runCommand#${e}`);I("runCommand %s %o",e,t);let i=n??this.findCommand(e);if(!i){const n=this.flexibleTaxonomy?this.findMatches(e,t):[],r=this.flexibleTaxonomy&&n.length>0?await this.runHook("command_incomplete",{argv:t,id:e,matches:n}):await this.runHook("command_not_found",{argv:t,id:e});if(r.successes[0])return r.successes[0].result;if(r.failures[0])throw r.failures[0].error;throw new f.CLIError(`command ${e} not found`)}if(this.isJitPluginCommand(i)){const n=i.pluginName,r=this.pjson.oclif.jitPlugins[n],o=await this.runHook("jit_plugin_not_installed",{argv:t,command:i,id:e,pluginName:n,pluginVersion:r});if(o.failures[0])throw o.failures[0].error;if(!o.successes[0]){const n=await this.runHook("command_not_found",{argv:t,id:e});if(n.successes[0])return n.successes[0].result;if(n.failures[0])throw n.failures[0].error;throw new f.CLIError(`command ${e} not found`)}await this.loadPluginsAndCommands({force:!0}),i=this.findCommand(e)??i}const o=await i.load();await this.runHook("prerun",{Command:o,argv:t});const s=await o.run(t,this);if("plugins:uninstall"===i.id)for(const e of t)this.plugins.delete(e);return await this.runHook("postrun",{Command:o,argv:t,result:s}),r?.addDetails({command:e,plugin:i.pluginName}),r?.stop(),s}async runHook(e,t,n,r){const i=g.Performance.mark(g.OCLIF_MARKER_OWNER,`config.runHook#${e}`);I("start %s hook",e);const o=async(e,t)=>{let n;const r=new Promise(((t,r)=>{n=setTimeout((()=>{r(new Error(`Timed out after ${e} ms.`))}),e).unref()}));return Promise.race([t,r]).then((e=>(clearTimeout(n),e)))},s={failures:[],successes:[]},a=(R.has(e)?[this.rootPlugin]:[...this.plugins.values()]).map((async i=>{const a=(0,m.makeDebug)([i.name,"hooks",e].join(":")),c={config:this,debug:a,error(e,t={}){(0,f.error)(e,t)},exit(e=0){(0,f.exit)(e)},log(e,...t){x.ux.stdout(e,...t)},warn(e){(0,f.warn)(e)}},l=i.hooks[e]||[];for(const d of l){const l=g.Performance.mark(g.OCLIF_MARKER_OWNER,`config.runHook#${i.name}(${d.target})`);try{const{filePath:r,isESM:l,module:p}=await(0,h.loadWithData)(i,await(0,D.tsPath)(i.root,d.target,i));a("start",l?"(import)":"(require)",r);const f=p[d.identifier]??("default"===d.identifier?"function"==typeof(u=p)?u:u.default&&"function"==typeof u.default?u.default:Object.values(u).find((e=>"function"==typeof e)):void 0);if(!f){a("No hook found for hook definition:",d);continue}const _=n?await o(n,f.call(c,{...t,config:this,context:c})):await f.call(c,{...t,config:this,context:c});s.successes.push({plugin:i,result:_}),"@oclif/plugin-legacy"===i.name&&"init"===e&&this.insertLegacyPlugins(_),a("done")}catch(e){if(s.failures.push({error:e,plugin:i}),a(e),!r&&void 0!==e.oclif?.exit&&0!==e.oclif?.exit&&"MODULE_NOT_FOUND"!==e.code)throw e}l?.addDetails({event:e,hook:d.target,plugin:i.name}),l?.stop()}var u}));return await Promise.all(a),I("%s hook done",e),i?.stop(),s}s3Key(e,t,n={}){"object"==typeof t?n=t:t&&(n.ext=t);const r=this.updateConfig.s3?.templates?.[n.platform?"target":"vanilla"][e]??"";return a.render(r,{...this,...n})}s3Url(e){const{host:t}=this.updateConfig.s3??{host:void 0};if(!t)throw new Error("no s3 host is set");const n=new d.URL(t);return n.pathname=(0,u.join)(n.pathname,e),n.toString()}scopedEnvVar(e){return process.env[this.scopedEnvVarKeys(e).find((e=>process.env[e]))]}scopedEnvVarKey(e){return[this.bin,e].map((e=>e.replaceAll("@","").replaceAll(/[/-]/g,"_"))).join("_").toUpperCase()}scopedEnvVarKeys(e){return[this.bin,...this.binAliases??[]].filter(Boolean).map((t=>[t.replaceAll("@","").replaceAll(/[/-]/g,"_"),e].join("_").toUpperCase()))}scopedEnvVarTrue(e){const t=this.scopedEnvVar(e);return"1"===t||"true"===t}windowsHome(){return this.windowsHomedriveHome()||this.windowsUserprofileHome()}windowsHomedriveHome(){return process.env.HOMEDRIVE&&process.env.HOMEPATH&&(0,u.join)(process.env.HOMEDRIVE,process.env.HOMEPATH)}windowsUserprofileHome(){return process.env.USERPROFILE}_shell(){let e;const{COMSPEC:t}=process.env,n=process.env.SHELL??(0,l.userInfo)().shell?.split(u.sep)?.pop();return e=n?n.split("/"):this.windows&&process.title.toLowerCase().includes("powershell")?["powershell"]:this.windows&&process.title.toLowerCase().includes("command prompt")?["cmd.exe"]:this.windows&&t?t.split(/\\|\//):["unknown"],e.at(-1)??"unknown"}buildS3Config(){const e=this.pjson.oclif.update?.s3,t=this.scopedEnvVar("S3_BUCKET")??e?.bucket;return{bucket:t,host:e?.host??(t&&`https://${t}.s3.amazonaws.com`),templates:{...e?.templates,target:{baseDir:"<%- bin %>",manifest:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- platform %>-<%- arch %>",unversioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-<%- platform %>-<%- arch %><%- ext %>",versioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %>-<%- platform %>-<%- arch %><%- ext %>",...e?.templates&&e?.templates.target},vanilla:{baseDir:"<%- bin %>",manifest:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %>version",unversioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %><%- ext %>",versioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %><%- ext %>",...e?.templates&&e?.templates.vanilla}}}}getCmdLookupId(e){return this._commands.has(e)?e:this.commandPermutations.hasValid(e)?this.commandPermutations.getValid(e):e}getTopicLookupId(e){return this._topics.has(e)?e:this.topicPermutations.hasValid(e)?this.topicPermutations.getValid(e):e}insertLegacyPlugins(e){for(const t of e){this.plugins.set(t.name,t);for(const e of t.commands??[]){this._commands.delete(e.id);for(const t of[...e.aliases??[],...e.hiddenAliases??[]])this._commands.delete(t)}this.loadCommands(t)}}isJitPluginCommand(e){return Object.keys(this.pjson.oclif.jitPlugins??{}).includes(e.pluginName??"")&&Boolean(e?.pluginName&&!this.plugins.has(e.pluginName))}loadCommands(e){const t=g.Performance.mark(g.OCLIF_MARKER_OWNER,`config.loadCommands#${e.name}`,{plugin:e.name});for(const t of e.commands){if(this._commands.has(t.id)){const e=(0,y.determinePriority)(this.pjson.oclif.plugins??[],[this._commands.get(t.id),t]);this._commands.set(e.id,e)}else this._commands.set(t.id,t);const e=this.flexibleTaxonomy&&void 0===t.permutations?(0,w.getCommandIdPermutations)(t.id):t.permutations??[t.id];for(const n of e)this.commandPermutations.add(n,t.id);const n=(e,n=!1)=>{const r=(0,b.toStandardizedId)(e,this);if(this._commands.has(r)){const e=(0,y.determinePriority)(this.pjson.oclif.plugins??[],[this._commands.get(r),t]);this._commands.set(r,{...e,id:r})}else this._commands.set(r,{...t,hidden:n,id:r});const i=this.flexibleTaxonomy&&void 0===t.aliasPermutations?(0,w.getCommandIdPermutations)(r):t.permutations??[r];for(const e of i)this.commandPermutations.add(e,t.id)};for(const e of t.aliases??[])n(e);for(const e of t.hiddenAliases??[])n(e,!0)}t?.addDetails({commandCount:e.commands.length}),t?.stop()}loadTopics(e){const t=g.Performance.mark(g.OCLIF_MARKER_OWNER,`config.loadTopics#${e.name}`,{plugin:e.name});for(const t of(0,E.compact)(e.topics)){const e=this._topics.get(t.name);e?(e.description=t.description||e.description,e.hidden=e.hidden||t.hidden):this._topics.set(t.name,t);const n=this.flexibleTaxonomy?(0,w.getCommandIdPermutations)(t.name):[t.name];for(const e of n)this.topicPermutations.add(e,t.name)}for(const t of e.commands.filter((e=>!e.hidden))){const e=t.id.split(":");for(;e.length>0;){const n=e.join(":");n&&!this._topics.has(n)&&this._topics.set(n,{description:t.summary||t.description,name:n}),e.pop()}}t?.stop()}maybeAdjustDebugSetting(){this.scopedEnvVarTrue("DEBUG")&&(A.settings.debug=!0,P())}warn(e,t){if(!this.warned)if("string"!=typeof e){if(e instanceof Error){const n=e;return n.name=`${e.name} Plugin: ${this.name}`,n.detail=(0,E.compact)([e.detail,`module: ${this._base}`,t&&`task: ${t}`,`plugin: ${this.name}`,`root: ${this.root}`,"See more details with DEBUG=*"]).join("\n"),void process.emitWarning(e)}process.emitWarning("Config.warn expected either a string or Error, but instead received an object"),e.name=`${e.name} Plugin: ${this.name}`,e.detail=(0,E.compact)([e.detail,`module: ${this._base}`,t&&`task: ${t}`,`plugin: ${this.name}`,`root: ${this.root}`,"See more details with DEBUG=*"]).join("\n"),process.emitWarning(JSON.stringify(e))}else process.emitWarning(e)}}t.Config=B}(config$2,config$2.exports)),config$2.exports}function requireConfig(){return hasRequiredConfig||(hasRequiredConfig=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.tsPath=e.Plugin=e.Config=void 0;var t=requireConfig$1();Object.defineProperty(e,"Config",{enumerable:!0,get:function(){return t.Config}});var n=requirePlugin();Object.defineProperty(e,"Plugin",{enumerable:!0,get:function(){return n.Plugin}});var r=requireTsPath();Object.defineProperty(e,"tsPath",{enumerable:!0,get:function(){return r.tsPath}})}(config$3)),config$3}var parser$1={},parse$6={},errors$3={},list={},wordwrap={exports:{}},hasRequiredWordwrap,hasRequiredList,hasRequiredErrors$3,hasRequiredParse$3;function requireWordwrap(){if(hasRequiredWordwrap)return wordwrap.exports;hasRequiredWordwrap=1;var e=wordwrap.exports=function(e,t,n){"object"==typeof e&&(e=(n=e).start,t=n.stop),"object"==typeof t&&(n=t,e=e||n.start,t=void 0),t||(t=e,e=0),n||(n={});var r=n.mode||"soft",i="hard"===r?/\b/:/(\S+\s+)/;return function(n){var o=n.toString().split(i).reduce((function(n,i){if("hard"===r)for(var o=0;ot)n[o]=n[o].replace(/\s+$/,""),i.split(/\n/).forEach((function(t){n.push(new Array(e+1).join(" ")+t.replace(/^\s+/,""))}));else if(i.match(/\n/)){var s=i.split(/\n/);n[o]+=s.shift(),s.forEach((function(t){n.push(new Array(e+1).join(" ")+t.replace(/^\s+/,""))}))}else n[o]+=i;return n}),[new Array(e+1).join(" ")]).join("\n")}};return e.soft=e,e.hard=function(t,n){return e(t,n,{mode:"hard"})},wordwrap.exports}function requireList(){if(hasRequiredList)return list;hasRequiredList=1,Object.defineProperty(list,"__esModule",{value:!0}),list.default=function(r){if(0===r.length)return"";const i=(0,t.maxBy)(r,(e=>e[0].length))?.[0].length??0,o=r.map((t=>{let r=t[0],o=t[1];return o?(r=r.padEnd(i),s=o,o=n(i+2,e.stdtermwidth,{skipScheme:"ansi-color"})(s).trim(),`${r} ${o}`):r;var s}));return o.join("\n")};const e=requireScreen(),t=requireUtil$f(),n=requireWordwrap();return list}function requireErrors$3(){return hasRequiredErrors$3||(hasRequiredErrors$3=1,function(e){var t=errors$3&&errors$3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.FailedFlagValidationError=e.ArgInvalidOptionError=e.FlagInvalidOptionError=e.NonExistentFlagsError=e.UnexpectedArgsError=e.RequiredArgsError=e.InvalidArgsSpecError=e.CLIParseError=e.CLIError=void 0;const n=t(requireCache$2()),r=requireErrors$4(),i=requireUtil$f(),o=t(requireList()),s=requireTheme();var a=requireErrors$4();Object.defineProperty(e,"CLIError",{enumerable:!0,get:function(){return a.CLIError}});class c extends r.CLIError{parse;showHelp=!1;constructor(e){e.message+="\nSee more help with --help",super(e.message,{exit:e.exit}),this.parse=e.parse}}e.CLIParseError=c;e.InvalidArgsSpecError=class extends c{args;constructor({args:e,exit:t,parse:r}){let i="Invalid argument spec";const s=Object.values(e).filter((e=>e.name));if(s.length>0){i+=`:\n${(0,o.default)(s.map((e=>[`${e.name} (${e.required?"required":"optional"})`,e.description])))}`}super({exit:n.default.getInstance().get("exitCodes")?.invalidArgsSpec??t,message:i,parse:r}),this.args=e}};e.RequiredArgsError=class extends c{args;constructor({args:e,exit:t,flagsWithMultiple:r,parse:i}){let s=`Missing ${e.length} required arg${1===e.length?"":"s"}`;const a=e.filter((e=>e.name));if(a.length>0){const e=(0,o.default)(a.map((e=>{const t=e.options?`(${e.options.join("|")}) ${e.description}`:e.description;return[e.name,t]})));s+=`:\n${e}`}if(r?.length){s+=`\n\nNote: ${r.map((e=>`--${e}`)).join(", ")} allow${1===r.length?"s":""} multiple values. Because of this you need to provide all arguments before providing ${1===r.length?"that flag":"those flags"}.`,s+='\nAlternatively, you can use "--" to signify the end of the flags and the beginning of arguments.'}super({exit:n.default.getInstance().get("exitCodes")?.requiredArgs??t,message:s,parse:i}),this.args=e,this.showHelp=!0}};e.UnexpectedArgsError=class extends c{args;constructor({args:e,exit:t,parse:r}){const i=`Unexpected argument${1===e.length?"":"s"}: ${e.join(", ")}`;super({exit:n.default.getInstance().get("exitCodes")?.unexpectedArgs??t,message:i,parse:r}),this.args=e,this.showHelp=!0}};e.NonExistentFlagsError=class extends c{flags;constructor({exit:e,flags:t,parse:r}){const i=`Nonexistent flag${1===t.length?"":"s"}: ${t.join(", ")}`;super({exit:n.default.getInstance().get("exitCodes")?.nonExistentFlag??e,message:i,parse:r}),this.flags=t,this.showHelp=!0}};e.FlagInvalidOptionError=class extends c{constructor(e,t){super({message:`Expected --${e.name}=${t} to be one of: ${e.options.join(", ")}`,parse:{}})}};e.ArgInvalidOptionError=class extends c{constructor(e,t){super({message:`Expected ${t} to be one of: ${e.options.join(", ")}`,parse:{}})}};e.FailedFlagValidationError=class extends c{constructor({exit:e,failed:t,parse:r}){const o=t.map((e=>e.reason)),a=(0,i.uniq)(o),c=`The following ${1===a.length?"error":"errors"} occurred:\n ${(0,s.colorize)("dim",a.join("\n "))}`;super({exit:n.default.getInstance().get("exitCodes")?.failedFlagValidation??e,message:c,parse:r})}}}(errors$3)),errors$3}function requireParse$3(){return hasRequiredParse$3||(hasRequiredParse$3=1,function(e){var t=parse$6&&parse$6.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=e.readStdin=void 0;const n=require$$0$d,r=t(requireCache$2()),i=requireLogger(),o=requireUtil$f(),s=requireErrors$3();let a;try{a="1"===process.env.CLI_FLAGS_DEBUG?(0,i.makeDebug)("parser"):()=>{}}catch{a=()=>{}}function c(e){return/^-\d/g.test(e)}e.readStdin=async()=>{const{stdin:e,stdout:t}=process;return e.isTTY?null:commonjsGlobal.oclif?.stdinCache?(a("resolved stdin from global cache",commonjsGlobal.oclif.stdinCache),commonjsGlobal.oclif.stdinCache):new Promise((r=>{let i="";const o=new AbortController,{signal:s}=o,c=setTimeout((()=>o.abort()),10),l=(0,n.createInterface)({input:e,output:t,terminal:!1});l.on("line",(e=>{i+=e})),l.once("close",(()=>{clearTimeout(c),a("resolved from stdin",i),commonjsGlobal.oclif={...commonjsGlobal.oclif,stdinCache:i},r(i)})),s.addEventListener("abort",(()=>{a("stdin aborted"),clearTimeout(c),l.close(),r(null)}),{once:!0})}))};const l=(e,t)=>{if(e.options&&!e.options.includes(t))throw new s.FlagInvalidOptionError(e,t);return t};e.Parser=class{input;argv;booleanFlags;context;currentFlag;flagAliases;raw=[];constructor(e){this.input=e,this.context=e.context??{},this.argv=[...e.argv],this._setNames(),this.booleanFlags=(0,o.pickBy)(e.flags,(e=>"boolean"===e.type)),this.flagAliases=Object.fromEntries(Object.values(e.flags).flatMap((e=>[...e.aliases??[],...e.charAliases??[]].map((t=>[t,e])))))}async parse(){this._debugInput();const t=async n=>{const{isLong:r,name:i}=this.findFlag(n);if(!i){const e=n.indexOf("=");if(-1!==e){const r=n.slice(e+1);this.argv.unshift(r);const i=await t(n.slice(0,e));return i||this.argv.shift(),i}return!1}const o=this.input.flags[i];if("option"===o.type){if(!o.multiple&&this.raw.some((e=>"flag"===e.type&&e.flag===i)))throw new s.CLIError(`Flag --${i} can only be specified once`);this.currentFlag=o;let t=r||n.length<3?this.argv.shift():n.slice("="===n[2]?3:2);if("only"===o.allowStdin&&"-"!==t&&void 0!==t&&!this.findFlag(t).name)throw new s.CLIError(`Flag --${i} can only be read from stdin. The value must be "-" or not provided at all.`);if(o.allowStdin&&"-"===t||"only"===o.allowStdin){const n=await(0,e.readStdin)();n&&(t=n.trim())}if("string"!=typeof t||this.findFlag(t).name){if(o.options)throw new s.CLIError(`Flag --${i} expects one of these values: ${o.options.join(", ")}`);throw new s.CLIError(`Flag --${i} expects a value`)}this.raw.push({flag:o.name,input:t,type:"flag"})}else this.raw.push({flag:o.name,input:n,type:"flag"}),!r&&n.length>2&&this.argv.unshift(`-${n.slice(2)}`);return!0};let n=!0;const r=[];let i=!1;const o=[...this.argv];for(;this.argv.length>0;){const e=this.argv.shift();if(n&&e.startsWith("-")&&"-"!==e){if(!1!==this.input["--"]&&"--"===e){n=!1;continue}if(await t(e))continue;if("--"===e){i=!0;continue}if(!1!==this.input["--"]&&!c(e)){r.push(e);continue}}if(n&&this.currentFlag&&this.currentFlag.multiple&&!this.currentFlag.multipleNonGreedy){this.raw.push({flag:this.currentFlag.name,input:e,type:"flag"});continue}const o=Object.keys(this.input.args)[this._argTokens.length];this.raw.push({arg:o,input:e,type:"arg"})}const[{args:a,argv:l},{flags:u,metadata:d}]=await Promise.all([this._args(),this._flags()]);this._debugOutput(l,a,u);return{args:a,argv:(i?[...l,...r,"--"]:[...l,...r]).sort(((e,t)=>o.indexOf(e)-o.indexOf(t))),flags:u,metadata:d,nonExistentFlags:r,raw:this.raw}}async _args(){const t=[],n={},r=this._argTokens;let i=!1;const o=this.context;for(const[a,c]of Object.entries(this.input.args)){const l=r.find((e=>e.arg===a));if(o.token=l,l){if(c.options&&!c.options.includes(l.input))throw new s.ArgInvalidOptionError(c,l.input);const e=await c.parse(l.input,o,c);t.push(e),n[l.arg]=e}else if(!c.ignoreStdin&&!i){let r=await(0,e.readStdin)();if(r){r=r.trim();const e=await c.parse(r,o,c);t.push(e),n[a]=e}i=!0}if(!n[a]&&(c.default||!1===c.default))if("function"==typeof c.default){const e=await c.default();t.push(e),n[a]=e}else t.push(c.default),n[a]=c.default}for(const e of r)void 0===n[e.arg]&&t.push(e.input);return{args:n,argv:t}}get _argTokens(){return this.raw.filter((e=>"arg"===e.type))}_debugInput(){a("input: %s",this.argv.join(" "));const e=Object.keys(this.input.args);e.length>0&&a("available args: %s",e.join(" ")),0!==Object.keys(this.input.flags).length&&a("available flags: %s",Object.keys(this.input.flags).map((e=>`--${e}`)).join(" "))}_debugOutput(e,t,n){n.length>0&&a("argv: %o",n),Object.keys(e).length>0&&a("args: %o",e),Object.keys(t).length>0&&a("flags: %o",t)}async _flags(){const e=async(e,t,n,i)=>{if(!t.parse)return e;const o={...n,error:n?.error,exit:n?.exit,log:n?.log,logToStderr:n?.logToStderr,token:i,warn:n?.warn};try{return t.type,await t.parse(e,o,t)}catch(e){throw e.message=`Parsing --${t.name} \n\t${e.message}\nSee more help with --help`,r.default.getInstance().get("exitCodes")?.failedFlagParsing&&(e.oclif={exit:r.default.getInstance().get("exitCodes")?.failedFlagParsing}),e}},t=t=>{const n=t.tokens?.length;if(n){if("boolean"===t.inputFlag.flag.type&&(0,o.last)(t.tokens)?.input)return{...t,valueFunction:async t=>e((0,o.last)(t.tokens)?.input!==`--no-${t.inputFlag.name}`,t.inputFlag.flag,this.context,(0,o.last)(t.tokens))};if("option"===t.inputFlag.flag.type&&t.inputFlag.flag.delimiter&&t.inputFlag.flag.multiple){const n=e=>new RegExp(`(?(await Promise.all((t.tokens??[]).flatMap((e=>e.input.split(n(t.inputFlag.flag.delimiter??",")))).map((e=>e.trim().replaceAll(new RegExp(`\\\\${t.inputFlag.flag.delimiter}`,"g"),t.inputFlag.flag.delimiter??",").replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1"))).map((async n=>e(n,t.inputFlag.flag,this.context,{...(0,o.last)(t.tokens),input:n}))))).map((e=>l(t.inputFlag.flag,e)))}}if("option"===t.inputFlag.flag.type&&t.inputFlag.flag.multiple)return{...t,valueFunction:async n=>Promise.all((t.tokens??[]).map((t=>e(l(n.inputFlag.flag,t.input),n.inputFlag.flag,this.context,t))))};if("option"===t.inputFlag.flag.type)return{...t,valueFunction:async n=>e(l(n.inputFlag.flag,(0,o.last)(t.tokens)?.input),n.inputFlag.flag,this.context,(0,o.last)(t.tokens))}}if(t.inputFlag.flag.env&&process.env[t.inputFlag.flag.env]){const n=process.env[t.inputFlag.flag.env];if("option"===t.inputFlag.flag.type&&n)return{...t,valueFunction:async t=>e(l(t.inputFlag.flag,n),t.inputFlag.flag,this.context)};if("boolean"===t.inputFlag.flag.type)return{...t,valueFunction:async e=>(0,o.isTruthy)(process.env[e.inputFlag.flag.env]??"false")}}return void 0!==typeof t.inputFlag.flag.default?{...t,metadata:{setFromDefault:!0},valueFunction:"function"==typeof t.inputFlag.flag.default?(e,n={})=>t.inputFlag.flag.default({flags:n,options:e.inputFlag.flag}):async()=>t.inputFlag.flag.default}:t},n=e=>Object.fromEntries(e.filter((e=>void 0!==e.value)).map((e=>[e.inputFlag.name,e.value]))),i=this.mapAndValidateFlags(),s=await Promise.all(Object.entries(this.input.flags).filter((([e,t])=>"boolean"===t.type||t.env||void 0!==t.default||"defaultHelp"in t||i.has(e))).map((([e,t])=>({inputFlag:{flag:t,name:e},tokens:i.get(e)}))).map((e=>t(e))).filter((e=>void 0!==e.valueFunction)).map((e=>(e=>"option"===e.inputFlag.flag.type&&e.inputFlag.flag.defaultHelp?{...e,helpFunction:"function"==typeof e.inputFlag.flag.defaultHelp?(e,t,...n)=>e.inputFlag.flag.defaultHelp({flags:t,options:e.inputFlag},...n):e=>e.inputFlag.flag.defaultHelp}:e)(e))).map((async e=>e.metadata?.setFromDefault?e:{...e,value:await(e.valueFunction?.(e))}))),a=n(s.filter((e=>!e.metadata?.setFromDefault))),c=await Promise.all(s.map((async e=>e.metadata?.setFromDefault?{...e,value:await(e.valueFunction?.(e,a))}:e))),u=c.some((e=>"function"==typeof e.helpFunction))?await(async e=>{const t=n(c.filter((e=>!e.metadata?.setFromDefault)));return Promise.all(e.map((async e=>{try{if(e.helpFunction)return{...e,metadata:{...e.metadata,defaultHelp:await(e.helpFunction?.(e,t,this.context))}}}catch{}return e})))})(c):c;return{flags:n(u),metadata:{flags:Object.fromEntries(u.filter((e=>e.metadata)).map((e=>[e.inputFlag.name,e.metadata])))}}}_setNames(){for(const e of Object.keys(this.input.flags))this.input.flags[e].name=e;for(const e of Object.keys(this.input.args))this.input.args[e].name=e}findFlag(e){const t=e.startsWith("--"),n=!t&&e.startsWith("-");return{isLong:t,name:t?this.findLongFlag(e):n?this.findShortFlag(e):void 0}}findLongFlag(e){const t=e.slice(2);if(this.input.flags[t])return t;if(this.flagAliases[t])return this.flagAliases[t].name;if(e.startsWith("--no-")){const t=this.booleanFlags[e.slice(5)];if(t&&t.allowNo)return t.name}}findShortFlag([e,t]){return this.flagAliases[t]?this.flagAliases[t].name:Object.keys(this.input.flags).find((e=>this.input.flags[e].char===t&&void 0!==t&&void 0!==this.input.flags[e].char))}mapAndValidateFlags(){const e=new Map;for(const t of this.raw.filter((e=>"flag"===e.type))){if(!(t.flag in this.input.flags))throw new s.CLIError(`Unexpected flag ${t.flag}`);const n=e.get(t.flag)??[];e.set(t.flag,[...n,t])}return e}}}(parse$6)),parse$6}var validate$2={},hasRequiredValidate$1;function requireValidate$1(){if(hasRequiredValidate$1)return validate$2;hasRequiredValidate$1=1,Object.defineProperty(validate$2,"__esModule",{value:!0}),validate$2.validate=async function(n){let r;function i(){if(n.output.nonExistentFlags?.length>0)throw new t.NonExistentFlagsError({flags:n.output.nonExistentFlags,parse:n});const e=Object.keys(n.input.args).length;if(n.input.strict&&n.output.argv.length>e){const r=n.output.argv.slice(e);throw new t.UnexpectedArgsError({args:r,parse:n})}const r=[];let i=!1;for(const[e,o]of Object.entries(n.input.args)){if(o.required){if(i)throw new t.InvalidArgsSpecError({args:n.input.args,parse:n})}else i=!0;o.required&&void 0===n.output.args[e]&&r.push(o)}if(r.length>0){const e=Object.entries(n.input.flags).filter((([e,t])=>"option"===t.type&&Boolean(t.multiple))).map((([e])=>e));throw new t.RequiredArgsError({args:r,flagsWithMultiple:e,parse:n})}}async function o(){const e=Object.entries(n.input.flags).flatMap((([e,t])=>void 0!==n.output.flags[e]?[...t.relationships?p(e,t):[],...t.dependsOn?[d(e,t.dependsOn)]:[],...t.exclusive?[l(e,t.exclusive)]:[],...t.exactlyOne?[u(e,t.exactlyOne)]:[]]:t.required?[{name:e,reason:`Missing required flag ${e}`,status:"failed",validationFn:"required"}]:t.exactlyOne&&t.exactlyOne.length>0?[c(t)]:[])),r=(await Promise.all(e)).filter((e=>"failed"===e.status));if(r.length>0)throw new t.FailedFlagValidationError({failed:r,parse:n})}async function s(e){if(r)return r;const t=e.map((async e=>{if("string"==typeof e)return[e,n.output.flags[e]];return await e.when(n.output.flags)?[e.name,n.output.flags[e.name]]:null})),i=await Promise.all(t);return r=Object.fromEntries(i.filter((e=>null!==e))),r}const a=e=>Object.keys(e).filter((e=>void 0!==e));function c(t){const r={name:t.name,validationFn:"validateAcrossFlags"},i=Object.entries(n.input.flags).map((e=>e[0])).filter((e=>void 0!==n.output.flags[e])).filter((e=>t.exactlyOne&&t.exactlyOne.includes(e)));if(0===i.length){const n=`Exactly one of the following must be provided: ${(0,e.uniq)(t.exactlyOne?.map((e=>`--${e}`))??[]).join(", ")}`;return{...r,reason:n,status:"failed"}}return{...r,status:"success"}}async function l(e,t){const r={name:e,validationFn:"validateExclusive"},i=await s(t),o=a(i);for(const t of o)if(!(n.output.metadata.flags&&n.output.metadata.flags[t]?.setFromDefault||n.output.metadata.flags&&n.output.metadata.flags[e]?.setFromDefault||void 0===n.output.flags[t])){const i=n.output.metadata.flags?.[t]?.defaultHelp??n.output.flags[t];return{...r,reason:`--${t}=${i} cannot also be provided when using --${e}`,status:"failed"}}return{...r,status:"success"}}async function u(e,t){const r={name:e,validationFn:"validateExactlyOne"},i=await s(t),o=a(i);for(const t of o)if(t!==e&&void 0!==n.output.flags[t])return{...r,reason:`--${t} cannot also be provided when using --${e}`,status:"failed"};return{...r,status:"success"}}async function d(e,t){const n={name:e,validationFn:"validateDependsOn"},r=await s(t);if(!Object.values(r).every((e=>void 0!==e))){const t=Object.keys(r).map((e=>`--${e}`)).join(", ");return{...n,reason:`All of the following must be provided when using --${e}: ${t}`,status:"failed"}}return{...n,status:"success"}}function p(e,t){return(t.relationships??[]).map((t=>{switch(t.type){case"all":return d(e,t.flags);case"some":return async function(e,t){const n={name:e,validationFn:"validateSome"},r=await s(t);if(!Object.values(r).some(Boolean)){const t=Object.keys(r).map((e=>`--${e}`)).join(", ");return{...n,reason:`One of the following must be provided when using --${e}: ${t}`,status:"failed"}}return{...n,status:"success"}}(e,t.flags);case"none":return l(e,t.flags);default:throw new Error(`Unknown relationship type: ${t.type}`)}}))}return i(),o()};const e=requireUtil$f(),t=requireErrors$3();return validate$2}var help={},hasRequiredHelp,hasRequiredParser,hasRequiredCommand$1;function requireHelp(){if(hasRequiredHelp)return help;hasRequiredHelp=1,Object.defineProperty(help,"__esModule",{value:!0}),help.flagUsage=n,help.flagUsages=function(t,r={}){return 0===t.length?[]:(0,e.sortBy)(t,(e=>[e.char?-1:1,e.char,e.name])).map((e=>n(e,r)))};const e=requireUtil$f(),t=requireUx();function n(e,n={}){const r=[];e.helpLabel?r.push(e.helpLabel):(e.char&&r.push(`-${e.char}`),e.name&&r.push(` --${e.name}`));const i="option"===e.type?` ${e.name.toUpperCase()}`:"";let o=e.summary||e.description||"";return n.displayRequired&&e.required&&(o=`(required) ${o}`),o=o?(0,t.colorize)("dim",o):void 0,[` ${r.join(",").trim()}${i}`,o]}return help}function requireParser(){return hasRequiredParser||(hasRequiredParser=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.flagUsages=void 0,e.parse=async function(e,r){const i={"--":r["--"],args:r.args??{},argv:e,context:r.context,flags:r.flags??{},strict:!1!==r.strict},o=new t.Parser(i),s=await o.parse();return await(0,n.validate)({input:i,output:s}),s};const t=requireParse$3(),n=requireValidate$1();var r=requireHelp();Object.defineProperty(e,"flagUsages",{enumerable:!0,get:function(){return r.flagUsages}})}(parser$1)),parser$1}function requireCommand$1(){if(hasRequiredCommand$1)return command$2;hasRequiredCommand$1=1;var e,t=command$2&&command$2.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=command$2&&command$2.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=command$2&&command$2.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var o=e(r),s=0;s{if(!e||"EPIPE"!==e.code)throw e}));class A{argv;config;static aliases=[];static args={};static baseFlags;static deprecateAliases;static deprecationOptions;static description;static enableJsonFlag=!1;static examples;static flags;static hasDynamicHelp=!1;static help;static hidden;static hiddenAliases=[];static id;static plugin;static pluginAlias;static pluginName;static pluginType;static state;static strict=!0;static summary;static usage;debug;id;static _base=`${g.name}@${g.version}`;constructor(e,t){this.argv=e,this.config=t,this.id=this.ctor.id;try{this.debug=(0,d.makeDebug)(this.id?`${this.config.bin}:${this.id}`:this.config.bin)}catch{this.debug=()=>{}}}static async run(e,t){e||(e=process.argv.slice(2)),"string"==typeof t&&t.startsWith("file://")&&(t=(0,o.fileURLToPath)(t));const n=await c.Config.load(t||require.main?.filename||__dirname),r=a.default.getInstance();r.has("config")||r.set("config",n);const i=new this(e,n);if(!i.id){const e=i.constructor.name.toLowerCase();i.id=e,i.ctor.id=e}return i._run()}get ctor(){return this.constructor}async catch(e){if(process.exitCode=process.exitCode??e.exitCode??1,!this.jsonEnabled()){if(!e.message)throw e;try{h.ux.action.stop(h.ux.colorize("bold",h.ux.colorize("red","!")))}catch{}throw e}this.logJson(this.toErrorJson(e))}error(e,t={}){return l.error(e,t)}exit(e=0){l.exit(e)}async finally(e){}async init(){this.debug("init version: %s argv: %o",this.ctor._base,this.argv);const e=commonjsGlobal;e["http-call"]=e["http-call"]||{},e["http-call"].userAgent=this.config.userAgent,this.warnIfCommandDeprecated()}jsonEnabled(){if(!this.ctor.enableJsonFlag)return!1;if("json"===this.config.scopedEnvVar?.("CONTENT_TYPE")?.toLowerCase())return!0;const e=this.argv.indexOf("--"),t=this.argv.indexOf("--json");return-1===e?t>-1:t>-1&&te.plugin.root===a.default.getInstance().get("rootPlugin")?.root))?.result??t:t;this.argv=[...i];const o=await p.parse(i,n);return this.warnIfFlagDeprecated(o.flags??{}),o}toErrorJson(e){return{error:e}}toSuccessJson(e){return e}warn(e){return this.jsonEnabled()||l.warn(e),e}warnIfCommandDeprecated(){const[e]=(0,u.normalizeArgv)(this.config);if(this.ctor.deprecateAliases&&this.ctor.aliases.includes(e)){const t=(0,_.toConfiguredId)(this.ctor.id,this.config),n=(0,_.toConfiguredId)(e,this.config);this.warn((0,u.formatCommandDeprecationWarning)(n,{to:t}))}if("deprecated"===this.ctor.state){const e=(0,_.toConfiguredId)(this.ctor.id,this.config);this.warn((0,u.formatCommandDeprecationWarning)(e,this.ctor.deprecationOptions))}}warnIfFlagDeprecated(e){const t=(0,f.aggregateFlags)(this.ctor.flags,this.ctor.baseFlags,this.ctor.enableJsonFlag);for(const n of Object.keys(e)){const e=t[n],r=e?.deprecated;r&&this.warn((0,u.formatFlagDeprecationWarning)(n,r));const i=e?.deprecateAliases;if(i){const t=(0,m.uniq)([...e?.aliases??[],...e?.charAliases??[]]).map((e=>1===e.length?`-${e}`:`--${e}`));if(0===t.length)return;const n=t.filter((e=>this.argv.includes(e)));for(const t of n){let n=`--${e?.name}`;e?.char&&(n+=` | -${e?.char}`),this.warn((0,u.formatFlagDeprecationWarning)(t,{to:n}))}}}}async _run(){let e,t;try{this.removeEnvVar("REDIRECTED"),await this.init(),t=await this.run()}catch(t){e=t,await this.catch(t)}finally{await this.finally(e)}return t&&this.jsonEnabled()&&this.logJson(this.toSuccessJson(t)),t}removeEnvVar(e){const t=[];try{t.push(...this.config.scopedEnvVarKeys(e))}catch{t.push(this.config.scopedEnvVarKey(e))}t.map((e=>delete process.env[e]))}}return command$2.Command=A,command$2}var execute={},flush={},hasRequiredFlush;function requireFlush(){if(hasRequiredFlush)return flush;hasRequiredFlush=1,Object.defineProperty(flush,"__esModule",{value:!0}),flush.flush=async function(t=1e4){await function(t,n){function r(e,t=!1){return new Promise((n=>{const r=setTimeout((()=>n(null)),e);t&&r.unref()}))}return Promise.race([t,r(n,!0).then((()=>(0,e.error)("timed out")))])}(async function(){const e=new Promise((e=>{process.stdout.once("drain",(()=>e(null)))}));if(process.stdout.write(""))return;return e}(),t)};const e=requireError$1();return flush}var main$4={},hasRequiredMain$1,hasRequiredExecute;function requireMain$1(){return hasRequiredMain$1||(hasRequiredMain$1=1,function(e){var t=main$4&&main$4.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.versionAddition=e.helpAddition=void 0,e.run=async function(t,u){const d=a.Performance.mark(a.OCLIF_MARKER_OWNER,"main.run"),p=a.Performance.mark(a.OCLIF_MARKER_OWNER,"main.run#init"),f=async()=>{d?.stop(),p?.stopped||p?.stop(),await a.Performance.collect(),a.Performance.debug()},_=async e=>{const t=new(await(0,o.loadHelpClass)(h))(h,h.pjson.oclif.helpOptions??h.pjson.helpOptions);await t.showHelp(e)};(0,s.setLogger)(u);const{debug:m}=(0,s.getLogger)("main");m(`process.execPath: ${process.execPath}`),m(`process.execArgv: ${process.execArgv}`),m("process.argv: %O",process.argv),t=t??process.argv.slice(2),u&&("string"==typeof u&&u.startsWith("file://")||u instanceof n.URL)&&(u=(0,n.fileURLToPath)(u));const h=await i.Config.load(u??require.main?.filename??__dirname);r.default.getInstance().set("config",h),h.isSingleCommandCLI&&(t=[c.SINGLE_COMMAND_CLI_SYMBOL,...t]);const[g,...A]=(0,o.normalizeArgv)(h,t);if(await h.runHook("init",{argv:A,id:g}),(0,e.versionAddition)(t,h))return l.ux.stdout(h.userAgent),void await f();if((0,e.helpAddition)(t,h))return await _(t),void await f();const y=h.findCommand(g);if(!y){if(h.flexibleTaxonomy?null:h.findTopic(g))return await _([g]),void await f()}p?.stop();try{return await h.runCommand(g,A,y)}finally{await f()}};const n=require$$0$6,r=t(requireCache$2()),i=requireConfig(),o=requireHelp$1(),s=requireLogger(),a=requirePerformance(),c=requireSymbols$5(),l=requireUx();e.helpAddition=(e,t)=>{if(0===e.length&&!t.isSingleCommandCLI)return!0;const n=(0,o.getHelpFlagAdditions)(t);for(const t of e){if(n.includes(t))return!0;if("--"===t)return!1}return!1};e.versionAddition=(e,t)=>{const n=t?.pjson.oclif.additionalVersionFlags??[];return!![...new Set(["--version",...n]).values()].includes(e[0])}}(main$4)),main$4}function requireExecute(){if(hasRequiredExecute)return execute;hasRequiredExecute=1,Object.defineProperty(execute,"__esModule",{value:!0}),execute.execute=async function(o){if(!o.dir&&!o.loadOptions)throw new e.CLIError("dir or loadOptions is required.");o.development&&(process.env.NODE_ENV="development",i.settings.debug=!0);return(0,r.run)(o.args??process.argv.slice(2),o.loadOptions??o.dir).then((async e=>((0,n.flush)(),e))).catch((async e=>(0,t.handle)(e)))};const e=requireErrors$4(),t=requireHandle(),n=requireFlush(),r=requireMain$1(),i=requireSettings$4();return execute}var interfaces={},hasRequiredInterfaces,hasRequiredLib$g;function requireInterfaces(){return hasRequiredInterfaces||(hasRequiredInterfaces=1,Object.defineProperty(interfaces,"__esModule",{value:!0})),interfaces}function requireLib$g(){return hasRequiredLib$g||(hasRequiredLib$g=1,function(e){var t,n=lib$h&&lib$h.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),r=lib$h&&lib$h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=lib$h&&lib$h.__importStar||(t=function(e){return t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},t(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var o=t(e),s=0;st=>`[${t+e}m`,wrapAnsi256=(e=0)=>t=>`[${38+e};5;${t}m`,wrapAnsi16m=(e=0)=>(t,n,r)=>`[${38+e};2;${t};${n};${r}m`,styles$1={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(styles$1.modifier);const foregroundColorNames=Object.keys(styles$1.color),backgroundColorNames=Object.keys(styles$1.bgColor);function assembleStyles(){const e=new Map;for(const[t,n]of Object.entries(styles$1)){for(const[t,r]of Object.entries(n))styles$1[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=styles$1[t],e.set(r[0],r[1]);Object.defineProperty(styles$1,t,{value:n,enumerable:!1})}return Object.defineProperty(styles$1,"codes",{value:e,enumerable:!1}),styles$1.color.close="",styles$1.bgColor.close="",styles$1.color.ansi=wrapAnsi16(),styles$1.color.ansi256=wrapAnsi256(),styles$1.color.ansi16m=wrapAnsi16m(),styles$1.bgColor.ansi=wrapAnsi16(ANSI_BACKGROUND_OFFSET),styles$1.bgColor.ansi256=wrapAnsi256(ANSI_BACKGROUND_OFFSET),styles$1.bgColor.ansi16m=wrapAnsi16m(ANSI_BACKGROUND_OFFSET),Object.defineProperties(styles$1,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;3===n.length&&(n=[...n].map((e=>e+e)).join(""));const r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},enumerable:!1},hexToAnsi256:{value:e=>styles$1.rgbToAnsi256(...styles$1.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,n,r;if(e>=232)t=(10*(e-232)+8)/255,n=t,r=t;else{const i=(e-=16)%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}const i=2*Math.max(t,n,r);if(0===i)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return 2===i&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>styles$1.ansi256ToAnsi(styles$1.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>styles$1.ansi256ToAnsi(styles$1.hexToAnsi256(e)),enumerable:!1}}),styles$1}const ansiStyles=assembleStyles();function hasFlag(e,t=(globalThis.Deno?globalThis.Deno.args:process$2.argv)){const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=2,has16m:e>=3}}function _supportsColor(e,{streamIsTTY:t,sniffFlags:n=!0}={}){const r=envForceColor();void 0!==r&&(flagForceColor=r);const i=n?flagForceColor:r;if(0===i)return 0;if(n){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor"))return 3;if(hasFlag("color=256"))return 2}if("TF_BUILD"in env$1&&"AGENT_NAME"in env$1)return 1;if(e&&!t&&void 0===i)return 0;const o=i||0;if("dumb"===env$1.TERM)return o;if("win32"===process$2.platform){const e=os$1.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in env$1)return"GITHUB_ACTIONS"in env$1||"GITEA_ACTIONS"in env$1?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in env$1))||"codeship"===env$1.CI_NAME?1:o;if("TEAMCITY_VERSION"in env$1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env$1.TEAMCITY_VERSION)?1:0;if("truecolor"===env$1.COLORTERM)return 3;if("xterm-kitty"===env$1.TERM)return 3;if("TERM_PROGRAM"in env$1){const e=Number.parseInt((env$1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(env$1.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(env$1.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env$1.TERM)||"COLORTERM"in env$1?1:o}function createSupportsColor(e,t={}){return translateLevel(_supportsColor(e,{streamIsTTY:e&&e.isTTY,...t}))}hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")?flagForceColor=0:(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always"))&&(flagForceColor=1);const supportsColor={stdout:createSupportsColor({isTTY:tty.isatty(1)}),stderr:createSupportsColor({isTTY:tty.isatty(2)})};function stringReplaceAll(e,t,n){let r=e.indexOf(t);if(-1===r)return e;const i=t.length;let o=0,s="";do{s+=e.slice(o,r)+t+n,o=r+i,r=e.indexOf(t,o)}while(-1!==r);return s+=e.slice(o),s}function stringEncaseCRLFWithFirstIndex(e,t,n,r){let i=0,o="";do{const s="\r"===e[r-1];o+=e.slice(i,s?r-1:r)+t+(s?"\r\n":"\n")+n,i=r+1,r=e.indexOf("\n",i)}while(-1!==r);return o+=e.slice(i),o}const{stdout:stdoutColor,stderr:stderrColor}=supportsColor,GENERATOR=Symbol("GENERATOR"),STYLER=Symbol("STYLER"),IS_EMPTY=Symbol("IS_EMPTY"),levelMapping=["ansi","ansi","ansi256","ansi16m"],styles=Object.create(null),applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=stdoutColor?stdoutColor.level:0;e.level=void 0===t.level?n:t.level},chalkFactory=e=>{const t=(...e)=>e.join(" ");return applyOptions(t,e),Object.setPrototypeOf(t,createChalk.prototype),t};function createChalk(e){return chalkFactory(e)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[e,t]of Object.entries(ansiStyles))styles[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this[STYLER]),this[IS_EMPTY]);return Object.defineProperty(this,e,{value:n}),n}};styles.visible={get(){const e=createBuilder(this,this[STYLER],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const getModelAnsi=(e,t,n,...r)=>"rgb"===e?"ansi16m"===t?ansiStyles[n].ansi16m(...r):"ansi256"===t?ansiStyles[n].ansi256(ansiStyles.rgbToAnsi256(...r)):ansiStyles[n].ansi(ansiStyles.rgbToAnsi(...r)):"hex"===e?getModelAnsi("rgb",t,n,...ansiStyles.hexToRgb(...r)):ansiStyles[n][e](...r),usedModels=["rgb","hex","ansi256"];for(const e of usedModels){styles[e]={get(){const{level:t}=this;return function(...n){const r=createStyler(getModelAnsi(e,levelMapping[t],"color",...n),ansiStyles.color.close,this[STYLER]);return createBuilder(this,r,this[IS_EMPTY])}}};const t="bg"+e[0].toUpperCase()+e.slice(1);styles[t]={get(){const{level:t}=this;return function(...n){const r=createStyler(getModelAnsi(e,levelMapping[t],"bgColor",...n),ansiStyles.bgColor.close,this[STYLER]);return createBuilder(this,r,this[IS_EMPTY])}}}}const proto=Object.defineProperties((()=>{}),{...styles,level:{enumerable:!0,get(){return this[GENERATOR].level},set(e){this[GENERATOR].level=e}}}),createStyler=(e,t,n)=>{let r,i;return void 0===n?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},createBuilder=(e,t,n)=>{const r=(...e)=>applyStyle(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,proto),r[GENERATOR]=e,r[STYLER]=t,r[IS_EMPTY]=n,r},applyStyle=(e,t)=>{if(e.level<=0||!t)return e[IS_EMPTY]?"":t;let n=e[STYLER];if(void 0===n)return t;const{openAll:r,closeAll:i}=n;if(t.includes(""))for(;void 0!==n;)t=stringReplaceAll(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=stringEncaseCRLFWithFirstIndex(t,i,r,o)),r+t+i};Object.defineProperties(createChalk.prototype,styles);const chalk=createChalk();createChalk({level:stderrColor?stderrColor.level:0});var core$6={},command={},utils$7={},hasRequiredUtils$7,hasRequiredCommand;function requireUtils$7(){if(hasRequiredUtils$7)return utils$7;return hasRequiredUtils$7=1,Object.defineProperty(utils$7,"__esModule",{value:!0}),utils$7.toCommandProperties=utils$7.toCommandValue=void 0,utils$7.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},utils$7.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}},utils$7}function requireCommand(){if(hasRequiredCommand)return command;hasRequiredCommand=1;var e=command&&command.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),t=command&&command.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=command&&command.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.prototype.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(command,"__esModule",{value:!0}),command.issue=command.issueCommand=void 0;const r=n(require$$0$9),i=requireUtils$7();function o(e,t,n){const i=new s(e,t,n);process.stdout.write(i.toString()+r.EOL)}command.issueCommand=o,command.issue=function(e,t=""){o(e,{},t)};class s{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const o=this.properties[r];o&&(n?n=!1:e+=",",e+=`${r}=${t=o,(0,i.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+=`::${function(e){return(0,i.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message)}`,e}}return command}var fileCommand={},hasRequiredFileCommand;function requireFileCommand(){if(hasRequiredFileCommand)return fileCommand;hasRequiredFileCommand=1;var e=fileCommand&&fileCommand.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),t=fileCommand&&fileCommand.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=fileCommand&&fileCommand.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.prototype.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(fileCommand,"__esModule",{value:!0}),fileCommand.prepareKeyValueMessage=fileCommand.issueFileCommand=void 0;const r=n(require$$0$e),i=n(require$$0$7),o=n(require$$0$9),s=requireUtils$7();return fileCommand.issueFileCommand=function(e,t){const n=process.env[`GITHUB_${e}`];if(!n)throw new Error(`Unable to find environment variable for file command ${e}`);if(!i.existsSync(n))throw new Error(`Missing file at path: ${n}`);i.appendFileSync(n,`${(0,s.toCommandValue)(t)}${o.EOL}`,{encoding:"utf8"})},fileCommand.prepareKeyValueMessage=function(e,t){const n=`ghadelimiter_${r.randomUUID()}`,i=(0,s.toCommandValue)(t);if(e.includes(n))throw new Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(i.includes(n))throw new Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${o.EOL}${i}${o.EOL}${n}`},fileCommand}var oidcUtils={},lib$g={},proxy={},hasRequiredProxy;function requireProxy(){if(hasRequiredProxy)return proxy;function e(e){if(!e.hostname)return!1;if(function(e){const t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}(e.hostname))return!0;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let n;e.port?n=Number(e.port):"http:"===e.protocol?n=80:"https:"===e.protocol&&(n=443);const r=[e.hostname.toUpperCase()];"number"==typeof n&&r.push(`${r[0]}:${n}`);for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if("*"===e||r.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`))))return!0;return!1}hasRequiredProxy=1,Object.defineProperty(proxy,"__esModule",{value:!0}),proxy.checkBypass=proxy.getProxyUrl=void 0,proxy.getProxyUrl=function(n){const r="https:"===n.protocol;if(e(n))return;const i=r?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(i)try{return new t(i)}catch(e){if(!i.startsWith("http://")&&!i.startsWith("https://"))return new t(`http://${i}`)}},proxy.checkBypass=e;class t extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}return proxy}var tunnel$1={},hasRequiredTunnel$1,tunnel,hasRequiredTunnel;function requireTunnel$1(){if(hasRequiredTunnel$1)return tunnel$1;hasRequiredTunnel$1=1;var e,t=require$$1$3,n=require$$2$1,r=require$$1$4,i=require$$0$c,o=require$$0__default;function s(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=c(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},s.prototype.createSocket=function(t,n){var r=this,i={};r.sockets.push(i);var o=l({},r.proxyOptions,{method:"CONNECT",path:t.host+":"+t.port,agent:!1,headers:{host:t.host+":"+t.port}});t.localAddress&&(o.localAddress=t.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),e("making CONNECT request");var s=r.request(o);function a(o,a,c){var l;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(e("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(l=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",t.request.emit("error",l),void r.removeSocket(i)):c.length>0?(e("got illegal response body from proxy"),a.destroy(),(l=new Error("got illegal response body from proxy")).code="ECONNRESET",t.request.emit("error",l),void r.removeSocket(i)):(e("tunneling connection has established"),r.sockets[r.sockets.indexOf(i)]=a,n(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(n){s.removeAllListeners(),e("tunneling socket could not be established, cause=%s\n",n.message,n.stack);var o=new Error("tunneling socket could not be established, cause="+n.message);o.code="ECONNRESET",t.request.emit("error",o),r.removeSocket(i)})),s.end()},s.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},e=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},tunnel$1.debug=e,tunnel$1}function requireTunnel(){return hasRequiredTunnel?tunnel:(hasRequiredTunnel=1,tunnel=requireTunnel$1())}var undici={},symbols$4,hasRequiredSymbols$4,errors$2,hasRequiredErrors$2,constants$4,hasRequiredConstants$4,util$b,hasRequiredUtil$b,timers,hasRequiredTimers;function requireSymbols$4(){return hasRequiredSymbols$4?symbols$4:(hasRequiredSymbols$4=1,symbols$4={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")})}function requireErrors$2(){if(hasRequiredErrors$2)return errors$2;hasRequiredErrors$2=1;class e extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}}class t extends e{constructor(e){super(e),Error.captureStackTrace(this,t),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class n extends e{constructor(e){super(e),Error.captureStackTrace(this,n),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class r extends e{constructor(e){super(e),Error.captureStackTrace(this,r),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class i extends e{constructor(e){super(e),Error.captureStackTrace(this,i),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class o extends e{constructor(e,t,n,r){super(e),Error.captureStackTrace(this,o),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=r,this.status=t,this.statusCode=t,this.headers=n}}class s extends e{constructor(e){super(e),Error.captureStackTrace(this,s),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class a extends e{constructor(e){super(e),Error.captureStackTrace(this,a),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class c extends e{constructor(e){super(e),Error.captureStackTrace(this,c),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED"}}class l extends e{constructor(e){super(e),Error.captureStackTrace(this,l),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO"}}class u extends e{constructor(e){super(e),Error.captureStackTrace(this,u),this.name="RequestContentLengthMismatchError",this.message=e||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class d extends e{constructor(e){super(e),Error.captureStackTrace(this,d),this.name="ResponseContentLengthMismatchError",this.message=e||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class p extends e{constructor(e){super(e),Error.captureStackTrace(this,p),this.name="ClientDestroyedError",this.message=e||"The client is destroyed",this.code="UND_ERR_DESTROYED"}}class f extends e{constructor(e){super(e),Error.captureStackTrace(this,f),this.name="ClientClosedError",this.message=e||"The client is closed",this.code="UND_ERR_CLOSED"}}class _ extends e{constructor(e,t){super(e),Error.captureStackTrace(this,_),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=t}}class m extends e{constructor(e){super(e),Error.captureStackTrace(this,m),this.name="NotSupportedError",this.message=e||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}}class h extends Error{constructor(e,t,n){super(e),Error.captureStackTrace(this,h),this.name="HTTPParserError",this.code=t?`HPE_${t}`:void 0,this.data=n?n.toString():void 0}}class g extends e{constructor(e){super(e),Error.captureStackTrace(this,g),this.name="ResponseExceededMaxSizeError",this.message=e||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class A extends e{constructor(e,t,{headers:n,data:r}){super(e),Error.captureStackTrace(this,A),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=t,this.data=r,this.headers=n}}return errors$2={HTTPParserError:h,UndiciError:e,HeadersTimeoutError:n,HeadersOverflowError:r,BodyTimeoutError:i,RequestContentLengthMismatchError:u,ConnectTimeoutError:t,ResponseStatusCodeError:o,InvalidArgumentError:s,InvalidReturnValueError:a,RequestAbortedError:c,ClientDestroyedError:p,ClientClosedError:f,InformationalError:l,SocketError:_,NotSupportedError:m,ResponseContentLengthMismatchError:d,BalancedPoolMissingUpstreamError:class extends e{constructor(e){super(e),Error.captureStackTrace(this,m),this.name="MissingUpstreamError",this.message=e||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}},ResponseExceededMaxSizeError:g,RequestRetryError:A}}function requireConstants$4(){if(hasRequiredConstants$4)return constants$4;hasRequiredConstants$4=1;const e={},t=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let n=0;nNumber(e)));function f(e){return e&&"object"==typeof e&&"function"==typeof e.pipe&&"function"==typeof e.on}function _(e){return a&&e instanceof a||e&&"object"==typeof e&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function m(e){if("string"==typeof e){if(e=new URL(e),!/^https?:/.test(e.origin||e.protocol))throw new s("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}if(!e||"object"!=typeof e)throw new s("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(e.origin||e.protocol))throw new s("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(e instanceof URL)){if(null!=e.port&&""!==e.port&&!Number.isFinite(parseInt(e.port)))throw new s("Invalid URL: port must be a valid integer or a string representation of an integer.");if(null!=e.path&&"string"!=typeof e.path)throw new s("Invalid URL path: the path must be a string or null/undefined.");if(null!=e.pathname&&"string"!=typeof e.pathname)throw new s("Invalid URL pathname: the pathname must be a string or null/undefined.");if(null!=e.hostname&&"string"!=typeof e.hostname)throw new s("Invalid URL hostname: the hostname must be a string or null/undefined.");if(null!=e.origin&&"string"!=typeof e.origin)throw new s("Invalid URL origin: the origin must be a string or null/undefined.");const t=null!=e.port?e.port:"https:"===e.protocol?443:80;let n=null!=e.origin?e.origin:`${e.protocol}//${e.hostname}:${t}`,r=null!=e.path?e.path:`${e.pathname||""}${e.search||""}`;n.endsWith("/")&&(n=n.substring(0,n.length-1)),r&&!r.startsWith("/")&&(r=`/${r}`),e=new URL(n+r)}return e}function h(e){return!e||!(!e.destroyed&&!e[t])}function g(e){const t=e&&e._readableState;return h(e)&&t&&!t.endEmitted}const A=/timeout=(\d+)/;function y(e){return e instanceof Uint8Array||Buffer.isBuffer(e)}let v;const b=!!String.prototype.toWellFormed;const C=Object.create(null);return C.enumerable=!0,util$b={kEnumerableProperty:C,nop:function(){},isDisturbed:function(e){return!(!e||!(i.isDisturbed?i.isDisturbed(e)||e[n]:e[n]||e.readableDidRead||e._readableState&&e._readableState.dataEmitted||g(e)))},isErrored:function(e){return!(!e||!(i.isErrored?i.isErrored(e):/state: 'errored'/.test(c.inspect(e))))},isReadable:function(e){return!(!e||!(i.isReadable?i.isReadable(e):/state: 'readable'/.test(c.inspect(e))))},toUSVString:function(e){return b?`${e}`.toWellFormed():c.toUSVString?c.toUSVString(e):`${e}`},isReadableAborted:g,isBlobLike:_,parseOrigin:function(e){if("/"!==(e=m(e)).pathname||e.search||e.hash)throw new s("invalid url");return e},parseURL:m,getServerName:function(t){if(!t)return null;e.strictEqual(typeof t,"string");const n=function(t){if("["===t[0]){const n=t.indexOf("]");return e(-1!==n),t.substring(1,n)}const n=t.indexOf(":");return-1===n?t:t.substring(0,n)}(t);return o.isIP(n)?"":n},isStream:f,isIterable:function(e){return!(null==e||"function"!=typeof e[Symbol.iterator]&&"function"!=typeof e[Symbol.asyncIterator])},isAsyncIterable:function(e){return!(null==e||"function"!=typeof e[Symbol.asyncIterator])},isDestroyed:h,headerNameToString:function(e){return u[e]||e.toLowerCase()},parseRawHeaders:function(e){const t=[];let n=!1,r=-1;for(let i=0;ie.toString("utf8"))):t[r]=e[n+1].toString("utf8")}return"content-length"in t&&"content-disposition"in t&&(t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")),t},parseKeepAliveTimeout:function(e){const t=e.toString().match(A);return t?1e3*parseInt(t[1],10):null},destroy:function(e,n){null!=e&&f(e)&&!h(e)&&("function"==typeof e.destroy?(Object.getPrototypeOf(e).constructor===r&&(e.socket=null),e.destroy(n)):n&&process.nextTick(((e,t)=>{e.emit("error",t)}),e,n),!0!==e.destroyed&&(e[t]=!0))},bodyLength:function(e){if(null==e)return 0;if(f(e)){const t=e._readableState;return t&&!1===t.objectMode&&!0===t.ended&&Number.isFinite(t.length)?t.length:null}return _(e)?null!=e.size?e.size:null:y(e)?e.byteLength:null},deepClone:function(e){return JSON.parse(JSON.stringify(e))},ReadableStreamFrom:function(e){if(v||(v=require$$13.ReadableStream),v.from)return v.from(async function*(e){for await(const t of e)yield Buffer.isBuffer(t)?t:Buffer.from(t)}(e));let t;return new v({async start(){t=e[Symbol.asyncIterator]()},async pull(e){const{done:n,value:r}=await t.next();if(n)queueMicrotask((()=>{e.close()}));else{const t=Buffer.isBuffer(r)?r:Buffer.from(r);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)},isBuffer:y,validateHandler:function(e,t,n){if(!e||"object"!=typeof e)throw new s("handler must be an object");if("function"!=typeof e.onConnect)throw new s("invalid onConnect method");if("function"!=typeof e.onError)throw new s("invalid onError method");if("function"!=typeof e.onBodySent&&void 0!==e.onBodySent)throw new s("invalid onBodySent method");if(n||"CONNECT"===t){if("function"!=typeof e.onUpgrade)throw new s("invalid onUpgrade method")}else{if("function"!=typeof e.onHeaders)throw new s("invalid onHeaders method");if("function"!=typeof e.onData)throw new s("invalid onData method");if("function"!=typeof e.onComplete)throw new s("invalid onComplete method")}},getSocketInfo:function(e){return{localAddress:e.localAddress,localPort:e.localPort,remoteAddress:e.remoteAddress,remotePort:e.remotePort,remoteFamily:e.remoteFamily,timeout:e.timeout,bytesWritten:e.bytesWritten,bytesRead:e.bytesRead}},isFormDataLike:function(e){return e&&"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&"FormData"===e[Symbol.toStringTag]},buildURL:function(e,t){if(e.includes("?")||e.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');const n=l(t);return n&&(e+="?"+n),e},throwIfAborted:function(e){if(e)if("function"==typeof e.throwIfAborted)e.throwIfAborted();else if(e.aborted){const e=new Error("The operation was aborted");throw e.name="AbortError",e}},addAbortListener:function(e,t){return"addEventListener"in e?(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)):(e.addListener("abort",t),()=>e.removeListener("abort",t))},parseRangeHeader:function(e){if(null==e||""===e)return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null},nodeMajor:d,nodeMinor:p,nodeHasAutoSelectFamily:d>18||18===d&&p>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]},util$b}function requireTimers(){if(hasRequiredTimers)return timers;hasRequiredTimers=1;let e,t=Date.now();const n=[];function r(){t=Date.now();let e=n.length,r=0;for(;r0&&t>=i.state&&(i.state=-1,i.callback(i.opaque)),-1===i.state?(i.state=-2,r!==e-1?n[r]=n.pop():n.pop(),e-=1):r+=1}n.length>0&&i()}function i(){e&&e.refresh?e.refresh():(clearTimeout(e),e=setTimeout(r,1e3),e.unref&&e.unref())}class o{constructor(e,t,n){this.callback=e,this.delay=t,this.opaque=n,this.state=-2,this.refresh()}refresh(){-2===this.state&&(n.push(this),e&&1!==n.length||i()),this.state=0}clear(){this.state=-1}}return timers={setTimeout:(e,t,n)=>t<1e3?setTimeout(e,t,n):new o(e,t,n),clearTimeout(e){e instanceof o?e.clear():clearTimeout(e)}},timers}var main$3={exports:{}},sbmh,hasRequiredSbmh,PartStream_1,hasRequiredPartStream,getLimit,hasRequiredGetLimit,HeaderParser_1,hasRequiredHeaderParser,Dicer_1,hasRequiredDicer,decodeText_1,hasRequiredDecodeText,parseParams_1,hasRequiredParseParams,basename,hasRequiredBasename,multipart,hasRequiredMultipart,Decoder_1,hasRequiredDecoder,urlencoded,hasRequiredUrlencoded,hasRequiredMain,constants$3,hasRequiredConstants$3,global$3,hasRequiredGlobal$1,util$a,hasRequiredUtil$a,symbols$3,hasRequiredSymbols$3,webidl_1,hasRequiredWebidl,dataURL,hasRequiredDataURL,file$1,hasRequiredFile$1,formdata,hasRequiredFormdata,body,hasRequiredBody,request$2,hasRequiredRequest$2,dispatcher,hasRequiredDispatcher,dispatcherBase,hasRequiredDispatcherBase,connect,hasRequiredConnect;function requireSbmh(){if(hasRequiredSbmh)return sbmh;hasRequiredSbmh=1;const e=require$$0$h.EventEmitter;function t(e){if("string"==typeof e&&(e=Buffer.from(e)),!Buffer.isBuffer(e))throw new TypeError("The needle has to be a String or a Buffer.");const t=e.length;if(0===t)throw new Error("The needle cannot be an empty String/Buffer.");if(t>256)throw new Error("The needle cannot have a length bigger than 256.");this.maxMatches=1/0,this.matches=0,this._occ=new Array(256).fill(t),this._lookbehind_size=0,this._needle=e,this._bufpos=0,this._lookbehind=Buffer.alloc(t);for(var n=0;n=0)){const n=this._lookbehind_size+s;return n>0&&this.emit("info",!1,this._lookbehind,0,n),this._lookbehind.copy(this._lookbehind,0,n,this._lookbehind_size-n),this._lookbehind_size-=n,e.copy(this._lookbehind,this._lookbehind_size),this._lookbehind_size+=t,this._bufpos=t,t}this.emit("info",!1,this._lookbehind,0,this._lookbehind_size),this._lookbehind_size=0}if(s+=(s>=0)*this._bufpos,-1!==e.indexOf(n,s))return s=e.indexOf(n,s),++this.matches,s>0?this.emit("info",!0,e,this._bufpos,s):this.emit("info",!0),this._bufpos=s+r;for(s=t-r;s0&&this.emit("info",!1,e,this._bufpos,s=o.maxHeaderSize?(r=o.maxHeaderSize-o.nread+n,o.nread=o.maxHeaderSize,o.maxed=!0):o.nread+=r-n,o.buffer+=t.toString("binary",n,r)),e&&o._finish()}))}return t(a,e),a.prototype.push=function(e){const t=this.ss.push(e);if(this.finished)return t},a.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()},a.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",e)},a.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;const e=this.buffer.split(o),t=e.length;let n,r;for(var i=0;i0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,t)),e.utf8Slice(0,e.length)),latin1:(e,t)=>0===e.length?"":"string"==typeof e?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,t)),e.ucs2Slice(0,e.length)),base64:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,t)),e.base64Slice(0,e.length)),other:(e,n)=>{if(0===e.length)return"";if("string"==typeof e&&(e=Buffer.from(e,n)),t.has(this.toString()))try{return t.get(this).decode(e)}catch{}return"string"==typeof e?e:e.toString()}};return decodeText_1=function(e,t,r){return e?function(e){let t;for(;;)switch(e){case"utf-8":case"utf8":return n.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 n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(void 0===t){t=!0,e=e.toLowerCase();continue}return n.other.bind(e)}}(r)(e,t):e},decodeText_1}function requireParseParams(){if(hasRequiredParseParams)return parseParams_1;hasRequiredParseParams=1;const e=requireDecodeText(),t=/%[a-fA-F0-9][a-fA-F0-9]/g,n={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%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":"","%1B":"","%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":"ย ","%A0":"ย ","%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":"รพ","%ff":"รฟ","%Ff":"รฟ","%fF":"รฟ","%FF":"รฟ"};function r(e){return n[e]}return parseParams_1=function(n){const i=[];let o=0,s="",a=!1,c=!1,l=0,u="";const d=n.length;for(var p=0;p=0;--t)switch(e.charCodeAt(t)){case 47:case 92:return".."===(e=e.slice(t+1))||"."===e?"":e}return".."===e||"."===e?"":e}),basename}function requireMultipart(){if(hasRequiredMultipart)return multipart;hasRequiredMultipart=1;const{Readable:e}=require$$0$i,{inherits:t}=require$$1$2,n=requireDicer(),r=requireParseParams(),i=requireDecodeText(),o=requireBasename(),s=requireGetLimit(),a=/^boundary$/i,c=/^form-data$/i,l=/^charset$/i,u=/^filename$/i,d=/^name$/i;function p(e,t){let p,m;const h=this;let g;const A=t.limits,y=t.isPartAFile||((e,t,n)=>"application/octet-stream"===t||void 0!==n),v=t.parsedConType||[],b=t.defCharset||"utf8",C=t.preservePath,E={highWaterMark:t.fileHwm};for(p=0,m=v.length;pI)return h.parser.removeListener("part",t),h.parser.on("part",f),e.hitPartsLimit=!0,e.emit("partsLimit"),f(n);if(P){const e=P;e.emit("end"),e.removeAllListeners("end")}n.on("header",(function(t){let s,a,g,A,v,I,T,F,q=0;if(t["content-type"]&&(g=r(t["content-type"][0]),g[0]))for(s=g[0].toLowerCase(),p=0,m=g.length;pk){const r=k-q+e.length;return r>0&&t.push(e.slice(0,r)),t.truncated=!0,t.bytesRead=k,n.removeAllListeners("data"),void t.emit("limit")}t.push(e)||(h._pause=!0),t.bytesRead=q},F=function(){R=void 0,t.push(null)}}else{if(B===w)return e.hitFieldsLimit||(e.hitFieldsLimit=!0,e.emit("fieldsLimit")),f(n);++B,++O;let t="",r=!1;P=n,T=function(e){if((q+=e.length)>S){const i=S-(q-e.length);t+=e.toString("binary",0,i),r=!0,n.removeAllListeners("data")}else t+=e.toString("binary")},F=function(){P=void 0,t.length&&(t=i(t,"binary",A)),e.emit("field",a,t,!1,r,v,s),--O,x()}}n._readableState.sync=!1,n.on("data",T),n.on("end",F)})).on("error",(function(e){R&&R.emit("error",e)}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){q=!0,x()}))}function f(e){e.resume()}function _(t){e.call(this,t),this.bytesRead=0,this.truncated=!1}return p.detect=/^multipart\/form-data/i,p.prototype.write=function(e,t){const n=this.parser.write(e);n&&!this._pause?t():(this._needDrain=!n,this._cb=t)},p.prototype.end=function(){const e=this;e.parser.writable?e.parser.end():e._boy._done||process.nextTick((function(){e._boy._done=!0,e._boy.emit("finish")}))},t(_,e),_.prototype._read=function(e){},multipart=p}function requireDecoder(){if(hasRequiredDecoder)return Decoder_1;hasRequiredDecoder=1;const e=/\+/g,t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function n(){this.buffer=void 0}return n.prototype.write=function(n){let r="",i=0,o=0;const s=(n=n.replace(e," ")).length;for(;io&&(r+=n.substring(o,i),o=i),this.buffer="",++o);return os&&(this._key+=this.decoder.write(e.toString("binary",s,r))),this._state="val",this._hitLimit=!1,this._checkingBytes=!0,this._val="",this._bytesVal=0,this._valTrunc=!1,this.decoder.reset(),s=r+1;else if(void 0!==i){let r;++this._fields;const o=this._keyTrunc;if(r=i>s?this._key+=this.decoder.write(e.toString("binary",s,i)):this._key,this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),r.length&&this.boy.emit("field",t(r,"binary",this.charset),"",o,!1),s=i+1,this._fields===this.fieldsLimit)return n()}else this._hitLimit?(o>s&&(this._key+=this.decoder.write(e.toString("binary",s,o))),s=o,(this._bytesKey=this._key.length)===this.fieldNameSizeLimit&&(this._checkingBytes=!1,this._keyTrunc=!0)):(ss&&(this._val+=this.decoder.write(e.toString("binary",s,i))),this.boy.emit("field",t(this._key,"binary",this.charset),t(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this._state="key",this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),s=i+1,this._fields===this.fieldsLimit)return n()}else this._hitLimit?(o>s&&(this._val+=this.decoder.write(e.toString("binary",s,o))),s=o,(""===this._val&&0===this.fieldSizeLimit||(this._bytesVal=this._val.length)===this.fieldSizeLimit)&&(this._checkingBytes=!1,this._valTrunc=!0)):(s0?this.boy.emit("field",t(this._key,"binary",this.charset),"",this._keyTrunc,!1):"val"===this._state&&this.boy.emit("field",t(this._key,"binary",this.charset),t(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this.boy._done=!0,this.boy.emit("finish"))},urlencoded=i}function requireMain(){if(hasRequiredMain)return main$3.exports;hasRequiredMain=1;const e=require$$0$i.Writable,{inherits:t}=require$$1$2,n=requireDicer(),r=requireMultipart(),i=requireUrlencoded(),o=requireParseParams();function s(t){if(!(this instanceof s))return new s(t);if("object"!=typeof t)throw new TypeError("Busboy expected an options-Object.");if("object"!=typeof t.headers)throw new TypeError("Busboy expected an options-Object with headers-attribute.");if("string"!=typeof t.headers["content-type"])throw new TypeError("Missing Content-Type-header.");const{headers:n,...r}=t;this.opts={autoDestroy:!1,...r},e.call(this,this.opts),this._done=!1,this._parser=this.getParserByHeaders(n),this._finished=!1}return t(s,e),s.prototype.emit=function(t){if("finish"===t){if(!this._done)return void this._parser?.end();if(this._finished)return;this._finished=!0}e.prototype.emit.apply(this,arguments)},s.prototype.getParserByHeaders=function(e){const t=o(e["content-type"]),n={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(r.detect.test(t[0]))return new r(this,n);if(i.detect.test(t[0]))return new i(this,n);throw new Error("Unsupported Content-Type.")},s.prototype._write=function(e,t,n){this._parser.write(e,n)},main$3.exports=s,main$3.exports.default=s,main$3.exports.Busboy=s,main$3.exports.Dicer=n,main$3.exports}function requireConstants$3(){if(hasRequiredConstants$3)return constants$3;hasRequiredConstants$3=1;const{MessageChannel:e,receiveMessageOnPort:t}=require$$0$j,n=["GET","HEAD","POST"],r=new Set(n),i=[301,302,303,307,308],o=new Set(i),s=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"],a=new Set(s),c=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],l=new Set(c),u=["GET","HEAD","OPTIONS","TRACE"],d=new Set(u),p=["CONNECT","TRACE","TRACK"],f=new Set(p),_=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],m=new Set(_),h=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let g;const A=globalThis.structuredClone??function(n,r=void 0){if(0===arguments.length)throw new TypeError("missing argument");return g||(g=new e),g.port1.unref(),g.port2.unref(),g.port1.postMessage(n,r?.transfer),t(g.port2).message};return constants$3={DOMException:h,structuredClone:A,subresource:_,forbiddenMethods:p,requestBodyHeader:["content-encoding","content-language","content-location","content-type","content-length"],referrerPolicy:c,requestRedirect:["follow","manual","error"],requestMode:["navigate","same-origin","no-cors","cors"],requestCredentials:["omit","same-origin","include"],requestCache:["default","no-store","reload","no-cache","force-cache","only-if-cached"],redirectStatus:i,corsSafeListedMethods:n,nullBodyStatus:[101,204,205,304],safeMethods:u,badPorts:s,requestDuplex:["half"],subresourceSet:m,badPortsSet:a,redirectStatusSet:o,corsSafeListedMethodsSet:r,safeMethodsSet:d,forbiddenMethodsSet:f,referrerPolicySet:l}}function requireGlobal$1(){if(hasRequiredGlobal$1)return global$3;hasRequiredGlobal$1=1;const e=Symbol.for("undici.globalOrigin.1");return global$3={getGlobalOrigin:function(){return globalThis[e]},setGlobalOrigin:function(t){if(void 0===t)return void Object.defineProperty(globalThis,e,{value:void 0,writable:!0,enumerable:!1,configurable:!1});const n=new URL(t);if("http:"!==n.protocol&&"https:"!==n.protocol)throw new TypeError(`Only http & https urls are allowed, received ${n.protocol}`);Object.defineProperty(globalThis,e,{value:n,writable:!0,enumerable:!1,configurable:!1})}}}function requireUtil$a(){if(hasRequiredUtil$a)return util$a;hasRequiredUtil$a=1;const{redirectStatusSet:e,referrerPolicySet:t,badPortsSet:n}=requireConstants$3(),{getGlobalOrigin:r}=requireGlobal$1(),{performance:i}=require$$2$2,{isBlobLike:o,toUSVString:s,ReadableStreamFrom:a}=requireUtil$b(),c=require$$0$f,{isUint8Array:l}=require$$5$1;let u,d=[];try{u=require("crypto");const e=["sha256","sha384","sha512"];d=u.getHashes().filter((t=>e.includes(t)))}catch{}function p(e){const t=e.urlList,n=t.length;return 0===n?null:t[n-1].toString()}function f(e){return e.urlList[e.urlList.length-1]}function _(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return!1;default:return e>=33&&e<=126}}function m(e){if(0===e.length)return!1;for(let t=0;tsha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function v(e){const t=[];let n=!0;for(const r of e.split(" ")){n=!1;const e=y.exec(r);if(null===e||void 0===e.groups||void 0===e.groups.algo)continue;const i=e.groups.algo.toLowerCase();d.includes(i)&&t.push(e.groups)}return!0===n?"no metadata":t}function b(e,t){if(e.length!==t.length)return!1;for(let n=0;nObject.prototype.hasOwnProperty.call(e,t));return util$a={isAborted:function(e){return"aborted"===e.controller.state},isCancelled:function(e){return"aborted"===e.controller.state||"terminated"===e.controller.state},createDeferredPromise:function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return{promise:n,resolve:e,reject:t}},ReadableStreamFrom:a,toUSVString:s,tryUpgradeRequestToAPotentiallyTrustworthyURL:function(e){},coarsenedSharedCurrentTime:function(e){return i.now()},determineRequestsReferrer:function(e){const t=e.referrerPolicy;c(t);let n=null;if("client"===e.referrer){const e=r();if(!e||"null"===e.origin)return"no-referrer";n=new URL(e)}else e.referrer instanceof URL&&(n=e.referrer);let i=g(n);const o=g(n,!0);i.toString().length>4096&&(i=o);const s=C(e,i),a=A(i)&&!A(e.url);switch(t){case"origin":return null!=o?o:g(n,!0);case"unsafe-url":return i;case"same-origin":return s?o:"no-referrer";case"origin-when-cross-origin":return s?i:o;case"strict-origin-when-cross-origin":{const t=f(e);return C(i,t)?i:A(i)&&!A(t)?"no-referrer":o}default:return a?"no-referrer":o}},makePolicyContainer:function(){return{referrerPolicy:"strict-origin-when-cross-origin"}},clonePolicyContainer:function(e){return{referrerPolicy:e.referrerPolicy}},appendFetchMetadata:function(e){let t=null;t=e.mode,e.headersList.set("sec-fetch-mode",t)},appendRequestOriginHeader:function(e){let t=e.origin;if("cors"===e.responseTainting||"websocket"===e.mode)t&&e.headersList.append("origin",t);else if("GET"!==e.method&&"HEAD"!==e.method){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&&D(e.origin)&&!D(f(e))&&(t=null);break;case"same-origin":C(e,f(e))||(t=null)}t&&e.headersList.append("origin",t)}},TAOCheck:function(){return"success"},corsCheck:function(){return"success"},crossOriginResourcePolicyCheck:function(){return"allowed"},createOpaqueTimingInfo:function(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}},setRequestReferrerPolicyOnRedirect:function(e,n){const{headersList:r}=n,i=(r.get("referrer-policy")??"").split(",");let o="";if(i.length>0)for(let e=i.length;0!==e;e--){const n=i[e-1].trim();if(t.has(n)){o=n;break}}""!==o&&(e.referrerPolicy=o)},isValidHTTPToken:m,requestBadPort:function(e){const t=f(e);return w(t)&&n.has(t.port)?"blocked":"allowed"},requestCurrentURL:f,responseURL:p,responseLocationURL:function(t,n){if(!e.has(t.status))return null;let r=t.headersList.get("location");return null!==r&&h(r)&&(r=new URL(r,p(t))),r&&!r.hash&&(r.hash=n),r},isBlobLike:o,isURLPotentiallyTrustworthy:A,isValidReasonPhrase:function(e){for(let t=0;t=32&&n<=126||n>=128&&n<=255))return!1}return!0},sameOrigin:C,normalizeMethod:function(e){return E[e.toLowerCase()]??e},serializeJavascriptValueToJSONString:function(e){const t=JSON.stringify(e);if(void 0===t)throw new TypeError("Value is not JSON serializable");return c("string"==typeof t),t},makeIterator:function(e,t,n){const r={index:0,kind:n,target:e},i={next(){if(Object.getPrototypeOf(this)!==i)throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);const{index:e,kind:n,target:o}=r,s=o();if(e>=s.length)return{value:void 0,done:!0};const a=s[e];return r.index=e+1,function(e,t){let n;switch(t){case"key":n=e[0];break;case"value":n=e[1];break;case"key+value":n=e}return{value:n,done:!1}}(a,n)},[Symbol.toStringTag]:`${t} Iterator`};return Object.setPrototypeOf(i,x),Object.setPrototypeOf({},i)},isValidHeaderName:function(e){return m(e)},isValidHeaderValue:h,hasOwn:I,isErrorLike:function(e){return e instanceof Error||"Error"===e?.constructor?.name||"DOMException"===e?.constructor?.name},fullyReadBody:async function(e,t,n){const r=t,i=n;let o;try{o=e.stream.getReader()}catch(e){return void i(e)}try{r(await k(o))}catch(e){i(e)}},bytesMatch:function(e,t){if(void 0===u)return!0;const n=v(t);if("no metadata"===n)return!0;if(0===n.length)return!0;const r=function(e){let t=e[0].algo;if("5"===t[3])return t;for(let n=1;ne+String.fromCharCode(t)),"")},urlIsLocal:function(e){c("protocol"in e);const t=e.protocol;return"about:"===t||"blob:"===t||"data:"===t},urlHasHttpsScheme:D,urlIsHttpHttpsScheme:w,readAllBytes:k,normalizeMethodRecord:E,parseMetadata:v},util$a}function requireSymbols$3(){return hasRequiredSymbols$3?symbols$3:(hasRequiredSymbols$3=1,symbols$3={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")})}function requireWebidl(){if(hasRequiredWebidl)return webidl_1;hasRequiredWebidl=1;const{types:e}=require$$0__default,{hasOwn:t,toUSVString:n}=requireUtil$a(),r={converters:{},util:{},errors:{}};return r.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)},r.errors.conversionFailed=function(e){const t=1===e.types.length?"":" one of",n=`${e.argument} could not be converted to${t}: ${e.types.join(", ")}.`;return r.errors.exception({header:e.prefix,message:n})},r.errors.invalidArgument=function(e){return r.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})},r.brandCheck=function(e,t,n=void 0){if(!1===n?.strict||e instanceof t)return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag];throw new TypeError("Illegal invocation")},r.argumentLengthCheck=function({length:e},t,n){if(eo)throw r.errors.exception({header:"Integer conversion",message:`Value must be between ${s}-${o}, got ${a}.`});return a}return Number.isNaN(a)||!0!==i.clamp?Number.isNaN(a)||0===a&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY?0:(a=r.util.IntegerPart(a),a%=Math.pow(2,t),"signed"===n&&a>=Math.pow(2,t)-1?a-Math.pow(2,t):a):(a=Math.min(Math.max(a,s),o),a=Math.floor(a)%2==0?Math.floor(a):Math.ceil(a),a)},r.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));return e<0?-1*t:t},r.sequenceConverter=function(e){return t=>{if("Object"!==r.util.Type(t))throw r.errors.exception({header:"Sequence",message:`Value of type ${r.util.Type(t)} is not an Object.`});const n=t?.[Symbol.iterator]?.(),i=[];if(void 0===n||"function"!=typeof n.next)throw r.errors.exception({header:"Sequence",message:"Object is not an iterator."});for(;;){const{done:t,value:r}=n.next();if(t)break;i.push(e(r))}return i}},r.recordConverter=function(t,n){return i=>{if("Object"!==r.util.Type(i))throw r.errors.exception({header:"Record",message:`Value of type ${r.util.Type(i)} is not an Object.`});const o={};if(!e.isProxy(i)){const e=Object.keys(i);for(const r of e){const e=t(r),s=n(i[r]);o[e]=s}return o}const s=Reflect.ownKeys(i);for(const e of s){const r=Reflect.getOwnPropertyDescriptor(i,e);if(r?.enumerable){const r=t(e),s=n(i[e]);o[r]=s}}return o}},r.interfaceConverter=function(e){return(t,n={})=>{if(!1!==n.strict&&!(t instanceof e))throw r.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`});return t}},r.dictionaryConverter=function(e){return n=>{const i=r.util.Type(n),o={};if("Null"===i||"Undefined"===i)return o;if("Object"!==i)throw r.errors.exception({header:"Dictionary",message:`Expected ${n} to be one of: Null, Undefined, Object.`});for(const i of e){const{key:e,defaultValue:s,required:a,converter:c}=i;if(!0===a&&!t(n,e))throw r.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`});let l=n[e];const u=t(i,"defaultValue");if(u&&null!==l&&(l=l??s),a||u||void 0!==l){if(l=c(l),i.allowedValues&&!i.allowedValues.includes(l))throw r.errors.exception({header:"Dictionary",message:`${l} is not an accepted type. Expected one of ${i.allowedValues.join(", ")}.`});o[e]=l}}return o}},r.nullableConverter=function(e){return t=>null===t?t:e(t)},r.converters.DOMString=function(e,t={}){if(null===e&&t.legacyNullToEmptyString)return"";if("symbol"==typeof e)throw new TypeError("Could not convert argument of type symbol to string.");return String(e)},r.converters.ByteString=function(e){const t=r.converters.DOMString(e);for(let e=0;e255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`);return t},r.converters.USVString=n,r.converters.boolean=function(e){return Boolean(e)},r.converters.any=function(e){return e},r.converters["long long"]=function(e){return r.util.ConvertToInt(e,64,"signed")},r.converters["unsigned long long"]=function(e){return r.util.ConvertToInt(e,64,"unsigned")},r.converters["unsigned long"]=function(e){return r.util.ConvertToInt(e,32,"unsigned")},r.converters["unsigned short"]=function(e,t){return r.util.ConvertToInt(e,16,"unsigned",t)},r.converters.ArrayBuffer=function(t,n={}){if("Object"!==r.util.Type(t)||!e.isAnyArrayBuffer(t))throw r.errors.conversionFailed({prefix:`${t}`,argument:`${t}`,types:["ArrayBuffer"]});if(!1===n.allowShared&&e.isSharedArrayBuffer(t))throw r.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return t},r.converters.TypedArray=function(t,n,i={}){if("Object"!==r.util.Type(t)||!e.isTypedArray(t)||t.constructor.name!==n.name)throw r.errors.conversionFailed({prefix:`${n.name}`,argument:`${t}`,types:[n.name]});if(!1===i.allowShared&&e.isSharedArrayBuffer(t.buffer))throw r.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return t},r.converters.DataView=function(t,n={}){if("Object"!==r.util.Type(t)||!e.isDataView(t))throw r.errors.exception({header:"DataView",message:"Object is not a DataView."});if(!1===n.allowShared&&e.isSharedArrayBuffer(t.buffer))throw r.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return t},r.converters.BufferSource=function(t,n={}){if(e.isAnyArrayBuffer(t))return r.converters.ArrayBuffer(t,n);if(e.isTypedArray(t))return r.converters.TypedArray(t,t.constructor);if(e.isDataView(t))return r.converters.DataView(t,n);throw new TypeError(`Could not convert ${t} to a BufferSource.`)},r.converters["sequence"]=r.sequenceConverter(r.converters.ByteString),r.converters["sequence>"]=r.sequenceConverter(r.converters["sequence"]),r.converters["record"]=r.recordConverter(r.converters.ByteString,r.converters.ByteString),webidl_1={webidl:r}}function requireDataURL(){if(hasRequiredDataURL)return dataURL;hasRequiredDataURL=1;const e=require$$0$f,{atob:t}=require$$7$1,{isomorphicDecode:n}=requireUtil$a(),r=new TextEncoder,i=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/,o=/(\u000A|\u000D|\u0009|\u0020)/,s=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function a(e,t=!1){if(!t)return e.href;const n=e.href,r=e.hash.length;return 0===r?n:n.substring(0,n.length-r)}function c(e,t,n){let r="";for(;n.positione.length)return"failure";t.position++;let r=l(";",e,t);if(r=_(r,!1,!0),0===r.length||!i.test(r))return"failure";const a=n.toLowerCase(),u=r.toLowerCase(),d={type:a,subtype:u,parameters:new Map,essence:`${a}/${u}`};for(;t.positiono.test(e)),e,t);let n=c((e=>";"!==e&&"="!==e),e,t);if(n=n.toLowerCase(),t.positione.length)break;let r=null;if('"'===e[t.position])r=p(e,t,!0),l(";",e,t);else if(r=l(";",e,t),r=_(r,!1,!0),0===r.length)continue;0===n.length||!i.test(n)||0!==r.length&&!s.test(r)||d.parameters.has(n)||d.parameters.set(n,r)}return d}function p(t,n,r){const i=n.position;let o="";for(e('"'===t[n.position]),n.position++;o+=c((e=>'"'!==e&&"\\"!==e),t,n),!(n.position>=t.length);){const r=t[n.position];if(n.position++,"\\"!==r){e('"'===r);break}if(n.position>=t.length){o+="\\";break}o+=t[n.position],n.position++}return r?o:t.slice(i,n.position)}function f(e){return"\r"===e||"\n"===e||"\t"===e||" "===e}function _(e,t=!0,n=!0){let r=0,i=e.length-1;if(t)for(;r0&&f(e[i]);i--);return e.slice(r,i+1)}function m(e){return"\r"===e||"\n"===e||"\t"===e||"\f"===e||" "===e}return dataURL={dataURLProcessor:function(r){e("data:"===r.protocol);let i=a(r,!0);i=i.slice(5);const o={position:0};let s=l(",",i,o);const c=s.length;if(s=function(e,t=!0,n=!0){let r=0,i=e.length-1;if(t)for(;r0&&m(e[i]);i--);return e.slice(r,i+1)}(s,!0,!0),o.position>=i.length)return"failure";o.position++;let p=u(i.slice(c+1));if(/;(\u0020){0,}base64$/i.test(s)){if(p=function(e){(e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"")).length%4==0&&(e=e.replace(/=?=$/,""));if(e.length%4==1)return"failure";if(/[^+/0-9A-Za-z]/.test(e))return"failure";const n=t(e),r=new Uint8Array(n.length);for(let e=0;e"](e);const u=t=o.converters.USVString(t);let d,f=(c=o.converters.FilePropertyBag(c)).type;e:{if(f){if(f=s(f),"failure"===f){f="";break e}f=a(f).toLowerCase()}d=c.lastModified}super(function(e,t){const r=[];for(const o of e)if("string"==typeof o){let e=o;"native"===t.endings&&(e=p(e)),r.push(l.encode(e))}else n.isAnyArrayBuffer(o)||n.isTypedArray(o)?o.buffer?r.push(new Uint8Array(o.buffer,o.byteOffset,o.byteLength)):r.push(new Uint8Array(o)):i(o)&&r.push(o);return r}(e,c),{type:f}),this[r]={name:u,lastModified:d,type:f}}get name(){return o.brandCheck(this,u),this[r].name}get lastModified(){return o.brandCheck(this,u),this[r].lastModified}get type(){return o.brandCheck(this,u),this[r].type}}class d{constructor(e,t,n={}){const i=t,o=n.type,s=n.lastModified??Date.now();this[r]={blobLike:e,name:i,type:o,lastModified:s}}stream(...e){return o.brandCheck(this,d),this[r].blobLike.stream(...e)}arrayBuffer(...e){return o.brandCheck(this,d),this[r].blobLike.arrayBuffer(...e)}slice(...e){return o.brandCheck(this,d),this[r].blobLike.slice(...e)}text(...e){return o.brandCheck(this,d),this[r].blobLike.text(...e)}get size(){return o.brandCheck(this,d),this[r].blobLike.size}get type(){return o.brandCheck(this,d),this[r].blobLike.type}get name(){return o.brandCheck(this,d),this[r].name}get lastModified(){return o.brandCheck(this,d),this[r].lastModified}get[Symbol.toStringTag](){return"File"}}function p(e){let t="\n";return"win32"===process.platform&&(t="\r\n"),e.replace(/\r?\n/g,t)}return Object.defineProperties(u.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:c,lastModified:c}),o.converters.Blob=o.interfaceConverter(e),o.converters.BlobPart=function(e,t){if("Object"===o.util.Type(e)){if(i(e))return o.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||n.isAnyArrayBuffer(e))return o.converters.BufferSource(e,t)}return o.converters.USVString(e,t)},o.converters["sequence"]=o.sequenceConverter(o.converters.BlobPart),o.converters.FilePropertyBag=o.dictionaryConverter([{key:"lastModified",converter:o.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:o.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>("native"!==(e=(e=o.converters.DOMString(e)).toLowerCase())&&(e="transparent"),e),defaultValue:"transparent"}]),file$1={File:u,FileLike:d,isFileLike:function(e){return t&&e instanceof t||e instanceof u||e&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&"File"===e[Symbol.toStringTag]}}}function requireFormdata(){if(hasRequiredFormdata)return formdata;hasRequiredFormdata=1;const{isBlobLike:e,toUSVString:t,makeIterator:n}=requireUtil$a(),{kState:r}=requireSymbols$3(),{File:i,FileLike:o,isFileLike:s}=requireFile$1(),{webidl:a}=requireWebidl(),{Blob:c,File:l}=require$$7$1,u=l??i;class d{constructor(e){if(void 0!==e)throw a.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[r]=[]}append(t,n,i=void 0){if(a.brandCheck(this,d),a.argumentLengthCheck(arguments,2,{header:"FormData.append"}),3===arguments.length&&!e(n))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");const o=p(t=a.converters.USVString(t),n=e(n)?a.converters.Blob(n,{strict:!1}):a.converters.USVString(n),i=3===arguments.length?a.converters.USVString(i):void 0);this[r].push(o)}delete(e){a.brandCheck(this,d),a.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=a.converters.USVString(e),this[r]=this[r].filter((t=>t.name!==e))}get(e){a.brandCheck(this,d),a.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=a.converters.USVString(e);const t=this[r].findIndex((t=>t.name===e));return-1===t?null:this[r][t].value}getAll(e){return a.brandCheck(this,d),a.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=a.converters.USVString(e),this[r].filter((t=>t.name===e)).map((e=>e.value))}has(e){return a.brandCheck(this,d),a.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=a.converters.USVString(e),-1!==this[r].findIndex((t=>t.name===e))}set(n,i,o=void 0){if(a.brandCheck(this,d),a.argumentLengthCheck(arguments,2,{header:"FormData.set"}),3===arguments.length&&!e(i))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");n=a.converters.USVString(n),i=e(i)?a.converters.Blob(i,{strict:!1}):a.converters.USVString(i),o=3===arguments.length?t(o):void 0;const s=p(n,i,o),c=this[r].findIndex((e=>e.name===n));-1!==c?this[r]=[...this[r].slice(0,c),s,...this[r].slice(c+1).filter((e=>e.name!==n))]:this[r].push(s)}entries(){return a.brandCheck(this,d),n((()=>this[r].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){return a.brandCheck(this,d),n((()=>this[r].map((e=>[e.name,e.value]))),"FormData","key")}values(){return a.brandCheck(this,d),n((()=>this[r].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){if(a.brandCheck(this,d),a.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),"function"!=typeof e)throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(const[n,r]of this)e.apply(t,[r,n,this])}}function p(e,t,n){if(e=Buffer.from(e).toString("utf8"),"string"==typeof t)t=Buffer.from(t).toString("utf8");else if(s(t)||(t=t instanceof c?new u([t],"blob",{type:t.type}):new o(t,"blob",{type:t.type})),void 0!==n){const e={type:t.type,lastModified:t.lastModified};t=l&&t instanceof l||t instanceof i?new u([t],n,e):new o(t,n,e)}return{name:e,value:t}}return d.prototype[Symbol.iterator]=d.prototype.entries,Object.defineProperties(d.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}}),formdata={FormData:d}}function requireBody(){if(hasRequiredBody)return body;hasRequiredBody=1;const e=requireMain(),t=requireUtil$b(),{ReadableStreamFrom:n,isBlobLike:r,isReadableStreamLike:i,readableStreamClose:o,createDeferredPromise:s,fullyReadBody:a}=requireUtil$a(),{FormData:c}=requireFormdata(),{kState:l}=requireSymbols$3(),{webidl:u}=requireWebidl(),{DOMException:d,structuredClone:p}=requireConstants$3(),{Blob:f,File:_}=require$$7$1,{kBodyUsed:m}=requireSymbols$4(),h=require$$0$f,{isErrored:g}=requireUtil$b(),{isUint8Array:A,isArrayBuffer:y}=require$$5$1,{File:v}=requireFile$1(),{parseMIMEType:b,serializeAMimeType:C}=requireDataURL();let E=globalThis.ReadableStream;const x=_??v,S=new TextEncoder,k=new TextDecoder;function D(e,s=!1){E||(E=require$$13.ReadableStream);let a=null;a=e instanceof E?e:r(e)?e.stream():new E({async pull(e){e.enqueue("string"==typeof l?S.encode(l):l),queueMicrotask((()=>o(e)))},start(){},type:void 0}),h(i(a));let c=null,l=null,u=null,d=null;if("string"==typeof e)l=e,d="text/plain;charset=UTF-8";else if(e instanceof URLSearchParams)l=e.toString(),d="application/x-www-form-urlencoded;charset=UTF-8";else if(y(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(t.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(1e11*Math.random())}`.padStart(11,"0")}`,n=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wรคrting */,r=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),i=e=>e.replace(/\r?\n|\r/g,"\r\n"),o=[],s=new Uint8Array([13,10]);u=0;let a=!1;for(const[t,c]of e)if("string"==typeof c){const e=S.encode(n+`; name="${r(i(t))}"`+`\r\n\r\n${i(c)}\r\n`);o.push(e),u+=e.byteLength}else{const e=S.encode(`${n}; name="${r(i(t))}"`+(c.name?`; filename="${r(c.name)}"`:"")+"\r\n"+`Content-Type: ${c.type||"application/octet-stream"}\r\n\r\n`);o.push(e,c,s),"number"==typeof c.size?u+=e.byteLength+c.size+s.byteLength:a=!0}const p=S.encode(`--${t}--`);o.push(p),u+=p.byteLength,a&&(u=null),l=e,c=async function*(){for(const e of o)e.stream?yield*e.stream():yield e},d="multipart/form-data; boundary="+t}else if(r(e))l=e,u=e.size,e.type&&(d=e.type);else if("function"==typeof e[Symbol.asyncIterator]){if(s)throw new TypeError("keepalive");if(t.isDisturbed(e)||e.locked)throw new TypeError("Response body object should not be disturbed or locked");a=e instanceof E?e:n(e)}if(("string"==typeof l||t.isBuffer(l))&&(u=Buffer.byteLength(l)),null!=c){let t;a=new E({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:r}=await t.next();return r?queueMicrotask((()=>{e.close()})):g(a)||e.enqueue(new Uint8Array(n)),e.desiredSize>0},async cancel(e){await t.return()},type:void 0})}return[{stream:a,source:l,length:u},d]}async function*w(e){if(e)if(A(e))yield e;else{const n=e.stream;if(t.isDisturbed(n))throw new TypeError("The body has already been consumed.");if(n.locked)throw new TypeError("The stream is locked.");n[m]=!0,yield*n}}function I(e){if(e.aborted)throw new d("The operation was aborted.","AbortError")}function T(t){const n={blob(){return F(this,(e=>{let t=function(e){const{headersList:t}=e[l],n=t.get("content-type");if(null===n)return"failure";return b(n)}(this);return"failure"===t?t="":t&&(t=C(t)),new f([e],{type:t})}),t)},arrayBuffer(){return F(this,(e=>new Uint8Array(e).buffer),t)},text(){return F(this,R,t)},json(){return F(this,P,t)},async formData(){u.brandCheck(this,t),I(this[l]);const n=this.headers.get("Content-Type");if(/multipart\/form-data/.test(n)){const t={};for(const[e,n]of this.headers)t[e.toLowerCase()]=n;const n=new c;let r;try{r=new e({headers:t,preservePath:!0})}catch(e){throw new d(`${e}`,"AbortError")}r.on("field",((e,t)=>{n.append(e,t)})),r.on("file",((e,t,r,i,o)=>{const s=[];if("base64"===i||"base64"===i.toLowerCase()){let i="";t.on("data",(e=>{i+=e.toString().replace(/[\r\n]/gm,"");const t=i.length-i.length%4;s.push(Buffer.from(i.slice(0,t),"base64")),i=i.slice(t)})),t.on("end",(()=>{s.push(Buffer.from(i,"base64")),n.append(e,new x(s,r,{type:o}))}))}else t.on("data",(e=>{s.push(e)})),t.on("end",(()=>{n.append(e,new x(s,r,{type:o}))}))}));const i=new Promise(((e,t)=>{r.on("finish",e),r.on("error",(e=>t(new TypeError(e))))}));if(null!==this.body)for await(const e of w(this[l].body))r.write(e);return r.end(),await i,n}if(/application\/x-www-form-urlencoded/.test(n)){let e;try{let t="";const n=new TextDecoder("utf-8",{ignoreBOM:!0});for await(const e of w(this[l].body)){if(!A(e))throw new TypeError("Expected Uint8Array chunk");t+=n.decode(e,{stream:!0})}t+=n.decode(),e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new c;for(const[n,r]of e)t.append(n,r);return t}throw await Promise.resolve(),I(this[l]),u.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}};return n}async function F(e,n,r){if(u.brandCheck(e,r),I(e[l]),function(e){return null!=e&&(e.stream.locked||t.isDisturbed(e.stream))}(e[l].body))throw new TypeError("Body is unusable");const i=s(),o=e=>i.reject(e),c=e=>{try{i.resolve(n(e))}catch(e){o(e)}};return null==e[l].body?(c(new Uint8Array),i.promise):(await a(e[l].body,c,o),i.promise)}function R(e){if(0===e.length)return"";239===e[0]&&187===e[1]&&191===e[2]&&(e=e.subarray(3));return k.decode(e)}function P(e){return JSON.parse(R(e))}return body={extractBody:D,safelyExtractBody:function(e,n=!1){return E||(E=require$$13.ReadableStream),e instanceof E&&(h(!t.isDisturbed(e),"The body has already been consumed."),h(!e.locked,"The stream is locked.")),D(e,n)},cloneBody:function(e){const[t,n]=e.stream.tee(),r=p(n,{transfer:[n]}),[,i]=r.tee();return e.stream=t,{stream:i,length:e.length,source:e.source}},mixinBody:function(e){Object.assign(e.prototype,T(e))}}}function requireRequest$2(){if(hasRequiredRequest$2)return request$2;hasRequiredRequest$2=1;const{InvalidArgumentError:e,NotSupportedError:t}=requireErrors$2(),n=require$$0$f,{kHTTP2BuildRequest:r,kHTTP2CopyHeaders:i,kHTTP1BuildRequest:o}=requireSymbols$4(),s=requireUtil$b(),a=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,c=/[^\t\x20-\x7e\x80-\xff]/,l=/[^\u0021-\u00ff]/,u=Symbol("handler"),d={};let p;try{const e=require("diagnostics_channel");d.create=e.channel("undici:request:create"),d.bodySent=e.channel("undici:request:bodySent"),d.headers=e.channel("undici:request:headers"),d.trailers=e.channel("undici:request:trailers"),d.error=e.channel("undici:request:error")}catch{d.create={hasSubscribers:!1},d.bodySent={hasSubscribers:!1},d.headers={hasSubscribers:!1},d.trailers={hasSubscribers:!1},d.error={hasSubscribers:!1}}class f{constructor(t,{path:n,method:r,body:i,headers:o,query:c,idempotent:f,blocking:_,upgrade:h,headersTimeout:g,bodyTimeout:A,reset:y,throwOnError:v,expectContinue:b},C){if("string"!=typeof n)throw new e("path must be a string");if("/"!==n[0]&&!n.startsWith("http://")&&!n.startsWith("https://")&&"CONNECT"!==r)throw new e("path must be an absolute URL or start with a slash");if(null!==l.exec(n))throw new e("invalid request path");if("string"!=typeof r)throw new e("method must be a string");if(null===a.exec(r))throw new e("invalid request method");if(h&&"string"!=typeof h)throw new e("upgrade must be a string");if(null!=g&&(!Number.isFinite(g)||g<0))throw new e("invalid headersTimeout");if(null!=A&&(!Number.isFinite(A)||A<0))throw new e("invalid bodyTimeout");if(null!=y&&"boolean"!=typeof y)throw new e("invalid reset");if(null!=b&&"boolean"!=typeof b)throw new e("invalid expectContinue");if(this.headersTimeout=g,this.bodyTimeout=A,this.throwOnError=!0===v,this.method=r,this.abort=null,null==i)this.body=null;else if(s.isStream(i)){this.body=i;const e=this.body._readableState;e&&e.autoDestroy||(this.endHandler=function(){s.destroy(this)},this.body.on("end",this.endHandler)),this.errorHandler=e=>{this.abort?this.abort(e):this.error=e},this.body.on("error",this.errorHandler)}else if(s.isBuffer(i))this.body=i.byteLength?i:null;else if(ArrayBuffer.isView(i))this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null;else if(i instanceof ArrayBuffer)this.body=i.byteLength?Buffer.from(i):null;else if("string"==typeof i)this.body=i.length?Buffer.from(i):null;else{if(!(s.isFormDataLike(i)||s.isIterable(i)||s.isBlobLike(i)))throw new e("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");this.body=i}if(this.completed=!1,this.aborted=!1,this.upgrade=h||null,this.path=c?s.buildURL(n,c):n,this.origin=t,this.idempotent=null==f?"HEAD"===r||"GET"===r:f,this.blocking=null!=_&&_,this.reset=null==y?null:y,this.host=null,this.contentLength=null,this.contentType=null,this.headers="",this.expectContinue=null!=b&&b,Array.isArray(o)){if(o.length%2!=0)throw new e("headers array must be even");for(let e=0;e=0;t--){if("function"!=typeof this[a][t])throw new r("interceptor must be an function")}this[a]=e}close(e){if(void 0===e)return new Promise(((e,t)=>{this.close(((n,r)=>n?t(n):e(r)))}));if("function"!=typeof e)throw new r("invalid callback");if(this[c])return void queueMicrotask((()=>e(new t,null)));if(this[l])return void(this[d]?this[d].push(e):queueMicrotask((()=>e(null,null))));this[l]=!0,this[d].push(e);const n=()=>{const e=this[d];this[d]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(n)}))}destroy(e,n){if("function"==typeof e&&(n=e,e=null),void 0===n)return new Promise(((t,n)=>{this.destroy(e,((e,r)=>e?n(e):t(r)))}));if("function"!=typeof n)throw new r("invalid callback");if(this[c])return void(this[u]?this[u].push(n):queueMicrotask((()=>n(null,null))));e||(e=new t),this[c]=!0,this[u]=this[u]||[],this[u].push(n);const o=()=>{const e=this[u];this[u]=null;for(let t=0;t{queueMicrotask(o)}))}[p](e,t){if(!this[a]||0===this[a].length)return this[p]=this[s],this[s](e,t);let n=this[s].bind(this);for(let e=this[a].length-1;e>=0;e--)n=this[a][e](n);return this[p]=n,n(e,t)}dispatch(e,i){if(!i||"object"!=typeof i)throw new r("handler must be an object");try{if(!e||"object"!=typeof e)throw new r("opts must be an object.");if(this[c]||this[u])throw new t;if(this[l])throw new n;return this[p](e,i)}catch(e){if("function"!=typeof i.onError)throw new r("invalid onError method");return i.onError(e),!1}}},dispatcherBase}function requireConnect(){if(hasRequiredConnect)return connect;hasRequiredConnect=1;const e=require$$0$g,t=require$$0$f,n=requireUtil$b(),{InvalidArgumentError:r,ConnectTimeoutError:i}=requireErrors$2();let o,s;return s=commonjsGlobal.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new commonjsGlobal.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}},connect=function({allowH2:a,maxCachedSessions:c,socketPath:l,timeout:u,...d}){if(null!=c&&(!Number.isInteger(c)||c<0))throw new r("maxCachedSessions must be a positive integer or zero");const p={path:l,...d},f=new s(null==c?100:c);return u=null==u?1e4:u,a=null!=a&&a,function({hostname:r,host:s,protocol:c,port:l,servername:d,localAddress:_,httpSocket:m},h){let g;if("https:"===c){o||(o=require$$1$3);const e=(d=d||p.servername||n.getServerName(s)||null)||r,i=f.get(e)||null;t(e),g=o.connect({highWaterMark:16384,...p,servername:d,session:i,localAddress:_,ALPNProtocols:a?["http/1.1","h2"]:["http/1.1"],socket:m,port:l||443,host:r}),g.on("session",(function(t){f.set(e,t)}))}else t(!m,"httpSocket can only be sent on TLS update"),g=e.connect({highWaterMark:65536,...p,localAddress:_,port:l||80,host:r});if(null==p.keepAlive||p.keepAlive){const e=void 0===p.keepAliveInitialDelay?6e4:p.keepAliveInitialDelay;g.setKeepAlive(!0,e)}const A=function(e,t){if(!t)return()=>{};let n=null,r=null;const i=setTimeout((()=>{n=setImmediate((()=>{"win32"===process.platform?r=setImmediate((()=>e())):e()}))}),t);return()=>{clearTimeout(i),clearImmediate(n),clearImmediate(r)}}((()=>function(e){n.destroy(e,new i)}(g)),u);return g.setNoDelay(!0).once("https:"===c?"secureConnect":"connect",(function(){if(A(),h){const e=h;h=null,e(null,this)}})).on("error",(function(e){if(A(),h){const t=h;h=null,t(e)}})),g}},connect}var constants$2={},utils$6={},hasRequiredUtils$6,hasRequiredConstants$2,RedirectHandler_1,hasRequiredRedirectHandler,redirectInterceptor,hasRequiredRedirectInterceptor,llhttpWasm,hasRequiredLlhttpWasm,llhttp_simdWasm,hasRequiredLlhttp_simdWasm,client,hasRequiredClient,fixedQueue,hasRequiredFixedQueue,poolStats,hasRequiredPoolStats,poolBase,hasRequiredPoolBase,pool,hasRequiredPool,balancedPool,hasRequiredBalancedPool,dispatcherWeakref,hasRequiredDispatcherWeakref,agent,hasRequiredAgent;function requireUtils$6(){if(hasRequiredUtils$6)return utils$6;return hasRequiredUtils$6=1,Object.defineProperty(utils$6,"__esModule",{value:!0}),utils$6.enumToMap=void 0,utils$6.enumToMap=function(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];"number"==typeof r&&(t[n]=r)})),t},utils$6}function requireConstants$2(){return hasRequiredConstants$2||(hasRequiredConstants$2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SPECIAL_HEADERS=e.HEADER_STATE=e.MINOR=e.MAJOR=e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS=e.TOKEN=e.STRICT_TOKEN=e.HEX=e.URL_CHAR=e.STRICT_URL_CHAR=e.USERINFO_CHARS=e.MARK=e.ALPHANUM=e.NUM=e.HEX_MAP=e.NUM_MAP=e.ALPHA=e.FINISH=e.H_METHOD_MAP=e.METHOD_MAP=e.METHODS_RTSP=e.METHODS_ICE=e.METHODS_HTTP=e.METHODS=e.LENIENT_FLAGS=e.FLAGS=e.TYPE=e.ERROR=void 0;const t=requireUtils$6();var n,r,i,o,s,a;(n=e.ERROR||(e.ERROR={}))[n.OK=0]="OK",n[n.INTERNAL=1]="INTERNAL",n[n.STRICT=2]="STRICT",n[n.LF_EXPECTED=3]="LF_EXPECTED",n[n.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",n[n.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",n[n.INVALID_METHOD=6]="INVALID_METHOD",n[n.INVALID_URL=7]="INVALID_URL",n[n.INVALID_CONSTANT=8]="INVALID_CONSTANT",n[n.INVALID_VERSION=9]="INVALID_VERSION",n[n.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",n[n.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",n[n.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",n[n.INVALID_STATUS=13]="INVALID_STATUS",n[n.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",n[n.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",n[n.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",n[n.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",n[n.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",n[n.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",n[n.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",n[n.PAUSED=21]="PAUSED",n[n.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",n[n.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",n[n.USER=24]="USER",function(e){e[e.BOTH=0]="BOTH",e[e.REQUEST=1]="REQUEST",e[e.RESPONSE=2]="RESPONSE"}(e.TYPE||(e.TYPE={})),(r=e.FLAGS||(e.FLAGS={}))[r.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",r[r.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",r[r.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",r[r.CHUNKED=8]="CHUNKED",r[r.UPGRADE=16]="UPGRADE",r[r.CONTENT_LENGTH=32]="CONTENT_LENGTH",r[r.SKIPBODY=64]="SKIPBODY",r[r.TRAILING=128]="TRAILING",r[r.TRANSFER_ENCODING=512]="TRANSFER_ENCODING",(i=e.LENIENT_FLAGS||(e.LENIENT_FLAGS={}))[i.HEADERS=1]="HEADERS",i[i.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",i[i.KEEP_ALIVE=4]="KEEP_ALIVE",function(e){e[e.DELETE=0]="DELETE",e[e.GET=1]="GET",e[e.HEAD=2]="HEAD",e[e.POST=3]="POST",e[e.PUT=4]="PUT",e[e.CONNECT=5]="CONNECT",e[e.OPTIONS=6]="OPTIONS",e[e.TRACE=7]="TRACE",e[e.COPY=8]="COPY",e[e.LOCK=9]="LOCK",e[e.MKCOL=10]="MKCOL",e[e.MOVE=11]="MOVE",e[e.PROPFIND=12]="PROPFIND",e[e.PROPPATCH=13]="PROPPATCH",e[e.SEARCH=14]="SEARCH",e[e.UNLOCK=15]="UNLOCK",e[e.BIND=16]="BIND",e[e.REBIND=17]="REBIND",e[e.UNBIND=18]="UNBIND",e[e.ACL=19]="ACL",e[e.REPORT=20]="REPORT",e[e.MKACTIVITY=21]="MKACTIVITY",e[e.CHECKOUT=22]="CHECKOUT",e[e.MERGE=23]="MERGE",e[e["M-SEARCH"]=24]="M-SEARCH",e[e.NOTIFY=25]="NOTIFY",e[e.SUBSCRIBE=26]="SUBSCRIBE",e[e.UNSUBSCRIBE=27]="UNSUBSCRIBE",e[e.PATCH=28]="PATCH",e[e.PURGE=29]="PURGE",e[e.MKCALENDAR=30]="MKCALENDAR",e[e.LINK=31]="LINK",e[e.UNLINK=32]="UNLINK",e[e.SOURCE=33]="SOURCE",e[e.PRI=34]="PRI",e[e.DESCRIBE=35]="DESCRIBE",e[e.ANNOUNCE=36]="ANNOUNCE",e[e.SETUP=37]="SETUP",e[e.PLAY=38]="PLAY",e[e.PAUSE=39]="PAUSE",e[e.TEARDOWN=40]="TEARDOWN",e[e.GET_PARAMETER=41]="GET_PARAMETER",e[e.SET_PARAMETER=42]="SET_PARAMETER",e[e.REDIRECT=43]="REDIRECT",e[e.RECORD=44]="RECORD",e[e.FLUSH=45]="FLUSH"}(o=e.METHODS||(e.METHODS={})),e.METHODS_HTTP=[o.DELETE,o.GET,o.HEAD,o.POST,o.PUT,o.CONNECT,o.OPTIONS,o.TRACE,o.COPY,o.LOCK,o.MKCOL,o.MOVE,o.PROPFIND,o.PROPPATCH,o.SEARCH,o.UNLOCK,o.BIND,o.REBIND,o.UNBIND,o.ACL,o.REPORT,o.MKACTIVITY,o.CHECKOUT,o.MERGE,o["M-SEARCH"],o.NOTIFY,o.SUBSCRIBE,o.UNSUBSCRIBE,o.PATCH,o.PURGE,o.MKCALENDAR,o.LINK,o.UNLINK,o.PRI,o.SOURCE],e.METHODS_ICE=[o.SOURCE],e.METHODS_RTSP=[o.OPTIONS,o.DESCRIBE,o.ANNOUNCE,o.SETUP,o.PLAY,o.PAUSE,o.TEARDOWN,o.GET_PARAMETER,o.SET_PARAMETER,o.REDIRECT,o.RECORD,o.FLUSH,o.GET,o.POST],e.METHOD_MAP=t.enumToMap(o),e.H_METHOD_MAP={},Object.keys(e.METHOD_MAP).forEach((t=>{/^H/.test(t)&&(e.H_METHOD_MAP[t]=e.METHOD_MAP[t])})),(s=e.FINISH||(e.FINISH={}))[s.SAFE=0]="SAFE",s[s.SAFE_WITH_CB=1]="SAFE_WITH_CB",s[s.UNSAFE=2]="UNSAFE",e.ALPHA=[];for(let t="A".charCodeAt(0);t<="Z".charCodeAt(0);t++)e.ALPHA.push(String.fromCharCode(t)),e.ALPHA.push(String.fromCharCode(t+32));e.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},e.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},e.NUM=["0","1","2","3","4","5","6","7","8","9"],e.ALPHANUM=e.ALPHA.concat(e.NUM),e.MARK=["-","_",".","!","~","*","'","(",")"],e.USERINFO_CHARS=e.ALPHANUM.concat(e.MARK).concat(["%",";",":","&","=","+","$",","]),e.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(e.ALPHANUM),e.URL_CHAR=e.STRICT_URL_CHAR.concat(["\t","\f"]);for(let t=128;t<=255;t++)e.URL_CHAR.push(t);e.HEX=e.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]),e.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(e.ALPHANUM),e.TOKEN=e.STRICT_TOKEN.concat([" "]),e.HEADER_CHARS=["\t"];for(let t=32;t<=255;t++)127!==t&&e.HEADER_CHARS.push(t);e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS.filter((e=>44!==e)),e.MAJOR=e.NUM_MAP,e.MINOR=e.MAJOR,function(e){e[e.GENERAL=0]="GENERAL",e[e.CONNECTION=1]="CONNECTION",e[e.CONTENT_LENGTH=2]="CONTENT_LENGTH",e[e.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",e[e.UPGRADE=4]="UPGRADE",e[e.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",e[e.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",e[e.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",e[e.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED"}(a=e.HEADER_STATE||(e.HEADER_STATE={})),e.SPECIAL_HEADERS={connection:a.CONNECTION,"content-length":a.CONTENT_LENGTH,"proxy-connection":a.CONNECTION,"transfer-encoding":a.TRANSFER_ENCODING,upgrade:a.UPGRADE}}(constants$2)),constants$2}function requireRedirectHandler(){if(hasRequiredRedirectHandler)return RedirectHandler_1;hasRequiredRedirectHandler=1;const e=requireUtil$b(),{kBodyUsed:t}=requireSymbols$4(),n=require$$0$f,{InvalidArgumentError:r}=requireErrors$2(),i=require$$0$c,o=[300,301,302,303,307,308],s=Symbol("body");class a{constructor(e){this[s]=e,this[t]=!1}async*[Symbol.asyncIterator](){n(!this[t],"disturbed"),this[t]=!0,yield*this[s]}}function c(t,n,r){if(4===t.length)return"host"===e.headerNameToString(t);if(n&&e.headerNameToString(t).startsWith("content-"))return!0;if(r&&(13===t.length||6===t.length||19===t.length)){const n=e.headerNameToString(t);return"authorization"===n||"cookie"===n||"proxy-authorization"===n}return!1}return RedirectHandler_1=class{constructor(o,s,c,l){if(null!=s&&(!Number.isInteger(s)||s<0))throw new r("maxRedirections must be a positive number");e.validateHandler(l,c.method,c.upgrade),this.dispatch=o,this.location=null,this.abort=null,this.opts={...c,maxRedirections:0},this.maxRedirections=s,this.handler=l,this.history=[],e.isStream(this.opts.body)?(0===e.bodyLength(this.opts.body)&&this.opts.body.on("data",(function(){n(!1)})),"boolean"!=typeof this.opts.body.readableDidRead&&(this.opts.body[t]=!1,i.prototype.on.call(this.opts.body,"data",(function(){this[t]=!0})))):(this.opts.body&&"function"==typeof this.opts.body.pipeTo||this.opts.body&&"string"!=typeof this.opts.body&&!ArrayBuffer.isView(this.opts.body)&&e.isIterable(this.opts.body))&&(this.opts.body=new a(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(t,r,i,s){if(this.location=this.history.length>=this.maxRedirections||e.isDisturbed(this.opts.body)?null:function(e,t){if(-1===o.indexOf(e))return null;for(let e=0;efunction(r,i){const{maxRedirections:o=t}=r;if(!o)return n(r,i);const s=new e(n,o,r,i);return r={...r,maxRedirections:0},n(r,s)}}}function requireLlhttpWasm(){return hasRequiredLlhttpWasm?llhttpWasm:(hasRequiredLlhttpWasm=1,llhttpWasm="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQAN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QgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlN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ASEQDBgLQa0BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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AAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEE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QAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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jYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMRgsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAylAQsgACg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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==")}function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;const e=require$$0$f,t=require$$0$g,n=require$$2$1,{pipeline:r}=require$$0$b,i=requireUtil$b(),o=requireTimers(),s=requireRequest$2(),a=requireDispatcherBase(),{RequestContentLengthMismatchError:c,ResponseContentLengthMismatchError:l,InvalidArgumentError:u,RequestAbortedError:d,HeadersTimeoutError:p,HeadersOverflowError:f,SocketError:_,InformationalError:m,BodyTimeoutError:h,HTTPParserError:g,ResponseExceededMaxSizeError:A,ClientDestroyedError:y}=requireErrors$2(),v=requireConnect(),{kUrl:b,kReset:C,kServerName:E,kClient:x,kBusy:S,kParser:k,kConnect:D,kBlocking:w,kResuming:I,kRunning:T,kPending:F,kSize:R,kWriting:P,kQueue:N,kConnected:B,kConnecting:O,kNeedDrain:q,kNoRef:$,kKeepAliveDefaultTimeout:Q,kHostHeader:L,kPendingIdx:M,kRunningIdx:j,kError:U,kPipelining:J,kSocket:V,kKeepAliveTimeoutValue:H,kMaxHeadersSize:G,kKeepAliveMaxTimeout:W,kKeepAliveTimeoutThreshold:z,kHeadersTimeout:Y,kBodyTimeout:K,kStrictContentLength:X,kConnector:Z,kMaxRedirections:ee,kMaxRequests:te,kCounter:ne,kClose:re,kDestroy:ie,kDispatch:oe,kInterceptors:se,kLocalAddress:ae,kMaxResponseSize:ce,kHTTPConnVersion:le,kHost:ue,kHTTP2Session:de,kHTTP2SessionState:pe,kHTTP2BuildRequest:fe,kHTTP2CopyHeaders:_e,kHTTP1BuildRequest:me}=requireSymbols$4();let he;try{he=require("http2")}catch{he={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:ge,HTTP2_HEADER_METHOD:Ae,HTTP2_HEADER_PATH:ye,HTTP2_HEADER_SCHEME:ve,HTTP2_HEADER_CONTENT_LENGTH:be,HTTP2_HEADER_EXPECT:Ce,HTTP2_HEADER_STATUS:Ee}}=he;let xe=!1;const Se=Buffer[Symbol.species],ke=Symbol("kClosedResolve"),De={};try{const e=require("diagnostics_channel");De.sendHeaders=e.channel("undici:client:sendHeaders"),De.beforeConnect=e.channel("undici:client:beforeConnect"),De.connectError=e.channel("undici:client:connectError"),De.connected=e.channel("undici:client:connected")}catch{De.sendHeaders={hasSubscribers:!1},De.beforeConnect={hasSubscribers:!1},De.connectError={hasSubscribers:!1},De.connected={hasSubscribers:!1}}function we(t){e("ERR_TLS_CERT_ALTNAME_INVALID"!==t.code),this[V][U]=t,Ge(this[x],t)}function Ie(e,t,n){const r=new m(`HTTP/2: "frameError" received - type ${e}, code ${t}`);0===n&&(this[V][U]=r,Ge(this[x],r))}function Te(){i.destroy(this,new _("other side closed")),i.destroy(this[V],new _("other side closed"))}function Fe(t){const n=this[x],r=new m(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(n[V]=null,n[de]=null,n.destroyed){e(0===this[F]);const t=n[N].splice(n[j]);for(let e=0;e0){const e=n[N][n[j]];n[N][n[j]++]=null,ot(n,e,r)}n[M]=n[j],e(0===n[T]),n.emit("disconnect",n[b],[n],r),Xe(n)}const Re=requireConstants$2(),Pe=requireRedirectInterceptor(),Ne=Buffer.alloc(0);let Be=null,Oe=async function(){const t=process.env.JEST_WORKER_ID?requireLlhttpWasm():void 0;let n;try{n=await WebAssembly.compile(Buffer.from(requireLlhttp_simdWasm(),"base64"))}catch(e){n=await WebAssembly.compile(Buffer.from(t||requireLlhttpWasm(),"base64"))}return await WebAssembly.instantiate(n,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(t,n,r)=>{e.strictEqual(qe.ptr,t);const i=n-Le+$e.byteOffset;return qe.onStatus(new Se($e.buffer,i,r))||0},wasm_on_message_begin:t=>(e.strictEqual(qe.ptr,t),qe.onMessageBegin()||0),wasm_on_header_field:(t,n,r)=>{e.strictEqual(qe.ptr,t);const i=n-Le+$e.byteOffset;return qe.onHeaderField(new Se($e.buffer,i,r))||0},wasm_on_header_value:(t,n,r)=>{e.strictEqual(qe.ptr,t);const i=n-Le+$e.byteOffset;return qe.onHeaderValue(new Se($e.buffer,i,r))||0},wasm_on_headers_complete:(t,n,r,i)=>(e.strictEqual(qe.ptr,t),qe.onHeadersComplete(n,Boolean(r),Boolean(i))||0),wasm_on_body:(t,n,r)=>{e.strictEqual(qe.ptr,t);const i=n-Le+$e.byteOffset;return qe.onBody(new Se($e.buffer,i,r))||0},wasm_on_message_complete:t=>(e.strictEqual(qe.ptr,t),qe.onMessageComplete()||0)}})}();Oe.catch();let qe=null,$e=null,Qe=0,Le=null;const Me=1,je=3;class Ue{constructor(t,n,{exports:r}){e(Number.isFinite(t[G])&&t[G]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(Re.TYPE.RESPONSE),this.client=t,this.socket=n,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=t[G],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=t[ce]}setTimeout(e,t){this.timeoutType=t,e!==this.timeoutValue?(o.clearTimeout(this.timeout),e?(this.timeout=o.setTimeout(Je,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){!this.socket.destroyed&&this.paused&&(e(null!=this.ptr),e(null==qe),this.llhttp.llhttp_resume(this.ptr),e(2===this.timeoutType),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||Ne),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){const e=this.socket.read();if(null===e)break;this.execute(e)}}execute(t){e(null!=this.ptr),e(null==qe),e(!this.paused);const{socket:n,llhttp:r}=this;t.length>Qe&&(Le&&r.free(Le),Qe=4096*Math.ceil(t.length/4096),Le=r.malloc(Qe)),new Uint8Array(r.memory.buffer,Le,Qe).set(t);try{let e;try{$e=t,qe=this,e=r.llhttp_execute(this.ptr,Le,t.length)}catch(e){throw e}finally{qe=null,$e=null}const i=r.llhttp_get_error_pos(this.ptr)-Le;if(e===Re.ERROR.PAUSED_UPGRADE)this.onUpgrade(t.slice(i));else if(e===Re.ERROR.PAUSED)this.paused=!0,n.unshift(t.slice(i));else if(e!==Re.ERROR.OK){const n=r.llhttp_get_error_reason(this.ptr);let o="";if(n){const e=new Uint8Array(r.memory.buffer,n).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,n,e).toString()+")"}throw new g(o,Re.ERROR[e],t.slice(i))}}catch(e){i.destroy(n,e)}}destroy(){e(null!=this.ptr),e(null==qe),this.llhttp.llhttp_free(this.ptr),this.ptr=null,o.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed)return-1;return t[N][t[j]]?void 0:-1}onHeaderField(e){const t=this.headers.length;1&t?this.headers[t-1]=Buffer.concat([this.headers[t-1],e]):this.headers.push(e),this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;1&~t?this.headers[t-1]=Buffer.concat([this.headers[t-1],e]):(this.headers.push(e),t+=1);const n=this.headers[t-2];10===n.length&&"keep-alive"===n.toString().toLowerCase()?this.keepAlive+=e.toString():10===n.length&&"connection"===n.toString().toLowerCase()?this.connection+=e.toString():14===n.length&&"content-length"===n.toString().toLowerCase()&&(this.contentLength+=e.toString()),this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&i.destroy(this.socket,new f)}onUpgrade(t){const{upgrade:n,client:r,socket:o,headers:s,statusCode:a}=this;e(n);const c=r[N][r[j]];e(c),e(!o.destroyed),e(o===r[V]),e(!this.paused),e(c.upgrade||"CONNECT"===c.method),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,e(this.headers.length%2==0),this.headers=[],this.headersSize=0,o.unshift(t),o[k].destroy(),o[k]=null,o[x]=null,o[U]=null,o.removeListener("error",He).removeListener("readable",Ve).removeListener("end",We).removeListener("close",ze),r[V]=null,r[N][r[j]++]=null,r.emit("disconnect",r[b],[r],new m("upgrade"));try{c.onUpgrade(a,s,o)}catch(e){i.destroy(o,e)}Xe(r)}onHeadersComplete(t,n,r){const{client:o,socket:s,headers:a,statusText:c}=this;if(s.destroyed)return-1;const l=o[N][o[j]];if(!l)return-1;if(e(!this.upgrade),e(this.statusCode<200),100===t)return i.destroy(s,new _("bad response",i.getSocketInfo(s))),-1;if(n&&!l.upgrade)return i.destroy(s,new _("bad upgrade",i.getSocketInfo(s))),-1;if(e.strictEqual(this.timeoutType,Me),this.statusCode=t,this.shouldKeepAlive=r||"HEAD"===l.method&&!s[C]&&"keep-alive"===this.connection.toLowerCase(),this.statusCode>=200){const e=null!=l.bodyTimeout?l.bodyTimeout:o[K];this.setTimeout(e,2)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if("CONNECT"===l.method)return e(1===o[T]),this.upgrade=!0,2;if(n)return e(1===o[T]),this.upgrade=!0,2;if(e(this.headers.length%2==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&o[J]){const e=this.keepAlive?i.parseKeepAliveTimeout(this.keepAlive):null;if(null!=e){const t=Math.min(e-o[z],o[W]);t<=0?s[C]=!0:o[H]=t}else o[H]=o[Q]}else s[C]=!0;const u=!1===l.onHeaders(t,a,this.resume,c);return l.aborted?-1:"HEAD"===l.method||t<200?1:(s[w]&&(s[w]=!1,Xe(o)),u?Re.ERROR.PAUSED:0)}onBody(t){const{client:n,socket:r,statusCode:o,maxResponseSize:s}=this;if(r.destroyed)return-1;const a=n[N][n[j]];return e(a),e.strictEqual(this.timeoutType,2),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),e(o>=200),s>-1&&this.bytesRead+t.length>s?(i.destroy(r,new A),-1):(this.bytesRead+=t.length,!1===a.onData(t)?Re.ERROR.PAUSED:void 0)}onMessageComplete(){const{client:t,socket:n,statusCode:r,upgrade:o,headers:s,contentLength:a,bytesRead:c,shouldKeepAlive:u}=this;if(n.destroyed&&(!r||u))return-1;if(o)return;const d=t[N][t[j]];return e(d),e(r>=100),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",e(this.headers.length%2==0),this.headers=[],this.headersSize=0,r<200?void 0:"HEAD"!==d.method&&a&&c!==parseInt(a,10)?(i.destroy(n,new l),-1):(d.onComplete(s),t[N][t[j]++]=null,n[P]?(e.strictEqual(t[T],0),i.destroy(n,new m("reset")),Re.ERROR.PAUSED):u?n[C]&&0===t[T]?(i.destroy(n,new m("reset")),Re.ERROR.PAUSED):void(1===t[J]?setImmediate(Xe,t):Xe(t)):(i.destroy(n,new m("reset")),Re.ERROR.PAUSED))}}function Je(t){const{socket:n,timeoutType:r,client:o}=t;r===Me?(!n[P]||n.writableNeedDrain||o[T]>1)&&(e(!t.paused,"cannot be paused while waiting for headers"),i.destroy(n,new p)):2===r?t.paused||i.destroy(n,new h):r===je&&(e(0===o[T]&&o[H]),i.destroy(n,new m("socket idle timeout")))}function Ve(){const{[k]:e}=this;e&&e.readMore()}function He(t){const{[x]:n,[k]:r}=this;e("ERR_TLS_CERT_ALTNAME_INVALID"!==t.code),"h2"===n[le]||"ECONNRESET"!==t.code||!r.statusCode||r.shouldKeepAlive?(this[U]=t,Ge(this[x],t)):r.onMessageComplete()}function Ge(t,n){if(0===t[T]&&"UND_ERR_INFO"!==n.code&&"UND_ERR_SOCKET"!==n.code){e(t[M]===t[j]);const r=t[N].splice(t[j]);for(let e=0;e0&&"UND_ERR_INFO"!==r.code){const e=t[N][t[j]];t[N][t[j]++]=null,ot(t,e,r)}t[M]=t[j],e(0===t[T]),t.emit("disconnect",t[b],[t],r),Xe(t)}async function Ye(n){e(!n[O]),e(!n[V]);let{host:r,hostname:o,protocol:s,port:a}=n[b];if("["===o[0]){const n=o.indexOf("]");e(-1!==n);const r=o.substring(1,n);e(t.isIP(r)),o=r}n[O]=!0,De.beforeConnect.hasSubscribers&&De.beforeConnect.publish({connectParams:{host:r,hostname:o,protocol:s,port:a,servername:n[E],localAddress:n[ae]},connector:n[Z]});try{const t=await new Promise(((e,t)=>{n[Z]({host:r,hostname:o,protocol:s,port:a,servername:n[E],localAddress:n[ae]},((n,r)=>{n?t(n):e(r)}))}));if(n.destroyed)return void i.destroy(t.on("error",(()=>{})),new y);n[O]=!1,e(t);if("h2"===t.alpnProtocol){xe||(xe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));const e=he.connect(n[b],{createConnection:()=>t,peerMaxConcurrentStreams:n[pe].maxConcurrentStreams});n[le]="h2",e[x]=n,e[V]=t,e.on("error",we),e.on("frameError",Ie),e.on("end",Te),e.on("goaway",Fe),e.on("close",ze),e.unref(),n[de]=e,t[de]=e}else Be||(Be=await Oe,Oe=null),t[$]=!1,t[P]=!1,t[C]=!1,t[w]=!1,t[k]=new Ue(n,t,Be);t[ne]=0,t[te]=n[te],t[x]=n,t[U]=null,t.on("error",He).on("readable",Ve).on("end",We).on("close",ze),n[V]=t,De.connected.hasSubscribers&&De.connected.publish({connectParams:{host:r,hostname:o,protocol:s,port:a,servername:n[E],localAddress:n[ae]},connector:n[Z],socket:t}),n.emit("connect",n[b],[n])}catch(t){if(n.destroyed)return;if(n[O]=!1,De.connectError.hasSubscribers&&De.connectError.publish({connectParams:{host:r,hostname:o,protocol:s,port:a,servername:n[E],localAddress:n[ae]},connector:n[Z],error:t}),"ERR_TLS_CERT_ALTNAME_INVALID"===t.code)for(e(0===n[T]);n[F]>0&&n[N][n[M]].servername===n[E];){const e=n[N][n[M]++];ot(n,e,t)}else Ge(n,t);n.emit("connectionError",n[b],[n],t)}Xe(n)}function Ke(e){e[q]=0,e.emit("drain",e[b],[e])}function Xe(t,n){2!==t[I]&&(t[I]=2,function(t,n){for(;;){if(t.destroyed)return void e(0===t[F]);if(t[ke]&&!t[R])return t[ke](),void(t[ke]=null);const r=t[V];if(r&&!r.destroyed&&"h2"!==r.alpnProtocol)if(0===t[R]?!r[$]&&r.unref&&(r.unref(),r[$]=!0):r[$]&&r.ref&&(r.ref(),r[$]=!1),0===t[R])r[k].timeoutType!==je&&r[k].setTimeout(t[H],je);else if(t[T]>0&&r[k].statusCode<200&&r[k].timeoutType!==Me){const e=t[N][t[j]],n=null!=e.headersTimeout?e.headersTimeout:t[Y];r[k].setTimeout(n,Me)}if(t[S])t[q]=2;else if(2===t[q]){n?(t[q]=1,process.nextTick(Ke,t)):Ke(t);continue}if(0===t[F])return;if(t[T]>=(t[J]||1))return;const o=t[N][t[M]];if("https:"===t[b].protocol&&t[E]!==o.servername){if(t[T]>0)return;if(t[E]=o.servername,r&&r.servername!==o.servername)return void i.destroy(r,new m("servername changed"))}if(t[O])return;if(!r&&!t[de])return void Ye(t);if(r.destroyed||r[P]||r[C]||r[w])return;if(t[T]>0&&!o.idempotent)return;if(t[T]>0&&(o.upgrade||"CONNECT"===o.method))return;if(t[T]>0&&0!==i.bodyLength(o.body)&&(i.isStream(o.body)||i.isAsyncIterable(o.body)))return;!o.aborted&&et(t,o)?t[M]++:t[N].splice(t[M],1)}}(t,n),t[I]=0,t[j]>256&&(t[N].splice(0,t[j]),t[M]-=t[j],t[j]=0))}function Ze(e){return"GET"!==e&&"HEAD"!==e&&"OPTIONS"!==e&&"TRACE"!==e&&"CONNECT"!==e}function et(t,n){if("h2"===t[le])return void function(t,n,r){const{body:o,method:a,path:l,host:u,upgrade:p,expectContinue:f,signal:_,headers:h}=r;let g,A;g="string"==typeof h?s[_e](h.trim()):h;if(p)return ot(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect((e=>{r.aborted||r.completed||ot(t,r,e||new d)}))}catch(e){ot(t,r,e)}if(r.aborted)return!1;const y=t[pe];if(g[ge]=u||t[ue],g[Ae]=a,"CONNECT"===a)return n.ref(),A=n.request(g,{endStream:!1,signal:_}),A.id&&!A.pending?(r.onUpgrade(null,null,A),++y.openStreams):A.once("ready",(()=>{r.onUpgrade(null,null,A),++y.openStreams})),A.once("close",(()=>{y.openStreams-=1,0===y.openStreams&&n.unref()})),!0;g[ye]=l,g[ve]="https";const v="PUT"===a||"POST"===a||"PATCH"===a;o&&"function"==typeof o.read&&o.read(0);let b=i.bodyLength(o);null==b&&(b=r.contentLength);0!==b&&v||(b=null);if(Ze(a)&&b>0&&null!=r.contentLength&&r.contentLength!==b){if(t[X])return ot(t,r,new c),!1;process.emitWarning(new c)}null!=b&&(e(o,"no body must not have content length"),g[be]=`${b}`);n.ref();const C="GET"===a||"HEAD"===a;f?(g[Ce]="100-continue",A=n.request(g,{endStream:C,signal:_}),A.once("continue",E)):(A=n.request(g,{endStream:C,signal:_}),E());return++y.openStreams,A.once("response",(e=>{const{[Ee]:t,...n}=e;!1===r.onHeaders(Number(t),n,A.resume.bind(A),"")&&A.pause()})),A.once("end",(()=>{r.onComplete([])})),A.on("data",(e=>{!1===r.onData(e)&&A.pause()})),A.once("close",(()=>{y.openStreams-=1,0===y.openStreams&&n.unref()})),A.once("error",(function(e){!t[de]||t[de].destroyed||this.closed||this.destroyed||(y.streams-=1,i.destroy(A,e))})),A.once("frameError",((e,n)=>{const o=new m(`HTTP/2: "frameError" received - type ${e}, code ${n}`);ot(t,r,o),!t[de]||t[de].destroyed||this.closed||this.destroyed||(y.streams-=1,i.destroy(A,o))})),!0;function E(){o?i.isBuffer(o)?(e(b===o.byteLength,"buffer body must have content length"),A.cork(),A.write(o),A.uncork(),A.end(),r.onBodySent(o),r.onRequestSent()):i.isBlobLike(o)?"function"==typeof o.stream?rt({client:t,request:r,contentLength:b,h2stream:A,expectsPayload:v,body:o.stream(),socket:t[V],header:""}):nt({body:o,client:t,request:r,contentLength:b,expectsPayload:v,h2stream:A,header:"",socket:t[V]}):i.isStream(o)?tt({body:o,client:t,request:r,contentLength:b,expectsPayload:v,socket:t[V],h2stream:A,header:""}):i.isIterable(o)?rt({body:o,client:t,request:r,contentLength:b,expectsPayload:v,header:"",h2stream:A,socket:t[V]}):e(!1):r.onRequestSent()}}(t,t[de],n);const{body:r,method:o,path:a,host:l,upgrade:u,headers:p,blocking:f,reset:_}=n,h="PUT"===o||"POST"===o||"PATCH"===o;r&&"function"==typeof r.read&&r.read(0);const g=i.bodyLength(r);let A=g;if(null===A&&(A=n.contentLength),0!==A||h||(A=null),Ze(o)&&A>0&&null!==n.contentLength&&n.contentLength!==A){if(t[X])return ot(t,n,new c),!1;process.emitWarning(new c)}const y=t[V];try{n.onConnect((e=>{n.aborted||n.completed||(ot(t,n,e||new d),i.destroy(y,new m("aborted")))}))}catch(e){ot(t,n,e)}if(n.aborted)return!1;"HEAD"===o&&(y[C]=!0),(u||"CONNECT"===o)&&(y[C]=!0),null!=_&&(y[C]=_),t[te]&&y[ne]++>=t[te]&&(y[C]=!0),f&&(y[w]=!0);let v=`${o} ${a} HTTP/1.1\r\n`;return v+="string"==typeof l?`host: ${l}\r\n`:t[L],u?v+=`connection: upgrade\r\nupgrade: ${u}\r\n`:t[J]&&!y[C]?v+="connection: keep-alive\r\n":v+="connection: close\r\n",p&&(v+=p),De.sendHeaders.hasSubscribers&&De.sendHeaders.publish({request:n,headers:v,socket:y}),r&&0!==g?i.isBuffer(r)?(e(A===r.byteLength,"buffer body must have content length"),y.cork(),y.write(`${v}content-length: ${A}\r\n\r\n`,"latin1"),y.write(r),y.uncork(),n.onBodySent(r),n.onRequestSent(),h||(y[C]=!0)):i.isBlobLike(r)?"function"==typeof r.stream?rt({body:r.stream(),client:t,request:n,socket:y,contentLength:A,header:v,expectsPayload:h}):nt({body:r,client:t,request:n,socket:y,contentLength:A,header:v,expectsPayload:h}):i.isStream(r)?tt({body:r,client:t,request:n,socket:y,contentLength:A,header:v,expectsPayload:h}):i.isIterable(r)?rt({body:r,client:t,request:n,socket:y,contentLength:A,header:v,expectsPayload:h}):e(!1):(0===A?y.write(`${v}content-length: 0\r\n\r\n`,"latin1"):(e(null===A,"no body must not have content length"),y.write(`${v}\r\n`,"latin1")),n.onRequestSent()),!0}function tt({h2stream:t,body:n,client:o,request:s,socket:a,contentLength:c,header:l,expectsPayload:u}){if(e(0!==c||0===o[T],"stream body cannot be pipelined"),"h2"===o[le]){const A=r(n,t,(e=>{e?(i.destroy(n,e),i.destroy(t,e)):s.onRequestSent()}));function y(e){s.onBodySent(e)}return A.on("data",y),void A.once("end",(()=>{A.removeListener("data",y),i.destroy(A)}))}let p=!1;const f=new it({socket:a,request:s,contentLength:c,client:o,expectsPayload:u,header:l}),_=function(e){if(!p)try{!f.write(e)&&this.pause&&this.pause()}catch(e){i.destroy(this,e)}},m=function(){p||n.resume&&n.resume()},h=function(){if(p)return;const e=new d;queueMicrotask((()=>g(e)))},g=function(t){if(!p){if(p=!0,e(a.destroyed||a[P]&&o[T]<=1),a.off("drain",m).off("error",g),n.removeListener("data",_).removeListener("end",g).removeListener("error",g).removeListener("close",h),!t)try{f.end()}catch(e){t=e}f.destroy(t),!t||"UND_ERR_INFO"===t.code&&"reset"===t.message?i.destroy(n):i.destroy(n,t)}};n.on("data",_).on("end",g).on("error",g).on("close",h),n.resume&&n.resume(),a.on("drain",m).on("error",g)}async function nt({h2stream:t,body:n,client:r,request:o,socket:s,contentLength:a,header:l,expectsPayload:u}){e(a===n.size,"blob body must have content length");const d="h2"===r[le];try{if(null!=a&&a!==n.size)throw new c;const e=Buffer.from(await n.arrayBuffer());d?(t.cork(),t.write(e),t.uncork()):(s.cork(),s.write(`${l}content-length: ${a}\r\n\r\n`,"latin1"),s.write(e),s.uncork()),o.onBodySent(e),o.onRequestSent(),u||(s[C]=!0),Xe(r)}catch(e){i.destroy(d?t:s,e)}}async function rt({h2stream:t,body:n,client:r,request:i,socket:o,contentLength:s,header:a,expectsPayload:c}){e(0!==s||0===r[T],"iterator body cannot be pipelined");let l=null;function u(){if(l){const e=l;l=null,e()}}const d=()=>new Promise(((t,n)=>{e(null===l),o[U]?n(o[U]):l=t}));if("h2"===r[le]){t.on("close",u).on("drain",u);try{for await(const e of n){if(o[U])throw o[U];const n=t.write(e);i.onBodySent(e),n||await d()}}catch(e){t.destroy(e)}finally{i.onRequestSent(),t.end(),t.off("close",u).off("drain",u)}return}o.on("close",u).on("drain",u);const p=new it({socket:o,request:i,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(const e of n){if(o[U])throw o[U];p.write(e)||await d()}p.end()}catch(e){p.destroy(e)}finally{o.off("close",u).off("drain",u)}}class it{constructor({socket:e,request:t,contentLength:n,client:r,expectsPayload:i,header:o}){this.socket=e,this.request=t,this.contentLength=n,this.client=r,this.bytesWritten=0,this.expectsPayload=i,this.header=o,e[P]=!0}write(e){const{socket:t,request:n,contentLength:r,client:i,bytesWritten:o,expectsPayload:s,header:a}=this;if(t[U])throw t[U];if(t.destroyed)return!1;const l=Buffer.byteLength(e);if(!l)return!0;if(null!==r&&o+l>r){if(i[X])throw new c;process.emitWarning(new c)}t.cork(),0===o&&(s||(t[C]=!0),null===r?t.write(`${a}transfer-encoding: chunked\r\n`,"latin1"):t.write(`${a}content-length: ${r}\r\n\r\n`,"latin1")),null===r&&t.write(`\r\n${l.toString(16)}\r\n`,"latin1"),this.bytesWritten+=l;const u=t.write(e);return t.uncork(),n.onBodySent(e),u||t[k].timeout&&t[k].timeoutType===Me&&t[k].timeout.refresh&&t[k].timeout.refresh(),u}end(){const{socket:e,contentLength:t,client:n,bytesWritten:r,expectsPayload:i,header:o,request:s}=this;if(s.onRequestSent(),e[P]=!1,e[U])throw e[U];if(!e.destroyed){if(0===r?i?e.write(`${o}content-length: 0\r\n\r\n`,"latin1"):e.write(`${o}\r\n`,"latin1"):null===t&&e.write("\r\n0\r\n\r\n","latin1"),null!==t&&r!==t){if(n[X])throw new c;process.emitWarning(new c)}e[k].timeout&&e[k].timeoutType===Me&&e[k].timeout.refresh&&e[k].timeout.refresh(),Xe(n)}}destroy(t){const{socket:n,client:r}=this;n[P]=!1,t&&(e(r[T]<=1,"pipeline should only contain this request"),i.destroy(n,t))}}function ot(t,n,r){try{n.onError(r),e(n.aborted)}catch(r){t.emit("error",r)}}return client=class extends a{constructor(e,{interceptors:r,maxHeaderSize:o,headersTimeout:s,socketTimeout:a,requestTimeout:c,connectTimeout:l,bodyTimeout:d,idleTimeout:p,keepAlive:f,keepAliveTimeout:_,maxKeepAliveTimeout:m,keepAliveMaxTimeout:h,keepAliveTimeoutThreshold:g,socketPath:A,pipelining:y,tls:C,strictContentLength:x,maxCachedSessions:S,maxRedirections:k,connect:D,maxRequestsPerClient:w,localAddress:T,maxResponseSize:F,autoSelectFamily:R,autoSelectFamilyAttemptTimeout:P,allowH2:B,maxConcurrentStreams:O}={}){if(super(),void 0!==f)throw new u("unsupported keepAlive, use pipelining=0 instead");if(void 0!==a)throw new u("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==c)throw new u("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==p)throw new u("unsupported idleTimeout, use keepAliveTimeout instead");if(void 0!==m)throw new u("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(null!=o&&!Number.isFinite(o))throw new u("invalid maxHeaderSize");if(null!=A&&"string"!=typeof A)throw new u("invalid socketPath");if(null!=l&&(!Number.isFinite(l)||l<0))throw new u("invalid connectTimeout");if(null!=_&&(!Number.isFinite(_)||_<=0))throw new u("invalid keepAliveTimeout");if(null!=h&&(!Number.isFinite(h)||h<=0))throw new u("invalid keepAliveMaxTimeout");if(null!=g&&!Number.isFinite(g))throw new u("invalid keepAliveTimeoutThreshold");if(null!=s&&(!Number.isInteger(s)||s<0))throw new u("headersTimeout must be a positive integer or zero");if(null!=d&&(!Number.isInteger(d)||d<0))throw new u("bodyTimeout must be a positive integer or zero");if(null!=D&&"function"!=typeof D&&"object"!=typeof D)throw new u("connect must be a function or an object");if(null!=k&&(!Number.isInteger(k)||k<0))throw new u("maxRedirections must be a positive number");if(null!=w&&(!Number.isInteger(w)||w<0))throw new u("maxRequestsPerClient must be a positive number");if(null!=T&&("string"!=typeof T||0===t.isIP(T)))throw new u("localAddress must be valid string IP address");if(null!=F&&(!Number.isInteger(F)||F<-1))throw new u("maxResponseSize must be a positive number");if(null!=P&&(!Number.isInteger(P)||P<-1))throw new u("autoSelectFamilyAttemptTimeout must be a positive number");if(null!=B&&"boolean"!=typeof B)throw new u("allowH2 must be a valid boolean value");if(null!=O&&("number"!=typeof O||O<1))throw new u("maxConcurrentStreams must be a possitive integer, greater than 0");"function"!=typeof D&&(D=v({...C,maxCachedSessions:S,allowH2:B,socketPath:A,timeout:l,...i.nodeHasAutoSelectFamily&&R?{autoSelectFamily:R,autoSelectFamilyAttemptTimeout:P}:void 0,...D})),this[se]=r&&r.Client&&Array.isArray(r.Client)?r.Client:[Pe({maxRedirections:k})],this[b]=i.parseOrigin(e),this[Z]=D,this[V]=null,this[J]=null!=y?y:1,this[G]=o||n.maxHeaderSize,this[Q]=null==_?4e3:_,this[W]=null==h?6e5:h,this[z]=null==g?1e3:g,this[H]=this[Q],this[E]=null,this[ae]=null!=T?T:null,this[I]=0,this[q]=0,this[L]=`host: ${this[b].hostname}${this[b].port?`:${this[b].port}`:""}\r\n`,this[K]=null!=d?d:3e5,this[Y]=null!=s?s:3e5,this[X]=null==x||x,this[ee]=k,this[te]=w,this[ke]=null,this[ce]=F>-1?F:-1,this[le]="h1",this[de]=null,this[pe]=B?{openStreams:0,maxConcurrentStreams:null!=O?O:100}:null,this[ue]=`${this[b].hostname}${this[b].port?`:${this[b].port}`:""}`,this[N]=[],this[j]=0,this[M]=0}get pipelining(){return this[J]}set pipelining(e){this[J]=e,Xe(this,!0)}get[F](){return this[N].length-this[M]}get[T](){return this[M]-this[j]}get[R](){return this[N].length-this[j]}get[B](){return!!this[V]&&!this[O]&&!this[V].destroyed}get[S](){const e=this[V];return e&&(e[C]||e[P]||e[w])||this[R]>=(this[J]||1)||this[F]>0}[D](e){Ye(this),this.once("connect",e)}[oe](e,t){const n=e.origin||this[b].origin,r="h2"===this[le]?s[fe](n,e,t):s[me](n,e,t);return this[N].push(r),this[I]||(null==i.bodyLength(r.body)&&i.isIterable(r.body)?(this[I]=1,process.nextTick(Xe,this)):Xe(this,!0)),this[I]&&2!==this[q]&&this[S]&&(this[q]=2),this[q]<2}async[re](){return new Promise((e=>{this[R]?this[ke]=e:e(null)}))}async[ie](e){return new Promise((t=>{const n=this[N].splice(this[M]);for(let t=0;t{this[ke]&&(this[ke](),this[ke]=null),t()};null!=this[de]&&(i.destroy(this[de],e),this[de]=null,this[pe]=null),this[V]?i.destroy(this[V].on("close",r),e):queueMicrotask(r),Xe(this)}))}},client}function requireFixedQueue(){if(hasRequiredFixedQueue)return fixedQueue;hasRequiredFixedQueue=1;const e=2047;class t{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&e)===this.bottom}push(t){this.list[this.top]=t,this.top=this.top+1&e}shift(){const t=this.list[this.bottom];return void 0===t?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&e,t)}}return fixedQueue=class{constructor(){this.head=this.tail=new t}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new t),this.head.push(e)}shift(){const e=this.tail,t=e.shift();return e.isEmpty()&&null!==e.next&&(this.tail=e.next),t}},fixedQueue}function requirePoolStats(){if(hasRequiredPoolStats)return poolStats;hasRequiredPoolStats=1;const{kFree:e,kConnected:t,kPending:n,kQueued:r,kRunning:i,kSize:o}=requireSymbols$4(),s=Symbol("pool");return poolStats=class{constructor(e){this[s]=e}get connected(){return this[s][t]}get free(){return this[s][e]}get pending(){return this[s][n]}get queued(){return this[s][r]}get running(){return this[s][i]}get size(){return this[s][o]}},poolStats}function requirePoolBase(){if(hasRequiredPoolBase)return poolBase;hasRequiredPoolBase=1;const e=requireDispatcherBase(),t=requireFixedQueue(),{kConnected:n,kSize:r,kRunning:i,kPending:o,kQueued:s,kBusy:a,kFree:c,kUrl:l,kClose:u,kDestroy:d,kDispatch:p}=requireSymbols$4(),f=requirePoolStats(),_=Symbol("clients"),m=Symbol("needDrain"),h=Symbol("queue"),g=Symbol("closed resolve"),A=Symbol("onDrain"),y=Symbol("onConnect"),v=Symbol("onDisconnect"),b=Symbol("onConnectionError"),C=Symbol("get dispatcher"),E=Symbol("add client"),x=Symbol("remove client"),S=Symbol("stats");return poolBase={PoolBase:class extends e{constructor(){super(),this[h]=new t,this[_]=[],this[s]=0;const e=this;this[A]=function(t,n){const r=e[h];let i=!1;for(;!i;){const t=r.shift();if(!t)break;e[s]--,i=!this.dispatch(t.opts,t.handler)}this[m]=i,!this[m]&&e[m]&&(e[m]=!1,e.emit("drain",t,[e,...n])),e[g]&&r.isEmpty()&&Promise.all(e[_].map((e=>e.close()))).then(e[g])},this[y]=(t,n)=>{e.emit("connect",t,[e,...n])},this[v]=(t,n,r)=>{e.emit("disconnect",t,[e,...n],r)},this[b]=(t,n,r)=>{e.emit("connectionError",t,[e,...n],r)},this[S]=new f(this)}get[a](){return this[m]}get[n](){return this[_].filter((e=>e[n])).length}get[c](){return this[_].filter((e=>e[n]&&!e[m])).length}get[o](){let e=this[s];for(const{[o]:t}of this[_])e+=t;return e}get[i](){let e=0;for(const{[i]:t}of this[_])e+=t;return e}get[r](){let e=this[s];for(const{[r]:t}of this[_])e+=t;return e}get stats(){return this[S]}async[u](){return this[h].isEmpty()?Promise.all(this[_].map((e=>e.close()))):new Promise((e=>{this[g]=e}))}async[d](e){for(;;){const t=this[h].shift();if(!t)break;t.handler.onError(e)}return Promise.all(this[_].map((t=>t.destroy(e))))}[p](e,t){const n=this[C]();return n?n.dispatch(e,t)||(n[m]=!0,this[m]=!this[C]()):(this[m]=!0,this[h].push({opts:e,handler:t}),this[s]++),!this[m]}[E](e){return e.on("drain",this[A]).on("connect",this[y]).on("disconnect",this[v]).on("connectionError",this[b]),this[_].push(e),this[m]&&process.nextTick((()=>{this[m]&&this[A](e[l],[this,e])})),this}[x](e){e.close((()=>{const t=this[_].indexOf(e);-1!==t&&this[_].splice(t,1)})),this[m]=this[_].some((e=>!e[m]&&!0!==e.closed&&!0!==e.destroyed))}},kClients:_,kNeedDrain:m,kAddClient:E,kRemoveClient:x,kGetDispatcher:C},poolBase}function requirePool(){if(hasRequiredPool)return pool;hasRequiredPool=1;const{PoolBase:e,kClients:t,kNeedDrain:n,kAddClient:r,kGetDispatcher:i}=requirePoolBase(),o=requireClient(),{InvalidArgumentError:s}=requireErrors$2(),a=requireUtil$b(),{kUrl:c,kInterceptors:l}=requireSymbols$4(),u=requireConnect(),d=Symbol("options"),p=Symbol("connections"),f=Symbol("factory");function _(e,t){return new o(e,t)}return pool=class extends e{constructor(e,{connections:t,factory:n=_,connect:r,connectTimeout:i,tls:o,maxCachedSessions:m,socketPath:h,autoSelectFamily:g,autoSelectFamilyAttemptTimeout:A,allowH2:y,...v}={}){if(super(),null!=t&&(!Number.isFinite(t)||t<0))throw new s("invalid connections");if("function"!=typeof n)throw new s("factory must be a function.");if(null!=r&&"function"!=typeof r&&"object"!=typeof r)throw new s("connect must be a function or an object");"function"!=typeof r&&(r=u({...o,maxCachedSessions:m,allowH2:y,socketPath:h,timeout:i,...a.nodeHasAutoSelectFamily&&g?{autoSelectFamily:g,autoSelectFamilyAttemptTimeout:A}:void 0,...r})),this[l]=v.interceptors&&v.interceptors.Pool&&Array.isArray(v.interceptors.Pool)?v.interceptors.Pool:[],this[p]=t||null,this[c]=a.parseOrigin(e),this[d]={...a.deepClone(v),connect:r,allowH2:y},this[d].interceptors=v.interceptors?{...v.interceptors}:void 0,this[f]=n}[i](){let e=this[t].find((e=>!e[n]));return e||((!this[p]||this[t].lengthe[l].origin===t&&!0!==e.closed&&!0!==e.destroyed)))return this;const n=this[p](t,Object.assign({},this[f]));this[o](n),n.on("connect",(()=>{n[g]=Math.min(this[A],n[g]+this[y])})),n.on("connectionError",(()=>{n[g]=Math.max(1,n[g]-this[y]),this._updateBalancedPoolStats()})),n.on("disconnect",((...e)=>{const t=e[2];t&&"UND_ERR_SOCKET"===t.code&&(n[g]=Math.max(1,n[g]-this[y]),this._updateBalancedPoolStats())}));for(const e of this[r])e[g]=this[A];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){this[_]=this[r].map((e=>e[g])).reduce(v,0)}removeUpstream(e){const t=d(e).origin,n=this[r].find((e=>e[l].origin===t&&!0!==e.closed&&!0!==e.destroyed));return n&&this[s](n),this}get upstreams(){return this[r].filter((e=>!0!==e.closed&&!0!==e.destroyed)).map((e=>e[l].origin))}[a](){if(0===this[r].length)throw new e;if(!this[r].find((e=>!e[i]&&!0!==e.closed&&!0!==e.destroyed)))return;const t=this[r].map((e=>e[i])).reduce(((e,t)=>e&&t),!0);if(t)return;let n=0,o=this[r].findIndex((e=>!e[i]));for(;n++this[r][o][g]&&!e[i]&&(o=this[h]),0===this[h]&&(this[m]=this[m]-this[_],this[m]<=0&&(this[m]=this[A])),e[g]>=this[m]&&!e[i])return e}return this[m]=this[r][o][g],this[h]=o,this[r][o]}},balancedPool}function requireDispatcherWeakref(){if(hasRequiredDispatcherWeakref)return dispatcherWeakref;hasRequiredDispatcherWeakref=1;const{kConnected:e,kSize:t}=requireSymbols$4();class n{constructor(e){this.value=e}deref(){return 0===this.value[e]&&0===this.value[t]?void 0:this.value}}class r{constructor(e){this.finalizer=e}register(n,r){n.on&&n.on("disconnect",(()=>{0===n[e]&&0===n[t]&&this.finalizer(r)}))}}return dispatcherWeakref=function(){return process.env.NODE_V8_COVERAGE?{WeakRef:n,FinalizationRegistry:r}:{WeakRef:commonjsGlobal.WeakRef||n,FinalizationRegistry:commonjsGlobal.FinalizationRegistry||r}}}function requireAgent(){if(hasRequiredAgent)return agent;hasRequiredAgent=1;const{InvalidArgumentError:e}=requireErrors$2(),{kClients:t,kRunning:n,kClose:r,kDestroy:i,kDispatch:o,kInterceptors:s}=requireSymbols$4(),a=requireDispatcherBase(),c=requirePool(),l=requireClient(),u=requireUtil$b(),d=requireRedirectInterceptor(),{WeakRef:p,FinalizationRegistry:f}=requireDispatcherWeakref()(),_=Symbol("onConnect"),m=Symbol("onDisconnect"),h=Symbol("onConnectionError"),g=Symbol("maxRedirections"),A=Symbol("onDrain"),y=Symbol("factory"),v=Symbol("finalizer"),b=Symbol("options");function C(e,t){return t&&1===t.connections?new l(e,t):new c(e,t)}return agent=class extends a{constructor({factory:n=C,maxRedirections:r=0,connect:i,...o}={}){if(super(),"function"!=typeof n)throw new e("factory must be a function.");if(null!=i&&"function"!=typeof i&&"object"!=typeof i)throw new e("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new e("maxRedirections must be a positive number");i&&"function"!=typeof i&&(i={...i}),this[s]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[d({maxRedirections:r})],this[b]={...u.deepClone(o),connect:i},this[b].interceptors=o.interceptors?{...o.interceptors}:void 0,this[g]=r,this[y]=n,this[t]=new Map,this[v]=new f((e=>{const n=this[t].get(e);void 0!==n&&void 0===n.deref()&&this[t].delete(e)}));const a=this;this[A]=(e,t)=>{a.emit("drain",e,[a,...t])},this[_]=(e,t)=>{a.emit("connect",e,[a,...t])},this[m]=(e,t,n)=>{a.emit("disconnect",e,[a,...t],n)},this[h]=(e,t,n)=>{a.emit("connectionError",e,[a,...t],n)}}get[n](){let e=0;for(const r of this[t].values()){const t=r.deref();t&&(e+=t[n])}return e}[o](n,r){let i;if(!n.origin||!("string"==typeof n.origin||n.origin instanceof URL))throw new e("opts.origin must be a non-empty string or URL.");i=String(n.origin);const o=this[t].get(i);let s=o?o.deref():null;return s||(s=this[y](n.origin,this[b]).on("drain",this[A]).on("connect",this[_]).on("disconnect",this[m]).on("connectionError",this[h]),this[t].set(i,new p(s)),this[v].register(s,i)),s.dispatch(n,r)}async[r](){const e=[];for(const n of this[t].values()){const t=n.deref();t&&e.push(t.close())}await Promise.all(e)}async[i](e){const n=[];for(const r of this[t].values()){const t=r.deref();t&&n.push(t.destroy(e))}await Promise.all(n)}},agent}var api$2={},apiRequest={exports:{}},readable,hasRequiredReadable,util$9,hasRequiredUtil$9,abortSignal,hasRequiredAbortSignal,hasRequiredApiRequest,apiStream,hasRequiredApiStream,apiPipeline,hasRequiredApiPipeline,apiUpgrade,hasRequiredApiUpgrade,apiConnect,hasRequiredApiConnect,hasRequiredApi$2,mockErrors,hasRequiredMockErrors,mockSymbols,hasRequiredMockSymbols,mockUtils,hasRequiredMockUtils;function requireReadable(){if(hasRequiredReadable)return readable;hasRequiredReadable=1;const e=require$$0$f,{Readable:t}=require$$0$b,{RequestAbortedError:n,NotSupportedError:r,InvalidArgumentError:i}=requireErrors$2(),o=requireUtil$b(),{ReadableStreamFrom:s,toUSVString:a}=requireUtil$b();let c;const l=Symbol("kConsume"),u=Symbol("kReading"),d=Symbol("kBody"),p=Symbol("abort"),f=Symbol("kContentType"),_=()=>{};function m(e){return o.isDisturbed(e)||function(e){return e[d]&&!0===e[d].locked||e[l]}(e)}async function h(t,r){if(m(t))throw new TypeError("unusable");return e(!t[l]),new Promise(((e,i)=>{t[l]={type:r,stream:t,resolve:e,reject:i,length:0,body:[]},t.on("error",(function(e){v(this[l],e)})).on("close",(function(){null!==this[l].body&&v(this[l],new n)})),process.nextTick(g,t[l])}))}function g(e){if(null===e.body)return;const{_readableState:t}=e.stream;for(const n of t.buffer)y(e,n);for(t.endEmitted?A(this[l]):e.stream.on("end",(function(){A(this[l])})),e.stream.resume();null!=e.stream.read(););}function A(e){const{type:t,body:n,resolve:r,stream:i,length:o}=e;try{if("text"===t)r(a(Buffer.concat(n)));else if("json"===t)r(JSON.parse(Buffer.concat(n)));else if("arrayBuffer"===t){const e=new Uint8Array(o);let t=0;for(const r of n)e.set(r,t),t+=r.byteLength;r(e.buffer)}else"blob"===t&&(c||(c=require("buffer").Blob),r(new c(n,{type:i[f]})));v(e)}catch(e){i.destroy(e)}}function y(e,t){e.length+=t.length,e.body.push(t)}function v(e,t){null!==e.body&&(t?e.reject(t):e.resolve(),e.type=null,e.stream=null,e.resolve=null,e.reject=null,e.length=0,e.body=null)}return readable=class extends t{constructor({resume:e,abort:t,contentType:n="",highWaterMark:r=65536}){super({autoDestroy:!0,read:e,highWaterMark:r}),this._readableState.dataEmitted=!1,this[p]=t,this[l]=null,this[d]=null,this[f]=n,this[u]=!1}destroy(e){return this.destroyed?this:(e||this._readableState.endEmitted||(e=new n),e&&this[p](),super.destroy(e))}emit(e,...t){return"data"===e?this._readableState.dataEmitted=!0:"error"===e&&(this._readableState.errorEmitted=!0),super.emit(e,...t)}on(e,...t){return"data"!==e&&"readable"!==e||(this[u]=!0),super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const n=super.off(e,...t);return"data"!==e&&"readable"!==e||(this[u]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...t){return this.off(e,...t)}push(e){return this[l]&&null!==e&&0===this.readableLength?(y(this[l],e),!this[u]||super.push(e)):super.push(e)}async text(){return h(this,"text")}async json(){return h(this,"json")}async blob(){return h(this,"blob")}async arrayBuffer(){return h(this,"arrayBuffer")}async formData(){throw new r}get bodyUsed(){return o.isDisturbed(this)}get body(){return this[d]||(this[d]=s(this),this[l]&&(this[d].getReader(),e(this[d].locked))),this[d]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const n=e&&e.signal;if(n)try{if("object"!=typeof n||!("aborted"in n))throw new i("signal must be an AbortSignal");o.throwIfAborted(n)}catch(e){return Promise.reject(e)}return this.closed?Promise.resolve(null):new Promise(((e,r)=>{const i=n?o.addAbortListener(n,(()=>{this.destroy()})):_;this.on("close",(function(){i(),n&&n.aborted?r(n.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"})):e(null)})).on("error",_).on("data",(function(e){t-=e.length,t<=0&&this.destroy()})).resume()}))}},readable}function requireUtil$9(){if(hasRequiredUtil$9)return util$9;hasRequiredUtil$9=1;const e=require$$0$f,{ResponseStatusCodeError:t}=requireErrors$2(),{toUSVString:n}=requireUtil$b();return util$9={getResolveErrorBodyCallback:async function({callback:r,body:i,contentType:o,statusCode:s,statusMessage:a,headers:c}){e(i);let l=[],u=0;for await(const e of i)if(l.push(e),u+=e.length,u>131072){l=null;break}if(204!==s&&o&&l){try{if(o.startsWith("application/json")){const e=JSON.parse(n(Buffer.concat(l)));return void process.nextTick(r,new t(`Response status code ${s}${a?`: ${a}`:""}`,s,c,e))}if(o.startsWith("text/")){const e=n(Buffer.concat(l));return void process.nextTick(r,new t(`Response status code ${s}${a?`: ${a}`:""}`,s,c,e))}}catch(e){}process.nextTick(r,new t(`Response status code ${s}${a?`: ${a}`:""}`,s,c))}else process.nextTick(r,new t(`Response status code ${s}${a?`: ${a}`:""}`,s,c))}},util$9}function requireAbortSignal(){if(hasRequiredAbortSignal)return abortSignal;hasRequiredAbortSignal=1;const{addAbortListener:e}=requireUtil$b(),{RequestAbortedError:t}=requireErrors$2(),n=Symbol("kListener"),r=Symbol("kSignal");function i(e){e.abort?e.abort():e.onError(new t)}return abortSignal={addSignal:function(t,o){t[r]=null,t[n]=null,o&&(o.aborted?i(t):(t[r]=o,t[n]=()=>{i(t)},e(t[r],t[n])))},removeSignal:function(e){e[r]&&("removeEventListener"in e[r]?e[r].removeEventListener("abort",e[n]):e[r].removeListener("abort",e[n]),e[r]=null,e[n]=null)}}}function requireApiRequest(){if(hasRequiredApiRequest)return apiRequest.exports;hasRequiredApiRequest=1;const e=requireReadable(),{InvalidArgumentError:t,RequestAbortedError:n}=requireErrors$2(),r=requireUtil$b(),{getResolveErrorBodyCallback:i}=requireUtil$9(),{AsyncResource:o}=require$$4$2,{addSignal:s,removeSignal:a}=requireAbortSignal();class c extends o{constructor(e,n){if(!e||"object"!=typeof e)throw new t("invalid opts");const{signal:i,method:o,opaque:a,body:c,onInfo:l,responseHeaders:u,throwOnError:d,highWaterMark:p}=e;try{if("function"!=typeof n)throw new t("invalid callback");if(p&&("number"!=typeof p||p<0))throw new t("invalid highWaterMark");if(i&&"function"!=typeof i.on&&"function"!=typeof i.addEventListener)throw new t("signal must be an EventEmitter or EventTarget");if("CONNECT"===o)throw new t("invalid method");if(l&&"function"!=typeof l)throw new t("invalid onInfo callback");super("UNDICI_REQUEST")}catch(e){throw r.isStream(c)&&r.destroy(c.on("error",r.nop),e),e}this.responseHeaders=u||null,this.opaque=a||null,this.callback=n,this.res=null,this.abort=null,this.body=c,this.trailers={},this.context=null,this.onInfo=l||null,this.throwOnError=d,this.highWaterMark=p,r.isStream(c)&&c.on("error",(e=>{this.onError(e)})),s(this,i)}onConnect(e,t){if(!this.callback)throw new n;this.abort=e,this.context=t}onHeaders(t,n,o,s){const{callback:a,opaque:c,abort:l,context:u,responseHeaders:d,highWaterMark:p}=this,f="raw"===d?r.parseRawHeaders(n):r.parseHeaders(n);if(t<200)return void(this.onInfo&&this.onInfo({statusCode:t,headers:f}));const _=("raw"===d?r.parseHeaders(n):f)["content-type"],m=new e({resume:o,abort:l,contentType:_,highWaterMark:p});this.callback=null,this.res=m,null!==a&&(this.throwOnError&&t>=400?this.runInAsyncScope(i,null,{callback:a,body:m,contentType:_,statusCode:t,statusMessage:s,headers:f}):this.runInAsyncScope(a,null,null,{statusCode:t,headers:f,trailers:this.trailers,opaque:c,body:m,context:u}))}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;a(this),r.parseHeaders(e,this.trailers),t.push(null)}onError(e){const{res:t,callback:n,body:i,opaque:o}=this;a(this),n&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:o})}))),t&&(this.res=null,queueMicrotask((()=>{r.destroy(t,e)}))),i&&(this.body=null,r.destroy(i,e))}}return apiRequest.exports=function e(t,n){if(void 0===n)return new Promise(((n,r)=>{e.call(this,t,((e,t)=>e?r(e):n(t)))}));try{this.dispatch(t,new c(t,n))}catch(e){if("function"!=typeof n)throw e;const r=t&&t.opaque;queueMicrotask((()=>n(e,{opaque:r})))}},apiRequest.exports.RequestHandler=c,apiRequest.exports}function requireApiStream(){if(hasRequiredApiStream)return apiStream;hasRequiredApiStream=1;const{finished:e,PassThrough:t}=require$$0$b,{InvalidArgumentError:n,InvalidReturnValueError:r,RequestAbortedError:i}=requireErrors$2(),o=requireUtil$b(),{getResolveErrorBodyCallback:s}=requireUtil$9(),{AsyncResource:a}=require$$4$2,{addSignal:c,removeSignal:l}=requireAbortSignal();class u extends a{constructor(e,t,r){if(!e||"object"!=typeof e)throw new n("invalid opts");const{signal:i,method:s,opaque:a,body:l,onInfo:u,responseHeaders:d,throwOnError:p}=e;try{if("function"!=typeof r)throw new n("invalid callback");if("function"!=typeof t)throw new n("invalid factory");if(i&&"function"!=typeof i.on&&"function"!=typeof i.addEventListener)throw new n("signal must be an EventEmitter or EventTarget");if("CONNECT"===s)throw new n("invalid method");if(u&&"function"!=typeof u)throw new n("invalid onInfo callback");super("UNDICI_STREAM")}catch(e){throw o.isStream(l)&&o.destroy(l.on("error",o.nop),e),e}this.responseHeaders=d||null,this.opaque=a||null,this.factory=t,this.callback=r,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=l,this.onInfo=u||null,this.throwOnError=p||!1,o.isStream(l)&&l.on("error",(e=>{this.onError(e)})),c(this,i)}onConnect(e,t){if(!this.callback)throw new i;this.abort=e,this.context=t}onHeaders(n,i,a,c){const{factory:l,opaque:u,context:d,callback:p,responseHeaders:f}=this,_="raw"===f?o.parseRawHeaders(i):o.parseHeaders(i);if(n<200)return void(this.onInfo&&this.onInfo({statusCode:n,headers:_}));let m;if(this.factory=null,this.throwOnError&&n>=400){const e=("raw"===f?o.parseHeaders(i):_)["content-type"];m=new t,this.callback=null,this.runInAsyncScope(s,null,{callback:p,body:m,contentType:e,statusCode:n,statusMessage:c,headers:_})}else{if(null===l)return;if(m=this.runInAsyncScope(l,null,{statusCode:n,headers:_,opaque:u,context:d}),!m||"function"!=typeof m.write||"function"!=typeof m.end||"function"!=typeof m.on)throw new r("expected Writable");e(m,{readable:!1},(e=>{const{callback:t,res:n,opaque:r,trailers:i,abort:s}=this;this.res=null,!e&&n.readable||o.destroy(n,e),this.callback=null,this.runInAsyncScope(t,null,e||null,{opaque:r,trailers:i}),e&&s()}))}m.on("drain",a),this.res=m;return!0!==(void 0!==m.writableNeedDrain?m.writableNeedDrain:m._writableState&&m._writableState.needDrain)}onData(e){const{res:t}=this;return!t||t.write(e)}onComplete(e){const{res:t}=this;l(this),t&&(this.trailers=o.parseHeaders(e),t.end())}onError(e){const{res:t,callback:n,opaque:r,body:i}=this;l(this),this.factory=null,t?(this.res=null,o.destroy(t,e)):n&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:r})}))),i&&(this.body=null,o.destroy(i,e))}}return apiStream=function e(t,n,r){if(void 0===r)return new Promise(((r,i)=>{e.call(this,t,n,((e,t)=>e?i(e):r(t)))}));try{this.dispatch(t,new u(t,n,r))}catch(e){if("function"!=typeof r)throw e;const n=t&&t.opaque;queueMicrotask((()=>r(e,{opaque:n})))}},apiStream}function requireApiPipeline(){if(hasRequiredApiPipeline)return apiPipeline;hasRequiredApiPipeline=1;const{Readable:e,Duplex:t,PassThrough:n}=require$$0$b,{InvalidArgumentError:r,InvalidReturnValueError:i,RequestAbortedError:o}=requireErrors$2(),s=requireUtil$b(),{AsyncResource:a}=require$$4$2,{addSignal:c,removeSignal:l}=requireAbortSignal(),u=require$$0$f,d=Symbol("resume");class p extends e{constructor(){super({autoDestroy:!0}),this[d]=null}_read(){const{[d]:e}=this;e&&(this[d]=null,e())}_destroy(e,t){this._read(),t(e)}}class f extends e{constructor(e){super({autoDestroy:!0}),this[d]=e}_read(){this[d]()}_destroy(e,t){e||this._readableState.endEmitted||(e=new o),t(e)}}class _ extends a{constructor(e,n){if(!e||"object"!=typeof e)throw new r("invalid opts");if("function"!=typeof n)throw new r("invalid handler");const{signal:i,method:a,opaque:u,onInfo:f,responseHeaders:_}=e;if(i&&"function"!=typeof i.on&&"function"!=typeof i.addEventListener)throw new r("signal must be an EventEmitter or EventTarget");if("CONNECT"===a)throw new r("invalid method");if(f&&"function"!=typeof f)throw new r("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=u||null,this.responseHeaders=_||null,this.handler=n,this.abort=null,this.context=null,this.onInfo=f||null,this.req=(new p).on("error",s.nop),this.ret=new t({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{const{body:e}=this;e&&e.resume&&e.resume()},write:(e,t,n)=>{const{req:r}=this;r.push(e,t)||r._readableState.destroyed?n():r[d]=n},destroy:(e,t)=>{const{body:n,req:r,res:i,ret:a,abort:c}=this;e||a._readableState.endEmitted||(e=new o),c&&e&&c(),s.destroy(n,e),s.destroy(r,e),s.destroy(i,e),l(this),t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)})),this.res=null,c(this,i)}onConnect(e,t){const{ret:n,res:r}=this;if(u(!r,"pipeline cannot be retried"),n.destroyed)throw new o;this.abort=e,this.context=t}onHeaders(e,t,n){const{opaque:r,handler:a,context:c}=this;if(e<200){if(this.onInfo){const n="raw"===this.responseHeaders?s.parseRawHeaders(t):s.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}let l;this.res=new f(n);try{this.handler=null;const n="raw"===this.responseHeaders?s.parseRawHeaders(t):s.parseHeaders(t);l=this.runInAsyncScope(a,null,{statusCode:e,headers:n,opaque:r,body:this.res,context:c})}catch(e){throw this.res.on("error",s.nop),e}if(!l||"function"!=typeof l.on)throw new i("expected Readable");l.on("data",(e=>{const{ret:t,body:n}=this;!t.push(e)&&n.pause&&n.pause()})).on("error",(e=>{const{ret:t}=this;s.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;e._readableState.ended||s.destroy(e,new o)})),this.body=l}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null,s.destroy(t,e)}}return apiPipeline=function(e,t){try{const n=new _(e,t);return this.dispatch({...e,body:n.req},n),n.ret}catch(e){return(new n).destroy(e)}}}function requireApiUpgrade(){if(hasRequiredApiUpgrade)return apiUpgrade;hasRequiredApiUpgrade=1;const{InvalidArgumentError:e,RequestAbortedError:t,SocketError:n}=requireErrors$2(),{AsyncResource:r}=require$$4$2,i=requireUtil$b(),{addSignal:o,removeSignal:s}=requireAbortSignal(),a=require$$0$f;class c extends r{constructor(t,n){if(!t||"object"!=typeof t)throw new e("invalid opts");if("function"!=typeof n)throw new e("invalid callback");const{signal:r,opaque:i,responseHeaders:s}=t;if(r&&"function"!=typeof r.on&&"function"!=typeof r.addEventListener)throw new e("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=s||null,this.opaque=i||null,this.callback=n,this.abort=null,this.context=null,o(this,r)}onConnect(e,n){if(!this.callback)throw new t;this.abort=e,this.context=null}onHeaders(){throw new n("bad upgrade",null)}onUpgrade(e,t,n){const{callback:r,opaque:o,context:c}=this;a.strictEqual(e,101),s(this),this.callback=null;const l="raw"===this.responseHeaders?i.parseRawHeaders(t):i.parseHeaders(t);this.runInAsyncScope(r,null,null,{headers:l,socket:n,opaque:o,context:c})}onError(e){const{callback:t,opaque:n}=this;s(this),t&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})})))}}return apiUpgrade=function e(t,n){if(void 0===n)return new Promise(((n,r)=>{e.call(this,t,((e,t)=>e?r(e):n(t)))}));try{const e=new c(t,n);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},e)}catch(e){if("function"!=typeof n)throw e;const r=t&&t.opaque;queueMicrotask((()=>n(e,{opaque:r})))}},apiUpgrade}function requireApiConnect(){if(hasRequiredApiConnect)return apiConnect;hasRequiredApiConnect=1;const{AsyncResource:e}=require$$4$2,{InvalidArgumentError:t,RequestAbortedError:n,SocketError:r}=requireErrors$2(),i=requireUtil$b(),{addSignal:o,removeSignal:s}=requireAbortSignal();class a extends e{constructor(e,n){if(!e||"object"!=typeof e)throw new t("invalid opts");if("function"!=typeof n)throw new t("invalid callback");const{signal:r,opaque:i,responseHeaders:s}=e;if(r&&"function"!=typeof r.on&&"function"!=typeof r.addEventListener)throw new t("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=i||null,this.responseHeaders=s||null,this.callback=n,this.abort=null,o(this,r)}onConnect(e,t){if(!this.callback)throw new n;this.abort=e,this.context=t}onHeaders(){throw new r("bad connect",null)}onUpgrade(e,t,n){const{callback:r,opaque:o,context:a}=this;s(this),this.callback=null;let c=t;null!=c&&(c="raw"===this.responseHeaders?i.parseRawHeaders(t):i.parseHeaders(t)),this.runInAsyncScope(r,null,null,{statusCode:e,headers:c,socket:n,opaque:o,context:a})}onError(e){const{callback:t,opaque:n}=this;s(this),t&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})})))}}return apiConnect=function e(t,n){if(void 0===n)return new Promise(((n,r)=>{e.call(this,t,((e,t)=>e?r(e):n(t)))}));try{const e=new a(t,n);this.dispatch({...t,method:"CONNECT"},e)}catch(e){if("function"!=typeof n)throw e;const r=t&&t.opaque;queueMicrotask((()=>n(e,{opaque:r})))}},apiConnect}function requireApi$2(){return hasRequiredApi$2||(hasRequiredApi$2=1,api$2.request=requireApiRequest(),api$2.stream=requireApiStream(),api$2.pipeline=requireApiPipeline(),api$2.upgrade=requireApiUpgrade(),api$2.connect=requireApiConnect()),api$2}function requireMockErrors(){if(hasRequiredMockErrors)return mockErrors;hasRequiredMockErrors=1;const{UndiciError:e}=requireErrors$2();class t extends e{constructor(e){super(e),Error.captureStackTrace(this,t),this.name="MockNotMatchedError",this.message=e||"The request does not match any registered mock dispatches",this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}return mockErrors={MockNotMatchedError:t}}function requireMockSymbols(){return hasRequiredMockSymbols?mockSymbols:(hasRequiredMockSymbols=1,mockSymbols={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")})}function requireMockUtils(){if(hasRequiredMockUtils)return mockUtils;hasRequiredMockUtils=1;const{MockNotMatchedError:e}=requireMockErrors(),{kDispatches:t,kMockAgent:n,kOriginalDispatch:r,kOrigin:i,kGetNetConnect:o}=requireMockSymbols(),{buildURL:s,nop:a}=requireUtil$b(),{STATUS_CODES:c}=require$$2$1,{types:{isPromise:l}}=require$$0__default;function u(e,t){return"string"==typeof e?e===t:e instanceof RegExp?e.test(t):"function"==typeof e&&!0===e(t)}function d(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function p(e,t){if(!Array.isArray(e))return"function"==typeof e.get?e.get(t):d(e)[t.toLocaleLowerCase()];for(let n=0;n!e)).filter((({path:e})=>u(m(e),i)));if(0===o.length)throw new e(`Mock dispatch not matched for path '${i}'`);if(o=o.filter((({method:e})=>u(e,n.method))),0===o.length)throw new e(`Mock dispatch not matched for method '${n.method}'`);if(o=o.filter((({body:e})=>void 0===e||u(e,n.body))),0===o.length)throw new e(`Mock dispatch not matched for body '${n.body}'`);if(o=o.filter((e=>_(e,n.headers))),0===o.length)throw new e(`Mock dispatch not matched for headers '${"object"==typeof n.headers?JSON.stringify(n.headers):n.headers}'`);return o[0]}function A(e,t){const n=e.findIndex((e=>!!e.consumed&&function(e,{path:t,method:n,body:r,headers:i}){const o=u(e.path,t),s=u(e.method,n),a=void 0===e.body||u(e.body,r),c=_(e,i);return o&&s&&a&&c}(e,t)));-1!==n&&e.splice(n,1)}function y(e){const{path:t,method:n,body:r,headers:i,query:o}=e;return{path:t,method:n,body:r,headers:i,query:o}}function v(e){return Object.entries(e).reduce(((e,[t,n])=>[...e,Buffer.from(`${t}`),Array.isArray(n)?n.map((e=>Buffer.from(`${e}`))):Buffer.from(`${n}`)]),[])}function b(e){return c[e]||"unknown"}function C(e,n){const r=y(e),i=g(this[t],r);i.timesInvoked++,i.data.callback&&(i.data={...i.data,...i.data.callback(e)});const{data:{statusCode:o,data:s,headers:c,trailers:u,error:d},delay:p,persist:_}=i,{timesInvoked:m,times:C}=i;if(i.consumed=!_&&m>=C,i.pending=mE(t,e)));const _=h(p),m=v(c),g=v(u);n.abort=a,n.onHeaders(o,m,x,b(o)),n.onData(Buffer.from(_)),n.onComplete(g),A(t,r)}function x(){}return"number"==typeof p&&p>0?setTimeout((()=>{E(this[t])}),p):E(this[t]),!0}function E(e,t){const n=new URL(t);return!0===e||!(!Array.isArray(e)||!e.some((e=>u(e,n.host))))}return mockUtils={getResponseData:h,getMockDispatch:g,addMockDispatch:function(e,t,n){const r={timesInvoked:0,times:1,persist:!1,consumed:!1,...t,pending:!0,data:{error:null,..."function"==typeof n?{callback:n}:{...n}}};return e.push(r),r},deleteMockDispatch:A,buildKey:y,generateKeyValues:v,matchValue:u,getResponse:async function(e){const t=[];for await(const n of e)t.push(n);return Buffer.concat(t).toString("utf8")},getStatusText:b,mockDispatch:C,buildMockDispatch:function(){const t=this[n],s=this[i],a=this[r];return function(n,r){if(t.isMockActive)try{C.call(this,n,r)}catch(i){if(!(i instanceof e))throw i;{const c=t[o]();if(!1===c)throw new e(`${i.message}: subsequent request to origin ${s} was not allowed (net.connect disabled)`);if(!E(c,s))throw new e(`${i.message}: subsequent request to origin ${s} was not allowed (net.connect is not enabled for this origin)`);a.call(this,n,r)}}else a.call(this,n,r)}},checkNetConnect:E,buildMockOptions:function(e){if(e){const{agent:t,...n}=e;return n}},getHeaderByName:p},mockUtils}var mockInterceptor={},hasRequiredMockInterceptor,mockClient,hasRequiredMockClient,mockPool,hasRequiredMockPool,pluralizer,hasRequiredPluralizer,pendingInterceptorsFormatter,hasRequiredPendingInterceptorsFormatter,mockAgent,hasRequiredMockAgent,proxyAgent,hasRequiredProxyAgent,RetryHandler_1,hasRequiredRetryHandler,global$2,hasRequiredGlobal,DecoratorHandler_1,hasRequiredDecoratorHandler,headers,hasRequiredHeaders,response,hasRequiredResponse,request$1,hasRequiredRequest$1,fetch_1,hasRequiredFetch,symbols$2,hasRequiredSymbols$2,progressevent,hasRequiredProgressevent,encoding,hasRequiredEncoding,util$8,hasRequiredUtil$8,filereader,hasRequiredFilereader,symbols$1,hasRequiredSymbols$1,util$7,hasRequiredUtil$7,cache$1,hasRequiredCache,cachestorage,hasRequiredCachestorage,constants$1,hasRequiredConstants$1,util$6,hasRequiredUtil$6,parse$5,hasRequiredParse$2,cookies,hasRequiredCookies,constants,hasRequiredConstants,symbols,hasRequiredSymbols,events,hasRequiredEvents,util$5,hasRequiredUtil$5,connection,hasRequiredConnection,frame,hasRequiredFrame,receiver,hasRequiredReceiver,websocket,hasRequiredWebsocket,hasRequiredUndici,hasRequiredLib$f;function requireMockInterceptor(){if(hasRequiredMockInterceptor)return mockInterceptor;hasRequiredMockInterceptor=1;const{getResponseData:e,buildKey:t,addMockDispatch:n}=requireMockUtils(),{kDispatches:r,kDispatchKey:i,kDefaultHeaders:o,kDefaultTrailers:s,kContentLength:a,kMockDispatch:c}=requireMockSymbols(),{InvalidArgumentError:l}=requireErrors$2(),{buildURL:u}=requireUtil$b();class d{constructor(e){this[c]=e}delay(e){if("number"!=typeof e||!Number.isInteger(e)||e<=0)throw new l("waitInMs must be a valid integer > 0");return this[c].delay=e,this}persist(){return this[c].persist=!0,this}times(e){if("number"!=typeof e||!Number.isInteger(e)||e<=0)throw new l("repeatTimes must be a valid integer > 0");return this[c].times=e,this}}return mockInterceptor.MockInterceptor=class{constructor(e,n){if("object"!=typeof e)throw new l("opts must be an object");if(void 0===e.path)throw new l("opts.path must be defined");if(void 0===e.method&&(e.method="GET"),"string"==typeof e.path)if(e.query)e.path=u(e.path,e.query);else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}"string"==typeof e.method&&(e.method=e.method.toUpperCase()),this[i]=t(e),this[r]=n,this[o]={},this[s]={},this[a]=!1}createMockScopeDispatchData(t,n,r={}){const i=e(n),c=this[a]?{"content-length":i.length}:{};return{statusCode:t,data:n,headers:{...this[o],...c,...r.headers},trailers:{...this[s],...r.trailers}}}validateReplyParameters(e,t,n){if(void 0===e)throw new l("statusCode must be defined");if(void 0===t)throw new l("data must be defined");if("object"!=typeof n)throw new l("responseOptions must be an object")}reply(e){if("function"==typeof e){const t=t=>{const n=e(t);if("object"!=typeof n)throw new l("reply options callback must return an object");const{statusCode:r,data:i="",responseOptions:o={}}=n;return this.validateReplyParameters(r,i,o),{...this.createMockScopeDispatchData(r,i,o)}},o=n(this[r],this[i],t);return new d(o)}const[t,o="",s={}]=[...arguments];this.validateReplyParameters(t,o,s);const a=this.createMockScopeDispatchData(t,o,s),c=n(this[r],this[i],a);return new d(c)}replyWithError(e){if(void 0===e)throw new l("error must be defined");const t=n(this[r],this[i],{error:e});return new d(t)}defaultReplyHeaders(e){if(void 0===e)throw new l("headers must be defined");return this[o]=e,this}defaultReplyTrailers(e){if(void 0===e)throw new l("trailers must be defined");return this[s]=e,this}replyContentLength(){return this[a]=!0,this}},mockInterceptor.MockScope=d,mockInterceptor}function requireMockClient(){if(hasRequiredMockClient)return mockClient;hasRequiredMockClient=1;const{promisify:e}=require$$0__default,t=requireClient(),{buildMockDispatch:n}=requireMockUtils(),{kDispatches:r,kMockAgent:i,kClose:o,kOriginalClose:s,kOrigin:a,kOriginalDispatch:c,kConnected:l}=requireMockSymbols(),{MockInterceptor:u}=requireMockInterceptor(),d=requireSymbols$4(),{InvalidArgumentError:p}=requireErrors$2();class f extends t{constructor(e,t){if(super(e,t),!t||!t.agent||"function"!=typeof t.agent.dispatch)throw new p("Argument opts.agent must implement Agent");this[i]=t.agent,this[a]=e,this[r]=[],this[l]=1,this[c]=this.dispatch,this[s]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[o]}get[d.kConnected](){return this[l]}intercept(e){return new u(e,this[r])}async[o](){await e(this[s])(),this[l]=0,this[i][d.kClients].delete(this[a])}}return mockClient=f}function requireMockPool(){if(hasRequiredMockPool)return mockPool;hasRequiredMockPool=1;const{promisify:e}=require$$0__default,t=requirePool(),{buildMockDispatch:n}=requireMockUtils(),{kDispatches:r,kMockAgent:i,kClose:o,kOriginalClose:s,kOrigin:a,kOriginalDispatch:c,kConnected:l}=requireMockSymbols(),{MockInterceptor:u}=requireMockInterceptor(),d=requireSymbols$4(),{InvalidArgumentError:p}=requireErrors$2();class f extends t{constructor(e,t){if(super(e,t),!t||!t.agent||"function"!=typeof t.agent.dispatch)throw new p("Argument opts.agent must implement Agent");this[i]=t.agent,this[a]=e,this[r]=[],this[l]=1,this[c]=this.dispatch,this[s]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[o]}get[d.kConnected](){return this[l]}intercept(e){return new u(e,this[r])}async[o](){await e(this[s])(),this[l]=0,this[i][d.kClients].delete(this[a])}}return mockPool=f}function requirePluralizer(){if(hasRequiredPluralizer)return pluralizer;hasRequiredPluralizer=1;const e={pronoun:"it",is:"is",was:"was",this:"this"},t={pronoun:"they",is:"are",was:"were",this:"these"};return pluralizer=class{constructor(e,t){this.singular=e,this.plural=t}pluralize(n){const r=1===n;return{...r?e:t,count:n,noun:r?this.singular:this.plural}}}}function requirePendingInterceptorsFormatter(){if(hasRequiredPendingInterceptorsFormatter)return pendingInterceptorsFormatter;hasRequiredPendingInterceptorsFormatter=1;const{Transform:e}=require$$0$b,{Console:t}=require$$1$5;return pendingInterceptorsFormatter=class{constructor({disableColors:n}={}){this.transform=new e({transform(e,t,n){n(null,e)}}),this.logger=new t({stdout:this.transform,inspectOptions:{colors:!n&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:n},persist:r,times:i,timesInvoked:o,origin:s})=>({Method:e,Origin:s,Path:t,"Status code":n,Persistent:r?"โœ…":"โŒ",Invocations:o,Remaining:r?1/0:i-o})));return this.logger.table(t),this.transform.read().toString()}},pendingInterceptorsFormatter}function requireMockAgent(){if(hasRequiredMockAgent)return mockAgent;hasRequiredMockAgent=1;const{kClients:e}=requireSymbols$4(),t=requireAgent(),{kAgent:n,kMockAgentSet:r,kMockAgentGet:i,kDispatches:o,kIsMockActive:s,kNetConnect:a,kGetNetConnect:c,kOptions:l,kFactory:u}=requireMockSymbols(),d=requireMockClient(),p=requireMockPool(),{matchValue:f,buildMockOptions:_}=requireMockUtils(),{InvalidArgumentError:m,UndiciError:h}=requireErrors$2(),g=requireDispatcher(),A=requirePluralizer(),y=requirePendingInterceptorsFormatter();class v{constructor(e){this.value=e}deref(){return this.value}}return mockAgent=class extends g{constructor(r){if(super(r),this[a]=!0,this[s]=!0,r&&r.agent&&"function"!=typeof r.agent.dispatch)throw new m("Argument opts.agent must implement Agent");const i=r&&r.agent?r.agent:new t(r);this[n]=i,this[e]=i[e],this[l]=_(r)}get(e){let t=this[i](e);return t||(t=this[u](e),this[r](e,t)),t}dispatch(e,t){return this.get(e.origin),this[n].dispatch(e,t)}async close(){await this[n].close(),this[e].clear()}deactivate(){this[s]=!1}activate(){this[s]=!0}enableNetConnect(e){if("string"==typeof e||"function"==typeof e||e instanceof RegExp)Array.isArray(this[a])?this[a].push(e):this[a]=[e];else{if(void 0!==e)throw new m("Unsupported matcher. Must be one of String|Function|RegExp.");this[a]=!0}}disableNetConnect(){this[a]=!1}get isMockActive(){return this[s]}[r](t,n){this[e].set(t,new v(n))}[u](e){const t=Object.assign({agent:this},this[l]);return this[l]&&1===this[l].connections?new d(e,t):new p(e,t)}[i](t){const n=this[e].get(t);if(n)return n.deref();if("string"!=typeof t){const e=this[u]("http://localhost:9999");return this[r](t,e),e}for(const[n,i]of Array.from(this[e])){const e=i.deref();if(e&&"string"!=typeof n&&f(n,t)){const n=this[u](t);return this[r](t,n),n[o]=e[o],n}}}[c](){return this[a]}pendingInterceptors(){const t=this[e];return Array.from(t.entries()).flatMap((([e,t])=>t.deref()[o].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new y}={}){const t=this.pendingInterceptors();if(0===t.length)return;const n=new A("interceptor","interceptors").pluralize(t.length);throw new h(`\n${n.count} ${n.noun} ${n.is} pending:\n\n${e.format(t)}\n`.trim())}},mockAgent}function requireProxyAgent(){if(hasRequiredProxyAgent)return proxyAgent;hasRequiredProxyAgent=1;const{kProxy:e,kClose:t,kDestroy:n,kInterceptors:r}=requireSymbols$4(),{URL:i}=require$$0$k,o=requireAgent(),s=requirePool(),a=requireDispatcherBase(),{InvalidArgumentError:c,RequestAbortedError:l}=requireErrors$2(),u=requireConnect(),d=Symbol("proxy agent"),p=Symbol("proxy client"),f=Symbol("proxy headers"),_=Symbol("request tls settings"),m=Symbol("proxy tls settings"),h=Symbol("connect endpoint function");function g(e,t){return new s(e,t)}return proxyAgent=class extends a{constructor(t){if(super(t),this[e]=function(e){if("string"==typeof e&&(e={uri:e}),!e||!e.uri)throw new c("Proxy opts.uri is mandatory");return{uri:e.uri,protocol:e.protocol||"https"}}(t),this[d]=new o(t),this[r]=t.interceptors&&t.interceptors.ProxyAgent&&Array.isArray(t.interceptors.ProxyAgent)?t.interceptors.ProxyAgent:[],"string"==typeof t&&(t={uri:t}),!t||!t.uri)throw new c("Proxy opts.uri is mandatory");const{clientFactory:n=g}=t;if("function"!=typeof n)throw new c("Proxy opts.clientFactory must be a function.");this[_]=t.requestTls,this[m]=t.proxyTls,this[f]=t.headers||{};const s=new i(t.uri),{origin:a,port:A,host:y,username:v,password:b}=s;if(t.auth&&t.token)throw new c("opts.auth cannot be used in combination with opts.token");t.auth?this[f]["proxy-authorization"]=`Basic ${t.auth}`:t.token?this[f]["proxy-authorization"]=t.token:v&&b&&(this[f]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(v)}:${decodeURIComponent(b)}`).toString("base64")}`);const C=u({...t.proxyTls});this[h]=u({...t.requestTls}),this[p]=n(s,{connect:C}),this[d]=new o({...t,connect:async(e,t)=>{let n=e.host;e.port||(n+=":"+("https:"===e.protocol?443:80));try{const{socket:r,statusCode:i}=await this[p].connect({origin:a,port:A,path:n,signal:e.signal,headers:{...this[f],host:y}});if(200!==i&&(r.on("error",(()=>{})).destroy(),t(new l(`Proxy response (${i}) !== 200 when HTTP Tunneling`))),"https:"!==e.protocol)return void t(null,r);let o;o=this[_]?this[_].servername:e.servername,this[h]({...e,servername:o,httpSocket:r},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:n}=new i(e.origin),r=function(e){if(Array.isArray(e)){const t={};for(let n=0;n"proxy-authorization"===e.toLowerCase()));if(t)throw new c("Proxy-Authorization should be sent in ProxyAgent constructor")}(r),this[d].dispatch({...e,headers:{...r,host:n}},t)}async[t](){await this[d].close(),await this[p].close()}async[n](){await this[d].destroy(),await this[p].destroy()}},proxyAgent}function requireRetryHandler(){if(hasRequiredRetryHandler)return RetryHandler_1;hasRequiredRetryHandler=1;const e=require$$0$f,{kRetryHandlerDefaultRetry:t}=requireSymbols$4(),{RequestRetryError:n}=requireErrors$2(),{isDisturbed:r,parseHeaders:i,parseRangeHeader:o}=requireUtil$b();class s{constructor(e,n){const{retryOptions:r,...i}=e,{retry:o,maxRetries:a,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:p,retryAfter:f,statusCodes:_}=r??{};this.dispatch=n.dispatch,this.handler=n.handler,this.opts=i,this.abort=null,this.aborted=!1,this.retryOpts={retry:o??s[t],retryAfter:f??!0,maxTimeout:c??3e4,timeout:l??500,timeoutFactor:u??2,maxRetries:a??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:_??[500,502,503,504,429],errorCodes:p??["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[t](e,{state:t,opts:n},r){const{statusCode:i,code:o,headers:s}=e,{method:a,retryOptions:c}=n,{maxRetries:l,timeout:u,maxTimeout:d,timeoutFactor:p,statusCodes:f,errorCodes:_,methods:m}=c;let{counter:h,currentTimeout:g}=t;if(g=null!=g&&g>0?g:u,o&&"UND_ERR_REQ_RETRY"!==o&&"UND_ERR_SOCKET"!==o&&!_.includes(o))return void r(e);if(Array.isArray(m)&&!m.includes(a))return void r(e);if(null!=i&&Array.isArray(f)&&!f.includes(i))return void r(e);if(h>l)return void r(e);let A=null!=s&&s["retry-after"];A&&(A=Number(A),A=isNaN(A)?function(e){const t=Date.now();return new Date(e).getTime()-t}(A):1e3*A);const y=A>0?Math.min(A,d):Math.min(g*p**h,d);t.currentTimeout=y,setTimeout((()=>r(null)),y)}onHeaders(t,r,s,a){const c=i(r);if(this.retryCount+=1,t>=300)return this.abort(new n("Request failed",t,{headers:c,count:this.retryCount})),!1;if(null!=this.resume){if(this.resume=null,206!==t)return!0;const r=o(c["content-range"]);if(!r)return this.abort(new n("Content-Range mismatch",t,{headers:c,count:this.retryCount})),!1;if(null!=this.etag&&this.etag!==c.etag)return this.abort(new n("ETag mismatch",t,{headers:c,count:this.retryCount})),!1;const{start:i,size:a,end:l=a}=r;return e(this.start===i,"content-range mismatch"),e(null==this.end||this.end===l,"content-range mismatch"),this.resume=s,!0}if(null==this.end){if(206===t){const n=o(c["content-range"]);if(null==n)return this.handler.onHeaders(t,r,s,a);const{start:i,size:l,end:u=l}=n;e(null!=i&&Number.isFinite(i)&&this.start!==i,"content-range mismatch"),e(Number.isFinite(i)),e(null!=u&&Number.isFinite(u)&&this.end!==u,"invalid content-length"),this.start=i,this.end=u}if(null==this.end){const e=c["content-length"];this.end=null!=e?Number(e):null}return e(Number.isFinite(this.start)),e(null==this.end||Number.isFinite(this.end),"invalid content-length"),this.resume=s,this.etag=null!=c.etag?c.etag:null,this.handler.onHeaders(t,r,s,a)}const l=new n("Request failed",t,{headers:c,count:this.retryCount});return this.abort(l),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||r(this.opts.body))return this.handler.onError(e);this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},function(e){if(null!=e||this.aborted||r(this.opts.body))return this.handler.onError(e);0!==this.start&&(this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}});try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}.bind(this))}}return RetryHandler_1=s}function requireGlobal(){if(hasRequiredGlobal)return global$2;hasRequiredGlobal=1;const e=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:t}=requireErrors$2(),n=requireAgent();function r(n){if(!n||"function"!=typeof n.dispatch)throw new t("Argument agent must implement Agent");Object.defineProperty(globalThis,e,{value:n,writable:!0,enumerable:!1,configurable:!1})}function i(){return globalThis[e]}return void 0===i()&&r(new n),global$2={setGlobalDispatcher:r,getGlobalDispatcher:i}}function requireDecoratorHandler(){return hasRequiredDecoratorHandler||(hasRequiredDecoratorHandler=1,DecoratorHandler_1=class{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}),DecoratorHandler_1}function requireHeaders(){if(hasRequiredHeaders)return headers;hasRequiredHeaders=1;const{kHeadersList:e,kConstruct:t}=requireSymbols$4(),{kGuard:n}=requireSymbols$3(),{kEnumerableProperty:r}=requireUtil$b(),{makeIterator:i,isValidHeaderName:o,isValidHeaderValue:s}=requireUtil$a(),{webidl:a}=requireWebidl(),c=require$$0$f,l=Symbol("headers map"),u=Symbol("headers map sorted");function d(e){return 10===e||13===e||9===e||32===e}function p(e){let t=0,n=e.length;for(;n>t&&d(e.charCodeAt(n-1));)--n;for(;n>t&&d(e.charCodeAt(t));)++t;return 0===t&&n===e.length?e:e.substring(t,n)}function f(e,t){if(Array.isArray(t))for(let n=0;n>","record"]});{const n=Object.keys(t);for(let r=0;re[0]e),"Headers","key")}return i((()=>[...this[u].values()]),"Headers","key")}values(){if(a.brandCheck(this,h),"immutable"===this[n]){const e=this[u];return i((()=>e),"Headers","value")}return i((()=>[...this[u].values()]),"Headers","value")}entries(){if(a.brandCheck(this,h),"immutable"===this[n]){const e=this[u];return i((()=>e),"Headers","key+value")}return i((()=>[...this[u].values()]),"Headers","key+value")}forEach(e,t=globalThis){if(a.brandCheck(this,h),a.argumentLengthCheck(arguments,1,{header:"Headers.forEach"}),"function"!=typeof e)throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.");for(const[n,r]of this)e.apply(t,[r,n,this])}[Symbol.for("nodejs.util.inspect.custom")](){return a.brandCheck(this,h),this[e]}}return h.prototype[Symbol.iterator]=h.prototype.entries,Object.defineProperties(h.prototype,{append:r,delete:r,get:r,has:r,set:r,getSetCookie:r,keys:r,values:r,entries:r,forEach:r,[Symbol.iterator]:{enumerable:!1},[Symbol.toStringTag]:{value:"Headers",configurable:!0}}),a.converters.HeadersInit=function(e){if("Object"===a.util.Type(e))return e[Symbol.iterator]?a.converters["sequence>"](e):a.converters["record"](e);throw a.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})},headers={fill:f,Headers:h,HeadersList:m}}function requireResponse(){if(hasRequiredResponse)return response;hasRequiredResponse=1;const{Headers:e,HeadersList:t,fill:n}=requireHeaders(),{extractBody:r,cloneBody:i,mixinBody:o}=requireBody(),s=requireUtil$b(),{kEnumerableProperty:a}=s,{isValidReasonPhrase:c,isCancelled:l,isAborted:u,isBlobLike:d,serializeJavascriptValueToJSONString:p,isErrorLike:f,isomorphicEncode:_}=requireUtil$a(),{redirectStatusSet:m,nullBodyStatus:h,DOMException:g}=requireConstants$3(),{kState:A,kHeaders:y,kGuard:v,kRealm:b}=requireSymbols$3(),{webidl:C}=requireWebidl(),{FormData:E}=requireFormdata(),{getGlobalOrigin:x}=requireGlobal$1(),{URLSerializer:S}=requireDataURL(),{kHeadersList:k,kConstruct:D}=requireSymbols$4(),w=require$$0$f,{types:I}=require$$0__default,T=globalThis.ReadableStream||require$$13.ReadableStream,F=new TextEncoder("utf-8");class R{static error(){const e={settingsObject:{}},t=new R;return t[A]=B(),t[b]=e,t[y][k]=t[A].headersList,t[y][v]="immutable",t[y][b]=e,t}static json(e,t={}){C.argumentLengthCheck(arguments,1,{header:"Response.json"}),null!==t&&(t=C.converters.ResponseInit(t));const n=F.encode(p(e)),i=r(n),o={settingsObject:{}},s=new R;return s[b]=o,s[y][v]="response",s[y][b]=o,$(s,t,{body:i[0],type:"application/json"}),s}static redirect(e,t=302){const n={settingsObject:{}};let r;C.argumentLengthCheck(arguments,1,{header:"Response.redirect"}),e=C.converters.USVString(e),t=C.converters["unsigned short"](t);try{r=new URL(e,x())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!m.has(t))throw new RangeError("Invalid status code "+t);const i=new R;i[b]=n,i[y][v]="immutable",i[y][b]=n,i[A].status=t;const o=_(S(r));return i[A].headersList.append("location",o),i}constructor(t=null,n={}){null!==t&&(t=C.converters.BodyInit(t)),n=C.converters.ResponseInit(n),this[b]={settingsObject:{}},this[A]=N({}),this[y]=new e(D),this[y][v]="response",this[y][k]=this[A].headersList,this[y][b]=this[b];let i=null;if(null!=t){const[e,n]=r(t);i={body:e,type:n}}$(this,n,i)}get type(){return C.brandCheck(this,R),this[A].type}get url(){C.brandCheck(this,R);const e=this[A].urlList,t=e[e.length-1]??null;return null===t?"":S(t,!0)}get redirected(){return C.brandCheck(this,R),this[A].urlList.length>1}get status(){return C.brandCheck(this,R),this[A].status}get ok(){return C.brandCheck(this,R),this[A].status>=200&&this[A].status<=299}get statusText(){return C.brandCheck(this,R),this[A].statusText}get headers(){return C.brandCheck(this,R),this[y]}get body(){return C.brandCheck(this,R),this[A].body?this[A].body.stream:null}get bodyUsed(){return C.brandCheck(this,R),!!this[A].body&&s.isDisturbed(this[A].body.stream)}clone(){if(C.brandCheck(this,R),this.bodyUsed||this.body&&this.body.locked)throw C.errors.exception({header:"Response.clone",message:"Body has already been consumed."});const e=P(this[A]),t=new R;return t[A]=e,t[b]=this[b],t[y][k]=e.headersList,t[y][v]=this[y][v],t[y][b]=this[y][b],t}}function P(e){if(e.internalResponse)return q(P(e.internalResponse),e.type);const t=N({...e,body:null});return null!=e.body&&(t.body=i(e.body)),t}function N(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new t(e.headersList):new t,urlList:e.urlList?[...e.urlList]:[]}}function B(e){return N({type:"error",status:0,error:f(e)?e:new Error(e?String(e):e),aborted:e&&"AbortError"===e.name})}function O(e,t){return t={internalResponse:e,...t},new Proxy(e,{get:(e,n)=>n in t?t[n]:e[n],set:(e,n,r)=>(w(!(n in t)),e[n]=r,!0)})}function q(e,t){return"basic"===t?O(e,{type:"basic",headersList:e.headersList}):"cors"===t?O(e,{type:"cors",headersList:e.headersList}):"opaque"===t?O(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null}):"opaqueredirect"===t?O(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null}):void w(!1)}function $(e,t,r){if(null!==t.status&&(t.status<200||t.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in t&&null!=t.statusText&&!c(String(t.statusText)))throw new TypeError("Invalid statusText");if("status"in t&&null!=t.status&&(e[A].status=t.status),"statusText"in t&&null!=t.statusText&&(e[A].statusText=t.statusText),"headers"in t&&null!=t.headers&&n(e[y],t.headers),r){if(h.includes(e.status))throw C.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status});e[A].body=r.body,null==r.type||e[A].headersList.contains("Content-Type")||e[A].headersList.append("content-type",r.type)}}return o(R),Object.defineProperties(R.prototype,{type:a,url:a,status:a,ok:a,redirected:a,statusText:a,headers:a,clone:a,body:a,bodyUsed:a,[Symbol.toStringTag]:{value:"Response",configurable:!0}}),Object.defineProperties(R,{json:a,redirect:a,error:a}),C.converters.ReadableStream=C.interfaceConverter(T),C.converters.FormData=C.interfaceConverter(E),C.converters.URLSearchParams=C.interfaceConverter(URLSearchParams),C.converters.XMLHttpRequestBodyInit=function(e){return"string"==typeof e?C.converters.USVString(e):d(e)?C.converters.Blob(e,{strict:!1}):I.isArrayBuffer(e)||I.isTypedArray(e)||I.isDataView(e)?C.converters.BufferSource(e):s.isFormDataLike(e)?C.converters.FormData(e,{strict:!1}):e instanceof URLSearchParams?C.converters.URLSearchParams(e):C.converters.DOMString(e)},C.converters.BodyInit=function(e){return e instanceof T?C.converters.ReadableStream(e):e?.[Symbol.asyncIterator]?e:C.converters.XMLHttpRequestBodyInit(e)},C.converters.ResponseInit=C.dictionaryConverter([{key:"status",converter:C.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:C.converters.ByteString,defaultValue:""},{key:"headers",converter:C.converters.HeadersInit}]),response={makeNetworkError:B,makeResponse:N,makeAppropriateNetworkError:function(e,t=null){return w(l(e)),u(e)?B(Object.assign(new g("The operation was aborted.","AbortError"),{cause:t})):B(Object.assign(new g("Request was cancelled."),{cause:t}))},filterResponse:q,Response:R,cloneResponse:P}}function requireRequest$1(){if(hasRequiredRequest$1)return request$1;hasRequiredRequest$1=1;const{extractBody:e,mixinBody:t,cloneBody:n}=requireBody(),{Headers:r,fill:i,HeadersList:o}=requireHeaders(),{FinalizationRegistry:s}=requireDispatcherWeakref()(),a=requireUtil$b(),{isValidHTTPToken:c,sameOrigin:l,normalizeMethod:u,makePolicyContainer:d,normalizeMethodRecord:p}=requireUtil$a(),{forbiddenMethodsSet:f,corsSafeListedMethodsSet:_,referrerPolicy:m,requestRedirect:h,requestMode:g,requestCredentials:A,requestCache:y,requestDuplex:v}=requireConstants$3(),{kEnumerableProperty:b}=a,{kHeaders:C,kSignal:E,kState:x,kGuard:S,kRealm:k}=requireSymbols$3(),{webidl:D}=requireWebidl(),{getGlobalOrigin:w}=requireGlobal$1(),{URLSerializer:I}=requireDataURL(),{kHeadersList:T,kConstruct:F}=requireSymbols$4(),R=require$$0$f,{getMaxListeners:P,setMaxListeners:N,getEventListeners:B,defaultMaxListeners:O}=require$$0$c;let q=globalThis.TransformStream;const $=Symbol("abortController"),Q=new s((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class L{constructor(t,n={}){if(t===F)return;D.argumentLengthCheck(arguments,1,{header:"Request constructor"}),t=D.converters.RequestInfo(t),n=D.converters.RequestInit(n),this[k]={settingsObject:{baseUrl:w(),get origin(){return this.baseUrl?.origin},policyContainer:d()}};let s=null,m=null;const h=this[k].settingsObject.baseUrl;let g=null;if("string"==typeof t){let e;try{e=new URL(t,h)}catch(e){throw new TypeError("Failed to parse URL from "+t,{cause:e})}if(e.username||e.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+t);s=M({urlList:[e]}),m="cors"}else R(t instanceof L),s=t[x],g=t[E];const A=this[k].settingsObject.origin;let y="client";if("EnvironmentSettingsObject"===s.window?.constructor?.name&&l(s.window,A)&&(y=s.window),null!=n.window)throw new TypeError(`'window' option '${y}' must be null`);"window"in n&&(y="no-window"),s=M({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:this[k].settingsObject,window:y,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const v=0!==Object.keys(n).length;if(v&&("navigate"===s.mode&&(s.mode="same-origin"),s.reloadNavigation=!1,s.historyNavigation=!1,s.origin="client",s.referrer="client",s.referrerPolicy="",s.url=s.urlList[s.urlList.length-1],s.urlList=[s.url]),void 0!==n.referrer){const e=n.referrer;if(""===e)s.referrer="no-referrer";else{let t;try{t=new URL(e,h)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}"about:"===t.protocol&&"client"===t.hostname||A&&!l(t,this[k].settingsObject.baseUrl)?s.referrer="client":s.referrer=t}}let b;if(void 0!==n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),b=void 0!==n.mode?n.mode:m,"navigate"===b)throw D.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(null!=b&&(s.mode=b),void 0!==n.credentials&&(s.credentials=n.credentials),void 0!==n.cache&&(s.cache=n.cache),"only-if-cached"===s.cache&&"same-origin"!==s.mode)throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(void 0!==n.redirect&&(s.redirect=n.redirect),null!=n.integrity&&(s.integrity=String(n.integrity)),void 0!==n.keepalive&&(s.keepalive=Boolean(n.keepalive)),void 0!==n.method){let e=n.method;if(!c(e))throw new TypeError(`'${e}' is not a valid HTTP method.`);if(f.has(e.toUpperCase()))throw new TypeError(`'${e}' HTTP method is unsupported.`);e=p[e]??u(e),s.method=e}void 0!==n.signal&&(g=n.signal),this[x]=s;const I=new AbortController;if(this[E]=I.signal,this[E][k]=this[k],null!=g){if(!g||"boolean"!=typeof g.aborted||"function"!=typeof g.addEventListener)throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(g.aborted)I.abort(g.reason);else{this[$]=I;const e=new WeakRef(I),t=function(){const t=e.deref();void 0!==t&&t.abort(this.reason)};try{("function"==typeof P&&P(g)===O||B(g,"abort").length>=O)&&N(100,g)}catch{}a.addAbortListener(g,t),Q.register(I,{signal:g,abort:t})}}if(this[C]=new r(F),this[C][T]=s.headersList,this[C][S]="request",this[C][k]=this[k],"no-cors"===b){if(!_.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`);this[C][S]="request-no-cors"}if(v){const e=this[C][T],t=void 0!==n.headers?n.headers:new o(e);if(e.clear(),t instanceof o){for(const[n,r]of t)e.append(n,r);e.cookies=t.cookies}else i(this[C],t)}const j=t instanceof L?t[x].body:null;if(!(null==n.body&&null==j||"GET"!==s.method&&"HEAD"!==s.method))throw new TypeError("Request with GET/HEAD method cannot have body.");let U=null;if(null!=n.body){const[t,r]=e(n.body,s.keepalive);U=t,r&&!this[C][T].contains("content-type")&&this[C].append("content-type",r)}const J=U??j;if(null!=J&&null==J.source){if(null!=U&&null==n.duplex)throw new TypeError("RequestInit: duplex option is required when sending a body.");if("same-origin"!==s.mode&&"cors"!==s.mode)throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');s.useCORSPreflightFlag=!0}let V=J;if(null==U&&null!=j){if(a.isDisturbed(j.stream)||j.stream.locked)throw new TypeError("Cannot construct a Request with a Request object that has already been used.");q||(q=require$$13.TransformStream);const e=new q;j.stream.pipeThrough(e),V={source:j.source,length:j.length,stream:e.readable}}this[x].body=V}get method(){return D.brandCheck(this,L),this[x].method}get url(){return D.brandCheck(this,L),I(this[x].url)}get headers(){return D.brandCheck(this,L),this[C]}get destination(){return D.brandCheck(this,L),this[x].destination}get referrer(){return D.brandCheck(this,L),"no-referrer"===this[x].referrer?"":"client"===this[x].referrer?"about:client":this[x].referrer.toString()}get referrerPolicy(){return D.brandCheck(this,L),this[x].referrerPolicy}get mode(){return D.brandCheck(this,L),this[x].mode}get credentials(){return this[x].credentials}get cache(){return D.brandCheck(this,L),this[x].cache}get redirect(){return D.brandCheck(this,L),this[x].redirect}get integrity(){return D.brandCheck(this,L),this[x].integrity}get keepalive(){return D.brandCheck(this,L),this[x].keepalive}get isReloadNavigation(){return D.brandCheck(this,L),this[x].reloadNavigation}get isHistoryNavigation(){return D.brandCheck(this,L),this[x].historyNavigation}get signal(){return D.brandCheck(this,L),this[E]}get body(){return D.brandCheck(this,L),this[x].body?this[x].body.stream:null}get bodyUsed(){return D.brandCheck(this,L),!!this[x].body&&a.isDisturbed(this[x].body.stream)}get duplex(){return D.brandCheck(this,L),"half"}clone(){if(D.brandCheck(this,L),this.bodyUsed||this.body?.locked)throw new TypeError("unusable");const e=function(e){const t=M({...e,body:null});null!=e.body&&(t.body=n(e.body));return t}(this[x]),t=new L(F);t[x]=e,t[k]=this[k],t[C]=new r(F),t[C][T]=e.headersList,t[C][S]=this[C][S],t[C][k]=this[C][k];const i=new AbortController;return this.signal.aborted?i.abort(this.signal.reason):a.addAbortListener(this.signal,(()=>{i.abort(this.signal.reason)})),t[E]=i.signal,t}}function M(e){const t={method:"GET",localURLsOnly:!1,unsafeRequest:!1,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:!1,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:!1,credentials:"same-origin",useCredentials:!1,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:!1,historyNavigation:!1,userActivation:!1,taintedOrigin:!1,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:!1,done:!1,timingAllowFailed:!1,...e,headersList:e.headersList?new o(e.headersList):new o};return t.url=t.urlList[0],t}return t(L),Object.defineProperties(L.prototype,{method:b,url:b,headers:b,redirect:b,clone:b,signal:b,duplex:b,destination:b,body:b,bodyUsed:b,isHistoryNavigation:b,isReloadNavigation:b,keepalive:b,integrity:b,cache:b,credentials:b,attribute:b,referrerPolicy:b,referrer:b,mode:b,[Symbol.toStringTag]:{value:"Request",configurable:!0}}),D.converters.Request=D.interfaceConverter(L),D.converters.RequestInfo=function(e){return"string"==typeof e?D.converters.USVString(e):e instanceof L?D.converters.Request(e):D.converters.USVString(e)},D.converters.AbortSignal=D.interfaceConverter(AbortSignal),D.converters.RequestInit=D.dictionaryConverter([{key:"method",converter:D.converters.ByteString},{key:"headers",converter:D.converters.HeadersInit},{key:"body",converter:D.nullableConverter(D.converters.BodyInit)},{key:"referrer",converter:D.converters.USVString},{key:"referrerPolicy",converter:D.converters.DOMString,allowedValues:m},{key:"mode",converter:D.converters.DOMString,allowedValues:g},{key:"credentials",converter:D.converters.DOMString,allowedValues:A},{key:"cache",converter:D.converters.DOMString,allowedValues:y},{key:"redirect",converter:D.converters.DOMString,allowedValues:h},{key:"integrity",converter:D.converters.DOMString},{key:"keepalive",converter:D.converters.boolean},{key:"signal",converter:D.nullableConverter((e=>D.converters.AbortSignal(e,{strict:!1})))},{key:"window",converter:D.converters.any},{key:"duplex",converter:D.converters.DOMString,allowedValues:v}]),request$1={Request:L,makeRequest:M}}function requireFetch(){if(hasRequiredFetch)return fetch_1;hasRequiredFetch=1;const{Response:e,makeNetworkError:t,makeAppropriateNetworkError:n,filterResponse:r,makeResponse:i}=requireResponse(),{Headers:o}=requireHeaders(),{Request:s,makeRequest:a}=requireRequest$1(),c=zlib,{bytesMatch:l,makePolicyContainer:u,clonePolicyContainer:d,requestBadPort:p,TAOCheck:f,appendRequestOriginHeader:_,responseLocationURL:m,requestCurrentURL:h,setRequestReferrerPolicyOnRedirect:g,tryUpgradeRequestToAPotentiallyTrustworthyURL:A,createOpaqueTimingInfo:y,appendFetchMetadata:v,corsCheck:b,crossOriginResourcePolicyCheck:C,determineRequestsReferrer:E,coarsenedSharedCurrentTime:x,createDeferredPromise:S,isBlobLike:k,sameOrigin:D,isCancelled:w,isAborted:I,isErrorLike:T,fullyReadBody:F,readableStreamClose:R,isomorphicEncode:P,urlIsLocal:N,urlIsHttpHttpsScheme:B,urlHasHttpsScheme:O}=requireUtil$a(),{kState:q,kHeaders:$,kGuard:Q,kRealm:L}=requireSymbols$3(),M=require$$0$f,{safelyExtractBody:j}=requireBody(),{redirectStatusSet:U,nullBodyStatus:J,safeMethodsSet:V,requestBodyHeader:H,subresourceSet:G,DOMException:W}=requireConstants$3(),{kHeadersList:z}=requireSymbols$4(),Y=require$$0$c,{Readable:K,pipeline:X}=require$$0$b,{addAbortListener:Z,isErrored:ee,isReadable:te,nodeMajor:ne,nodeMinor:re}=requireUtil$b(),{dataURLProcessor:ie,serializeAMimeType:oe}=requireDataURL(),{TransformStream:se}=require$$13,{getGlobalDispatcher:ae}=requireGlobal(),{webidl:ce}=requireWebidl(),{STATUS_CODES:le}=require$$2$1,ue=["GET","HEAD"];let de,pe=globalThis.ReadableStream;class fe extends Y{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing",this.setMaxListeners(21)}terminate(e){"ongoing"===this.state&&(this.state="terminated",this.connection?.destroy(e),this.emit("terminated",e))}abort(e){"ongoing"===this.state&&(this.state="aborted",e||(e=new W("The operation was aborted.","AbortError")),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit("terminated",e))}}function _e(e,t="other"){if("error"===e.type&&e.aborted)return;if(!e.urlList?.length)return;const n=e.urlList[0];let r=e.timingInfo,i=e.cacheState;B(n)&&null!==r&&(e.timingAllowPassed||(r=y({startTime:r.startTime}),i=""),r.endTime=x(),e.timingInfo=r,function(e,t,n,r,i){(ne>18||18===ne&&re>=2)&&performance.markResourceTiming(e,t.href,n,r,i)}(r,n,t,globalThis,i))}function me(e,t,n,r){if(r||(r=new W("The operation was aborted.","AbortError")),e.reject(r),null!=t.body&&te(t.body?.stream)&&t.body.stream.cancel(r).catch((e=>{if("ERR_INVALID_STATE"!==e.code)throw e})),null==n)return;const i=n[q];null!=i.body&&te(i.body?.stream)&&i.body.stream.cancel(r).catch((e=>{if("ERR_INVALID_STATE"!==e.code)throw e}))}function he({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseEndOfBody:i,processResponseConsumeBody:o,useParallelQueue:s=!1,dispatcher:a}){let c=null,l=!1;null!=e.client&&(c=e.client.globalObject,l=e.client.crossOriginIsolatedCapability);const p=x(l),f=y({startTime:p}),_={controller:new fe(a),request:e,timingInfo:f,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseConsumeBody:o,processResponseEndOfBody:i,taskDestination:c,crossOriginIsolatedCapability:l};if(M(!e.body||e.body.stream),"client"===e.window&&(e.window="Window"===e.client?.globalObject?.constructor?.name?e.client:"no-window"),"client"===e.origin&&(e.origin=e.client?.origin),"client"===e.policyContainer&&(null!=e.client?e.policyContainer=d(e.client.policyContainer):e.policyContainer=u()),!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}return e.headersList.contains("accept-language")||e.headersList.append("accept-language","*"),e.priority,G.has(e.destination),ge(_).catch((e=>{_.controller.terminate(e)})),_.controller}async function ge(e,n=!1){const i=e.request;let o=null;if(i.localURLsOnly&&!N(h(i))&&(o=t("local URLs only")),A(i),"blocked"===p(i)&&(o=t("bad port")),""===i.referrerPolicy&&(i.referrerPolicy=i.policyContainer.referrerPolicy),"no-referrer"!==i.referrer&&(i.referrer=E(i)),null===o&&(o=await(async()=>{const n=h(i);return D(n,i.url)&&"basic"===i.responseTainting||"data:"===n.protocol||"navigate"===i.mode||"websocket"===i.mode?(i.responseTainting="basic",await Ae(e)):"same-origin"===i.mode?t('request mode cannot be "same-origin"'):"no-cors"===i.mode?"follow"!==i.redirect?t('redirect mode cannot be "follow" for "no-cors" request'):(i.responseTainting="opaque",await Ae(e)):B(h(i))?(i.responseTainting="cors",await be(e)):t("URL scheme must be a HTTP(S) scheme")})()),n)return o;0===o.status||o.internalResponse||(i.responseTainting,"basic"===i.responseTainting?o=r(o,"basic"):"cors"===i.responseTainting?o=r(o,"cors"):"opaque"===i.responseTainting?o=r(o,"opaque"):M(!1));let s=0===o.status?o:o.internalResponse;if(0===s.urlList.length&&s.urlList.push(...i.urlList),i.timingAllowFailed||(o.timingAllowPassed=!0),"opaque"===o.type&&206===s.status&&s.rangeRequested&&!i.headers.contains("range")&&(o=s=t()),0===o.status||"HEAD"!==i.method&&"CONNECT"!==i.method&&!J.includes(s.status)||(s.body=null,e.controller.dump=!0),i.integrity){const n=n=>ve(e,t(n));if("opaque"===i.responseTainting||null==o.body)return void n(o.error);const r=t=>{l(t,i.integrity)?(o.body=j(t)[0],ve(e,o)):n("integrity mismatch")};await F(o.body,r,n)}else ve(e,o)}function Ae(e){if(w(e)&&0===e.request.redirectCount)return Promise.resolve(n(e));const{request:r}=e,{protocol:o}=h(r);switch(o){case"about:":return Promise.resolve(t("about scheme is not supported"));case"blob:":{de||(de=require$$7$1.resolveObjectURL);const e=h(r);if(0!==e.search.length)return Promise.resolve(t("NetworkError when attempting to fetch resource."));const n=de(e.toString());if("GET"!==r.method||!k(n))return Promise.resolve(t("invalid method"));const o=j(n),s=o[0],a=P(`${s.length}`),c=o[1]??"",l=i({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:a}],["content-type",{name:"Content-Type",value:c}]]});return l.body=s,Promise.resolve(l)}case"data:":{const e=h(r),n=ie(e);if("failure"===n)return Promise.resolve(t("failed to fetch the data URL"));const o=oe(n.mimeType);return Promise.resolve(i({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:o}]],body:j(n.body)[0]}))}case"file:":return Promise.resolve(t("not implemented... yet..."));case"http:":case"https:":return be(e).catch((e=>t(e)));default:return Promise.resolve(t("unknown scheme"))}}function ye(e,t){e.request.done=!0,null!=e.processResponseDone&&queueMicrotask((()=>e.processResponseDone(t)))}function ve(e,t){"error"===t.type&&(t.urlList=[e.request.urlList[0]],t.timingInfo=y({startTime:e.timingInfo.startTime}));const n=()=>{e.request.done=!0,null!=e.processResponseEndOfBody&&queueMicrotask((()=>e.processResponseEndOfBody(t)))};if(null!=e.processResponse&&queueMicrotask((()=>e.processResponse(t))),null==t.body)n();else{const e=(e,t)=>{t.enqueue(e)},r=new se({start(){},transform:e,flush:n},{size:()=>1},{size:()=>1});t.body={stream:t.body.stream.pipeThrough(r)}}if(null!=e.processResponseConsumeBody){const n=n=>e.processResponseConsumeBody(t,n),r=n=>e.processResponseConsumeBody(t,n);return null!=t.body?F(t.body,n,r):(queueMicrotask((()=>n(null))),Promise.resolve())}}async function be(e){const n=e.request;let r=null,i=null;const o=e.timingInfo;if(n.serviceWorkers,null===r){if("follow"===n.redirect&&(n.serviceWorkers="none"),i=r=await Ce(e),"cors"===n.responseTainting&&"failure"===b(n,r))return t("cors failure");"failure"===f(n,r)&&(n.timingAllowFailed=!0)}return"opaque"!==n.responseTainting&&"opaque"!==r.type||"blocked"!==C(n.origin,n.client,n.destination,i)?(U.has(i.status)&&("manual"!==n.redirect&&e.controller.connection.destroy(),"error"===n.redirect?r=t("unexpected redirect"):"manual"===n.redirect?r=i:"follow"===n.redirect?r=await function(e,n){const r=e.request,i=n.internalResponse?n.internalResponse:n;let o;try{if(o=m(i,h(r).hash),null==o)return n}catch(e){return Promise.resolve(t(e))}if(!B(o))return Promise.resolve(t("URL scheme must be a HTTP(S) scheme"));if(20===r.redirectCount)return Promise.resolve(t("redirect count exceeded"));if(r.redirectCount+=1,"cors"===r.mode&&(o.username||o.password)&&!D(r,o))return Promise.resolve(t('cross origin not allowed for request mode "cors"'));if("cors"===r.responseTainting&&(o.username||o.password))return Promise.resolve(t('URL cannot contain credentials for request mode "cors"'));if(303!==i.status&&null!=r.body&&null==r.body.source)return Promise.resolve(t());if([301,302].includes(i.status)&&"POST"===r.method||303===i.status&&!ue.includes(r.method)){r.method="GET",r.body=null;for(const e of H)r.headersList.delete(e)}D(h(r),o)||(r.headersList.delete("authorization"),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie"),r.headersList.delete("host"));null!=r.body&&(M(null!=r.body.source),r.body=j(r.body.source)[0]);const s=e.timingInfo;s.redirectEndTime=s.postRedirectStartTime=x(e.crossOriginIsolatedCapability),0===s.redirectStartTime&&(s.redirectStartTime=s.startTime);return r.urlList.push(o),g(r,i),ge(e,!0)}(e,r):M(!1)),r.timingInfo=o,r):t("blocked")}async function Ce(e,r=!1,s=!1){const l=e.request;let u=null,d=null,p=null;"no-window"===l.window&&"error"===l.redirect?(u=e,d=l):(d=a(l),u={...e},u.request=d);const f="include"===l.credentials||"same-origin"===l.credentials&&"basic"===l.responseTainting,m=d.body?d.body.length:null;let g=null;if(null==d.body&&["POST","PUT"].includes(d.method)&&(g="0"),null!=m&&(g=P(`${m}`)),null!=g&&d.headersList.append("content-length",g),null!=m&&d.keepalive,d.referrer instanceof URL&&d.headersList.append("referer",P(d.referrer.href)),_(d),v(d),d.headersList.contains("user-agent")||d.headersList.append("user-agent","undefined"==typeof esbuildDetection?"undici":"node"),"default"===d.cache&&(d.headersList.contains("if-modified-since")||d.headersList.contains("if-none-match")||d.headersList.contains("if-unmodified-since")||d.headersList.contains("if-match")||d.headersList.contains("if-range"))&&(d.cache="no-store"),"no-cache"!==d.cache||d.preventNoCacheCacheControlHeaderModification||d.headersList.contains("cache-control")||d.headersList.append("cache-control","max-age=0"),"no-store"!==d.cache&&"reload"!==d.cache||(d.headersList.contains("pragma")||d.headersList.append("pragma","no-cache"),d.headersList.contains("cache-control")||d.headersList.append("cache-control","no-cache")),d.headersList.contains("range")&&d.headersList.append("accept-encoding","identity"),d.headersList.contains("accept-encoding")||(O(h(d))?d.headersList.append("accept-encoding","br, gzip, deflate"):d.headersList.append("accept-encoding","gzip, deflate")),d.headersList.delete("host"),d.cache="no-store","no-store"!==d.mode&&d.mode,null==p){if("only-if-cached"===d.mode)return t("only if cached");const e=await async function(e){M(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(e){this.destroyed||(this.destroyed=!0,this.abort?.(e??new W("The operation was aborted.","AbortError")))}};const r=e.request;let s=null;const a=e.timingInfo;r.cache="no-store",r.mode;let l=null;if(null==r.body&&e.processRequestEndOfBody)queueMicrotask((()=>e.processRequestEndOfBody()));else if(null!=r.body){const t=async function*(t){w(e)||(yield t,e.processRequestBodyChunkLength?.(t.byteLength))},n=()=>{w(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},i=t=>{w(e)||("AbortError"===t.name?e.controller.abort():e.controller.terminate(t))};l=async function*(){try{for await(const e of r.body.stream)yield*t(e);n()}catch(e){i(e)}}()}try{const{body:t,status:n,statusText:r,headersList:o,socket:a}=await _({body:l});if(a)s=i({status:n,statusText:r,headersList:o,socket:a});else{const a=t[Symbol.asyncIterator]();e.controller.next=()=>a.next(),s=i({status:n,statusText:r,headersList:o})}}catch(r){return"AbortError"===r.name?(e.controller.connection.destroy(),n(e,r)):t(r)}const u=()=>{e.controller.resume()},d=t=>{e.controller.abort(t)};pe||(pe=require$$13.ReadableStream);const p=new pe({async start(t){e.controller.controller=t},async pull(e){await u()},async cancel(e){await d(e)}},{highWaterMark:0,size:()=>1});function f(t){I(e)?(s.aborted=!0,te(p)&&e.controller.controller.error(e.controller.serializedAbortReason)):te(p)&&e.controller.controller.error(new TypeError("terminated",{cause:T(t)?t:void 0})),e.controller.connection.destroy()}return s.body={stream:p},e.controller.on("terminated",f),e.controller.resume=async()=>{for(;;){let t,n;try{const{done:n,value:r}=await e.controller.next();if(I(e))break;t=n?void 0:r}catch(r){e.controller.ended&&!a.encodedBodySize?t=void 0:(t=r,n=!0)}if(void 0===t)return R(e.controller.controller),void ye(e,s);if(a.decodedBodySize+=t?.byteLength??0,n)return void e.controller.terminate(t);if(e.controller.controller.enqueue(new Uint8Array(t)),ee(p))return void e.controller.terminate();if(!e.controller.controller.desiredSize)return}},s;async function _({body:t}){const n=h(r),i=e.controller.dispatcher;return new Promise(((s,l)=>i.dispatch({path:n.pathname+n.search,origin:n.origin,method:r.method,body:e.controller.dispatcher.isMockActive?r.body&&(r.body.source||r.body.stream):t,headers:r.headersList.entries,maxRedirections:0,upgrade:"websocket"===r.mode?"websocket":void 0},{body:null,abort:null,onConnect(t){const{connection:n}=e.controller;n.destroyed?t(new W("The operation was aborted.","AbortError")):(e.controller.on("terminated",t),this.abort=n.abort=t)},onHeaders(e,t,n,i){if(e<200)return;let a=[],l="";const u=new o;if(Array.isArray(t))for(let e=0;ee.trim())):"location"===n.toLowerCase()&&(l=r),u[z].append(n,r)}else{const e=Object.keys(t);for(const n of e){const e=t[n];"content-encoding"===n.toLowerCase()?a=e.toLowerCase().split(",").map((e=>e.trim())).reverse():"location"===n.toLowerCase()&&(l=e),u[z].append(n,e)}}this.body=new K({read:n});const d=[],p="follow"===r.redirect&&l&&U.has(e);if("HEAD"!==r.method&&"CONNECT"!==r.method&&!J.includes(e)&&!p)for(const e of a)if("x-gzip"===e||"gzip"===e)d.push(c.createGunzip({flush:c.constants.Z_SYNC_FLUSH,finishFlush:c.constants.Z_SYNC_FLUSH}));else if("deflate"===e)d.push(c.createInflate());else{if("br"!==e){d.length=0;break}d.push(c.createBrotliDecompress())}return s({status:e,statusText:i,headersList:u[z],body:d.length?X(this.body,...d,(()=>{})):this.body.on("error",(()=>{}))}),!0},onData(t){if(e.controller.dump)return;const n=t;return a.encodedBodySize+=n.byteLength,this.body.push(n)},onComplete(){this.abort&&e.controller.off("terminated",this.abort),e.controller.ended=!0,this.body.push(null)},onError(t){this.abort&&e.controller.off("terminated",this.abort),this.body?.destroy(t),e.controller.terminate(t),l(t)},onUpgrade(e,t,n){if(101!==e)return;const r=new o;for(let e=0;e=200&&e.status,null==p&&(p=e)}if(p.urlList=[...d.urlList],d.headersList.contains("range")&&(p.rangeRequested=!0),p.requestIncludesCredentials=f,407===p.status)return"no-window"===l.window?t():w(e)?n(e):t("proxy authentication required");if(421===p.status&&!s&&(null==l.body||null!=l.body.source)){if(w(e))return n(e);e.controller.connection.destroy(),p=await Ce(e,r,!0)}return p}return fetch_1={fetch:function(t,n={}){ce.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=S();let i;try{i=new s(t,n)}catch(e){return r.reject(e),r.promise}const o=i[q];if(i.signal.aborted)return me(r,o,null,i.signal.reason),r.promise;const a=o.client.globalObject;"ServiceWorkerGlobalScope"===a?.constructor?.name&&(o.serviceWorkers="none");let c=null,l=!1,u=null;return Z(i.signal,(()=>{l=!0,M(null!=u),u.abort(i.signal.reason),me(r,o,c,i.signal.reason)})),u=he({request:o,processResponseEndOfBody:e=>_e(e,"fetch"),processResponse:t=>l?Promise.resolve():t.aborted?(me(r,o,c,u.serializedAbortReason),Promise.resolve()):"error"===t.type?(r.reject(Object.assign(new TypeError("fetch failed"),{cause:t.error})),Promise.resolve()):(c=new e,c[q]=t,c[L]=null,c[$][z]=t.headersList,c[$][Q]="immutable",c[$][L]=null,void r.resolve(c)),dispatcher:n.dispatcher??ae()}),r.promise},Fetch:fe,fetching:he,finalizeAndReportTiming:_e},fetch_1}function requireSymbols$2(){return hasRequiredSymbols$2?symbols$2:(hasRequiredSymbols$2=1,symbols$2={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")})}function requireProgressevent(){if(hasRequiredProgressevent)return progressevent;hasRequiredProgressevent=1;const{webidl:e}=requireWebidl(),t=Symbol("ProgressEvent state");class n extends Event{constructor(n,r={}){super(n=e.converters.DOMString(n),r=e.converters.ProgressEventInit(r??{})),this[t]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return e.brandCheck(this,n),this[t].lengthComputable}get loaded(){return e.brandCheck(this,n),this[t].loaded}get total(){return e.brandCheck(this,n),this[t].total}}return e.converters.ProgressEventInit=e.dictionaryConverter([{key:"lengthComputable",converter:e.converters.boolean,defaultValue:!1},{key:"loaded",converter:e.converters["unsigned long long"],defaultValue:0},{key:"total",converter:e.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:e.converters.boolean,defaultValue:!1},{key:"cancelable",converter:e.converters.boolean,defaultValue:!1},{key:"composed",converter:e.converters.boolean,defaultValue:!1}]),progressevent={ProgressEvent:n}}function requireEncoding(){if(hasRequiredEncoding)return encoding;return hasRequiredEncoding=1,encoding={getEncoding:function(e){if(!e)return"failure";switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}}}function requireUtil$8(){if(hasRequiredUtil$8)return util$8;hasRequiredUtil$8=1;const{kState:e,kError:t,kResult:n,kAborted:r,kLastProgressEventFired:i}=requireSymbols$2(),{ProgressEvent:o}=requireProgressevent(),{getEncoding:s}=requireEncoding(),{DOMException:a}=requireConstants$3(),{serializeAMimeType:c,parseMIMEType:l}=requireDataURL(),{types:u}=require$$0__default,{StringDecoder:d}=require$$6$2,{btoa:p}=require$$7$1;function f(e,t){const n=new o(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}function _(e,t,n,r){switch(t){case"DataURL":{let t="data:";const r=l(n||"application/octet-stream");"failure"!==r&&(t+=c(r)),t+=";base64,";const i=new d("latin1");for(const n of e)t+=p(i.write(n));return t+=p(i.end()),t}case"Text":{let t="failure";if(r&&(t=s(r)),"failure"===t&&n){const e=l(n);"failure"!==e&&(t=s(e.parameters.get("charset")))}return"failure"===t&&(t="UTF-8"),function(e,t){const n=m(e),r=function(e){const[t,n,r]=e;if(239===t&&187===n&&191===r)return"UTF-8";if(254===t&&255===n)return"UTF-16BE";if(255===t&&254===n)return"UTF-16LE";return null}(n);let i=0;null!==r&&(t=r,i="UTF-8"===r?3:2);const o=n.slice(i);return new TextDecoder(t).decode(o)}(e,t)}case"ArrayBuffer":return m(e).buffer;case"BinaryString":{let t="";const n=new d("latin1");for(const r of e)t+=n.write(r);return t+=n.end(),t}}}function m(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let n=0;return e.reduce(((e,t)=>(e.set(t,n),n+=t.byteLength,e)),new Uint8Array(t))}return util$8={staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},readOperation:function(o,s,c,l){if("loading"===o[e])throw new a("Invalid state","InvalidStateError");o[e]="loading",o[n]=null,o[t]=null;const d=s.stream().getReader(),p=[];let m=d.read(),h=!0;(async()=>{for(;!o[r];)try{const{done:a,value:g}=await m;if(h&&!o[r]&&queueMicrotask((()=>{f("loadstart",o)})),h=!1,!a&&u.isUint8Array(g))p.push(g),(void 0===o[i]||Date.now()-o[i]>=50)&&!o[r]&&(o[i]=Date.now(),queueMicrotask((()=>{f("progress",o)}))),m=d.read();else if(a){queueMicrotask((()=>{o[e]="done";try{const e=_(p,c,s.type,l);if(o[r])return;o[n]=e,f("load",o)}catch(e){o[t]=e,f("error",o)}"loading"!==o[e]&&f("loadend",o)}));break}}catch(n){if(o[r])return;queueMicrotask((()=>{o[e]="done",o[t]=n,f("error",o),"loading"!==o[e]&&f("loadend",o)}));break}})()},fireAProgressEvent:f},util$8}function requireFilereader(){if(hasRequiredFilereader)return filereader;hasRequiredFilereader=1;const{staticPropertyDescriptors:e,readOperation:t,fireAProgressEvent:n}=requireUtil$8(),{kState:r,kError:i,kResult:o,kEvents:s,kAborted:a}=requireSymbols$2(),{webidl:c}=requireWebidl(),{kEnumerableProperty:l}=requireUtil$b();class u extends EventTarget{constructor(){super(),this[r]="empty",this[o]=null,this[i]=null,this[s]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){c.brandCheck(this,u),c.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"}),e=c.converters.Blob(e,{strict:!1}),t(this,e,"ArrayBuffer")}readAsBinaryString(e){c.brandCheck(this,u),c.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"}),e=c.converters.Blob(e,{strict:!1}),t(this,e,"BinaryString")}readAsText(e,n=void 0){c.brandCheck(this,u),c.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"}),e=c.converters.Blob(e,{strict:!1}),void 0!==n&&(n=c.converters.DOMString(n)),t(this,e,"Text",n)}readAsDataURL(e){c.brandCheck(this,u),c.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"}),e=c.converters.Blob(e,{strict:!1}),t(this,e,"DataURL")}abort(){"empty"!==this[r]&&"done"!==this[r]?("loading"===this[r]&&(this[r]="done",this[o]=null),this[a]=!0,n("abort",this),"loading"!==this[r]&&n("loadend",this)):this[o]=null}get readyState(){switch(c.brandCheck(this,u),this[r]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return c.brandCheck(this,u),this[o]}get error(){return c.brandCheck(this,u),this[i]}get onloadend(){return c.brandCheck(this,u),this[s].loadend}set onloadend(e){c.brandCheck(this,u),this[s].loadend&&this.removeEventListener("loadend",this[s].loadend),"function"==typeof e?(this[s].loadend=e,this.addEventListener("loadend",e)):this[s].loadend=null}get onerror(){return c.brandCheck(this,u),this[s].error}set onerror(e){c.brandCheck(this,u),this[s].error&&this.removeEventListener("error",this[s].error),"function"==typeof e?(this[s].error=e,this.addEventListener("error",e)):this[s].error=null}get onloadstart(){return c.brandCheck(this,u),this[s].loadstart}set onloadstart(e){c.brandCheck(this,u),this[s].loadstart&&this.removeEventListener("loadstart",this[s].loadstart),"function"==typeof e?(this[s].loadstart=e,this.addEventListener("loadstart",e)):this[s].loadstart=null}get onprogress(){return c.brandCheck(this,u),this[s].progress}set onprogress(e){c.brandCheck(this,u),this[s].progress&&this.removeEventListener("progress",this[s].progress),"function"==typeof e?(this[s].progress=e,this.addEventListener("progress",e)):this[s].progress=null}get onload(){return c.brandCheck(this,u),this[s].load}set onload(e){c.brandCheck(this,u),this[s].load&&this.removeEventListener("load",this[s].load),"function"==typeof e?(this[s].load=e,this.addEventListener("load",e)):this[s].load=null}get onabort(){return c.brandCheck(this,u),this[s].abort}set onabort(e){c.brandCheck(this,u),this[s].abort&&this.removeEventListener("abort",this[s].abort),"function"==typeof e?(this[s].abort=e,this.addEventListener("abort",e)):this[s].abort=null}}return u.EMPTY=u.prototype.EMPTY=0,u.LOADING=u.prototype.LOADING=1,u.DONE=u.prototype.DONE=2,Object.defineProperties(u.prototype,{EMPTY:e,LOADING:e,DONE:e,readAsArrayBuffer:l,readAsBinaryString:l,readAsText:l,readAsDataURL:l,abort:l,readyState:l,result:l,error:l,onloadstart:l,onprogress:l,onload:l,onabort:l,onerror:l,onloadend:l,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(u,{EMPTY:e,LOADING:e,DONE:e}),filereader={FileReader:u}}function requireSymbols$1(){return hasRequiredSymbols$1?symbols$1:(hasRequiredSymbols$1=1,symbols$1={kConstruct:requireSymbols$4().kConstruct})}function requireUtil$7(){if(hasRequiredUtil$7)return util$7;hasRequiredUtil$7=1;const e=require$$0$f,{URLSerializer:t}=requireDataURL(),{isValidHeaderName:n}=requireUtil$a();return util$7={urlEquals:function(e,n,r=!1){return t(e,r)===t(n,r)},fieldValues:function(t){e(null!==t);const r=[];for(let e of t.split(","))e=e.trim(),e.length&&n(e)&&r.push(e);return r}}}function requireCache(){if(hasRequiredCache)return cache$1;hasRequiredCache=1;const{kConstruct:e}=requireSymbols$1(),{urlEquals:t,fieldValues:n}=requireUtil$7(),{kEnumerableProperty:r,isDisturbed:i}=requireUtil$b(),{kHeadersList:o}=requireSymbols$4(),{webidl:s}=requireWebidl(),{Response:a,cloneResponse:c}=requireResponse(),{Request:l}=requireRequest$1(),{kState:u,kHeaders:d,kGuard:p,kRealm:f}=requireSymbols$3(),{fetching:_}=requireFetch(),{urlIsHttpHttpsScheme:m,createDeferredPromise:h,readAllBytes:g}=requireUtil$a(),A=require$$0$f,{getGlobalDispatcher:y}=requireGlobal();class v{#m;constructor(){arguments[0]!==e&&s.illegalConstructor(),this.#m=arguments[1]}async match(e,t={}){s.brandCheck(this,v),s.argumentLengthCheck(arguments,1,{header:"Cache.match"}),e=s.converters.RequestInfo(e),t=s.converters.CacheQueryOptions(t);const n=await this.matchAll(e,t);if(0!==n.length)return n[0]}async matchAll(e=void 0,t={}){s.brandCheck(this,v),void 0!==e&&(e=s.converters.RequestInfo(e)),t=s.converters.CacheQueryOptions(t);let n=null;if(void 0!==e)if(e instanceof l){if(n=e[u],"GET"!==n.method&&!t.ignoreMethod)return[]}else"string"==typeof e&&(n=new l(e)[u]);const r=[];if(void 0===e)for(const e of this.#m)r.push(e[1]);else{const e=this.#h(n,t);for(const t of e)r.push(t[1])}const i=[];for(const e of r){const t=new a(e.body?.source??null),n=t[u].body;t[u]=e,t[u].body=n,t[d][o]=e.headersList,t[d][p]="immutable",i.push(t)}return Object.freeze(i)}async add(e){s.brandCheck(this,v),s.argumentLengthCheck(arguments,1,{header:"Cache.add"});const t=[e=s.converters.RequestInfo(e)],n=this.addAll(t);return await n}async addAll(e){s.brandCheck(this,v),s.argumentLengthCheck(arguments,1,{header:"Cache.addAll"}),e=s.converters["sequence"](e);const t=[],r=[];for(const t of e){if("string"==typeof t)continue;const e=t[u];if(!m(e.url)||"GET"!==e.method)throw s.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}const i=[];for(const o of e){const e=new l(o)[u];if(!m(e.url))throw s.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."});e.initiator="fetch",e.destination="subresource",r.push(e);const a=h();i.push(_({request:e,dispatcher:y(),processResponse(e){if("error"===e.type||206===e.status||e.status<200||e.status>299)a.reject(s.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(e.headersList.contains("vary")){const t=n(e.headersList.get("vary"));for(const e of t)if("*"===e){a.reject(s.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of i)e.abort();return}}},processResponseEndOfBody(e){e.aborted?a.reject(new DOMException("aborted","AbortError")):a.resolve(e)}})),t.push(a.promise)}const o=Promise.all(t),a=await o,c=[];let d=0;for(const e of a){const t={type:"put",request:r[d],response:e};c.push(t),d++}const p=h();let f=null;try{this.#g(c)}catch(e){f=e}return queueMicrotask((()=>{null===f?p.resolve(void 0):p.reject(f)})),p.promise}async put(e,t){s.brandCheck(this,v),s.argumentLengthCheck(arguments,2,{header:"Cache.put"}),e=s.converters.RequestInfo(e),t=s.converters.Response(t);let r=null;if(r=e instanceof l?e[u]:new l(e)[u],!m(r.url)||"GET"!==r.method)throw s.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"});const o=t[u];if(206===o.status)throw s.errors.exception({header:"Cache.put",message:"Got 206 status"});if(o.headersList.contains("vary")){const e=n(o.headersList.get("vary"));for(const t of e)if("*"===t)throw s.errors.exception({header:"Cache.put",message:"Got * vary field value"})}if(o.body&&(i(o.body.stream)||o.body.stream.locked))throw s.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"});const a=c(o),d=h();if(null!=o.body){const e=o.body.stream.getReader();g(e).then(d.resolve,d.reject)}else d.resolve(void 0);const p=[],f={type:"put",request:r,response:a};p.push(f);const _=await d.promise;null!=a.body&&(a.body.source=_);const A=h();let y=null;try{this.#g(p)}catch(e){y=e}return queueMicrotask((()=>{null===y?A.resolve():A.reject(y)})),A.promise}async delete(e,t={}){s.brandCheck(this,v),s.argumentLengthCheck(arguments,1,{header:"Cache.delete"}),e=s.converters.RequestInfo(e),t=s.converters.CacheQueryOptions(t);let n=null;if(e instanceof l){if(n=e[u],"GET"!==n.method&&!t.ignoreMethod)return!1}else A("string"==typeof e),n=new l(e)[u];const r=[],i={type:"delete",request:n,options:t};r.push(i);const o=h();let a,c=null;try{a=this.#g(r)}catch(e){c=e}return queueMicrotask((()=>{null===c?o.resolve(!!a?.length):o.reject(c)})),o.promise}async keys(e=void 0,t={}){s.brandCheck(this,v),void 0!==e&&(e=s.converters.RequestInfo(e)),t=s.converters.CacheQueryOptions(t);let n=null;if(void 0!==e)if(e instanceof l){if(n=e[u],"GET"!==n.method&&!t.ignoreMethod)return[]}else"string"==typeof e&&(n=new l(e)[u]);const r=h(),i=[];if(void 0===e)for(const e of this.#m)i.push(e[0]);else{const e=this.#h(n,t);for(const t of e)i.push(t[0])}return queueMicrotask((()=>{const e=[];for(const t of i){const n=new l("https://a");n[u]=t,n[d][o]=t.headersList,n[d][p]="immutable",n[f]=t.client,e.push(n)}r.resolve(Object.freeze(e))})),r.promise}#g(e){const t=this.#m,n=[...t],r=[],i=[];try{for(const n of e){if("delete"!==n.type&&"put"!==n.type)throw s.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if("delete"===n.type&&null!=n.response)throw s.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#h(n.request,n.options,r).length)throw new DOMException("???","InvalidStateError");let e;if("delete"===n.type){if(e=this.#h(n.request,n.options),0===e.length)return[];for(const n of e){const e=t.indexOf(n);A(-1!==e),t.splice(e,1)}}else if("put"===n.type){if(null==n.response)throw s.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});const i=n.request;if(!m(i.url))throw s.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if("GET"!==i.method)throw s.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(null!=n.options)throw s.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});e=this.#h(n.request);for(const n of e){const e=t.indexOf(n);A(-1!==e),t.splice(e,1)}t.push([n.request,n.response]),r.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){throw this.#m.length=0,this.#m=n,e}}#h(e,t,n){const r=[],i=n??this.#m;for(const n of i){const[i,o]=n;this.#A(e,i,o,t)&&r.push(n)}return r}#A(e,r,i=null,o){const s=new URL(e.url),a=new URL(r.url);if(o?.ignoreSearch&&(a.search="",s.search=""),!t(s,a,!0))return!1;if(null==i||o?.ignoreVary||!i.headersList.contains("vary"))return!0;const c=n(i.headersList.get("vary"));for(const t of c){if("*"===t)return!1;if(r.headersList.get(t)!==e.headersList.get(t))return!1}return!0}}Object.defineProperties(v.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:r,matchAll:r,add:r,addAll:r,put:r,delete:r,keys:r});const b=[{key:"ignoreSearch",converter:s.converters.boolean,defaultValue:!1},{key:"ignoreMethod",converter:s.converters.boolean,defaultValue:!1},{key:"ignoreVary",converter:s.converters.boolean,defaultValue:!1}];return s.converters.CacheQueryOptions=s.dictionaryConverter(b),s.converters.MultiCacheQueryOptions=s.dictionaryConverter([...b,{key:"cacheName",converter:s.converters.DOMString}]),s.converters.Response=s.interfaceConverter(a),s.converters["sequence"]=s.sequenceConverter(s.converters.RequestInfo),cache$1={Cache:v}}function requireCachestorage(){if(hasRequiredCachestorage)return cachestorage;hasRequiredCachestorage=1;const{kConstruct:e}=requireSymbols$1(),{Cache:t}=requireCache(),{webidl:n}=requireWebidl(),{kEnumerableProperty:r}=requireUtil$b();class i{#y=new Map;constructor(){arguments[0]!==e&&n.illegalConstructor()}async match(r,o={}){if(n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"}),r=n.converters.RequestInfo(r),null!=(o=n.converters.MultiCacheQueryOptions(o)).cacheName){if(this.#y.has(o.cacheName)){const n=this.#y.get(o.cacheName),i=new t(e,n);return await i.match(r,o)}}else for(const n of this.#y.values()){const i=new t(e,n),s=await i.match(r,o);if(void 0!==s)return s}}async has(e){return n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"}),e=n.converters.DOMString(e),this.#y.has(e)}async open(r){if(n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"}),r=n.converters.DOMString(r),this.#y.has(r)){const n=this.#y.get(r);return new t(e,n)}const o=[];return this.#y.set(r,o),new t(e,o)}async delete(e){return n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"}),e=n.converters.DOMString(e),this.#y.delete(e)}async keys(){n.brandCheck(this,i);return[...this.#y.keys()]}}return Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:r,has:r,open:r,delete:r,keys:r}),cachestorage={CacheStorage:i}}function requireConstants$1(){if(hasRequiredConstants$1)return constants$1;hasRequiredConstants$1=1;return constants$1={maxAttributeValueSize:1024,maxNameValuePairSize:4096}}function requireUtil$6(){if(hasRequiredUtil$6)return util$6;hasRequiredUtil$6=1;const e=require$$0$f,{kHeadersList:t}=requireSymbols$4();let n;return util$6={isCTLExcludingHtab:function(e){if(0===e.length)return!1;for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||e>=10||e<=31||127===e)return!1}},stringify:function(e){if(0===e.name.length)return null;!function(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||"("===t||")"===t||">"===t||"<"===t||"@"===t||","===t||";"===t||":"===t||"\\"===t||'"'===t||"/"===t||"["===t||"]"===t||"?"===t||"="===t||"{"===t||"}"===t)throw new Error("Invalid cookie name")}}(e.name),function(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||34===e||44===e||59===e||92===e||e>126)throw new Error("Invalid header value")}}(e.value);const t=[`${e.name}=${e.value}`];e.name.startsWith("__Secure-")&&(e.secure=!0),e.name.startsWith("__Host-")&&(e.secure=!0,e.domain=null,e.path="/"),e.secure&&t.push("Secure"),e.httpOnly&&t.push("HttpOnly"),"number"==typeof e.maxAge&&(!function(e){if(e<0)throw new Error("Invalid cookie max-age")}(e.maxAge),t.push(`Max-Age=${e.maxAge}`)),e.domain&&(!function(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-"))throw new Error("Invalid cookie domain")}(e.domain),t.push(`Domain=${e.domain}`)),e.path&&(!function(e){for(const t of e)if(t.charCodeAt(0)<33||";"===t)throw new Error("Invalid cookie path")}(e.path),t.push(`Path=${e.path}`)),e.expires&&"Invalid Date"!==e.expires.toString()&&t.push(`Expires=${function(e){return"number"==typeof e&&(e=new Date(e)),`${["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][e.getUTCDay()]}, ${e.getUTCDate().toString().padStart(2,"0")} ${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getUTCMonth()]} ${e.getUTCFullYear()} ${e.getUTCHours().toString().padStart(2,"0")}:${e.getUTCMinutes().toString().padStart(2,"0")}:${e.getUTCSeconds().toString().padStart(2,"0")} GMT`}(e.expires)}`),e.sameSite&&t.push(`SameSite=${e.sameSite}`);for(const n of e.unparsed){if(!n.includes("="))throw new Error("Invalid unparsed");const[e,...r]=n.split("=");t.push(`${e.trim()}=${r.join("=")}`)}return t.join("; ")},getHeadersList:function(r){if(r[t])return r[t];n||(n=Object.getOwnPropertySymbols(r).find((e=>"headers list"===e.description)),e(n,"Headers cannot be parsed"));const i=r[n];return e(i),i}},util$6}function requireParse$2(){if(hasRequiredParse$2)return parse$5;hasRequiredParse$2=1;const{maxNameValuePairSize:e,maxAttributeValueSize:t}=requireConstants$1(),{isCTLExcludingHtab:n}=requireUtil$6(),{collectASequenceOfCodePointsFast:r}=requireDataURL(),i=require$$0$f;function o(e,n={}){if(0===e.length)return n;i(";"===e[0]);let s="";(e=e.slice(1)).includes(";")?(s=r(";",e,{position:0}),e=e.slice(s.length)):(s=e,e="");let a="",c="";if(s.includes("=")){const e={position:0};a=r("=",s,e),c=s.slice(e.position+1)}else a=s;if(a=a.trim(),c=c.trim(),c.length>t)return o(e,n);const l=a.toLowerCase();if("expires"===l){const e=new Date(c);n.expires=e}else if("max-age"===l){const t=c.charCodeAt(0);if((t<48||t>57)&&"-"!==c[0])return o(e,n);if(!/^\d+$/.test(c))return o(e,n);const r=Number(c);n.maxAge=r}else if("domain"===l){let e=c;"."===e[0]&&(e=e.slice(1)),e=e.toLowerCase(),n.domain=e}else if("path"===l){let e="";e=0===c.length||"/"!==c[0]?"/":c,n.path=e}else if("secure"===l)n.secure=!0;else if("httponly"===l)n.httpOnly=!0;else if("samesite"===l){let e="Default";const t=c.toLowerCase();t.includes("none")&&(e="None"),t.includes("strict")&&(e="Strict"),t.includes("lax")&&(e="Lax"),n.sameSite=e}else n.unparsed??=[],n.unparsed.push(`${a}=${c}`);return o(e,n)}return parse$5={parseSetCookie:function(t){if(n(t))return null;let i="",s="",a="",c="";if(t.includes(";")){const e={position:0};i=r(";",t,e),s=t.slice(e.position)}else i=t;if(i.includes("=")){const e={position:0};a=r("=",i,e),c=i.slice(e.position+1)}else c=i;return a=a.trim(),c=c.trim(),a.length+c.length>e?null:{name:a,value:c,...o(s)}},parseUnparsedAttributes:o},parse$5}function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;const{parseSetCookie:e}=requireParse$2(),{stringify:t,getHeadersList:n}=requireUtil$6(),{webidl:r}=requireWebidl(),{Headers:i}=requireHeaders();function o(e,n){r.argumentLengthCheck(arguments,2,{header:"setCookie"}),r.brandCheck(e,i,{strict:!1}),n=r.converters.Cookie(n);t(n)&&e.append("Set-Cookie",t(n))}return r.converters.DeleteCookieAttributes=r.dictionaryConverter([{converter:r.nullableConverter(r.converters.DOMString),key:"path",defaultValue:null},{converter:r.nullableConverter(r.converters.DOMString),key:"domain",defaultValue:null}]),r.converters.Cookie=r.dictionaryConverter([{converter:r.converters.DOMString,key:"name"},{converter:r.converters.DOMString,key:"value"},{converter:r.nullableConverter((e=>"number"==typeof e?r.converters["unsigned long long"](e):new Date(e))),key:"expires",defaultValue:null},{converter:r.nullableConverter(r.converters["long long"]),key:"maxAge",defaultValue:null},{converter:r.nullableConverter(r.converters.DOMString),key:"domain",defaultValue:null},{converter:r.nullableConverter(r.converters.DOMString),key:"path",defaultValue:null},{converter:r.nullableConverter(r.converters.boolean),key:"secure",defaultValue:null},{converter:r.nullableConverter(r.converters.boolean),key:"httpOnly",defaultValue:null},{converter:r.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:r.sequenceConverter(r.converters.DOMString),key:"unparsed",defaultValue:[]}]),cookies={getCookies:function(e){r.argumentLengthCheck(arguments,1,{header:"getCookies"}),r.brandCheck(e,i,{strict:!1});const t=e.get("cookie"),n={};if(!t)return n;for(const e of t.split(";")){const[t,...r]=e.split("=");n[t.trim()]=r.join("=")}return n},deleteCookie:function(e,t,n){r.argumentLengthCheck(arguments,2,{header:"deleteCookie"}),r.brandCheck(e,i,{strict:!1}),t=r.converters.DOMString(t),n=r.converters.DeleteCookieAttributes(n),o(e,{name:t,value:"",expires:new Date(0),...n})},getSetCookies:function(t){r.argumentLengthCheck(arguments,1,{header:"getSetCookies"}),r.brandCheck(t,i,{strict:!1});const o=n(t).cookies;return o?o.map((t=>e(Array.isArray(t)?t[1]:t))):[]},setCookie:o},cookies}function requireConstants(){if(hasRequiredConstants)return constants;hasRequiredConstants=1;const e=Buffer.allocUnsafe(0);return constants={uid:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:65535,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:e}}function requireSymbols(){return hasRequiredSymbols?symbols:(hasRequiredSymbols=1,symbols={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")})}function requireEvents(){if(hasRequiredEvents)return events;hasRequiredEvents=1;const{webidl:e}=requireWebidl(),{kEnumerableProperty:t}=requireUtil$b(),{MessagePort:n}=require$$0$j;class r extends Event{#v;constructor(t,n={}){e.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"}),super(t=e.converters.DOMString(t),n=e.converters.MessageEventInit(n)),this.#v=n}get data(){return e.brandCheck(this,r),this.#v.data}get origin(){return e.brandCheck(this,r),this.#v.origin}get lastEventId(){return e.brandCheck(this,r),this.#v.lastEventId}get source(){return e.brandCheck(this,r),this.#v.source}get ports(){return e.brandCheck(this,r),Object.isFrozen(this.#v.ports)||Object.freeze(this.#v.ports),this.#v.ports}initMessageEvent(t,n=!1,i=!1,o=null,s="",a="",c=null,l=[]){return e.brandCheck(this,r),e.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"}),new r(t,{bubbles:n,cancelable:i,data:o,origin:s,lastEventId:a,source:c,ports:l})}}class i extends Event{#v;constructor(t,n={}){e.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"}),super(t=e.converters.DOMString(t),n=e.converters.CloseEventInit(n)),this.#v=n}get wasClean(){return e.brandCheck(this,i),this.#v.wasClean}get code(){return e.brandCheck(this,i),this.#v.code}get reason(){return e.brandCheck(this,i),this.#v.reason}}class o extends Event{#v;constructor(t,n){e.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"}),super(t,n),t=e.converters.DOMString(t),n=e.converters.ErrorEventInit(n??{}),this.#v=n}get message(){return e.brandCheck(this,o),this.#v.message}get filename(){return e.brandCheck(this,o),this.#v.filename}get lineno(){return e.brandCheck(this,o),this.#v.lineno}get colno(){return e.brandCheck(this,o),this.#v.colno}get error(){return e.brandCheck(this,o),this.#v.error}}Object.defineProperties(r.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:t,origin:t,lastEventId:t,source:t,ports:t,initMessageEvent:t}),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:t,code:t,wasClean:t}),Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:t,filename:t,lineno:t,colno:t,error:t}),e.converters.MessagePort=e.interfaceConverter(n),e.converters["sequence"]=e.sequenceConverter(e.converters.MessagePort);const s=[{key:"bubbles",converter:e.converters.boolean,defaultValue:!1},{key:"cancelable",converter:e.converters.boolean,defaultValue:!1},{key:"composed",converter:e.converters.boolean,defaultValue:!1}];return e.converters.MessageEventInit=e.dictionaryConverter([...s,{key:"data",converter:e.converters.any,defaultValue:null},{key:"origin",converter:e.converters.USVString,defaultValue:""},{key:"lastEventId",converter:e.converters.DOMString,defaultValue:""},{key:"source",converter:e.nullableConverter(e.converters.MessagePort),defaultValue:null},{key:"ports",converter:e.converters["sequence"],get defaultValue(){return[]}}]),e.converters.CloseEventInit=e.dictionaryConverter([...s,{key:"wasClean",converter:e.converters.boolean,defaultValue:!1},{key:"code",converter:e.converters["unsigned short"],defaultValue:0},{key:"reason",converter:e.converters.USVString,defaultValue:""}]),e.converters.ErrorEventInit=e.dictionaryConverter([...s,{key:"message",converter:e.converters.DOMString,defaultValue:""},{key:"filename",converter:e.converters.USVString,defaultValue:""},{key:"lineno",converter:e.converters["unsigned long"],defaultValue:0},{key:"colno",converter:e.converters["unsigned long"],defaultValue:0},{key:"error",converter:e.converters.any}]),events={MessageEvent:r,CloseEvent:i,ErrorEvent:o}}function requireUtil$5(){if(hasRequiredUtil$5)return util$5;hasRequiredUtil$5=1;const{kReadyState:e,kController:t,kResponse:n,kBinaryType:r,kWebSocketURL:i}=requireSymbols(),{states:o,opcodes:s}=requireConstants(),{MessageEvent:a,ErrorEvent:c}=requireEvents();function l(e,t,n=Event,r){const i=new n(e,r);t.dispatchEvent(i)}function u(e,r){const{[t]:i,[n]:o}=e;i.abort(),o?.socket&&!o.socket.destroyed&&o.socket.destroy(),r&&l("error",e,c,{error:new Error(r)})}return util$5={isEstablished:function(t){return t[e]===o.OPEN},isClosing:function(t){return t[e]===o.CLOSING},isClosed:function(t){return t[e]===o.CLOSED},fireEvent:l,isValidSubprotocol:function(e){if(0===e.length)return!1;for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||"("===t||")"===t||"<"===t||">"===t||"@"===t||","===t||";"===t||":"===t||"\\"===t||'"'===t||"/"===t||"["===t||"]"===t||"?"===t||"="===t||"{"===t||"}"===t||32===e||9===e)return!1}return!0},isValidStatusCode:function(e){return e>=1e3&&e<1015?1004!==e&&1005!==e&&1006!==e:e>=3e3&&e<=4999},failWebsocketConnection:u,websocketMessageReceived:function(t,n,c){if(t[e]!==o.OPEN)return;let d;if(n===s.TEXT)try{d=new TextDecoder("utf-8",{fatal:!0}).decode(c)}catch{return void u(t,"Received invalid UTF-8 in text frame.")}else n===s.BINARY&&(d="blob"===t[r]?new Blob([c]):new Uint8Array(c).buffer);l("message",t,a,{origin:t[i].origin,data:d})}},util$5}function requireConnection(){if(hasRequiredConnection)return connection;hasRequiredConnection=1;const e=require$$0$l,{uid:t,states:n}=requireConstants(),{kReadyState:r,kSentClose:i,kByteParser:o,kReceivedClose:s}=requireSymbols(),{fireEvent:a,failWebsocketConnection:c}=requireUtil$5(),{CloseEvent:l}=requireEvents(),{makeRequest:u}=requireRequest$1(),{fetching:d}=requireFetch(),{Headers:p}=requireHeaders(),{getGlobalDispatcher:f}=requireGlobal(),{kHeadersList:_}=requireSymbols$4(),m={};let h;m.open=e.channel("undici:websocket:open"),m.close=e.channel("undici:websocket:close"),m.socketError=e.channel("undici:websocket:socket_error");try{h=require("crypto")}catch{}function g(e){this.ws[o].write(e)||this.pause()}function A(){const{ws:e}=this,t=e[i]&&e[s];let c=1005,u="";const d=e[o].closingInfo;d?(c=d.code??1005,u=d.reason):e[i]||(c=1006),e[r]=n.CLOSED,a("close",e,l,{wasClean:t,code:c,reason:u}),m.close.hasSubscribers&&m.close.publish({websocket:e,code:c,reason:u})}function y(e){const{ws:t}=this;t[r]=n.CLOSING,m.socketError.hasSubscribers&&m.socketError.publish(e),this.destroy()}return connection={establishWebSocketConnection:function(e,n,r,i,o){const s=e;s.protocol="ws:"===e.protocol?"http:":"https:";const a=u({urlList:[s],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new p(o.headers)[_];a.headersList=e}const l=h.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",l),a.headersList.append("sec-websocket-version","13");for(const e of n)a.headersList.append("sec-websocket-protocol",e);const v=d({request:a,useParallelQueue:!0,dispatcher:o.dispatcher??f(),processResponse(e){if("error"===e.type||101!==e.status)return void c(r,"Received network error or non-101 status code.");if(0!==n.length&&!e.headersList.get("Sec-WebSocket-Protocol"))return void c(r,"Server did not respond with sent protocols.");if("websocket"!==e.headersList.get("Upgrade")?.toLowerCase())return void c(r,'Server did not set Upgrade header to "websocket".');if("upgrade"!==e.headersList.get("Connection")?.toLowerCase())return void c(r,'Server did not set Connection header to "upgrade".');if(e.headersList.get("Sec-WebSocket-Accept")!==h.createHash("sha1").update(l+t).digest("base64"))return void c(r,"Incorrect hash received in Sec-WebSocket-Accept header.");const o=e.headersList.get("Sec-WebSocket-Extensions");if(null!==o&&""!==o)return void c(r,"Received different permessage-deflate than the one set.");const s=e.headersList.get("Sec-WebSocket-Protocol");null===s||s===a.headersList.get("Sec-WebSocket-Protocol")?(e.socket.on("data",g),e.socket.on("close",A),e.socket.on("error",y),m.open.hasSubscribers&&m.open.publish({address:e.socket.address(),protocol:s,extensions:o}),i(e)):c(r,"Protocol was not set in the opening handshake.")}});return v}},connection}function requireFrame(){if(hasRequiredFrame)return frame;hasRequiredFrame=1;const{maxUnsigned16Bit:e}=requireConstants();let t;try{t=require("crypto")}catch{}return frame={WebsocketFrameSend:class{constructor(e){this.frameData=e,this.maskKey=t.randomBytes(4)}createFrame(t){const n=this.frameData?.byteLength??0;let r=n,i=6;n>e?(i+=8,r=127):n>125&&(i+=2,r=126);const o=Buffer.allocUnsafe(n+i);o[0]=o[1]=0,o[0]|=128,o[0]=(240&o[0])+t, /*! ws. MIT License. Einar Otto Stangvik */ -o[i-4]=this.maskKey[0],o[i-3]=this.maskKey[1],o[i-2]=this.maskKey[2],o[i-1]=this.maskKey[3],o[1]=r,126===r?o.writeUInt16BE(n,2):127===r&&(o[2]=o[3]=0,o.writeUIntBE(n,4,6)),o[1]|=128;for(let e=0;e125)return void d(this.ws,"Fragmented frame exceeded 125 bytes.");if((this.#x.opcode===r.PING||this.#x.opcode===r.PONG||this.#x.opcode===r.CLOSE)&&o>125)return void d(this.ws,"Payload length for control frame exceeded 125 bytes.");if(this.#x.opcode===r.CLOSE){if(1===o)return void d(this.ws,"Received close frame with a 1-byte body.");const e=this.consume(o);if(this.#x.closeInfo=this.parseCloseBody(!1,e),!this.ws[a]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#x.closeInfo.code,0);const t=new f(e);this.ws[c].socket.write(t.createFrame(r.CLOSE),(e=>{e||(this.ws[a]=!0)}))}return this.ws[s]=i.CLOSING,this.ws[l]=!0,void this.end()}if(this.#x.opcode===r.PING){const t=this.consume(o);if(!this.ws[l]){const e=new f(t);this.ws[c].socket.write(e.createFrame(r.PONG)),_.ping.hasSubscribers&&_.ping.publish({payload:t})}if(this.#E=n.INFO,this.#C>0)continue;return void e()}if(this.#x.opcode===r.PONG){const t=this.consume(o);if(_.pong.hasSubscribers&&_.pong.publish({payload:t}),this.#C>0)continue;return void e()}}else if(this.#E===n.PAYLOADLENGTH_16){if(this.#C<2)return e();const t=this.consume(2);this.#x.payloadLength=t.readUInt16BE(0),this.#E=n.READ_DATA}else if(this.#E===n.PAYLOADLENGTH_64){if(this.#C<8)return e();const t=this.consume(8),r=t.readUInt32BE(0);if(r>2**31-1)return void d(this.ws,"Received payload length > 2^31 bytes.");const i=t.readUInt32BE(4);this.#x.payloadLength=(r<<8)+i,this.#E=n.READ_DATA}else if(this.#E===n.READ_DATA){if(this.#C=this.#x.payloadLength){const e=this.consume(this.#x.payloadLength);if(this.#S.push(e),!this.#x.fragmented||this.#x.fin&&this.#x.opcode===r.CONTINUATION){const e=Buffer.concat(this.#S);p(this.ws,this.#x.originalOpcode,e),this.#x={},this.#S.length=0}this.#E=n.INFO}}if(!(this.#C>0)){e();break}}}consume(e){if(e>this.#C)return null;if(0===e)return o;if(this.#b[0].length===e)return this.#C-=this.#b[0].length,this.#b.shift();const t=Buffer.allocUnsafe(e);let n=0;for(;n!==e;){const r=this.#b[0],{length:i}=r;if(i+n===e){t.set(this.#b.shift(),n);break}if(i+n>e){t.set(r.subarray(0,e-n),n),this.#b[0]=r.subarray(e-n);break}t.set(this.#b.shift(),n),n+=r.length}return this.#C-=e,t}parseCloseBody(e,t){let n;if(t.length>=2&&(n=t.readUInt16BE(0)),e)return u(n)?{code:n}:null;let r=t.subarray(2);if(239===r[0]&&187===r[1]&&191===r[2]&&(r=r.subarray(3)),void 0!==n&&!u(n))return null;try{r=new TextDecoder("utf-8",{fatal:!0}).decode(r)}catch{return null}return{code:n,reason:r}}get closingInfo(){return this.#x.closeInfo}}},receiver}function requireWebsocket(){if(hasRequiredWebsocket)return websocket;hasRequiredWebsocket=1;const{webidl:e}=requireWebidl(),{DOMException:t}=requireConstants$3(),{URLSerializer:n}=requireDataURL(),{getGlobalOrigin:r}=requireGlobal$1(),{staticPropertyDescriptors:i,states:o,opcodes:s,emptyBuffer:a}=requireConstants(),{kWebSocketURL:c,kReadyState:l,kController:u,kBinaryType:d,kResponse:p,kSentClose:f,kByteParser:_}=requireSymbols(),{isEstablished:m,isClosing:h,isValidSubprotocol:g,failWebsocketConnection:A,fireEvent:y}=requireUtil$5(),{establishWebSocketConnection:v}=requireConnection(),{WebsocketFrameSend:b}=requireFrame(),{ByteParser:C}=requireReceiver(),{kEnumerableProperty:E,isBlobLike:x}=requireUtil$b(),{getGlobalDispatcher:S}=requireGlobal(),{types:k}=require$$0__default;let D=!1;class w extends EventTarget{#k={open:null,error:null,close:null,message:null};#D=0;#w="";#I="";constructor(n,i=[]){super(),e.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"}),D||(D=!0,process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"}));const o=e.converters["DOMString or sequence or WebSocketInit"](i);n=e.converters.USVString(n),i=o.protocols;const s=r();let a;try{a=new URL(n,s)}catch(e){throw new t(e,"SyntaxError")}if("http:"===a.protocol?a.protocol="ws:":"https:"===a.protocol&&(a.protocol="wss:"),"ws:"!==a.protocol&&"wss:"!==a.protocol)throw new t(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError");if(a.hash||a.href.endsWith("#"))throw new t("Got fragment","SyntaxError");if("string"==typeof i&&(i=[i]),i.length!==new Set(i.map((e=>e.toLowerCase()))).size)throw new t("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(i.length>0&&!i.every((e=>g(e))))throw new t("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[c]=new URL(a.href),this[u]=v(a,i,this,(e=>this.#T(e)),o),this[l]=w.CONNECTING,this[d]="blob"}close(n=void 0,r=void 0){if(e.brandCheck(this,w),void 0!==n&&(n=e.converters["unsigned short"](n,{clamp:!0})),void 0!==r&&(r=e.converters.USVString(r)),void 0!==n&&1e3!==n&&(n<3e3||n>4999))throw new t("invalid code","InvalidAccessError");let i=0;if(void 0!==r&&(i=Buffer.byteLength(r),i>123))throw new t(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError");if(this[l]===w.CLOSING||this[l]===w.CLOSED);else if(m(this))if(h(this))this[l]=w.CLOSING;else{const e=new b;void 0!==n&&void 0===r?(e.frameData=Buffer.allocUnsafe(2),e.frameData.writeUInt16BE(n,0)):void 0!==n&&void 0!==r?(e.frameData=Buffer.allocUnsafe(2+i),e.frameData.writeUInt16BE(n,0),e.frameData.write(r,2,"utf-8")):e.frameData=a;this[p].socket.write(e.createFrame(s.CLOSE),(e=>{e||(this[f]=!0)})),this[l]=o.CLOSING}else A(this,"Connection was closed before it was established."),this[l]=w.CLOSING}send(n){if(e.brandCheck(this,w),e.argumentLengthCheck(arguments,1,{header:"WebSocket.send"}),n=e.converters.WebSocketSendData(n),this[l]===w.CONNECTING)throw new t("Sent before connected.","InvalidStateError");if(!m(this)||h(this))return;const r=this[p].socket;if("string"==typeof n){const e=Buffer.from(n),t=new b(e).createFrame(s.TEXT);this.#D+=e.byteLength,r.write(t,(()=>{this.#D-=e.byteLength}))}else if(k.isArrayBuffer(n)){const e=Buffer.from(n),t=new b(e).createFrame(s.BINARY);this.#D+=e.byteLength,r.write(t,(()=>{this.#D-=e.byteLength}))}else if(ArrayBuffer.isView(n)){const e=Buffer.from(n,n.byteOffset,n.byteLength),t=new b(e).createFrame(s.BINARY);this.#D+=e.byteLength,r.write(t,(()=>{this.#D-=e.byteLength}))}else if(x(n)){const e=new b;n.arrayBuffer().then((t=>{const n=Buffer.from(t);e.frameData=n;const i=e.createFrame(s.BINARY);this.#D+=n.byteLength,r.write(i,(()=>{this.#D-=n.byteLength}))}))}}get readyState(){return e.brandCheck(this,w),this[l]}get bufferedAmount(){return e.brandCheck(this,w),this.#D}get url(){return e.brandCheck(this,w),n(this[c])}get extensions(){return e.brandCheck(this,w),this.#I}get protocol(){return e.brandCheck(this,w),this.#w}get onopen(){return e.brandCheck(this,w),this.#k.open}set onopen(t){e.brandCheck(this,w),this.#k.open&&this.removeEventListener("open",this.#k.open),"function"==typeof t?(this.#k.open=t,this.addEventListener("open",t)):this.#k.open=null}get onerror(){return e.brandCheck(this,w),this.#k.error}set onerror(t){e.brandCheck(this,w),this.#k.error&&this.removeEventListener("error",this.#k.error),"function"==typeof t?(this.#k.error=t,this.addEventListener("error",t)):this.#k.error=null}get onclose(){return e.brandCheck(this,w),this.#k.close}set onclose(t){e.brandCheck(this,w),this.#k.close&&this.removeEventListener("close",this.#k.close),"function"==typeof t?(this.#k.close=t,this.addEventListener("close",t)):this.#k.close=null}get onmessage(){return e.brandCheck(this,w),this.#k.message}set onmessage(t){e.brandCheck(this,w),this.#k.message&&this.removeEventListener("message",this.#k.message),"function"==typeof t?(this.#k.message=t,this.addEventListener("message",t)):this.#k.message=null}get binaryType(){return e.brandCheck(this,w),this[d]}set binaryType(t){e.brandCheck(this,w),this[d]="blob"!==t&&"arraybuffer"!==t?"blob":t}#T(e){this[p]=e;const t=new C(this);t.on("drain",(function(){this.ws[p].socket.resume()})),e.socket.ws=this,this[_]=t,this[l]=o.OPEN;const n=e.headersList.get("sec-websocket-extensions");null!==n&&(this.#I=n);const r=e.headersList.get("sec-websocket-protocol");null!==r&&(this.#w=r),y("open",this)}}return w.CONNECTING=w.prototype.CONNECTING=o.CONNECTING,w.OPEN=w.prototype.OPEN=o.OPEN,w.CLOSING=w.prototype.CLOSING=o.CLOSING,w.CLOSED=w.prototype.CLOSED=o.CLOSED,Object.defineProperties(w.prototype,{CONNECTING:i,OPEN:i,CLOSING:i,CLOSED:i,url:E,readyState:E,bufferedAmount:E,onopen:E,onerror:E,onclose:E,close:E,onmessage:E,binaryType:E,send:E,extensions:E,protocol:E,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(w,{CONNECTING:i,OPEN:i,CLOSING:i,CLOSED:i}),e.converters["sequence"]=e.sequenceConverter(e.converters.DOMString),e.converters["DOMString or sequence"]=function(t){return"Object"===e.util.Type(t)&&Symbol.iterator in t?e.converters["sequence"](t):e.converters.DOMString(t)},e.converters.WebSocketInit=e.dictionaryConverter([{key:"protocols",converter:e.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return S()}},{key:"headers",converter:e.nullableConverter(e.converters.HeadersInit)}]),e.converters["DOMString or sequence or WebSocketInit"]=function(t){return"Object"!==e.util.Type(t)||Symbol.iterator in t?{protocols:e.converters["DOMString or sequence"](t)}:e.converters.WebSocketInit(t)},e.converters.WebSocketSendData=function(t){if("Object"===e.util.Type(t)){if(x(t))return e.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||k.isAnyArrayBuffer(t))return e.converters.BufferSource(t)}return e.converters.USVString(t)},websocket={WebSocket:w}}function requireUndici(){if(hasRequiredUndici)return undici;hasRequiredUndici=1;const e=requireClient(),t=requireDispatcher(),n=requireErrors$2(),r=requirePool(),i=requireBalancedPool(),o=requireAgent(),s=requireUtil$b(),{InvalidArgumentError:a}=n,c=requireApi$2(),l=requireConnect(),u=requireMockClient(),d=requireMockAgent(),p=requireMockPool(),f=requireMockErrors(),_=requireProxyAgent(),m=requireRetryHandler(),{getGlobalDispatcher:h,setGlobalDispatcher:g}=requireGlobal(),A=requireDecoratorHandler(),y=requireRedirectHandler(),v=requireRedirectInterceptor();let b;try{require("crypto"),b=!0}catch{b=!1}function C(e){return(t,n,r)=>{if("function"==typeof n&&(r=n,n=null),!t||"string"!=typeof t&&"object"!=typeof t&&!(t instanceof URL))throw new a("invalid url");if(null!=n&&"object"!=typeof n)throw new a("invalid opts");if(n&&null!=n.path){if("string"!=typeof n.path)throw new a("invalid opts.path");let e=n.path;n.path.startsWith("/")||(e=`/${e}`),t=new URL(s.parseOrigin(t).origin+e)}else n||(n="object"==typeof t?t:{}),t=s.parseURL(t);const{agent:i,dispatcher:o=h()}=n;if(i)throw new a("unsupported opts.agent. Did you mean opts.client?");return e.call(o,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?"PUT":"GET")},r)}}if(Object.assign(t.prototype,c),undici.Dispatcher=t,undici.Client=e,undici.Pool=r,undici.BalancedPool=i,undici.Agent=o,undici.ProxyAgent=_,undici.RetryHandler=m,undici.DecoratorHandler=A,undici.RedirectHandler=y,undici.createRedirectInterceptor=v,undici.buildConnector=l,undici.errors=n,undici.setGlobalDispatcher=g,undici.getGlobalDispatcher=h,s.nodeMajor>16||16===s.nodeMajor&&s.nodeMinor>=8){let e=null;undici.fetch=async function(t){e||(e=requireFetch().fetch);try{return await e(...arguments)}catch(e){throw"object"==typeof e&&Error.captureStackTrace(e,this),e}},undici.Headers=requireHeaders().Headers,undici.Response=requireResponse().Response,undici.Request=requireRequest$1().Request,undici.FormData=requireFormdata().FormData,undici.File=requireFile$1().File,undici.FileReader=requireFilereader().FileReader;const{setGlobalOrigin:t,getGlobalOrigin:n}=requireGlobal$1();undici.setGlobalOrigin=t,undici.getGlobalOrigin=n;const{CacheStorage:r}=requireCachestorage(),{kConstruct:i}=requireSymbols$1();undici.caches=new r(i)}if(s.nodeMajor>=16){const{deleteCookie:e,getCookies:t,getSetCookies:n,setCookie:r}=requireCookies();undici.deleteCookie=e,undici.getCookies=t,undici.getSetCookies=n,undici.setCookie=r;const{parseMIMEType:i,serializeAMimeType:o}=requireDataURL();undici.parseMIMEType=i,undici.serializeAMimeType=o}if(s.nodeMajor>=18&&b){const{WebSocket:e}=requireWebsocket();undici.WebSocket=e}return undici.request=C(c.request),undici.stream=C(c.stream),undici.pipeline=C(c.pipeline),undici.connect=C(c.connect),undici.upgrade=C(c.upgrade),undici.MockClient=u,undici.MockPool=p,undici.MockAgent=d,undici.mockErrors=f,undici}function requireLib$f(){if(hasRequiredLib$f)return lib$g;hasRequiredLib$f=1;var e=lib$g&&lib$g.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),t=lib$g&&lib$g.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=lib$g&&lib$g.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.prototype.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=lib$g&&lib$g.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(lib$g,"__esModule",{value:!0}),lib$g.HttpClient=lib$g.isHttps=lib$g.HttpClientResponse=lib$g.HttpClientError=lib$g.getProxyUrl=lib$g.MediaTypes=lib$g.Headers=lib$g.HttpCodes=void 0;const i=n(require$$2$1),o=n(require$$1$4),s=n(requireProxy()),a=n(requireTunnel()),c=requireUndici();var l,u,d;!function(e){e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(l||(lib$g.HttpCodes=l={})),function(e){e.Accept="accept",e.ContentType="content-type"}(u||(lib$g.Headers=u={})),function(e){e.ApplicationJson="application/json"}(d||(lib$g.MediaTypes=d={})),lib$g.getProxyUrl=function(e){const t=s.getProxyUrl(new URL(e));return t?t.href:""};const p=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],_=["OPTIONS","GET","DELETE","HEAD"];class m extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,m.prototype)}}lib$g.HttpClientError=m;class h{constructor(e){this.message=e}readBody(){return r(this,void 0,void 0,(function*(){return new Promise((e=>r(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return r(this,void 0,void 0,(function*(){return new Promise((e=>r(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)})),this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}lib$g.HttpClientResponse=h,lib$g.isHttps=function(e){return"https:"===new URL(e).protocol};lib$g.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return r(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return r(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return r(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return r(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return r(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return r(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return r(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,i){return r(this,void 0,void 0,(function*(){return this.request(e,t,n,i)}))}getJson(e,t={}){return r(this,void 0,void 0,(function*(){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,d.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t,n={}){return r(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,d.ApplicationJson),n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,d.ApplicationJson);const i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)}))}putJson(e,t,n={}){return r(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,d.ApplicationJson),n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,d.ApplicationJson);const i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t,n={}){return r(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,d.ApplicationJson),n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,d.ApplicationJson);const i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}))}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");const r=new URL(t);let o=this._prepareRequest(e,r,i);const s=this._allowRetries&&_.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=yield this.requestRaw(o,n),a&&a.message&&a.message.statusCode===l.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,o,n):a}let t=this._maxRedirects;for(;a.message.statusCode&&p.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const s=a.message.headers.location;if(!s)break;const c=new URL(s);if("https:"===r.protocol&&r.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield a.readBody(),c.hostname!==r.hostname)for(const e in i)"authorization"===e.toLowerCase()&&delete i[e];o=this._prepareRequest(e,c,i),a=yield this.requestRaw(o,n),t--}if(!a.message.statusCode||!f.includes(a.message.statusCode))return a;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e?r(e):t?n(t):r(new Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,n){"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let r=!1;function i(e,t){r||(r=!0,n(e,t))}const o=e.httpModule.request(e.options,(e=>{i(void 0,new h(e))}));let s;o.on("socket",(e=>{s=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),i(new Error(`Request timeout: ${e.options.path}`))})),o.on("error",(function(e){i(e)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(function(){o.end()})),t.pipe(o)):o.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e),n=s.getProxyUrl(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},g(this.requestOptions.headers),g(e||{})):g(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=g(this.requestOptions.headers)[t]),e[t]||r||n}_getAgent(e){let t;const n=s.getProxyUrl(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),n&&n.hostname){const e={maxSockets:l,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let r;const i="https:"===n.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;const r="https:"===e.protocol;return n=new c.ProxyAgent(Object.assign({uri:t.href,pipelining:this._keepAlive?1:0},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_performExponentialBackoff(e){return r(this,void 0,void 0,(function*(){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return r(this,void 0,void 0,(function*(){return new Promise(((n,i)=>r(this,void 0,void 0,(function*(){const r=e.message.statusCode||0,o={statusCode:r,result:null,headers:{}};let s,a;r===l.NotFound&&n(o);try{a=yield e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,(function(e,t){if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(r>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${r})`;const t=new m(e,r);t.result=o.result,i(t)}else n(o)}))))}))}};const g=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{});return lib$g}var auth={},hasRequiredAuth,hasRequiredOidcUtils;function requireAuth(){if(hasRequiredAuth)return auth;hasRequiredAuth=1;var e=auth&&auth.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(auth,"__esModule",{value:!0}),auth.PersonalAccessTokenCredentialHandler=auth.BearerCredentialHandler=auth.BasicCredentialHandler=void 0;auth.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}};auth.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}};return auth.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}},auth}function requireOidcUtils(){if(hasRequiredOidcUtils)return oidcUtils;hasRequiredOidcUtils=1;var e=oidcUtils&&oidcUtils.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(oidcUtils,"__esModule",{value:!0}),oidcUtils.OidcClient=void 0;const t=requireLib$f(),n=requireAuth(),r=requireCore$5();class i{static createHttpClient(e=!0,r=10){const o={allowRetries:e,maxRetries:r};return new t.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(i.getRequestToken())],o)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=i.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),o=null===(n=r.result)||void 0===n?void 0:n.value;if(!o)throw new Error("Response json body do not have ID Token field");return o}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=i.getIDTokenUrl();if(t){e=`${e}&audience=${encodeURIComponent(t)}`}(0,r.debug)(`ID token url is ${e}`);const n=yield i.getCall(e);return(0,r.setSecret)(n),n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}return oidcUtils.OidcClient=i,oidcUtils}var summary={},hasRequiredSummary;function requireSummary(){return hasRequiredSummary||(hasRequiredSummary=1,function(e){var t=summary&&summary.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=require$$0$9,r=require$$0$7,{access:i,appendFile:o,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw new Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch(e){throw new 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={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:o;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 0===this._buffer.length}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){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const 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){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(o,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:i}=n||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const 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(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(summary)),summary}var pathUtils={},hasRequiredPathUtils;function requirePathUtils(){if(hasRequiredPathUtils)return pathUtils;hasRequiredPathUtils=1;var e=pathUtils&&pathUtils.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),t=pathUtils&&pathUtils.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=pathUtils&&pathUtils.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.prototype.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(pathUtils,"__esModule",{value:!0}),pathUtils.toPlatformPath=pathUtils.toWin32Path=pathUtils.toPosixPath=void 0;const r=n(require$$0$8);return pathUtils.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},pathUtils.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},pathUtils.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},pathUtils}var platform$1={},exec={},toolrunner={},io={},ioUtil={},hasRequiredIoUtil,hasRequiredIo,hasRequiredToolrunner,hasRequiredExec,hasRequiredPlatform,hasRequiredCore$5;function requireIoUtil(){return hasRequiredIoUtil||(hasRequiredIoUtil=1,function(e){var t,n=ioUtil&&ioUtil.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=ioUtil&&ioUtil.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=ioUtil&&ioUtil.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},o=ioUtil&&ioUtil.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const s=i(require$$0$7),a=i(require$$0$8);function c(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}t=s.promises,e.chmod=t.chmod,e.copyFile=t.copyFile,e.lstat=t.lstat,e.mkdir=t.mkdir,e.open=t.open,e.readdir=t.readdir,e.readlink=t.readlink,e.rename=t.rename,e.rm=t.rm,e.rmdir=t.rmdir,e.stat=t.stat,e.symlink=t.symlink,e.unlink=t.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=s.constants.O_RDONLY,e.exists=function(t){return o(this,void 0,void 0,(function*(){try{yield e.stat(t)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},e.isDirectory=function(t,n=!1){return o(this,void 0,void 0,(function*(){return(n?yield e.stat(t):yield e.lstat(t)).isDirectory()}))},e.isRooted=function(t){if(!(t=function(t){if(t=t||"",e.IS_WINDOWS)return(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\");return t.replace(/\/\/+/g,"/")}(t)))throw new Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.tryGetExecutablePath=function(t,n){return o(this,void 0,void 0,(function*(){let r;try{r=yield e.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(r&&r.isFile())if(e.IS_WINDOWS){const e=a.extname(t).toUpperCase();if(n.some((t=>t.toUpperCase()===e)))return t}else if(c(r))return t;const i=t;for(const o of n){t=i+o,r=void 0;try{r=yield e.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(r&&r.isFile()){if(e.IS_WINDOWS){try{const n=a.dirname(t),r=a.basename(t).toUpperCase();for(const i of yield e.readdir(n))if(r===i.toUpperCase()){t=a.join(n,i);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(c(r))return t}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(ioUtil)),ioUtil}function requireIo(){if(hasRequiredIo)return io;hasRequiredIo=1;var e=io&&io.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=io&&io.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=io&&io.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=io&&io.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(io,"__esModule",{value:!0}),io.findInPath=io.which=io.mkdirP=io.rmRF=io.mv=io.cp=void 0;const i=require$$0$f,o=n(require$$0$8),s=n(requireIoUtil());function a(e){return r(this,void 0,void 0,(function*(){if(s.IS_WINDOWS&&/[*"<>|]/.test(e))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield s.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}function c(e){return r(this,void 0,void 0,(function*(){i.ok(e,"a path argument must be provided"),yield s.mkdir(e,{recursive:!0})}))}function l(e){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'tool' is required");const t=[];if(s.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(o.delimiter))e&&t.push(e);if(s.isRooted(e)){const n=yield s.tryGetExecutablePath(e,t);return n?[n]:[]}if(e.includes(o.sep))return[];const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);const r=[];for(const i of n){const n=yield s.tryGetExecutablePath(o.join(i,e),t);n&&r.push(n)}return r}))}function u(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n>=255)return;n++,yield c(t);const r=yield s.readdir(e);for(const o of r){const r=`${e}/${o}`,a=`${t}/${o}`;(yield s.lstat(r)).isDirectory()?yield u(r,a,n,i):yield d(r,a,i)}yield s.chmod(t,(yield s.stat(e)).mode)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield s.lstat(e)).isSymbolicLink()){try{yield s.lstat(t),yield s.unlink(t)}catch(e){"EPERM"===e.code&&(yield s.chmod(t,"0666"),yield s.unlink(t))}const n=yield s.readlink(e);yield s.symlink(n,t,s.IS_WINDOWS?"junction":null)}else(yield s.exists(t))&&!n||(yield s.copyFile(e,t))}))}return io.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:r,recursive:i,copySourceDirectory:a}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive),r=null==e.copySourceDirectory||Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:r}}(n),c=(yield s.exists(t))?yield s.stat(t):null;if(c&&c.isFile()&&!r)return;const l=c&&c.isDirectory()&&a?o.join(t,o.basename(e)):t;if(!(yield s.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield s.stat(e)).isDirectory()){if(!i)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield u(e,l,0,r)}else{if(""===o.relative(e,l))throw new Error(`'${l}' and '${e}' are the same file`);yield d(e,l,r)}}))},io.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield s.exists(t)){let r=!0;if((yield s.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield s.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield a(t)}}yield c(o.dirname(t)),yield s.rename(e,t)}))},io.rmRF=a,io.mkdirP=c,io.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){const n=yield e(t,!1);if(!n)throw s.IS_WINDOWS?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}const r=yield l(t);return r&&r.length>0?r[0]:""}))},io.findInPath=l,io}function requireToolrunner(){if(hasRequiredToolrunner)return toolrunner;hasRequiredToolrunner=1;var e=toolrunner&&toolrunner.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=toolrunner&&toolrunner.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=toolrunner&&toolrunner.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=toolrunner&&toolrunner.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(toolrunner,"__esModule",{value:!0}),toolrunner.argStringToArray=toolrunner.ToolRunner=void 0;const i=n(require$$0$9),o=n(require$$0$c),s=n(require$$2$3),a=n(require$$0$8),c=n(requireIo()),l=n(requireIoUtil()),u=require$$6$3,d="win32"===process.platform;class p extends o.EventEmitter{constructor(e,t,n){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const n=this._getSpawnFileName(),r=this._getSpawnArgs(e);let i=t?"":"[command]";if(d)if(this._isCmdFile()){i+=n;for(const e of r)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of r)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(n);for(const e of r)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=n;for(const e of r)i+=` ${e}`}return i}_processLineBuffer(e,t,n){try{let r=t+e.toString(),o=r.indexOf(i.EOL);for(;o>-1;){n(r.substring(0,o)),r=r.substring(o+i.EOL.length),o=r.indexOf(i.EOL)}return r}catch(e){return this._debug(`error processing line. Failed with error ${e}`),""}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args)t+=" ",t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=!1;for(const r of e)if(t.some((e=>e===r))){n=!0;break}if(!n)return e;let r='"',i=!0;for(let t=e.length;t>0;t--)r+=e[t-1],i&&"\\"===e[t-1]?r+="\\":'"'===e[t-1]?(i=!0,r+='"'):i=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&"\\"===e[r-1]?t+="\\":'"'===e[r-1]?(n=!0,t+="\\"):n=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e=e||{};const n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return r(this,void 0,void 0,(function*(){return!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise(((e,t)=>r(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(const e of this.args)this._debug(` ${e}`);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+i.EOL);const r=new f(n,this.toolPath);if(r.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield l.exists(this.options.cwd)))return t(new Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),a=s.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));let c="";a.stdout&&a.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let u="";if(a.stderr&&a.stderr.on("data",(e=>{if(r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream){(n.failOnStdErr?n.errStream:n.outStream).write(e)}u=this._processLineBuffer(e,u,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),a.on("error",(e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()})),a.on("exit",(e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()})),a.on("close",(e=>{r.processExitCode=e,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete()})),r.on("done",((n,r)=>{c.length>0&&this.emit("stdline",c),u.length>0&&this.emit("errline",u),a.removeAllListeners(),n?t(n):e(r)})),this.options.input){if(!a.stdin)throw new Error("child process missing stdin");a.stdin.end(this.options.input)}}))))}))}}toolrunner.ToolRunner=p,toolrunner.argStringToArray=function(e){const t=[];let n=!1,r=!1,i="";function o(e){r&&'"'!==e&&(i+="\\"),i+=e,r=!1}for(let s=0;s0&&(t.push(i),i=""):r?o(a):n=!n}return i.length>0&&t.push(i.trim()),t};class f extends o.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=u.setTimeout(f.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}}return toolrunner}function requireExec(){if(hasRequiredExec)return exec;hasRequiredExec=1;var e=exec&&exec.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=exec&&exec.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=exec&&exec.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=exec&&exec.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(exec,"__esModule",{value:!0}),exec.getExecOutput=exec.exec=void 0;const i=require$$6$2,o=n(requireToolrunner());function s(e,t,n){return r(this,void 0,void 0,(function*(){const r=o.argStringToArray(e);if(0===r.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const i=r[0];t=r.slice(1).concat(t||[]);return new o.ToolRunner(i,t,n).exec()}))}return exec.exec=s,exec.getExecOutput=function(e,t,n){var o,a;return r(this,void 0,void 0,(function*(){let r="",c="";const l=new i.StringDecoder("utf8"),u=new i.StringDecoder("utf8"),d=null===(o=null==n?void 0:n.listeners)||void 0===o?void 0:o.stdout,p=null===(a=null==n?void 0:n.listeners)||void 0===a?void 0:a.stderr,f=Object.assign(Object.assign({},null==n?void 0:n.listeners),{stdout:e=>{r+=l.write(e),d&&d(e)},stderr:e=>{c+=u.write(e),p&&p(e)}}),_=yield s(e,t,Object.assign(Object.assign({},n),{listeners:f}));return r+=l.end(),c+=u.end(),{exitCode:_,stdout:r,stderr:c}}))},exec}function requirePlatform(){return hasRequiredPlatform||(hasRequiredPlatform=1,function(e){var t=platform$1&&platform$1.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=platform$1&&platform$1.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=platform$1&&platform$1.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=platform$1&&platform$1.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},o=platform$1&&platform$1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getDetails=e.isLinux=e.isMacOS=e.isWindows=e.arch=e.platform=void 0;const s=o(require$$0$9),a=r(requireExec());e.platform=s.default.platform(),e.arch=s.default.arch(),e.isWindows="win32"===e.platform,e.isMacOS="darwin"===e.platform,e.isLinux="linux"===e.platform,e.getDetails=function(){return i(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield e.isWindows?i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',void 0,{silent:!0}),{stdout:t}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',void 0,{silent:!0});return{name:t.trim(),version:e.trim()}})):e.isMacOS?i(void 0,void 0,void 0,(function*(){var e,t,n,r;const{stdout:i}=yield a.getExecOutput("sw_vers",void 0,{silent:!0}),o=null!==(t=null===(e=i.match(/ProductVersion:\s*(.+)/))||void 0===e?void 0:e[1])&&void 0!==t?t:"";return{name:null!==(r=null===(n=i.match(/ProductName:\s*(.+)/))||void 0===n?void 0:n[1])&&void 0!==r?r:"",version:o}})):i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield a.getExecOutput("lsb_release",["-i","-r","-s"],{silent:!0}),[t,n]=e.trim().split("\n");return{name:t,version:n}}))),{platform:e.platform,arch:e.arch,isWindows:e.isWindows,isMacOS:e.isMacOS,isLinux:e.isLinux})}))}}(platform$1)),platform$1}function requireCore$5(){return hasRequiredCore$5||(hasRequiredCore$5=1,function(e){var t=core$6&&core$6.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=core$6&&core$6.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=core$6&&core$6.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=core$6&&core$6.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.toPlatformPath=e.toWin32Path=e.toPosixPath=e.markdownSummary=e.summary=e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const o=requireCommand(),s=requireFileCommand(),a=requireUtils$7(),c=r(require$$0$9),l=r(require$$0$8),u=requireOidcUtils();var d;function p(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return t&&!1===t.trimWhitespace?n:n.trim()}function f(e,t={}){(0,o.issueCommand)("error",(0,a.toCommandProperties)(t),e instanceof Error?e.toString():e)}function _(e){(0,o.issue)("group",e)}function m(){(0,o.issue)("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(d||(e.ExitCode=d={})),e.exportVariable=function(e,t){const n=(0,a.toCommandValue)(t);if(process.env[e]=n,process.env.GITHUB_ENV||"")return(0,s.issueFileCommand)("ENV",(0,s.prepareKeyValueMessage)(e,t));(0,o.issueCommand)("set-env",{name:e},n)},e.setSecret=function(e){(0,o.issueCommand)("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH||""?(0,s.issueFileCommand)("PATH",e):(0,o.issueCommand)("add-path",{},e),process.env.PATH=`${e}${l.delimiter}${process.env.PATH}`},e.getInput=p,e.getMultilineInput=function(e,t){const n=p(e,t).split("\n").filter((e=>""!==e));return t&&!1===t.trimWhitespace?n:n.map((e=>e.trim()))},e.getBooleanInput=function(e,t){const n=p(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT||"")return(0,s.issueFileCommand)("OUTPUT",(0,s.prepareKeyValueMessage)(e,t));process.stdout.write(c.EOL),(0,o.issueCommand)("set-output",{name:e},(0,a.toCommandValue)(t))},e.setCommandEcho=function(e){(0,o.issue)("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=d.Failure,f(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){(0,o.issueCommand)("debug",{},e)},e.error=f,e.warning=function(e,t={}){(0,o.issueCommand)("warning",(0,a.toCommandProperties)(t),e instanceof Error?e.toString():e)},e.notice=function(e,t={}){(0,o.issueCommand)("notice",(0,a.toCommandProperties)(t),e instanceof Error?e.toString():e)},e.info=function(e){process.stdout.write(e+c.EOL)},e.startGroup=_,e.endGroup=m,e.group=function(e,t){return i(this,void 0,void 0,(function*(){let n;_(e);try{n=yield t()}finally{m()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE||"")return(0,s.issueFileCommand)("STATE",(0,s.prepareKeyValueMessage)(e,t));(0,o.issueCommand)("save-state",{name:e},(0,a.toCommandValue)(t))},e.getState=function(e){return process.env[`STATE_${e}`]||""},e.getIDToken=function(e){return i(this,void 0,void 0,(function*(){return yield u.OidcClient.getIDToken(e)}))};var h=requireSummary();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return h.summary}});var g=requireSummary();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return g.markdownSummary}});var A=requirePathUtils();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return A.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return A.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return A.toPlatformPath}}),e.platform=r(requirePlatform())}(core$6)),core$6}var coreExports=requireCore$5(),srcExports$3=requireSrc$8(),debugModule=getDefaultExportFromCjs(srcExports$3),ciInfo={},require$$0$3=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}],hasRequiredCiInfo;function requireCiInfo(){return hasRequiredCiInfo||(hasRequiredCiInfo=1,function(e){const t=require$$0$3,n=process.env;function r(e){return"string"==typeof e?!!n[e]:"env"in e?n[e.env]&&n[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!n[e]})):Object.keys(e).every((function(t){return n[t]===e[t]}))}Object.defineProperty(e,"_vendors",{value:t.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,e.id=null,t.forEach((function(t){const i=(Array.isArray(t.env)?t.env:[t.env]).every((function(e){return r(e)}));e[t.constant]=i,i&&(e.name=t.name,e.isPR=function(e){switch(typeof e.pr){case"string":return!!n[e.pr];case"object":return"env"in e.pr?"any"in e.pr?e.pr.any.some((function(t){return n[e.pr.env]===t})):e.pr.env in n&&n[e.pr.env]!==e.pr.ne:"any"in e.pr?e.pr.any.some((function(e){return!!n[e]})):r(e.pr);default:return null}}(t),e.id=t.constant)})),e.isCI=!("false"===n.CI||!(n.BUILD_ID||n.BUILD_NUMBER||n.CI||n.CI_APP_ID||n.CI_BUILD_ID||n.CI_BUILD_NUMBER||n.CI_NAME||n.CONTINUOUS_INTEGRATION||n.RUN_ID||e.name))}(ciInfo)),ciInfo}var ciInfoExports=requireCiInfo(),ci=getDefaultExportFromCjs(ciInfoExports);function ciName(){return process.env.TEST_RDME_GHA?"GitHub Actions (test)":ci.name||"n/a"}function isTest(){return"rdme-test"===process.env.NODE_ENV}function isNpmScript(){return!!process.env.npm_lifecycle_event&&!isTest()||!!process.env.TEST_RDME_NPM_SCRIPT}function isCI(){return ci.isCI&&!isTest()||!!process.env.TEST_RDME_CI}function isGHA(){return isCI()&&ci.GITHUB_ACTIONS||!!process.env.TEST_RDME_GHA}class BaseCommand extends libExports$3.Command{constructor(e,t){super(e,t);const n=this.id?`${this.config.bin}:${this.id}`:this.config.bin,r=debugModule(n);this.debug=(e,...t)=>(isGHA()&&!isTest()&&coreExports.debug(`${n}: ${format$5(e,...t)}`),r(e,...t))}args;flags;async catch(e){if(isTest())return super.catch(e);let t=`Yikes, something went wrong! Please try again and if the problem persists, get in touch with our support team at ${chalk.underline("support@readme.io")}.`;return e.message&&(t=e.message),isGHA()?coreExports.setFailed(t):("SoftError"===e.name?console.log(e.message):console.error(chalk.red(`\n${t}\n`)),process.exit(process.exitCode??e.exitCode??1))}async _run(){const e=await super._run();return isGHA()&&e&&coreExports.setOutput("rdme",e),e}async init(){await super.init();const{args:e,flags:t}=await this.parse({flags:this.ctor.flags,baseFlags:super.ctor.baseFlags,enableJsonFlag:this.ctor.enableJsonFlag,args:this.ctor.args,strict:this.ctor.strict});this.debug("parsed flags: %o",t),this.debug("parsed args: %o",e),this.flags=t,this.args=e}async runCreateGHAHook(e){return this.config.runHook("createGHA",{command:this.ctor,parsedOpts:e.parsedOpts||{...this.args,...this.flags},result:e.result}).then((t=>{const{successes:n,failures:r}=t;if(n.length)return n[0].result;if(r.length)throw r[0].error;return this.debug("unable to process createGHA hook response",t),e.result}))}}const githubFlag=libExports$3.Flags.boolean({description:"Create a new GitHub Actions workflow for this command."}),keyFlag=libExports$3.Flags.string({description:"ReadMe project API key",required:!0,summary:"An API key for your ReadMe project. Note that API authentication is required despite being omitted from the example usage. See our docs for more information: https://github.com/readmeio/rdme/tree/v9#authentication"}),titleFlag=libExports$3.Flags.string({description:"An override value for the `info.title` field in the API definition"}),versionFlag=libExports$3.Flags.string({description:"If running command in a CI environment and this option is not passed, the main project version will be used. See our docs for more information: https://docs.readme.com/main/docs/versions",summary:"ReadMe project version"}),baseVersionFlags={codename:libExports$3.Flags.string({description:"The codename, or nickname, for a particular version."}),main:libExports$3.Flags.option({description:"Should this be the main version for your project?",options:["true","false"]})(),beta:libExports$3.Flags.option({description:"Should this version be in beta?",options:["true","false"]})(),deprecated:libExports$3.Flags.option({description:"Should this version be deprecated? The main version cannot be deprecated.",options:["true","false"]})(),hidden:libExports$3.Flags.option({description:"Should this version be hidden? The main version cannot be hidden.",options:["true","false"]})()},workingDirectoryFlag=libExports$3.Flags.string({description:"Working directory (for usage with relative external references)"});var mimeTypes={},require$$0$2={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}},mimeDb,hasRequiredMimeDb,hasRequiredMimeTypes;function requireMimeDb(){return hasRequiredMimeDb?mimeDb:(hasRequiredMimeDb=1,mimeDb=require$$0$2)} +o[i-4]=this.maskKey[0],o[i-3]=this.maskKey[1],o[i-2]=this.maskKey[2],o[i-1]=this.maskKey[3],o[1]=r,126===r?o.writeUInt16BE(n,2):127===r&&(o[2]=o[3]=0,o.writeUIntBE(n,4,6)),o[1]|=128;for(let e=0;e125)return void d(this.ws,"Fragmented frame exceeded 125 bytes.");if((this.#x.opcode===r.PING||this.#x.opcode===r.PONG||this.#x.opcode===r.CLOSE)&&o>125)return void d(this.ws,"Payload length for control frame exceeded 125 bytes.");if(this.#x.opcode===r.CLOSE){if(1===o)return void d(this.ws,"Received close frame with a 1-byte body.");const e=this.consume(o);if(this.#x.closeInfo=this.parseCloseBody(!1,e),!this.ws[a]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#x.closeInfo.code,0);const t=new f(e);this.ws[c].socket.write(t.createFrame(r.CLOSE),(e=>{e||(this.ws[a]=!0)}))}return this.ws[s]=i.CLOSING,this.ws[l]=!0,void this.end()}if(this.#x.opcode===r.PING){const t=this.consume(o);if(!this.ws[l]){const e=new f(t);this.ws[c].socket.write(e.createFrame(r.PONG)),_.ping.hasSubscribers&&_.ping.publish({payload:t})}if(this.#E=n.INFO,this.#C>0)continue;return void e()}if(this.#x.opcode===r.PONG){const t=this.consume(o);if(_.pong.hasSubscribers&&_.pong.publish({payload:t}),this.#C>0)continue;return void e()}}else if(this.#E===n.PAYLOADLENGTH_16){if(this.#C<2)return e();const t=this.consume(2);this.#x.payloadLength=t.readUInt16BE(0),this.#E=n.READ_DATA}else if(this.#E===n.PAYLOADLENGTH_64){if(this.#C<8)return e();const t=this.consume(8),r=t.readUInt32BE(0);if(r>2**31-1)return void d(this.ws,"Received payload length > 2^31 bytes.");const i=t.readUInt32BE(4);this.#x.payloadLength=(r<<8)+i,this.#E=n.READ_DATA}else if(this.#E===n.READ_DATA){if(this.#C=this.#x.payloadLength){const e=this.consume(this.#x.payloadLength);if(this.#S.push(e),!this.#x.fragmented||this.#x.fin&&this.#x.opcode===r.CONTINUATION){const e=Buffer.concat(this.#S);p(this.ws,this.#x.originalOpcode,e),this.#x={},this.#S.length=0}this.#E=n.INFO}}if(!(this.#C>0)){e();break}}}consume(e){if(e>this.#C)return null;if(0===e)return o;if(this.#b[0].length===e)return this.#C-=this.#b[0].length,this.#b.shift();const t=Buffer.allocUnsafe(e);let n=0;for(;n!==e;){const r=this.#b[0],{length:i}=r;if(i+n===e){t.set(this.#b.shift(),n);break}if(i+n>e){t.set(r.subarray(0,e-n),n),this.#b[0]=r.subarray(e-n);break}t.set(this.#b.shift(),n),n+=r.length}return this.#C-=e,t}parseCloseBody(e,t){let n;if(t.length>=2&&(n=t.readUInt16BE(0)),e)return u(n)?{code:n}:null;let r=t.subarray(2);if(239===r[0]&&187===r[1]&&191===r[2]&&(r=r.subarray(3)),void 0!==n&&!u(n))return null;try{r=new TextDecoder("utf-8",{fatal:!0}).decode(r)}catch{return null}return{code:n,reason:r}}get closingInfo(){return this.#x.closeInfo}}},receiver}function requireWebsocket(){if(hasRequiredWebsocket)return websocket;hasRequiredWebsocket=1;const{webidl:e}=requireWebidl(),{DOMException:t}=requireConstants$3(),{URLSerializer:n}=requireDataURL(),{getGlobalOrigin:r}=requireGlobal$1(),{staticPropertyDescriptors:i,states:o,opcodes:s,emptyBuffer:a}=requireConstants(),{kWebSocketURL:c,kReadyState:l,kController:u,kBinaryType:d,kResponse:p,kSentClose:f,kByteParser:_}=requireSymbols(),{isEstablished:m,isClosing:h,isValidSubprotocol:g,failWebsocketConnection:A,fireEvent:y}=requireUtil$5(),{establishWebSocketConnection:v}=requireConnection(),{WebsocketFrameSend:b}=requireFrame(),{ByteParser:C}=requireReceiver(),{kEnumerableProperty:E,isBlobLike:x}=requireUtil$b(),{getGlobalDispatcher:S}=requireGlobal(),{types:k}=require$$0__default;let D=!1;class w extends EventTarget{#k={open:null,error:null,close:null,message:null};#D=0;#w="";#I="";constructor(n,i=[]){super(),e.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"}),D||(D=!0,process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"}));const o=e.converters["DOMString or sequence or WebSocketInit"](i);n=e.converters.USVString(n),i=o.protocols;const s=r();let a;try{a=new URL(n,s)}catch(e){throw new t(e,"SyntaxError")}if("http:"===a.protocol?a.protocol="ws:":"https:"===a.protocol&&(a.protocol="wss:"),"ws:"!==a.protocol&&"wss:"!==a.protocol)throw new t(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError");if(a.hash||a.href.endsWith("#"))throw new t("Got fragment","SyntaxError");if("string"==typeof i&&(i=[i]),i.length!==new Set(i.map((e=>e.toLowerCase()))).size)throw new t("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(i.length>0&&!i.every((e=>g(e))))throw new t("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[c]=new URL(a.href),this[u]=v(a,i,this,(e=>this.#T(e)),o),this[l]=w.CONNECTING,this[d]="blob"}close(n=void 0,r=void 0){if(e.brandCheck(this,w),void 0!==n&&(n=e.converters["unsigned short"](n,{clamp:!0})),void 0!==r&&(r=e.converters.USVString(r)),void 0!==n&&1e3!==n&&(n<3e3||n>4999))throw new t("invalid code","InvalidAccessError");let i=0;if(void 0!==r&&(i=Buffer.byteLength(r),i>123))throw new t(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError");if(this[l]===w.CLOSING||this[l]===w.CLOSED);else if(m(this))if(h(this))this[l]=w.CLOSING;else{const e=new b;void 0!==n&&void 0===r?(e.frameData=Buffer.allocUnsafe(2),e.frameData.writeUInt16BE(n,0)):void 0!==n&&void 0!==r?(e.frameData=Buffer.allocUnsafe(2+i),e.frameData.writeUInt16BE(n,0),e.frameData.write(r,2,"utf-8")):e.frameData=a;this[p].socket.write(e.createFrame(s.CLOSE),(e=>{e||(this[f]=!0)})),this[l]=o.CLOSING}else A(this,"Connection was closed before it was established."),this[l]=w.CLOSING}send(n){if(e.brandCheck(this,w),e.argumentLengthCheck(arguments,1,{header:"WebSocket.send"}),n=e.converters.WebSocketSendData(n),this[l]===w.CONNECTING)throw new t("Sent before connected.","InvalidStateError");if(!m(this)||h(this))return;const r=this[p].socket;if("string"==typeof n){const e=Buffer.from(n),t=new b(e).createFrame(s.TEXT);this.#D+=e.byteLength,r.write(t,(()=>{this.#D-=e.byteLength}))}else if(k.isArrayBuffer(n)){const e=Buffer.from(n),t=new b(e).createFrame(s.BINARY);this.#D+=e.byteLength,r.write(t,(()=>{this.#D-=e.byteLength}))}else if(ArrayBuffer.isView(n)){const e=Buffer.from(n,n.byteOffset,n.byteLength),t=new b(e).createFrame(s.BINARY);this.#D+=e.byteLength,r.write(t,(()=>{this.#D-=e.byteLength}))}else if(x(n)){const e=new b;n.arrayBuffer().then((t=>{const n=Buffer.from(t);e.frameData=n;const i=e.createFrame(s.BINARY);this.#D+=n.byteLength,r.write(i,(()=>{this.#D-=n.byteLength}))}))}}get readyState(){return e.brandCheck(this,w),this[l]}get bufferedAmount(){return e.brandCheck(this,w),this.#D}get url(){return e.brandCheck(this,w),n(this[c])}get extensions(){return e.brandCheck(this,w),this.#I}get protocol(){return e.brandCheck(this,w),this.#w}get onopen(){return e.brandCheck(this,w),this.#k.open}set onopen(t){e.brandCheck(this,w),this.#k.open&&this.removeEventListener("open",this.#k.open),"function"==typeof t?(this.#k.open=t,this.addEventListener("open",t)):this.#k.open=null}get onerror(){return e.brandCheck(this,w),this.#k.error}set onerror(t){e.brandCheck(this,w),this.#k.error&&this.removeEventListener("error",this.#k.error),"function"==typeof t?(this.#k.error=t,this.addEventListener("error",t)):this.#k.error=null}get onclose(){return e.brandCheck(this,w),this.#k.close}set onclose(t){e.brandCheck(this,w),this.#k.close&&this.removeEventListener("close",this.#k.close),"function"==typeof t?(this.#k.close=t,this.addEventListener("close",t)):this.#k.close=null}get onmessage(){return e.brandCheck(this,w),this.#k.message}set onmessage(t){e.brandCheck(this,w),this.#k.message&&this.removeEventListener("message",this.#k.message),"function"==typeof t?(this.#k.message=t,this.addEventListener("message",t)):this.#k.message=null}get binaryType(){return e.brandCheck(this,w),this[d]}set binaryType(t){e.brandCheck(this,w),this[d]="blob"!==t&&"arraybuffer"!==t?"blob":t}#T(e){this[p]=e;const t=new C(this);t.on("drain",(function(){this.ws[p].socket.resume()})),e.socket.ws=this,this[_]=t,this[l]=o.OPEN;const n=e.headersList.get("sec-websocket-extensions");null!==n&&(this.#I=n);const r=e.headersList.get("sec-websocket-protocol");null!==r&&(this.#w=r),y("open",this)}}return w.CONNECTING=w.prototype.CONNECTING=o.CONNECTING,w.OPEN=w.prototype.OPEN=o.OPEN,w.CLOSING=w.prototype.CLOSING=o.CLOSING,w.CLOSED=w.prototype.CLOSED=o.CLOSED,Object.defineProperties(w.prototype,{CONNECTING:i,OPEN:i,CLOSING:i,CLOSED:i,url:E,readyState:E,bufferedAmount:E,onopen:E,onerror:E,onclose:E,close:E,onmessage:E,binaryType:E,send:E,extensions:E,protocol:E,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(w,{CONNECTING:i,OPEN:i,CLOSING:i,CLOSED:i}),e.converters["sequence"]=e.sequenceConverter(e.converters.DOMString),e.converters["DOMString or sequence"]=function(t){return"Object"===e.util.Type(t)&&Symbol.iterator in t?e.converters["sequence"](t):e.converters.DOMString(t)},e.converters.WebSocketInit=e.dictionaryConverter([{key:"protocols",converter:e.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return S()}},{key:"headers",converter:e.nullableConverter(e.converters.HeadersInit)}]),e.converters["DOMString or sequence or WebSocketInit"]=function(t){return"Object"!==e.util.Type(t)||Symbol.iterator in t?{protocols:e.converters["DOMString or sequence"](t)}:e.converters.WebSocketInit(t)},e.converters.WebSocketSendData=function(t){if("Object"===e.util.Type(t)){if(x(t))return e.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||k.isAnyArrayBuffer(t))return e.converters.BufferSource(t)}return e.converters.USVString(t)},websocket={WebSocket:w}}function requireUndici(){if(hasRequiredUndici)return undici;hasRequiredUndici=1;const e=requireClient(),t=requireDispatcher(),n=requireErrors$2(),r=requirePool(),i=requireBalancedPool(),o=requireAgent(),s=requireUtil$b(),{InvalidArgumentError:a}=n,c=requireApi$2(),l=requireConnect(),u=requireMockClient(),d=requireMockAgent(),p=requireMockPool(),f=requireMockErrors(),_=requireProxyAgent(),m=requireRetryHandler(),{getGlobalDispatcher:h,setGlobalDispatcher:g}=requireGlobal(),A=requireDecoratorHandler(),y=requireRedirectHandler(),v=requireRedirectInterceptor();let b;try{require("crypto"),b=!0}catch{b=!1}function C(e){return(t,n,r)=>{if("function"==typeof n&&(r=n,n=null),!t||"string"!=typeof t&&"object"!=typeof t&&!(t instanceof URL))throw new a("invalid url");if(null!=n&&"object"!=typeof n)throw new a("invalid opts");if(n&&null!=n.path){if("string"!=typeof n.path)throw new a("invalid opts.path");let e=n.path;n.path.startsWith("/")||(e=`/${e}`),t=new URL(s.parseOrigin(t).origin+e)}else n||(n="object"==typeof t?t:{}),t=s.parseURL(t);const{agent:i,dispatcher:o=h()}=n;if(i)throw new a("unsupported opts.agent. Did you mean opts.client?");return e.call(o,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?"PUT":"GET")},r)}}if(Object.assign(t.prototype,c),undici.Dispatcher=t,undici.Client=e,undici.Pool=r,undici.BalancedPool=i,undici.Agent=o,undici.ProxyAgent=_,undici.RetryHandler=m,undici.DecoratorHandler=A,undici.RedirectHandler=y,undici.createRedirectInterceptor=v,undici.buildConnector=l,undici.errors=n,undici.setGlobalDispatcher=g,undici.getGlobalDispatcher=h,s.nodeMajor>16||16===s.nodeMajor&&s.nodeMinor>=8){let e=null;undici.fetch=async function(t){e||(e=requireFetch().fetch);try{return await e(...arguments)}catch(e){throw"object"==typeof e&&Error.captureStackTrace(e,this),e}},undici.Headers=requireHeaders().Headers,undici.Response=requireResponse().Response,undici.Request=requireRequest$1().Request,undici.FormData=requireFormdata().FormData,undici.File=requireFile$1().File,undici.FileReader=requireFilereader().FileReader;const{setGlobalOrigin:t,getGlobalOrigin:n}=requireGlobal$1();undici.setGlobalOrigin=t,undici.getGlobalOrigin=n;const{CacheStorage:r}=requireCachestorage(),{kConstruct:i}=requireSymbols$1();undici.caches=new r(i)}if(s.nodeMajor>=16){const{deleteCookie:e,getCookies:t,getSetCookies:n,setCookie:r}=requireCookies();undici.deleteCookie=e,undici.getCookies=t,undici.getSetCookies=n,undici.setCookie=r;const{parseMIMEType:i,serializeAMimeType:o}=requireDataURL();undici.parseMIMEType=i,undici.serializeAMimeType=o}if(s.nodeMajor>=18&&b){const{WebSocket:e}=requireWebsocket();undici.WebSocket=e}return undici.request=C(c.request),undici.stream=C(c.stream),undici.pipeline=C(c.pipeline),undici.connect=C(c.connect),undici.upgrade=C(c.upgrade),undici.MockClient=u,undici.MockPool=p,undici.MockAgent=d,undici.mockErrors=f,undici}function requireLib$f(){if(hasRequiredLib$f)return lib$g;hasRequiredLib$f=1;var e=lib$g&&lib$g.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),t=lib$g&&lib$g.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=lib$g&&lib$g.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.prototype.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=lib$g&&lib$g.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(lib$g,"__esModule",{value:!0}),lib$g.HttpClient=lib$g.isHttps=lib$g.HttpClientResponse=lib$g.HttpClientError=lib$g.getProxyUrl=lib$g.MediaTypes=lib$g.Headers=lib$g.HttpCodes=void 0;const i=n(require$$2$1),o=n(require$$1$4),s=n(requireProxy()),a=n(requireTunnel()),c=requireUndici();var l,u,d;!function(e){e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(l||(lib$g.HttpCodes=l={})),function(e){e.Accept="accept",e.ContentType="content-type"}(u||(lib$g.Headers=u={})),function(e){e.ApplicationJson="application/json"}(d||(lib$g.MediaTypes=d={})),lib$g.getProxyUrl=function(e){const t=s.getProxyUrl(new URL(e));return t?t.href:""};const p=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],_=["OPTIONS","GET","DELETE","HEAD"];class m extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,m.prototype)}}lib$g.HttpClientError=m;class h{constructor(e){this.message=e}readBody(){return r(this,void 0,void 0,(function*(){return new Promise((e=>r(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return r(this,void 0,void 0,(function*(){return new Promise((e=>r(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)})),this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}lib$g.HttpClientResponse=h,lib$g.isHttps=function(e){return"https:"===new URL(e).protocol};lib$g.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return r(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return r(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return r(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return r(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return r(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return r(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return r(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,i){return r(this,void 0,void 0,(function*(){return this.request(e,t,n,i)}))}getJson(e,t={}){return r(this,void 0,void 0,(function*(){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,d.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t,n={}){return r(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,d.ApplicationJson),n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,d.ApplicationJson);const i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)}))}putJson(e,t,n={}){return r(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,d.ApplicationJson),n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,d.ApplicationJson);const i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t,n={}){return r(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,d.ApplicationJson),n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,d.ApplicationJson);const i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}))}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");const r=new URL(t);let o=this._prepareRequest(e,r,i);const s=this._allowRetries&&_.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=yield this.requestRaw(o,n),a&&a.message&&a.message.statusCode===l.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,o,n):a}let t=this._maxRedirects;for(;a.message.statusCode&&p.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const s=a.message.headers.location;if(!s)break;const c=new URL(s);if("https:"===r.protocol&&r.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield a.readBody(),c.hostname!==r.hostname)for(const e in i)"authorization"===e.toLowerCase()&&delete i[e];o=this._prepareRequest(e,c,i),a=yield this.requestRaw(o,n),t--}if(!a.message.statusCode||!f.includes(a.message.statusCode))return a;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e?r(e):t?n(t):r(new Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,n){"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let r=!1;function i(e,t){r||(r=!0,n(e,t))}const o=e.httpModule.request(e.options,(e=>{i(void 0,new h(e))}));let s;o.on("socket",(e=>{s=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),i(new Error(`Request timeout: ${e.options.path}`))})),o.on("error",(function(e){i(e)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(function(){o.end()})),t.pipe(o)):o.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e),n=s.getProxyUrl(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},g(this.requestOptions.headers),g(e||{})):g(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=g(this.requestOptions.headers)[t]),e[t]||r||n}_getAgent(e){let t;const n=s.getProxyUrl(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),n&&n.hostname){const e={maxSockets:l,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let r;const i="https:"===n.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;const r="https:"===e.protocol;return n=new c.ProxyAgent(Object.assign({uri:t.href,pipelining:this._keepAlive?1:0},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_performExponentialBackoff(e){return r(this,void 0,void 0,(function*(){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return r(this,void 0,void 0,(function*(){return new Promise(((n,i)=>r(this,void 0,void 0,(function*(){const r=e.message.statusCode||0,o={statusCode:r,result:null,headers:{}};let s,a;r===l.NotFound&&n(o);try{a=yield e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,(function(e,t){if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(r>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${r})`;const t=new m(e,r);t.result=o.result,i(t)}else n(o)}))))}))}};const g=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{});return lib$g}var auth={},hasRequiredAuth,hasRequiredOidcUtils;function requireAuth(){if(hasRequiredAuth)return auth;hasRequiredAuth=1;var e=auth&&auth.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(auth,"__esModule",{value:!0}),auth.PersonalAccessTokenCredentialHandler=auth.BearerCredentialHandler=auth.BasicCredentialHandler=void 0;auth.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}};auth.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}};return auth.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}},auth}function requireOidcUtils(){if(hasRequiredOidcUtils)return oidcUtils;hasRequiredOidcUtils=1;var e=oidcUtils&&oidcUtils.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(oidcUtils,"__esModule",{value:!0}),oidcUtils.OidcClient=void 0;const t=requireLib$f(),n=requireAuth(),r=requireCore$5();class i{static createHttpClient(e=!0,r=10){const o={allowRetries:e,maxRetries:r};return new t.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(i.getRequestToken())],o)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=i.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),o=null===(n=r.result)||void 0===n?void 0:n.value;if(!o)throw new Error("Response json body do not have ID Token field");return o}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=i.getIDTokenUrl();if(t){e=`${e}&audience=${encodeURIComponent(t)}`}(0,r.debug)(`ID token url is ${e}`);const n=yield i.getCall(e);return(0,r.setSecret)(n),n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}return oidcUtils.OidcClient=i,oidcUtils}var summary={},hasRequiredSummary;function requireSummary(){return hasRequiredSummary||(hasRequiredSummary=1,function(e){var t=summary&&summary.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=require$$0$9,r=require$$0$7,{access:i,appendFile:o,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw new Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch(e){throw new 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={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:o;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 0===this._buffer.length}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){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const 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){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(o,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:i}=n||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const 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(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(summary)),summary}var pathUtils={},hasRequiredPathUtils;function requirePathUtils(){if(hasRequiredPathUtils)return pathUtils;hasRequiredPathUtils=1;var e=pathUtils&&pathUtils.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),t=pathUtils&&pathUtils.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=pathUtils&&pathUtils.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.prototype.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(pathUtils,"__esModule",{value:!0}),pathUtils.toPlatformPath=pathUtils.toWin32Path=pathUtils.toPosixPath=void 0;const r=n(require$$0$8);return pathUtils.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},pathUtils.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},pathUtils.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},pathUtils}var platform$1={},exec={},toolrunner={},io={},ioUtil={},hasRequiredIoUtil,hasRequiredIo,hasRequiredToolrunner,hasRequiredExec,hasRequiredPlatform,hasRequiredCore$5;function requireIoUtil(){return hasRequiredIoUtil||(hasRequiredIoUtil=1,function(e){var t,n=ioUtil&&ioUtil.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=ioUtil&&ioUtil.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=ioUtil&&ioUtil.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},o=ioUtil&&ioUtil.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const s=i(require$$0$7),a=i(require$$0$8);function c(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}t=s.promises,e.chmod=t.chmod,e.copyFile=t.copyFile,e.lstat=t.lstat,e.mkdir=t.mkdir,e.open=t.open,e.readdir=t.readdir,e.readlink=t.readlink,e.rename=t.rename,e.rm=t.rm,e.rmdir=t.rmdir,e.stat=t.stat,e.symlink=t.symlink,e.unlink=t.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=s.constants.O_RDONLY,e.exists=function(t){return o(this,void 0,void 0,(function*(){try{yield e.stat(t)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},e.isDirectory=function(t,n=!1){return o(this,void 0,void 0,(function*(){return(n?yield e.stat(t):yield e.lstat(t)).isDirectory()}))},e.isRooted=function(t){if(!(t=function(t){if(t=t||"",e.IS_WINDOWS)return(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\");return t.replace(/\/\/+/g,"/")}(t)))throw new Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.tryGetExecutablePath=function(t,n){return o(this,void 0,void 0,(function*(){let r;try{r=yield e.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(r&&r.isFile())if(e.IS_WINDOWS){const e=a.extname(t).toUpperCase();if(n.some((t=>t.toUpperCase()===e)))return t}else if(c(r))return t;const i=t;for(const o of n){t=i+o,r=void 0;try{r=yield e.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(r&&r.isFile()){if(e.IS_WINDOWS){try{const n=a.dirname(t),r=a.basename(t).toUpperCase();for(const i of yield e.readdir(n))if(r===i.toUpperCase()){t=a.join(n,i);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(c(r))return t}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(ioUtil)),ioUtil}function requireIo(){if(hasRequiredIo)return io;hasRequiredIo=1;var e=io&&io.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=io&&io.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=io&&io.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=io&&io.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(io,"__esModule",{value:!0}),io.findInPath=io.which=io.mkdirP=io.rmRF=io.mv=io.cp=void 0;const i=require$$0$f,o=n(require$$0$8),s=n(requireIoUtil());function a(e){return r(this,void 0,void 0,(function*(){if(s.IS_WINDOWS&&/[*"<>|]/.test(e))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield s.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}function c(e){return r(this,void 0,void 0,(function*(){i.ok(e,"a path argument must be provided"),yield s.mkdir(e,{recursive:!0})}))}function l(e){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'tool' is required");const t=[];if(s.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(o.delimiter))e&&t.push(e);if(s.isRooted(e)){const n=yield s.tryGetExecutablePath(e,t);return n?[n]:[]}if(e.includes(o.sep))return[];const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);const r=[];for(const i of n){const n=yield s.tryGetExecutablePath(o.join(i,e),t);n&&r.push(n)}return r}))}function u(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n>=255)return;n++,yield c(t);const r=yield s.readdir(e);for(const o of r){const r=`${e}/${o}`,a=`${t}/${o}`;(yield s.lstat(r)).isDirectory()?yield u(r,a,n,i):yield d(r,a,i)}yield s.chmod(t,(yield s.stat(e)).mode)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield s.lstat(e)).isSymbolicLink()){try{yield s.lstat(t),yield s.unlink(t)}catch(e){"EPERM"===e.code&&(yield s.chmod(t,"0666"),yield s.unlink(t))}const n=yield s.readlink(e);yield s.symlink(n,t,s.IS_WINDOWS?"junction":null)}else(yield s.exists(t))&&!n||(yield s.copyFile(e,t))}))}return io.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:r,recursive:i,copySourceDirectory:a}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive),r=null==e.copySourceDirectory||Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:r}}(n),c=(yield s.exists(t))?yield s.stat(t):null;if(c&&c.isFile()&&!r)return;const l=c&&c.isDirectory()&&a?o.join(t,o.basename(e)):t;if(!(yield s.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield s.stat(e)).isDirectory()){if(!i)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield u(e,l,0,r)}else{if(""===o.relative(e,l))throw new Error(`'${l}' and '${e}' are the same file`);yield d(e,l,r)}}))},io.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield s.exists(t)){let r=!0;if((yield s.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield s.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield a(t)}}yield c(o.dirname(t)),yield s.rename(e,t)}))},io.rmRF=a,io.mkdirP=c,io.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){const n=yield e(t,!1);if(!n)throw s.IS_WINDOWS?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}const r=yield l(t);return r&&r.length>0?r[0]:""}))},io.findInPath=l,io}function requireToolrunner(){if(hasRequiredToolrunner)return toolrunner;hasRequiredToolrunner=1;var e=toolrunner&&toolrunner.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=toolrunner&&toolrunner.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=toolrunner&&toolrunner.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=toolrunner&&toolrunner.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(toolrunner,"__esModule",{value:!0}),toolrunner.argStringToArray=toolrunner.ToolRunner=void 0;const i=n(require$$0$9),o=n(require$$0$c),s=n(require$$2$3),a=n(require$$0$8),c=n(requireIo()),l=n(requireIoUtil()),u=require$$6$3,d="win32"===process.platform;class p extends o.EventEmitter{constructor(e,t,n){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const n=this._getSpawnFileName(),r=this._getSpawnArgs(e);let i=t?"":"[command]";if(d)if(this._isCmdFile()){i+=n;for(const e of r)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of r)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(n);for(const e of r)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=n;for(const e of r)i+=` ${e}`}return i}_processLineBuffer(e,t,n){try{let r=t+e.toString(),o=r.indexOf(i.EOL);for(;o>-1;){n(r.substring(0,o)),r=r.substring(o+i.EOL.length),o=r.indexOf(i.EOL)}return r}catch(e){return this._debug(`error processing line. Failed with error ${e}`),""}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args)t+=" ",t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=!1;for(const r of e)if(t.some((e=>e===r))){n=!0;break}if(!n)return e;let r='"',i=!0;for(let t=e.length;t>0;t--)r+=e[t-1],i&&"\\"===e[t-1]?r+="\\":'"'===e[t-1]?(i=!0,r+='"'):i=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&"\\"===e[r-1]?t+="\\":'"'===e[r-1]?(n=!0,t+="\\"):n=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e=e||{};const n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return r(this,void 0,void 0,(function*(){return!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise(((e,t)=>r(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(const e of this.args)this._debug(` ${e}`);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+i.EOL);const r=new f(n,this.toolPath);if(r.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield l.exists(this.options.cwd)))return t(new Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),a=s.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));let c="";a.stdout&&a.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let u="";if(a.stderr&&a.stderr.on("data",(e=>{if(r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream){(n.failOnStdErr?n.errStream:n.outStream).write(e)}u=this._processLineBuffer(e,u,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),a.on("error",(e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()})),a.on("exit",(e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()})),a.on("close",(e=>{r.processExitCode=e,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete()})),r.on("done",((n,r)=>{c.length>0&&this.emit("stdline",c),u.length>0&&this.emit("errline",u),a.removeAllListeners(),n?t(n):e(r)})),this.options.input){if(!a.stdin)throw new Error("child process missing stdin");a.stdin.end(this.options.input)}}))))}))}}toolrunner.ToolRunner=p,toolrunner.argStringToArray=function(e){const t=[];let n=!1,r=!1,i="";function o(e){r&&'"'!==e&&(i+="\\"),i+=e,r=!1}for(let s=0;s0&&(t.push(i),i=""):r?o(a):n=!n}return i.length>0&&t.push(i.trim()),t};class f extends o.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=u.setTimeout(f.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}}return toolrunner}function requireExec(){if(hasRequiredExec)return exec;hasRequiredExec=1;var e=exec&&exec.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=exec&&exec.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=exec&&exec.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=exec&&exec.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(exec,"__esModule",{value:!0}),exec.getExecOutput=exec.exec=void 0;const i=require$$6$2,o=n(requireToolrunner());function s(e,t,n){return r(this,void 0,void 0,(function*(){const r=o.argStringToArray(e);if(0===r.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const i=r[0];t=r.slice(1).concat(t||[]);return new o.ToolRunner(i,t,n).exec()}))}return exec.exec=s,exec.getExecOutput=function(e,t,n){var o,a;return r(this,void 0,void 0,(function*(){let r="",c="";const l=new i.StringDecoder("utf8"),u=new i.StringDecoder("utf8"),d=null===(o=null==n?void 0:n.listeners)||void 0===o?void 0:o.stdout,p=null===(a=null==n?void 0:n.listeners)||void 0===a?void 0:a.stderr,f=Object.assign(Object.assign({},null==n?void 0:n.listeners),{stdout:e=>{r+=l.write(e),d&&d(e)},stderr:e=>{c+=u.write(e),p&&p(e)}}),_=yield s(e,t,Object.assign(Object.assign({},n),{listeners:f}));return r+=l.end(),c+=u.end(),{exitCode:_,stdout:r,stderr:c}}))},exec}function requirePlatform(){return hasRequiredPlatform||(hasRequiredPlatform=1,function(e){var t=platform$1&&platform$1.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=platform$1&&platform$1.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=platform$1&&platform$1.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=platform$1&&platform$1.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},o=platform$1&&platform$1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getDetails=e.isLinux=e.isMacOS=e.isWindows=e.arch=e.platform=void 0;const s=o(require$$0$9),a=r(requireExec());e.platform=s.default.platform(),e.arch=s.default.arch(),e.isWindows="win32"===e.platform,e.isMacOS="darwin"===e.platform,e.isLinux="linux"===e.platform,e.getDetails=function(){return i(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield e.isWindows?i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',void 0,{silent:!0}),{stdout:t}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',void 0,{silent:!0});return{name:t.trim(),version:e.trim()}})):e.isMacOS?i(void 0,void 0,void 0,(function*(){var e,t,n,r;const{stdout:i}=yield a.getExecOutput("sw_vers",void 0,{silent:!0}),o=null!==(t=null===(e=i.match(/ProductVersion:\s*(.+)/))||void 0===e?void 0:e[1])&&void 0!==t?t:"";return{name:null!==(r=null===(n=i.match(/ProductName:\s*(.+)/))||void 0===n?void 0:n[1])&&void 0!==r?r:"",version:o}})):i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield a.getExecOutput("lsb_release",["-i","-r","-s"],{silent:!0}),[t,n]=e.trim().split("\n");return{name:t,version:n}}))),{platform:e.platform,arch:e.arch,isWindows:e.isWindows,isMacOS:e.isMacOS,isLinux:e.isLinux})}))}}(platform$1)),platform$1}function requireCore$5(){return hasRequiredCore$5||(hasRequiredCore$5=1,function(e){var t=core$6&&core$6.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=core$6&&core$6.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=core$6&&core$6.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=core$6&&core$6.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.toPlatformPath=e.toWin32Path=e.toPosixPath=e.markdownSummary=e.summary=e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const o=requireCommand(),s=requireFileCommand(),a=requireUtils$7(),c=r(require$$0$9),l=r(require$$0$8),u=requireOidcUtils();var d;function p(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return t&&!1===t.trimWhitespace?n:n.trim()}function f(e,t={}){(0,o.issueCommand)("error",(0,a.toCommandProperties)(t),e instanceof Error?e.toString():e)}function _(e){(0,o.issue)("group",e)}function m(){(0,o.issue)("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(d||(e.ExitCode=d={})),e.exportVariable=function(e,t){const n=(0,a.toCommandValue)(t);if(process.env[e]=n,process.env.GITHUB_ENV||"")return(0,s.issueFileCommand)("ENV",(0,s.prepareKeyValueMessage)(e,t));(0,o.issueCommand)("set-env",{name:e},n)},e.setSecret=function(e){(0,o.issueCommand)("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH||""?(0,s.issueFileCommand)("PATH",e):(0,o.issueCommand)("add-path",{},e),process.env.PATH=`${e}${l.delimiter}${process.env.PATH}`},e.getInput=p,e.getMultilineInput=function(e,t){const n=p(e,t).split("\n").filter((e=>""!==e));return t&&!1===t.trimWhitespace?n:n.map((e=>e.trim()))},e.getBooleanInput=function(e,t){const n=p(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT||"")return(0,s.issueFileCommand)("OUTPUT",(0,s.prepareKeyValueMessage)(e,t));process.stdout.write(c.EOL),(0,o.issueCommand)("set-output",{name:e},(0,a.toCommandValue)(t))},e.setCommandEcho=function(e){(0,o.issue)("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=d.Failure,f(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){(0,o.issueCommand)("debug",{},e)},e.error=f,e.warning=function(e,t={}){(0,o.issueCommand)("warning",(0,a.toCommandProperties)(t),e instanceof Error?e.toString():e)},e.notice=function(e,t={}){(0,o.issueCommand)("notice",(0,a.toCommandProperties)(t),e instanceof Error?e.toString():e)},e.info=function(e){process.stdout.write(e+c.EOL)},e.startGroup=_,e.endGroup=m,e.group=function(e,t){return i(this,void 0,void 0,(function*(){let n;_(e);try{n=yield t()}finally{m()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE||"")return(0,s.issueFileCommand)("STATE",(0,s.prepareKeyValueMessage)(e,t));(0,o.issueCommand)("save-state",{name:e},(0,a.toCommandValue)(t))},e.getState=function(e){return process.env[`STATE_${e}`]||""},e.getIDToken=function(e){return i(this,void 0,void 0,(function*(){return yield u.OidcClient.getIDToken(e)}))};var h=requireSummary();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return h.summary}});var g=requireSummary();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return g.markdownSummary}});var A=requirePathUtils();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return A.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return A.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return A.toPlatformPath}}),e.platform=r(requirePlatform())}(core$6)),core$6}var coreExports=requireCore$5(),srcExports$3=requireSrc$8(),debugModule=getDefaultExportFromCjs(srcExports$3),ciInfo={},require$$0$3=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}],hasRequiredCiInfo;function requireCiInfo(){return hasRequiredCiInfo||(hasRequiredCiInfo=1,function(e){const t=require$$0$3,n=process.env;function r(e){return"string"==typeof e?!!n[e]:"env"in e?n[e.env]&&n[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!n[e]})):Object.keys(e).every((function(t){return n[t]===e[t]}))}Object.defineProperty(e,"_vendors",{value:t.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,e.id=null,t.forEach((function(t){const i=(Array.isArray(t.env)?t.env:[t.env]).every((function(e){return r(e)}));e[t.constant]=i,i&&(e.name=t.name,e.isPR=function(e){switch(typeof e.pr){case"string":return!!n[e.pr];case"object":return"env"in e.pr?"any"in e.pr?e.pr.any.some((function(t){return n[e.pr.env]===t})):e.pr.env in n&&n[e.pr.env]!==e.pr.ne:"any"in e.pr?e.pr.any.some((function(e){return!!n[e]})):r(e.pr);default:return null}}(t),e.id=t.constant)})),e.isCI=!("false"===n.CI||!(n.BUILD_ID||n.BUILD_NUMBER||n.CI||n.CI_APP_ID||n.CI_BUILD_ID||n.CI_BUILD_NUMBER||n.CI_NAME||n.CONTINUOUS_INTEGRATION||n.RUN_ID||e.name))}(ciInfo)),ciInfo}var ciInfoExports=requireCiInfo(),ci=getDefaultExportFromCjs(ciInfoExports);function ciName(){return process.env.TEST_RDME_GHA?"GitHub Actions (test)":ci.name||"n/a"}function isTest(){return"rdme-test"===process.env.NODE_ENV}function isNpmScript(){return!!process.env.npm_lifecycle_event&&!isTest()||!!process.env.TEST_RDME_NPM_SCRIPT}function isCI(){return ci.isCI&&!isTest()||!!process.env.TEST_RDME_CI}function isGHA(){return isCI()&&ci.GITHUB_ACTIONS||!!process.env.TEST_RDME_GHA}class BaseCommand extends libExports$3.Command{constructor(e,t){super(e,t);const n=this.id?`${this.config.bin}:${this.id}`:this.config.bin,r=debugModule(n);this.debug=(e,...t)=>(isGHA()&&!isTest()&&coreExports.debug(`${n}: ${format$5(e,...t)}`),r(e,...t))}args;flags;async catch(e){if(isTest())return super.catch(e);let t=`Yikes, something went wrong! Please try again and if the problem persists, get in touch with our support team at ${chalk.underline("support@readme.io")}.`;return e.message&&(t=e.message),isGHA()?coreExports.setFailed(t):("SoftError"===e.name?console.log(e.message):console.error(chalk.red(`\n${t}\n`)),process.exit(process.exitCode??e.exitCode??1))}async _run(){const e=await super._run();return isGHA()&&e&&coreExports.setOutput("rdme",e),e}async init(){await super.init();const{args:e,flags:t}=await this.parse({flags:this.ctor.flags,baseFlags:super.ctor.baseFlags,enableJsonFlag:this.ctor.enableJsonFlag,args:this.ctor.args,strict:this.ctor.strict});this.debug("parsed flags: %o",t),this.debug("parsed args: %o",e),this.flags=t,this.args=e}async runCreateGHAHook(e){return this.config.runHook("createGHA",{command:this.ctor,parsedOpts:e.parsedOpts||{...this.args,...this.flags},result:e.result}).then((t=>{const{successes:n,failures:r}=t;if(n.length)return n[0].result;if(r.length)throw r[0].error;return this.debug("unable to process createGHA hook response",t),e.result}))}}const githubFlag=libExports$3.Flags.boolean({description:"Create a new GitHub Actions workflow for this command."}),keyFlag=libExports$3.Flags.string({summary:"ReadMe project API key",required:!0,description:"An API key for your ReadMe project. Note that API authentication is required despite being omitted from the example usage. See our docs for more information: https://github.com/readmeio/rdme/tree/v9#authentication"}),titleFlag=libExports$3.Flags.string({description:"An override value for the `info.title` field in the API definition"}),versionFlag=libExports$3.Flags.string({summary:"ReadMe project version",description:"If running command in a CI environment and this option is not passed, the main project version will be used. See our docs for more information: https://docs.readme.com/main/docs/versions"}),baseVersionFlags={codename:libExports$3.Flags.string({description:"The codename, or nickname, for a particular version."}),main:libExports$3.Flags.option({description:"Should this be the main version for your project?",options:["true","false"]})(),beta:libExports$3.Flags.option({description:"Should this version be in beta?",options:["true","false"]})(),deprecated:libExports$3.Flags.option({description:"Should this version be deprecated? The main version cannot be deprecated.",options:["true","false"]})(),hidden:libExports$3.Flags.option({description:"Should this version be hidden? The main version cannot be hidden.",options:["true","false"]})()},workingDirectoryFlag=libExports$3.Flags.string({description:"Working directory (for usage with relative external references)"}),specArg=libExports$3.Args.string({description:"A path to your API definition โ€” either a local file path or a URL. If your working directory and all subdirectories contain a single OpenAPI file, you can omit the path."});var mimeTypes={},require$$0$2={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}},mimeDb,hasRequiredMimeDb,hasRequiredMimeTypes;function requireMimeDb(){return hasRequiredMimeDb?mimeDb:(hasRequiredMimeDb=1,mimeDb=require$$0$2)} /*! * mime-types * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed - */function requireMimeTypes(){return hasRequiredMimeTypes||(hasRequiredMimeTypes=1,function(e){var t=requireMimeDb(),n=require$$0$8.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,i=/^text\//i;function o(e){if(!e||"string"!=typeof e)return!1;var n=r.exec(e),o=n&&t[n[1].toLowerCase()];return o&&o.charset?o.charset:!(!n||!i.test(n[1]))&&"UTF-8"}e.charset=o,e.charsets={lookup:o},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var r=e.charset(n);r&&(n+="; charset="+r.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=r.exec(t),i=n&&e.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var r=n("x."+t).toLowerCase().substr(1);if(!r)return!1;return e.types[r]||!1},e.types=Object.create(null),function(e,n){var r=["nginx","apache",void 0,"iana"];Object.keys(t).forEach((function(i){var o=t[i],s=o.extensions;if(s&&s.length){e[i]=s;for(var a=0;au||l===u&&"application/"===n[c].substr(0,12)))continue}n[c]=i}}}))}(e.extensions,e.types)}(mimeTypes)),mimeTypes}var mimeTypesExports=requireMimeTypes(),mime=getDefaultExportFromCjs(mimeTypesExports),undiciExports=requireUndici();class APIv1Error extends Error{code;constructor(e){let t;t="object"==typeof e&&"object"==typeof e?.error?e.error:e,super(t),this.name="APIv1Error","object"==typeof t?(this.code=t.error,this.message=t?.help?[t.message,"",t.help].join("\n"):t.message,this.name="APIv1Error"):(this.code=t,this.message=t)}}const config={host:"https://dash.readme.com",hub:"https://{project}.readme.io"};var prompts$3={},kleur,hasRequiredKleur,action$1,hasRequiredAction$1,strip$1,hasRequiredStrip$1,src$6,hasRequiredSrc$6,clear$1,hasRequiredClear$1,figures_1$1,hasRequiredFigures$1,style$1,hasRequiredStyle$1,lines$1,hasRequiredLines$1,wrap$1,hasRequiredWrap$1,entriesToDisplay$1,hasRequiredEntriesToDisplay$1,util$4,hasRequiredUtil$4,prompt$1,hasRequiredPrompt$1,text$2,hasRequiredText$2,select$1,hasRequiredSelect$1,toggle$1,hasRequiredToggle$1,datepart$1,hasRequiredDatepart$1,meridiem$1,hasRequiredMeridiem$1,day$1,hasRequiredDay$1,hours$1,hasRequiredHours$1,milliseconds$1,hasRequiredMilliseconds$1,minutes$1,hasRequiredMinutes$1,month$1,hasRequiredMonth$1,seconds$1,hasRequiredSeconds$1,year$1,hasRequiredYear$1,dateparts$1,hasRequiredDateparts$1,date$1,hasRequiredDate$1,number$1,hasRequiredNumber$1,multiselect$1,hasRequiredMultiselect$1,autocomplete$1,hasRequiredAutocomplete$1,autocompleteMultiselect$1,hasRequiredAutocompleteMultiselect$1,confirm$1,hasRequiredConfirm$1,elements$1,hasRequiredElements$1,hasRequiredPrompts$2,dist$6,hasRequiredDist$6;function requireKleur(){if(hasRequiredKleur)return kleur;hasRequiredKleur=1;const{FORCE_COLOR:e,NODE_DISABLE_COLORS:t,TERM:n}=process.env,r={enabled:!t&&"dumb"!==n&&"0"!==e,reset:o(0,0),bold:o(1,22),dim:o(2,22),italic:o(3,23),underline:o(4,24),inverse:o(7,27),hidden:o(8,28),strikethrough:o(9,29),black:o(30,39),red:o(31,39),green:o(32,39),yellow:o(33,39),blue:o(34,39),magenta:o(35,39),cyan:o(36,39),white:o(37,39),gray:o(90,39),grey:o(90,39),bgBlack:o(40,49),bgRed:o(41,49),bgGreen:o(42,49),bgYellow:o(43,49),bgBlue:o(44,49),bgMagenta:o(45,49),bgCyan:o(46,49),bgWhite:o(47,49)};function i(e,t){let n,r=0,i="",o="";for(;r{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}})}function requireStrip$1(){return hasRequiredStrip$1||(hasRequiredStrip$1=1,strip$1=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(t,"g");return"string"==typeof e?e.replace(n,""):e}),strip$1}function requireSrc$6(){if(hasRequiredSrc$6)return src$6;hasRequiredSrc$6=1;const e="[",t={to:(t,n)=>n?`${e}${n+1};${t+1}H`:`${e}${t+1}G`,move(t,n){let r="";return t<0?r+=`${e}${-t}D`:t>0&&(r+=`${e}${t}C`),n<0?r+=`${e}${-n}A`:n>0&&(r+=`${e}${n}B`),r},up:(t=1)=>`${e}${t}A`,down:(t=1)=>`${e}${t}B`,forward:(t=1)=>`${e}${t}C`,backward:(t=1)=>`${e}${t}D`,nextLine:(t=1)=>`${e}E`.repeat(t),prevLine:(t=1)=>`${e}F`.repeat(t),left:`${e}G`,hide:`${e}?25l`,show:`${e}?25h`,save:"7",restore:"8"},n={up:(t=1)=>`${e}S`.repeat(t),down:(t=1)=>`${e}T`.repeat(t)},r={screen:`${e}2J`,up:(t=1)=>`${e}1J`.repeat(t),down:(t=1)=>`${e}J`.repeat(t),line:`${e}2K`,lineEnd:`${e}K`,lineStart:`${e}1K`,lines(e){let n="";for(let r=0;r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw s}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n[...n(e)].length;return clear$1=function(t,n){if(!n)return i.line+o.to(0);let r=0;var a,c=e(t.split(/\r?\n/));try{for(c.s();!(a=c.n()).done;){let e=a.value;r+=1+Math.floor(Math.max(s(e)-1,0)/n)}}catch(e){c.e(e)}finally{c.f()}return i.lines(r)},clear$1}function requireFigures$1(){if(hasRequiredFigures$1)return figures_1$1;hasRequiredFigures$1=1;const e={arrowUp:"โ†‘",arrowDown:"โ†“",arrowLeft:"โ†",arrowRight:"โ†’",radioOn:"โ—‰",radioOff:"โ—ฏ",tick:"โœ”",cross:"โœ–",ellipsis:"โ€ฆ",pointerSmall:"โ€บ",line:"โ”€",pointer:"โฏ"},t={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"โˆš",cross:"ร—",ellipsis:"...",pointerSmall:"ยป",line:"โ”€",pointer:">"},n="win32"===process.platform?t:e;return figures_1$1=n}function requireStyle$1(){if(hasRequiredStyle$1)return style$1;hasRequiredStyle$1=1;const e=requireKleur(),t=requireFigures$1(),n=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"๐Ÿ˜ƒ".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),r=Object.freeze({aborted:e.red(t.cross),done:e.green(t.tick),exited:e.yellow(t.cross),default:e.cyan("?")});return style$1={styles:n,render:e=>n[e]||n.default,symbols:r,symbol:(e,t,n)=>t?r.aborted:n?r.exited:e?r.done:r.default,delimiter:n=>e.gray(n?t.ellipsis:t.pointerSmall),item:(n,r)=>e.gray(n?r?t.pointerSmall:"+":t.line)},style$1}function requireLines$1(){if(hasRequiredLines$1)return lines$1;hasRequiredLines$1=1;const e=requireStrip$1();return lines$1=function(t,n){let r=String(e(t)||"").split(/\r?\n/);return n?r.map((e=>Math.ceil(e.length/n))).reduce(((e,t)=>e+t)):r.length},lines$1}function requireWrap$1(){return hasRequiredWrap$1||(hasRequiredWrap$1=1,wrap$1=(e,t={})=>{const n=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",r=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+n.length>=r||e[e.length-1].length+t.length+1{n=n||t;let r=Math.min(t-n,e-Math.floor(n/2));return r<0&&(r=0),{startIndex:r,endIndex:Math.min(r+n,t)}})}function requireUtil$4(){return hasRequiredUtil$4?util$4:(hasRequiredUtil$4=1,util$4={action:requireAction$1(),clear:requireClear$1(),style:requireStyle$1(),strip:requireStrip$1(),figures:requireFigures$1(),lines:requireLines$1(),wrap:requireWrap$1(),entriesToDisplay:requireEntriesToDisplay$1()})}function requirePrompt$1(){if(hasRequiredPrompt$1)return prompt$1;hasRequiredPrompt$1=1;const e=require$$0$m,t=requireUtil$4().action,n=require$$0$c,r=requireSrc$6(),i=r.beep,o=r.cursor,s=requireKleur();return prompt$1=class extends n{constructor(n={}){super(),this.firstRender=!0,this.in=n.stdin||process.stdin,this.out=n.stdout||process.stdout,this.onRender=(n.onRender||(()=>{})).bind(this);const r=e.createInterface({input:this.in,escapeCodeTimeout:50});e.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,n)=>{let r=t(n,i);!1===r?this._&&this._(e,n):"function"==typeof this[r]?this[r](n):this.bell()};this.close=()=>{this.out.write(o.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(i)}render(){this.onRender(s),this.firstRender&&(this.firstRender=!1)}},prompt$1}function requireText$2(){if(hasRequiredText$2)return text$2;function e(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=t.apply(n,r);function a(t){e(s,i,o,a,c,"next",t)}function c(t){e(s,i,o,a,c,"throw",t)}a(void 0)}))}}hasRequiredText$2=1;const n=requireKleur(),r=requirePrompt$1(),i=requireSrc$6(),o=i.erase,s=i.cursor,a=requireUtil$4(),c=a.style,l=a.clear,u=a.lines,d=a.figures;return text$2=class extends r{constructor(e={}){super(e),this.transform=c.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=l("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return t((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return t((function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error)return e.red=!0,e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let n=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor);this.value=`${n}${e}${r}`,this.red=!1,this.cursor=this.placeholder?0:n.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(s.down(u(this.outputError,this.out.columns)-1)+l(this.outputError,this.out.columns)),this.out.write(l(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":d.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore+s.move(this.cursorOffset,0)))}},text$2}function requireSelect$1(){if(hasRequiredSelect$1)return select$1;hasRequiredSelect$1=1;const e=requireKleur(),t=requirePrompt$1(),n=requireUtil$4(),r=n.style,i=n.clear,o=n.figures,s=n.wrap,a=n.entriesToDisplay,c=requireSrc$6().cursor;return select$1=class extends t{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=i("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,t){if(" "===e)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(c.hide):this.out.write(i(this.outputText,this.out.columns)),super.render();let t=a(this.cursor,this.choices.length,this.optionsPerPage),n=t.startIndex,l=t.endIndex;if(this.outputText=[r.symbol(this.done,this.aborted),e.bold(this.msg),r.delimiter(!1),this.done?this.selection.title:this.selection.disabled?e.yellow(this.warn):e.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let t=n;t0?o.arrowUp:t===l-1&&l=this.out.columns||c.description.split(/\r?\n/).length>1)&&(a="\n"+s(c.description,{margin:3,width:this.out.columns})))),this.outputText+=`${i} ${r}${e.gray(a)}\n`}}this.out.write(this.outputText)}},select$1}function requireToggle$1(){if(hasRequiredToggle$1)return toggle$1;hasRequiredToggle$1=1;const e=requireKleur(),t=requirePrompt$1(),n=requireUtil$4(),r=n.style,i=n.clear,o=requireSrc$6(),s=o.cursor,a=o.erase;return toggle$1=class extends t{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(s.hide):this.out.write(i(this.outputText,this.out.columns)),super.render(),this.outputText=[r.symbol(this.done,this.aborted),e.bold(this.msg),r.delimiter(this.done),this.value?this.inactive:e.cyan().underline(this.inactive),e.gray("/"),this.value?e.cyan().underline(this.active):this.active].join(" "),this.out.write(a.line+s.to(0)+this.outputText))}}}function requireDatepart$1(){if(hasRequiredDatepart$1)return datepart$1;hasRequiredDatepart$1=1;class e{constructor({token:e,date:t,parts:n,locales:r}){this.token=e,this.date=t||new Date,this.parts=n||[this],this.locales=r||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((n,r)=>r>t&&n instanceof e))}setTo(e){}prev(){let t=[].concat(this.parts).reverse();const n=t.indexOf(this);return t.find(((t,r)=>r>n&&t instanceof e))}toString(){return String(this.date)}}return datepart$1=e}function requireMeridiem$1(){if(hasRequiredMeridiem$1)return meridiem$1;hasRequiredMeridiem$1=1;const e=requireDatepart$1();return meridiem$1=class extends e{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}},meridiem$1}function requireDay$1(){if(hasRequiredDay$1)return day$1;hasRequiredDay$1=1;const e=requireDatepart$1();return day$1=class extends e{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(n=e,1==(n%=10)?"st":2===n?"nd":3===n?"rd":"th"):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e;var n}},day$1}function requireHours$1(){if(hasRequiredHours$1)return hours$1;hasRequiredHours$1=1;const e=requireDatepart$1();return hours$1=class extends e{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}},hours$1}function requireMilliseconds$1(){if(hasRequiredMilliseconds$1)return milliseconds$1;hasRequiredMilliseconds$1=1;const e=requireDatepart$1();return milliseconds$1=class extends e{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}}function requireMinutes$1(){if(hasRequiredMinutes$1)return minutes$1;hasRequiredMinutes$1=1;const e=requireDatepart$1();return minutes$1=class extends e{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}}function requireMonth$1(){if(hasRequiredMonth$1)return month$1;hasRequiredMonth$1=1;const e=requireDatepart$1();return month$1=class extends e{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}},month$1}function requireSeconds$1(){if(hasRequiredSeconds$1)return seconds$1;hasRequiredSeconds$1=1;const e=requireDatepart$1();return seconds$1=class extends e{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}}function requireYear$1(){if(hasRequiredYear$1)return year$1;hasRequiredYear$1=1;const e=requireDatepart$1();return year$1=class extends e{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}},year$1}function requireDateparts$1(){return hasRequiredDateparts$1?dateparts$1:(hasRequiredDateparts$1=1,dateparts$1={DatePart:requireDatepart$1(),Meridiem:requireMeridiem$1(),Day:requireDay$1(),Hours:requireHours$1(),Milliseconds:requireMilliseconds$1(),Minutes:requireMinutes$1(),Month:requireMonth$1(),Seconds:requireSeconds$1(),Year:requireYear$1()})}function requireDate$1(){if(hasRequiredDate$1)return date$1;function e(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=t.apply(n,r);function a(t){e(s,i,o,a,c,"next",t)}function c(t){e(s,i,o,a,c,"throw",t)}a(void 0)}))}}hasRequiredDate$1=1;const n=requireKleur(),r=requirePrompt$1(),i=requireUtil$4(),o=i.style,s=i.clear,a=i.figures,c=requireSrc$6(),l=c.erase,u=c.cursor,d=requireDateparts$1(),p=d.DatePart,f=d.Meridiem,_=d.Day,m=d.Hours,h=d.Milliseconds,g=d.Minutes,A=d.Month,y=d.Seconds,v=d.Year,b=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,C={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new _(e),3:e=>new A(e),4:e=>new v(e),5:e=>new f(e),6:e=>new m(e),7:e=>new g(e),8:e=>new y(e),9:e=>new h(e)},E={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};return date$1=class extends r{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(E,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=s("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=b.exec(e);){let e=t.shift(),n=t.findIndex((e=>null!=e));this.parts.push(n in C?C[n]({token:t[n]||e,date:this.date,parts:this.parts,locales:this.locales}):t[n]||e)}let n=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...n),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof p))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return t((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return t((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof p))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(u.hide):this.out.write(s(this.outputText,this.out.columns)),super.render(),this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(!1),this.parts.reduce(((e,t,r)=>e.concat(r!==this.cursor||this.done?t:n.cyan().underline(t.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":a.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(l.line+u.to(0)+this.outputText))}},date$1}function requireNumber$1(){if(hasRequiredNumber$1)return number$1;function e(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=t.apply(n,r);function a(t){e(s,i,o,a,c,"next",t)}function c(t){e(s,i,o,a,c,"throw",t)}a(void 0)}))}}hasRequiredNumber$1=1;const n=requireKleur(),r=requirePrompt$1(),i=requireSrc$6(),o=i.cursor,s=i.erase,a=requireUtil$4(),c=a.style,l=a.figures,u=a.clear,d=a.lines,p=/[0-9]/,f=e=>void 0!==e,_=(e,t)=>{let n=Math.pow(10,t);return Math.round(e*n)/n};return number$1=class extends r{constructor(e={}){super(e),this.transform=c.render(e.style),this.msg=e.message,this.initial=f(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=f(e.min)?e.min:-1/0,this.max=f(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){e||0===e?(this.placeholder=!1,this.rendered=this.transform.render(`${_(e,this.round)}`),this._value=_(e,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||p.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return t((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return t((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();let t=e.value;e.value=""!==t?t:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",""!==this.value&&this.value1e3&&(this.typed=""),this.typed+=e,this.lastHit=n,this.color="cyan","."===e)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.valuee+`\n${r?" ":l.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore))}},number$1}function requireMultiselect$1(){if(hasRequiredMultiselect$1)return multiselect$1;hasRequiredMultiselect$1=1;const e=requireKleur(),t=requireSrc$6().cursor,n=requirePrompt$1(),r=requireUtil$4(),i=r.clear,o=r.figures,s=r.style,a=r.wrap,c=r.entriesToDisplay;return multiselect$1=class extends n{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=i("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.lengthe.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${o.arrowUp}/${o.arrowDown}: Highlight option\n ${o.arrowLeft}/${o.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,n,r,i){const s=(n.selected?e.green(o.radioOn):o.radioOff)+" "+i+" ";let c,l;return n.disabled?c=t===r?e.gray().underline(n.title):e.strikethrough().gray(n.title):(c=t===r?e.cyan().underline(n.title):n.title,t===r&&n.description&&(l=` - ${n.description}`,(s.length+c.length+l.length>=this.out.columns||n.description.split(/\r?\n/).length>1)&&(l="\n"+a(n.description,{margin:s.length,width:this.out.columns})))),s+c+e.gray(l||"")}paginateOptions(t){if(0===t.length)return e.red("No matches for this query.");let n,r=c(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,a=[];for(let e=i;e0?o.arrowUp:e===s-1&&se.selected)).map((e=>e.title)).join(", ");const t=[e.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(e.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(t.hide),super.render();let n=[s.symbol(this.done,this.aborted),e.bold(this.msg),s.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(n+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),n+=this.renderOptions(this.value),this.out.write(this.clear+n),this.clear=i(n,this.out.columns)}},multiselect$1}function requireAutocomplete$1(){if(hasRequiredAutocomplete$1)return autocomplete$1;function e(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}hasRequiredAutocomplete$1=1;const t=requireKleur(),n=requirePrompt$1(),r=requireSrc$6(),i=r.erase,o=r.cursor,s=requireUtil$4(),a=s.style,c=s.clear,l=s.figures,u=s.wrap,d=s.entriesToDisplay,p=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),f=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);return autocomplete$1=class extends n{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const n=e.findIndex((e=>e.value===t||e.title===t));return n>-1?n:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=a.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=c("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=p(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(t){var n,r=this;return(n=function*(){const e=r.completing=r.suggest(r.input,r.choices),n=yield e;if(r.completing!==e)return;r.suggestions=n.map(((e,t,n)=>({title:f(n,t),value:p(n,t),description:e.description}))),r.completing=!1;const i=Math.max(n.length-1,0);r.moveSelect(Math.min(i,r.select)),t&&t()},function(){var t=this,r=arguments;return new Promise((function(i,o){var s=n.apply(t,r);function a(t){e(s,i,o,a,c,"next",t)}function c(t){e(s,i,o,a,c,"throw",t)}a(void 0)}))})()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){let n=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor);this.input=`${n}${e}${r}`,this.cursor=n.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,n,r,i){let o,s=r?l.arrowUp:i?l.arrowDown:" ",a=n?t.cyan().underline(e.title):e.title;return s=(n?t.cyan(l.pointer)+" ":" ")+s,e.description&&(o=` - ${e.description}`,(s.length+a.length+o.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(o="\n"+u(e.description,{margin:3,width:this.out.columns}))),s+" "+a+t.gray(o||"")}render(){if(this.closed)return;this.firstRender?this.out.write(o.hide):this.out.write(c(this.outputText,this.out.columns)),super.render();let e=d(this.select,this.choices.length,this.limit),n=e.startIndex,r=e.endIndex;if(this.outputText=[a.symbol(this.done,this.aborted,this.exited),t.bold(this.msg),a.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const e=this.suggestions.slice(n,r).map(((e,t)=>this.renderOption(e,this.select===t+n,0===t&&n>0,t+n===r-1&&re.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||(!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${s.arrowUp}/${s.arrowDown}: Highlight option\n ${s.arrowLeft}/${s.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:e.gray("Enter something to filter")}\n`}renderOption(t,n,r){let i;return i=n.disabled?t===r?e.gray().underline(n.title):e.strikethrough().gray(n.title):t===r?e.cyan().underline(n.title):n.title,(n.selected?e.green(s.radioOn):s.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const t=[e.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(e.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(t.hide),super.render();let n=[o.symbol(this.done,this.aborted),e.bold(this.msg),o.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(n+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),n+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+n),this.clear=i(n,this.out.columns)}},autocompleteMultiselect$1}function requireConfirm$1(){if(hasRequiredConfirm$1)return confirm$1;hasRequiredConfirm$1=1;const e=requireKleur(),t=requirePrompt$1(),n=requireUtil$4(),r=n.style,i=n.clear,o=requireSrc$6(),s=o.erase,a=o.cursor;return confirm$1=class extends t{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(a.hide):this.out.write(i(this.outputText,this.out.columns)),super.render(),this.outputText=[r.symbol(this.done,this.aborted),e.bold(this.msg),r.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:e.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(s.line+a.to(0)+this.outputText))}}}function requireElements$1(){return hasRequiredElements$1?elements$1:(hasRequiredElements$1=1,elements$1={TextPrompt:requireText$2(),SelectPrompt:requireSelect$1(),TogglePrompt:requireToggle$1(),DatePrompt:requireDate$1(),NumberPrompt:requireNumber$1(),MultiselectPrompt:requireMultiselect$1(),AutocompletePrompt:requireAutocomplete$1(),AutocompleteMultiselectPrompt:requireAutocompleteMultiselect$1(),ConfirmPrompt:requireConfirm$1()})}function requirePrompts$2(){return hasRequiredPrompts$2||(hasRequiredPrompts$2=1,function(){const e=prompts$3,t=requireElements$1(),n=e=>e;function r(e,r,i={}){return new Promise(((o,s)=>{const a=new t[e](r),c=i.onAbort||n,l=i.onSubmit||n,u=i.onExit||n;a.on("state",r.onState||n),a.on("submit",(e=>o(l(e)))),a.on("exit",(e=>o(u(e)))),a.on("abort",(e=>s(c(e))))}))}e.text=e=>r("TextPrompt",e),e.password=t=>(t.style="password",e.text(t)),e.invisible=t=>(t.style="invisible",e.text(t)),e.number=e=>r("NumberPrompt",e),e.date=e=>r("DatePrompt",e),e.confirm=e=>r("ConfirmPrompt",e),e.list=e=>{const t=e.separator||",";return r("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},e.toggle=e=>r("TogglePrompt",e),e.select=e=>r("SelectPrompt",e),e.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return r("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},e.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return r("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const i=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));e.autocomplete=e=>(e.suggest=e.suggest||i,e.choices=[].concat(e.choices||[]),r("AutocompletePrompt",e))}()),prompts$3}function requireDist$6(){if(hasRequiredDist$6)return dist$6;function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw s}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{};function u(){return d.apply(this,arguments)}function d(){return d=s((function*(e=[],{onSubmit:n=l,onCancel:i=l}={}){const o={},d=u._override||{};let f,_,m,h,g,A;e=[].concat(e);const y=function(){var e=s((function*(e,t,n=!1){if(n||!e.validate||!0===e.validate(t))return e.format?yield e.format(t,o):t}));return function(t,n){return e.apply(this,arguments)}}();var v,b=r(e);try{for(b.s();!(v=b.n()).done;){_=v.value;var C=_;if(h=C.name,g=C.type,"function"==typeof g&&(g=yield g(f,t({},o),_),_.type=g),g){for(let e in _){if(c.includes(e))continue;let n=_[e];_[e]="function"==typeof n?yield n(f,t({},o),A):n}if(A=_,"string"!=typeof _.message)throw new Error("prompt message is required");var E=_;if(h=E.name,g=E.type,void 0===a[g])throw new Error(`prompt type (${g}) is not defined`);if(void 0===d[_.name]||(f=yield y(_,d[_.name]),void 0===f)){try{f=u._injected?p(u._injected,_.initial):yield a[g](_),o[h]=f=yield y(_,f,!0),m=yield n(_,f,o)}catch(e){m=!(yield i(_,o))}if(m)return o}else o[h]=f}}}catch(e){b.e(e)}finally{b.f()}return o})),d.apply(this,arguments)}function p(e,t){const n=e.shift();if(n instanceof Error)throw n;return void 0===n?t:n}return dist$6=Object.assign(u,{prompt:u,prompts:a,inject:function(e){u._injected=(u._injected||[]).concat(e)},override:function(e){u._override=Object.assign({},e)}})}var prompts$2={},action,hasRequiredAction,strip,hasRequiredStrip,clear,hasRequiredClear,figures_1,hasRequiredFigures,style,hasRequiredStyle,lines,hasRequiredLines,wrap,hasRequiredWrap,entriesToDisplay,hasRequiredEntriesToDisplay,util$3,hasRequiredUtil$3,prompt,hasRequiredPrompt,text$1,hasRequiredText$1,select,hasRequiredSelect,toggle,hasRequiredToggle,datepart,hasRequiredDatepart,meridiem,hasRequiredMeridiem,day,hasRequiredDay,hours,hasRequiredHours,milliseconds,hasRequiredMilliseconds,minutes,hasRequiredMinutes,month,hasRequiredMonth,seconds,hasRequiredSeconds,year,hasRequiredYear,dateparts,hasRequiredDateparts,date,hasRequiredDate,number,hasRequiredNumber,multiselect,hasRequiredMultiselect,autocomplete,hasRequiredAutocomplete,autocompleteMultiselect,hasRequiredAutocompleteMultiselect,confirm,hasRequiredConfirm,elements,hasRequiredElements,hasRequiredPrompts$1,lib$f,hasRequiredLib$e,prompts$1,hasRequiredPrompts;function requireAction(){return hasRequiredAction?action:(hasRequiredAction=1,action=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}})}function requireStrip(){return hasRequiredStrip||(hasRequiredStrip=1,strip=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(t,"g");return"string"==typeof e?e.replace(n,""):e}),strip}function requireClear(){if(hasRequiredClear)return clear;hasRequiredClear=1;const e=requireStrip(),{erase:t,cursor:n}=requireSrc$6(),r=t=>[...e(t)].length;return clear=function(e,i){if(!i)return t.line+n.to(0);let o=0;const s=e.split(/\r?\n/);for(let e of s)o+=1+Math.floor(Math.max(r(e)-1,0)/i);return t.lines(o)},clear}function requireFigures(){if(hasRequiredFigures)return figures_1;hasRequiredFigures=1;const e={arrowUp:"โ†‘",arrowDown:"โ†“",arrowLeft:"โ†",arrowRight:"โ†’",radioOn:"โ—‰",radioOff:"โ—ฏ",tick:"โœ”",cross:"โœ–",ellipsis:"โ€ฆ",pointerSmall:"โ€บ",line:"โ”€",pointer:"โฏ"},t={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"โˆš",cross:"ร—",ellipsis:"...",pointerSmall:"ยป",line:"โ”€",pointer:">"},n="win32"===process.platform?t:e;return figures_1=n}function requireStyle(){if(hasRequiredStyle)return style;hasRequiredStyle=1;const e=requireKleur(),t=requireFigures(),n=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"๐Ÿ˜ƒ".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),r=Object.freeze({aborted:e.red(t.cross),done:e.green(t.tick),exited:e.yellow(t.cross),default:e.cyan("?")});return style={styles:n,render:e=>n[e]||n.default,symbols:r,symbol:(e,t,n)=>t?r.aborted:n?r.exited:e?r.done:r.default,delimiter:n=>e.gray(n?t.ellipsis:t.pointerSmall),item:(n,r)=>e.gray(n?r?t.pointerSmall:"+":t.line)},style}function requireLines(){if(hasRequiredLines)return lines;hasRequiredLines=1;const e=requireStrip();return lines=function(t,n){let r=String(e(t)||"").split(/\r?\n/);return n?r.map((e=>Math.ceil(e.length/n))).reduce(((e,t)=>e+t)):r.length}}function requireWrap(){return hasRequiredWrap||(hasRequiredWrap=1,wrap=(e,t={})=>{const n=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",r=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+n.length>=r||e[e.length-1].length+t.length+1{n=n||t;let r=Math.min(t-n,e-Math.floor(n/2));return r<0&&(r=0),{startIndex:r,endIndex:Math.min(r+n,t)}})}function requireUtil$3(){return hasRequiredUtil$3?util$3:(hasRequiredUtil$3=1,util$3={action:requireAction(),clear:requireClear(),style:requireStyle(),strip:requireStrip(),figures:requireFigures(),lines:requireLines(),wrap:requireWrap(),entriesToDisplay:requireEntriesToDisplay()})}function requirePrompt(){if(hasRequiredPrompt)return prompt;hasRequiredPrompt=1;const e=require$$0$m,{action:t}=requireUtil$3(),n=require$$0$c,{beep:r,cursor:i}=requireSrc$6(),o=requireKleur();return prompt=class extends n{constructor(n={}){super(),this.firstRender=!0,this.in=n.stdin||process.stdin,this.out=n.stdout||process.stdout,this.onRender=(n.onRender||(()=>{})).bind(this);const r=e.createInterface({input:this.in,escapeCodeTimeout:50});e.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);const o=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,n)=>{let r=t(n,o);!1===r?this._&&this._(e,n):"function"==typeof this[r]?this[r](n):this.bell()};this.close=()=>{this.out.write(i.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(r)}render(){this.onRender(o),this.firstRender&&(this.firstRender=!1)}},prompt}function requireText$1(){if(hasRequiredText$1)return text$1;hasRequiredText$1=1;const e=requireKleur(),t=requirePrompt(),{erase:n,cursor:r}=requireSrc$6(),{style:i,clear:o,lines:s,figures:a}=requireUtil$3();return text$1=class extends t{constructor(e={}){super(e),this.transform=i.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=o("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=e.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error)return this.red=!0,this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let n=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor);this.value=`${n}${e}${r}`,this.red=!1,this.cursor=this.placeholder?0:n.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(r.down(s(this.outputError,this.out.columns)-1)+o(this.outputError,this.out.columns)),this.out.write(o(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[i.symbol(this.done,this.aborted),e.bold(this.msg),i.delimiter(this.done),this.red?e.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,n,r)=>t+`\n${r?" ":a.pointerSmall} ${e.red().italic(n)}`),"")),this.out.write(n.line+r.to(0)+this.outputText+r.save+this.outputError+r.restore+r.move(this.cursorOffset,0)))}},text$1}function requireSelect(){if(hasRequiredSelect)return select;hasRequiredSelect=1;const e=requireKleur(),t=requirePrompt(),{style:n,clear:r,figures:i,wrap:o,entriesToDisplay:s}=requireUtil$3(),{cursor:a}=requireSrc$6();return select=class extends t{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=r("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,t){if(" "===e)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(a.hide):this.out.write(r(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:c}=s(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[n.symbol(this.done,this.aborted),e.bold(this.msg),n.delimiter(!1),this.done?this.selection.title:this.selection.disabled?e.yellow(this.warn):e.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let n=t;n0?i.arrowUp:n===c-1&&c=this.out.columns||l.description.split(/\r?\n/).length>1)&&(a="\n"+o(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${r}${e.gray(a)}\n`}}this.out.write(this.outputText)}},select}function requireToggle(){if(hasRequiredToggle)return toggle;hasRequiredToggle=1;const e=requireKleur(),t=requirePrompt(),{style:n,clear:r}=requireUtil$3(),{cursor:i,erase:o}=requireSrc$6();return toggle=class extends t{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(i.hide):this.out.write(r(this.outputText,this.out.columns)),super.render(),this.outputText=[n.symbol(this.done,this.aborted),e.bold(this.msg),n.delimiter(this.done),this.value?this.inactive:e.cyan().underline(this.inactive),e.gray("/"),this.value?e.cyan().underline(this.active):this.active].join(" "),this.out.write(o.line+i.to(0)+this.outputText))}}}function requireDatepart(){if(hasRequiredDatepart)return datepart;hasRequiredDatepart=1;class e{constructor({token:e,date:t,parts:n,locales:r}){this.token=e,this.date=t||new Date,this.parts=n||[this],this.locales=r||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((n,r)=>r>t&&n instanceof e))}setTo(e){}prev(){let t=[].concat(this.parts).reverse();const n=t.indexOf(this);return t.find(((t,r)=>r>n&&t instanceof e))}toString(){return String(this.date)}}return datepart=e}function requireMeridiem(){if(hasRequiredMeridiem)return meridiem;hasRequiredMeridiem=1;const e=requireDatepart();return meridiem=class extends e{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}}function requireDay(){if(hasRequiredDay)return day;hasRequiredDay=1;const e=requireDatepart();return day=class extends e{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(n=e,1==(n%=10)?"st":2===n?"nd":3===n?"rd":"th"):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e;var n}},day}function requireHours(){if(hasRequiredHours)return hours;hasRequiredHours=1;const e=requireDatepart();return hours=class extends e{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}}}function requireMilliseconds(){if(hasRequiredMilliseconds)return milliseconds;hasRequiredMilliseconds=1;const e=requireDatepart();return milliseconds=class extends e{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}}function requireMinutes(){if(hasRequiredMinutes)return minutes;hasRequiredMinutes=1;const e=requireDatepart();return minutes=class extends e{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}}function requireMonth(){if(hasRequiredMonth)return month;hasRequiredMonth=1;const e=requireDatepart();return month=class extends e{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}}}function requireSeconds(){if(hasRequiredSeconds)return seconds;hasRequiredSeconds=1;const e=requireDatepart();return seconds=class extends e{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}}function requireYear(){if(hasRequiredYear)return year;hasRequiredYear=1;const e=requireDatepart();return year=class extends e{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}}}function requireDateparts(){return hasRequiredDateparts?dateparts:(hasRequiredDateparts=1,dateparts={DatePart:requireDatepart(),Meridiem:requireMeridiem(),Day:requireDay(),Hours:requireHours(),Milliseconds:requireMilliseconds(),Minutes:requireMinutes(),Month:requireMonth(),Seconds:requireSeconds(),Year:requireYear()})}function requireDate(){if(hasRequiredDate)return date;hasRequiredDate=1;const e=requireKleur(),t=requirePrompt(),{style:n,clear:r,figures:i}=requireUtil$3(),{erase:o,cursor:s}=requireSrc$6(),{DatePart:a,Meridiem:c,Day:l,Hours:u,Milliseconds:d,Minutes:p,Month:f,Seconds:_,Year:m}=requireDateparts(),h=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,g={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new l(e),3:e=>new f(e),4:e=>new m(e),5:e=>new c(e),6:e=>new u(e),7:e=>new p(e),8:e=>new _(e),9:e=>new d(e)},A={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};return date=class extends t{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(A,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=r("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=h.exec(e);){let e=t.shift(),n=t.findIndex((e=>null!=e));this.parts.push(n in g?g[n]({token:t[n]||e,date:this.date,parts:this.parts,locales:this.locales}):t[n]||e)}let n=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...n),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof a))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof a))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(s.hide):this.out.write(r(this.outputText,this.out.columns)),super.render(),this.outputText=[n.symbol(this.done,this.aborted),e.bold(this.msg),n.delimiter(!1),this.parts.reduce(((t,n,r)=>t.concat(r!==this.cursor||this.done?n:e.cyan().underline(n.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,n,r)=>t+`\n${r?" ":i.pointerSmall} ${e.red().italic(n)}`),"")),this.out.write(o.line+s.to(0)+this.outputText))}},date}function requireNumber(){if(hasRequiredNumber)return number;hasRequiredNumber=1;const e=requireKleur(),t=requirePrompt(),{cursor:n,erase:r}=requireSrc$6(),{style:i,figures:o,clear:s,lines:a}=requireUtil$3(),c=/[0-9]/,l=e=>void 0!==e,u=(e,t)=>{let n=Math.pow(10,t);return Math.round(e*n)/n};return number=class extends t{constructor(e={}){super(e),this.transform=i.render(e.style),this.msg=e.message,this.initial=l(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=l(e.min)?e.min:-1/0,this.max=l(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${u(t,this.round)}`),this._value=u(t,this.round)):(this.placeholder=!0,this.rendered=e.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||c.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let e=this.value;this.value=""!==e?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",""!==this.value&&this.value1e3&&(this.typed=""),this.typed+=e,this.lastHit=n,this.color="cyan","."===e)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.valuet+`\n${r?" ":o.pointerSmall} ${e.red().italic(n)}`),"")),this.out.write(r.line+n.to(0)+this.outputText+n.save+this.outputError+n.restore))}},number}function requireMultiselect(){if(hasRequiredMultiselect)return multiselect;hasRequiredMultiselect=1;const e=requireKleur(),{cursor:t}=requireSrc$6(),n=requirePrompt(),{clear:r,figures:i,style:o,wrap:s,entriesToDisplay:a}=requireUtil$3();return multiselect=class extends n{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=r("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.lengthe.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${i.arrowUp}/${i.arrowDown}: Highlight option\n ${i.arrowLeft}/${i.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,n,r,o){const a=(n.selected?e.green(i.radioOn):i.radioOff)+" "+o+" ";let c,l;return n.disabled?c=t===r?e.gray().underline(n.title):e.strikethrough().gray(n.title):(c=t===r?e.cyan().underline(n.title):n.title,t===r&&n.description&&(l=` - ${n.description}`,(a.length+c.length+l.length>=this.out.columns||n.description.split(/\r?\n/).length>1)&&(l="\n"+s(n.description,{margin:a.length,width:this.out.columns})))),a+c+e.gray(l||"")}paginateOptions(t){if(0===t.length)return e.red("No matches for this query.");let n,{startIndex:r,endIndex:o}=a(this.cursor,t.length,this.optionsPerPage),s=[];for(let e=r;e0?i.arrowUp:e===o-1&&oe.selected)).map((e=>e.title)).join(", ");const t=[e.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(e.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(t.hide),super.render();let n=[o.symbol(this.done,this.aborted),e.bold(this.msg),o.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(n+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),n+=this.renderOptions(this.value),this.out.write(this.clear+n),this.clear=r(n,this.out.columns)}},multiselect}function requireAutocomplete(){if(hasRequiredAutocomplete)return autocomplete;hasRequiredAutocomplete=1;const e=requireKleur(),t=requirePrompt(),{erase:n,cursor:r}=requireSrc$6(),{style:i,clear:o,figures:s,wrap:a,entriesToDisplay:c}=requireUtil$3(),l=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),u=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);return autocomplete=class extends t{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const n=e.findIndex((e=>e.value===t||e.title===t));return n>-1?n:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=i.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=o("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=l(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices),n=await t;if(this.completing!==t)return;this.suggestions=n.map(((e,t,n)=>({title:u(n,t),value:l(n,t),description:e.description}))),this.completing=!1;const r=Math.max(n.length-1,0);this.moveSelect(Math.min(r,this.select)),e&&e()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){let n=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor);this.input=`${n}${e}${r}`,this.cursor=n.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(t,n,r,i){let o,c=r?s.arrowUp:i?s.arrowDown:" ",l=n?e.cyan().underline(t.title):t.title;return c=(n?e.cyan(s.pointer)+" ":" ")+c,t.description&&(o=` - ${t.description}`,(c.length+l.length+o.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(o="\n"+a(t.description,{margin:3,width:this.out.columns}))),c+" "+l+e.gray(o||"")}render(){if(this.closed)return;this.firstRender?this.out.write(r.hide):this.out.write(o(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:s}=c(this.select,this.choices.length,this.limit);if(this.outputText=[i.symbol(this.done,this.aborted,this.exited),e.bold(this.msg),i.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const n=this.suggestions.slice(t,s).map(((e,n)=>this.renderOption(e,this.select===n+t,0===n&&t>0,n+t===s-1&&se.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||(!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${o.arrowUp}/${o.arrowDown}: Highlight option\n ${o.arrowLeft}/${o.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:e.gray("Enter something to filter")}\n`}renderOption(t,n,r){let i;return i=n.disabled?t===r?e.gray().underline(n.title):e.strikethrough().gray(n.title):t===r?e.cyan().underline(n.title):n.title,(n.selected?e.green(o.radioOn):o.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const t=[e.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(e.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(t.hide),super.render();let n=[i.symbol(this.done,this.aborted),e.bold(this.msg),i.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(n+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),n+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+n),this.clear=r(n,this.out.columns)}},autocompleteMultiselect}function requireConfirm(){if(hasRequiredConfirm)return confirm;hasRequiredConfirm=1;const e=requireKleur(),t=requirePrompt(),{style:n,clear:r}=requireUtil$3(),{erase:i,cursor:o}=requireSrc$6();return confirm=class extends t{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(o.hide):this.out.write(r(this.outputText,this.out.columns)),super.render(),this.outputText=[n.symbol(this.done,this.aborted),e.bold(this.msg),n.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:e.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(i.line+o.to(0)+this.outputText))}}}function requireElements(){return hasRequiredElements?elements:(hasRequiredElements=1,elements={TextPrompt:requireText$1(),SelectPrompt:requireSelect(),TogglePrompt:requireToggle(),DatePrompt:requireDate(),NumberPrompt:requireNumber(),MultiselectPrompt:requireMultiselect(),AutocompletePrompt:requireAutocomplete(),AutocompleteMultiselectPrompt:requireAutocompleteMultiselect(),ConfirmPrompt:requireConfirm()})}function requirePrompts$1(){return hasRequiredPrompts$1||(hasRequiredPrompts$1=1,function(){const e=prompts$2,t=requireElements(),n=e=>e;function r(e,r,i={}){return new Promise(((o,s)=>{const a=new t[e](r),c=i.onAbort||n,l=i.onSubmit||n,u=i.onExit||n;a.on("state",r.onState||n),a.on("submit",(e=>o(l(e)))),a.on("exit",(e=>o(u(e)))),a.on("abort",(e=>s(c(e))))}))}e.text=e=>r("TextPrompt",e),e.password=t=>(t.style="password",e.text(t)),e.invisible=t=>(t.style="invisible",e.text(t)),e.number=e=>r("NumberPrompt",e),e.date=e=>r("DatePrompt",e),e.confirm=e=>r("ConfirmPrompt",e),e.list=e=>{const t=e.separator||",";return r("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},e.toggle=e=>r("TogglePrompt",e),e.select=e=>r("SelectPrompt",e),e.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return r("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},e.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return r("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const i=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));e.autocomplete=e=>(e.suggest=e.suggest||i,e.choices=[].concat(e.choices||[]),r("AutocompletePrompt",e))}()),prompts$2}function requireLib$e(){if(hasRequiredLib$e)return lib$f;hasRequiredLib$e=1;const e=requirePrompts$1(),t=["suggest","format","onState","validate","onRender","type"],n=()=>{};async function r(o=[],{onSubmit:s=n,onCancel:a=n}={}){const c={},l=r._override||{};let u,d,p,f,_,m;o=[].concat(o);const h=async(e,t,n=!1)=>{if(n||!e.validate||!0===e.validate(t))return e.format?await e.format(t,c):t};for(d of o)if(({name:f,type:_}=d),"function"==typeof _&&(_=await _(u,{...c},d),d.type=_),_){for(let e in d){if(t.includes(e))continue;let n=d[e];d[e]="function"==typeof n?await n(u,{...c},m):n}if(m=d,"string"!=typeof d.message)throw new Error("prompt message is required");if(({name:f,type:_}=d),void 0===e[_])throw new Error(`prompt type (${_}) is not defined`);if(void 0===l[d.name]||(u=await h(d,l[d.name]),void 0===u)){try{u=r._injected?i(r._injected,d.initial):await e[_](d),c[f]=u=await h(d,u,!0),p=await s(d,u,c)}catch(e){p=!await a(d,c)}if(p)return c}else c[f]=u}return c}function i(e,t){const n=e.shift();if(n instanceof Error)throw n;return void 0===n?t:n}return lib$f=Object.assign(r,{prompt:r,prompts:e,inject:function(e){r._injected=(r._injected||[]).concat(e)},override:function(e){r._override=Object.assign({},e)}})}function requirePrompts(){if(hasRequiredPrompts)return prompts$1;return hasRequiredPrompts=1,prompts$1=function(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,n=process.versions.node.split(".").map(Number);for(;te[t])return!1;if(e[t]>n[t])return!0}return!1}("8.6.0")?requireDist$6():requireLib$e(),prompts$1}var promptsExports=requirePrompts(),prompts=getDefaultExportFromCjs(promptsExports),dist$5={},src$5={},hasRequiredSrc$5,hasRequiredDist$5;function requireSrc$5(){return hasRequiredSrc$5||(hasRequiredSrc$5=1,function(e){var t=src$5&&src$5.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});const n=require$$0$7,r=t(requireSrc$8()).default("@kwsites/file-exists");e.exists=function(t,i=e.READABLE){return function(e,t,i){r("checking %s",e);try{const o=n.statSync(e);return o.isFile()&&t?(r("[OK] path represents a file"),!0):o.isDirectory()&&i?(r("[OK] path represents a directory"),!0):(r("[FAIL] path represents something other than a file or directory"),!1)}catch(e){if("ENOENT"===e.code)return r("[FAIL] path is not accessible: %o",e),!1;throw r("[FATAL] %o",e),e}}(t,(i&e.FILE)>0,(i&e.FOLDER)>0)},e.FILE=1,e.FOLDER=2,e.READABLE=e.FILE+e.FOLDER}(src$5)),src$5}function requireDist$5(){return hasRequiredDist$5||(hasRequiredDist$5=1,e=dist$5,Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(requireSrc$5())),dist$5;var e}var distExports$2=requireDist$5(),dist$4={},hasRequiredDist$4;function requireDist$4(){if(hasRequiredDist$4)return dist$4;function e(){let e,t,n="pending";return{promise:new Promise(((n,r)=>{e=n,t=r})),done(t){"pending"===n&&(n="resolved",e(t))},fail(e){"pending"===n&&(n="rejected",t(e))},get fulfilled(){return"pending"!==n},get status(){return n}}}return hasRequiredDist$4=1,Object.defineProperty(dist$4,"__esModule",{value:!0}),dist$4.createDeferred=dist$4.deferred=void 0,dist$4.deferred=e,dist$4.createDeferred=e,dist$4.default=e,dist$4}var distExports$1=requireDist$4(),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__esm=(e,t)=>function(){return e&&(t=(0,e[__getOwnPropNames(e)[0]])(e=0)),t},__commonJS=(e,t)=>function(){return t||(0,e[__getOwnPropNames(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var n in t)__defProp(e,n,{get:t[n],enumerable:!0})},__copyProps=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of __getOwnPropNames(t))__hasOwnProp.call(e,i)||i===n||__defProp(e,i,{get:()=>t[i],enumerable:!(r=__getOwnPropDesc(t,i))||r.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__async=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{a(n.next(e))}catch(e){i(e)}},s=e=>{try{a(n.throw(e))}catch(e){i(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,s);a((n=n.apply(e,t)).next())})),cache;function pathspec(...e){const t=new String(e);return cache.set(t,e),t}function isPathSpec(e){return e instanceof String&&cache.has(e)}function toPaths(e){return cache.get(e)||[]}var init_pathspec=__esm({"src/lib/args/pathspec.ts"(){cache=new WeakMap}}),GitError,init_git_error=__esm({"src/lib/errors/git-error.ts"(){GitError=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),GitResponseError,init_git_response_error=__esm({"src/lib/errors/git-response-error.ts"(){init_git_error(),GitResponseError=class extends GitError{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),TaskConfigurationError,init_task_configuration_error=__esm({"src/lib/errors/task-configuration-error.ts"(){init_git_error(),TaskConfigurationError=class extends GitError{constructor(e){super(void 0,e)}}}}),NULL,NOOP$1,objectToString;function asFunction(e){return"function"==typeof e?e:NOOP$1}function isUserFunction(e){return"function"==typeof e&&e!==NOOP$1}function splitOn(e,t){const n=e.indexOf(t);return n<=0?[e,""]:[e.substr(0,n),e.substr(n+1)]}function first(e,t=0){return isArrayLike(e)&&e.length>t?e[t]:void 0}function last(e,t=0){if(isArrayLike(e)&&e.length>t)return e[e.length-1-t]}function isArrayLike(e){return!(!e||"number"!=typeof e.length)}function toLinesWithContent(e="",t=!0,n="\n"){return e.split(n).reduce(((e,n)=>{const r=t?n.trim():n;return r&&e.push(r),e}),[])}function forEachLineWithContent(e,t){return toLinesWithContent(e,!0).map((e=>t(e)))}function folderExists(e){return distExports$2.exists(e,distExports$2.FOLDER)}function append(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function including(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function remove(e,t){if(Array.isArray(e)){const n=e.indexOf(t);n>=0&&e.splice(n,1)}else e.delete(t);return t}function asArray(e){return Array.isArray(e)?e:[e]}function asCamelCase(e){return e.replace(/[\s-]+(.)/g,((e,t)=>t.toUpperCase()))}function asStringArray(e){return asArray(e).map(String)}function asNumber(e,t=0){if(null==e)return t;const n=parseInt(e,10);return isNaN(n)?t:n}function prefixedArray(e,t){const n=[];for(let r=0,i=e.length;rt in e?{[t]:e[t]}:{})))}function delay(e=0){return new Promise((t=>setTimeout(t,e)))}function orVoid(e){if(!1!==e)return e}var init_util=__esm({"src/lib/utils/util.ts"(){NULL="\0",NOOP$1=()=>{},objectToString=Object.prototype.toString.call.bind(Object.prototype.toString)}}),filterArray,filterString,filterStringArray,filterStringOrStringArray,filterHasLength;function filterType(e,t,n){return t(e)?e:arguments.length>2?n:void 0}function filterPrimitives(e,t){const n=isPathSpec(e)?"string":typeof e;return/number|string|boolean/.test(n)&&(!t||!t.includes(n))}function filterPlainObject(e){return!!e&&"[object Object]"===objectToString(e)}function filterFunction(e){return"function"==typeof e}var init_argument_filters=__esm({"src/lib/utils/argument-filters.ts"(){init_util(),init_pathspec(),filterArray=e=>Array.isArray(e),filterString=e=>"string"==typeof e,filterStringArray=e=>Array.isArray(e)&&e.every(filterString),filterStringOrStringArray=e=>filterString(e)||Array.isArray(e)&&e.every(filterString),filterHasLength=e=>null!=e&&!"number|boolean|function".includes(typeof e)&&(Array.isArray(e)||"string"==typeof e||"number"==typeof e.length)}}),ExitCodes,init_exit_codes=__esm({"src/lib/utils/exit-codes.ts"(){ExitCodes=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.NOT_FOUND=-2]="NOT_FOUND",e[e.UNCLEAN=128]="UNCLEAN",e))(ExitCodes||{})}}),GitOutputStreams,init_git_output_streams=__esm({"src/lib/utils/git-output-streams.ts"(){GitOutputStreams=class{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}}),LineParser,RemoteLineParser,init_line_parser=__esm({"src/lib/utils/line-parser.ts"(){LineParser=class{constructor(e,t){this.matches=[],this.parse=(e,t)=>(this.resetMatches(),!!this._regExp.every(((t,n)=>this.addMatch(t,n,e(n))))&&!1!==this.useMatches(t,this.prepareMatches())),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}useMatches(e,t){throw new Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,n){const r=n&&e.exec(n);return r&&this.pushMatch(t,r),!!r}pushMatch(e,t){this.matches.push(...t.slice(1))}},RemoteLineParser=class extends LineParser{addMatch(e,t,n){return/^remote:\s/.test(String(n))&&super.addMatch(e,t,n)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}}),defaultOptions;function createInstanceConfig(...e){const t=process.cwd(),n=Object.assign(__spreadValues({baseDir:t},defaultOptions),...e.filter((e=>"object"==typeof e&&e)));return n.baseDir=n.baseDir||t,n.trimmed=!0===n.trimmed,n}var init_simple_git_options=__esm({"src/lib/utils/simple-git-options.ts"(){defaultOptions={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function appendTaskOptions(e,t=[]){return filterPlainObject(e)?Object.keys(e).reduce(((t,n)=>{const r=e[n];return isPathSpec(r)?t.push(r):filterPrimitives(r,["boolean"])?t.push(n+"="+r):t.push(n),t}),t):t}function getTrailingOptions(e,t=0,n=!1){const r=[];for(let n=0,i=t<0?e.length:t;n{for(let i=toLinesWithContent(n,r),o=0,s=i.length;o{if(!(o+e>=s))return i[o+e]};t.some((({parse:t})=>t(n,e)))}})),e}var init_task_parser=__esm({"src/lib/utils/task-parser.ts"(){init_util()}}),utils_exports={};__export(utils_exports,{ExitCodes:()=>ExitCodes,GitOutputStreams:()=>GitOutputStreams,LineParser:()=>LineParser,NOOP:()=>NOOP$1,NULL:()=>NULL,RemoteLineParser:()=>RemoteLineParser,append:()=>append,appendTaskOptions:()=>appendTaskOptions,asArray:()=>asArray,asCamelCase:()=>asCamelCase,asFunction:()=>asFunction,asNumber:()=>asNumber,asStringArray:()=>asStringArray,bufferToString:()=>bufferToString,callTaskParser:()=>callTaskParser,createInstanceConfig:()=>createInstanceConfig,delay:()=>delay,filterArray:()=>filterArray,filterFunction:()=>filterFunction,filterHasLength:()=>filterHasLength,filterPlainObject:()=>filterPlainObject,filterPrimitives:()=>filterPrimitives,filterString:()=>filterString,filterStringArray:()=>filterStringArray,filterStringOrStringArray:()=>filterStringOrStringArray,filterType:()=>filterType,first:()=>first,folderExists:()=>folderExists,forEachLineWithContent:()=>forEachLineWithContent,getTrailingOptions:()=>getTrailingOptions,including:()=>including,isUserFunction:()=>isUserFunction,last:()=>last,objectToString:()=>objectToString,orVoid:()=>orVoid,parseStringResponse:()=>parseStringResponse,pick:()=>pick,prefixedArray:()=>prefixedArray,remove:()=>remove,splitOn:()=>splitOn,toLinesWithContent:()=>toLinesWithContent,trailingFunctionArgument:()=>trailingFunctionArgument,trailingOptionsArgument:()=>trailingOptionsArgument});var init_utils=__esm({"src/lib/utils/index.ts"(){init_argument_filters(),init_exit_codes(),init_git_output_streams(),init_line_parser(),init_simple_git_options(),init_task_options(),init_task_parser(),init_util()}}),check_is_repo_exports={},CheckRepoActions,onError,parser;function checkIsRepoTask(e){switch(e){case"bare":return checkIsBareRepoTask();case"root":return checkIsRepoRootTask()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:onError,parser:parser}}function checkIsRepoRootTask(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:onError,parser:e=>/^\.(git)?$/.test(e.trim())}}function checkIsBareRepoTask(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:onError,parser:parser}}function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}__export(check_is_repo_exports,{CheckRepoActions:()=>CheckRepoActions,checkIsBareRepoTask:()=>checkIsBareRepoTask,checkIsRepoRootTask:()=>checkIsRepoRootTask,checkIsRepoTask:()=>checkIsRepoTask});var init_check_is_repo=__esm({"src/lib/tasks/check-is-repo.ts"(){init_utils(),CheckRepoActions=(e=>(e.BARE="bare",e.IN_TREE="tree",e.IS_REPO_ROOT="root",e))(CheckRepoActions||{}),onError=({exitCode:e},t,n,r)=>{if(128===e&&isNotRepoMessage(t))return n(Buffer.from("false"));r(t)},parser=e=>"true"===e.trim()}}),CleanResponse,removalRegexp,dryRunRemovalRegexp,isFolderRegexp;function cleanSummaryParser(e,t){const n=new CleanResponse(e),r=e?dryRunRemovalRegexp:removalRegexp;return toLinesWithContent(t).forEach((e=>{const t=e.replace(r,"");n.paths.push(t),(isFolderRegexp.test(t)?n.folders:n.files).push(t)})),n}var init_CleanSummary=__esm({"src/lib/responses/CleanSummary.ts"(){init_utils(),CleanResponse=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},removalRegexp=/^[a-z]+\s*/i,dryRunRemovalRegexp=/^[a-z]+\s+[a-z]+\s*/i,isFolderRegexp=/\/$/}}),task_exports={},EMPTY_COMMANDS;function adhocExecTask(e){return{commands:EMPTY_COMMANDS,format:"empty",parser:e}}function configurationErrorTask(e){return{commands:EMPTY_COMMANDS,format:"empty",parser(){throw"string"==typeof e?new TaskConfigurationError(e):e}}}function straightThroughStringTask(e,t=!1){return{commands:e,format:"utf-8",parser:e=>t?String(e).trim():e}}function straightThroughBufferTask(e){return{commands:e,format:"buffer",parser:e=>e}}function isBufferTask(e){return"buffer"===e.format}function isEmptyTask(e){return"empty"===e.format||!e.commands.length}__export(task_exports,{EMPTY_COMMANDS:()=>EMPTY_COMMANDS,adhocExecTask:()=>adhocExecTask,configurationErrorTask:()=>configurationErrorTask,isBufferTask:()=>isBufferTask,isEmptyTask:()=>isEmptyTask,straightThroughBufferTask:()=>straightThroughBufferTask,straightThroughStringTask:()=>straightThroughStringTask});var init_task=__esm({"src/lib/tasks/task.ts"(){init_task_configuration_error(),EMPTY_COMMANDS=[]}}),clean_exports={},CONFIG_ERROR_INTERACTIVE_MODE,CONFIG_ERROR_MODE_REQUIRED,CONFIG_ERROR_UNKNOWN_OPTION,CleanOptions,CleanOptionValues;function cleanWithOptionsTask(e,t){const{cleanMode:n,options:r,valid:i}=getCleanOptions(e);return n?i.options?(r.push(...t),r.some(isInteractiveMode)?configurationErrorTask(CONFIG_ERROR_INTERACTIVE_MODE):cleanTask(n,r)):configurationErrorTask(CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e)):configurationErrorTask(CONFIG_ERROR_MODE_REQUIRED)}function cleanTask(e,t){return{commands:["clean",`-${e}`,...t],format:"utf-8",parser:t=>cleanSummaryParser("n"===e,t)}}function isCleanOptionsArray(e){return Array.isArray(e)&&e.every((e=>CleanOptionValues.has(e)))}function getCleanOptions(e){let t,n=[],r={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,"").split("").forEach((e=>{isCleanMode(e)?(t=e,r.cleanMode=!0):r.options=r.options&&isKnownOption(n[n.length]=`-${e}`)})),{cleanMode:t,options:n,valid:r}}function isCleanMode(e){return"f"===e||"n"===e}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&CleanOptionValues.has(e.charAt(1))}function isInteractiveMode(e){return/^-[^\-]/.test(e)?e.indexOf("i")>0:"--interactive"===e}__export(clean_exports,{CONFIG_ERROR_INTERACTIVE_MODE:()=>CONFIG_ERROR_INTERACTIVE_MODE,CONFIG_ERROR_MODE_REQUIRED:()=>CONFIG_ERROR_MODE_REQUIRED,CONFIG_ERROR_UNKNOWN_OPTION:()=>CONFIG_ERROR_UNKNOWN_OPTION,CleanOptions:()=>CleanOptions,cleanTask:()=>cleanTask,cleanWithOptionsTask:()=>cleanWithOptionsTask,isCleanOptionsArray:()=>isCleanOptionsArray});var init_clean=__esm({"src/lib/tasks/clean.ts"(){init_CleanSummary(),init_utils(),init_task(),CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported",CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required',CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ",CleanOptions=(e=>(e.DRY_RUN="n",e.FORCE="f",e.IGNORED_INCLUDED="x",e.IGNORED_ONLY="X",e.EXCLUDING="e",e.QUIET="q",e.RECURSIVE="d",e))(CleanOptions||{}),CleanOptionValues=new Set(["i",...asStringArray(Object.values(CleanOptions))])}}),ConfigList;function configListParser(e){const t=new ConfigList;for(const n of configParser(e))t.addValue(n.file,String(n.key),n.value);return t}function configGetParser(e,t){let n=null;const r=[],i=new Map;for(const o of configParser(e,t))o.key===t&&(r.push(n=o.value),i.has(o.file)||i.set(o.file,[]),i.get(o.file).push(n));return{key:t,paths:Array.from(i.keys()),scopes:i,value:n,values:r}}function configFilePath(e){return e.replace(/^(file):/,"")}function*configParser(e,t=null){const n=e.split("\0");for(let e=0,r=n.length-1;eObject.assign(e,this.values[t])),{})),this._all}addFile(e){if(!(e in this.values)){const t=last(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,n){const r=this.addFile(e);r.hasOwnProperty(t)?Array.isArray(r[t])?r[t].push(n):r[t]=[r[t],n]:r[t]=n,this._all=void 0}}}}),GitConfigScope;function asConfigScope(e,t){return"string"==typeof e&&GitConfigScope.hasOwnProperty(e)?e:t}function addConfigTask(e,t,n,r){const i=["config",`--${r}`];return n&&i.push("--add"),i.push(e,t),{commands:i,format:"utf-8",parser:e=>e}}function getConfigTask(e,t){const n=["config","--null","--show-origin","--get-all",e];return t&&n.splice(1,0,`--${t}`),{commands:n,format:"utf-8",parser:t=>configGetParser(t,e)}}function listConfigTask(e){const t=["config","--list","--show-origin","--null"];return e&&t.push(`--${e}`),{commands:t,format:"utf-8",parser:e=>configListParser(e)}}function config_default(){return{addConfig(e,t,...n){return this._runTask(addConfigTask(e,t,!0===n[0],asConfigScope(n[1],"local")),trailingFunctionArgument(arguments))},getConfig(e,t){return this._runTask(getConfigTask(e,asConfigScope(t,void 0)),trailingFunctionArgument(arguments))},listConfig(...e){return this._runTask(listConfigTask(asConfigScope(e[0],void 0)),trailingFunctionArgument(arguments))}}}var init_config=__esm({"src/lib/tasks/config.ts"(){init_ConfigList(),init_utils(),GitConfigScope=(e=>(e.system="system",e.global="global",e.local="local",e.worktree="worktree",e))(GitConfigScope||{})}}),DiffNameStatus,diffNameStatus;function isDiffNameStatus(e){return diffNameStatus.has(e)}var init_diff_name_status=__esm({"src/lib/tasks/diff-name-status.ts"(){DiffNameStatus=(e=>(e.ADDED="A",e.COPIED="C",e.DELETED="D",e.MODIFIED="M",e.RENAMED="R",e.CHANGED="T",e.UNMERGED="U",e.UNKNOWN="X",e.BROKEN="B",e))(DiffNameStatus||{}),diffNameStatus=new Set(Object.values(DiffNameStatus))}}),disallowedOptions,Query,_a,GrepQuery;function grepQueryBuilder(...e){return(new GrepQuery).param(...e)}function parseGrep(e){const t=new Set,n={};return forEachLineWithContent(e,(e=>{const[r,i,o]=e.split(NULL);t.add(r),(n[r]=n[r]||[]).push({line:asNumber(i),path:r,preview:o})})),{paths:t,results:n}}function grep_default(){return{grep(e){const t=trailingFunctionArgument(arguments),n=getTrailingOptions(arguments);for(const e of disallowedOptions)if(n.includes(e))return this._runTask(configurationErrorTask(`git.grep: use of "${e}" is not supported.`),t);"string"==typeof e&&(e=grepQueryBuilder().param(e));const r=["grep","--null","-n","--full-name",...n,...e];return this._runTask({commands:r,format:"utf-8",parser:e=>parseGrep(e)},t)}}}var init_grep=__esm({"src/lib/tasks/grep.ts"(){init_utils(),init_task(),disallowedOptions=["-h"],Query=Symbol("grepQuery"),GrepQuery=class{constructor(){this[_a]=[]}*[(_a=Query,Symbol.iterator)](){for(const e of this[Query])yield e}and(...e){return e.length&&this[Query].push("--and","(",...prefixedArray(e,"-e"),")"),this}param(...e){return this[Query].push(...prefixedArray(e,"-e")),this}}}}),reset_exports={},ResetMode,ResetModes;function resetTask(e,t){const n=["reset"];return isValidResetMode(e)&&n.push(`--${e}`),n.push(...t),straightThroughStringTask(n)}function getResetMode(e){if(isValidResetMode(e))return e;switch(typeof e){case"string":case"undefined":return"soft"}}function isValidResetMode(e){return ResetModes.includes(e)}__export(reset_exports,{ResetMode:()=>ResetMode,getResetMode:()=>getResetMode,resetTask:()=>resetTask});var init_reset=__esm({"src/lib/tasks/reset.ts"(){init_task(),ResetMode=(e=>(e.MIXED="mixed",e.SOFT="soft",e.HARD="hard",e.MERGE="merge",e.KEEP="keep",e))(ResetMode||{}),ResetModes=Array.from(Object.values(ResetMode))}});function createLog(){return debugModule("simple-git")}function prefixedLogger(e,t,n){return t&&String(t).replace(/\s*/,"")?(r,...i)=>{e(`%s ${r}`,t,...i),n&&n(r,...i)}:n?(t,...r)=>{e(t,...r),n(t,...r)}:e}function childLoggerName(e,t,{namespace:n}){if("string"==typeof e)return e;const r=t&&t.namespace||"";return r.startsWith(n)?r.substr(n.length+1):r||n}function createLogger(e,t,n,r=createLog()){const i=e&&`[${e}]`||"",o=[],s="string"==typeof t?r.extend(t):t,a=childLoggerName(filterType(t,filterString),s,r);return function t(n){const o=n&&`[${n}]`||"",a=s&&prefixedLogger(s,o)||NOOP$1,l=prefixedLogger(r,`${i} ${o}`,a);return Object.assign(s?a:l,{label:e,sibling:c,info:l,step:t})}(n);function c(t,n){return append(o,createLogger(e,a.replace(/^[^:]+/,t),n,r))}}var init_git_logger=__esm({"src/lib/git-logger.ts"(){init_utils(),debugModule.formatters.L=e=>String(filterHasLength(e)?e.length:"-"),debugModule.formatters.B=e=>Buffer.isBuffer(e)?e.toString("utf8"):objectToString(e)}}),_TasksPendingQueue,TasksPendingQueue,init_tasks_pending_queue=__esm({"src/lib/runners/tasks-pending-queue.ts"(){init_git_error(),init_git_logger(),_TasksPendingQueue=class{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const t=_TasksPendingQueue.getName(e.commands[0]);return{task:e,logger:createLogger(this.logLabel,t),name:t}}push(e){const t=this.createProgress(e);return t.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,t),t}fatal(e){for(const[t,{logger:n}]of Array.from(this._queue.entries()))t===e.task?(n.info("Failed %o",e),n("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):n.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(t);if(0!==this._queue.size)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){const t=this.withProgress(e);if(!t)throw new GitError(void 0,"TasksPendingQueue: attempt called for an unknown task");return t.logger("Starting task"),t}static getName(e="empty"){return`task:${e}:${++_TasksPendingQueue.counter}`}},(TasksPendingQueue=_TasksPendingQueue).counter=0}}),GitExecutorChain;function pluginContext(e,t){return{method:first(e.commands)||"",commands:t}}function onErrorReceived(e,t){return n=>{t("[ERROR] child process exception %o",n),e.push(Buffer.from(String(n.stack),"ascii"))}}function onDataReceived(e,t,n,r){return i=>{n("%s received %L bytes",t,i),r("%B",i),e.push(i)}}var init_git_executor_chain=__esm({"src/lib/runners/git-executor-chain.ts"(){init_git_error(),init_task(),init_utils(),init_tasks_pending_queue(),GitExecutorChain=class{constructor(e,t,n){this._executor=e,this._scheduler=t,this._plugins=n,this._chain=Promise.resolve(),this._queue=new TasksPendingQueue}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then((()=>this.attemptTask(e)))}attemptTask(e){return __async(this,null,(function*(){const t=yield this._scheduler.next(),n=()=>this._queue.complete(e);try{const{logger:t}=this._queue.attempt(e);return yield isEmptyTask(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t)}catch(t){throw this.onFatalException(e,t)}finally{n(),t()}}))}onFatalException(e,t){const n=t instanceof GitError?Object.assign(t,{task:e}):new GitError(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(n),n}attemptRemoteTask(e,t){return __async(this,null,(function*(){const n=this._plugins.exec("spawn.binary","",pluginContext(e,e.commands)),r=this._plugins.exec("spawn.args",[...e.commands],pluginContext(e,e.commands)),i=yield this.gitResponse(e,n,r,this.outputHandler,t.step("SPAWN")),o=yield this.handleTaskData(e,r,i,t.step("HANDLE"));return t("passing response to task's parser as a %s",e.format),isBufferTask(e)?callTaskParser(e.parser,o):callTaskParser(e.parser,o.asStrings())}))}attemptEmptyTask(e,t){return __async(this,null,(function*(){return t("empty task bypassing child process to call to task's parser"),e.parser(this)}))}handleTaskData(e,t,n,r){const{exitCode:i,rejection:o,stdOut:s,stdErr:a}=n;return new Promise(((c,l)=>{r("Preparing to handle process response exitCode=%d stdOut=",i);const{error:u}=this._plugins.exec("task.error",{error:o},__spreadValues(__spreadValues({},pluginContext(e,t)),n));return u&&e.onError?(r.info("exitCode=%s handling with custom error handler"),e.onError(n,u,(e=>{r.info("custom error handler treated as success"),r("custom error returned a %s",objectToString(e)),c(new GitOutputStreams(Array.isArray(e)?Buffer.concat(e):e,Buffer.concat(a)))}),l)):u?(r.info("handling as error: exitCode=%s stdErr=%s rejection=%o",i,a.length,o),l(u)):(r.info("retrieving task output complete"),void c(new GitOutputStreams(Buffer.concat(s),Buffer.concat(a))))}))}gitResponse(e,t,n,r,i){return __async(this,null,(function*(){const o=i.sibling("output"),s=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},pluginContext(e,e.commands));return new Promise((a=>{const c=[],l=[];i.info("%s %o",t,n),i("%O",s);let u=this._beforeSpawn(e,n);if(u)return a({stdOut:c,stdErr:l,exitCode:9901,rejection:u});this._plugins.exec("spawn.before",void 0,__spreadProps(__spreadValues({},pluginContext(e,n)),{kill(e){u=e||u}}));const d=spawn(t,n,s);d.stdout.on("data",onDataReceived(c,"stdOut",i,o.step("stdOut"))),d.stderr.on("data",onDataReceived(l,"stdErr",i,o.step("stdErr"))),d.on("error",onErrorReceived(l,i)),r&&(i("Passing child process stdOut/stdErr to custom outputHandler"),r(t,d.stdout,d.stderr,[...n])),this._plugins.exec("spawn.after",void 0,__spreadProps(__spreadValues({},pluginContext(e,n)),{spawned:d,close(e,t){a({stdOut:c,stdErr:l,exitCode:e,rejection:u||t})},kill(e){d.killed||(u=e,d.kill("SIGINT"))}}))}))}))}_beforeSpawn(e,t){let n;return this._plugins.exec("spawn.before",void 0,__spreadProps(__spreadValues({},pluginContext(e,t)),{kill(e){n=e||n}})),n}}}}),git_executor_exports={},GitExecutor;__export(git_executor_exports,{GitExecutor:()=>GitExecutor});var init_git_executor=__esm({"src/lib/runners/git-executor.ts"(){init_git_executor_chain(),GitExecutor=class{constructor(e,t,n){this.cwd=e,this._scheduler=t,this._plugins=n,this._chain=new GitExecutorChain(this,this._scheduler,this._plugins)}chain(){return new GitExecutorChain(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function taskCallback(e,t,n=NOOP$1){t.then((e=>{n(null,e)}),(t=>{(null==t?void 0:t.task)===e&&n(t instanceof GitResponseError?addDeprecationNoticeToError(t):t,void 0)}))}function addDeprecationNoticeToError(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),t=NOOP$1};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce((function(n,r){if(r in e)return n;return n[r]={enumerable:!1,configurable:!1,get:()=>(t(r),e.git[r])},n}),{}))}var init_task_callback=__esm({"src/lib/task-callback.ts"(){init_git_response_error(),init_utils()}});function changeWorkingDirectoryTask(e,t){return adhocExecTask((n=>{if(!folderExists(e))throw new Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||n).cwd=e}))}var init_change_working_directory=__esm({"src/lib/tasks/change-working-directory.ts"(){init_utils(),init_task()}});function checkoutTask(e){const t=["checkout",...e];return"-b"===t[1]&&t.includes("-B")&&(t[1]=remove(t,"-B")),straightThroughStringTask(t)}function checkout_default(){return{checkout(){return this._runTask(checkoutTask(getTrailingOptions(arguments,1)),trailingFunctionArgument(arguments))},checkoutBranch(e,t){return this._runTask(checkoutTask(["-b",e,t,...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments))},checkoutLocalBranch(e){return this._runTask(checkoutTask(["-b",e,...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments))}}}var init_checkout=__esm({"src/lib/tasks/checkout.ts"(){init_utils(),init_task()}}),parser2;function countObjectsResponse(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function count_objects_default(){return{countObjects(){return this._runTask({commands:["count-objects","--verbose"],format:"utf-8",parser:e=>parseStringResponse(countObjectsResponse(),[parser2],e)})}}}var init_count_objects=__esm({"src/lib/tasks/count-objects.ts"(){init_utils(),parser2=new LineParser(/([a-z-]+): (\d+)$/,((e,[t,n])=>{const r=asCamelCase(t);e.hasOwnProperty(r)&&(e[r]=asNumber(n))}))}}),parsers;function parseCommitResult(e){return parseStringResponse({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},parsers,e)}var init_parse_commit=__esm({"src/lib/parsers/parse-commit.ts"(){init_utils(),parsers=[new LineParser(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,((e,[t,n,r])=>{e.branch=t,e.commit=r,e.root=!!n})),new LineParser(/\s*Author:\s(.+)/i,((e,[t])=>{const n=t.split("<"),r=n.pop();r&&r.includes("@")&&(e.author={email:r.substr(0,r.length-1),name:n.join("<").trim()})})),new LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,((e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(n,10)||0,e.summary.deletions=parseInt(r,10)||0})),new LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,((e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0;const i=parseInt(n,10)||0;"-"===r?e.summary.deletions=i:"+"===r&&(e.summary.insertions=i)}))]}});function commitTask(e,t,n){return{commands:["-c","core.abbrev=40","commit",...prefixedArray(e,"-m"),...t,...n],format:"utf-8",parser:parseCommitResult}}function commit_default(){return{commit(e,...t){const n=trailingFunctionArgument(arguments),r=function(e){return!filterStringOrStringArray(e)&&configurationErrorTask("git.commit: requires the commit message to be supplied as a string/string[]")}(e)||commitTask(asArray(e),asArray(filterType(t[0],filterStringOrStringArray,[])),[...filterType(t[1],filterArray,[]),...getTrailingOptions(arguments,0,!0)]);return this._runTask(r,n)}}}var init_commit=__esm({"src/lib/tasks/commit.ts"(){init_parse_commit(),init_utils(),init_task()}});function first_commit_default(){return{firstCommit(){return this._runTask(straightThroughStringTask(["rev-list","--max-parents=0","HEAD"],!0),trailingFunctionArgument(arguments))}}}var init_first_commit=__esm({"src/lib/tasks/first-commit.ts"(){init_utils(),init_task()}});function hashObjectTask(e,t){const n=["hash-object",e];return t&&n.push("-w"),straightThroughStringTask(n,!0)}var init_hash_object=__esm({"src/lib/tasks/hash-object.ts"(){init_task()}}),InitSummary,initResponseRegex,reInitResponseRegex;function parseInit(e,t,n){const r=String(n).trim();let i;if(i=initResponseRegex.exec(r))return new InitSummary(e,t,!1,i[1]);if(i=reInitResponseRegex.exec(r))return new InitSummary(e,t,!0,i[1]);let o="";const s=r.split(" ");for(;s.length;){if("in"===s.shift()){o=s.join(" ");break}}return new InitSummary(e,t,/^re/i.test(r),o)}var init_InitSummary=__esm({"src/lib/responses/InitSummary.ts"(){InitSummary=class{constructor(e,t,n,r){this.bare=e,this.path=t,this.existing=n,this.gitDir=r}},initResponseRegex=/^Init.+ repository in (.+)$/,reInitResponseRegex=/^Rein.+ in (.+)$/}}),bareCommand;function hasBareCommand(e){return e.includes(bareCommand)}function initTask(e=!1,t,n){const r=["init",...n];return e&&!hasBareCommand(r)&&r.splice(1,0,bareCommand),{commands:r,format:"utf-8",parser:e=>parseInit(r.includes("--bare"),t,e)}}var init_init=__esm({"src/lib/tasks/init.ts"(){init_InitSummary(),bareCommand="--bare"}}),logFormatRegex;function logFormatFromCommand(e){for(let t=0;tparseStringResponse(new DiffSummary,t,e,!1)}var init_parse_diff_summary=__esm({"src/lib/parsers/parse-diff-summary.ts"(){init_log_format(),init_DiffSummary(),init_diff_name_status(),init_utils(),statParser=[new LineParser(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,((e,[t,n,r=""])=>{e.files.push({file:t.trim(),changes:asNumber(n),insertions:r.replace(/[^+]/g,"").length,deletions:r.replace(/[^-]/g,"").length,binary:!1})})),new LineParser(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,((e,[t,n,r])=>{e.files.push({file:t.trim(),before:asNumber(n),after:asNumber(r),binary:!0})})),new LineParser(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,((e,[t,n])=>{const r=/(\d+) i/.exec(n),i=/(\d+) d/.exec(n);e.changed=asNumber(t),e.insertions=asNumber(null==r?void 0:r[1]),e.deletions=asNumber(null==i?void 0:i[1])}))],numStatParser=[new LineParser(/(\d+)\t(\d+)\t(.+)$/,((e,[t,n,r])=>{const i=asNumber(t),o=asNumber(n);e.changed++,e.insertions+=i,e.deletions+=o,e.files.push({file:r,changes:i+o,insertions:i,deletions:o,binary:!1})})),new LineParser(/-\t-\t(.+)$/,((e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})}))],nameOnlyParser=[new LineParser(/(.+)$/,((e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})}))],nameStatusParser=[new LineParser(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,((e,[t,n,r,i,o])=>{e.changed++,e.files.push({file:null!=o?o:r,changes:0,insertions:0,deletions:0,binary:!1,status:orVoid(isDiffNameStatus(t)&&t),from:orVoid(!!o&&r!==o&&r),similarity:asNumber(n)})}))],diffSummaryParsers={"":statParser,"--stat":statParser,"--numstat":numStatParser,"--name-status":nameStatusParser,"--name-only":nameOnlyParser}}}),START_BOUNDARY,COMMIT_BOUNDARY,SPLITTER,defaultFieldNames;function lineBuilder(e,t){return t.reduce(((t,n,r)=>(t[n]=e[r]||"",t)),Object.create({diff:null}))}function createListLogSummaryParser(e=SPLITTER,t=defaultFieldNames,n=""){const r=getDiffParser(n);return function(n){const i=toLinesWithContent(n.trim(),!1,START_BOUNDARY).map((function(n){const i=n.split(COMMIT_BOUNDARY),o=lineBuilder(i[0].split(e),t);return i.length>1&&i[1].trim()&&(o.diff=r(i[1])),o}));return{all:i,latest:i.length&&i[0]||null,total:i.length}}}var init_parse_list_log_summary=__esm({"src/lib/parsers/parse-list-log-summary.ts"(){init_utils(),init_parse_diff_summary(),init_log_format(),START_BOUNDARY="รฒรฒรฒรฒรฒรฒ ",COMMIT_BOUNDARY=" รฒรฒ",SPLITTER=" รฒ ",defaultFieldNames=["hash","date","message","refs","author_name","author_email"]}}),diff_exports={};function diffSummaryTask(e){let t=logFormatFromCommand(e);const n=["diff"];return""===t&&(t="--stat",n.push("--stat=4096")),n.push(...e),validateLogFormatConfig(n)||{commands:n,format:"utf-8",parser:getDiffParser(t)}}function validateLogFormatConfig(e){const t=e.filter(isLogFormat);return t.length>1?configurationErrorTask(`Summary flags are mutually exclusive - pick one of ${t.join(",")}`):t.length&&e.includes("-z")?configurationErrorTask(`Summary flag ${t} parsing is not compatible with null termination option '-z'`):void 0}__export(diff_exports,{diffSummaryTask:()=>diffSummaryTask,validateLogFormatConfig:()=>validateLogFormatConfig});var init_diff=__esm({"src/lib/tasks/diff.ts"(){init_log_format(),init_parse_diff_summary(),init_task()}}),excludeOptions;function prettyFormat(e,t){const n=[],r=[];return Object.keys(e).forEach((t=>{n.push(t),r.push(String(e[t]))})),[n,r.join(t)]}function userOptions(e){return Object.keys(e).reduce(((t,n)=>(n in excludeOptions||(t[n]=e[n]),t)),{})}function parseLogOptions(e={},t=[]){const n=filterType(e.splitter,filterString,SPLITTER),r=!filterPrimitives(e.format)&&e.format?e.format:{hash:"%H",date:!1===e.strictDate?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:!1!==e.mailMap?"%aN":"%an",author_email:!1!==e.mailMap?"%aE":"%ae"},[i,o]=prettyFormat(r,n),s=[],a=[`--pretty=format:${START_BOUNDARY}${o}${COMMIT_BOUNDARY}`,...t],c=e.n||e["max-count"]||e.maxCount;if(c&&a.push(`--max-count=${c}`),e.from||e.to){const t=!1!==e.symmetric?"...":"..";s.push(`${e.from||""}${t}${e.to||""}`)}return filterString(e.file)&&a.push("--follow",pathspec(e.file)),appendTaskOptions(userOptions(e),a),{fields:i,splitter:n,commands:[...a,...s]}}function logTask(e,t,n){const r=createListLogSummaryParser(e,t,logFormatFromCommand(n));return{commands:["log",...n],format:"utf-8",parser:r}}function log_default(){return{log(...e){const t=trailingFunctionArgument(arguments),n=parseLogOptions(trailingOptionsArgument(arguments),filterType(arguments[0],filterArray)),r=function(e,t){return filterString(e)&&filterString(t)&&configurationErrorTask("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}(...e)||validateLogFormatConfig(n.commands)||function(e){return logTask(e.splitter,e.fields,e.commands)}(n);return this._runTask(r,t)}}}var init_log=__esm({"src/lib/tasks/log.ts"(){init_log_format(),init_pathspec(),init_parse_list_log_summary(),init_utils(),init_task(),init_diff(),excludeOptions=(e=>(e[e["--pretty"]=0]="--pretty",e[e["max-count"]=1]="max-count",e[e.maxCount=2]="maxCount",e[e.n=3]="n",e[e.file=4]="file",e[e.format=5]="format",e[e.from=6]="from",e[e.to=7]="to",e[e.splitter=8]="splitter",e[e.symmetric=9]="symmetric",e[e.mailMap=10]="mailMap",e[e.multiLine=11]="multiLine",e[e.strictDate=12]="strictDate",e))(excludeOptions||{})}}),MergeSummaryConflict,MergeSummaryDetail,init_MergeSummary=__esm({"src/lib/responses/MergeSummary.ts"(){MergeSummaryConflict=class{constructor(e,t=null,n){this.reason=e,this.file=t,this.meta=n}toString(){return`${this.file}:${this.reason}`}},MergeSummaryDetail=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),PullSummary,PullFailedSummary,init_PullSummary=__esm({"src/lib/responses/PullSummary.ts"(){PullSummary=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},PullFailedSummary=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}}),remoteMessagesObjectParsers;function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){const t=/^\s*(\d+)/.exec(e),n=/delta (\d+)/i.exec(e);return{count:asNumber(t&&t[1]||"0"),delta:asNumber(n&&n[1]||"0")}}var init_parse_remote_objects=__esm({"src/lib/parsers/parse-remote-objects.ts"(){init_utils(),remoteMessagesObjectParsers=[new RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,((e,[t,n])=>{const r=t.toLowerCase(),i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[r]:asNumber(n)})})),new RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,((e,[t,n])=>{const r=t.toLowerCase(),i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[r]:asNumber(n)})})),new RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,((e,[t,n,r])=>{const i=objectEnumerationResult(e.remoteMessages);i.total=asObjectCount(t),i.reused=asObjectCount(n),i.packReused=asNumber(r)}))]}}),parsers2,RemoteMessageSummary;function parseRemoteMessages(e,t){return parseStringResponse({remoteMessages:new RemoteMessageSummary},parsers2,t)}var init_parse_remote_messages=__esm({"src/lib/parsers/parse-remote-messages.ts"(){init_utils(),init_parse_remote_objects(),parsers2=[new RemoteLineParser(/^remote:\s*(.+)$/,((e,[t])=>(e.remoteMessages.all.push(t.trim()),!1))),...remoteMessagesObjectParsers,new RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],((e,[t])=>{e.remoteMessages.pullRequestUrl=t})),new RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],((e,[t,n,r])=>{e.remoteMessages.vulnerabilities={count:asNumber(t),summary:n,url:r}}))],RemoteMessageSummary=class{constructor(){this.all=[]}}}}),FILE_UPDATE_REGEX,SUMMARY_REGEX,ACTION_REGEX,parsers3,errorParsers,parsePullDetail,parsePullResult;function parsePullErrorResult(e,t){const n=parseStringResponse(new PullFailedSummary,errorParsers,[e,t]);return n.message&&n}var init_parse_pull=__esm({"src/lib/parsers/parse-pull.ts"(){init_PullSummary(),init_utils(),init_parse_remote_messages(),SUMMARY_REGEX=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,ACTION_REGEX=/^(create|delete) mode \d+ (.+)/,parsers3=[new LineParser(FILE_UPDATE_REGEX=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,((e,[t,n,r])=>{e.files.push(t),n&&(e.insertions[t]=n.length),r&&(e.deletions[t]=r.length)})),new LineParser(SUMMARY_REGEX,((e,[t,,n,,r])=>(void 0!==n||void 0!==r)&&(e.summary.changes=+t||0,e.summary.insertions=+n||0,e.summary.deletions=+r||0,!0))),new LineParser(ACTION_REGEX,((e,[t,n])=>{append(e.files,n),append("create"===t?e.created:e.deleted,n)}))],errorParsers=[new LineParser(/^from\s(.+)$/i,((e,[t])=>{e.remote=t})),new LineParser(/^fatal:\s(.+)$/,((e,[t])=>{e.message=t})),new LineParser(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,((e,[t,n,r,i])=>{e.branch.local=r,e.hash.local=t,e.branch.remote=i,e.hash.remote=n}))],parsePullDetail=(e,t)=>parseStringResponse(new PullSummary,parsers3,[e,t]),parsePullResult=(e,t)=>Object.assign(new PullSummary,parsePullDetail(e,t),parseRemoteMessages(e,t))}}),parsers4,parseMergeResult,parseMergeDetail,init_parse_merge=__esm({"src/lib/parsers/parse-merge.ts"(){init_MergeSummary(),init_utils(),init_parse_pull(),parsers4=[new LineParser(/^Auto-merging\s+(.+)$/,((e,[t])=>{e.merges.push(t)})),new LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,((e,[t,n])=>{e.conflicts.push(new MergeSummaryConflict(t,n))})),new LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,((e,[t,n,r])=>{e.conflicts.push(new MergeSummaryConflict(t,n,{deleteRef:r}))})),new LineParser(/^CONFLICT\s+\((.+)\):/,((e,[t])=>{e.conflicts.push(new MergeSummaryConflict(t,null))})),new LineParser(/^Automatic merge failed;\s+(.+)$/,((e,[t])=>{e.result=t}))],parseMergeResult=(e,t)=>Object.assign(parseMergeDetail(e,t),parsePullResult(e,t)),parseMergeDetail=e=>parseStringResponse(new MergeSummaryDetail,parsers4,e)}});function mergeTask(e){return e.length?{commands:["merge",...e],format:"utf-8",parser(e,t){const n=parseMergeResult(e,t);if(n.failed)throw new GitResponseError(n);return n}}:configurationErrorTask("Git.merge requires at least one option")}var init_merge=__esm({"src/lib/tasks/merge.ts"(){init_git_response_error(),init_parse_merge(),init_task()}}),parsers5,parsePushResult,parsePushDetail;function pushResultPushedItem(e,t,n){const r=n.includes("deleted"),i=n.includes("tag")||/^refs\/tags/.test(e),o=!n.includes("new");return{deleted:r,tag:i,branch:!i,new:!o,alreadyUpdated:o,local:e,remote:t}}var init_parse_push=__esm({"src/lib/parsers/parse-push.ts"(){init_utils(),init_parse_remote_messages(),parsers5=[new LineParser(/^Pushing to (.+)$/,((e,[t])=>{e.repo=t})),new LineParser(/^updating local tracking ref '(.+)'/,((e,[t])=>{e.ref=__spreadProps(__spreadValues({},e.ref||{}),{local:t})})),new LineParser(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,((e,[t,n,r])=>{e.pushed.push(pushResultPushedItem(t,n,r))})),new LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,((e,[t,n,r])=>{e.branch=__spreadProps(__spreadValues({},e.branch||{}),{local:t,remote:n,remoteName:r})})),new LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,((e,[t,n,r,i])=>{e.update={head:{local:t,remote:n},hash:{from:r,to:i}}}))],parsePushResult=(e,t)=>{const n=parsePushDetail(e,t),r=parseRemoteMessages(e,t);return __spreadValues(__spreadValues({},n),r)},parsePushDetail=(e,t)=>parseStringResponse({pushed:[]},parsers5,[e,t])}}),push_exports={};function pushTagsTask(e={},t){return append(t,"--tags"),pushTask(e,t)}function pushTask(e={},t){const n=["push",...t];return e.branch&&n.splice(1,0,e.branch),e.remote&&n.splice(1,0,e.remote),remove(n,"-v"),append(n,"--verbose"),append(n,"--porcelain"),{commands:n,format:"utf-8",parser:parsePushResult}}__export(push_exports,{pushTagsTask:()=>pushTagsTask,pushTask:()=>pushTask});var init_push=__esm({"src/lib/tasks/push.ts"(){init_parse_push(),init_utils()}});function show_default(){return{showBuffer(){const e=["show",...getTrailingOptions(arguments,1)];return e.includes("--binary")||e.splice(1,0,"--binary"),this._runTask(straightThroughBufferTask(e),trailingFunctionArgument(arguments))},show(){const e=["show",...getTrailingOptions(arguments,1)];return this._runTask(straightThroughStringTask(e),trailingFunctionArgument(arguments))}}}var init_show=__esm({"src/lib/tasks/show.ts"(){init_utils(),init_task()}}),fromPathRegex,FileStatusSummary,init_FileStatusSummary=__esm({"src/lib/responses/FileStatusSummary.ts"(){fromPathRegex=/^(.+)\0(.+)$/,FileStatusSummary=class{constructor(e,t,n){if(this.path=e,this.index=t,this.working_dir=n,"R"===t||"R"===n){const t=fromPathRegex.exec(e)||[null,e,e];this.from=t[2]||"",this.path=t[1]||""}}}}}),StatusSummary,parsers6,parseStatusSummary;function renamedFile(e){const[t,n]=e.split(NULL);return{from:n||t,to:t}}function parser3(e,t,n){return[`${e}${t}`,n]}function conflicts(e,...t){return t.map((t=>parser3(e,t,((e,t)=>append(e.conflicted,t)))))}function splitLine(e,t){const n=t.trim();switch(" "){case n.charAt(2):return r(n.charAt(0),n.charAt(1),n.substr(3));case n.charAt(1):return r(" ",n.charAt(0),n.substr(2));default:return}function r(t,n,r){const i=`${t}${n}`,o=parsers6.get(i);o&&o(e,r),"##"!==i&&"!!"!==i&&e.files.push(new FileStatusSummary(r,t,n))}}var init_StatusSummary=__esm({"src/lib/responses/StatusSummary.ts"(){init_utils(),init_FileStatusSummary(),StatusSummary=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},parsers6=new Map([parser3(" ","A",((e,t)=>append(e.created,t))),parser3(" ","D",((e,t)=>append(e.deleted,t))),parser3(" ","M",((e,t)=>append(e.modified,t))),parser3("A"," ",((e,t)=>append(e.created,t)&&append(e.staged,t))),parser3("A","M",((e,t)=>append(e.created,t)&&append(e.staged,t)&&append(e.modified,t))),parser3("D"," ",((e,t)=>append(e.deleted,t)&&append(e.staged,t))),parser3("M"," ",((e,t)=>append(e.modified,t)&&append(e.staged,t))),parser3("M","M",((e,t)=>append(e.modified,t)&&append(e.staged,t))),parser3("R"," ",((e,t)=>{append(e.renamed,renamedFile(t))})),parser3("R","M",((e,t)=>{const n=renamedFile(t);append(e.renamed,n),append(e.modified,n.to)})),parser3("!","!",((e,t)=>{append(e.ignored=e.ignored||[],t)})),parser3("?","?",((e,t)=>append(e.not_added,t))),...conflicts("A","A","U"),...conflicts("D","D","U"),...conflicts("U","A","D","U"),["##",(e,t)=>{let n;n=/ahead (\d+)/.exec(t),e.ahead=n&&+n[1]||0,n=/behind (\d+)/.exec(t),e.behind=n&&+n[1]||0,n=/^(.+?(?=(?:\.{3}|\s|$)))/.exec(t),e.current=n&&n[1],n=/\.{3}(\S*)/.exec(t),e.tracking=n&&n[1],n=/\son\s([\S]+)$/.exec(t),e.current=n&&n[1]||e.current,e.detached=/\(no branch\)/.test(t)}]]),parseStatusSummary=function(e){const t=e.split(NULL),n=new StatusSummary;for(let e=0,r=t.length;e!ignoredOptions.includes(e)))],parser:e=>parseStatusSummary(e)}}var init_status=__esm({"src/lib/tasks/status.ts"(){init_StatusSummary(),ignoredOptions=["--null","-z"]}}),NOT_INSTALLED,parsers7;function versionResponse(e=0,t=0,n=0,r="",i=!0){return Object.defineProperty({major:e,minor:t,patch:n,agent:r,installed:i},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function notInstalledResponse(){return versionResponse(0,0,0,"",!1)}function version_default(){return{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:versionParser,onError(e,t,n,r){if(-2===e.exitCode)return n(Buffer.from(NOT_INSTALLED));r(t)}})}}}function versionParser(e){return e===NOT_INSTALLED?notInstalledResponse():parseStringResponse(versionResponse(0,0,0,e),parsers7,e)}var init_version=__esm({"src/lib/tasks/version.ts"(){init_utils(),NOT_INSTALLED="installed=false",parsers7=[new LineParser(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,((e,[t,n,r,i=""])=>{Object.assign(e,versionResponse(asNumber(t),asNumber(n),asNumber(r),i))})),new LineParser(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,((e,[t,n,r,i=""])=>{Object.assign(e,versionResponse(asNumber(t),asNumber(n),r,i))}))]}}),simple_git_api_exports={},SimpleGitApi;__export(simple_git_api_exports,{SimpleGitApi:()=>SimpleGitApi});var init_simple_git_api=__esm({"src/lib/simple-git-api.ts"(){init_task_callback(),init_change_working_directory(),init_checkout(),init_count_objects(),init_commit(),init_config(),init_first_commit(),init_grep(),init_hash_object(),init_init(),init_log(),init_merge(),init_push(),init_show(),init_status(),init_task(),init_version(),init_utils(),SimpleGitApi=class{constructor(e){this._executor=e}_runTask(e,t){const n=this._executor.chain(),r=n.push(e);return t&&taskCallback(e,r,t),Object.create(this,{then:{value:r.then.bind(r)},catch:{value:r.catch.bind(r)},_executor:{value:n}})}add(e){return this._runTask(straightThroughStringTask(["add",...asArray(e)]),trailingFunctionArgument(arguments))}cwd(e){const t=trailingFunctionArgument(arguments);return"string"==typeof e?this._runTask(changeWorkingDirectoryTask(e,this._executor),t):"string"==typeof(null==e?void 0:e.path)?this._runTask(changeWorkingDirectoryTask(e.path,e.root&&this._executor||void 0),t):this._runTask(configurationErrorTask("Git.cwd: workingDirectory must be supplied as a string"),t)}hashObject(e,t){return this._runTask(hashObjectTask(e,!0===t),trailingFunctionArgument(arguments))}init(e){return this._runTask(initTask(!0===e,this._executor.cwd,getTrailingOptions(arguments)),trailingFunctionArgument(arguments))}merge(){return this._runTask(mergeTask(getTrailingOptions(arguments)),trailingFunctionArgument(arguments))}mergeFromTo(e,t){return filterString(e)&&filterString(t)?this._runTask(mergeTask([e,t,...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments,!1)):this._runTask(configurationErrorTask("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){const e=pushTask({remote:filterType(arguments[0],filterString),branch:filterType(arguments[1],filterString)},getTrailingOptions(arguments));return this._runTask(e,trailingFunctionArgument(arguments))}stash(){return this._runTask(straightThroughStringTask(["stash",...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments))}status(){return this._runTask(statusTask(getTrailingOptions(arguments)),trailingFunctionArgument(arguments))}},Object.assign(SimpleGitApi.prototype,checkout_default(),commit_default(),config_default(),count_objects_default(),first_commit_default(),grep_default(),log_default(),show_default(),version_default())}}),scheduler_exports={},createScheduledTask,Scheduler;__export(scheduler_exports,{Scheduler:()=>Scheduler});var init_scheduler=__esm({"src/lib/runners/scheduler.ts"(){init_utils(),init_git_logger(),createScheduledTask=(()=>{let e=0;return()=>{e++;const{promise:t,done:n}=distExports$1.createDeferred();return{promise:t,done:n,id:e}}})(),Scheduler=class{constructor(e=2){this.concurrency=e,this.logger=createLogger("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency)return void this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);const e=append(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done((()=>{this.logger("Completing id=",e.id),remove(this.running,e),this.schedule()}))}next(){const{promise:e,id:t}=append(this.pending,createScheduledTask());return this.logger("Scheduling id=%s",t),this.schedule(),e}}}}),apply_patch_exports={};function applyPatchTask(e,t){return straightThroughStringTask(["apply",...t,...e])}__export(apply_patch_exports,{applyPatchTask:()=>applyPatchTask});var init_apply_patch=__esm({"src/lib/tasks/apply-patch.ts"(){init_task()}}),BranchDeletionBatch;function branchDeletionSuccess(e,t){return{branch:e,hash:t,success:!0}}function branchDeletionFailure(e){return{branch:e,hash:null,success:!1}}var init_BranchDeleteSummary=__esm({"src/lib/responses/BranchDeleteSummary.ts"(){BranchDeletionBatch=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}}),deleteSuccessRegex,deleteErrorRegex,parsers8,parseBranchDeletions;function hasBranchDeletionError(e,t){return 1===t&&deleteErrorRegex.test(e)}var init_parse_branch_delete=__esm({"src/lib/parsers/parse-branch-delete.ts"(){init_BranchDeleteSummary(),init_utils(),deleteErrorRegex=/^error[^']+'([^']+)'/m,parsers8=[new LineParser(deleteSuccessRegex=/(\S+)\s+\(\S+\s([^)]+)\)/,((e,[t,n])=>{const r=branchDeletionSuccess(t,n);e.all.push(r),e.branches[t]=r})),new LineParser(deleteErrorRegex,((e,[t])=>{const n=branchDeletionFailure(t);e.errors.push(n),e.all.push(n),e.branches[t]=n}))],parseBranchDeletions=(e,t)=>parseStringResponse(new BranchDeletionBatch,parsers8,[e,t])}}),BranchSummaryResult,init_BranchSummary=__esm({"src/lib/responses/BranchSummary.ts"(){BranchSummaryResult=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,t,n,r,i){"*"===e&&(this.detached=t,this.current=n),this.all.push(n),this.branches[n]={current:"*"===e,linkedWorkTree:"+"===e,name:n,commit:r,label:i}}}}}),parsers9;function branchStatus(e){return e?e.charAt(0):""}function parseBranchSummary(e){return parseStringResponse(new BranchSummaryResult,parsers9,e)}var init_parse_branch=__esm({"src/lib/parsers/parse-branch.ts"(){init_BranchSummary(),init_utils(),parsers9=[new LineParser(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,((e,[t,n,r,i])=>{e.push(branchStatus(t),!0,n,r,i)})),new LineParser(new RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$","s"),((e,[t,n,r,i])=>{e.push(branchStatus(t),!1,n,r,i)}))]}}),branch_exports={};function containsDeleteBranchCommand(e){const t=["-d","-D","--delete"];return e.some((e=>t.includes(e)))}function branchTask(e){const t=containsDeleteBranchCommand(e),n=["branch",...e];return 1===n.length&&n.push("-a"),n.includes("-v")||n.splice(1,0,"-v"),{format:"utf-8",commands:n,parser:(e,n)=>t?parseBranchDeletions(e,n).all[0]:parseBranchSummary(e)}}function branchLocalTask(){return{format:"utf-8",commands:["branch","-v"],parser:parseBranchSummary}}function deleteBranchesTask(e,t=!1){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser:(e,t)=>parseBranchDeletions(e,t),onError({exitCode:e,stdOut:t},n,r,i){if(!hasBranchDeletionError(String(n),e))return i(n);r(t)}}}function deleteBranchTask(e,t=!1){const n={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser:(t,n)=>parseBranchDeletions(t,n).branches[e],onError({exitCode:e,stdErr:t,stdOut:r},i,o,s){if(!hasBranchDeletionError(String(i),e))return s(i);throw new GitResponseError(n.parser(bufferToString(r),bufferToString(t)),String(i))}};return n}__export(branch_exports,{branchLocalTask:()=>branchLocalTask,branchTask:()=>branchTask,containsDeleteBranchCommand:()=>containsDeleteBranchCommand,deleteBranchTask:()=>deleteBranchTask,deleteBranchesTask:()=>deleteBranchesTask});var init_branch=__esm({"src/lib/tasks/branch.ts"(){init_git_response_error(),init_parse_branch_delete(),init_parse_branch(),init_utils()}}),parseCheckIgnore,init_CheckIgnore=__esm({"src/lib/responses/CheckIgnore.ts"(){parseCheckIgnore=e=>e.split(/\n/g).map((e=>e.trim())).filter((e=>!!e))}}),check_ignore_exports={};function checkIgnoreTask(e){return{commands:["check-ignore",...e],format:"utf-8",parser:parseCheckIgnore}}__export(check_ignore_exports,{checkIgnoreTask:()=>checkIgnoreTask});var init_check_ignore=__esm({"src/lib/tasks/check-ignore.ts"(){init_CheckIgnore()}}),clone_exports={};function disallowedCommand(e){return/^--upload-pack(=|$)/.test(e)}function cloneTask(e,t,n){const r=["clone",...n];filterString(e)&&r.push(e),filterString(t)&&r.push(t);return r.find(disallowedCommand)?configurationErrorTask("git.fetch: potential exploit argument blocked."):straightThroughStringTask(r)}function cloneMirrorTask(e,t,n){return append(n,"--mirror"),cloneTask(e,t,n)}__export(clone_exports,{cloneMirrorTask:()=>cloneMirrorTask,cloneTask:()=>cloneTask});var init_clone=__esm({"src/lib/tasks/clone.ts"(){init_task(),init_utils()}}),parsers10;function parseFetchResult(e,t){return parseStringResponse({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},parsers10,[e,t])}var init_parse_fetch=__esm({"src/lib/parsers/parse-fetch.ts"(){init_utils(),parsers10=[new LineParser(/From (.+)$/,((e,[t])=>{e.remote=t})),new LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,((e,[t,n])=>{e.branches.push({name:t,tracking:n})})),new LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,((e,[t,n])=>{e.tags.push({name:t,tracking:n})})),new LineParser(/- \[deleted]\s+\S+\s*-> (.+)$/,((e,[t])=>{e.deleted.push({tracking:t})})),new LineParser(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,((e,[t,n,r,i])=>{e.updated.push({name:r,tracking:i,to:n,from:t})}))]}}),fetch_exports={};function disallowedCommand2(e){return/^--upload-pack(=|$)/.test(e)}function fetchTask(e,t,n){const r=["fetch",...n];e&&t&&r.push(e,t);return r.find(disallowedCommand2)?configurationErrorTask("git.fetch: potential exploit argument blocked."):{commands:r,format:"utf-8",parser:parseFetchResult}}__export(fetch_exports,{fetchTask:()=>fetchTask});var init_fetch=__esm({"src/lib/tasks/fetch.ts"(){init_parse_fetch(),init_task()}}),parsers11;function parseMoveResult(e){return parseStringResponse({moves:[]},parsers11,e)}var init_parse_move=__esm({"src/lib/parsers/parse-move.ts"(){init_utils(),parsers11=[new LineParser(/^Renaming (.+) to (.+)$/,((e,[t,n])=>{e.moves.push({from:t,to:n})}))]}}),move_exports={};function moveTask(e,t){return{commands:["mv","-v",...asArray(e),t],format:"utf-8",parser:parseMoveResult}}__export(move_exports,{moveTask:()=>moveTask});var init_move=__esm({"src/lib/tasks/move.ts"(){init_parse_move(),init_utils()}}),pull_exports={};function pullTask(e,t,n){const r=["pull",...n];return e&&t&&r.splice(1,0,e,t),{commands:r,format:"utf-8",parser:(e,t)=>parsePullResult(e,t),onError(e,t,n,r){const i=parsePullErrorResult(bufferToString(e.stdOut),bufferToString(e.stdErr));if(i)return r(new GitResponseError(i));r(t)}}}__export(pull_exports,{pullTask:()=>pullTask});var init_pull=__esm({"src/lib/tasks/pull.ts"(){init_git_response_error(),init_parse_pull(),init_utils()}});function parseGetRemotes(e){const t={};return forEach$1(e,(([e])=>t[e]={name:e})),Object.values(t)}function parseGetRemotesVerbose(e){const t={};return forEach$1(e,(([e,n,r])=>{t.hasOwnProperty(e)||(t[e]={name:e,refs:{fetch:"",push:""}}),r&&n&&(t[e].refs[r.replace(/[^a-z]/g,"")]=n)})),Object.values(t)}function forEach$1(e,t){forEachLineWithContent(e,(e=>t(e.split(/\s+/))))}var init_GetRemoteSummary=__esm({"src/lib/responses/GetRemoteSummary.ts"(){init_utils()}}),remote_exports={};function addRemoteTask(e,t,n){return straightThroughStringTask(["remote","add",...n,e,t])}function getRemotesTask(e){const t=["remote"];return e&&t.push("-v"),{commands:t,format:"utf-8",parser:e?parseGetRemotesVerbose:parseGetRemotes}}function listRemotesTask(e){const t=[...e];return"ls-remote"!==t[0]&&t.unshift("ls-remote"),straightThroughStringTask(t)}function remoteTask(e){const t=[...e];return"remote"!==t[0]&&t.unshift("remote"),straightThroughStringTask(t)}function removeRemoteTask(e){return straightThroughStringTask(["remote","remove",e])}__export(remote_exports,{addRemoteTask:()=>addRemoteTask,getRemotesTask:()=>getRemotesTask,listRemotesTask:()=>listRemotesTask,remoteTask:()=>remoteTask,removeRemoteTask:()=>removeRemoteTask});var init_remote=__esm({"src/lib/tasks/remote.ts"(){init_GetRemoteSummary(),init_task()}}),stash_list_exports={};function stashListTask(e={},t){const n=parseLogOptions(e),r=["stash","list",...n.commands,...t],i=createListLogSummaryParser(n.splitter,n.fields,logFormatFromCommand(r));return validateLogFormatConfig(r)||{commands:r,format:"utf-8",parser:i}}__export(stash_list_exports,{stashListTask:()=>stashListTask});var init_stash_list=__esm({"src/lib/tasks/stash-list.ts"(){init_log_format(),init_parse_list_log_summary(),init_diff(),init_log()}}),sub_module_exports={};function addSubModuleTask(e,t){return subModuleTask(["add",e,t])}function initSubModuleTask(e){return subModuleTask(["init",...e])}function subModuleTask(e){const t=[...e];return"submodule"!==t[0]&&t.unshift("submodule"),straightThroughStringTask(t)}function updateSubModuleTask(e){return subModuleTask(["update",...e])}__export(sub_module_exports,{addSubModuleTask:()=>addSubModuleTask,initSubModuleTask:()=>initSubModuleTask,subModuleTask:()=>subModuleTask,updateSubModuleTask:()=>updateSubModuleTask});var init_sub_module=__esm({"src/lib/tasks/sub-module.ts"(){init_task()}}),TagList,parseTagList;function singleSorted(e,t){const n=isNaN(e);return n!==isNaN(t)?n?1:-1:n?sorted(e,t):0}function sorted(e,t){return e===t?0:e>t?1:-1}function trimmed(e){return e.trim()}function toNumber(e){return"string"==typeof e&&parseInt(e.replace(/^\D+/g,""),10)||0}var init_TagList=__esm({"src/lib/responses/TagList.ts"(){TagList=class{constructor(e,t){this.all=e,this.latest=t}},parseTagList=function(e,t=!1){const n=e.split("\n").map(trimmed).filter(Boolean);t||n.sort((function(e,t){const n=e.split("."),r=t.split(".");if(1===n.length||1===r.length)return singleSorted(toNumber(n[0]),toNumber(r[0]));for(let e=0,t=Math.max(n.length,r.length);ee.indexOf(".")>=0));return new TagList(n,r)}}}),tag_exports={};function tagListTask(e=[]){const t=e.some((e=>/^--sort=/.test(e)));return{format:"utf-8",commands:["tag","-l",...e],parser:e=>parseTagList(e,t)}}function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser:()=>({name:e})}}function addAnnotatedTagTask(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser:()=>({name:e})}}__export(tag_exports,{addAnnotatedTagTask:()=>addAnnotatedTagTask,addTagTask:()=>addTagTask,tagListTask:()=>tagListTask});var init_tag=__esm({"src/lib/tasks/tag.ts"(){init_TagList()}}),require_git=__commonJS({"src/git.js"(e,t){var{GitExecutor:n}=(init_git_executor(),__toCommonJS(git_executor_exports)),{SimpleGitApi:r}=(init_simple_git_api(),__toCommonJS(simple_git_api_exports)),{Scheduler:i}=(init_scheduler(),__toCommonJS(scheduler_exports)),{configurationErrorTask:o}=(init_task(),__toCommonJS(task_exports)),{asArray:s,filterArray:a,filterPrimitives:c,filterString:l,filterStringOrStringArray:u,filterType:d,getTrailingOptions:p,trailingFunctionArgument:f,trailingOptionsArgument:_}=(init_utils(),__toCommonJS(utils_exports)),{applyPatchTask:m}=(init_apply_patch(),__toCommonJS(apply_patch_exports)),{branchTask:h,branchLocalTask:g,deleteBranchesTask:A,deleteBranchTask:y}=(init_branch(),__toCommonJS(branch_exports)),{checkIgnoreTask:v}=(init_check_ignore(),__toCommonJS(check_ignore_exports)),{checkIsRepoTask:b}=(init_check_is_repo(),__toCommonJS(check_is_repo_exports)),{cloneTask:C,cloneMirrorTask:E}=(init_clone(),__toCommonJS(clone_exports)),{cleanWithOptionsTask:x,isCleanOptionsArray:S}=(init_clean(),__toCommonJS(clean_exports)),{diffSummaryTask:k}=(init_diff(),__toCommonJS(diff_exports)),{fetchTask:D}=(init_fetch(),__toCommonJS(fetch_exports)),{moveTask:w}=(init_move(),__toCommonJS(move_exports)),{pullTask:I}=(init_pull(),__toCommonJS(pull_exports)),{pushTagsTask:T}=(init_push(),__toCommonJS(push_exports)),{addRemoteTask:F,getRemotesTask:R,listRemotesTask:P,remoteTask:N,removeRemoteTask:B}=(init_remote(),__toCommonJS(remote_exports)),{getResetMode:O,resetTask:q}=(init_reset(),__toCommonJS(reset_exports)),{stashListTask:$}=(init_stash_list(),__toCommonJS(stash_list_exports)),{addSubModuleTask:Q,initSubModuleTask:L,subModuleTask:M,updateSubModuleTask:j}=(init_sub_module(),__toCommonJS(sub_module_exports)),{addAnnotatedTagTask:U,addTagTask:J,tagListTask:V}=(init_tag(),__toCommonJS(tag_exports)),{straightThroughBufferTask:H,straightThroughStringTask:G}=(init_task(),__toCommonJS(task_exports));function W(e,t){this._plugins=t,this._executor=new n(e.baseDir,new i(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}function z(e,t,n,r){return"string"!=typeof n?o(`git.${e}() requires a string 'repoPath'`):t(n,d(r,l),p(arguments))}(W.prototype=Object.create(r.prototype)).constructor=W,W.prototype.customBinary=function(e){return this._plugins.reconfigure("binary",e),this},W.prototype.env=function(e,t){return 1===arguments.length&&"object"==typeof e?this._executor.env=e:(this._executor.env=this._executor.env||{})[e]=t,this},W.prototype.stashList=function(e){return this._runTask($(_(arguments)||{},a(e)&&e||[]),f(arguments))},W.prototype.clone=function(){return this._runTask(z("clone",C,...arguments),f(arguments))},W.prototype.mirror=function(){return this._runTask(z("mirror",E,...arguments),f(arguments))},W.prototype.mv=function(e,t){return this._runTask(w(e,t),f(arguments))},W.prototype.checkoutLatestTag=function(e){var t=this;return this.pull((function(){t.tags((function(n,r){t.checkout(r.latest,e)}))}))},W.prototype.pull=function(e,t,n,r){return this._runTask(I(d(e,l),d(t,l),p(arguments)),f(arguments))},W.prototype.fetch=function(e,t){return this._runTask(D(d(e,l),d(t,l),p(arguments)),f(arguments))},W.prototype.silent=function(e){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},W.prototype.tags=function(e,t){return this._runTask(V(p(arguments)),f(arguments))},W.prototype.rebase=function(){return this._runTask(G(["rebase",...p(arguments)]),f(arguments))},W.prototype.reset=function(e){return this._runTask(q(O(e),p(arguments)),f(arguments))},W.prototype.revert=function(e){const t=f(arguments);return"string"!=typeof e?this._runTask(o("Commit must be a string"),t):this._runTask(G(["revert",...p(arguments,0,!0),e]),t)},W.prototype.addTag=function(e){const t="string"==typeof e?J(e):o("Git.addTag requires a tag name");return this._runTask(t,f(arguments))},W.prototype.addAnnotatedTag=function(e,t){return this._runTask(U(e,t),f(arguments))},W.prototype.deleteLocalBranch=function(e,t,n){return this._runTask(y(e,"boolean"==typeof t&&t),f(arguments))},W.prototype.deleteLocalBranches=function(e,t,n){return this._runTask(A(e,"boolean"==typeof t&&t),f(arguments))},W.prototype.branch=function(e,t){return this._runTask(h(p(arguments)),f(arguments))},W.prototype.branchLocal=function(e){return this._runTask(g(),f(arguments))},W.prototype.raw=function(e){const t=!Array.isArray(e),n=[].slice.call(t?arguments:e,0);for(let e=0;ee.removeEventListener("abort",r)))}};return[{type:"spawn.before",action(t,n){e.aborted&&n.kill(new GitPluginError(void 0,"abort","Abort already signaled"))}},t]}function isConfigSwitch(e){return"string"==typeof e&&"-c"===e.trim().toLowerCase()}function preventProtocolOverride(e,t){if(isConfigSwitch(e)&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new GitPluginError(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}function preventUploadPack(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new GitPluginError(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if("clone"===t&&/^\s*-u\b/.test(e))throw new GitPluginError(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if("push"===t&&/^\s*--exec\b/.test(e))throw new GitPluginError(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}function blockUnsafeOperationsPlugin({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action:(n,r)=>(n.forEach(((i,o)=>{const s=o[...t,...e]}}init_git_response_error(),init_task_configuration_error(),init_check_is_repo(),init_clean(),init_config(),init_diff_name_status(),init_grep(),init_reset(),init_utils(),init_utils();var never=distExports$1.deferred().promise;function completionDetectionPlugin({onClose:e=!0,onExit:t=50}={}){function n(e,t,n){!1!==e&&(!0===e?t.promise:t.promise.then((()=>delay(e)))).then(n.done)}return{type:"spawn.after",action(r,i){return __async(this,arguments,(function*(r,{spawned:i,close:o}){var s,a;const c=function(){let r=-1;const i={close:distExports$1.deferred(),closeTimeout:distExports$1.deferred(),exit:distExports$1.deferred(),exitTimeout:distExports$1.deferred()},o=Promise.race([!1===e?never:i.closeTimeout.promise,!1===t?never:i.exitTimeout.promise]);return n(e,i.close,i.closeTimeout),n(t,i.exit,i.exitTimeout),{close(e){r=e,i.close.done()},exit(e){r=e,i.exit.done()},get exitCode(){return r},result:o}}();let l=!0,u=()=>{l=!1};null==(s=i.stdout)||s.on("data",u),null==(a=i.stderr)||a.on("data",u),i.on("error",u),i.on("close",(e=>c.close(e))),i.on("exit",(e=>c.exit(e)));try{yield c.result,l&&(yield delay(50)),o(c.exitCode)}catch(e){o(c.exitCode,e)}}))}}}init_utils();var WRONG_NUMBER_ERR="Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings",WRONG_CHARS_ERR="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function isBadArgument(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function toBinaryConfig(e,t){if(e.length<1||e.length>2)throw new GitPluginError(void 0,"binary",WRONG_NUMBER_ERR);if(e.some(isBadArgument)){if(!t)throw new GitPluginError(void 0,"binary",WRONG_CHARS_ERR);console.warn(WRONG_CHARS_ERR)}const[n,r]=e;return{binary:n,prefix:r}}function customBinaryPlugin(e,t=["git"],n=!1){let r=toBinaryConfig(asArray(t),n);e.on("binary",(e=>{r=toBinaryConfig(asArray(e),n)})),e.append("spawn.binary",(()=>r.binary)),e.append("spawn.args",(e=>r.prefix?[r.prefix,...e]:e))}function isTaskError(e){return!(!e.exitCode||!e.stdErr.length)}function getErrorMessage(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function errorDetectionHandler(e=!1,t=isTaskError,n=getErrorMessage){return(r,i)=>!e&&r||!t(i)?r:n(i)}function errorDetectionPlugin(e){return{type:"task.error",action(t,n){const r=e(t.error,{stdErr:n.stdErr,stdOut:n.stdOut,exitCode:n.exitCode});return Buffer.isBuffer(r)?{error:new GitError(void 0,r.toString("utf-8"))}:{error:r}}}}init_git_error(),init_utils();var PluginStore=class{constructor(){this.plugins=new Set,this.events=new EventEmitter}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){const n=append(this.plugins,{type:e,action:t});return()=>this.plugins.delete(n)}add(e){const t=[];return asArray(e).forEach((e=>e&&this.plugins.add(append(t,e)))),()=>{t.forEach((e=>this.plugins.delete(e)))}}exec(e,t,n){let r=t;const i=Object.freeze(Object.create(n));for(const t of this.plugins)t.type===e&&(r=t.action(r,i));return r}};function progressMonitorPlugin(e){const t="--progress",n=["checkout","clone","fetch","pull","push"],r={type:"spawn.args",action:(e,r)=>n.includes(r.method)?including(e,t):e};return[r,{type:"spawn.after",action(n,r){var i;r.commands.includes(t)&&(null==(i=r.spawned.stderr)||i.on("data",(t=>{const n=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString("utf8"));n&&e({method:r.method,stage:progressEventStage(n[1]),progress:asNumber(n[2]),processed:asNumber(n[3]),total:asNumber(n[4])})})))}}]}function progressEventStage(e){return String(e.toLowerCase().split(" ",1))||"unknown"}function spawnOptionsPlugin(e){const t=pick(e,["uid","gid"]);return{type:"spawn.options",action:e=>__spreadValues(__spreadValues({},t),e)}}function timeoutPlugin({block:e,stdErr:t=!0,stdOut:n=!0}){if(e>0)return{type:"spawn.after",action(r,i){var o,s;let a;function c(){a&&clearTimeout(a),a=setTimeout(u,e)}function l(){var e,t;null==(e=i.spawned.stdout)||e.off("data",c),null==(t=i.spawned.stderr)||t.off("data",c),i.spawned.off("exit",l),i.spawned.off("close",l),a&&clearTimeout(a)}function u(){l(),i.kill(new GitPluginError(void 0,"timeout","block timeout reached"))}n&&(null==(o=i.spawned.stdout)||o.on("data",c)),t&&(null==(s=i.spawned.stderr)||s.on("data",c)),i.spawned.on("exit",l),i.spawned.on("close",l),c()}}}function suffixPathsPlugin(){return{type:"spawn.args",action(e){const t=[];let n;function r(e){(n=n||[]).push(...e)}for(let n=0;nisPathSpec(e)&&toPaths(e)||e)));break}t.push(i)}}return n?[...t,"--",...n.map(String)]:t}}}init_utils(),init_utils(),init_pathspec(),init_utils();var Git=require_git();function gitInstanceFactory(e,t){var n;const r=new PluginStore,i=createInstanceConfig(e&&("string"==typeof e?{baseDir:e}:e)||{},t);if(!folderExists(i.baseDir))throw new GitConstructError(i,"Cannot use simple-git on a directory that does not exist");return Array.isArray(i.config)&&r.add(commandConfigPrefixingPlugin(i.config)),r.add(blockUnsafeOperationsPlugin(i.unsafe)),r.add(suffixPathsPlugin()),r.add(completionDetectionPlugin(i.completion)),i.abort&&r.add(abortPlugin(i.abort)),i.progress&&r.add(progressMonitorPlugin(i.progress)),i.timeout&&r.add(timeoutPlugin(i.timeout)),i.spawnOptions&&r.add(spawnOptionsPlugin(i.spawnOptions)),r.add(errorDetectionPlugin(errorDetectionHandler(!0))),i.errors&&r.add(errorDetectionPlugin(i.errors)),customBinaryPlugin(r,i.binary,null==(n=i.unsafe)?void 0:n.allowUnsafeCustomBinary),new Git(i,r)}init_git_response_error();var simpleGit=gitInstanceFactory,polyfills,hasRequiredPolyfills,legacyStreams,hasRequiredLegacyStreams,clone_1$1,hasRequiredClone$1,gracefulFs,hasRequiredGracefulFs;function requirePolyfills(){if(hasRequiredPolyfills)return polyfills;hasRequiredPolyfills=1;var e=require$$0$n,t=process.cwd,n=null,r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=t.call(process)),n};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var i=process.chdir;process.chdir=function(e){n=null,i.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,i)}return polyfills=function(t){e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(n,r,i){t.open(n,e.O_WRONLY|e.O_SYMLINK,r,(function(e,n){e?i&&i(e):t.fchmod(n,r,(function(e){t.close(n,(function(t){i&&i(e||t)}))}))}))},t.lchmodSync=function(n,r){var i,o=t.openSync(n,e.O_WRONLY|e.O_SYMLINK,r),s=!0;try{i=t.fchmodSync(o,r),s=!1}finally{if(s)try{t.closeSync(o)}catch(e){}else t.closeSync(o)}return i}}(t);t.lutimes||function(t){e.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(n,r,i,o){t.open(n,e.O_SYMLINK,(function(e,n){e?o&&o(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){o&&o(e||t)}))}))}))},t.lutimesSync=function(n,r,i){var o,s=t.openSync(n,e.O_SYMLINK),a=!0;try{o=t.futimesSync(s,r,i),a=!1}finally{if(a)try{t.closeSync(s)}catch(e){}else t.closeSync(s)}return o}):t.futimes&&(t.lutimes=function(e,t,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(e,t,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(e,t,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===r&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,r,i){var o=Date.now(),s=0;e(n,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){t.stat(r,(function(t,o){t&&"ENOENT"===t.code?e(n,r,a):i(c)}))}),s),void(s<100&&(s+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename));function n(e){return e?function(n,r,i){return e.call(t,n,r,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(e){if(!l(e))throw e}}:e}function o(e){return e?function(n,r,i,o){return e.call(t,n,r,i,(function(e){l(e)&&(e=null),o&&o.apply(this,arguments)}))}:e}function s(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(e){if(!l(e))throw e}}:e}function a(e){return e?function(n,r,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,o):e.call(t,n,o)}:e}function c(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:e}function l(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}t.read="function"!=typeof t.read?t.read:function(e){function n(n,r,i,o,s,a){var c;if(a&&"function"==typeof a){var l=0;c=function(u,d,p){if(u&&"EAGAIN"===u.code&&l<10)return l++,e.call(t,n,r,i,o,s,c);a.apply(this,arguments)}}return e.call(t,n,r,i,o,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(u=t.readSync,function(e,n,r,i,o){for(var s=0;;)try{return u.call(t,e,n,r,i,o)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}});var u},polyfills}function requireLegacyStreams(){if(hasRequiredLegacyStreams)return legacyStreams;hasRequiredLegacyStreams=1;var e=require$$0$b.Stream;return legacyStreams=function(t){return{ReadStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var s=Object.keys(i),a=0,c=s.length;athis.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){o._read()}));t.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()}))},WriteStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}},legacyStreams}function requireClone$1(){if(hasRequiredClone$1)return clone_1$1;hasRequiredClone$1=1,clone_1$1=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var n={__proto__:e(t)};else n=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n};var e=Object.getPrototypeOf||function(e){return e.__proto__};return clone_1$1}function requireGracefulFs(){if(hasRequiredGracefulFs)return gracefulFs;hasRequiredGracefulFs=1;var e,t,n=require$$0$7,r=requirePolyfills(),i=requireLegacyStreams(),o=requireClone$1(),s=require$$0__default;function a(t,n){Object.defineProperty(t,e,{get:function(){return n}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(e=Symbol.for("graceful-fs.queue"),t=Symbol.for("graceful-fs.previous")):(e="___graceful-fs.queue",t="___graceful-fs.previous");var c,l=function(){};if(s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!n[e]){var u=commonjsGlobal[e]||[];a(n,u),n.close=function(e){function r(t,r){return e.call(n,t,(function(e){e||f(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(r,t,{value:e}),r}(n.close),n.closeSync=function(e){function r(t){e.apply(n,arguments),f()}return Object.defineProperty(r,t,{value:e}),r}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){l(n[e]),require$$0$f.equal(n[e].length,0)}))}function d(e){r(e),e.gracefulify=d,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,r){"function"==typeof n&&(r=n,n=null);return function e(n,r,i,o){return t(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):p([e,[n,r,i],t,o||Date.now(),Date.now()])}))}(e,n,r)};var n=e.writeFile;e.writeFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,o,s){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):p([e,[t,r,i,o],n,s||Date.now(),Date.now()])}))}(e,t,r,i)};var o=e.appendFile;o&&(e.appendFile=function(e,t,n,r){"function"==typeof n&&(r=n,n=null);return function e(t,n,r,i,s){return o(t,n,r,(function(o){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):p([e,[t,n,r,i],o,s||Date.now(),Date.now()])}))}(e,t,n,r)});var s=e.copyFile;s&&(e.copyFile=function(e,t,n,r){"function"==typeof n&&(r=n,n=0);return function e(t,n,r,i,o){return s(t,n,r,(function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):p([e,[t,n,r,i],s,o||Date.now(),Date.now()])}))}(e,t,n,r)});var a=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var r=c.test(process.version)?function(e,t,n,r){return a(e,i(e,t,n,r))}:function(e,t,n,r){return a(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(s&&s.sort&&s.sort(),"function"==typeof n&&n.call(this,o,s)):p([r,[e,t,n],o,i||Date.now(),Date.now()])}}};var c=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=i(e);h=l.ReadStream,g=l.WriteStream}var u=e.ReadStream;u&&(h.prototype=Object.create(u.prototype),h.prototype.open=function(){var e=this;y(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var f=e.WriteStream;f&&(g.prototype=Object.create(f.prototype),g.prototype.open=function(){var e=this;y(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0});var _=h;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(e){_=e},enumerable:!0,configurable:!0});var m=g;function h(e,t){return this instanceof h?(u.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function g(e,t){return this instanceof g?(f.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var A=e.open;function y(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,i,o){return A(t,n,r,(function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):p([e,[t,n,r,i],s,o||Date.now(),Date.now()])}))}(e,t,n,r)}return e.open=y,e}function p(t){l("ENQUEUE",t[0].name,t[1]),n[e].push(t),_()}function f(){for(var t=Date.now(),r=0;r2&&(n[e][r][3]=t,n[e][r][4]=t);_()}function _(){if(clearTimeout(c),c=void 0,0!==n[e].length){var t=n[e].shift(),r=t[0],i=t[1],o=t[2],s=t[3],a=t[4];if(void 0===s)l("RETRY",r.name,i),r.apply(null,i);else if(Date.now()-s>=6e4){l("TIMEOUT",r.name,i);var u=i.pop();"function"==typeof u&&u.call(null,o)}else{var d=Date.now()-a,p=Math.max(a-s,1);d>=Math.min(1.2*p,100)?(l("RETRY",r.name,i),r.apply(null,i.concat([s]))):n[e].push(t)}void 0===c&&(c=setTimeout(_,0))}}return commonjsGlobal[e]||a(commonjsGlobal,n[e]),gracefulFs=d(o(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(gracefulFs=d(n),n.__patched=!0),gracefulFs}var gracefulFsExports=requireGracefulFs(),fs=getDefaultExportFromCjs(gracefulFsExports);const homeDirectory=require$$0$9.homedir(),{env:env}=process,xdgData=env.XDG_DATA_HOME||(homeDirectory?require$$0$8.join(homeDirectory,".local","share"):void 0),xdgConfig=env.XDG_CONFIG_HOME||(homeDirectory?require$$0$8.join(homeDirectory,".config"):void 0);env.XDG_STATE_HOME||homeDirectory&&require$$0$8.join(homeDirectory,".local","state"),env.XDG_CACHE_HOME||homeDirectory&&require$$0$8.join(homeDirectory,".cache"),env.XDG_RUNTIME_DIR;const xdgDataDirectories=(env.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");xdgData&&xdgDataDirectories.unshift(xdgData);const xdgConfigDirectories=(env.XDG_CONFIG_DIRS||"/etc/xdg").split(":");xdgConfig&&xdgConfigDirectories.unshift(xdgConfig);const attemptifyAsync=(e,t)=>function(...n){return e.apply(void 0,n).catch(t)},attemptifySync=(e,t)=>function(...n){try{return e.apply(void 0,n)}catch(e){return t(e)}},IS_USER_ROOT=!!process$2.getuid&&!process$2.getuid(),LIMIT_FILES_DESCRIPTORS=1e4,NOOP=()=>{},Handlers={isChangeErrorOk:e=>{if(!Handlers.isNodeError(e))return!1;const{code:t}=e;return"ENOSYS"===t||!(IS_USER_ROOT||"EINVAL"!==t&&"EPERM"!==t)},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!Handlers.isNodeError(e))return!1;const{code:t}=e;return"EMFILE"===t||"ENFILE"===t||"EAGAIN"===t||"EBUSY"===t||"EACCESS"===t||"EACCES"===t||"EACCS"===t||"EPERM"===t},onChangeError:e=>{if(!Handlers.isNodeError(e))throw e;if(!Handlers.isChangeErrorOk(e))throw e}};class RetryfyQueue{constructor(){this.interval=25,this.intervalId=void 0,this.limit=LIMIT_FILES_DESCRIPTORS,this.queueActive=new Set,this.queueWaiting=new Set,this.init=()=>{this.intervalId||(this.intervalId=setInterval(this.tick,this.interval))},this.reset=()=>{this.intervalId&&(clearInterval(this.intervalId),delete this.intervalId)},this.add=e=>{this.queueWaiting.add(e),this.queueActive.size{this.queueWaiting.delete(e),this.queueActive.delete(e)},this.schedule=()=>new Promise((e=>{const t=()=>this.remove(n),n=()=>e(t);this.add(n)})),this.tick=()=>{if(!(this.queueActive.size>=this.limit)){if(!this.queueWaiting.size)return this.reset();for(const e of this.queueWaiting){if(this.queueActive.size>=this.limit)break;this.queueWaiting.delete(e),this.queueActive.add(e),e()}}}}}var RetryfyQueue$1=new RetryfyQueue;const retryifyAsync=(e,t)=>function(n){return function r(...i){return RetryfyQueue$1.schedule().then((o=>e.apply(void 0,i).then((e=>(o(),e)),(e=>{if(o(),Date.now()>=n)throw e;if(t(e)){const e=Math.round(100*Math.random()),t=new Promise((t=>setTimeout(t,e)));return t.then((()=>r.apply(void 0,i)))}throw e}))))}},retryifySync=(e,t)=>function(n){return function r(...i){try{return e.apply(void 0,i)}catch(e){if(Date.now()>n)throw e;if(t(e))return r.apply(void 0,i);throw e}}},FS={attempt:{chmod:attemptifyAsync(promisify(fs$6.chmod),Handlers.onChangeError),chown:attemptifyAsync(promisify(fs$6.chown),Handlers.onChangeError),close:attemptifyAsync(promisify(fs$6.close),NOOP),fsync:attemptifyAsync(promisify(fs$6.fsync),NOOP),mkdir:attemptifyAsync(promisify(fs$6.mkdir),NOOP),realpath:attemptifyAsync(promisify(fs$6.realpath),NOOP),stat:attemptifyAsync(promisify(fs$6.stat),NOOP),unlink:attemptifyAsync(promisify(fs$6.unlink),NOOP),chmodSync:attemptifySync(fs$6.chmodSync,Handlers.onChangeError),chownSync:attemptifySync(fs$6.chownSync,Handlers.onChangeError),closeSync:attemptifySync(fs$6.closeSync,NOOP),existsSync:attemptifySync(fs$6.existsSync,NOOP),fsyncSync:attemptifySync(fs$6.fsync,NOOP),mkdirSync:attemptifySync(fs$6.mkdirSync,NOOP),realpathSync:attemptifySync(fs$6.realpathSync,NOOP),statSync:attemptifySync(fs$6.statSync,NOOP),unlinkSync:attemptifySync(fs$6.unlinkSync,NOOP)},retry:{close:retryifyAsync(promisify(fs$6.close),Handlers.isRetriableError),fsync:retryifyAsync(promisify(fs$6.fsync),Handlers.isRetriableError),open:retryifyAsync(promisify(fs$6.open),Handlers.isRetriableError),readFile:retryifyAsync(promisify(fs$6.readFile),Handlers.isRetriableError),rename:retryifyAsync(promisify(fs$6.rename),Handlers.isRetriableError),stat:retryifyAsync(promisify(fs$6.stat),Handlers.isRetriableError),write:retryifyAsync(promisify(fs$6.write),Handlers.isRetriableError),writeFile:retryifyAsync(promisify(fs$6.writeFile),Handlers.isRetriableError),closeSync:retryifySync(fs$6.closeSync,Handlers.isRetriableError),fsyncSync:retryifySync(fs$6.fsyncSync,Handlers.isRetriableError),openSync:retryifySync(fs$6.openSync,Handlers.isRetriableError),readFileSync:retryifySync(fs$6.readFileSync,Handlers.isRetriableError),renameSync:retryifySync(fs$6.renameSync,Handlers.isRetriableError),statSync:retryifySync(fs$6.statSync,Handlers.isRetriableError),writeSync:retryifySync(fs$6.writeSync,Handlers.isRetriableError),writeFileSync:retryifySync(fs$6.writeFileSync,Handlers.isRetriableError)}},DEFAULT_ENCODING="utf8",DEFAULT_FILE_MODE=438,DEFAULT_FOLDER_MODE=511,DEFAULT_WRITE_OPTIONS={},DEFAULT_USER_UID=os$1.userInfo().uid,DEFAULT_USER_GID=os$1.userInfo().gid,DEFAULT_TIMEOUT_SYNC=1e3,IS_POSIX=!!process$2.getuid;process$2.getuid&&process$2.getuid();const LIMIT_BASENAME_LENGTH=128,isException=e=>e instanceof Error&&"code"in e,isString$1=e=>"string"==typeof e,isUndefined=e=>void 0===e,IS_LINUX="linux"===process$2.platform,IS_WINDOWS="win32"===process$2.platform,Signals=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];IS_WINDOWS||Signals.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),IS_LINUX&&Signals.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");class Interceptor{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=e=>{if(!this.exited){this.exited=!0;for(const e of this.callbacks)e();e&&(IS_WINDOWS&&"SIGINT"!==e&&"SIGTERM"!==e&&"SIGKILL"!==e?process$2.kill(process$2.pid,"SIGTERM"):process$2.kill(process$2.pid,e))}},this.hook=()=>{process$2.once("exit",(()=>this.exit()));for(const e of Signals)try{process$2.once(e,(()=>this.exit(e)))}catch{}},this.register=e=>(this.callbacks.add(e),()=>{this.callbacks.delete(e)}),this.hook()}}var Interceptor$1=new Interceptor;const whenExit=Interceptor$1.register,Temp={store:{},create:e=>{const t=`000000${Math.floor(16777215*Math.random()).toString(16)}`.slice(-6);return`${e}${`.tmp-${Date.now().toString().slice(-10)}${t}`}`},get:(e,t,n=!0)=>{const r=Temp.truncate(t(e));if(r in Temp.store)return Temp.get(e,t,n);Temp.store[r]=n;return[r,()=>delete Temp.store[r]]},purge:e=>{Temp.store[e]&&(delete Temp.store[e],FS.attempt.unlink(e))},purgeSync:e=>{Temp.store[e]&&(delete Temp.store[e],FS.attempt.unlinkSync(e))},purgeSyncAll:()=>{for(const e in Temp.store)Temp.purgeSync(e)},truncate:e=>{const t=path$1.basename(e);if(t.length<=LIMIT_BASENAME_LENGTH)return e;const n=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!n)return e;const r=t.length-LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${n[1]}${n[2].slice(0,-r)}${n[3]}`}};function writeFileSync(e,t,n=DEFAULT_WRITE_OPTIONS){if(isString$1(n))return writeFileSync(e,t,{encoding:n});const r=Date.now()+((n.timeout??DEFAULT_TIMEOUT_SYNC)||-1);let i=null,o=null,s=null;try{const a=FS.attempt.realpathSync(e),c=!!a;e=a||e,[o,i]=Temp.get(e,n.tmpCreate||Temp.create,!(!1===n.tmpPurge));const l=IS_POSIX&&isUndefined(n.chown),u=isUndefined(n.mode);if(c&&(l||u)){const t=FS.attempt.statSync(e);t&&(n={...n},l&&(n.chown={uid:t.uid,gid:t.gid}),u&&(n.mode=t.mode))}if(!c){const t=path$1.dirname(e);FS.attempt.mkdirSync(t,{mode:DEFAULT_FOLDER_MODE,recursive:!0})}s=FS.retry.openSync(r)(o,"w",n.mode||DEFAULT_FILE_MODE),n.tmpCreated&&n.tmpCreated(o),isString$1(t)?FS.retry.writeSync(r)(s,t,0,n.encoding||DEFAULT_ENCODING):isUndefined(t)||FS.retry.writeSync(r)(s,t,0,t.length,0),!1!==n.fsync&&(!1!==n.fsyncWait?FS.retry.fsyncSync(r)(s):FS.attempt.fsync(s)),FS.retry.closeSync(r)(s),s=null,!n.chown||n.chown.uid===DEFAULT_USER_UID&&n.chown.gid===DEFAULT_USER_GID||FS.attempt.chownSync(o,n.chown.uid,n.chown.gid),n.mode&&n.mode!==DEFAULT_FILE_MODE&&FS.attempt.chmodSync(o,n.mode);try{FS.retry.renameSync(r)(o,e)}catch(t){if(!isException(t))throw t;if("ENAMETOOLONG"!==t.code)throw t;FS.retry.renameSync(r)(o,Temp.truncate(e))}i(),o=null}finally{s&&FS.attempt.closeSync(s),o&&Temp.purge(o)}}whenExit(Temp.purgeSyncAll);const isObject$4=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},disallowedKeys=new Set(["__proto__","prototype","constructor"]),digits=new Set("0123456789");function getPathSegments(e){const t=[];let n="",r="start",i=!1;for(const o of e)switch(o){case"\\":if("index"===r)throw new Error("Invalid character in an index");if("indexEnd"===r)throw new Error("Invalid character after an index");i&&(n+=o),r="property",i=!i;break;case".":if("index"===r)throw new Error("Invalid character in an index");if("indexEnd"===r){r="property";break}if(i){i=!1,n+=o;break}if(disallowedKeys.has(n))return[];t.push(n),n="",r="property";break;case"[":if("index"===r)throw new Error("Invalid character in an index");if("indexEnd"===r){r="index";break}if(i){i=!1,n+=o;break}if("property"===r){if(disallowedKeys.has(n))return[];t.push(n),n=""}r="index";break;case"]":if("index"===r){t.push(Number.parseInt(n,10)),n="",r="indexEnd";break}if("indexEnd"===r)throw new Error("Invalid character after an index");default:if("index"===r&&!digits.has(o))throw new Error("Invalid character in an index");if("indexEnd"===r)throw new Error("Invalid character after an index");"start"===r&&(r="property"),i&&(i=!1,n+="\\"),n+=o}switch(i&&(n+="\\"),r){case"property":if(disallowedKeys.has(n))return[];t.push(n);break;case"index":throw new Error("Index was not closed");case"start":t.push("")}return t}function isStringIndex(e,t){if("number"!=typeof t&&Array.isArray(e)){const n=Number.parseInt(t,10);return Number.isInteger(n)&&e[n]===e[t]}return!1}function assertNotStringIndex(e,t){if(isStringIndex(e,t))throw new Error("Cannot use string index")}function getProperty(e,t,n){if(!isObject$4(e)||"string"!=typeof t)return void 0===n?e:n;const r=getPathSegments(t);if(0===r.length)return n;for(let t=0;te.json())).then((t=>t["dist-tags"][e])).catch((e=>(error(`error fetching version from npm registry: ${e.message}`),getPkgVersion.call(this)))):getPkgVersion.call(this)}async function getMajorPkgVersion(e){return semver.major(await getPkgVersionFromNPM.call(this,e))}const configstore=new Configstore(`${pkg.name}-${process.env.NODE_ENV||"production"}${process.env.VITEST_POOL_ID||""}${process.env.VITEST_WORKER_ID||""}`);async function promptTerminal(e,t){function n(){isCI()&&(process.stdout.write("\n"),process.stdout.write("Yikes! Looks like we were about to prompt you for something in a CI environment. Are you missing an argument?"),process.stdout.write("\n\n"),process.stdout.write("Try running `rdme --help` or get in touch at support@readme.io."),process.stdout.write("\n\n"),process.exit(1))}return Array.isArray(e)?e=e.map((e=>({onRender:n,...e}))):e.onRender=n,prompts(e,{onCancel:()=>{process.stdout.write("\n"),process.stdout.write("Thanks for using rdme! See you soon โœŒ๏ธ"),process.stdout.write("\n\n"),process.exit(1)},...t})}const cleanFileName=e=>e.replace(/[^a-z0-9]/gi,"-");function validateFilePath(e,t=e=>e){if(e.length){const n=t(e);return!fs$6.existsSync(n)||"Specified output path already exists."}return"An output path must be supplied."}function validateSubdomain(e){return/^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$/.test(e)||"Project subdomain must contain only letters, numbers and dashes."}const yamlBase="# This GitHub Actions workflow was auto-generated by the `rdme` cli on {{timestamp}}\n# You can view our full documentation here: https://docs.readme.com/docs/rdme\nname: ReadMe GitHub Action ๐Ÿฆ‰\n\non:\n push:\n branches:\n # This workflow will run every time you push code to the following branch: `{{branch}}`\n # Check out GitHub's docs for more info on configuring this:\n # https://docs.github.com/actions/using-workflows/events-that-trigger-workflows\n - {{branch}}\n\njobs:\n rdme-{{cleanCommand}}:\n runs-on: ubuntu-latest\n steps:\n - name: Check out repo ๐Ÿ“š\n uses: actions/checkout@v4\n\n - name: Run `{{command}}` command ๐Ÿš€\n uses: readmeio/rdme@{{rdmeVersion}}\n with:\n rdme: {{commandString}}\n",getConfigStoreKey=e=>`createGHA.${e}`,GITHUB_WORKFLOW_DIR=".github/workflows",GITHUB_SECRET_NAME="README_API_KEY",git=simpleGit(),getGHAFileName=e=>path$1.join(GITHUB_WORKFLOW_DIR,`${cleanFileName(e).toLowerCase()}.yml`);function getKey$1(e,t){return!!Object.keys(e).some((e=>"key"===e))&&`โ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ข${t.key?.slice(-5)||""}`}function constructCommandString(e,t,n,r){return`${e} ${Object.keys(t).map((e=>r[e])).filter(Boolean).join(" ")} ${Object.keys(n).map((e=>{const t=r[e];return"key"===e?`--key=\${{ secrets.${GITHUB_SECRET_NAME} }}`:"github"!==e&&("boolean"===n[e].type&&t?`--${e}`:!!t&&`--${e}=${t}`)})).filter(Boolean).join(" ")}`.trim()}async function getGitData(){const e=/^ {2}HEAD branch: /g,t=/^ {2}HEAD branch:.*/gm,n=await git.checkIsRepo().catch((e=>(this.debug(`[getGitData] error running git repo check: ${e.message}`),!1)));let r,i;this.debug(`[getGitData] isRepo result: ${n}`);const o=await git.remote([]).catch((e=>(this.debug(`[getGitData] error grabbing git remotes: ${e.message}`),"")));if(this.debug(`[getGitData] rawRemotes result: ${o}`),o){const n=o.split("\n")[0];this.debug(`[getGitData] remote result: ${n}`);const s=await git.remote(["show",n]).catch((e=>(this.debug(`[getGitData] error accessing remote: ${e.message}`),"")));this.debug(`[getGitData] rawRemote result: ${s}`);const a=t.exec(s)?.[0];this.debug(`[getGitData] rawHead result: ${a}`),a&&(i=a.replace(e,""));const c=await git.remote(["-v"]);this.debug(`[getGitData] remotesList result: ${c}`),r=/github/.test(c)}this.debug(`[getGitData] containsGitHubRemote result: ${r}`),this.debug(`[getGitData] defaultBranch result: ${i}`);const s=await git.revparse(["--show-toplevel"]).catch((e=>(this.debug(`[getGitData] error grabbing git root: ${e.message}`),"")));return this.debug(`[getGitData] repoRoot result: ${s}`),{containsGitHubRemote:r,defaultBranch:i,isRepo:n,repoRoot:s}}async function createGHA(e,t,n){const{args:r,flags:i,id:o}=t;if(!o)throw new Error("unable to determine command ID yikes");if(this.debug(`running GHA onboarding for ${o} command`),this.debug(`opts used in createGHA: ${JSON.stringify(n)}`),!n.github&&(isCI()||isNpmScript()||isTest()&&!process.env.TEST_RDME_CREATEGHA))return this.debug("not running GHA onboarding workflow in CI, npm script, or default test env, exiting ๐Ÿ‘‹"),e;const{containsGitHubRemote:s,defaultBranch:a,isRepo:c,repoRoot:l}=await getGitData.call(this),u=configstore.get(getConfigStoreKey(l));this.debug(`repo value in config: ${u}`);const d=await getMajorPkgVersion.call(this);if(this.debug(`major pkg version: ${d}`),!n.github&&(!c||u===d||c&&!s))return this.debug("not running GHA onboarding workflow, exiting"),e;e&&info(e,{includeEmojiPrefix:!1}),n.github?info(chalk.bold("\n๐Ÿš€ Let's get you set up with GitHub Actions! ๐Ÿš€\n"),{includeEmojiPrefix:!1}):info(["",chalk.bold("๐Ÿ™ Looks like you're running this command in a GitHub Repository! ๐Ÿ™"),"",`๐Ÿš€ With a few quick clicks, you can run this \`${o}\` command via GitHub Actions (${chalk.underline("https://github.com/features/actions")})`,"",`โœจ This means it will run ${chalk.italic("automagically")} with every push to a branch of your choice!`,""].join("\n"),{includeEmojiPrefix:!1});const p=process.cwd();l&&l!==p&&(process.chdir(l),this.debug(`switching working directory from ${p} to ${process.cwd()}`)),prompts.override({shouldCreateGHA:n.github});const{branch:f,filePath:_,shouldCreateGHA:m}=await promptTerminal([{message:"Would you like to add a GitHub Actions workflow?",name:"shouldCreateGHA",type:"confirm",initial:!0},{message:"What GitHub branch should this workflow run on?",name:"branch",type:"text",initial:a||"main"},{message:"What would you like to name the GitHub Actions workflow file?",name:"filePath",type:"text",initial:cleanFileName(`rdme-${o}`),format:e=>getGHAFileName(e),validate:e=>validateFilePath(e,getGHAFileName)}],{onSubmit:(e,t,n)=>!n.shouldCreateGHA});if(!m)throw configstore.set(getConfigStoreKey(l),d),new Error("GitHub Actions workflow creation cancelled. If you ever change your mind, you can run this command again with the `--github` flag.");const h={branch:f,cleanCommand:cleanFileName(o),command:o,commandString:constructCommandString(o,r,i,n),rdmeVersion:`v${d}`,timestamp:(new Date).toISOString()};this.debug(`data for resolver: ${JSON.stringify(h)}`);let g=yamlBase;Object.keys(h).forEach((e=>{g=g.replace(new RegExp(`{{${e}}}`,"g"),h[e])})),fs$6.existsSync(GITHUB_WORKFLOW_DIR)||(this.debug("GHA workflow directory does not exist, creating"),fs$6.mkdirSync(GITHUB_WORKFLOW_DIR,{recursive:!0})),fs$6.writeFileSync(_,g);const A=[chalk.green("\nYour GitHub Actions workflow file has been created! โœจ\n")],y=getKey$1(i,n);return y?A.push(chalk.bold("Almost done! Just a couple more steps:"),`1. Push your newly created file (${chalk.underline(_)}) to GitHub ๐Ÿš€`,`2. Create a GitHub secret called ${chalk.bold(GITHUB_SECRET_NAME)} and populate the value with your ReadMe API key (${y}) ๐Ÿ”‘`,"",`๐Ÿ” Check out GitHub's docs for more info on creating encrypted secrets (${chalk.underline("https://docs.github.com/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository")})`):A.push(`${chalk.bold("Almost done!")} Push your newly created file (${chalk.underline(_)}) to GitHub and you're all set ๐Ÿš€`),A.push("",`๐Ÿฆ‰ If you have any more questions, feel free to drop us a line! ${chalk.underline("support@readme.io")}`,""),Promise.resolve(A.join("\n"))}const SUCCESS_NO_CONTENT=204;function getProxy(){return process.env.HTTPS_PROXY||process.env.https_proxy}function stripQuotes(e){return e?e.replace(/(^"|[",]*$)/g,""):""}function parseWarningHeader(e){try{let t;return e.split(/([0-9]{3} [a-z0-9.@\-/]*) /g).reduce(((e,n)=>{const r=(n=n.trim()).match(/^([0-9]{3}) (.*)/);if(r)t={code:r[1],agent:r[2],message:""};else if(n){const r=n.split(/" "/);r&&(t.message=stripQuotes(r[0]),t.date=stripQuotes(r[1]),e.push(t))}return e}),[])}catch(t){return debug(`error parsing warning header: ${t.message}`),[{code:"199",agent:"-",message:e}]}}function getUserAgent(){return`rdme${isGHA()?"-github":""}/${getPkgVersion()}`}async function normalizeFilePath(e){if("path"===e.fileType){const t=await git.revparse(["--show-toplevel"]).catch((e=>(debug(`[fetch] error grabbing git root: ${e.message}`),"")));return path$1.relative(t,e.filePath)}return e.filePath}function sanitizeHeaders(e){const t=Array.from(e.entries()).reduce(((e,t)=>(e[t[0]]="authorization"===t[0].toLowerCase()?"redacted":t[1],e)),{});return JSON.stringify(t)}async function readmeAPIv1Fetch(e,t={headers:new Headers},n={filePath:"",fileType:!1}){let r="cli",i=t.headers;if(t.headers instanceof Headers||(i=new Headers(t.headers)),i.set("User-Agent",getUserAgent()),isGHA()){r="cli-gh",process.env.GITHUB_REPOSITORY&&i.set("x-github-repository",process.env.GITHUB_REPOSITORY),process.env.GITHUB_RUN_ATTEMPT&&i.set("x-github-run-attempt",process.env.GITHUB_RUN_ATTEMPT),process.env.GITHUB_RUN_ID&&i.set("x-github-run-id",process.env.GITHUB_RUN_ID),process.env.GITHUB_RUN_NUMBER&&i.set("x-github-run-number",process.env.GITHUB_RUN_NUMBER),process.env.GITHUB_SHA&&i.set("x-github-sha",process.env.GITHUB_SHA);const e=await normalizeFilePath(n);if(e)try{const t=new URL(`${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/blob/${process.env.GITHUB_SHA}/${e}`).href;i.set("x-readme-source-url",t)}catch(e){debug(`error constructing github source url: ${e.message}`)}}isCI()&&i.set("x-rdme-ci",ciName()),i.set("x-readme-source",r),n.filePath&&"url"===n.fileType&&i.set("x-readme-source-url",n.filePath);const o=`${config.host}${e}`,s=getProxy();return debug(`making ${(t.method||"get").toUpperCase()} request to ${o} ${s?`with proxy ${s} and `:""}with headers: ${sanitizeHeaders(i)}`),fetch(o,{...t,headers:i,dispatcher:s?new undiciExports.ProxyAgent(s):void 0}).then((e=>{const t=e.headers.get("Warning");if(t){debug(`received warning header: ${t}`);parseWarningHeader(t).forEach((e=>{warn(e.message,"ReadMe API Warning:")}))}return e})).catch((e=>{throw debug(`error making fetch request: ${e}`),e}))}async function handleAPIv1Res(e,t=!0){const n=e.headers.get("content-type")||"";if("json"===mime.extension(n)){const n=await e.json();return debug(`received status code ${e.status} from ${e.url} with JSON response: ${JSON.stringify(n)}`),n.error&&t?Promise.reject(new APIv1Error(n)):n}if(e.status===SUCCESS_NO_CONTENT)return debug(`received status code ${e.status} from ${e.url} with no content`),{};const r=await e.text();return debug(`received status code ${e.status} from ${e.url} with non-JSON response: ${r}`),Promise.reject(r)}function cleanAPIv1Headers(e,t,n=new Headers){const r=Buffer.from(`${e}:`).toString("base64"),i=new Headers({Authorization:`Basic ${r}`});t&&i.set("x-readme-version",t);for(const e of n.entries())"null"!==e[1]&&"undefined"!==e[1]&&e[1].length>0&&i.set(e[0],e[1]);return i}async function getCategories(e,t){const{firstPage:n,totalCount:r}=await async function(){let n=0;return readmeAPIv1Fetch("/api/v1/categories?perPage=20&page=1",{method:"get",headers:cleanAPIv1Headers(e,t,new Headers({Accept:"application/json"}))}).then((e=>(n=Math.ceil(parseInt(e.headers.get("x-total-count")||"0",10)/20),handleAPIv1Res(e)))).then((e=>({firstPage:e,totalCount:n})))}();return n.concat(...await Promise.all([...new Array(r+1).keys()].slice(2).map((async n=>readmeAPIv1Fetch(`/api/v1/categories?perPage=20&page=${n}`,{method:"get",headers:cleanAPIv1Headers(e,t,new Headers({Accept:"application/json"}))}).then(handleAPIv1Res)))))}async function getProjectVersion(e,t,n=!1){try{if(e)return await readmeAPIv1Fetch(`/api/v1/version/${e}`,{method:"get",headers:cleanAPIv1Headers(t)}).then(handleAPIv1Res).then((e=>e.version));if(isCI())return void warn("No `--version` parameter detected in current CI environment. Defaulting to main version.");const r=await readmeAPIv1Fetch("/api/v1/version",{method:"get",headers:cleanAPIv1Headers(t)}).then(handleAPIv1Res);if(1===r.length)return r[0].version;if(n){const e=r.find((e=>!0===e.is_stable));if(!e)throw new Error("Unexpected version response from the ReadMe API. Get in touch with us at support@readme.io!");return e.version}const{versionSelection:i}=await promptTerminal({type:"select",name:"versionSelection",message:"Select your desired version",choices:r.map((e=>({title:e.version,value:e.version})))});return i}catch(e){return Promise.reject(new APIv1Error(e))}}class CategoriesCreateCommand extends BaseCommand{static id="categories create";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static description="Create a category with the specified title and guide in your ReadMe project.";static args={title:libExports$3.Args.string({description:"Title of the category",required:!0})};static flags={categoryType:libExports$3.Flags.option({description:"Category type",options:["guide","reference"],required:!0})(),key:keyFlag,preventDuplicates:libExports$3.Flags.boolean({description:"Prevents the creation of a new category if there is an existing category with a matching `categoryType` and `title`"}),version:versionFlag};static examples=[{description:"Create a new category for your project version:",command:"<%= config.bin %> <%= command.id %> --categoryType={guide|reference} --version={project-version}"},{description:"If you want to prevent the creation of a duplicate category with a matching `title` and `categoryType`, supply the `--preventDuplicates` flag:",command:"<%= config.bin %> <%= command.id %> <title> --categoryType={guide|reference} --version={project-version} --preventDuplicates"}];async run(){const{title:e}=this.args,{categoryType:t,key:n,version:r,preventDuplicates:i}=this.flags,o=await getProjectVersion(r,n);if(this.debug(`selectedVersion: ${o}`),i){const r=(await getCategories(n,o)).find((n=>n.title.trim().toLowerCase()===e.trim().toLowerCase()&&n.type===t));if(void 0!==r)return Promise.reject(new Error(`The '${r.title}' category with a type of '${r.type}' already exists with an id of '${r.id}'. A new category was not created.`))}const s=await readmeAPIv1Fetch("/api/v1/categories",{method:"post",headers:cleanAPIv1Headers(n,o,new Headers({"Content-Type":"application/json"})),body:JSON.stringify({title:e,type:t})}).then(handleAPIv1Res).then((e=>`๐ŸŒฑ successfully created '${e.title}' with a type of '${e.type}' and an id of '${e.id}'`));return Promise.resolve(chalk.green(s))}}class CategoriesCommand extends BaseCommand{static id="categories";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static description="Get all categories in your ReadMe project.";static flags={key:keyFlag,version:versionFlag};static examples=[{description:"Get all categories associated to your project version:",command:"<%= config.bin %> <%= command.id %> --version={project-version}"}];async run(){const{key:e,version:t}=this.flags,n=await getProjectVersion(t,e);this.debug(`selectedVersion: ${n}`);const r=await getCategories(e,n);return Promise.resolve(JSON.stringify(r,null,2))}}var toposort$1={exports:{}},hasRequiredToposort;function requireToposort(){if(hasRequiredToposort)return toposort$1.exports;function e(e,t){var n=e.length,r=new Array(n),i={},o=n,s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!a.has(e[0])||!a.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||c(e[o],o,new Set);return r;function c(e,t,o){if(o.has(e)){var l;try{l=", node was:"+JSON.stringify(e)}catch(e){l=""}throw new Error("Cyclic dependency"+l)}if(!a.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var u=s.get(e)||new Set;if(t=(u=Array.from(u)).length){o.add(e);do{var d=u[--t];c(d,a.get(d),o)}while(t);o.delete(e)}r[--n]=e}}}return hasRequiredToposort=1,toposort$1.exports=function(t){return e(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(t),t)},toposort$1.exports.array=e,toposort$1.exports}var toposortExports=requireToposort(),toposort=getDefaultExportFromCjs(toposortExports),ignore$1,hasRequiredIgnore;function requireIgnore(){if(hasRequiredIgnore)return ignore$1;function e(e){return Array.isArray(e)?e:[e]}hasRequiredIgnore=1;const t=/^\s+$/,n=/(?:[^\\]|^)\\$/,r=/^\\!/,i=/^\\#/,o=/\r?\n/g,s=/^\.*\/|^\.+$/;let a="node-ignore";"undefined"!=typeof Symbol&&(a=Symbol.for("node-ignore"));const c=a,l=/([0-z])-([0-z])/g,u=()=>!1,d=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+" "}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>"\\"===t?`\\[${n}${(e=>{const{length:t}=e;return e.slice(0,t-t%2)})(r)}${i}`:"]"===i&&r.length%2==0?`[${(e=>e.replace(l,((e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:"")))(n)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],p=Object.create(null),f=e=>"string"==typeof e;class _{constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}}const m=(e,t)=>{const n=e;let o=!1;0===e.indexOf("!")&&(o=!0,e=e.substr(1));const s=((e,t)=>{let n=p[e];return n||(n=d.reduce(((t,[n,r])=>t.replace(n,r.bind(e))),e),p[e]=n),t?new RegExp(n,"i"):new RegExp(n)})(e=e.replace(r,"!").replace(i,"#"),t);return new _(n,e,o,s)},h=(e,t)=>{throw new t(e)},g=(e,t,n)=>{if(!f(e))return n(`path must be a string, but got \`${t}\``,TypeError);if(!e)return n("path must not be empty",TypeError);if(g.isNotRelative(e)){return n(`path should be a ${"`path.relative()`d"} string, but got "${t}"`,RangeError)}return!0},A=e=>s.test(e);g.isNotRelative=A,g.convert=e=>e;class y{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){var r,i,o;r=this,i=c,o=!0,Object.defineProperty(r,i,{value:o}),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[c])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&f(e)&&!t.test(e)&&!n.test(e)&&0!==e.indexOf("#"))(e)){const t=m(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(t){return this._added=!1,e(f(t)?(e=>e.split(o))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach((i=>{const{negative:o}=i;if(r===o&&n!==r||o&&!n&&!r&&!t)return;i.regex.test(e)&&(n=!o,r=o)})),{ignored:n,unignored:r}}_test(e,t,n,r){const i=e&&g.convert(e);return g(i,e,this._allowRelativePaths?u:h),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||(r=e.split("/")),r.pop(),!r.length)return t[e]=this._testOne(e,n);const i=this._t(r.join("/")+"/",t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(t){return e(t).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const v=e=>new y(e);if(v.isPathValid=e=>g(e&&g.convert(e),e,u),v.default=v,ignore$1=v,"undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");g.convert=e;const t=/^[a-z]:\//i;g.isNotRelative=e=>t.test(e)||A(e)}return ignore$1}var ignoreExports=requireIgnore(),ignore=getDefaultExportFromCjs(ignoreExports),kindOf,hasRequiredKindOf,isExtendable,hasRequiredIsExtendable,extendShallow,hasRequiredExtendShallow,sectionMatter,hasRequiredSectionMatter;function readdirRecursive(e,t=!1){let n;debug(`current readdirRecursive folder: ${e}`),t&&(n=ignore.default().add(path$1.join(e,".git/")),fs$6.existsSync(path$1.join(e,".gitignore"))&&(debug(".gitignore file found, adding to ignore filter"),n.add(fs$6.readFileSync(path$1.join(e,".gitignore")).toString())));const r=fs$6.readdirSync(e,{withFileTypes:!0}).filter((r=>{if(!t)return!0;let i=path$1.join(e,r.name);return r.isDirectory()&&(i=`${i}/`),!n.ignores(i)})),i=r.filter((e=>e.isFile())).map((t=>path$1.join(e,t.name))),o=r.filter((e=>e.isDirectory()));return[...i,...[].concat(...o.map((n=>readdirRecursive(path$1.join(e,n.name),t))))]}function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var e=Object.prototype.toString;function t(e){return"function"==typeof e.constructor?e.constructor.name:null}return kindOf=function(n){if(void 0===n)return"undefined";if(null===n)return"null";var r=typeof n;if("boolean"===r)return"boolean";if("string"===r)return"string";if("number"===r)return"number";if("symbol"===r)return"symbol";if("function"===r)return function(e){return"GeneratorFunction"===t(e)}(n)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(n))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(n))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(n))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(n))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(n))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(n))return"regexp";switch(t(n)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(n))return"generator";switch(r=e.call(n)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")},kindOf} + */function requireMimeTypes(){return hasRequiredMimeTypes||(hasRequiredMimeTypes=1,function(e){var t=requireMimeDb(),n=require$$0$8.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,i=/^text\//i;function o(e){if(!e||"string"!=typeof e)return!1;var n=r.exec(e),o=n&&t[n[1].toLowerCase()];return o&&o.charset?o.charset:!(!n||!i.test(n[1]))&&"UTF-8"}e.charset=o,e.charsets={lookup:o},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var r=e.charset(n);r&&(n+="; charset="+r.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=r.exec(t),i=n&&e.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var r=n("x."+t).toLowerCase().substr(1);if(!r)return!1;return e.types[r]||!1},e.types=Object.create(null),function(e,n){var r=["nginx","apache",void 0,"iana"];Object.keys(t).forEach((function(i){var o=t[i],s=o.extensions;if(s&&s.length){e[i]=s;for(var a=0;a<s.length;a++){var c=s[a];if(n[c]){var l=r.indexOf(t[n[c]].source),u=r.indexOf(o.source);if("application/octet-stream"!==n[c]&&(l>u||l===u&&"application/"===n[c].substr(0,12)))continue}n[c]=i}}}))}(e.extensions,e.types)}(mimeTypes)),mimeTypes}var mimeTypesExports=requireMimeTypes(),mime=getDefaultExportFromCjs(mimeTypesExports),undiciExports=requireUndici();class APIv1Error extends Error{code;constructor(e){let t;t="object"==typeof e&&"object"==typeof e?.error?e.error:e,super(t),this.name="APIv1Error","object"==typeof t?(this.code=t.error,this.message=t?.help?[t.message,"",t.help].join("\n"):t.message,this.name="APIv1Error"):(this.code=t,this.message=t)}}const config={host:"https://dash.readme.com",hub:"https://{project}.readme.io"};var prompts$3={},kleur,hasRequiredKleur,action$1,hasRequiredAction$1,strip$1,hasRequiredStrip$1,src$6,hasRequiredSrc$6,clear$1,hasRequiredClear$1,figures_1$1,hasRequiredFigures$1,style$1,hasRequiredStyle$1,lines$1,hasRequiredLines$1,wrap$1,hasRequiredWrap$1,entriesToDisplay$1,hasRequiredEntriesToDisplay$1,util$4,hasRequiredUtil$4,prompt$1,hasRequiredPrompt$1,text$2,hasRequiredText$2,select$1,hasRequiredSelect$1,toggle$1,hasRequiredToggle$1,datepart$1,hasRequiredDatepart$1,meridiem$1,hasRequiredMeridiem$1,day$1,hasRequiredDay$1,hours$1,hasRequiredHours$1,milliseconds$1,hasRequiredMilliseconds$1,minutes$1,hasRequiredMinutes$1,month$1,hasRequiredMonth$1,seconds$1,hasRequiredSeconds$1,year$1,hasRequiredYear$1,dateparts$1,hasRequiredDateparts$1,date$1,hasRequiredDate$1,number$1,hasRequiredNumber$1,multiselect$1,hasRequiredMultiselect$1,autocomplete$1,hasRequiredAutocomplete$1,autocompleteMultiselect$1,hasRequiredAutocompleteMultiselect$1,confirm$1,hasRequiredConfirm$1,elements$1,hasRequiredElements$1,hasRequiredPrompts$2,dist$6,hasRequiredDist$6;function requireKleur(){if(hasRequiredKleur)return kleur;hasRequiredKleur=1;const{FORCE_COLOR:e,NODE_DISABLE_COLORS:t,TERM:n}=process.env,r={enabled:!t&&"dumb"!==n&&"0"!==e,reset:o(0,0),bold:o(1,22),dim:o(2,22),italic:o(3,23),underline:o(4,24),inverse:o(7,27),hidden:o(8,28),strikethrough:o(9,29),black:o(30,39),red:o(31,39),green:o(32,39),yellow:o(33,39),blue:o(34,39),magenta:o(35,39),cyan:o(36,39),white:o(37,39),gray:o(90,39),grey:o(90,39),bgBlack:o(40,49),bgRed:o(41,49),bgGreen:o(42,49),bgYellow:o(43,49),bgBlue:o(44,49),bgMagenta:o(45,49),bgCyan:o(46,49),bgWhite:o(47,49)};function i(e,t){let n,r=0,i="",o="";for(;r<e.length;r++)n=e[r],i+=n.open,o+=n.close,t.includes(n.close)&&(t=t.replace(n.rgx,n.close+n.open));return i+t+o}function o(e,t){let n={open:`[${e}m`,close:`[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){return void 0!==this&&void 0!==this.has?(this.has.includes(e)||(this.has.push(e),this.keys.push(n)),void 0===t?this:r.enabled?i(this.keys,t+""):t+""):void 0===t?function(e,t){let n={has:e,keys:t};return n.reset=r.reset.bind(n),n.bold=r.bold.bind(n),n.dim=r.dim.bind(n),n.italic=r.italic.bind(n),n.underline=r.underline.bind(n),n.inverse=r.inverse.bind(n),n.hidden=r.hidden.bind(n),n.strikethrough=r.strikethrough.bind(n),n.black=r.black.bind(n),n.red=r.red.bind(n),n.green=r.green.bind(n),n.yellow=r.yellow.bind(n),n.blue=r.blue.bind(n),n.magenta=r.magenta.bind(n),n.cyan=r.cyan.bind(n),n.white=r.white.bind(n),n.gray=r.gray.bind(n),n.grey=r.grey.bind(n),n.bgBlack=r.bgBlack.bind(n),n.bgRed=r.bgRed.bind(n),n.bgGreen=r.bgGreen.bind(n),n.bgYellow=r.bgYellow.bind(n),n.bgBlue=r.bgBlue.bind(n),n.bgMagenta=r.bgMagenta.bind(n),n.bgCyan=r.bgCyan.bind(n),n.bgWhite=r.bgWhite.bind(n),n}([e],[n]):r.enabled?i([n],t+""):t+""}}return kleur=r}function requireAction$1(){return hasRequiredAction$1?action$1:(hasRequiredAction$1=1,action$1=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}})}function requireStrip$1(){return hasRequiredStrip$1||(hasRequiredStrip$1=1,strip$1=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(t,"g");return"string"==typeof e?e.replace(n,""):e}),strip$1}function requireSrc$6(){if(hasRequiredSrc$6)return src$6;hasRequiredSrc$6=1;const e="[",t={to:(t,n)=>n?`${e}${n+1};${t+1}H`:`${e}${t+1}G`,move(t,n){let r="";return t<0?r+=`${e}${-t}D`:t>0&&(r+=`${e}${t}C`),n<0?r+=`${e}${-n}A`:n>0&&(r+=`${e}${n}B`),r},up:(t=1)=>`${e}${t}A`,down:(t=1)=>`${e}${t}B`,forward:(t=1)=>`${e}${t}C`,backward:(t=1)=>`${e}${t}D`,nextLine:(t=1)=>`${e}E`.repeat(t),prevLine:(t=1)=>`${e}F`.repeat(t),left:`${e}G`,hide:`${e}?25l`,show:`${e}?25h`,save:"7",restore:"8"},n={up:(t=1)=>`${e}S`.repeat(t),down:(t=1)=>`${e}T`.repeat(t)},r={screen:`${e}2J`,up:(t=1)=>`${e}1J`.repeat(t),down:(t=1)=>`${e}J`.repeat(t),line:`${e}2K`,lineEnd:`${e}K`,lineStart:`${e}1K`,lines(e){let n="";for(let r=0;r<e;r++)n+=this.line+(r<e-1?t.up():"");return e&&(n+=t.left),n}};return src$6={cursor:t,scroll:n,erase:r,beep:""}}function requireClear$1(){if(hasRequiredClear$1)return clear$1;function e(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e))||n){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw s}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}hasRequiredClear$1=1;const n=requireStrip$1(),r=requireSrc$6(),i=r.erase,o=r.cursor,s=e=>[...n(e)].length;return clear$1=function(t,n){if(!n)return i.line+o.to(0);let r=0;var a,c=e(t.split(/\r?\n/));try{for(c.s();!(a=c.n()).done;){let e=a.value;r+=1+Math.floor(Math.max(s(e)-1,0)/n)}}catch(e){c.e(e)}finally{c.f()}return i.lines(r)},clear$1}function requireFigures$1(){if(hasRequiredFigures$1)return figures_1$1;hasRequiredFigures$1=1;const e={arrowUp:"โ†‘",arrowDown:"โ†“",arrowLeft:"โ†",arrowRight:"โ†’",radioOn:"โ—‰",radioOff:"โ—ฏ",tick:"โœ”",cross:"โœ–",ellipsis:"โ€ฆ",pointerSmall:"โ€บ",line:"โ”€",pointer:"โฏ"},t={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"โˆš",cross:"ร—",ellipsis:"...",pointerSmall:"ยป",line:"โ”€",pointer:">"},n="win32"===process.platform?t:e;return figures_1$1=n}function requireStyle$1(){if(hasRequiredStyle$1)return style$1;hasRequiredStyle$1=1;const e=requireKleur(),t=requireFigures$1(),n=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"๐Ÿ˜ƒ".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),r=Object.freeze({aborted:e.red(t.cross),done:e.green(t.tick),exited:e.yellow(t.cross),default:e.cyan("?")});return style$1={styles:n,render:e=>n[e]||n.default,symbols:r,symbol:(e,t,n)=>t?r.aborted:n?r.exited:e?r.done:r.default,delimiter:n=>e.gray(n?t.ellipsis:t.pointerSmall),item:(n,r)=>e.gray(n?r?t.pointerSmall:"+":t.line)},style$1}function requireLines$1(){if(hasRequiredLines$1)return lines$1;hasRequiredLines$1=1;const e=requireStrip$1();return lines$1=function(t,n){let r=String(e(t)||"").split(/\r?\n/);return n?r.map((e=>Math.ceil(e.length/n))).reduce(((e,t)=>e+t)):r.length},lines$1}function requireWrap$1(){return hasRequiredWrap$1||(hasRequiredWrap$1=1,wrap$1=(e,t={})=>{const n=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",r=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+n.length>=r||e[e.length-1].length+t.length+1<r?e[e.length-1]+=` ${t}`:e.push(`${n}${t}`),e)),[n]).join("\n"))).join("\n")}),wrap$1}function requireEntriesToDisplay$1(){return hasRequiredEntriesToDisplay$1?entriesToDisplay$1:(hasRequiredEntriesToDisplay$1=1,entriesToDisplay$1=(e,t,n)=>{n=n||t;let r=Math.min(t-n,e-Math.floor(n/2));return r<0&&(r=0),{startIndex:r,endIndex:Math.min(r+n,t)}})}function requireUtil$4(){return hasRequiredUtil$4?util$4:(hasRequiredUtil$4=1,util$4={action:requireAction$1(),clear:requireClear$1(),style:requireStyle$1(),strip:requireStrip$1(),figures:requireFigures$1(),lines:requireLines$1(),wrap:requireWrap$1(),entriesToDisplay:requireEntriesToDisplay$1()})}function requirePrompt$1(){if(hasRequiredPrompt$1)return prompt$1;hasRequiredPrompt$1=1;const e=require$$0$m,t=requireUtil$4().action,n=require$$0$c,r=requireSrc$6(),i=r.beep,o=r.cursor,s=requireKleur();return prompt$1=class extends n{constructor(n={}){super(),this.firstRender=!0,this.in=n.stdin||process.stdin,this.out=n.stdout||process.stdout,this.onRender=(n.onRender||(()=>{})).bind(this);const r=e.createInterface({input:this.in,escapeCodeTimeout:50});e.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,n)=>{let r=t(n,i);!1===r?this._&&this._(e,n):"function"==typeof this[r]?this[r](n):this.bell()};this.close=()=>{this.out.write(o.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(i)}render(){this.onRender(s),this.firstRender&&(this.firstRender=!1)}},prompt$1}function requireText$2(){if(hasRequiredText$2)return text$2;function e(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=t.apply(n,r);function a(t){e(s,i,o,a,c,"next",t)}function c(t){e(s,i,o,a,c,"throw",t)}a(void 0)}))}}hasRequiredText$2=1;const n=requireKleur(),r=requirePrompt$1(),i=requireSrc$6(),o=i.erase,s=i.cursor,a=requireUtil$4(),c=a.style,l=a.clear,u=a.lines,d=a.figures;return text$2=class extends r{constructor(e={}){super(e),this.transform=c.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=l("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return t((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return t((function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error)return e.red=!0,e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let n=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor);this.value=`${n}${e}${r}`,this.red=!1,this.cursor=this.placeholder?0:n.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(s.down(u(this.outputError,this.out.columns)-1)+l(this.outputError,this.out.columns)),this.out.write(l(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":d.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore+s.move(this.cursorOffset,0)))}},text$2}function requireSelect$1(){if(hasRequiredSelect$1)return select$1;hasRequiredSelect$1=1;const e=requireKleur(),t=requirePrompt$1(),n=requireUtil$4(),r=n.style,i=n.clear,o=n.figures,s=n.wrap,a=n.entriesToDisplay,c=requireSrc$6().cursor;return select$1=class extends t{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=i("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,t){if(" "===e)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(c.hide):this.out.write(i(this.outputText,this.out.columns)),super.render();let t=a(this.cursor,this.choices.length,this.optionsPerPage),n=t.startIndex,l=t.endIndex;if(this.outputText=[r.symbol(this.done,this.aborted),e.bold(this.msg),r.delimiter(!1),this.done?this.selection.title:this.selection.disabled?e.yellow(this.warn):e.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let t=n;t<l;t++){let r,i,a="",c=this.choices[t];i=t===n&&n>0?o.arrowUp:t===l-1&&l<this.choices.length?o.arrowDown:" ",c.disabled?(r=this.cursor===t?e.gray().underline(c.title):e.strikethrough().gray(c.title),i=(this.cursor===t?e.bold().gray(o.pointer)+" ":" ")+i):(r=this.cursor===t?e.cyan().underline(c.title):c.title,i=(this.cursor===t?e.cyan(o.pointer)+" ":" ")+i,c.description&&this.cursor===t&&(a=` - ${c.description}`,(i.length+r.length+a.length>=this.out.columns||c.description.split(/\r?\n/).length>1)&&(a="\n"+s(c.description,{margin:3,width:this.out.columns})))),this.outputText+=`${i} ${r}${e.gray(a)}\n`}}this.out.write(this.outputText)}},select$1}function requireToggle$1(){if(hasRequiredToggle$1)return toggle$1;hasRequiredToggle$1=1;const e=requireKleur(),t=requirePrompt$1(),n=requireUtil$4(),r=n.style,i=n.clear,o=requireSrc$6(),s=o.cursor,a=o.erase;return toggle$1=class extends t{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(s.hide):this.out.write(i(this.outputText,this.out.columns)),super.render(),this.outputText=[r.symbol(this.done,this.aborted),e.bold(this.msg),r.delimiter(this.done),this.value?this.inactive:e.cyan().underline(this.inactive),e.gray("/"),this.value?e.cyan().underline(this.active):this.active].join(" "),this.out.write(a.line+s.to(0)+this.outputText))}}}function requireDatepart$1(){if(hasRequiredDatepart$1)return datepart$1;hasRequiredDatepart$1=1;class e{constructor({token:e,date:t,parts:n,locales:r}){this.token=e,this.date=t||new Date,this.parts=n||[this],this.locales=r||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((n,r)=>r>t&&n instanceof e))}setTo(e){}prev(){let t=[].concat(this.parts).reverse();const n=t.indexOf(this);return t.find(((t,r)=>r>n&&t instanceof e))}toString(){return String(this.date)}}return datepart$1=e}function requireMeridiem$1(){if(hasRequiredMeridiem$1)return meridiem$1;hasRequiredMeridiem$1=1;const e=requireDatepart$1();return meridiem$1=class extends e{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}},meridiem$1}function requireDay$1(){if(hasRequiredDay$1)return day$1;hasRequiredDay$1=1;const e=requireDatepart$1();return day$1=class extends e{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(n=e,1==(n%=10)?"st":2===n?"nd":3===n?"rd":"th"):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e;var n}},day$1}function requireHours$1(){if(hasRequiredHours$1)return hours$1;hasRequiredHours$1=1;const e=requireDatepart$1();return hours$1=class extends e{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}},hours$1}function requireMilliseconds$1(){if(hasRequiredMilliseconds$1)return milliseconds$1;hasRequiredMilliseconds$1=1;const e=requireDatepart$1();return milliseconds$1=class extends e{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}}function requireMinutes$1(){if(hasRequiredMinutes$1)return minutes$1;hasRequiredMinutes$1=1;const e=requireDatepart$1();return minutes$1=class extends e{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}}function requireMonth$1(){if(hasRequiredMonth$1)return month$1;hasRequiredMonth$1=1;const e=requireDatepart$1();return month$1=class extends e{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}},month$1}function requireSeconds$1(){if(hasRequiredSeconds$1)return seconds$1;hasRequiredSeconds$1=1;const e=requireDatepart$1();return seconds$1=class extends e{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}}function requireYear$1(){if(hasRequiredYear$1)return year$1;hasRequiredYear$1=1;const e=requireDatepart$1();return year$1=class extends e{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}},year$1}function requireDateparts$1(){return hasRequiredDateparts$1?dateparts$1:(hasRequiredDateparts$1=1,dateparts$1={DatePart:requireDatepart$1(),Meridiem:requireMeridiem$1(),Day:requireDay$1(),Hours:requireHours$1(),Milliseconds:requireMilliseconds$1(),Minutes:requireMinutes$1(),Month:requireMonth$1(),Seconds:requireSeconds$1(),Year:requireYear$1()})}function requireDate$1(){if(hasRequiredDate$1)return date$1;function e(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=t.apply(n,r);function a(t){e(s,i,o,a,c,"next",t)}function c(t){e(s,i,o,a,c,"throw",t)}a(void 0)}))}}hasRequiredDate$1=1;const n=requireKleur(),r=requirePrompt$1(),i=requireUtil$4(),o=i.style,s=i.clear,a=i.figures,c=requireSrc$6(),l=c.erase,u=c.cursor,d=requireDateparts$1(),p=d.DatePart,f=d.Meridiem,_=d.Day,m=d.Hours,h=d.Milliseconds,g=d.Minutes,A=d.Month,y=d.Seconds,v=d.Year,b=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,C={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new _(e),3:e=>new A(e),4:e=>new v(e),5:e=>new f(e),6:e=>new m(e),7:e=>new g(e),8:e=>new y(e),9:e=>new h(e)},E={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};return date$1=class extends r{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(E,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=s("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=b.exec(e);){let e=t.shift(),n=t.findIndex((e=>null!=e));this.parts.push(n in C?C[n]({token:t[n]||e,date:this.date,parts:this.parts,locales:this.locales}):t[n]||e)}let n=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...n),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof p))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return t((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return t((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof p))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(u.hide):this.out.write(s(this.outputText,this.out.columns)),super.render(),this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(!1),this.parts.reduce(((e,t,r)=>e.concat(r!==this.cursor||this.done?t:n.cyan().underline(t.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":a.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(l.line+u.to(0)+this.outputText))}},date$1}function requireNumber$1(){if(hasRequiredNumber$1)return number$1;function e(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=t.apply(n,r);function a(t){e(s,i,o,a,c,"next",t)}function c(t){e(s,i,o,a,c,"throw",t)}a(void 0)}))}}hasRequiredNumber$1=1;const n=requireKleur(),r=requirePrompt$1(),i=requireSrc$6(),o=i.cursor,s=i.erase,a=requireUtil$4(),c=a.style,l=a.figures,u=a.clear,d=a.lines,p=/[0-9]/,f=e=>void 0!==e,_=(e,t)=>{let n=Math.pow(10,t);return Math.round(e*n)/n};return number$1=class extends r{constructor(e={}){super(e),this.transform=c.render(e.style),this.msg=e.message,this.initial=f(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=f(e.min)?e.min:-1/0,this.max=f(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){e||0===e?(this.placeholder=!1,this.rendered=this.transform.render(`${_(e,this.round)}`),this._value=_(e,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||p.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return t((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return t((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();let t=e.value;e.value=""!==t?t:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,t){if(!this.valid(e))return this.bell();const n=Date.now();if(n-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=n,this.color="cyan","."===e)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(o.down(d(this.outputError,this.out.columns)-1)+u(this.outputError,this.out.columns)),this.out.write(u(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:n[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":l.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore))}},number$1}function requireMultiselect$1(){if(hasRequiredMultiselect$1)return multiselect$1;hasRequiredMultiselect$1=1;const e=requireKleur(),t=requireSrc$6().cursor,n=requirePrompt$1(),r=requireUtil$4(),i=r.clear,o=r.figures,s=r.style,a=r.wrap,c=r.entriesToDisplay;return multiselect$1=class extends n{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=i("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${o.arrowUp}/${o.arrowDown}: Highlight option\n ${o.arrowLeft}/${o.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,n,r,i){const s=(n.selected?e.green(o.radioOn):o.radioOff)+" "+i+" ";let c,l;return n.disabled?c=t===r?e.gray().underline(n.title):e.strikethrough().gray(n.title):(c=t===r?e.cyan().underline(n.title):n.title,t===r&&n.description&&(l=` - ${n.description}`,(s.length+c.length+l.length>=this.out.columns||n.description.split(/\r?\n/).length>1)&&(l="\n"+a(n.description,{margin:s.length,width:this.out.columns})))),s+c+e.gray(l||"")}paginateOptions(t){if(0===t.length)return e.red("No matches for this query.");let n,r=c(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,a=[];for(let e=i;e<s;e++)n=e===i&&i>0?o.arrowUp:e===s-1&&s<t.length?o.arrowDown:" ",a.push(this.renderOption(this.cursor,t[e],e,n));return"\n"+a.join("\n")}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const t=[e.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(e.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(t.hide),super.render();let n=[s.symbol(this.done,this.aborted),e.bold(this.msg),s.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(n+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),n+=this.renderOptions(this.value),this.out.write(this.clear+n),this.clear=i(n,this.out.columns)}},multiselect$1}function requireAutocomplete$1(){if(hasRequiredAutocomplete$1)return autocomplete$1;function e(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}hasRequiredAutocomplete$1=1;const t=requireKleur(),n=requirePrompt$1(),r=requireSrc$6(),i=r.erase,o=r.cursor,s=requireUtil$4(),a=s.style,c=s.clear,l=s.figures,u=s.wrap,d=s.entriesToDisplay,p=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),f=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);return autocomplete$1=class extends n{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const n=e.findIndex((e=>e.value===t||e.title===t));return n>-1?n:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=a.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=c("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=p(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(t){var n,r=this;return(n=function*(){const e=r.completing=r.suggest(r.input,r.choices),n=yield e;if(r.completing!==e)return;r.suggestions=n.map(((e,t,n)=>({title:f(n,t),value:p(n,t),description:e.description}))),r.completing=!1;const i=Math.max(n.length-1,0);r.moveSelect(Math.min(i,r.select)),t&&t()},function(){var t=this,r=arguments;return new Promise((function(i,o){var s=n.apply(t,r);function a(t){e(s,i,o,a,c,"next",t)}function c(t){e(s,i,o,a,c,"throw",t)}a(void 0)}))})()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){let n=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor);this.input=`${n}${e}${r}`,this.cursor=n.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,n,r,i){let o,s=r?l.arrowUp:i?l.arrowDown:" ",a=n?t.cyan().underline(e.title):e.title;return s=(n?t.cyan(l.pointer)+" ":" ")+s,e.description&&(o=` - ${e.description}`,(s.length+a.length+o.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(o="\n"+u(e.description,{margin:3,width:this.out.columns}))),s+" "+a+t.gray(o||"")}render(){if(this.closed)return;this.firstRender?this.out.write(o.hide):this.out.write(c(this.outputText,this.out.columns)),super.render();let e=d(this.select,this.choices.length,this.limit),n=e.startIndex,r=e.endIndex;if(this.outputText=[a.symbol(this.done,this.aborted,this.exited),t.bold(this.msg),a.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const e=this.suggestions.slice(n,r).map(((e,t)=>this.renderOption(e,this.select===t+n,0===t&&n>0,t+n===r-1&&r<this.choices.length))).join("\n");this.outputText+="\n"+(e||t.gray(this.fallback.title))}this.out.write(i.line+o.to(0)+this.outputText)}},autocomplete$1}function requireAutocompleteMultiselect$1(){if(hasRequiredAutocompleteMultiselect$1)return autocompleteMultiselect$1;hasRequiredAutocompleteMultiselect$1=1;const e=requireKleur(),t=requireSrc$6().cursor,n=requireMultiselect$1(),r=requireUtil$4(),i=r.clear,o=r.style,s=r.figures;return autocompleteMultiselect$1=class extends n{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=i("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||(!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${s.arrowUp}/${s.arrowDown}: Highlight option\n ${s.arrowLeft}/${s.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:e.gray("Enter something to filter")}\n`}renderOption(t,n,r){let i;return i=n.disabled?t===r?e.gray().underline(n.title):e.strikethrough().gray(n.title):t===r?e.cyan().underline(n.title):n.title,(n.selected?e.green(s.radioOn):s.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const t=[e.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(e.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(t.hide),super.render();let n=[o.symbol(this.done,this.aborted),e.bold(this.msg),o.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(n+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),n+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+n),this.clear=i(n,this.out.columns)}},autocompleteMultiselect$1}function requireConfirm$1(){if(hasRequiredConfirm$1)return confirm$1;hasRequiredConfirm$1=1;const e=requireKleur(),t=requirePrompt$1(),n=requireUtil$4(),r=n.style,i=n.clear,o=requireSrc$6(),s=o.erase,a=o.cursor;return confirm$1=class extends t{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(a.hide):this.out.write(i(this.outputText,this.out.columns)),super.render(),this.outputText=[r.symbol(this.done,this.aborted),e.bold(this.msg),r.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:e.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(s.line+a.to(0)+this.outputText))}}}function requireElements$1(){return hasRequiredElements$1?elements$1:(hasRequiredElements$1=1,elements$1={TextPrompt:requireText$2(),SelectPrompt:requireSelect$1(),TogglePrompt:requireToggle$1(),DatePrompt:requireDate$1(),NumberPrompt:requireNumber$1(),MultiselectPrompt:requireMultiselect$1(),AutocompletePrompt:requireAutocomplete$1(),AutocompleteMultiselectPrompt:requireAutocompleteMultiselect$1(),ConfirmPrompt:requireConfirm$1()})}function requirePrompts$2(){return hasRequiredPrompts$2||(hasRequiredPrompts$2=1,function(){const e=prompts$3,t=requireElements$1(),n=e=>e;function r(e,r,i={}){return new Promise(((o,s)=>{const a=new t[e](r),c=i.onAbort||n,l=i.onSubmit||n,u=i.onExit||n;a.on("state",r.onState||n),a.on("submit",(e=>o(l(e)))),a.on("exit",(e=>o(u(e)))),a.on("abort",(e=>s(c(e))))}))}e.text=e=>r("TextPrompt",e),e.password=t=>(t.style="password",e.text(t)),e.invisible=t=>(t.style="invisible",e.text(t)),e.number=e=>r("NumberPrompt",e),e.date=e=>r("DatePrompt",e),e.confirm=e=>r("ConfirmPrompt",e),e.list=e=>{const t=e.separator||",";return r("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},e.toggle=e=>r("TogglePrompt",e),e.select=e=>r("SelectPrompt",e),e.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return r("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},e.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return r("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const i=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));e.autocomplete=e=>(e.suggest=e.suggest||i,e.choices=[].concat(e.choices||[]),r("AutocompletePrompt",e))}()),prompts$3}function requireDist$6(){if(hasRequiredDist$6)return dist$6;function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw s}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var s=e.apply(t,n);function a(e){o(s,r,i,a,c,"next",e)}function c(e){o(s,r,i,a,c,"throw",e)}a(void 0)}))}}hasRequiredDist$6=1;const a=requirePrompts$2(),c=["suggest","format","onState","validate","onRender","type"],l=()=>{};function u(){return d.apply(this,arguments)}function d(){return d=s((function*(e=[],{onSubmit:n=l,onCancel:i=l}={}){const o={},d=u._override||{};let f,_,m,h,g,A;e=[].concat(e);const y=function(){var e=s((function*(e,t,n=!1){if(n||!e.validate||!0===e.validate(t))return e.format?yield e.format(t,o):t}));return function(t,n){return e.apply(this,arguments)}}();var v,b=r(e);try{for(b.s();!(v=b.n()).done;){_=v.value;var C=_;if(h=C.name,g=C.type,"function"==typeof g&&(g=yield g(f,t({},o),_),_.type=g),g){for(let e in _){if(c.includes(e))continue;let n=_[e];_[e]="function"==typeof n?yield n(f,t({},o),A):n}if(A=_,"string"!=typeof _.message)throw new Error("prompt message is required");var E=_;if(h=E.name,g=E.type,void 0===a[g])throw new Error(`prompt type (${g}) is not defined`);if(void 0===d[_.name]||(f=yield y(_,d[_.name]),void 0===f)){try{f=u._injected?p(u._injected,_.initial):yield a[g](_),o[h]=f=yield y(_,f,!0),m=yield n(_,f,o)}catch(e){m=!(yield i(_,o))}if(m)return o}else o[h]=f}}}catch(e){b.e(e)}finally{b.f()}return o})),d.apply(this,arguments)}function p(e,t){const n=e.shift();if(n instanceof Error)throw n;return void 0===n?t:n}return dist$6=Object.assign(u,{prompt:u,prompts:a,inject:function(e){u._injected=(u._injected||[]).concat(e)},override:function(e){u._override=Object.assign({},e)}})}var prompts$2={},action,hasRequiredAction,strip,hasRequiredStrip,clear,hasRequiredClear,figures_1,hasRequiredFigures,style,hasRequiredStyle,lines,hasRequiredLines,wrap,hasRequiredWrap,entriesToDisplay,hasRequiredEntriesToDisplay,util$3,hasRequiredUtil$3,prompt,hasRequiredPrompt,text$1,hasRequiredText$1,select,hasRequiredSelect,toggle,hasRequiredToggle,datepart,hasRequiredDatepart,meridiem,hasRequiredMeridiem,day,hasRequiredDay,hours,hasRequiredHours,milliseconds,hasRequiredMilliseconds,minutes,hasRequiredMinutes,month,hasRequiredMonth,seconds,hasRequiredSeconds,year,hasRequiredYear,dateparts,hasRequiredDateparts,date,hasRequiredDate,number,hasRequiredNumber,multiselect,hasRequiredMultiselect,autocomplete,hasRequiredAutocomplete,autocompleteMultiselect,hasRequiredAutocompleteMultiselect,confirm,hasRequiredConfirm,elements,hasRequiredElements,hasRequiredPrompts$1,lib$f,hasRequiredLib$e,prompts$1,hasRequiredPrompts;function requireAction(){return hasRequiredAction?action:(hasRequiredAction=1,action=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}})}function requireStrip(){return hasRequiredStrip||(hasRequiredStrip=1,strip=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(t,"g");return"string"==typeof e?e.replace(n,""):e}),strip}function requireClear(){if(hasRequiredClear)return clear;hasRequiredClear=1;const e=requireStrip(),{erase:t,cursor:n}=requireSrc$6(),r=t=>[...e(t)].length;return clear=function(e,i){if(!i)return t.line+n.to(0);let o=0;const s=e.split(/\r?\n/);for(let e of s)o+=1+Math.floor(Math.max(r(e)-1,0)/i);return t.lines(o)},clear}function requireFigures(){if(hasRequiredFigures)return figures_1;hasRequiredFigures=1;const e={arrowUp:"โ†‘",arrowDown:"โ†“",arrowLeft:"โ†",arrowRight:"โ†’",radioOn:"โ—‰",radioOff:"โ—ฏ",tick:"โœ”",cross:"โœ–",ellipsis:"โ€ฆ",pointerSmall:"โ€บ",line:"โ”€",pointer:"โฏ"},t={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"โˆš",cross:"ร—",ellipsis:"...",pointerSmall:"ยป",line:"โ”€",pointer:">"},n="win32"===process.platform?t:e;return figures_1=n}function requireStyle(){if(hasRequiredStyle)return style;hasRequiredStyle=1;const e=requireKleur(),t=requireFigures(),n=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"๐Ÿ˜ƒ".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),r=Object.freeze({aborted:e.red(t.cross),done:e.green(t.tick),exited:e.yellow(t.cross),default:e.cyan("?")});return style={styles:n,render:e=>n[e]||n.default,symbols:r,symbol:(e,t,n)=>t?r.aborted:n?r.exited:e?r.done:r.default,delimiter:n=>e.gray(n?t.ellipsis:t.pointerSmall),item:(n,r)=>e.gray(n?r?t.pointerSmall:"+":t.line)},style}function requireLines(){if(hasRequiredLines)return lines;hasRequiredLines=1;const e=requireStrip();return lines=function(t,n){let r=String(e(t)||"").split(/\r?\n/);return n?r.map((e=>Math.ceil(e.length/n))).reduce(((e,t)=>e+t)):r.length}}function requireWrap(){return hasRequiredWrap||(hasRequiredWrap=1,wrap=(e,t={})=>{const n=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",r=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+n.length>=r||e[e.length-1].length+t.length+1<r?e[e.length-1]+=` ${t}`:e.push(`${n}${t}`),e)),[n]).join("\n"))).join("\n")}),wrap}function requireEntriesToDisplay(){return hasRequiredEntriesToDisplay?entriesToDisplay:(hasRequiredEntriesToDisplay=1,entriesToDisplay=(e,t,n)=>{n=n||t;let r=Math.min(t-n,e-Math.floor(n/2));return r<0&&(r=0),{startIndex:r,endIndex:Math.min(r+n,t)}})}function requireUtil$3(){return hasRequiredUtil$3?util$3:(hasRequiredUtil$3=1,util$3={action:requireAction(),clear:requireClear(),style:requireStyle(),strip:requireStrip(),figures:requireFigures(),lines:requireLines(),wrap:requireWrap(),entriesToDisplay:requireEntriesToDisplay()})}function requirePrompt(){if(hasRequiredPrompt)return prompt;hasRequiredPrompt=1;const e=require$$0$m,{action:t}=requireUtil$3(),n=require$$0$c,{beep:r,cursor:i}=requireSrc$6(),o=requireKleur();return prompt=class extends n{constructor(n={}){super(),this.firstRender=!0,this.in=n.stdin||process.stdin,this.out=n.stdout||process.stdout,this.onRender=(n.onRender||(()=>{})).bind(this);const r=e.createInterface({input:this.in,escapeCodeTimeout:50});e.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);const o=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,n)=>{let r=t(n,o);!1===r?this._&&this._(e,n):"function"==typeof this[r]?this[r](n):this.bell()};this.close=()=>{this.out.write(i.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(r)}render(){this.onRender(o),this.firstRender&&(this.firstRender=!1)}},prompt}function requireText$1(){if(hasRequiredText$1)return text$1;hasRequiredText$1=1;const e=requireKleur(),t=requirePrompt(),{erase:n,cursor:r}=requireSrc$6(),{style:i,clear:o,lines:s,figures:a}=requireUtil$3();return text$1=class extends t{constructor(e={}){super(e),this.transform=i.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=o("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=e.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error)return this.red=!0,this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let n=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor);this.value=`${n}${e}${r}`,this.red=!1,this.cursor=this.placeholder?0:n.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(r.down(s(this.outputError,this.out.columns)-1)+o(this.outputError,this.out.columns)),this.out.write(o(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[i.symbol(this.done,this.aborted),e.bold(this.msg),i.delimiter(this.done),this.red?e.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,n,r)=>t+`\n${r?" ":a.pointerSmall} ${e.red().italic(n)}`),"")),this.out.write(n.line+r.to(0)+this.outputText+r.save+this.outputError+r.restore+r.move(this.cursorOffset,0)))}},text$1}function requireSelect(){if(hasRequiredSelect)return select;hasRequiredSelect=1;const e=requireKleur(),t=requirePrompt(),{style:n,clear:r,figures:i,wrap:o,entriesToDisplay:s}=requireUtil$3(),{cursor:a}=requireSrc$6();return select=class extends t{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=r("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,t){if(" "===e)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(a.hide):this.out.write(r(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:c}=s(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[n.symbol(this.done,this.aborted),e.bold(this.msg),n.delimiter(!1),this.done?this.selection.title:this.selection.disabled?e.yellow(this.warn):e.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let n=t;n<c;n++){let r,s,a="",l=this.choices[n];s=n===t&&t>0?i.arrowUp:n===c-1&&c<this.choices.length?i.arrowDown:" ",l.disabled?(r=this.cursor===n?e.gray().underline(l.title):e.strikethrough().gray(l.title),s=(this.cursor===n?e.bold().gray(i.pointer)+" ":" ")+s):(r=this.cursor===n?e.cyan().underline(l.title):l.title,s=(this.cursor===n?e.cyan(i.pointer)+" ":" ")+s,l.description&&this.cursor===n&&(a=` - ${l.description}`,(s.length+r.length+a.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(a="\n"+o(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${r}${e.gray(a)}\n`}}this.out.write(this.outputText)}},select}function requireToggle(){if(hasRequiredToggle)return toggle;hasRequiredToggle=1;const e=requireKleur(),t=requirePrompt(),{style:n,clear:r}=requireUtil$3(),{cursor:i,erase:o}=requireSrc$6();return toggle=class extends t{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(i.hide):this.out.write(r(this.outputText,this.out.columns)),super.render(),this.outputText=[n.symbol(this.done,this.aborted),e.bold(this.msg),n.delimiter(this.done),this.value?this.inactive:e.cyan().underline(this.inactive),e.gray("/"),this.value?e.cyan().underline(this.active):this.active].join(" "),this.out.write(o.line+i.to(0)+this.outputText))}}}function requireDatepart(){if(hasRequiredDatepart)return datepart;hasRequiredDatepart=1;class e{constructor({token:e,date:t,parts:n,locales:r}){this.token=e,this.date=t||new Date,this.parts=n||[this],this.locales=r||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((n,r)=>r>t&&n instanceof e))}setTo(e){}prev(){let t=[].concat(this.parts).reverse();const n=t.indexOf(this);return t.find(((t,r)=>r>n&&t instanceof e))}toString(){return String(this.date)}}return datepart=e}function requireMeridiem(){if(hasRequiredMeridiem)return meridiem;hasRequiredMeridiem=1;const e=requireDatepart();return meridiem=class extends e{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}}function requireDay(){if(hasRequiredDay)return day;hasRequiredDay=1;const e=requireDatepart();return day=class extends e{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(n=e,1==(n%=10)?"st":2===n?"nd":3===n?"rd":"th"):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e;var n}},day}function requireHours(){if(hasRequiredHours)return hours;hasRequiredHours=1;const e=requireDatepart();return hours=class extends e{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}}}function requireMilliseconds(){if(hasRequiredMilliseconds)return milliseconds;hasRequiredMilliseconds=1;const e=requireDatepart();return milliseconds=class extends e{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}}function requireMinutes(){if(hasRequiredMinutes)return minutes;hasRequiredMinutes=1;const e=requireDatepart();return minutes=class extends e{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}}function requireMonth(){if(hasRequiredMonth)return month;hasRequiredMonth=1;const e=requireDatepart();return month=class extends e{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}}}function requireSeconds(){if(hasRequiredSeconds)return seconds;hasRequiredSeconds=1;const e=requireDatepart();return seconds=class extends e{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}}function requireYear(){if(hasRequiredYear)return year;hasRequiredYear=1;const e=requireDatepart();return year=class extends e{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}}}function requireDateparts(){return hasRequiredDateparts?dateparts:(hasRequiredDateparts=1,dateparts={DatePart:requireDatepart(),Meridiem:requireMeridiem(),Day:requireDay(),Hours:requireHours(),Milliseconds:requireMilliseconds(),Minutes:requireMinutes(),Month:requireMonth(),Seconds:requireSeconds(),Year:requireYear()})}function requireDate(){if(hasRequiredDate)return date;hasRequiredDate=1;const e=requireKleur(),t=requirePrompt(),{style:n,clear:r,figures:i}=requireUtil$3(),{erase:o,cursor:s}=requireSrc$6(),{DatePart:a,Meridiem:c,Day:l,Hours:u,Milliseconds:d,Minutes:p,Month:f,Seconds:_,Year:m}=requireDateparts(),h=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,g={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new l(e),3:e=>new f(e),4:e=>new m(e),5:e=>new c(e),6:e=>new u(e),7:e=>new p(e),8:e=>new _(e),9:e=>new d(e)},A={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};return date=class extends t{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(A,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=r("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=h.exec(e);){let e=t.shift(),n=t.findIndex((e=>null!=e));this.parts.push(n in g?g[n]({token:t[n]||e,date:this.date,parts:this.parts,locales:this.locales}):t[n]||e)}let n=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...n),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof a))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof a))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(s.hide):this.out.write(r(this.outputText,this.out.columns)),super.render(),this.outputText=[n.symbol(this.done,this.aborted),e.bold(this.msg),n.delimiter(!1),this.parts.reduce(((t,n,r)=>t.concat(r!==this.cursor||this.done?n:e.cyan().underline(n.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,n,r)=>t+`\n${r?" ":i.pointerSmall} ${e.red().italic(n)}`),"")),this.out.write(o.line+s.to(0)+this.outputText))}},date}function requireNumber(){if(hasRequiredNumber)return number;hasRequiredNumber=1;const e=requireKleur(),t=requirePrompt(),{cursor:n,erase:r}=requireSrc$6(),{style:i,figures:o,clear:s,lines:a}=requireUtil$3(),c=/[0-9]/,l=e=>void 0!==e,u=(e,t)=>{let n=Math.pow(10,t);return Math.round(e*n)/n};return number=class extends t{constructor(e={}){super(e),this.transform=i.render(e.style),this.msg=e.message,this.initial=l(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=l(e.min)?e.min:-1/0,this.max=l(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${u(t,this.round)}`),this._value=u(t,this.round)):(this.placeholder=!0,this.rendered=e.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||c.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let e=this.value;this.value=""!==e?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,t){if(!this.valid(e))return this.bell();const n=Date.now();if(n-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=n,this.color="cyan","."===e)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(n.down(a(this.outputError,this.out.columns)-1)+s(this.outputError,this.out.columns)),this.out.write(s(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[i.symbol(this.done,this.aborted),e.bold(this.msg),i.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:e[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,n,r)=>t+`\n${r?" ":o.pointerSmall} ${e.red().italic(n)}`),"")),this.out.write(r.line+n.to(0)+this.outputText+n.save+this.outputError+n.restore))}},number}function requireMultiselect(){if(hasRequiredMultiselect)return multiselect;hasRequiredMultiselect=1;const e=requireKleur(),{cursor:t}=requireSrc$6(),n=requirePrompt(),{clear:r,figures:i,style:o,wrap:s,entriesToDisplay:a}=requireUtil$3();return multiselect=class extends n{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=r("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${i.arrowUp}/${i.arrowDown}: Highlight option\n ${i.arrowLeft}/${i.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,n,r,o){const a=(n.selected?e.green(i.radioOn):i.radioOff)+" "+o+" ";let c,l;return n.disabled?c=t===r?e.gray().underline(n.title):e.strikethrough().gray(n.title):(c=t===r?e.cyan().underline(n.title):n.title,t===r&&n.description&&(l=` - ${n.description}`,(a.length+c.length+l.length>=this.out.columns||n.description.split(/\r?\n/).length>1)&&(l="\n"+s(n.description,{margin:a.length,width:this.out.columns})))),a+c+e.gray(l||"")}paginateOptions(t){if(0===t.length)return e.red("No matches for this query.");let n,{startIndex:r,endIndex:o}=a(this.cursor,t.length,this.optionsPerPage),s=[];for(let e=r;e<o;e++)n=e===r&&r>0?i.arrowUp:e===o-1&&o<t.length?i.arrowDown:" ",s.push(this.renderOption(this.cursor,t[e],e,n));return"\n"+s.join("\n")}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const t=[e.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(e.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(t.hide),super.render();let n=[o.symbol(this.done,this.aborted),e.bold(this.msg),o.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(n+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),n+=this.renderOptions(this.value),this.out.write(this.clear+n),this.clear=r(n,this.out.columns)}},multiselect}function requireAutocomplete(){if(hasRequiredAutocomplete)return autocomplete;hasRequiredAutocomplete=1;const e=requireKleur(),t=requirePrompt(),{erase:n,cursor:r}=requireSrc$6(),{style:i,clear:o,figures:s,wrap:a,entriesToDisplay:c}=requireUtil$3(),l=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),u=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);return autocomplete=class extends t{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const n=e.findIndex((e=>e.value===t||e.title===t));return n>-1?n:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=i.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=o("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=l(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices),n=await t;if(this.completing!==t)return;this.suggestions=n.map(((e,t,n)=>({title:u(n,t),value:l(n,t),description:e.description}))),this.completing=!1;const r=Math.max(n.length-1,0);this.moveSelect(Math.min(r,this.select)),e&&e()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){let n=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor);this.input=`${n}${e}${r}`,this.cursor=n.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(t,n,r,i){let o,c=r?s.arrowUp:i?s.arrowDown:" ",l=n?e.cyan().underline(t.title):t.title;return c=(n?e.cyan(s.pointer)+" ":" ")+c,t.description&&(o=` - ${t.description}`,(c.length+l.length+o.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(o="\n"+a(t.description,{margin:3,width:this.out.columns}))),c+" "+l+e.gray(o||"")}render(){if(this.closed)return;this.firstRender?this.out.write(r.hide):this.out.write(o(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:s}=c(this.select,this.choices.length,this.limit);if(this.outputText=[i.symbol(this.done,this.aborted,this.exited),e.bold(this.msg),i.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const n=this.suggestions.slice(t,s).map(((e,n)=>this.renderOption(e,this.select===n+t,0===n&&t>0,n+t===s-1&&s<this.choices.length))).join("\n");this.outputText+="\n"+(n||e.gray(this.fallback.title))}this.out.write(n.line+r.to(0)+this.outputText)}},autocomplete}function requireAutocompleteMultiselect(){if(hasRequiredAutocompleteMultiselect)return autocompleteMultiselect;hasRequiredAutocompleteMultiselect=1;const e=requireKleur(),{cursor:t}=requireSrc$6(),n=requireMultiselect(),{clear:r,style:i,figures:o}=requireUtil$3();return autocompleteMultiselect=class extends n{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=r("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||(!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${o.arrowUp}/${o.arrowDown}: Highlight option\n ${o.arrowLeft}/${o.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:e.gray("Enter something to filter")}\n`}renderOption(t,n,r){let i;return i=n.disabled?t===r?e.gray().underline(n.title):e.strikethrough().gray(n.title):t===r?e.cyan().underline(n.title):n.title,(n.selected?e.green(o.radioOn):o.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const t=[e.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(e.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(t.hide),super.render();let n=[i.symbol(this.done,this.aborted),e.bold(this.msg),i.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(n+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),n+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+n),this.clear=r(n,this.out.columns)}},autocompleteMultiselect}function requireConfirm(){if(hasRequiredConfirm)return confirm;hasRequiredConfirm=1;const e=requireKleur(),t=requirePrompt(),{style:n,clear:r}=requireUtil$3(),{erase:i,cursor:o}=requireSrc$6();return confirm=class extends t{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(o.hide):this.out.write(r(this.outputText,this.out.columns)),super.render(),this.outputText=[n.symbol(this.done,this.aborted),e.bold(this.msg),n.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:e.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(i.line+o.to(0)+this.outputText))}}}function requireElements(){return hasRequiredElements?elements:(hasRequiredElements=1,elements={TextPrompt:requireText$1(),SelectPrompt:requireSelect(),TogglePrompt:requireToggle(),DatePrompt:requireDate(),NumberPrompt:requireNumber(),MultiselectPrompt:requireMultiselect(),AutocompletePrompt:requireAutocomplete(),AutocompleteMultiselectPrompt:requireAutocompleteMultiselect(),ConfirmPrompt:requireConfirm()})}function requirePrompts$1(){return hasRequiredPrompts$1||(hasRequiredPrompts$1=1,function(){const e=prompts$2,t=requireElements(),n=e=>e;function r(e,r,i={}){return new Promise(((o,s)=>{const a=new t[e](r),c=i.onAbort||n,l=i.onSubmit||n,u=i.onExit||n;a.on("state",r.onState||n),a.on("submit",(e=>o(l(e)))),a.on("exit",(e=>o(u(e)))),a.on("abort",(e=>s(c(e))))}))}e.text=e=>r("TextPrompt",e),e.password=t=>(t.style="password",e.text(t)),e.invisible=t=>(t.style="invisible",e.text(t)),e.number=e=>r("NumberPrompt",e),e.date=e=>r("DatePrompt",e),e.confirm=e=>r("ConfirmPrompt",e),e.list=e=>{const t=e.separator||",";return r("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},e.toggle=e=>r("TogglePrompt",e),e.select=e=>r("SelectPrompt",e),e.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return r("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},e.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return r("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const i=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));e.autocomplete=e=>(e.suggest=e.suggest||i,e.choices=[].concat(e.choices||[]),r("AutocompletePrompt",e))}()),prompts$2}function requireLib$e(){if(hasRequiredLib$e)return lib$f;hasRequiredLib$e=1;const e=requirePrompts$1(),t=["suggest","format","onState","validate","onRender","type"],n=()=>{};async function r(o=[],{onSubmit:s=n,onCancel:a=n}={}){const c={},l=r._override||{};let u,d,p,f,_,m;o=[].concat(o);const h=async(e,t,n=!1)=>{if(n||!e.validate||!0===e.validate(t))return e.format?await e.format(t,c):t};for(d of o)if(({name:f,type:_}=d),"function"==typeof _&&(_=await _(u,{...c},d),d.type=_),_){for(let e in d){if(t.includes(e))continue;let n=d[e];d[e]="function"==typeof n?await n(u,{...c},m):n}if(m=d,"string"!=typeof d.message)throw new Error("prompt message is required");if(({name:f,type:_}=d),void 0===e[_])throw new Error(`prompt type (${_}) is not defined`);if(void 0===l[d.name]||(u=await h(d,l[d.name]),void 0===u)){try{u=r._injected?i(r._injected,d.initial):await e[_](d),c[f]=u=await h(d,u,!0),p=await s(d,u,c)}catch(e){p=!await a(d,c)}if(p)return c}else c[f]=u}return c}function i(e,t){const n=e.shift();if(n instanceof Error)throw n;return void 0===n?t:n}return lib$f=Object.assign(r,{prompt:r,prompts:e,inject:function(e){r._injected=(r._injected||[]).concat(e)},override:function(e){r._override=Object.assign({},e)}})}function requirePrompts(){if(hasRequiredPrompts)return prompts$1;return hasRequiredPrompts=1,prompts$1=function(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,n=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(n[t]>e[t])return!1;if(e[t]>n[t])return!0}return!1}("8.6.0")?requireDist$6():requireLib$e(),prompts$1}var promptsExports=requirePrompts(),prompts=getDefaultExportFromCjs(promptsExports),dist$5={},src$5={},hasRequiredSrc$5,hasRequiredDist$5;function requireSrc$5(){return hasRequiredSrc$5||(hasRequiredSrc$5=1,function(e){var t=src$5&&src$5.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});const n=require$$0$7,r=t(requireSrc$8()).default("@kwsites/file-exists");e.exists=function(t,i=e.READABLE){return function(e,t,i){r("checking %s",e);try{const o=n.statSync(e);return o.isFile()&&t?(r("[OK] path represents a file"),!0):o.isDirectory()&&i?(r("[OK] path represents a directory"),!0):(r("[FAIL] path represents something other than a file or directory"),!1)}catch(e){if("ENOENT"===e.code)return r("[FAIL] path is not accessible: %o",e),!1;throw r("[FATAL] %o",e),e}}(t,(i&e.FILE)>0,(i&e.FOLDER)>0)},e.FILE=1,e.FOLDER=2,e.READABLE=e.FILE+e.FOLDER}(src$5)),src$5}function requireDist$5(){return hasRequiredDist$5||(hasRequiredDist$5=1,e=dist$5,Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(requireSrc$5())),dist$5;var e}var distExports$2=requireDist$5(),dist$4={},hasRequiredDist$4;function requireDist$4(){if(hasRequiredDist$4)return dist$4;function e(){let e,t,n="pending";return{promise:new Promise(((n,r)=>{e=n,t=r})),done(t){"pending"===n&&(n="resolved",e(t))},fail(e){"pending"===n&&(n="rejected",t(e))},get fulfilled(){return"pending"!==n},get status(){return n}}}return hasRequiredDist$4=1,Object.defineProperty(dist$4,"__esModule",{value:!0}),dist$4.createDeferred=dist$4.deferred=void 0,dist$4.deferred=e,dist$4.createDeferred=e,dist$4.default=e,dist$4}var distExports$1=requireDist$4(),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__esm=(e,t)=>function(){return e&&(t=(0,e[__getOwnPropNames(e)[0]])(e=0)),t},__commonJS=(e,t)=>function(){return t||(0,e[__getOwnPropNames(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var n in t)__defProp(e,n,{get:t[n],enumerable:!0})},__copyProps=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of __getOwnPropNames(t))__hasOwnProp.call(e,i)||i===n||__defProp(e,i,{get:()=>t[i],enumerable:!(r=__getOwnPropDesc(t,i))||r.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__async=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{a(n.next(e))}catch(e){i(e)}},s=e=>{try{a(n.throw(e))}catch(e){i(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,s);a((n=n.apply(e,t)).next())})),cache;function pathspec(...e){const t=new String(e);return cache.set(t,e),t}function isPathSpec(e){return e instanceof String&&cache.has(e)}function toPaths(e){return cache.get(e)||[]}var init_pathspec=__esm({"src/lib/args/pathspec.ts"(){cache=new WeakMap}}),GitError,init_git_error=__esm({"src/lib/errors/git-error.ts"(){GitError=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),GitResponseError,init_git_response_error=__esm({"src/lib/errors/git-response-error.ts"(){init_git_error(),GitResponseError=class extends GitError{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),TaskConfigurationError,init_task_configuration_error=__esm({"src/lib/errors/task-configuration-error.ts"(){init_git_error(),TaskConfigurationError=class extends GitError{constructor(e){super(void 0,e)}}}}),NULL,NOOP$1,objectToString;function asFunction(e){return"function"==typeof e?e:NOOP$1}function isUserFunction(e){return"function"==typeof e&&e!==NOOP$1}function splitOn(e,t){const n=e.indexOf(t);return n<=0?[e,""]:[e.substr(0,n),e.substr(n+1)]}function first(e,t=0){return isArrayLike(e)&&e.length>t?e[t]:void 0}function last(e,t=0){if(isArrayLike(e)&&e.length>t)return e[e.length-1-t]}function isArrayLike(e){return!(!e||"number"!=typeof e.length)}function toLinesWithContent(e="",t=!0,n="\n"){return e.split(n).reduce(((e,n)=>{const r=t?n.trim():n;return r&&e.push(r),e}),[])}function forEachLineWithContent(e,t){return toLinesWithContent(e,!0).map((e=>t(e)))}function folderExists(e){return distExports$2.exists(e,distExports$2.FOLDER)}function append(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function including(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function remove(e,t){if(Array.isArray(e)){const n=e.indexOf(t);n>=0&&e.splice(n,1)}else e.delete(t);return t}function asArray(e){return Array.isArray(e)?e:[e]}function asCamelCase(e){return e.replace(/[\s-]+(.)/g,((e,t)=>t.toUpperCase()))}function asStringArray(e){return asArray(e).map(String)}function asNumber(e,t=0){if(null==e)return t;const n=parseInt(e,10);return isNaN(n)?t:n}function prefixedArray(e,t){const n=[];for(let r=0,i=e.length;r<i;r++)n.push(t,e[r]);return n}function bufferToString(e){return(Array.isArray(e)?Buffer.concat(e):e).toString("utf-8")}function pick(e,t){return Object.assign({},...t.map((t=>t in e?{[t]:e[t]}:{})))}function delay(e=0){return new Promise((t=>setTimeout(t,e)))}function orVoid(e){if(!1!==e)return e}var init_util=__esm({"src/lib/utils/util.ts"(){NULL="\0",NOOP$1=()=>{},objectToString=Object.prototype.toString.call.bind(Object.prototype.toString)}}),filterArray,filterString,filterStringArray,filterStringOrStringArray,filterHasLength;function filterType(e,t,n){return t(e)?e:arguments.length>2?n:void 0}function filterPrimitives(e,t){const n=isPathSpec(e)?"string":typeof e;return/number|string|boolean/.test(n)&&(!t||!t.includes(n))}function filterPlainObject(e){return!!e&&"[object Object]"===objectToString(e)}function filterFunction(e){return"function"==typeof e}var init_argument_filters=__esm({"src/lib/utils/argument-filters.ts"(){init_util(),init_pathspec(),filterArray=e=>Array.isArray(e),filterString=e=>"string"==typeof e,filterStringArray=e=>Array.isArray(e)&&e.every(filterString),filterStringOrStringArray=e=>filterString(e)||Array.isArray(e)&&e.every(filterString),filterHasLength=e=>null!=e&&!"number|boolean|function".includes(typeof e)&&(Array.isArray(e)||"string"==typeof e||"number"==typeof e.length)}}),ExitCodes,init_exit_codes=__esm({"src/lib/utils/exit-codes.ts"(){ExitCodes=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.NOT_FOUND=-2]="NOT_FOUND",e[e.UNCLEAN=128]="UNCLEAN",e))(ExitCodes||{})}}),GitOutputStreams,init_git_output_streams=__esm({"src/lib/utils/git-output-streams.ts"(){GitOutputStreams=class{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}}),LineParser,RemoteLineParser,init_line_parser=__esm({"src/lib/utils/line-parser.ts"(){LineParser=class{constructor(e,t){this.matches=[],this.parse=(e,t)=>(this.resetMatches(),!!this._regExp.every(((t,n)=>this.addMatch(t,n,e(n))))&&!1!==this.useMatches(t,this.prepareMatches())),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}useMatches(e,t){throw new Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,n){const r=n&&e.exec(n);return r&&this.pushMatch(t,r),!!r}pushMatch(e,t){this.matches.push(...t.slice(1))}},RemoteLineParser=class extends LineParser{addMatch(e,t,n){return/^remote:\s/.test(String(n))&&super.addMatch(e,t,n)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}}),defaultOptions;function createInstanceConfig(...e){const t=process.cwd(),n=Object.assign(__spreadValues({baseDir:t},defaultOptions),...e.filter((e=>"object"==typeof e&&e)));return n.baseDir=n.baseDir||t,n.trimmed=!0===n.trimmed,n}var init_simple_git_options=__esm({"src/lib/utils/simple-git-options.ts"(){defaultOptions={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function appendTaskOptions(e,t=[]){return filterPlainObject(e)?Object.keys(e).reduce(((t,n)=>{const r=e[n];return isPathSpec(r)?t.push(r):filterPrimitives(r,["boolean"])?t.push(n+"="+r):t.push(n),t}),t):t}function getTrailingOptions(e,t=0,n=!1){const r=[];for(let n=0,i=t<0?e.length:t;n<i;n++)"string|number".includes(typeof e[n])&&r.push(String(e[n]));return appendTaskOptions(trailingOptionsArgument(e),r),n||r.push(...trailingArrayArgument(e)),r}function trailingArrayArgument(e){const t="function"==typeof last(e);return filterType(last(e,t?1:0),filterArray,[])}function trailingOptionsArgument(e){const t=filterFunction(last(e));return filterType(last(e,t?1:0),filterPlainObject)}function trailingFunctionArgument(e,t=!0){const n=asFunction(last(e));return t||isUserFunction(n)?n:void 0}var init_task_options=__esm({"src/lib/utils/task-options.ts"(){init_argument_filters(),init_util(),init_pathspec()}});function callTaskParser(e,t){return e(t.stdOut,t.stdErr)}function parseStringResponse(e,t,n,r=!0){return asArray(n).forEach((n=>{for(let i=toLinesWithContent(n,r),o=0,s=i.length;o<s;o++){const n=(e=0)=>{if(!(o+e>=s))return i[o+e]};t.some((({parse:t})=>t(n,e)))}})),e}var init_task_parser=__esm({"src/lib/utils/task-parser.ts"(){init_util()}}),utils_exports={};__export(utils_exports,{ExitCodes:()=>ExitCodes,GitOutputStreams:()=>GitOutputStreams,LineParser:()=>LineParser,NOOP:()=>NOOP$1,NULL:()=>NULL,RemoteLineParser:()=>RemoteLineParser,append:()=>append,appendTaskOptions:()=>appendTaskOptions,asArray:()=>asArray,asCamelCase:()=>asCamelCase,asFunction:()=>asFunction,asNumber:()=>asNumber,asStringArray:()=>asStringArray,bufferToString:()=>bufferToString,callTaskParser:()=>callTaskParser,createInstanceConfig:()=>createInstanceConfig,delay:()=>delay,filterArray:()=>filterArray,filterFunction:()=>filterFunction,filterHasLength:()=>filterHasLength,filterPlainObject:()=>filterPlainObject,filterPrimitives:()=>filterPrimitives,filterString:()=>filterString,filterStringArray:()=>filterStringArray,filterStringOrStringArray:()=>filterStringOrStringArray,filterType:()=>filterType,first:()=>first,folderExists:()=>folderExists,forEachLineWithContent:()=>forEachLineWithContent,getTrailingOptions:()=>getTrailingOptions,including:()=>including,isUserFunction:()=>isUserFunction,last:()=>last,objectToString:()=>objectToString,orVoid:()=>orVoid,parseStringResponse:()=>parseStringResponse,pick:()=>pick,prefixedArray:()=>prefixedArray,remove:()=>remove,splitOn:()=>splitOn,toLinesWithContent:()=>toLinesWithContent,trailingFunctionArgument:()=>trailingFunctionArgument,trailingOptionsArgument:()=>trailingOptionsArgument});var init_utils=__esm({"src/lib/utils/index.ts"(){init_argument_filters(),init_exit_codes(),init_git_output_streams(),init_line_parser(),init_simple_git_options(),init_task_options(),init_task_parser(),init_util()}}),check_is_repo_exports={},CheckRepoActions,onError,parser;function checkIsRepoTask(e){switch(e){case"bare":return checkIsBareRepoTask();case"root":return checkIsRepoRootTask()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:onError,parser:parser}}function checkIsRepoRootTask(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:onError,parser:e=>/^\.(git)?$/.test(e.trim())}}function checkIsBareRepoTask(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:onError,parser:parser}}function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}__export(check_is_repo_exports,{CheckRepoActions:()=>CheckRepoActions,checkIsBareRepoTask:()=>checkIsBareRepoTask,checkIsRepoRootTask:()=>checkIsRepoRootTask,checkIsRepoTask:()=>checkIsRepoTask});var init_check_is_repo=__esm({"src/lib/tasks/check-is-repo.ts"(){init_utils(),CheckRepoActions=(e=>(e.BARE="bare",e.IN_TREE="tree",e.IS_REPO_ROOT="root",e))(CheckRepoActions||{}),onError=({exitCode:e},t,n,r)=>{if(128===e&&isNotRepoMessage(t))return n(Buffer.from("false"));r(t)},parser=e=>"true"===e.trim()}}),CleanResponse,removalRegexp,dryRunRemovalRegexp,isFolderRegexp;function cleanSummaryParser(e,t){const n=new CleanResponse(e),r=e?dryRunRemovalRegexp:removalRegexp;return toLinesWithContent(t).forEach((e=>{const t=e.replace(r,"");n.paths.push(t),(isFolderRegexp.test(t)?n.folders:n.files).push(t)})),n}var init_CleanSummary=__esm({"src/lib/responses/CleanSummary.ts"(){init_utils(),CleanResponse=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},removalRegexp=/^[a-z]+\s*/i,dryRunRemovalRegexp=/^[a-z]+\s+[a-z]+\s*/i,isFolderRegexp=/\/$/}}),task_exports={},EMPTY_COMMANDS;function adhocExecTask(e){return{commands:EMPTY_COMMANDS,format:"empty",parser:e}}function configurationErrorTask(e){return{commands:EMPTY_COMMANDS,format:"empty",parser(){throw"string"==typeof e?new TaskConfigurationError(e):e}}}function straightThroughStringTask(e,t=!1){return{commands:e,format:"utf-8",parser:e=>t?String(e).trim():e}}function straightThroughBufferTask(e){return{commands:e,format:"buffer",parser:e=>e}}function isBufferTask(e){return"buffer"===e.format}function isEmptyTask(e){return"empty"===e.format||!e.commands.length}__export(task_exports,{EMPTY_COMMANDS:()=>EMPTY_COMMANDS,adhocExecTask:()=>adhocExecTask,configurationErrorTask:()=>configurationErrorTask,isBufferTask:()=>isBufferTask,isEmptyTask:()=>isEmptyTask,straightThroughBufferTask:()=>straightThroughBufferTask,straightThroughStringTask:()=>straightThroughStringTask});var init_task=__esm({"src/lib/tasks/task.ts"(){init_task_configuration_error(),EMPTY_COMMANDS=[]}}),clean_exports={},CONFIG_ERROR_INTERACTIVE_MODE,CONFIG_ERROR_MODE_REQUIRED,CONFIG_ERROR_UNKNOWN_OPTION,CleanOptions,CleanOptionValues;function cleanWithOptionsTask(e,t){const{cleanMode:n,options:r,valid:i}=getCleanOptions(e);return n?i.options?(r.push(...t),r.some(isInteractiveMode)?configurationErrorTask(CONFIG_ERROR_INTERACTIVE_MODE):cleanTask(n,r)):configurationErrorTask(CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e)):configurationErrorTask(CONFIG_ERROR_MODE_REQUIRED)}function cleanTask(e,t){return{commands:["clean",`-${e}`,...t],format:"utf-8",parser:t=>cleanSummaryParser("n"===e,t)}}function isCleanOptionsArray(e){return Array.isArray(e)&&e.every((e=>CleanOptionValues.has(e)))}function getCleanOptions(e){let t,n=[],r={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,"").split("").forEach((e=>{isCleanMode(e)?(t=e,r.cleanMode=!0):r.options=r.options&&isKnownOption(n[n.length]=`-${e}`)})),{cleanMode:t,options:n,valid:r}}function isCleanMode(e){return"f"===e||"n"===e}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&CleanOptionValues.has(e.charAt(1))}function isInteractiveMode(e){return/^-[^\-]/.test(e)?e.indexOf("i")>0:"--interactive"===e}__export(clean_exports,{CONFIG_ERROR_INTERACTIVE_MODE:()=>CONFIG_ERROR_INTERACTIVE_MODE,CONFIG_ERROR_MODE_REQUIRED:()=>CONFIG_ERROR_MODE_REQUIRED,CONFIG_ERROR_UNKNOWN_OPTION:()=>CONFIG_ERROR_UNKNOWN_OPTION,CleanOptions:()=>CleanOptions,cleanTask:()=>cleanTask,cleanWithOptionsTask:()=>cleanWithOptionsTask,isCleanOptionsArray:()=>isCleanOptionsArray});var init_clean=__esm({"src/lib/tasks/clean.ts"(){init_CleanSummary(),init_utils(),init_task(),CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported",CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required',CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ",CleanOptions=(e=>(e.DRY_RUN="n",e.FORCE="f",e.IGNORED_INCLUDED="x",e.IGNORED_ONLY="X",e.EXCLUDING="e",e.QUIET="q",e.RECURSIVE="d",e))(CleanOptions||{}),CleanOptionValues=new Set(["i",...asStringArray(Object.values(CleanOptions))])}}),ConfigList;function configListParser(e){const t=new ConfigList;for(const n of configParser(e))t.addValue(n.file,String(n.key),n.value);return t}function configGetParser(e,t){let n=null;const r=[],i=new Map;for(const o of configParser(e,t))o.key===t&&(r.push(n=o.value),i.has(o.file)||i.set(o.file,[]),i.get(o.file).push(n));return{key:t,paths:Array.from(i.keys()),scopes:i,value:n,values:r}}function configFilePath(e){return e.replace(/^(file):/,"")}function*configParser(e,t=null){const n=e.split("\0");for(let e=0,r=n.length-1;e<r;){const r=configFilePath(n[e++]);let i=n[e++],o=t;if(i.includes("\n")){const e=splitOn(i,"\n");o=e[0],i=e[1]}yield{file:r,key:o,value:i}}}var init_ConfigList=__esm({"src/lib/responses/ConfigList.ts"(){init_utils(),ConfigList=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce(((e,t)=>Object.assign(e,this.values[t])),{})),this._all}addFile(e){if(!(e in this.values)){const t=last(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,n){const r=this.addFile(e);r.hasOwnProperty(t)?Array.isArray(r[t])?r[t].push(n):r[t]=[r[t],n]:r[t]=n,this._all=void 0}}}}),GitConfigScope;function asConfigScope(e,t){return"string"==typeof e&&GitConfigScope.hasOwnProperty(e)?e:t}function addConfigTask(e,t,n,r){const i=["config",`--${r}`];return n&&i.push("--add"),i.push(e,t),{commands:i,format:"utf-8",parser:e=>e}}function getConfigTask(e,t){const n=["config","--null","--show-origin","--get-all",e];return t&&n.splice(1,0,`--${t}`),{commands:n,format:"utf-8",parser:t=>configGetParser(t,e)}}function listConfigTask(e){const t=["config","--list","--show-origin","--null"];return e&&t.push(`--${e}`),{commands:t,format:"utf-8",parser:e=>configListParser(e)}}function config_default(){return{addConfig(e,t,...n){return this._runTask(addConfigTask(e,t,!0===n[0],asConfigScope(n[1],"local")),trailingFunctionArgument(arguments))},getConfig(e,t){return this._runTask(getConfigTask(e,asConfigScope(t,void 0)),trailingFunctionArgument(arguments))},listConfig(...e){return this._runTask(listConfigTask(asConfigScope(e[0],void 0)),trailingFunctionArgument(arguments))}}}var init_config=__esm({"src/lib/tasks/config.ts"(){init_ConfigList(),init_utils(),GitConfigScope=(e=>(e.system="system",e.global="global",e.local="local",e.worktree="worktree",e))(GitConfigScope||{})}}),DiffNameStatus,diffNameStatus;function isDiffNameStatus(e){return diffNameStatus.has(e)}var init_diff_name_status=__esm({"src/lib/tasks/diff-name-status.ts"(){DiffNameStatus=(e=>(e.ADDED="A",e.COPIED="C",e.DELETED="D",e.MODIFIED="M",e.RENAMED="R",e.CHANGED="T",e.UNMERGED="U",e.UNKNOWN="X",e.BROKEN="B",e))(DiffNameStatus||{}),diffNameStatus=new Set(Object.values(DiffNameStatus))}}),disallowedOptions,Query,_a,GrepQuery;function grepQueryBuilder(...e){return(new GrepQuery).param(...e)}function parseGrep(e){const t=new Set,n={};return forEachLineWithContent(e,(e=>{const[r,i,o]=e.split(NULL);t.add(r),(n[r]=n[r]||[]).push({line:asNumber(i),path:r,preview:o})})),{paths:t,results:n}}function grep_default(){return{grep(e){const t=trailingFunctionArgument(arguments),n=getTrailingOptions(arguments);for(const e of disallowedOptions)if(n.includes(e))return this._runTask(configurationErrorTask(`git.grep: use of "${e}" is not supported.`),t);"string"==typeof e&&(e=grepQueryBuilder().param(e));const r=["grep","--null","-n","--full-name",...n,...e];return this._runTask({commands:r,format:"utf-8",parser:e=>parseGrep(e)},t)}}}var init_grep=__esm({"src/lib/tasks/grep.ts"(){init_utils(),init_task(),disallowedOptions=["-h"],Query=Symbol("grepQuery"),GrepQuery=class{constructor(){this[_a]=[]}*[(_a=Query,Symbol.iterator)](){for(const e of this[Query])yield e}and(...e){return e.length&&this[Query].push("--and","(",...prefixedArray(e,"-e"),")"),this}param(...e){return this[Query].push(...prefixedArray(e,"-e")),this}}}}),reset_exports={},ResetMode,ResetModes;function resetTask(e,t){const n=["reset"];return isValidResetMode(e)&&n.push(`--${e}`),n.push(...t),straightThroughStringTask(n)}function getResetMode(e){if(isValidResetMode(e))return e;switch(typeof e){case"string":case"undefined":return"soft"}}function isValidResetMode(e){return ResetModes.includes(e)}__export(reset_exports,{ResetMode:()=>ResetMode,getResetMode:()=>getResetMode,resetTask:()=>resetTask});var init_reset=__esm({"src/lib/tasks/reset.ts"(){init_task(),ResetMode=(e=>(e.MIXED="mixed",e.SOFT="soft",e.HARD="hard",e.MERGE="merge",e.KEEP="keep",e))(ResetMode||{}),ResetModes=Array.from(Object.values(ResetMode))}});function createLog(){return debugModule("simple-git")}function prefixedLogger(e,t,n){return t&&String(t).replace(/\s*/,"")?(r,...i)=>{e(`%s ${r}`,t,...i),n&&n(r,...i)}:n?(t,...r)=>{e(t,...r),n(t,...r)}:e}function childLoggerName(e,t,{namespace:n}){if("string"==typeof e)return e;const r=t&&t.namespace||"";return r.startsWith(n)?r.substr(n.length+1):r||n}function createLogger(e,t,n,r=createLog()){const i=e&&`[${e}]`||"",o=[],s="string"==typeof t?r.extend(t):t,a=childLoggerName(filterType(t,filterString),s,r);return function t(n){const o=n&&`[${n}]`||"",a=s&&prefixedLogger(s,o)||NOOP$1,l=prefixedLogger(r,`${i} ${o}`,a);return Object.assign(s?a:l,{label:e,sibling:c,info:l,step:t})}(n);function c(t,n){return append(o,createLogger(e,a.replace(/^[^:]+/,t),n,r))}}var init_git_logger=__esm({"src/lib/git-logger.ts"(){init_utils(),debugModule.formatters.L=e=>String(filterHasLength(e)?e.length:"-"),debugModule.formatters.B=e=>Buffer.isBuffer(e)?e.toString("utf8"):objectToString(e)}}),_TasksPendingQueue,TasksPendingQueue,init_tasks_pending_queue=__esm({"src/lib/runners/tasks-pending-queue.ts"(){init_git_error(),init_git_logger(),_TasksPendingQueue=class{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const t=_TasksPendingQueue.getName(e.commands[0]);return{task:e,logger:createLogger(this.logLabel,t),name:t}}push(e){const t=this.createProgress(e);return t.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,t),t}fatal(e){for(const[t,{logger:n}]of Array.from(this._queue.entries()))t===e.task?(n.info("Failed %o",e),n("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):n.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(t);if(0!==this._queue.size)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){const t=this.withProgress(e);if(!t)throw new GitError(void 0,"TasksPendingQueue: attempt called for an unknown task");return t.logger("Starting task"),t}static getName(e="empty"){return`task:${e}:${++_TasksPendingQueue.counter}`}},(TasksPendingQueue=_TasksPendingQueue).counter=0}}),GitExecutorChain;function pluginContext(e,t){return{method:first(e.commands)||"",commands:t}}function onErrorReceived(e,t){return n=>{t("[ERROR] child process exception %o",n),e.push(Buffer.from(String(n.stack),"ascii"))}}function onDataReceived(e,t,n,r){return i=>{n("%s received %L bytes",t,i),r("%B",i),e.push(i)}}var init_git_executor_chain=__esm({"src/lib/runners/git-executor-chain.ts"(){init_git_error(),init_task(),init_utils(),init_tasks_pending_queue(),GitExecutorChain=class{constructor(e,t,n){this._executor=e,this._scheduler=t,this._plugins=n,this._chain=Promise.resolve(),this._queue=new TasksPendingQueue}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then((()=>this.attemptTask(e)))}attemptTask(e){return __async(this,null,(function*(){const t=yield this._scheduler.next(),n=()=>this._queue.complete(e);try{const{logger:t}=this._queue.attempt(e);return yield isEmptyTask(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t)}catch(t){throw this.onFatalException(e,t)}finally{n(),t()}}))}onFatalException(e,t){const n=t instanceof GitError?Object.assign(t,{task:e}):new GitError(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(n),n}attemptRemoteTask(e,t){return __async(this,null,(function*(){const n=this._plugins.exec("spawn.binary","",pluginContext(e,e.commands)),r=this._plugins.exec("spawn.args",[...e.commands],pluginContext(e,e.commands)),i=yield this.gitResponse(e,n,r,this.outputHandler,t.step("SPAWN")),o=yield this.handleTaskData(e,r,i,t.step("HANDLE"));return t("passing response to task's parser as a %s",e.format),isBufferTask(e)?callTaskParser(e.parser,o):callTaskParser(e.parser,o.asStrings())}))}attemptEmptyTask(e,t){return __async(this,null,(function*(){return t("empty task bypassing child process to call to task's parser"),e.parser(this)}))}handleTaskData(e,t,n,r){const{exitCode:i,rejection:o,stdOut:s,stdErr:a}=n;return new Promise(((c,l)=>{r("Preparing to handle process response exitCode=%d stdOut=",i);const{error:u}=this._plugins.exec("task.error",{error:o},__spreadValues(__spreadValues({},pluginContext(e,t)),n));return u&&e.onError?(r.info("exitCode=%s handling with custom error handler"),e.onError(n,u,(e=>{r.info("custom error handler treated as success"),r("custom error returned a %s",objectToString(e)),c(new GitOutputStreams(Array.isArray(e)?Buffer.concat(e):e,Buffer.concat(a)))}),l)):u?(r.info("handling as error: exitCode=%s stdErr=%s rejection=%o",i,a.length,o),l(u)):(r.info("retrieving task output complete"),void c(new GitOutputStreams(Buffer.concat(s),Buffer.concat(a))))}))}gitResponse(e,t,n,r,i){return __async(this,null,(function*(){const o=i.sibling("output"),s=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},pluginContext(e,e.commands));return new Promise((a=>{const c=[],l=[];i.info("%s %o",t,n),i("%O",s);let u=this._beforeSpawn(e,n);if(u)return a({stdOut:c,stdErr:l,exitCode:9901,rejection:u});this._plugins.exec("spawn.before",void 0,__spreadProps(__spreadValues({},pluginContext(e,n)),{kill(e){u=e||u}}));const d=spawn(t,n,s);d.stdout.on("data",onDataReceived(c,"stdOut",i,o.step("stdOut"))),d.stderr.on("data",onDataReceived(l,"stdErr",i,o.step("stdErr"))),d.on("error",onErrorReceived(l,i)),r&&(i("Passing child process stdOut/stdErr to custom outputHandler"),r(t,d.stdout,d.stderr,[...n])),this._plugins.exec("spawn.after",void 0,__spreadProps(__spreadValues({},pluginContext(e,n)),{spawned:d,close(e,t){a({stdOut:c,stdErr:l,exitCode:e,rejection:u||t})},kill(e){d.killed||(u=e,d.kill("SIGINT"))}}))}))}))}_beforeSpawn(e,t){let n;return this._plugins.exec("spawn.before",void 0,__spreadProps(__spreadValues({},pluginContext(e,t)),{kill(e){n=e||n}})),n}}}}),git_executor_exports={},GitExecutor;__export(git_executor_exports,{GitExecutor:()=>GitExecutor});var init_git_executor=__esm({"src/lib/runners/git-executor.ts"(){init_git_executor_chain(),GitExecutor=class{constructor(e,t,n){this.cwd=e,this._scheduler=t,this._plugins=n,this._chain=new GitExecutorChain(this,this._scheduler,this._plugins)}chain(){return new GitExecutorChain(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function taskCallback(e,t,n=NOOP$1){t.then((e=>{n(null,e)}),(t=>{(null==t?void 0:t.task)===e&&n(t instanceof GitResponseError?addDeprecationNoticeToError(t):t,void 0)}))}function addDeprecationNoticeToError(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),t=NOOP$1};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce((function(n,r){if(r in e)return n;return n[r]={enumerable:!1,configurable:!1,get:()=>(t(r),e.git[r])},n}),{}))}var init_task_callback=__esm({"src/lib/task-callback.ts"(){init_git_response_error(),init_utils()}});function changeWorkingDirectoryTask(e,t){return adhocExecTask((n=>{if(!folderExists(e))throw new Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||n).cwd=e}))}var init_change_working_directory=__esm({"src/lib/tasks/change-working-directory.ts"(){init_utils(),init_task()}});function checkoutTask(e){const t=["checkout",...e];return"-b"===t[1]&&t.includes("-B")&&(t[1]=remove(t,"-B")),straightThroughStringTask(t)}function checkout_default(){return{checkout(){return this._runTask(checkoutTask(getTrailingOptions(arguments,1)),trailingFunctionArgument(arguments))},checkoutBranch(e,t){return this._runTask(checkoutTask(["-b",e,t,...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments))},checkoutLocalBranch(e){return this._runTask(checkoutTask(["-b",e,...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments))}}}var init_checkout=__esm({"src/lib/tasks/checkout.ts"(){init_utils(),init_task()}}),parser2;function countObjectsResponse(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function count_objects_default(){return{countObjects(){return this._runTask({commands:["count-objects","--verbose"],format:"utf-8",parser:e=>parseStringResponse(countObjectsResponse(),[parser2],e)})}}}var init_count_objects=__esm({"src/lib/tasks/count-objects.ts"(){init_utils(),parser2=new LineParser(/([a-z-]+): (\d+)$/,((e,[t,n])=>{const r=asCamelCase(t);e.hasOwnProperty(r)&&(e[r]=asNumber(n))}))}}),parsers;function parseCommitResult(e){return parseStringResponse({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},parsers,e)}var init_parse_commit=__esm({"src/lib/parsers/parse-commit.ts"(){init_utils(),parsers=[new LineParser(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,((e,[t,n,r])=>{e.branch=t,e.commit=r,e.root=!!n})),new LineParser(/\s*Author:\s(.+)/i,((e,[t])=>{const n=t.split("<"),r=n.pop();r&&r.includes("@")&&(e.author={email:r.substr(0,r.length-1),name:n.join("<").trim()})})),new LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,((e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(n,10)||0,e.summary.deletions=parseInt(r,10)||0})),new LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,((e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0;const i=parseInt(n,10)||0;"-"===r?e.summary.deletions=i:"+"===r&&(e.summary.insertions=i)}))]}});function commitTask(e,t,n){return{commands:["-c","core.abbrev=40","commit",...prefixedArray(e,"-m"),...t,...n],format:"utf-8",parser:parseCommitResult}}function commit_default(){return{commit(e,...t){const n=trailingFunctionArgument(arguments),r=function(e){return!filterStringOrStringArray(e)&&configurationErrorTask("git.commit: requires the commit message to be supplied as a string/string[]")}(e)||commitTask(asArray(e),asArray(filterType(t[0],filterStringOrStringArray,[])),[...filterType(t[1],filterArray,[]),...getTrailingOptions(arguments,0,!0)]);return this._runTask(r,n)}}}var init_commit=__esm({"src/lib/tasks/commit.ts"(){init_parse_commit(),init_utils(),init_task()}});function first_commit_default(){return{firstCommit(){return this._runTask(straightThroughStringTask(["rev-list","--max-parents=0","HEAD"],!0),trailingFunctionArgument(arguments))}}}var init_first_commit=__esm({"src/lib/tasks/first-commit.ts"(){init_utils(),init_task()}});function hashObjectTask(e,t){const n=["hash-object",e];return t&&n.push("-w"),straightThroughStringTask(n,!0)}var init_hash_object=__esm({"src/lib/tasks/hash-object.ts"(){init_task()}}),InitSummary,initResponseRegex,reInitResponseRegex;function parseInit(e,t,n){const r=String(n).trim();let i;if(i=initResponseRegex.exec(r))return new InitSummary(e,t,!1,i[1]);if(i=reInitResponseRegex.exec(r))return new InitSummary(e,t,!0,i[1]);let o="";const s=r.split(" ");for(;s.length;){if("in"===s.shift()){o=s.join(" ");break}}return new InitSummary(e,t,/^re/i.test(r),o)}var init_InitSummary=__esm({"src/lib/responses/InitSummary.ts"(){InitSummary=class{constructor(e,t,n,r){this.bare=e,this.path=t,this.existing=n,this.gitDir=r}},initResponseRegex=/^Init.+ repository in (.+)$/,reInitResponseRegex=/^Rein.+ in (.+)$/}}),bareCommand;function hasBareCommand(e){return e.includes(bareCommand)}function initTask(e=!1,t,n){const r=["init",...n];return e&&!hasBareCommand(r)&&r.splice(1,0,bareCommand),{commands:r,format:"utf-8",parser:e=>parseInit(r.includes("--bare"),t,e)}}var init_init=__esm({"src/lib/tasks/init.ts"(){init_InitSummary(),bareCommand="--bare"}}),logFormatRegex;function logFormatFromCommand(e){for(let t=0;t<e.length;t++){const n=logFormatRegex.exec(e[t]);if(n)return`--${n[1]}`}return""}function isLogFormat(e){return logFormatRegex.test(e)}var init_log_format=__esm({"src/lib/args/log-format.ts"(){logFormatRegex=/^--(stat|numstat|name-only|name-status)(=|$)/}}),DiffSummary,init_DiffSummary=__esm({"src/lib/responses/DiffSummary.ts"(){DiffSummary=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}}),statParser,numStatParser,nameOnlyParser,nameStatusParser,diffSummaryParsers;function getDiffParser(e=""){const t=diffSummaryParsers[e];return e=>parseStringResponse(new DiffSummary,t,e,!1)}var init_parse_diff_summary=__esm({"src/lib/parsers/parse-diff-summary.ts"(){init_log_format(),init_DiffSummary(),init_diff_name_status(),init_utils(),statParser=[new LineParser(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,((e,[t,n,r=""])=>{e.files.push({file:t.trim(),changes:asNumber(n),insertions:r.replace(/[^+]/g,"").length,deletions:r.replace(/[^-]/g,"").length,binary:!1})})),new LineParser(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,((e,[t,n,r])=>{e.files.push({file:t.trim(),before:asNumber(n),after:asNumber(r),binary:!0})})),new LineParser(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,((e,[t,n])=>{const r=/(\d+) i/.exec(n),i=/(\d+) d/.exec(n);e.changed=asNumber(t),e.insertions=asNumber(null==r?void 0:r[1]),e.deletions=asNumber(null==i?void 0:i[1])}))],numStatParser=[new LineParser(/(\d+)\t(\d+)\t(.+)$/,((e,[t,n,r])=>{const i=asNumber(t),o=asNumber(n);e.changed++,e.insertions+=i,e.deletions+=o,e.files.push({file:r,changes:i+o,insertions:i,deletions:o,binary:!1})})),new LineParser(/-\t-\t(.+)$/,((e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})}))],nameOnlyParser=[new LineParser(/(.+)$/,((e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})}))],nameStatusParser=[new LineParser(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,((e,[t,n,r,i,o])=>{e.changed++,e.files.push({file:null!=o?o:r,changes:0,insertions:0,deletions:0,binary:!1,status:orVoid(isDiffNameStatus(t)&&t),from:orVoid(!!o&&r!==o&&r),similarity:asNumber(n)})}))],diffSummaryParsers={"":statParser,"--stat":statParser,"--numstat":numStatParser,"--name-status":nameStatusParser,"--name-only":nameOnlyParser}}}),START_BOUNDARY,COMMIT_BOUNDARY,SPLITTER,defaultFieldNames;function lineBuilder(e,t){return t.reduce(((t,n,r)=>(t[n]=e[r]||"",t)),Object.create({diff:null}))}function createListLogSummaryParser(e=SPLITTER,t=defaultFieldNames,n=""){const r=getDiffParser(n);return function(n){const i=toLinesWithContent(n.trim(),!1,START_BOUNDARY).map((function(n){const i=n.split(COMMIT_BOUNDARY),o=lineBuilder(i[0].split(e),t);return i.length>1&&i[1].trim()&&(o.diff=r(i[1])),o}));return{all:i,latest:i.length&&i[0]||null,total:i.length}}}var init_parse_list_log_summary=__esm({"src/lib/parsers/parse-list-log-summary.ts"(){init_utils(),init_parse_diff_summary(),init_log_format(),START_BOUNDARY="รฒรฒรฒรฒรฒรฒ ",COMMIT_BOUNDARY=" รฒรฒ",SPLITTER=" รฒ ",defaultFieldNames=["hash","date","message","refs","author_name","author_email"]}}),diff_exports={};function diffSummaryTask(e){let t=logFormatFromCommand(e);const n=["diff"];return""===t&&(t="--stat",n.push("--stat=4096")),n.push(...e),validateLogFormatConfig(n)||{commands:n,format:"utf-8",parser:getDiffParser(t)}}function validateLogFormatConfig(e){const t=e.filter(isLogFormat);return t.length>1?configurationErrorTask(`Summary flags are mutually exclusive - pick one of ${t.join(",")}`):t.length&&e.includes("-z")?configurationErrorTask(`Summary flag ${t} parsing is not compatible with null termination option '-z'`):void 0}__export(diff_exports,{diffSummaryTask:()=>diffSummaryTask,validateLogFormatConfig:()=>validateLogFormatConfig});var init_diff=__esm({"src/lib/tasks/diff.ts"(){init_log_format(),init_parse_diff_summary(),init_task()}}),excludeOptions;function prettyFormat(e,t){const n=[],r=[];return Object.keys(e).forEach((t=>{n.push(t),r.push(String(e[t]))})),[n,r.join(t)]}function userOptions(e){return Object.keys(e).reduce(((t,n)=>(n in excludeOptions||(t[n]=e[n]),t)),{})}function parseLogOptions(e={},t=[]){const n=filterType(e.splitter,filterString,SPLITTER),r=!filterPrimitives(e.format)&&e.format?e.format:{hash:"%H",date:!1===e.strictDate?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:!1!==e.mailMap?"%aN":"%an",author_email:!1!==e.mailMap?"%aE":"%ae"},[i,o]=prettyFormat(r,n),s=[],a=[`--pretty=format:${START_BOUNDARY}${o}${COMMIT_BOUNDARY}`,...t],c=e.n||e["max-count"]||e.maxCount;if(c&&a.push(`--max-count=${c}`),e.from||e.to){const t=!1!==e.symmetric?"...":"..";s.push(`${e.from||""}${t}${e.to||""}`)}return filterString(e.file)&&a.push("--follow",pathspec(e.file)),appendTaskOptions(userOptions(e),a),{fields:i,splitter:n,commands:[...a,...s]}}function logTask(e,t,n){const r=createListLogSummaryParser(e,t,logFormatFromCommand(n));return{commands:["log",...n],format:"utf-8",parser:r}}function log_default(){return{log(...e){const t=trailingFunctionArgument(arguments),n=parseLogOptions(trailingOptionsArgument(arguments),filterType(arguments[0],filterArray)),r=function(e,t){return filterString(e)&&filterString(t)&&configurationErrorTask("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}(...e)||validateLogFormatConfig(n.commands)||function(e){return logTask(e.splitter,e.fields,e.commands)}(n);return this._runTask(r,t)}}}var init_log=__esm({"src/lib/tasks/log.ts"(){init_log_format(),init_pathspec(),init_parse_list_log_summary(),init_utils(),init_task(),init_diff(),excludeOptions=(e=>(e[e["--pretty"]=0]="--pretty",e[e["max-count"]=1]="max-count",e[e.maxCount=2]="maxCount",e[e.n=3]="n",e[e.file=4]="file",e[e.format=5]="format",e[e.from=6]="from",e[e.to=7]="to",e[e.splitter=8]="splitter",e[e.symmetric=9]="symmetric",e[e.mailMap=10]="mailMap",e[e.multiLine=11]="multiLine",e[e.strictDate=12]="strictDate",e))(excludeOptions||{})}}),MergeSummaryConflict,MergeSummaryDetail,init_MergeSummary=__esm({"src/lib/responses/MergeSummary.ts"(){MergeSummaryConflict=class{constructor(e,t=null,n){this.reason=e,this.file=t,this.meta=n}toString(){return`${this.file}:${this.reason}`}},MergeSummaryDetail=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),PullSummary,PullFailedSummary,init_PullSummary=__esm({"src/lib/responses/PullSummary.ts"(){PullSummary=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},PullFailedSummary=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}}),remoteMessagesObjectParsers;function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){const t=/^\s*(\d+)/.exec(e),n=/delta (\d+)/i.exec(e);return{count:asNumber(t&&t[1]||"0"),delta:asNumber(n&&n[1]||"0")}}var init_parse_remote_objects=__esm({"src/lib/parsers/parse-remote-objects.ts"(){init_utils(),remoteMessagesObjectParsers=[new RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,((e,[t,n])=>{const r=t.toLowerCase(),i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[r]:asNumber(n)})})),new RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,((e,[t,n])=>{const r=t.toLowerCase(),i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[r]:asNumber(n)})})),new RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,((e,[t,n,r])=>{const i=objectEnumerationResult(e.remoteMessages);i.total=asObjectCount(t),i.reused=asObjectCount(n),i.packReused=asNumber(r)}))]}}),parsers2,RemoteMessageSummary;function parseRemoteMessages(e,t){return parseStringResponse({remoteMessages:new RemoteMessageSummary},parsers2,t)}var init_parse_remote_messages=__esm({"src/lib/parsers/parse-remote-messages.ts"(){init_utils(),init_parse_remote_objects(),parsers2=[new RemoteLineParser(/^remote:\s*(.+)$/,((e,[t])=>(e.remoteMessages.all.push(t.trim()),!1))),...remoteMessagesObjectParsers,new RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],((e,[t])=>{e.remoteMessages.pullRequestUrl=t})),new RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],((e,[t,n,r])=>{e.remoteMessages.vulnerabilities={count:asNumber(t),summary:n,url:r}}))],RemoteMessageSummary=class{constructor(){this.all=[]}}}}),FILE_UPDATE_REGEX,SUMMARY_REGEX,ACTION_REGEX,parsers3,errorParsers,parsePullDetail,parsePullResult;function parsePullErrorResult(e,t){const n=parseStringResponse(new PullFailedSummary,errorParsers,[e,t]);return n.message&&n}var init_parse_pull=__esm({"src/lib/parsers/parse-pull.ts"(){init_PullSummary(),init_utils(),init_parse_remote_messages(),SUMMARY_REGEX=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,ACTION_REGEX=/^(create|delete) mode \d+ (.+)/,parsers3=[new LineParser(FILE_UPDATE_REGEX=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,((e,[t,n,r])=>{e.files.push(t),n&&(e.insertions[t]=n.length),r&&(e.deletions[t]=r.length)})),new LineParser(SUMMARY_REGEX,((e,[t,,n,,r])=>(void 0!==n||void 0!==r)&&(e.summary.changes=+t||0,e.summary.insertions=+n||0,e.summary.deletions=+r||0,!0))),new LineParser(ACTION_REGEX,((e,[t,n])=>{append(e.files,n),append("create"===t?e.created:e.deleted,n)}))],errorParsers=[new LineParser(/^from\s(.+)$/i,((e,[t])=>{e.remote=t})),new LineParser(/^fatal:\s(.+)$/,((e,[t])=>{e.message=t})),new LineParser(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,((e,[t,n,r,i])=>{e.branch.local=r,e.hash.local=t,e.branch.remote=i,e.hash.remote=n}))],parsePullDetail=(e,t)=>parseStringResponse(new PullSummary,parsers3,[e,t]),parsePullResult=(e,t)=>Object.assign(new PullSummary,parsePullDetail(e,t),parseRemoteMessages(e,t))}}),parsers4,parseMergeResult,parseMergeDetail,init_parse_merge=__esm({"src/lib/parsers/parse-merge.ts"(){init_MergeSummary(),init_utils(),init_parse_pull(),parsers4=[new LineParser(/^Auto-merging\s+(.+)$/,((e,[t])=>{e.merges.push(t)})),new LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,((e,[t,n])=>{e.conflicts.push(new MergeSummaryConflict(t,n))})),new LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,((e,[t,n,r])=>{e.conflicts.push(new MergeSummaryConflict(t,n,{deleteRef:r}))})),new LineParser(/^CONFLICT\s+\((.+)\):/,((e,[t])=>{e.conflicts.push(new MergeSummaryConflict(t,null))})),new LineParser(/^Automatic merge failed;\s+(.+)$/,((e,[t])=>{e.result=t}))],parseMergeResult=(e,t)=>Object.assign(parseMergeDetail(e,t),parsePullResult(e,t)),parseMergeDetail=e=>parseStringResponse(new MergeSummaryDetail,parsers4,e)}});function mergeTask(e){return e.length?{commands:["merge",...e],format:"utf-8",parser(e,t){const n=parseMergeResult(e,t);if(n.failed)throw new GitResponseError(n);return n}}:configurationErrorTask("Git.merge requires at least one option")}var init_merge=__esm({"src/lib/tasks/merge.ts"(){init_git_response_error(),init_parse_merge(),init_task()}}),parsers5,parsePushResult,parsePushDetail;function pushResultPushedItem(e,t,n){const r=n.includes("deleted"),i=n.includes("tag")||/^refs\/tags/.test(e),o=!n.includes("new");return{deleted:r,tag:i,branch:!i,new:!o,alreadyUpdated:o,local:e,remote:t}}var init_parse_push=__esm({"src/lib/parsers/parse-push.ts"(){init_utils(),init_parse_remote_messages(),parsers5=[new LineParser(/^Pushing to (.+)$/,((e,[t])=>{e.repo=t})),new LineParser(/^updating local tracking ref '(.+)'/,((e,[t])=>{e.ref=__spreadProps(__spreadValues({},e.ref||{}),{local:t})})),new LineParser(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,((e,[t,n,r])=>{e.pushed.push(pushResultPushedItem(t,n,r))})),new LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,((e,[t,n,r])=>{e.branch=__spreadProps(__spreadValues({},e.branch||{}),{local:t,remote:n,remoteName:r})})),new LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,((e,[t,n,r,i])=>{e.update={head:{local:t,remote:n},hash:{from:r,to:i}}}))],parsePushResult=(e,t)=>{const n=parsePushDetail(e,t),r=parseRemoteMessages(e,t);return __spreadValues(__spreadValues({},n),r)},parsePushDetail=(e,t)=>parseStringResponse({pushed:[]},parsers5,[e,t])}}),push_exports={};function pushTagsTask(e={},t){return append(t,"--tags"),pushTask(e,t)}function pushTask(e={},t){const n=["push",...t];return e.branch&&n.splice(1,0,e.branch),e.remote&&n.splice(1,0,e.remote),remove(n,"-v"),append(n,"--verbose"),append(n,"--porcelain"),{commands:n,format:"utf-8",parser:parsePushResult}}__export(push_exports,{pushTagsTask:()=>pushTagsTask,pushTask:()=>pushTask});var init_push=__esm({"src/lib/tasks/push.ts"(){init_parse_push(),init_utils()}});function show_default(){return{showBuffer(){const e=["show",...getTrailingOptions(arguments,1)];return e.includes("--binary")||e.splice(1,0,"--binary"),this._runTask(straightThroughBufferTask(e),trailingFunctionArgument(arguments))},show(){const e=["show",...getTrailingOptions(arguments,1)];return this._runTask(straightThroughStringTask(e),trailingFunctionArgument(arguments))}}}var init_show=__esm({"src/lib/tasks/show.ts"(){init_utils(),init_task()}}),fromPathRegex,FileStatusSummary,init_FileStatusSummary=__esm({"src/lib/responses/FileStatusSummary.ts"(){fromPathRegex=/^(.+)\0(.+)$/,FileStatusSummary=class{constructor(e,t,n){if(this.path=e,this.index=t,this.working_dir=n,"R"===t||"R"===n){const t=fromPathRegex.exec(e)||[null,e,e];this.from=t[2]||"",this.path=t[1]||""}}}}}),StatusSummary,parsers6,parseStatusSummary;function renamedFile(e){const[t,n]=e.split(NULL);return{from:n||t,to:t}}function parser3(e,t,n){return[`${e}${t}`,n]}function conflicts(e,...t){return t.map((t=>parser3(e,t,((e,t)=>append(e.conflicted,t)))))}function splitLine(e,t){const n=t.trim();switch(" "){case n.charAt(2):return r(n.charAt(0),n.charAt(1),n.substr(3));case n.charAt(1):return r(" ",n.charAt(0),n.substr(2));default:return}function r(t,n,r){const i=`${t}${n}`,o=parsers6.get(i);o&&o(e,r),"##"!==i&&"!!"!==i&&e.files.push(new FileStatusSummary(r,t,n))}}var init_StatusSummary=__esm({"src/lib/responses/StatusSummary.ts"(){init_utils(),init_FileStatusSummary(),StatusSummary=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},parsers6=new Map([parser3(" ","A",((e,t)=>append(e.created,t))),parser3(" ","D",((e,t)=>append(e.deleted,t))),parser3(" ","M",((e,t)=>append(e.modified,t))),parser3("A"," ",((e,t)=>append(e.created,t)&&append(e.staged,t))),parser3("A","M",((e,t)=>append(e.created,t)&&append(e.staged,t)&&append(e.modified,t))),parser3("D"," ",((e,t)=>append(e.deleted,t)&&append(e.staged,t))),parser3("M"," ",((e,t)=>append(e.modified,t)&&append(e.staged,t))),parser3("M","M",((e,t)=>append(e.modified,t)&&append(e.staged,t))),parser3("R"," ",((e,t)=>{append(e.renamed,renamedFile(t))})),parser3("R","M",((e,t)=>{const n=renamedFile(t);append(e.renamed,n),append(e.modified,n.to)})),parser3("!","!",((e,t)=>{append(e.ignored=e.ignored||[],t)})),parser3("?","?",((e,t)=>append(e.not_added,t))),...conflicts("A","A","U"),...conflicts("D","D","U"),...conflicts("U","A","D","U"),["##",(e,t)=>{let n;n=/ahead (\d+)/.exec(t),e.ahead=n&&+n[1]||0,n=/behind (\d+)/.exec(t),e.behind=n&&+n[1]||0,n=/^(.+?(?=(?:\.{3}|\s|$)))/.exec(t),e.current=n&&n[1],n=/\.{3}(\S*)/.exec(t),e.tracking=n&&n[1],n=/\son\s([\S]+)$/.exec(t),e.current=n&&n[1]||e.current,e.detached=/\(no branch\)/.test(t)}]]),parseStatusSummary=function(e){const t=e.split(NULL),n=new StatusSummary;for(let e=0,r=t.length;e<r;){let r=t[e++].trim();r&&("R"===r.charAt(0)&&(r+=NULL+(t[e++]||"")),splitLine(n,r))}return n}}}),ignoredOptions;function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...e.filter((e=>!ignoredOptions.includes(e)))],parser:e=>parseStatusSummary(e)}}var init_status=__esm({"src/lib/tasks/status.ts"(){init_StatusSummary(),ignoredOptions=["--null","-z"]}}),NOT_INSTALLED,parsers7;function versionResponse(e=0,t=0,n=0,r="",i=!0){return Object.defineProperty({major:e,minor:t,patch:n,agent:r,installed:i},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function notInstalledResponse(){return versionResponse(0,0,0,"",!1)}function version_default(){return{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:versionParser,onError(e,t,n,r){if(-2===e.exitCode)return n(Buffer.from(NOT_INSTALLED));r(t)}})}}}function versionParser(e){return e===NOT_INSTALLED?notInstalledResponse():parseStringResponse(versionResponse(0,0,0,e),parsers7,e)}var init_version=__esm({"src/lib/tasks/version.ts"(){init_utils(),NOT_INSTALLED="installed=false",parsers7=[new LineParser(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,((e,[t,n,r,i=""])=>{Object.assign(e,versionResponse(asNumber(t),asNumber(n),asNumber(r),i))})),new LineParser(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,((e,[t,n,r,i=""])=>{Object.assign(e,versionResponse(asNumber(t),asNumber(n),r,i))}))]}}),simple_git_api_exports={},SimpleGitApi;__export(simple_git_api_exports,{SimpleGitApi:()=>SimpleGitApi});var init_simple_git_api=__esm({"src/lib/simple-git-api.ts"(){init_task_callback(),init_change_working_directory(),init_checkout(),init_count_objects(),init_commit(),init_config(),init_first_commit(),init_grep(),init_hash_object(),init_init(),init_log(),init_merge(),init_push(),init_show(),init_status(),init_task(),init_version(),init_utils(),SimpleGitApi=class{constructor(e){this._executor=e}_runTask(e,t){const n=this._executor.chain(),r=n.push(e);return t&&taskCallback(e,r,t),Object.create(this,{then:{value:r.then.bind(r)},catch:{value:r.catch.bind(r)},_executor:{value:n}})}add(e){return this._runTask(straightThroughStringTask(["add",...asArray(e)]),trailingFunctionArgument(arguments))}cwd(e){const t=trailingFunctionArgument(arguments);return"string"==typeof e?this._runTask(changeWorkingDirectoryTask(e,this._executor),t):"string"==typeof(null==e?void 0:e.path)?this._runTask(changeWorkingDirectoryTask(e.path,e.root&&this._executor||void 0),t):this._runTask(configurationErrorTask("Git.cwd: workingDirectory must be supplied as a string"),t)}hashObject(e,t){return this._runTask(hashObjectTask(e,!0===t),trailingFunctionArgument(arguments))}init(e){return this._runTask(initTask(!0===e,this._executor.cwd,getTrailingOptions(arguments)),trailingFunctionArgument(arguments))}merge(){return this._runTask(mergeTask(getTrailingOptions(arguments)),trailingFunctionArgument(arguments))}mergeFromTo(e,t){return filterString(e)&&filterString(t)?this._runTask(mergeTask([e,t,...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments,!1)):this._runTask(configurationErrorTask("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){const e=pushTask({remote:filterType(arguments[0],filterString),branch:filterType(arguments[1],filterString)},getTrailingOptions(arguments));return this._runTask(e,trailingFunctionArgument(arguments))}stash(){return this._runTask(straightThroughStringTask(["stash",...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments))}status(){return this._runTask(statusTask(getTrailingOptions(arguments)),trailingFunctionArgument(arguments))}},Object.assign(SimpleGitApi.prototype,checkout_default(),commit_default(),config_default(),count_objects_default(),first_commit_default(),grep_default(),log_default(),show_default(),version_default())}}),scheduler_exports={},createScheduledTask,Scheduler;__export(scheduler_exports,{Scheduler:()=>Scheduler});var init_scheduler=__esm({"src/lib/runners/scheduler.ts"(){init_utils(),init_git_logger(),createScheduledTask=(()=>{let e=0;return()=>{e++;const{promise:t,done:n}=distExports$1.createDeferred();return{promise:t,done:n,id:e}}})(),Scheduler=class{constructor(e=2){this.concurrency=e,this.logger=createLogger("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency)return void this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);const e=append(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done((()=>{this.logger("Completing id=",e.id),remove(this.running,e),this.schedule()}))}next(){const{promise:e,id:t}=append(this.pending,createScheduledTask());return this.logger("Scheduling id=%s",t),this.schedule(),e}}}}),apply_patch_exports={};function applyPatchTask(e,t){return straightThroughStringTask(["apply",...t,...e])}__export(apply_patch_exports,{applyPatchTask:()=>applyPatchTask});var init_apply_patch=__esm({"src/lib/tasks/apply-patch.ts"(){init_task()}}),BranchDeletionBatch;function branchDeletionSuccess(e,t){return{branch:e,hash:t,success:!0}}function branchDeletionFailure(e){return{branch:e,hash:null,success:!1}}var init_BranchDeleteSummary=__esm({"src/lib/responses/BranchDeleteSummary.ts"(){BranchDeletionBatch=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}}),deleteSuccessRegex,deleteErrorRegex,parsers8,parseBranchDeletions;function hasBranchDeletionError(e,t){return 1===t&&deleteErrorRegex.test(e)}var init_parse_branch_delete=__esm({"src/lib/parsers/parse-branch-delete.ts"(){init_BranchDeleteSummary(),init_utils(),deleteErrorRegex=/^error[^']+'([^']+)'/m,parsers8=[new LineParser(deleteSuccessRegex=/(\S+)\s+\(\S+\s([^)]+)\)/,((e,[t,n])=>{const r=branchDeletionSuccess(t,n);e.all.push(r),e.branches[t]=r})),new LineParser(deleteErrorRegex,((e,[t])=>{const n=branchDeletionFailure(t);e.errors.push(n),e.all.push(n),e.branches[t]=n}))],parseBranchDeletions=(e,t)=>parseStringResponse(new BranchDeletionBatch,parsers8,[e,t])}}),BranchSummaryResult,init_BranchSummary=__esm({"src/lib/responses/BranchSummary.ts"(){BranchSummaryResult=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,t,n,r,i){"*"===e&&(this.detached=t,this.current=n),this.all.push(n),this.branches[n]={current:"*"===e,linkedWorkTree:"+"===e,name:n,commit:r,label:i}}}}}),parsers9;function branchStatus(e){return e?e.charAt(0):""}function parseBranchSummary(e){return parseStringResponse(new BranchSummaryResult,parsers9,e)}var init_parse_branch=__esm({"src/lib/parsers/parse-branch.ts"(){init_BranchSummary(),init_utils(),parsers9=[new LineParser(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,((e,[t,n,r,i])=>{e.push(branchStatus(t),!0,n,r,i)})),new LineParser(new RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$","s"),((e,[t,n,r,i])=>{e.push(branchStatus(t),!1,n,r,i)}))]}}),branch_exports={};function containsDeleteBranchCommand(e){const t=["-d","-D","--delete"];return e.some((e=>t.includes(e)))}function branchTask(e){const t=containsDeleteBranchCommand(e),n=["branch",...e];return 1===n.length&&n.push("-a"),n.includes("-v")||n.splice(1,0,"-v"),{format:"utf-8",commands:n,parser:(e,n)=>t?parseBranchDeletions(e,n).all[0]:parseBranchSummary(e)}}function branchLocalTask(){return{format:"utf-8",commands:["branch","-v"],parser:parseBranchSummary}}function deleteBranchesTask(e,t=!1){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser:(e,t)=>parseBranchDeletions(e,t),onError({exitCode:e,stdOut:t},n,r,i){if(!hasBranchDeletionError(String(n),e))return i(n);r(t)}}}function deleteBranchTask(e,t=!1){const n={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser:(t,n)=>parseBranchDeletions(t,n).branches[e],onError({exitCode:e,stdErr:t,stdOut:r},i,o,s){if(!hasBranchDeletionError(String(i),e))return s(i);throw new GitResponseError(n.parser(bufferToString(r),bufferToString(t)),String(i))}};return n}__export(branch_exports,{branchLocalTask:()=>branchLocalTask,branchTask:()=>branchTask,containsDeleteBranchCommand:()=>containsDeleteBranchCommand,deleteBranchTask:()=>deleteBranchTask,deleteBranchesTask:()=>deleteBranchesTask});var init_branch=__esm({"src/lib/tasks/branch.ts"(){init_git_response_error(),init_parse_branch_delete(),init_parse_branch(),init_utils()}}),parseCheckIgnore,init_CheckIgnore=__esm({"src/lib/responses/CheckIgnore.ts"(){parseCheckIgnore=e=>e.split(/\n/g).map((e=>e.trim())).filter((e=>!!e))}}),check_ignore_exports={};function checkIgnoreTask(e){return{commands:["check-ignore",...e],format:"utf-8",parser:parseCheckIgnore}}__export(check_ignore_exports,{checkIgnoreTask:()=>checkIgnoreTask});var init_check_ignore=__esm({"src/lib/tasks/check-ignore.ts"(){init_CheckIgnore()}}),clone_exports={};function disallowedCommand(e){return/^--upload-pack(=|$)/.test(e)}function cloneTask(e,t,n){const r=["clone",...n];filterString(e)&&r.push(e),filterString(t)&&r.push(t);return r.find(disallowedCommand)?configurationErrorTask("git.fetch: potential exploit argument blocked."):straightThroughStringTask(r)}function cloneMirrorTask(e,t,n){return append(n,"--mirror"),cloneTask(e,t,n)}__export(clone_exports,{cloneMirrorTask:()=>cloneMirrorTask,cloneTask:()=>cloneTask});var init_clone=__esm({"src/lib/tasks/clone.ts"(){init_task(),init_utils()}}),parsers10;function parseFetchResult(e,t){return parseStringResponse({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},parsers10,[e,t])}var init_parse_fetch=__esm({"src/lib/parsers/parse-fetch.ts"(){init_utils(),parsers10=[new LineParser(/From (.+)$/,((e,[t])=>{e.remote=t})),new LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,((e,[t,n])=>{e.branches.push({name:t,tracking:n})})),new LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,((e,[t,n])=>{e.tags.push({name:t,tracking:n})})),new LineParser(/- \[deleted]\s+\S+\s*-> (.+)$/,((e,[t])=>{e.deleted.push({tracking:t})})),new LineParser(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,((e,[t,n,r,i])=>{e.updated.push({name:r,tracking:i,to:n,from:t})}))]}}),fetch_exports={};function disallowedCommand2(e){return/^--upload-pack(=|$)/.test(e)}function fetchTask(e,t,n){const r=["fetch",...n];e&&t&&r.push(e,t);return r.find(disallowedCommand2)?configurationErrorTask("git.fetch: potential exploit argument blocked."):{commands:r,format:"utf-8",parser:parseFetchResult}}__export(fetch_exports,{fetchTask:()=>fetchTask});var init_fetch=__esm({"src/lib/tasks/fetch.ts"(){init_parse_fetch(),init_task()}}),parsers11;function parseMoveResult(e){return parseStringResponse({moves:[]},parsers11,e)}var init_parse_move=__esm({"src/lib/parsers/parse-move.ts"(){init_utils(),parsers11=[new LineParser(/^Renaming (.+) to (.+)$/,((e,[t,n])=>{e.moves.push({from:t,to:n})}))]}}),move_exports={};function moveTask(e,t){return{commands:["mv","-v",...asArray(e),t],format:"utf-8",parser:parseMoveResult}}__export(move_exports,{moveTask:()=>moveTask});var init_move=__esm({"src/lib/tasks/move.ts"(){init_parse_move(),init_utils()}}),pull_exports={};function pullTask(e,t,n){const r=["pull",...n];return e&&t&&r.splice(1,0,e,t),{commands:r,format:"utf-8",parser:(e,t)=>parsePullResult(e,t),onError(e,t,n,r){const i=parsePullErrorResult(bufferToString(e.stdOut),bufferToString(e.stdErr));if(i)return r(new GitResponseError(i));r(t)}}}__export(pull_exports,{pullTask:()=>pullTask});var init_pull=__esm({"src/lib/tasks/pull.ts"(){init_git_response_error(),init_parse_pull(),init_utils()}});function parseGetRemotes(e){const t={};return forEach$1(e,(([e])=>t[e]={name:e})),Object.values(t)}function parseGetRemotesVerbose(e){const t={};return forEach$1(e,(([e,n,r])=>{t.hasOwnProperty(e)||(t[e]={name:e,refs:{fetch:"",push:""}}),r&&n&&(t[e].refs[r.replace(/[^a-z]/g,"")]=n)})),Object.values(t)}function forEach$1(e,t){forEachLineWithContent(e,(e=>t(e.split(/\s+/))))}var init_GetRemoteSummary=__esm({"src/lib/responses/GetRemoteSummary.ts"(){init_utils()}}),remote_exports={};function addRemoteTask(e,t,n){return straightThroughStringTask(["remote","add",...n,e,t])}function getRemotesTask(e){const t=["remote"];return e&&t.push("-v"),{commands:t,format:"utf-8",parser:e?parseGetRemotesVerbose:parseGetRemotes}}function listRemotesTask(e){const t=[...e];return"ls-remote"!==t[0]&&t.unshift("ls-remote"),straightThroughStringTask(t)}function remoteTask(e){const t=[...e];return"remote"!==t[0]&&t.unshift("remote"),straightThroughStringTask(t)}function removeRemoteTask(e){return straightThroughStringTask(["remote","remove",e])}__export(remote_exports,{addRemoteTask:()=>addRemoteTask,getRemotesTask:()=>getRemotesTask,listRemotesTask:()=>listRemotesTask,remoteTask:()=>remoteTask,removeRemoteTask:()=>removeRemoteTask});var init_remote=__esm({"src/lib/tasks/remote.ts"(){init_GetRemoteSummary(),init_task()}}),stash_list_exports={};function stashListTask(e={},t){const n=parseLogOptions(e),r=["stash","list",...n.commands,...t],i=createListLogSummaryParser(n.splitter,n.fields,logFormatFromCommand(r));return validateLogFormatConfig(r)||{commands:r,format:"utf-8",parser:i}}__export(stash_list_exports,{stashListTask:()=>stashListTask});var init_stash_list=__esm({"src/lib/tasks/stash-list.ts"(){init_log_format(),init_parse_list_log_summary(),init_diff(),init_log()}}),sub_module_exports={};function addSubModuleTask(e,t){return subModuleTask(["add",e,t])}function initSubModuleTask(e){return subModuleTask(["init",...e])}function subModuleTask(e){const t=[...e];return"submodule"!==t[0]&&t.unshift("submodule"),straightThroughStringTask(t)}function updateSubModuleTask(e){return subModuleTask(["update",...e])}__export(sub_module_exports,{addSubModuleTask:()=>addSubModuleTask,initSubModuleTask:()=>initSubModuleTask,subModuleTask:()=>subModuleTask,updateSubModuleTask:()=>updateSubModuleTask});var init_sub_module=__esm({"src/lib/tasks/sub-module.ts"(){init_task()}}),TagList,parseTagList;function singleSorted(e,t){const n=isNaN(e);return n!==isNaN(t)?n?1:-1:n?sorted(e,t):0}function sorted(e,t){return e===t?0:e>t?1:-1}function trimmed(e){return e.trim()}function toNumber(e){return"string"==typeof e&&parseInt(e.replace(/^\D+/g,""),10)||0}var init_TagList=__esm({"src/lib/responses/TagList.ts"(){TagList=class{constructor(e,t){this.all=e,this.latest=t}},parseTagList=function(e,t=!1){const n=e.split("\n").map(trimmed).filter(Boolean);t||n.sort((function(e,t){const n=e.split("."),r=t.split(".");if(1===n.length||1===r.length)return singleSorted(toNumber(n[0]),toNumber(r[0]));for(let e=0,t=Math.max(n.length,r.length);e<t;e++){const t=sorted(toNumber(n[e]),toNumber(r[e]));if(t)return t}return 0}));const r=t?n[0]:[...n].reverse().find((e=>e.indexOf(".")>=0));return new TagList(n,r)}}}),tag_exports={};function tagListTask(e=[]){const t=e.some((e=>/^--sort=/.test(e)));return{format:"utf-8",commands:["tag","-l",...e],parser:e=>parseTagList(e,t)}}function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser:()=>({name:e})}}function addAnnotatedTagTask(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser:()=>({name:e})}}__export(tag_exports,{addAnnotatedTagTask:()=>addAnnotatedTagTask,addTagTask:()=>addTagTask,tagListTask:()=>tagListTask});var init_tag=__esm({"src/lib/tasks/tag.ts"(){init_TagList()}}),require_git=__commonJS({"src/git.js"(e,t){var{GitExecutor:n}=(init_git_executor(),__toCommonJS(git_executor_exports)),{SimpleGitApi:r}=(init_simple_git_api(),__toCommonJS(simple_git_api_exports)),{Scheduler:i}=(init_scheduler(),__toCommonJS(scheduler_exports)),{configurationErrorTask:o}=(init_task(),__toCommonJS(task_exports)),{asArray:s,filterArray:a,filterPrimitives:c,filterString:l,filterStringOrStringArray:u,filterType:d,getTrailingOptions:p,trailingFunctionArgument:f,trailingOptionsArgument:_}=(init_utils(),__toCommonJS(utils_exports)),{applyPatchTask:m}=(init_apply_patch(),__toCommonJS(apply_patch_exports)),{branchTask:h,branchLocalTask:g,deleteBranchesTask:A,deleteBranchTask:y}=(init_branch(),__toCommonJS(branch_exports)),{checkIgnoreTask:v}=(init_check_ignore(),__toCommonJS(check_ignore_exports)),{checkIsRepoTask:b}=(init_check_is_repo(),__toCommonJS(check_is_repo_exports)),{cloneTask:C,cloneMirrorTask:E}=(init_clone(),__toCommonJS(clone_exports)),{cleanWithOptionsTask:x,isCleanOptionsArray:S}=(init_clean(),__toCommonJS(clean_exports)),{diffSummaryTask:k}=(init_diff(),__toCommonJS(diff_exports)),{fetchTask:D}=(init_fetch(),__toCommonJS(fetch_exports)),{moveTask:w}=(init_move(),__toCommonJS(move_exports)),{pullTask:I}=(init_pull(),__toCommonJS(pull_exports)),{pushTagsTask:T}=(init_push(),__toCommonJS(push_exports)),{addRemoteTask:F,getRemotesTask:R,listRemotesTask:P,remoteTask:N,removeRemoteTask:B}=(init_remote(),__toCommonJS(remote_exports)),{getResetMode:O,resetTask:q}=(init_reset(),__toCommonJS(reset_exports)),{stashListTask:$}=(init_stash_list(),__toCommonJS(stash_list_exports)),{addSubModuleTask:Q,initSubModuleTask:L,subModuleTask:M,updateSubModuleTask:j}=(init_sub_module(),__toCommonJS(sub_module_exports)),{addAnnotatedTagTask:U,addTagTask:J,tagListTask:V}=(init_tag(),__toCommonJS(tag_exports)),{straightThroughBufferTask:H,straightThroughStringTask:G}=(init_task(),__toCommonJS(task_exports));function W(e,t){this._plugins=t,this._executor=new n(e.baseDir,new i(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}function z(e,t,n,r){return"string"!=typeof n?o(`git.${e}() requires a string 'repoPath'`):t(n,d(r,l),p(arguments))}(W.prototype=Object.create(r.prototype)).constructor=W,W.prototype.customBinary=function(e){return this._plugins.reconfigure("binary",e),this},W.prototype.env=function(e,t){return 1===arguments.length&&"object"==typeof e?this._executor.env=e:(this._executor.env=this._executor.env||{})[e]=t,this},W.prototype.stashList=function(e){return this._runTask($(_(arguments)||{},a(e)&&e||[]),f(arguments))},W.prototype.clone=function(){return this._runTask(z("clone",C,...arguments),f(arguments))},W.prototype.mirror=function(){return this._runTask(z("mirror",E,...arguments),f(arguments))},W.prototype.mv=function(e,t){return this._runTask(w(e,t),f(arguments))},W.prototype.checkoutLatestTag=function(e){var t=this;return this.pull((function(){t.tags((function(n,r){t.checkout(r.latest,e)}))}))},W.prototype.pull=function(e,t,n,r){return this._runTask(I(d(e,l),d(t,l),p(arguments)),f(arguments))},W.prototype.fetch=function(e,t){return this._runTask(D(d(e,l),d(t,l),p(arguments)),f(arguments))},W.prototype.silent=function(e){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},W.prototype.tags=function(e,t){return this._runTask(V(p(arguments)),f(arguments))},W.prototype.rebase=function(){return this._runTask(G(["rebase",...p(arguments)]),f(arguments))},W.prototype.reset=function(e){return this._runTask(q(O(e),p(arguments)),f(arguments))},W.prototype.revert=function(e){const t=f(arguments);return"string"!=typeof e?this._runTask(o("Commit must be a string"),t):this._runTask(G(["revert",...p(arguments,0,!0),e]),t)},W.prototype.addTag=function(e){const t="string"==typeof e?J(e):o("Git.addTag requires a tag name");return this._runTask(t,f(arguments))},W.prototype.addAnnotatedTag=function(e,t){return this._runTask(U(e,t),f(arguments))},W.prototype.deleteLocalBranch=function(e,t,n){return this._runTask(y(e,"boolean"==typeof t&&t),f(arguments))},W.prototype.deleteLocalBranches=function(e,t,n){return this._runTask(A(e,"boolean"==typeof t&&t),f(arguments))},W.prototype.branch=function(e,t){return this._runTask(h(p(arguments)),f(arguments))},W.prototype.branchLocal=function(e){return this._runTask(g(),f(arguments))},W.prototype.raw=function(e){const t=!Array.isArray(e),n=[].slice.call(t?arguments:e,0);for(let e=0;e<n.length&&t;e++)if(!c(n[e])){n.splice(e,n.length-e);break}n.push(...p(arguments,0,!0));var r=f(arguments);return n.length?this._runTask(G(n,this._trimmed),r):this._runTask(o("Raw: must supply one or more command to execute"),r)},W.prototype.submoduleAdd=function(e,t,n){return this._runTask(Q(e,t),f(arguments))},W.prototype.submoduleUpdate=function(e,t){return this._runTask(j(p(arguments,!0)),f(arguments))},W.prototype.submoduleInit=function(e,t){return this._runTask(L(p(arguments,!0)),f(arguments))},W.prototype.subModule=function(e,t){return this._runTask(M(p(arguments)),f(arguments))},W.prototype.listRemote=function(){return this._runTask(P(p(arguments)),f(arguments))},W.prototype.addRemote=function(e,t,n){return this._runTask(F(e,t,p(arguments)),f(arguments))},W.prototype.removeRemote=function(e,t){return this._runTask(B(e),f(arguments))},W.prototype.getRemotes=function(e,t){return this._runTask(R(!0===e),f(arguments))},W.prototype.remote=function(e,t){return this._runTask(N(p(arguments)),f(arguments))},W.prototype.tag=function(e,t){const n=p(arguments);return"tag"!==n[0]&&n.unshift("tag"),this._runTask(G(n),f(arguments))},W.prototype.updateServerInfo=function(e){return this._runTask(G(["update-server-info"]),f(arguments))},W.prototype.pushTags=function(e,t){const n=T({remote:d(e,l)},p(arguments));return this._runTask(n,f(arguments))},W.prototype.rm=function(e){return this._runTask(G(["rm","-f",...s(e)]),f(arguments))},W.prototype.rmKeepLocal=function(e){return this._runTask(G(["rm","--cached",...s(e)]),f(arguments))},W.prototype.catFile=function(e,t){return this._catFile("utf-8",arguments)},W.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},W.prototype._catFile=function(e,t){var n=f(t),r=["cat-file"],i=t[0];if("string"==typeof i)return this._runTask(o("Git.catFile: options must be supplied as an array of strings"),n);Array.isArray(i)&&r.push.apply(r,i);const s="buffer"===e?H(r):G(r);return this._runTask(s,n)},W.prototype.diff=function(e,t){const n=l(e)?o("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):G(["diff",...p(arguments)]);return this._runTask(n,f(arguments))},W.prototype.diffSummary=function(){return this._runTask(k(p(arguments,1)),f(arguments))},W.prototype.applyPatch=function(e){const t=u(e)?m(s(e),p([].slice.call(arguments,1))):o("git.applyPatch requires one or more string patches as the first argument");return this._runTask(t,f(arguments))},W.prototype.revparse=function(){const e=["rev-parse",...p(arguments,!0)];return this._runTask(G(e,!0),f(arguments))},W.prototype.clean=function(e,t,n){const r=S(e),i=r&&e.join("")||d(e,l)||"",o=p([].slice.call(arguments,r?1:0));return this._runTask(x(i,o),f(arguments))},W.prototype.exec=function(e){const t={commands:[],format:"utf-8",parser(){"function"==typeof e&&e()}};return this._runTask(t)},W.prototype.clearQueue=function(){return this},W.prototype.checkIgnore=function(e,t){return this._runTask(v(s(d(e,u,[]))),f(arguments))},W.prototype.checkIsRepo=function(e,t){return this._runTask(b(d(e,l)),f(arguments))},t.exports=W}});init_pathspec(),init_git_error();var GitConstructError=class extends GitError{constructor(e,t){super(void 0,t),this.config=e}};init_git_error(),init_git_error();var GitPluginError=class extends GitError{constructor(e,t,n){super(e,n),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};function abortPlugin(e){if(!e)return;const t={type:"spawn.after",action(t,n){function r(){n.kill(new GitPluginError(void 0,"abort","Abort signal received"))}e.addEventListener("abort",r),n.spawned.on("close",(()=>e.removeEventListener("abort",r)))}};return[{type:"spawn.before",action(t,n){e.aborted&&n.kill(new GitPluginError(void 0,"abort","Abort already signaled"))}},t]}function isConfigSwitch(e){return"string"==typeof e&&"-c"===e.trim().toLowerCase()}function preventProtocolOverride(e,t){if(isConfigSwitch(e)&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new GitPluginError(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}function preventUploadPack(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new GitPluginError(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if("clone"===t&&/^\s*-u\b/.test(e))throw new GitPluginError(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if("push"===t&&/^\s*--exec\b/.test(e))throw new GitPluginError(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}function blockUnsafeOperationsPlugin({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action:(n,r)=>(n.forEach(((i,o)=>{const s=o<n.length?n[o+1]:"";e||preventProtocolOverride(i,s),t||preventUploadPack(i,r.method)})),n)}}function commandConfigPrefixingPlugin(e){const t=prefixedArray(e,"-c");return{type:"spawn.args",action:e=>[...t,...e]}}init_git_response_error(),init_task_configuration_error(),init_check_is_repo(),init_clean(),init_config(),init_diff_name_status(),init_grep(),init_reset(),init_utils(),init_utils();var never=distExports$1.deferred().promise;function completionDetectionPlugin({onClose:e=!0,onExit:t=50}={}){function n(e,t,n){!1!==e&&(!0===e?t.promise:t.promise.then((()=>delay(e)))).then(n.done)}return{type:"spawn.after",action(r,i){return __async(this,arguments,(function*(r,{spawned:i,close:o}){var s,a;const c=function(){let r=-1;const i={close:distExports$1.deferred(),closeTimeout:distExports$1.deferred(),exit:distExports$1.deferred(),exitTimeout:distExports$1.deferred()},o=Promise.race([!1===e?never:i.closeTimeout.promise,!1===t?never:i.exitTimeout.promise]);return n(e,i.close,i.closeTimeout),n(t,i.exit,i.exitTimeout),{close(e){r=e,i.close.done()},exit(e){r=e,i.exit.done()},get exitCode(){return r},result:o}}();let l=!0,u=()=>{l=!1};null==(s=i.stdout)||s.on("data",u),null==(a=i.stderr)||a.on("data",u),i.on("error",u),i.on("close",(e=>c.close(e))),i.on("exit",(e=>c.exit(e)));try{yield c.result,l&&(yield delay(50)),o(c.exitCode)}catch(e){o(c.exitCode,e)}}))}}}init_utils();var WRONG_NUMBER_ERR="Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings",WRONG_CHARS_ERR="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function isBadArgument(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function toBinaryConfig(e,t){if(e.length<1||e.length>2)throw new GitPluginError(void 0,"binary",WRONG_NUMBER_ERR);if(e.some(isBadArgument)){if(!t)throw new GitPluginError(void 0,"binary",WRONG_CHARS_ERR);console.warn(WRONG_CHARS_ERR)}const[n,r]=e;return{binary:n,prefix:r}}function customBinaryPlugin(e,t=["git"],n=!1){let r=toBinaryConfig(asArray(t),n);e.on("binary",(e=>{r=toBinaryConfig(asArray(e),n)})),e.append("spawn.binary",(()=>r.binary)),e.append("spawn.args",(e=>r.prefix?[r.prefix,...e]:e))}function isTaskError(e){return!(!e.exitCode||!e.stdErr.length)}function getErrorMessage(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function errorDetectionHandler(e=!1,t=isTaskError,n=getErrorMessage){return(r,i)=>!e&&r||!t(i)?r:n(i)}function errorDetectionPlugin(e){return{type:"task.error",action(t,n){const r=e(t.error,{stdErr:n.stdErr,stdOut:n.stdOut,exitCode:n.exitCode});return Buffer.isBuffer(r)?{error:new GitError(void 0,r.toString("utf-8"))}:{error:r}}}}init_git_error(),init_utils();var PluginStore=class{constructor(){this.plugins=new Set,this.events=new EventEmitter}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){const n=append(this.plugins,{type:e,action:t});return()=>this.plugins.delete(n)}add(e){const t=[];return asArray(e).forEach((e=>e&&this.plugins.add(append(t,e)))),()=>{t.forEach((e=>this.plugins.delete(e)))}}exec(e,t,n){let r=t;const i=Object.freeze(Object.create(n));for(const t of this.plugins)t.type===e&&(r=t.action(r,i));return r}};function progressMonitorPlugin(e){const t="--progress",n=["checkout","clone","fetch","pull","push"],r={type:"spawn.args",action:(e,r)=>n.includes(r.method)?including(e,t):e};return[r,{type:"spawn.after",action(n,r){var i;r.commands.includes(t)&&(null==(i=r.spawned.stderr)||i.on("data",(t=>{const n=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString("utf8"));n&&e({method:r.method,stage:progressEventStage(n[1]),progress:asNumber(n[2]),processed:asNumber(n[3]),total:asNumber(n[4])})})))}}]}function progressEventStage(e){return String(e.toLowerCase().split(" ",1))||"unknown"}function spawnOptionsPlugin(e){const t=pick(e,["uid","gid"]);return{type:"spawn.options",action:e=>__spreadValues(__spreadValues({},t),e)}}function timeoutPlugin({block:e,stdErr:t=!0,stdOut:n=!0}){if(e>0)return{type:"spawn.after",action(r,i){var o,s;let a;function c(){a&&clearTimeout(a),a=setTimeout(u,e)}function l(){var e,t;null==(e=i.spawned.stdout)||e.off("data",c),null==(t=i.spawned.stderr)||t.off("data",c),i.spawned.off("exit",l),i.spawned.off("close",l),a&&clearTimeout(a)}function u(){l(),i.kill(new GitPluginError(void 0,"timeout","block timeout reached"))}n&&(null==(o=i.spawned.stdout)||o.on("data",c)),t&&(null==(s=i.spawned.stderr)||s.on("data",c)),i.spawned.on("exit",l),i.spawned.on("close",l),c()}}}function suffixPathsPlugin(){return{type:"spawn.args",action(e){const t=[];let n;function r(e){(n=n||[]).push(...e)}for(let n=0;n<e.length;n++){const i=e[n];if(isPathSpec(i))r(toPaths(i));else{if("--"===i){r(e.slice(n+1).flatMap((e=>isPathSpec(e)&&toPaths(e)||e)));break}t.push(i)}}return n?[...t,"--",...n.map(String)]:t}}}init_utils(),init_utils(),init_pathspec(),init_utils();var Git=require_git();function gitInstanceFactory(e,t){var n;const r=new PluginStore,i=createInstanceConfig(e&&("string"==typeof e?{baseDir:e}:e)||{},t);if(!folderExists(i.baseDir))throw new GitConstructError(i,"Cannot use simple-git on a directory that does not exist");return Array.isArray(i.config)&&r.add(commandConfigPrefixingPlugin(i.config)),r.add(blockUnsafeOperationsPlugin(i.unsafe)),r.add(suffixPathsPlugin()),r.add(completionDetectionPlugin(i.completion)),i.abort&&r.add(abortPlugin(i.abort)),i.progress&&r.add(progressMonitorPlugin(i.progress)),i.timeout&&r.add(timeoutPlugin(i.timeout)),i.spawnOptions&&r.add(spawnOptionsPlugin(i.spawnOptions)),r.add(errorDetectionPlugin(errorDetectionHandler(!0))),i.errors&&r.add(errorDetectionPlugin(i.errors)),customBinaryPlugin(r,i.binary,null==(n=i.unsafe)?void 0:n.allowUnsafeCustomBinary),new Git(i,r)}init_git_response_error();var simpleGit=gitInstanceFactory,polyfills,hasRequiredPolyfills,legacyStreams,hasRequiredLegacyStreams,clone_1$1,hasRequiredClone$1,gracefulFs,hasRequiredGracefulFs;function requirePolyfills(){if(hasRequiredPolyfills)return polyfills;hasRequiredPolyfills=1;var e=require$$0$n,t=process.cwd,n=null,r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=t.call(process)),n};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var i=process.chdir;process.chdir=function(e){n=null,i.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,i)}return polyfills=function(t){e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(n,r,i){t.open(n,e.O_WRONLY|e.O_SYMLINK,r,(function(e,n){e?i&&i(e):t.fchmod(n,r,(function(e){t.close(n,(function(t){i&&i(e||t)}))}))}))},t.lchmodSync=function(n,r){var i,o=t.openSync(n,e.O_WRONLY|e.O_SYMLINK,r),s=!0;try{i=t.fchmodSync(o,r),s=!1}finally{if(s)try{t.closeSync(o)}catch(e){}else t.closeSync(o)}return i}}(t);t.lutimes||function(t){e.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(n,r,i,o){t.open(n,e.O_SYMLINK,(function(e,n){e?o&&o(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){o&&o(e||t)}))}))}))},t.lutimesSync=function(n,r,i){var o,s=t.openSync(n,e.O_SYMLINK),a=!0;try{o=t.futimesSync(s,r,i),a=!1}finally{if(a)try{t.closeSync(s)}catch(e){}else t.closeSync(s)}return o}):t.futimes&&(t.lutimes=function(e,t,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(e,t,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(e,t,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===r&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,r,i){var o=Date.now(),s=0;e(n,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){t.stat(r,(function(t,o){t&&"ENOENT"===t.code?e(n,r,a):i(c)}))}),s),void(s<100&&(s+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename));function n(e){return e?function(n,r,i){return e.call(t,n,r,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(e){if(!l(e))throw e}}:e}function o(e){return e?function(n,r,i,o){return e.call(t,n,r,i,(function(e){l(e)&&(e=null),o&&o.apply(this,arguments)}))}:e}function s(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(e){if(!l(e))throw e}}:e}function a(e){return e?function(n,r,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,o):e.call(t,n,o)}:e}function c(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:e}function l(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}t.read="function"!=typeof t.read?t.read:function(e){function n(n,r,i,o,s,a){var c;if(a&&"function"==typeof a){var l=0;c=function(u,d,p){if(u&&"EAGAIN"===u.code&&l<10)return l++,e.call(t,n,r,i,o,s,c);a.apply(this,arguments)}}return e.call(t,n,r,i,o,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(u=t.readSync,function(e,n,r,i,o){for(var s=0;;)try{return u.call(t,e,n,r,i,o)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}});var u},polyfills}function requireLegacyStreams(){if(hasRequiredLegacyStreams)return legacyStreams;hasRequiredLegacyStreams=1;var e=require$$0$b.Stream;return legacyStreams=function(t){return{ReadStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var s=Object.keys(i),a=0,c=s.length;a<c;a++){var l=s[a];this[l]=i[l]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){o._read()}));t.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()}))},WriteStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var c=o[s];this[c]=i[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}},legacyStreams}function requireClone$1(){if(hasRequiredClone$1)return clone_1$1;hasRequiredClone$1=1,clone_1$1=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var n={__proto__:e(t)};else n=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n};var e=Object.getPrototypeOf||function(e){return e.__proto__};return clone_1$1}function requireGracefulFs(){if(hasRequiredGracefulFs)return gracefulFs;hasRequiredGracefulFs=1;var e,t,n=require$$0$7,r=requirePolyfills(),i=requireLegacyStreams(),o=requireClone$1(),s=require$$0__default;function a(t,n){Object.defineProperty(t,e,{get:function(){return n}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(e=Symbol.for("graceful-fs.queue"),t=Symbol.for("graceful-fs.previous")):(e="___graceful-fs.queue",t="___graceful-fs.previous");var c,l=function(){};if(s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!n[e]){var u=commonjsGlobal[e]||[];a(n,u),n.close=function(e){function r(t,r){return e.call(n,t,(function(e){e||f(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(r,t,{value:e}),r}(n.close),n.closeSync=function(e){function r(t){e.apply(n,arguments),f()}return Object.defineProperty(r,t,{value:e}),r}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){l(n[e]),require$$0$f.equal(n[e].length,0)}))}function d(e){r(e),e.gracefulify=d,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,r){"function"==typeof n&&(r=n,n=null);return function e(n,r,i,o){return t(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):p([e,[n,r,i],t,o||Date.now(),Date.now()])}))}(e,n,r)};var n=e.writeFile;e.writeFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,o,s){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):p([e,[t,r,i,o],n,s||Date.now(),Date.now()])}))}(e,t,r,i)};var o=e.appendFile;o&&(e.appendFile=function(e,t,n,r){"function"==typeof n&&(r=n,n=null);return function e(t,n,r,i,s){return o(t,n,r,(function(o){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):p([e,[t,n,r,i],o,s||Date.now(),Date.now()])}))}(e,t,n,r)});var s=e.copyFile;s&&(e.copyFile=function(e,t,n,r){"function"==typeof n&&(r=n,n=0);return function e(t,n,r,i,o){return s(t,n,r,(function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):p([e,[t,n,r,i],s,o||Date.now(),Date.now()])}))}(e,t,n,r)});var a=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var r=c.test(process.version)?function(e,t,n,r){return a(e,i(e,t,n,r))}:function(e,t,n,r){return a(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(s&&s.sort&&s.sort(),"function"==typeof n&&n.call(this,o,s)):p([r,[e,t,n],o,i||Date.now(),Date.now()])}}};var c=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=i(e);h=l.ReadStream,g=l.WriteStream}var u=e.ReadStream;u&&(h.prototype=Object.create(u.prototype),h.prototype.open=function(){var e=this;y(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var f=e.WriteStream;f&&(g.prototype=Object.create(f.prototype),g.prototype.open=function(){var e=this;y(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0});var _=h;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(e){_=e},enumerable:!0,configurable:!0});var m=g;function h(e,t){return this instanceof h?(u.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function g(e,t){return this instanceof g?(f.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var A=e.open;function y(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,i,o){return A(t,n,r,(function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):p([e,[t,n,r,i],s,o||Date.now(),Date.now()])}))}(e,t,n,r)}return e.open=y,e}function p(t){l("ENQUEUE",t[0].name,t[1]),n[e].push(t),_()}function f(){for(var t=Date.now(),r=0;r<n[e].length;++r)n[e][r].length>2&&(n[e][r][3]=t,n[e][r][4]=t);_()}function _(){if(clearTimeout(c),c=void 0,0!==n[e].length){var t=n[e].shift(),r=t[0],i=t[1],o=t[2],s=t[3],a=t[4];if(void 0===s)l("RETRY",r.name,i),r.apply(null,i);else if(Date.now()-s>=6e4){l("TIMEOUT",r.name,i);var u=i.pop();"function"==typeof u&&u.call(null,o)}else{var d=Date.now()-a,p=Math.max(a-s,1);d>=Math.min(1.2*p,100)?(l("RETRY",r.name,i),r.apply(null,i.concat([s]))):n[e].push(t)}void 0===c&&(c=setTimeout(_,0))}}return commonjsGlobal[e]||a(commonjsGlobal,n[e]),gracefulFs=d(o(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(gracefulFs=d(n),n.__patched=!0),gracefulFs}var gracefulFsExports=requireGracefulFs(),fs=getDefaultExportFromCjs(gracefulFsExports);const homeDirectory=require$$0$9.homedir(),{env:env}=process,xdgData=env.XDG_DATA_HOME||(homeDirectory?require$$0$8.join(homeDirectory,".local","share"):void 0),xdgConfig=env.XDG_CONFIG_HOME||(homeDirectory?require$$0$8.join(homeDirectory,".config"):void 0);env.XDG_STATE_HOME||homeDirectory&&require$$0$8.join(homeDirectory,".local","state"),env.XDG_CACHE_HOME||homeDirectory&&require$$0$8.join(homeDirectory,".cache"),env.XDG_RUNTIME_DIR;const xdgDataDirectories=(env.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");xdgData&&xdgDataDirectories.unshift(xdgData);const xdgConfigDirectories=(env.XDG_CONFIG_DIRS||"/etc/xdg").split(":");xdgConfig&&xdgConfigDirectories.unshift(xdgConfig);const attemptifyAsync=(e,t)=>function(...n){return e.apply(void 0,n).catch(t)},attemptifySync=(e,t)=>function(...n){try{return e.apply(void 0,n)}catch(e){return t(e)}},IS_USER_ROOT=!!process$2.getuid&&!process$2.getuid(),LIMIT_FILES_DESCRIPTORS=1e4,NOOP=()=>{},Handlers={isChangeErrorOk:e=>{if(!Handlers.isNodeError(e))return!1;const{code:t}=e;return"ENOSYS"===t||!(IS_USER_ROOT||"EINVAL"!==t&&"EPERM"!==t)},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!Handlers.isNodeError(e))return!1;const{code:t}=e;return"EMFILE"===t||"ENFILE"===t||"EAGAIN"===t||"EBUSY"===t||"EACCESS"===t||"EACCES"===t||"EACCS"===t||"EPERM"===t},onChangeError:e=>{if(!Handlers.isNodeError(e))throw e;if(!Handlers.isChangeErrorOk(e))throw e}};class RetryfyQueue{constructor(){this.interval=25,this.intervalId=void 0,this.limit=LIMIT_FILES_DESCRIPTORS,this.queueActive=new Set,this.queueWaiting=new Set,this.init=()=>{this.intervalId||(this.intervalId=setInterval(this.tick,this.interval))},this.reset=()=>{this.intervalId&&(clearInterval(this.intervalId),delete this.intervalId)},this.add=e=>{this.queueWaiting.add(e),this.queueActive.size<this.limit/2?this.tick():this.init()},this.remove=e=>{this.queueWaiting.delete(e),this.queueActive.delete(e)},this.schedule=()=>new Promise((e=>{const t=()=>this.remove(n),n=()=>e(t);this.add(n)})),this.tick=()=>{if(!(this.queueActive.size>=this.limit)){if(!this.queueWaiting.size)return this.reset();for(const e of this.queueWaiting){if(this.queueActive.size>=this.limit)break;this.queueWaiting.delete(e),this.queueActive.add(e),e()}}}}}var RetryfyQueue$1=new RetryfyQueue;const retryifyAsync=(e,t)=>function(n){return function r(...i){return RetryfyQueue$1.schedule().then((o=>e.apply(void 0,i).then((e=>(o(),e)),(e=>{if(o(),Date.now()>=n)throw e;if(t(e)){const e=Math.round(100*Math.random()),t=new Promise((t=>setTimeout(t,e)));return t.then((()=>r.apply(void 0,i)))}throw e}))))}},retryifySync=(e,t)=>function(n){return function r(...i){try{return e.apply(void 0,i)}catch(e){if(Date.now()>n)throw e;if(t(e))return r.apply(void 0,i);throw e}}},FS={attempt:{chmod:attemptifyAsync(promisify(fs$6.chmod),Handlers.onChangeError),chown:attemptifyAsync(promisify(fs$6.chown),Handlers.onChangeError),close:attemptifyAsync(promisify(fs$6.close),NOOP),fsync:attemptifyAsync(promisify(fs$6.fsync),NOOP),mkdir:attemptifyAsync(promisify(fs$6.mkdir),NOOP),realpath:attemptifyAsync(promisify(fs$6.realpath),NOOP),stat:attemptifyAsync(promisify(fs$6.stat),NOOP),unlink:attemptifyAsync(promisify(fs$6.unlink),NOOP),chmodSync:attemptifySync(fs$6.chmodSync,Handlers.onChangeError),chownSync:attemptifySync(fs$6.chownSync,Handlers.onChangeError),closeSync:attemptifySync(fs$6.closeSync,NOOP),existsSync:attemptifySync(fs$6.existsSync,NOOP),fsyncSync:attemptifySync(fs$6.fsync,NOOP),mkdirSync:attemptifySync(fs$6.mkdirSync,NOOP),realpathSync:attemptifySync(fs$6.realpathSync,NOOP),statSync:attemptifySync(fs$6.statSync,NOOP),unlinkSync:attemptifySync(fs$6.unlinkSync,NOOP)},retry:{close:retryifyAsync(promisify(fs$6.close),Handlers.isRetriableError),fsync:retryifyAsync(promisify(fs$6.fsync),Handlers.isRetriableError),open:retryifyAsync(promisify(fs$6.open),Handlers.isRetriableError),readFile:retryifyAsync(promisify(fs$6.readFile),Handlers.isRetriableError),rename:retryifyAsync(promisify(fs$6.rename),Handlers.isRetriableError),stat:retryifyAsync(promisify(fs$6.stat),Handlers.isRetriableError),write:retryifyAsync(promisify(fs$6.write),Handlers.isRetriableError),writeFile:retryifyAsync(promisify(fs$6.writeFile),Handlers.isRetriableError),closeSync:retryifySync(fs$6.closeSync,Handlers.isRetriableError),fsyncSync:retryifySync(fs$6.fsyncSync,Handlers.isRetriableError),openSync:retryifySync(fs$6.openSync,Handlers.isRetriableError),readFileSync:retryifySync(fs$6.readFileSync,Handlers.isRetriableError),renameSync:retryifySync(fs$6.renameSync,Handlers.isRetriableError),statSync:retryifySync(fs$6.statSync,Handlers.isRetriableError),writeSync:retryifySync(fs$6.writeSync,Handlers.isRetriableError),writeFileSync:retryifySync(fs$6.writeFileSync,Handlers.isRetriableError)}},DEFAULT_ENCODING="utf8",DEFAULT_FILE_MODE=438,DEFAULT_FOLDER_MODE=511,DEFAULT_WRITE_OPTIONS={},DEFAULT_USER_UID=os$1.userInfo().uid,DEFAULT_USER_GID=os$1.userInfo().gid,DEFAULT_TIMEOUT_SYNC=1e3,IS_POSIX=!!process$2.getuid;process$2.getuid&&process$2.getuid();const LIMIT_BASENAME_LENGTH=128,isException=e=>e instanceof Error&&"code"in e,isString$1=e=>"string"==typeof e,isUndefined=e=>void 0===e,IS_LINUX="linux"===process$2.platform,IS_WINDOWS="win32"===process$2.platform,Signals=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];IS_WINDOWS||Signals.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),IS_LINUX&&Signals.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");class Interceptor{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=e=>{if(!this.exited){this.exited=!0;for(const e of this.callbacks)e();e&&(IS_WINDOWS&&"SIGINT"!==e&&"SIGTERM"!==e&&"SIGKILL"!==e?process$2.kill(process$2.pid,"SIGTERM"):process$2.kill(process$2.pid,e))}},this.hook=()=>{process$2.once("exit",(()=>this.exit()));for(const e of Signals)try{process$2.once(e,(()=>this.exit(e)))}catch{}},this.register=e=>(this.callbacks.add(e),()=>{this.callbacks.delete(e)}),this.hook()}}var Interceptor$1=new Interceptor;const whenExit=Interceptor$1.register,Temp={store:{},create:e=>{const t=`000000${Math.floor(16777215*Math.random()).toString(16)}`.slice(-6);return`${e}${`.tmp-${Date.now().toString().slice(-10)}${t}`}`},get:(e,t,n=!0)=>{const r=Temp.truncate(t(e));if(r in Temp.store)return Temp.get(e,t,n);Temp.store[r]=n;return[r,()=>delete Temp.store[r]]},purge:e=>{Temp.store[e]&&(delete Temp.store[e],FS.attempt.unlink(e))},purgeSync:e=>{Temp.store[e]&&(delete Temp.store[e],FS.attempt.unlinkSync(e))},purgeSyncAll:()=>{for(const e in Temp.store)Temp.purgeSync(e)},truncate:e=>{const t=path$1.basename(e);if(t.length<=LIMIT_BASENAME_LENGTH)return e;const n=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!n)return e;const r=t.length-LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${n[1]}${n[2].slice(0,-r)}${n[3]}`}};function writeFileSync(e,t,n=DEFAULT_WRITE_OPTIONS){if(isString$1(n))return writeFileSync(e,t,{encoding:n});const r=Date.now()+((n.timeout??DEFAULT_TIMEOUT_SYNC)||-1);let i=null,o=null,s=null;try{const a=FS.attempt.realpathSync(e),c=!!a;e=a||e,[o,i]=Temp.get(e,n.tmpCreate||Temp.create,!(!1===n.tmpPurge));const l=IS_POSIX&&isUndefined(n.chown),u=isUndefined(n.mode);if(c&&(l||u)){const t=FS.attempt.statSync(e);t&&(n={...n},l&&(n.chown={uid:t.uid,gid:t.gid}),u&&(n.mode=t.mode))}if(!c){const t=path$1.dirname(e);FS.attempt.mkdirSync(t,{mode:DEFAULT_FOLDER_MODE,recursive:!0})}s=FS.retry.openSync(r)(o,"w",n.mode||DEFAULT_FILE_MODE),n.tmpCreated&&n.tmpCreated(o),isString$1(t)?FS.retry.writeSync(r)(s,t,0,n.encoding||DEFAULT_ENCODING):isUndefined(t)||FS.retry.writeSync(r)(s,t,0,t.length,0),!1!==n.fsync&&(!1!==n.fsyncWait?FS.retry.fsyncSync(r)(s):FS.attempt.fsync(s)),FS.retry.closeSync(r)(s),s=null,!n.chown||n.chown.uid===DEFAULT_USER_UID&&n.chown.gid===DEFAULT_USER_GID||FS.attempt.chownSync(o,n.chown.uid,n.chown.gid),n.mode&&n.mode!==DEFAULT_FILE_MODE&&FS.attempt.chmodSync(o,n.mode);try{FS.retry.renameSync(r)(o,e)}catch(t){if(!isException(t))throw t;if("ENAMETOOLONG"!==t.code)throw t;FS.retry.renameSync(r)(o,Temp.truncate(e))}i(),o=null}finally{s&&FS.attempt.closeSync(s),o&&Temp.purge(o)}}whenExit(Temp.purgeSyncAll);const isObject$4=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},disallowedKeys=new Set(["__proto__","prototype","constructor"]),digits=new Set("0123456789");function getPathSegments(e){const t=[];let n="",r="start",i=!1;for(const o of e)switch(o){case"\\":if("index"===r)throw new Error("Invalid character in an index");if("indexEnd"===r)throw new Error("Invalid character after an index");i&&(n+=o),r="property",i=!i;break;case".":if("index"===r)throw new Error("Invalid character in an index");if("indexEnd"===r){r="property";break}if(i){i=!1,n+=o;break}if(disallowedKeys.has(n))return[];t.push(n),n="",r="property";break;case"[":if("index"===r)throw new Error("Invalid character in an index");if("indexEnd"===r){r="index";break}if(i){i=!1,n+=o;break}if("property"===r){if(disallowedKeys.has(n))return[];t.push(n),n=""}r="index";break;case"]":if("index"===r){t.push(Number.parseInt(n,10)),n="",r="indexEnd";break}if("indexEnd"===r)throw new Error("Invalid character after an index");default:if("index"===r&&!digits.has(o))throw new Error("Invalid character in an index");if("indexEnd"===r)throw new Error("Invalid character after an index");"start"===r&&(r="property"),i&&(i=!1,n+="\\"),n+=o}switch(i&&(n+="\\"),r){case"property":if(disallowedKeys.has(n))return[];t.push(n);break;case"index":throw new Error("Index was not closed");case"start":t.push("")}return t}function isStringIndex(e,t){if("number"!=typeof t&&Array.isArray(e)){const n=Number.parseInt(t,10);return Number.isInteger(n)&&e[n]===e[t]}return!1}function assertNotStringIndex(e,t){if(isStringIndex(e,t))throw new Error("Cannot use string index")}function getProperty(e,t,n){if(!isObject$4(e)||"string"!=typeof t)return void 0===n?e:n;const r=getPathSegments(t);if(0===r.length)return n;for(let t=0;t<r.length;t++){const i=r[t];if(null==(e=isStringIndex(e,i)?t===r.length-1?void 0:null:e[i])){if(t!==r.length-1)return n;break}}return void 0===e?n:e}function setProperty$1(e,t,n){if(!isObject$4(e)||"string"!=typeof t)return e;const r=e,i=getPathSegments(t);for(let t=0;t<i.length;t++){const r=i[t];assertNotStringIndex(e,r),t===i.length-1?e[r]=n:isObject$4(e[r])||(e[r]="number"==typeof i[t+1]?[]:{}),e=e[r]}return r}function deleteProperty(e,t){if(!isObject$4(e)||"string"!=typeof t)return!1;const n=getPathSegments(t);for(let t=0;t<n.length;t++){const r=n[t];if(assertNotStringIndex(e,r),t===n.length-1)return delete e[r],!0;if(e=e[r],!isObject$4(e))return!1}}function hasProperty(e,t){if(!isObject$4(e)||"string"!=typeof t)return!1;const n=getPathSegments(t);if(0===n.length)return!1;for(const t of n){if(!isObject$4(e)||!(t in e)||isStringIndex(e,t))return!1;e=e[t]}return!0}function getConfigDirectory(e,t){const n=t?path$1.join(e,"config.json"):path$1.join("configstore",`${e}.json`),r=xdgConfig??fs.mkdtempSync(fs.realpathSync(os$1.tmpdir())+path$1.sep);return path$1.join(r,n)}const permissionError="You don't have access to this file.",mkdirOptions={mode:448,recursive:!0},writeFileOptions={mode:384};class Configstore{constructor(e,t,n={}){this._path=n.configPath??getConfigDirectory(e,n.globalConfigPath),t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(fs.readFileSync(this._path,"utf8"))}catch(e){if("ENOENT"===e.code)return{};if("EACCES"===e.code&&(e.message=`${e.message}\n${permissionError}\n`),"SyntaxError"===e.name)return writeFileSync(this._path,"",writeFileOptions),{};throw e}}set all(e){try{fs.mkdirSync(path$1.dirname(this._path),mkdirOptions),writeFileSync(this._path,JSON.stringify(e,void 0,"\t"),writeFileOptions)}catch(e){throw"EACCES"===e.code&&(e.message=`${e.message}\n${permissionError}\n`),e}}get size(){return Object.keys(this.all||{}).length}get(e){return getProperty(this.all,e)}set(e,t){const n=this.all;if(1===arguments.length)for(const t of Object.keys(e))setProperty$1(n,t,e[t]);else setProperty$1(n,e,t);this.all=n}has(e){return hasProperty(this.all,e)}delete(e){const t=this.all;deleteProperty(t,e),this.all=t}clear(){this.all={}}get path(){return this._path}}var semverExports=requireSemver(),semver=getDefaultExportFromCjs(semverExports);const debugPackage=debugModule("rdme");function debug(e){return isGHA()&&!isTest()&&("object"==typeof e?coreExports.debug(`rdme: ${JSON.stringify(e)}`):coreExports.debug(`rdme: ${e}`)),debugPackage(e)}function error(e){return isGHA()&&!isTest()?coreExports.error(e):console.error(chalk.red(e))}function info(e,t={includeEmojiPrefix:!0}){return isGHA()&&!isTest()?coreExports.notice(e):t.includeEmojiPrefix?console.info(`โ„น๏ธ ${e}`):console.info(e)}function oraOptions(){const e={};return debugPackage.enabled&&(e.isEnabled=!1),e}function warn(e,t="Warning!"){return isGHA()&&!isTest()?coreExports.warning(e):console.warn(chalk.yellow(`โš ๏ธ ${t} ${e}`))}const registryUrl="https://registry.npmjs.com/rdme",pkg=JSON.parse(readFileSync(new URL("../package.json",import.meta.url),{encoding:"utf-8"}));function getPkgVersion(){return this?.config?.version||pkg.version}async function getPkgVersionFromNPM(e){return e?fetch(registryUrl).then((e=>e.json())).then((t=>t["dist-tags"][e])).catch((e=>(error(`error fetching version from npm registry: ${e.message}`),getPkgVersion.call(this)))):getPkgVersion.call(this)}async function getMajorPkgVersion(e){return semver.major(await getPkgVersionFromNPM.call(this,e))}const configstore=new Configstore(`${pkg.name}-${process.env.NODE_ENV||"production"}${process.env.VITEST_POOL_ID||""}${process.env.VITEST_WORKER_ID||""}`);async function promptTerminal(e,t){function n(){isCI()&&(process.stdout.write("\n"),process.stdout.write("Yikes! Looks like we were about to prompt you for something in a CI environment. Are you missing an argument?"),process.stdout.write("\n\n"),process.stdout.write("Try running `rdme <command> --help` or get in touch at support@readme.io."),process.stdout.write("\n\n"),process.exit(1))}return Array.isArray(e)?e=e.map((e=>({onRender:n,...e}))):e.onRender=n,prompts(e,{onCancel:()=>{process.stdout.write("\n"),process.stdout.write("Thanks for using rdme! See you soon โœŒ๏ธ"),process.stdout.write("\n\n"),process.exit(1)},...t})}const cleanFileName=e=>e.replace(/[^a-z0-9]/gi,"-");function validateFilePath(e,t=e=>e){if(e.length){const n=t(e);return!fs$6.existsSync(n)||"Specified output path already exists."}return"An output path must be supplied."}function validateSubdomain(e){return/^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$/.test(e)||"Project subdomain must contain only letters, numbers and dashes."}const yamlBase="# This GitHub Actions workflow was auto-generated by the `rdme` cli on {{timestamp}}\n# You can view our full documentation here: https://docs.readme.com/docs/rdme\nname: ReadMe GitHub Action ๐Ÿฆ‰\n\non:\n push:\n branches:\n # This workflow will run every time you push code to the following branch: `{{branch}}`\n # Check out GitHub's docs for more info on configuring this:\n # https://docs.github.com/actions/using-workflows/events-that-trigger-workflows\n - {{branch}}\n\njobs:\n rdme-{{cleanCommand}}:\n runs-on: ubuntu-latest\n steps:\n - name: Check out repo ๐Ÿ“š\n uses: actions/checkout@v4\n\n - name: Run `{{command}}` command ๐Ÿš€\n uses: readmeio/rdme@{{rdmeVersion}}\n with:\n rdme: {{commandString}}\n",getConfigStoreKey=e=>`createGHA.${e}`,GITHUB_WORKFLOW_DIR=".github/workflows",GITHUB_SECRET_NAME="README_API_KEY",git=simpleGit(),getGHAFileName=e=>path$1.join(GITHUB_WORKFLOW_DIR,`${cleanFileName(e).toLowerCase()}.yml`);function getKey$1(e,t){return!!Object.keys(e).some((e=>"key"===e))&&`โ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ข${t.key?.slice(-5)||""}`}function constructCommandString(e,t,n,r){return`${e} ${Object.keys(t).map((e=>r[e])).filter(Boolean).join(" ")} ${Object.keys(n).map((e=>{const t=r[e];return"key"===e?`--key=\${{ secrets.${GITHUB_SECRET_NAME} }}`:"github"!==e&&("boolean"===n[e].type&&t?`--${e}`:!!t&&`--${e}=${t}`)})).filter(Boolean).join(" ")}`.trim()}async function getGitData(){const e=/^ {2}HEAD branch: /g,t=/^ {2}HEAD branch:.*/gm,n=await git.checkIsRepo().catch((e=>(this.debug(`[getGitData] error running git repo check: ${e.message}`),!1)));let r,i;this.debug(`[getGitData] isRepo result: ${n}`);const o=await git.remote([]).catch((e=>(this.debug(`[getGitData] error grabbing git remotes: ${e.message}`),"")));if(this.debug(`[getGitData] rawRemotes result: ${o}`),o){const n=o.split("\n")[0];this.debug(`[getGitData] remote result: ${n}`);const s=await git.remote(["show",n]).catch((e=>(this.debug(`[getGitData] error accessing remote: ${e.message}`),"")));this.debug(`[getGitData] rawRemote result: ${s}`);const a=t.exec(s)?.[0];this.debug(`[getGitData] rawHead result: ${a}`),a&&(i=a.replace(e,""));const c=await git.remote(["-v"]);this.debug(`[getGitData] remotesList result: ${c}`),r=/github/.test(c)}this.debug(`[getGitData] containsGitHubRemote result: ${r}`),this.debug(`[getGitData] defaultBranch result: ${i}`);const s=await git.revparse(["--show-toplevel"]).catch((e=>(this.debug(`[getGitData] error grabbing git root: ${e.message}`),"")));return this.debug(`[getGitData] repoRoot result: ${s}`),{containsGitHubRemote:r,defaultBranch:i,isRepo:n,repoRoot:s}}async function createGHA(e,t,n){const{args:r,flags:i,id:o}=t;if(!o)throw new Error("unable to determine command ID yikes");if(this.debug(`running GHA onboarding for ${o} command`),this.debug(`opts used in createGHA: ${JSON.stringify(n)}`),!n.github&&(isCI()||isNpmScript()||isTest()&&!process.env.TEST_RDME_CREATEGHA))return this.debug("not running GHA onboarding workflow in CI, npm script, or default test env, exiting ๐Ÿ‘‹"),e;const{containsGitHubRemote:s,defaultBranch:a,isRepo:c,repoRoot:l}=await getGitData.call(this),u=configstore.get(getConfigStoreKey(l));this.debug(`repo value in config: ${u}`);const d=await getMajorPkgVersion.call(this);if(this.debug(`major pkg version: ${d}`),!n.github&&(!c||u===d||c&&!s))return this.debug("not running GHA onboarding workflow, exiting"),e;e&&info(e,{includeEmojiPrefix:!1}),n.github?info(chalk.bold("\n๐Ÿš€ Let's get you set up with GitHub Actions! ๐Ÿš€\n"),{includeEmojiPrefix:!1}):info(["",chalk.bold("๐Ÿ™ Looks like you're running this command in a GitHub Repository! ๐Ÿ™"),"",`๐Ÿš€ With a few quick clicks, you can run this \`${o}\` command via GitHub Actions (${chalk.underline("https://github.com/features/actions")})`,"",`โœจ This means it will run ${chalk.italic("automagically")} with every push to a branch of your choice!`,""].join("\n"),{includeEmojiPrefix:!1});const p=process.cwd();l&&l!==p&&(process.chdir(l),this.debug(`switching working directory from ${p} to ${process.cwd()}`)),prompts.override({shouldCreateGHA:n.github});const{branch:f,filePath:_,shouldCreateGHA:m}=await promptTerminal([{message:"Would you like to add a GitHub Actions workflow?",name:"shouldCreateGHA",type:"confirm",initial:!0},{message:"What GitHub branch should this workflow run on?",name:"branch",type:"text",initial:a||"main"},{message:"What would you like to name the GitHub Actions workflow file?",name:"filePath",type:"text",initial:cleanFileName(`rdme-${o}`),format:e=>getGHAFileName(e),validate:e=>validateFilePath(e,getGHAFileName)}],{onSubmit:(e,t,n)=>!n.shouldCreateGHA});if(!m)throw configstore.set(getConfigStoreKey(l),d),new Error("GitHub Actions workflow creation cancelled. If you ever change your mind, you can run this command again with the `--github` flag.");const h={branch:f,cleanCommand:cleanFileName(o),command:o,commandString:constructCommandString(o,r,i,n),rdmeVersion:`v${d}`,timestamp:(new Date).toISOString()};this.debug(`data for resolver: ${JSON.stringify(h)}`);let g=yamlBase;Object.keys(h).forEach((e=>{g=g.replace(new RegExp(`{{${e}}}`,"g"),h[e])})),fs$6.existsSync(GITHUB_WORKFLOW_DIR)||(this.debug("GHA workflow directory does not exist, creating"),fs$6.mkdirSync(GITHUB_WORKFLOW_DIR,{recursive:!0})),fs$6.writeFileSync(_,g);const A=[chalk.green("\nYour GitHub Actions workflow file has been created! โœจ\n")],y=getKey$1(i,n);return y?A.push(chalk.bold("Almost done! Just a couple more steps:"),`1. Push your newly created file (${chalk.underline(_)}) to GitHub ๐Ÿš€`,`2. Create a GitHub secret called ${chalk.bold(GITHUB_SECRET_NAME)} and populate the value with your ReadMe API key (${y}) ๐Ÿ”‘`,"",`๐Ÿ” Check out GitHub's docs for more info on creating encrypted secrets (${chalk.underline("https://docs.github.com/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository")})`):A.push(`${chalk.bold("Almost done!")} Push your newly created file (${chalk.underline(_)}) to GitHub and you're all set ๐Ÿš€`),A.push("",`๐Ÿฆ‰ If you have any more questions, feel free to drop us a line! ${chalk.underline("support@readme.io")}`,""),Promise.resolve(A.join("\n"))}const SUCCESS_NO_CONTENT=204;function getProxy(){return process.env.HTTPS_PROXY||process.env.https_proxy}function stripQuotes(e){return e?e.replace(/(^"|[",]*$)/g,""):""}function parseWarningHeader(e){try{let t;return e.split(/([0-9]{3} [a-z0-9.@\-/]*) /g).reduce(((e,n)=>{const r=(n=n.trim()).match(/^([0-9]{3}) (.*)/);if(r)t={code:r[1],agent:r[2],message:""};else if(n){const r=n.split(/" "/);r&&(t.message=stripQuotes(r[0]),t.date=stripQuotes(r[1]),e.push(t))}return e}),[])}catch(t){return debug(`error parsing warning header: ${t.message}`),[{code:"199",agent:"-",message:e}]}}function getUserAgent(){return`rdme${isGHA()?"-github":""}/${getPkgVersion()}`}async function normalizeFilePath(e){if("path"===e.fileType){const t=await git.revparse(["--show-toplevel"]).catch((e=>(debug(`[fetch] error grabbing git root: ${e.message}`),"")));return path$1.relative(t,e.filePath)}return e.filePath}function sanitizeHeaders(e){const t=Array.from(e.entries()).reduce(((e,t)=>(e[t[0]]="authorization"===t[0].toLowerCase()?"redacted":t[1],e)),{});return JSON.stringify(t)}async function readmeAPIv1Fetch(e,t={headers:new Headers},n={filePath:"",fileType:!1}){let r="cli",i=t.headers;if(t.headers instanceof Headers||(i=new Headers(t.headers)),i.set("User-Agent",getUserAgent()),isGHA()){r="cli-gh",process.env.GITHUB_REPOSITORY&&i.set("x-github-repository",process.env.GITHUB_REPOSITORY),process.env.GITHUB_RUN_ATTEMPT&&i.set("x-github-run-attempt",process.env.GITHUB_RUN_ATTEMPT),process.env.GITHUB_RUN_ID&&i.set("x-github-run-id",process.env.GITHUB_RUN_ID),process.env.GITHUB_RUN_NUMBER&&i.set("x-github-run-number",process.env.GITHUB_RUN_NUMBER),process.env.GITHUB_SHA&&i.set("x-github-sha",process.env.GITHUB_SHA);const e=await normalizeFilePath(n);if(e)try{const t=new URL(`${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/blob/${process.env.GITHUB_SHA}/${e}`).href;i.set("x-readme-source-url",t)}catch(e){debug(`error constructing github source url: ${e.message}`)}}isCI()&&i.set("x-rdme-ci",ciName()),i.set("x-readme-source",r),n.filePath&&"url"===n.fileType&&i.set("x-readme-source-url",n.filePath);const o=`${config.host}${e}`,s=getProxy();return debug(`making ${(t.method||"get").toUpperCase()} request to ${o} ${s?`with proxy ${s} and `:""}with headers: ${sanitizeHeaders(i)}`),fetch(o,{...t,headers:i,dispatcher:s?new undiciExports.ProxyAgent(s):void 0}).then((e=>{const t=e.headers.get("Warning");if(t){debug(`received warning header: ${t}`);parseWarningHeader(t).forEach((e=>{warn(e.message,"ReadMe API Warning:")}))}return e})).catch((e=>{throw debug(`error making fetch request: ${e}`),e}))}async function handleAPIv1Res(e,t=!0){const n=e.headers.get("content-type")||"";if("json"===mime.extension(n)){const n=await e.json();return debug(`received status code ${e.status} from ${e.url} with JSON response: ${JSON.stringify(n)}`),n.error&&t?Promise.reject(new APIv1Error(n)):n}if(e.status===SUCCESS_NO_CONTENT)return debug(`received status code ${e.status} from ${e.url} with no content`),{};const r=await e.text();return debug(`received status code ${e.status} from ${e.url} with non-JSON response: ${r}`),Promise.reject(r)}function filterOutFalsyHeaders(e){const t=new Headers;for(const n of e.entries())"null"!==n[1]&&"undefined"!==n[1]&&n[1].length>0&&t.set(n[0],n[1]);return t}function cleanAPIv1Headers(e,t,n=new Headers){const r=Buffer.from(`${e}:`).toString("base64");return n.set("Authorization",`Basic ${r}`),t&&n.set("x-readme-version",t),filterOutFalsyHeaders(n)}async function getCategories(e,t){const{firstPage:n,totalCount:r}=await async function(){let n=0;return readmeAPIv1Fetch("/api/v1/categories?perPage=20&page=1",{method:"get",headers:cleanAPIv1Headers(e,t,new Headers({Accept:"application/json"}))}).then((e=>(n=Math.ceil(parseInt(e.headers.get("x-total-count")||"0",10)/20),handleAPIv1Res(e)))).then((e=>({firstPage:e,totalCount:n})))}();return n.concat(...await Promise.all([...new Array(r+1).keys()].slice(2).map((async n=>readmeAPIv1Fetch(`/api/v1/categories?perPage=20&page=${n}`,{method:"get",headers:cleanAPIv1Headers(e,t,new Headers({Accept:"application/json"}))}).then(handleAPIv1Res)))))}async function getProjectVersion(e,t,n=!1){try{if(e)return await readmeAPIv1Fetch(`/api/v1/version/${e}`,{method:"get",headers:cleanAPIv1Headers(t)}).then(handleAPIv1Res).then((e=>e.version));if(isCI())return void warn("No `--version` parameter detected in current CI environment. Defaulting to main version.");const r=await readmeAPIv1Fetch("/api/v1/version",{method:"get",headers:cleanAPIv1Headers(t)}).then(handleAPIv1Res);if(1===r.length)return r[0].version;if(n){const e=r.find((e=>!0===e.is_stable));if(!e)throw new Error("Unexpected version response from the ReadMe API. Get in touch with us at support@readme.io!");return e.version}const{versionSelection:i}=await promptTerminal({type:"select",name:"versionSelection",message:"Select your desired version",choices:r.map((e=>({title:e.version,value:e.version})))});return i}catch(e){return Promise.reject(new APIv1Error(e))}}class CategoriesCreateCommand extends BaseCommand{static id="categories create";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static description="Create a category with the specified title and guide in your ReadMe project.";static args={title:libExports$3.Args.string({description:"Title of the category",required:!0})};static flags={categoryType:libExports$3.Flags.option({description:"Category type",options:["guide","reference"],required:!0})(),key:keyFlag,preventDuplicates:libExports$3.Flags.boolean({description:"Prevents the creation of a new category if there is an existing category with a matching `categoryType` and `title`"}),version:versionFlag};static examples=[{description:"Create a new category for your project version:",command:"<%= config.bin %> <%= command.id %> <title> --categoryType={guide|reference} --version={project-version}"},{description:"If you want to prevent the creation of a duplicate category with a matching `title` and `categoryType`, supply the `--preventDuplicates` flag:",command:"<%= config.bin %> <%= command.id %> <title> --categoryType={guide|reference} --version={project-version} --preventDuplicates"}];async run(){const{title:e}=this.args,{categoryType:t,key:n,version:r,preventDuplicates:i}=this.flags,o=await getProjectVersion(r,n);if(this.debug(`selectedVersion: ${o}`),i){const r=(await getCategories(n,o)).find((n=>n.title.trim().toLowerCase()===e.trim().toLowerCase()&&n.type===t));if(void 0!==r)return Promise.reject(new Error(`The '${r.title}' category with a type of '${r.type}' already exists with an id of '${r.id}'. A new category was not created.`))}const s=await readmeAPIv1Fetch("/api/v1/categories",{method:"post",headers:cleanAPIv1Headers(n,o,new Headers({"Content-Type":"application/json"})),body:JSON.stringify({title:e,type:t})}).then(handleAPIv1Res).then((e=>`๐ŸŒฑ successfully created '${e.title}' with a type of '${e.type}' and an id of '${e.id}'`));return Promise.resolve(chalk.green(s))}}class CategoriesCommand extends BaseCommand{static id="categories";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static description="Get all categories in your ReadMe project.";static flags={key:keyFlag,version:versionFlag};static examples=[{description:"Get all categories associated to your project version:",command:"<%= config.bin %> <%= command.id %> --version={project-version}"}];async run(){const{key:e,version:t}=this.flags,n=await getProjectVersion(t,e);this.debug(`selectedVersion: ${n}`);const r=await getCategories(e,n);return Promise.resolve(JSON.stringify(r,null,2))}}var toposort$1={exports:{}},hasRequiredToposort;function requireToposort(){if(hasRequiredToposort)return toposort$1.exports;function e(e,t){var n=e.length,r=new Array(n),i={},o=n,s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!a.has(e[0])||!a.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||c(e[o],o,new Set);return r;function c(e,t,o){if(o.has(e)){var l;try{l=", node was:"+JSON.stringify(e)}catch(e){l=""}throw new Error("Cyclic dependency"+l)}if(!a.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var u=s.get(e)||new Set;if(t=(u=Array.from(u)).length){o.add(e);do{var d=u[--t];c(d,a.get(d),o)}while(t);o.delete(e)}r[--n]=e}}}return hasRequiredToposort=1,toposort$1.exports=function(t){return e(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(t),t)},toposort$1.exports.array=e,toposort$1.exports}var toposortExports=requireToposort(),toposort=getDefaultExportFromCjs(toposortExports),ignore$1,hasRequiredIgnore;function requireIgnore(){if(hasRequiredIgnore)return ignore$1;function e(e){return Array.isArray(e)?e:[e]}hasRequiredIgnore=1;const t=/^\s+$/,n=/(?:[^\\]|^)\\$/,r=/^\\!/,i=/^\\#/,o=/\r?\n/g,s=/^\.*\/|^\.+$/;let a="node-ignore";"undefined"!=typeof Symbol&&(a=Symbol.for("node-ignore"));const c=a,l=/([0-z])-([0-z])/g,u=()=>!1,d=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+" "}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>"\\"===t?`\\[${n}${(e=>{const{length:t}=e;return e.slice(0,t-t%2)})(r)}${i}`:"]"===i&&r.length%2==0?`[${(e=>e.replace(l,((e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:"")))(n)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],p=Object.create(null),f=e=>"string"==typeof e;class _{constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}}const m=(e,t)=>{const n=e;let o=!1;0===e.indexOf("!")&&(o=!0,e=e.substr(1));const s=((e,t)=>{let n=p[e];return n||(n=d.reduce(((t,[n,r])=>t.replace(n,r.bind(e))),e),p[e]=n),t?new RegExp(n,"i"):new RegExp(n)})(e=e.replace(r,"!").replace(i,"#"),t);return new _(n,e,o,s)},h=(e,t)=>{throw new t(e)},g=(e,t,n)=>{if(!f(e))return n(`path must be a string, but got \`${t}\``,TypeError);if(!e)return n("path must not be empty",TypeError);if(g.isNotRelative(e)){return n(`path should be a ${"`path.relative()`d"} string, but got "${t}"`,RangeError)}return!0},A=e=>s.test(e);g.isNotRelative=A,g.convert=e=>e;class y{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){var r,i,o;r=this,i=c,o=!0,Object.defineProperty(r,i,{value:o}),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[c])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&f(e)&&!t.test(e)&&!n.test(e)&&0!==e.indexOf("#"))(e)){const t=m(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(t){return this._added=!1,e(f(t)?(e=>e.split(o))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach((i=>{const{negative:o}=i;if(r===o&&n!==r||o&&!n&&!r&&!t)return;i.regex.test(e)&&(n=!o,r=o)})),{ignored:n,unignored:r}}_test(e,t,n,r){const i=e&&g.convert(e);return g(i,e,this._allowRelativePaths?u:h),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||(r=e.split("/")),r.pop(),!r.length)return t[e]=this._testOne(e,n);const i=this._t(r.join("/")+"/",t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(t){return e(t).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const v=e=>new y(e);if(v.isPathValid=e=>g(e&&g.convert(e),e,u),v.default=v,ignore$1=v,"undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");g.convert=e;const t=/^[a-z]:\//i;g.isNotRelative=e=>t.test(e)||A(e)}return ignore$1}var ignoreExports=requireIgnore(),ignore=getDefaultExportFromCjs(ignoreExports),kindOf,hasRequiredKindOf,isExtendable,hasRequiredIsExtendable,extendShallow,hasRequiredExtendShallow,sectionMatter,hasRequiredSectionMatter;function readdirRecursive(e,t=!1){let n;debug(`current readdirRecursive folder: ${e}`),t&&(n=ignore.default().add(path$1.join(e,".git/")),fs$6.existsSync(path$1.join(e,".gitignore"))&&(debug(".gitignore file found, adding to ignore filter"),n.add(fs$6.readFileSync(path$1.join(e,".gitignore")).toString())));const r=fs$6.readdirSync(e,{withFileTypes:!0}).filter((r=>{if(!t)return!0;let i=path$1.join(e,r.name);return r.isDirectory()&&(i=`${i}/`),!n.ignores(i)})),i=r.filter((e=>e.isFile())).map((t=>path$1.join(e,t.name))),o=r.filter((e=>e.isDirectory()));return[...i,...[].concat(...o.map((n=>readdirRecursive(path$1.join(e,n.name),t))))]}function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var e=Object.prototype.toString;function t(e){return"function"==typeof e.constructor?e.constructor.name:null}return kindOf=function(n){if(void 0===n)return"undefined";if(null===n)return"null";var r=typeof n;if("boolean"===r)return"boolean";if("string"===r)return"string";if("number"===r)return"number";if("symbol"===r)return"symbol";if("function"===r)return function(e){return"GeneratorFunction"===t(e)}(n)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(n))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(n))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(n))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(n))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(n))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(n))return"regexp";switch(t(n)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(n))return"generator";switch(r=e.call(n)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")},kindOf} /*! * is-extendable <https://github.com/jonschlinkert/is-extendable> * @@ -90,4 +90,4 @@ o[i-4]=this.maskKey[0],o[i-3]=this.maskKey[1],o[i-2]=this.maskKey[2],o[i-1]=this * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js */ -var e=Object.prototype.toString,t=Array.isArray||function(t){return"[object Array]"===e.call(t)};function n(e){return"function"==typeof e}function r(e){return t(e)?"array":typeof e}function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}function s(e,t){return null!=e&&"object"!=typeof e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var a=RegExp.prototype.test;function c(e,t){return a.call(e,t)}var l=/\S/;function u(e){return!c(l,e)}var d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function p(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return d[e]}))}var f=/\s*/,_=/\s+/,m=/\s*=/,h=/\s*\}/,g=/#|\^|\/|>|\{|&|=|!/;function A(e,n){if(!e)return[];var r,o,s,a=!1,c=[],l=[],d=[],p=!1,A=!1,C="",E=0;function S(){if(p&&!A)for(;d.length;)delete l[d.pop()];else d=[];p=!1,A=!1}function k(e){if("string"==typeof e&&(e=e.split(_,2)),!t(e)||2!==e.length)throw new Error("Invalid tags: "+e);r=new RegExp(i(e[0])+"\\s*"),o=new RegExp("\\s*"+i(e[1])),s=new RegExp("\\s*"+i("}"+e[1]))}k(n||x.tags);for(var D,w,I,T,F,R,P=new b(e);!P.eos();){if(D=P.pos,I=P.scanUntil(r))for(var N=0,B=I.length;N<B;++N)u(T=I.charAt(N))?(d.push(l.length),C+=T):(A=!0,a=!0,C+=" "),l.push(["text",T,D,D+1]),D+=1,"\n"===T&&(S(),C="",E=0,a=!1);if(!P.scan(r))break;if(p=!0,w=P.scan(g)||"name",P.scan(f),"="===w?(I=P.scanUntil(m),P.scan(m),P.scanUntil(o)):"{"===w?(I=P.scanUntil(s),P.scan(h),P.scanUntil(o),w="&"):I=P.scanUntil(o),!P.scan(o))throw new Error("Unclosed tag at "+P.pos);if(F=">"==w?[w,I,D,P.pos,C,E,a]:[w,I,D,P.pos],E++,l.push(F),"#"===w||"^"===w)c.push(F);else if("/"===w){if(!(R=c.pop()))throw new Error('Unopened section "'+I+'" at '+D);if(R[1]!==I)throw new Error('Unclosed section "'+R[1]+'" at '+D)}else"name"===w||"{"===w||"&"===w?A=!0:"="===w&&k(I)}if(S(),R=c.pop())throw new Error('Unclosed section "'+R[1]+'" at '+P.pos);return v(y(l))}function y(e){for(var t,n,r=[],i=0,o=e.length;i<o;++i)(t=e[i])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}function v(e){for(var t,n=[],r=n,i=[],o=0,s=e.length;o<s;++o)switch((t=e[o])[0]){case"#":case"^":r.push(t),i.push(t),r=t[4]=[];break;case"/":i.pop()[5]=t[2],r=i.length>0?i[i.length-1][4]:n;break;default:r.push(t)}return n}function b(e){this.string=e,this.tail=e,this.pos=0}function C(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function E(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}b.prototype.eos=function(){return""===this.tail},b.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},b.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},C.prototype.push=function(e){return new C(e,this)},C.prototype.lookup=function(e){var t,r=this.cache;if(r.hasOwnProperty(e))t=r[e];else{for(var i,a,c,l=this,u=!1;l;){if(e.indexOf(".")>0)for(i=l.view,a=e.split("."),c=0;null!=i&&c<a.length;)c===a.length-1&&(u=o(i,a[c])||s(i,a[c])),i=i[a[c++]];else i=l.view[e],u=o(l.view,e);if(u){t=i;break}l=l.parent}r[e]=t}return n(t)&&(t=t.call(this.view)),t},E.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},E.prototype.parse=function(e,t){var n=this.templateCache,r=e+":"+(t||x.tags).join(":"),i=void 0!==n,o=i?n.get(r):void 0;return null==o&&(o=A(e,t),i&&n.set(r,o)),o},E.prototype.render=function(e,t,n,r){var i=this.getConfigTags(r),o=this.parse(e,i),s=t instanceof C?t:new C(t,void 0);return this.renderTokens(o,s,n,e,r)},E.prototype.renderTokens=function(e,t,n,r,i){for(var o,s,a,c="",l=0,u=e.length;l<u;++l)a=void 0,"#"===(s=(o=e[l])[0])?a=this.renderSection(o,t,n,r,i):"^"===s?a=this.renderInverted(o,t,n,r,i):">"===s?a=this.renderPartial(o,t,n,i):"&"===s?a=this.unescapedValue(o,t):"name"===s?a=this.escapedValue(o,t,i):"text"===s&&(a=this.rawValue(o)),void 0!==a&&(c+=a);return c},E.prototype.renderSection=function(e,r,i,o,s){var a=this,c="",l=r.lookup(e[1]);function u(e){return a.render(e,r,i,s)}if(l){if(t(l))for(var d=0,p=l.length;d<p;++d)c+=this.renderTokens(e[4],r.push(l[d]),i,o,s);else if("object"==typeof l||"string"==typeof l||"number"==typeof l)c+=this.renderTokens(e[4],r.push(l),i,o,s);else if(n(l)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(r.view,o.slice(e[3],e[5]),u))&&(c+=l)}else c+=this.renderTokens(e[4],r,i,o,s);return c}},E.prototype.renderInverted=function(e,n,r,i,o){var s=n.lookup(e[1]);if(!s||t(s)&&0===s.length)return this.renderTokens(e[4],n,r,i,o)},E.prototype.indentPartial=function(e,t,n){for(var r=t.replace(/[^ \t]/g,""),i=e.split("\n"),o=0;o<i.length;o++)i[o].length&&(o>0||!n)&&(i[o]=r+i[o]);return i.join("\n")},E.prototype.renderPartial=function(e,t,r,i){if(r){var o=this.getConfigTags(i),s=n(r)?r(e[1]):r[e[1]];if(null!=s){var a=e[6],c=e[5],l=e[4],u=s;0==c&&l&&(u=this.indentPartial(s,l,a));var d=this.parse(u,o);return this.renderTokens(d,t,r,u,i)}}},E.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},E.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||x.escape,i=t.lookup(e[1]);if(null!=i)return"number"==typeof i&&r===x.escape?String(i):r(i)},E.prototype.rawValue=function(e){return e[1]},E.prototype.getConfigTags=function(e){return t(e)?e:e&&"object"==typeof e?e.tags:void 0},E.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!t(e)?e.escape:void 0};var x={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){S.templateCache=e},get templateCache(){return S.templateCache}},S=new E;return x.clearCache=function(){return S.clearCache()},x.parse=function(e,t){return S.parse(e,t)},x.render=function(e,t,n,i){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+r(e)+'" was given as the first argument for mustache#render(template, view, partials)');return S.render(e,t,n,i)},x.escape=p,x.Scanner=b,x.Context=C,x.Writer=E,x}()),mustache$1.exports}function requireVarReplacer(){if(hasRequiredVarReplacer)return varReplacer;hasRequiredVarReplacer=1;const e=requireMustache();return e.Writer.prototype.escapedValue=function(e,t){const n=t.lookup(e[1])||`{{${e[1]}}}`;return String(n)},varReplacer=function(t,n={}){const r=JSON.parse(t),{variable:i=[]}=r,o={...i.reduce(((e,{key:t,value:n})=>(e[t]=n,e)),{}),...n};return e.render(t,o)}}function requireSrc$3(){if(hasRequiredSrc$3)return src$3;hasRequiredSrc$3=1;const{promises:{writeFile:e,readFile:t}}=require$$0$7,{getStatusCodeMessage:n}=requireSrc$4(),{dump:r}=requireJsYaml(),i=require$$3,o=requireLodash_camelcase(),{parseMdTable:s}=requireMdUtils(),a=requireVarReplacer();function c({tag:e,name:t},{separator:n=" > ",concat:r=!0}){return e&&r?`${e}${n}${t}`:t}function l(e,t){const{info:{name:n,description:r},variable:i=[]}=e,o=y(i,"version","1.0.0"),{title:s=n,description:a=r,version:c=o,termsOfService:l,license:f,contact:_,xLogo:m}=t;return{title:s,description:a,version:c,...u(i,m),...l?{termsOfService:l}:{},...p(i,_),...d(i,f)}}function u(e,t={}){const n=y(e,"x-logo.urlVar"),r=y(e,"x-logo.backgroundColorVar"),i=y(e,"x-logo.altTextVar"),o=y(e,"x-logo.hrefVar"),{url:s=n,backgroundColor:a=r,altText:c=i,href:l=o}=t;return null!=s?{"x-logo":{url:s,backgroundColor:a,altText:c,href:l}}:{}}function d(e,t={}){const n=y(e,"license.name"),r=y(e,"license.url"),{name:i=n,url:o=r}=t;return null!=i?{license:{name:i,...o?{url:o}:{}}}:{}}function p(e,t={}){const n=y(e,"contact.name"),r=y(e,"contact.url"),i=y(e,"contact.email"),{name:o=n,url:s=r,email:a=i}=t;return[o,s,a].some((e=>null!=e))?{contact:{...o?{name:o}:{},...s?{url:s}:{},...a?{email:a}:{}}}:{}}function f(e,t){const n=y(e,"externalDocs.description"),r=y(e,"externalDocs.url"),{description:i=n,url:o=r}=t;return null!=o?{externalDocs:{url:o,...i?{description:i}:{}}}:{}}function _(e={},t){if(["GET","DELETE"].includes(t))return{};const{mode:n,raw:r,options:o={raw:r}}=e;let s={};switch(n){case"raw":{const{raw:{language:e}}=o;let t="";if("json"===e){if(r){const e=[];t=i.parse(r,e),e.length>0&&(t=r)}s={"application/json":{schema:{type:"object",example:t}}}}else s="text"===e?{"text/plain":{schema:{type:"string",example:r}}}:{"*/*":{schema:{type:"string",example:JSON.stringify(r)}}};break}case"file":s={"text/plain":{}};break;case"formdata":s={"multipart/form-data":m(e.formdata)};break;case"urlencoded":s={"application/x-www-form-urlencoded":m(e.urlencoded)}}return{requestBody:{content:s}}}function m(e){return e.reduce(((e,{key:t,type:n,description:r,value:i})=>{const{schema:o}=e;return function(e){return/\[required\]/gi.test(e)}(r)&&(o.required=o.required||[]).push(t),(o.properties=o.properties||{})[t]={type:v(i),...r?{description:r.replace(/ ?\[required\] ?/gi,"")}:{},...i?{example:i}:{},..."file"===n?{format:"binary"}:{}},e}),{schema:{type:"object"}})}const h=(e,t)=>(e.has(t.name)||e.set(t.name,t),e);function g(e,t,n,r={},i,{includeQuery:o=!1,includeHeader:s=!1},a=h){const c=[...t.reduce(A("header",s,a),new Map).values()];return c.push(...e.reduce(A("query",o,a),new Map).values()),c.push(...function(e,t,n){const r=e.match(/{\s*[\w-]+\s*}/g)||[];return r.map((e=>{const r=e.slice(1,-1),{type:i="string",description:o,value:s}=n[r]||{},{type:a=i,description:c=o,example:l=s}=t[r]||{};return{name:r,in:"path",schema:{type:a},required:!0,...c?{description:c}:{},...l?{example:l}:{}}}))}(n,r,i)),c.length?{parameters:c}:{}}function A(e,t,n){return(r,{key:i,description:o,value:s,disabled:a})=>{if(!t&&!0===a)return r;const c=/\[required\]/gi.test(o);return n(r,{name:i,in:e,schema:{type:v(s)},...c?{required:c}:{},...o?{description:o.replace(/ ?\[required\] ?/gi,"")}:{},...s?{example:s}:{}}),r}}function y(e,t,n=void 0){const r=e.find((({key:e})=>e===t));return r?r.value:n}function v(e){return/^\d+$/.test(e)?"integer":/^[+-]?([0-9]*[.])?[0-9]+$/.test(e)?"number":/^(true|false)$/.test(e)?"boolean":"string"}function b({auth:e},t,n){return null!=t?function(e){const t={},n=[];for(const[r,i]of Object.entries(e)){const{type:e,scheme:o,...s}=i;"http"===e&&["bearer","basic"].includes(o)&&(t[r]={type:"http",scheme:o,...s},n.push({[r]:[]}))}return 0===Object.keys(t).length?{}:{components:{securitySchemes:t},security:n}}(t):function(e={},t){const{type:n}=e;if(null!=n)return t[`${n}Auth`]={type:"http",scheme:n},{components:{securitySchemes:t},security:[{[`${n}Auth`]:[]}]};return 0===Object.keys(t).length?{}:{components:{securitySchemes:t}}}(e,n)}function C(e,t,n){if(null==e||null!=n)return{};const{type:r}=e;return t[`${r}Auth`]={type:"http",scheme:r},{security:[{[`${r}Auth`]:[]}]}}function E(e,t){return`/${(e=e.slice(t)).map((e=>e=(e=e.replace(/([{}])\1+/g,"$1")).replace(/^:(.*)/g,"{$1}"))).join("/")}`}function x(e,t,n){return`${e}://${t.join(".")}${n?`:${n}`:""}`}function S(e){if(void 0===e||""===e||""===e.raw)return{valid:!1};const t="string"==typeof e||e instanceof String?e:e.raw,n=t.startsWith("{{")?`http://${t}`:t,r=new URL(n);return{raw:t,path:decodeURIComponent(r.pathname).slice(1).split("/"),query:k(r.searchParams,e.query),protocol:r.protocol.slice(0,-1),host:decodeURIComponent(r.hostname).split("."),port:r.port,valid:!0,pathVars:null==e.variable?{}:e.variable.reduce(((e,{key:t,value:n,description:r})=>(e[t]={value:n,description:r,type:v(n)},e)),{})}}function k(e,t=[]){return t}function D(e,t){let n;return n=null!=t?t.map((({url:e,description:t})=>({url:e,description:t}))):Array.from(e).map((e=>({url:e}))),n.length>0?{servers:n}:{}}function w(e){const t=Object.entries(e).map((([e,t])=>({name:e,description:t})));return t.length>0?{tags:t}:{}}function I(e){if(null==e)return{description:e};const t=e.split(/# postman-to-openapi/gi);return 1===t.length?{description:e}:{description:t[0].trim(),paramsMeta:s(t[1])}}function T(e,t,r){return null!=e&&Array.isArray(e)&&e.length>0?function(e,t){const r=e.reduce(((e,{name:t,code:r,status:i,header:o,body:s,_postman_previewlanguage:a})=>{if(void 0===r&&(r="default"),!i)try{i=n({code:r})}catch(e){i=r}return r in e?(a in e[r].bodies||(e[r].bodies[a]=[]),e[r].bodies[a].push({name:t,body:s})):e[r]={description:i,header:o,bodies:{[a]:[{name:t,body:s}]}},e}),{}),i=Object.entries(r).reduce(((e,[n,{description:r,header:i,bodies:o}])=>(e[n]={description:r,...B(i,t),...R(o)},e)),{});return{responses:i}}(e,r):{responses:F(t)}}function F(e=[]){let t=200;const n=e.filter((e=>"test"===e.listen));if(n.length>0){const e=n[0].script.exec.join().match(/\.response\.code\)\.to\.eql\((\d{3})\)|\.to\.have\.status\((\d{3})\)/);t=e&&null!=e[1]?e[1]:e&&null!=e[2]?e[2]:t}return{[t]:{description:"Successful response",content:{"application/json":{}}}}}function R(e){return{content:Object.entries(e).reduce(((e,[t,n])=>("json"===t?e["application/json"]={schema:{type:"object"},...P(n,"json")}:e["text/plain"]={schema:{type:"string"},...P(n,"text")},e)),{})}}function P(e,t){if(Array.isArray(e)&&e.length>1)return{examples:e.reduce(((e,{name:n,body:r},i)=>(e[`example-${i}`]={summary:n,value:N(r,n,t)},e)),{})};const{body:n,name:r}=e[0];return{example:N(n,r,t)}}function N(e,t,n){if("json"===n){const n=[],r=i.parse(null==e||0===e.trim().length?"{}":e,n);if(n.length>0)throw new Error(`Error parsing response example "${t}"`);return r}return e}function B(e,t){if(!t)return{};const n=(e=e||[]).reduce(((e,{key:t,value:n})=>(e[t]={schema:{type:v(n),example:n}},e)),{});return Object.keys(n).length>0?{headers:n}:{}}function O(e,t,n){let r;switch(e){case"off":break;case"auto":r=o(n);break;case"brackets":{const e=t.match(/\[([^\[\]]*)\]/);r=e?e[1]:void 0;break}}return r?{operationId:r}:{}}return src$3=async function(n,i,{info:o={},defaultTag:s="default",pathDepth:u=0,auth:d,servers:p,externalDocs:m={},folders:h={},responseHeaders:A=!0,replaceVars:y=!1,additionalVars:v={},outputFormat:k="yaml",disabledParams:F={includeQuery:!1,includeHeader:!1},operationId:R="off"}={}){let P=await async function(e){if(e.trim().startsWith("{"))return e;return t(e,"utf8")}(n);y&&(P=a(P,v));const N=JSON.parse(P),B=N.collection||N,{item:q,variable:$=[]}=B,Q={},L=new Set,M={},j={};for(let[e,t]of q.entries()){for(;null!=t&&null!=t.item;){const{item:n,description:r}=t,i=c(t,h),o=n.map((e=>({...e,tag:i})));M[i]=r,q.splice(e,1,...o),t=o.length>0?o.shift():q[e]}if(null!=t){const{request:{url:e,method:n,body:r,description:i,header:o=[],auth:a},name:c,tag:l=s,event:p,response:f}=t,{path:m,query:h,protocol:y,host:v,port:b,valid:k,pathVars:D}=S(e);if(k){const e=c.replace(/ \[([^\[\]]*)\]/gi,"");L.add(x(y,v,b));const t=E(m,u);Q[t]||(Q[t]={});const{description:s,paramsMeta:S}=I(i);Q[t][n.toLowerCase()]={tags:[l],summary:e,...O(R,c,e),...s?{description:s}:{},..._(r,n),...C(a,j,d),...g(h,o,t,S,D,F),...T(f,p,A)}}}}const U={openapi:"3.0.0",info:l(B,o),...f($,m),...D(L,p),...b(B,d,j),...w(M),paths:Q},J="json"===k?JSON.stringify(U,null,4):r(U,{skipInvalid:!0});return null!=i&&await e(i,J,"utf8"),J},src$3}var srcExports$2=requireSrc$3(),postmanToOpenAPI=getDefaultExportFromCjs(srcExports$2),utils$1,hasRequiredUtils$1,requestOptions,hasRequiredRequestOptions,request,hasRequiredRequest,http_1,hasRequiredHttp,https_1,hasRequiredHttps,lib$8,hasRequiredLib$7;function requireUtils$1(){if(hasRequiredUtils$1)return utils$1;hasRequiredUtils$1=1;class e extends TypeError{constructor(e,t,n){e.includes(".");determiner}}return utils$1={ERR_INVALID_ARG_TYPE:e,assertIsObject:function t(n,r,i="Object"){if(void 0!==n&&(null===n||"object"!=typeof n||Array.isArray(n))){const o=new e(r,i,n);throw Error.captureStackTrace(o,t),o}},DebounceTimers:class{constructor(e,t){this.cb=e,this.delay=t,this.timers={},this.pausers={}}setDelay(e){e>=0&&(this.delay=e)}pause(e){this.pausers[e]=this.pausers[e]||0,this.pausers[e]++}unpause(e){var t=this.pausers[e]||0;t>0&&t--,this.pausers[e]=t}unpauseAndTime(e){this.unpause(e),this.time(e)}time(e){var t=this,n=this.timers,r=this.timers[e];this.pausers[e]>0||(r&&clearTimeout(r),n[e]=setTimeout((function(){t.cb(e),delete n[e]}),t.delay))}}},utils$1}function requireRequestOptions(){if(hasRequiredRequestOptions)return requestOptions;hasRequiredRequestOptions=1;const{assertIsObject:e}=requireUtils$1();function t(t){return e(t,"options"),(t=Object.assign({},t)).allowHalfOpen=!0,t.rejectUnauthorized=!1,e(t.settings,"options.settings"),t.settings=Object.assign({},t.settings),t.Http1IncomingMessage=t.Http1IncomingMessage||this.http.IncomingMessage,t.Http1ServerResponse=t.Http1ServerResponse||this.http.ServerResponse,t.Http2ServerRequest=t.Http2ServerRequest||(this.http2||{}).Http2ServerRequest,t.Http2ServerResponse=t.Http2ServerResponse||(this.http2||{}).Http2ServerResponse,t}return requestOptions={initializeTLSOptions:function(e,n){var r=(e=t.call(this,e)).ALPNProtocols=[];return this.http2Support&&r.push("h2"),1!=e.allowHTTP1&&this.http2Support||r.push("http/1.1"),void 0!==n&&void 0===e.servername&&(e.servername=n),e}},requestOptions}function requireRequest(){if(hasRequiredRequest)return request;hasRequiredRequest=1;const{URL:e}=require$$0$k,{EventEmitter:t}=require$$0$c,n=require$$0__default._extend,{DebounceTimers:r,assertIsObject:i,ERR_INVALID_ARG_TYPE:o}=requireUtils$1(),{initializeTLSOptions:s}=requireRequestOptions(),a=require$$2$1,c=require$$1$4,{Stream:l}=require$$0$b;function u(e,t){const n=t.prototype;Object.keys(n).forEach((t=>{-1==e.indexOf(t)&&0!=t.indexOf("_")&&"function"==typeof n[t]&&e.push(t)}))}const d=[];u(d,a.ClientRequest),u(d,a.OutgoingMessage),u(d,t),u(d,l);const p=["httpVersionMajor","httpVersionMinor","httpVersion"],f=["host","connection"],_=Symbol("stubs");function m(){this.http2Mimic=!0,this[_]=[];for(var t=0;t<d.length;t++){let e=d[t];m.prototype[e]||(this[e]=function(){return this.genericStubber(e,arguments)}.bind(this))}var r,i,o,s;const a=arguments[0]instanceof A;var c,l;if(a){const e=arguments[0];e.method&&(c=e.method),e.protocol&&(l=e.protocol)}if(null!=(s=a?arguments[0].args:arguments)[2]?(o=s[0],r=s[1],i=s[2]):null==s[1]?r=s[0]:(r=s[0],i=s[1]),i=i||function(){},"string"==typeof r){if(!(r=g(new e(r))).hostname)throw new Error("Unable to determine the domain name")}else r=n(o?g(new e(o)):{},r);l!=l&&(r.protocol=l),"https:"!=r.protocol||r.port||0==r.port||(r.port=443),r.port||0==r.port||(r.port=80),c?r.method=c:r.method||(r.method="GET"),r.method=r.method.toUpperCase();(r.requestManager||this.getGlobalManager(r)).handleClientRequest(this,r,i)}m.prototype={getGlobalManager:e=>e.agent?"https:"==e.agent.protocol?y.globalManager:b.globalManager:h.globalManager,genericStubber(e,t){return this[_]?(this[_].push([e,t]),!0):this[e](...arguments)},on(e,t){"response"==e&&(t.http2Safe||(arguments[0]=e="http1.response")),this._on?this._on(...arguments):this.genericStubber("on",arguments)},once(e,t){"response"==e&&(t.http2Safe||(e="http1.response")),this._once?this._once(...arguments):this.genericStubber("once",arguments)},emitError(e){if(!this[_])return this.emit("error",e);this[_].forEach((([t,n])=>{"on"!==t&&"once"!==t||"error"!==n[0]||n[1](e)}))},take(e){for(var t=0;t<d.length;t++){let n=d[t];e[n]&&(this[n]=e[n].bind(e))}this._on=e.on.bind(e),this._once=e.once.bind(e),this.proxyProps(e);for(let t=0;t<this[_].length;t++){var n=this[_][t];e[n[0]](...n[1])}this[_]=null},proxyProps(e){function t(){return e[this]}function n(t){e[this]=t}const r=["on","_on","_once","once","http2Mimic"].concat(d),i=Object.keys(this),o=[].concat(p);i.forEach((function(e){-1==r.indexOf(e)&&-1==o.indexOf(e)&&o.push(e)}));const s=Object.getOwnPropertyDescriptors(e);for(var a=0;a<o.length;a++){let r=o[a];const i=s[r];let c;i||(c=!0),i&&(i.writable||i)&&(c=!0),c&&(e[r]=this[r]),Object.defineProperty(this,r,{get:t.bind(r),set:n.bind(r)})}}};class h extends t{constructor(e){super(),this.httpsAgent=c.globalAgent,this.httpAgent=a.globalAgent,this.init(e)}log(){}init(e){e=e||{},this.http2Clients={},this.cachedHTTP1Result={},this.setModules(),this.http2Debouncer=new r(function(e){this.log("stopping ",e);var t=this.http2Clients[e];t&&this.removeHttp2Client(e,t)}.bind(this),1e3),this.keepH1IdentificationCacheFor=e.keepH1IdentificationCacheFor||3e4,this.http2Debouncer.setDelay(e.keepH2ConnectionFor),e.useHttp?this.enforceProtocol="http:":e.useHttps&&(this.enforceProtocol="https:")}setModules(){this.http=require$$2$1,this.https=require$$1$4,this.tls=require$$1$3,this.net=require$$0$g,this.http2Support=!1;try{this.http2=require("http2"),this.http2Support=!0}catch(e){}}handleClientRequest(e,t,n){const r=this,i=r.getClientKey(t);if(r.hasCachedConnection(i)){const o=r.getHttp2Client(i),s={createConnection:()=>o};process.nextTick(function(){r.makeRequest(e,i,t,n,s)}.bind(r))}else r.holdConnectionToIdentification(i,t,function(o,s){o?e.emitError(o):r.makeRequest(e,i,t,n,s)}.bind(r))}getClientKey(e){return`${e.protocol||this.enforceProtocol}${e.servername||e.host||e.hostname}:${e.port}`}getHttp2Client(e){return this.http2Clients[e]}setHttp2Client(e,t){const n=this,r=n.http2Clients[e];function i(){n.removeHttp2Client(e,t)}r&&n.removeHttp2Client(e,r),n.http2Clients[e]=t,t.on("close",i),t.on("goaway",i),t.on("error",i),t.on("frameError",i),t.on("timeout",i)}removeHttp2Client(e,t){try{delete this.http2Clients[e],t.closed||t.close()}catch(e){}t.removeAllListeners("close"),t.removeAllListeners("error"),t.removeAllListeners("frameError"),t.removeAllListeners("timeout")}request(e,t,n){var r=new A(arguments);return this.enforceProtocol&&(r.protocol=this.enforceProtocol),new m(r)}get(){var e=new A(arguments);e.method="GET";var t=this.request(e);return t.end(),t}hasCachedConnection(e){return!!this.getHttp2Client(e)||this.cachedHTTP1Result[e]+this.keepH1IdentificationCacheFor<Date.now()}makeRequest(e,t,n,r,i){const o=this.getHttp2Client(t);return o?this.makeHttp2Request(t,e,o,Object.assign(i||{},n),r):(n.agent||("https:"==n.protocol?n.agent=this.httpsAgent:n.agent=this.httpAgent),this.makeHttpRequest(t,e,n,r,i))}holdConnectionToIdentification(e,t,n){const r=`identify-${e}`;if(this._events[r])this.once(r,n);else{this.once(r,(function(){}));const i=this.identifyConnection(t,function(o,s){if(o)return n(o);var a={createConnection:()=>i};if("h2"==s&&this.http2Support){var c=this.http2.connect(t,a);this.setHttp2Client(e,c)}else this.cachedHTTP1Result[e]=Date.now();n(null,a),this.emit(r,a)}.bind(this))}}makeHttpRequest(t,r,i,o,s){i instanceof e&&(i=g(i));const a=n({},i);s&&(a.createConnection=s.createConnection);const c=("https:"==a.protocol?this.https:this.http).request(a,o);r.take(c),r._on("response",(function(e){this.emit("http1.response",e)}))}makeHttp2Request(e,t,r,i,o){var s=this.http2Debouncer;s.pause(e);var a=n({},i.headers||{});i.method&&(a[":method"]=i.method),i.path&&(a[":path"]=i.path),Object.keys(a).forEach((e=>{-1!=f.indexOf((e+"").toLowerCase())&&delete a[e]})),i.headers=a;var c=r.request(a);let l;t.emit("socket",i.createConnection());let u=0;function d(n){l=parseInt(n["content-length"]),l<0&&this.http2Debouncer.unpauseAndTime(e),h.httpCompatibleResponse(c,i,n),t.emit("http1.response",c),o&&o(c)}c.on("data",(function(t){u+=t.length,u>=l&&s.unpauseAndTime(e)})),t.take(c),d.http2Safe=!0,c.once("response",d.bind(this))}static httpCompatibleResponse(e,t,n){e.httpVersion="2.0",e.rawHeaders=n,e.headers=n,e.statusCode=n[":status"],delete n[":status"]}identifyConnection(e,t){var n=this.connect(e,{allowHTTP1:!0},(function(){n.removeListener("error",t),"h2"==n.alpnProtocol?t(null,"h2"):(n.end(),t(null,"h1"))}));return n.on("error",t),n}connect(t,n,r){"function"==typeof n&&(r=n,n=void 0),i(n,"options"),n=Object.assign({},n),"string"==typeof t&&(t=new e(t)),i(t,"authority",["string","Object","URL"]);var o,a=t.protocol||n.protocol||("detect"!=this.enforceProtocol?this.enforceProtocol:null)||"http:",c=""+(""!==t.port?t.port:"http:"===t.protocol?80:443),l=t.hostname||t.host||"localhost";if("function"==typeof n.createConnection)o=n.createConnection(t,n);else switch(a){case"http:":o=this.net.connect(c,l,r);break;case"https:":o=this.tls.connect(c,l,s.call(this,n,l),r);break;default:throw new Error("Not supprted"+a)}return o}}function g(e){var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return""!==e.port&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t}class A{constructor(e){if(e[0]instanceof A)return e[0];this.args=e,this.method=null,this.protocol=null}}class y extends h{constructor(){super(...arguments),this.Agent=c.Agent,this.globalAgent=c.globalAgent,this.enforceProtocol="https:"}}const v=new y;y.globalManager=v,y.Manager=y;class b extends h{constructor(){super(...arguments),this.Agent=a.Agent,this.globalAgent=a.globalAgent,this.enforceProtocol="http:"}}const C=new b;b.globalManager=C,b.Manager=b;const E=new h;return E.enforceProtocol="detect",h.globalManager=E,request={HttpRequest:b,HttpsRequest:y,HTTP2OutgoingMessage:m,ClientRequest:m,HttpRequestManager:h}}function requireHttp(){if(hasRequiredHttp)return http_1;hasRequiredHttp=1;const{HttpRequest:e,ClientRequest:t}=requireRequest(),n=e.globalManager,r=n.request.bind(n),i=n.get.bind(n),o=Object.assign({},require$$2$1);return http_1=Object.assign(o,{ClientRequest:t,globalManager:n,request:r,get:i})}function requireHttps(){if(hasRequiredHttps)return https_1;hasRequiredHttps=1;const{HttpsRequest:e,ClientRequest:t}=requireRequest(),n=e.globalManager,r=n.request.bind(n),i=n.get.bind(n),o=Object.assign({},require$$1$4);return https_1=Object.assign(o,{ClientRequest:t,globalManager:n,request:r,get:i})}function requireLib$7(){if(hasRequiredLib$7)return lib$8;hasRequiredLib$7=1;const{HttpRequestManager:e,HTTP2OutgoingMessage:t,ClientRequest:n}=requireRequest(),r=requireHttp(),i=requireHttps(),o=new e;e.globalManager=o;const s=o.request.bind(o),a=o.get.bind(o);return lib$8={HTTP2OutgoingMessage:t,ClientRequest:n,globalManager:e.globalManager,request:s,get:a,http:r,https:i}}var libExports$1=requireLib$7(),h2=getDefaultExportFromCjs(libExports$1);const BUFFER=Symbol("buffer"),TYPE=Symbol("type");let Blob$1=class e{constructor(){this[TYPE]="";const t=arguments[0],n=arguments[1],r=[];if(t){const n=t,i=Number(n.length);for(let t=0;t<i;t++){const i=n[t];let o;o=i instanceof Buffer?i:ArrayBuffer.isView(i)?Buffer.from(i.buffer,i.byteOffset,i.byteLength):i instanceof ArrayBuffer?Buffer.from(i):i instanceof e?i[BUFFER]:Buffer.from("string"==typeof i?i:String(i)),r.push(o)}}this[BUFFER]=Buffer.concat(r);let i=n&&void 0!==n.type&&String(n.type).toLowerCase();i&&!/[^\u0020-\u007E]/.test(i)&&(this[TYPE]=i)}get size(){return this[BUFFER].length}get type(){return this[TYPE]}slice(){const t=this.size,n=arguments[0],r=arguments[1];let i,o;i=void 0===n?0:n<0?Math.max(t+n,0):Math.min(n,t),o=void 0===r?t:r<0?Math.max(t+r,0):Math.min(r,t);const s=Math.max(o-i,0),a=this[BUFFER].slice(i,i+s),c=new e([],{type:arguments[2]});return c[BUFFER]=a,c}},convert;function FetchError(e,t,n){Error.call(this,e),this.message=e,this.type=t,n&&(this.code=this.errno=n.code),Error.captureStackTrace(this,this.constructor)}Object.defineProperties(Blob$1.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(Blob$1.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),FetchError.prototype=Object.create(Error.prototype),FetchError.prototype.constructor=FetchError,FetchError.prototype.name="FetchError";try{convert=require("encoding").convert}catch(e){}const INTERNALS=Symbol("Body internals"),PassThrough=require$$0$b.PassThrough;function Body(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.size;let i=void 0===r?0:r;var o=n.timeout;let s=void 0===o?0:o;null==e?e=null:isURLSearchParams(e)?e=Buffer.from(e.toString()):e instanceof Blob$1?e=e[BUFFER]:Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof require$$0$b||(e=Buffer.from(String(e)))),this[INTERNALS]={body:e,disturbed:!1,error:null},this.size=i,this.timeout=s,e instanceof require$$0$b&&e.on("error",(function(e){const n="AbortError"===e.name?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[INTERNALS].error=n}))}function consumeBody(){var e=this;if(this[INTERNALS].disturbed)return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[INTERNALS].disturbed=!0,this[INTERNALS].error)return Body.Promise.reject(this[INTERNALS].error);if(null===this.body)return Body.Promise.resolve(Buffer.alloc(0));if(Buffer.isBuffer(this.body))return Body.Promise.resolve(this.body);if(!(this.body instanceof require$$0$b))return Body.Promise.resolve(Buffer.alloc(0));let t=[],n=0,r=!1;return new Body.Promise((function(i,o){let s;e.timeout&&(s=setTimeout((function(){r=!0,o(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),e.body.on("error",(function(t){"AbortError"===t.name?(r=!0,o(t)):o(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))})),e.body.on("data",(function(i){if(!r&&null!==i){if(e.size&&n+i.length>e.size)return r=!0,void o(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));n+=i.length,t.push(i)}})),e.body.on("end",(function(){if(!r){clearTimeout(s);try{i(Buffer.concat(t))}catch(t){o(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}}))}))}function convertBody(e,t){if("function"!=typeof convert)throw new Error("The package `encoding` must be installed to use the textConverted() function");const n=t.get("content-type");let r,i,o="utf-8";return n&&(r=/charset=([^;]*)/i.exec(n)),i=e.slice(0,1024).toString(),!r&&i&&(r=/<meta.+?charset=(['"])(.+?)\1/i.exec(i)),!r&&i&&(r=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(i),r&&(r=/charset=(.*)/i.exec(r.pop()))),!r&&i&&(r=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(i)),r&&(o=r.pop(),"gb2312"!==o&&"gbk"!==o||(o="gb18030")),convert(e,"UTF-8",o).toString()}function isURLSearchParams(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function clone(e){let t,n,r=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return r instanceof require$$0$b&&"function"!=typeof r.getBoundary&&(t=new PassThrough,n=new PassThrough,r.pipe(t),r.pipe(n),e[INTERNALS].body=t,r=n),r}function extractContentType(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":isURLSearchParams(e)?"application/x-www-form-urlencoded;charset=UTF-8":e instanceof Blob$1?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof require$$0$b?null:"text/plain;charset=UTF-8"}function getTotalBytes(e){const t=e.body;return null===t?0:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}function writeToStream(e,t){const n=t.body;null===n?e.end():Buffer.isBuffer(n)?(e.write(n),e.end()):n.pipe(e)}Body.prototype={get body(){return this[INTERNALS].body},get bodyUsed(){return this[INTERNALS].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(t){return Object.assign(new Blob$1([],{type:e.toLowerCase()}),{[BUFFER]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}},Object.defineProperties(Body.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype))if(!(t in e)){const n=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,n)}},Body.Promise=global.Promise;const invalidTokenRegex=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,invalidHeaderCharRegex=/[^\t\x20-\x7e\x80-\xff]/;function validateName(e){if(e=`${e}`,invalidTokenRegex.test(e))throw new TypeError(`${e} is not a legal HTTP header name`)}function validateValue(e){if(e=`${e}`,invalidHeaderCharRegex.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function find(e,t){t=t.toLowerCase();for(const n in e)if(n.toLowerCase()===t)return n}const MAP=Symbol("map");let Headers$1=class e{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[MAP]=Object.create(null),t instanceof e){const e=t.raw(),n=Object.keys(e);for(const t of n)for(const n of e[t])this.append(t,n)}else if(null==t);else{if("object"!=typeof t)throw new TypeError("Provided initializer must be an object");{const e=t[Symbol.iterator];if(null!=e){if("function"!=typeof e)throw new TypeError("Header pairs must be iterable");const n=[];for(const e of t){if("object"!=typeof e||"function"!=typeof e[Symbol.iterator])throw new TypeError("Each header pair must be iterable");n.push(Array.from(e))}for(const e of n){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const e of Object.keys(t)){const n=t[e];this.append(e,n)}}}}get(e){validateName(e=`${e}`);const t=find(this[MAP],e);return void 0===t?null:this[MAP][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=getHeaders(this),r=0;for(;r<n.length;){var i=n[r];const o=i[0],s=i[1];e.call(t,s,o,this),n=getHeaders(this),r++}}set(e,t){t=`${t}`,validateName(e=`${e}`),validateValue(t);const n=find(this[MAP],e);this[MAP][void 0!==n?n:e]=[t]}append(e,t){t=`${t}`,validateName(e=`${e}`),validateValue(t);const n=find(this[MAP],e);void 0!==n?this[MAP][n].push(t):this[MAP][e]=[t]}has(e){return validateName(e=`${e}`),void 0!==find(this[MAP],e)}delete(e){validateName(e=`${e}`);const t=find(this[MAP],e);void 0!==t&&delete this[MAP][t]}raw(){return this[MAP]}keys(){return createHeadersIterator(this,"key")}values(){return createHeadersIterator(this,"value")}[Symbol.iterator](){return createHeadersIterator(this,"key+value")}};function getHeaders(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[MAP]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[MAP][t].join(", ")}:function(t){return[t.toLowerCase(),e[MAP][t].join(", ")]})}Headers$1.prototype.entries=Headers$1.prototype[Symbol.iterator],Object.defineProperty(Headers$1.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Headers$1.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const INTERNAL=Symbol("internal");function createHeadersIterator(e,t){const n=Object.create(HeadersIteratorPrototype);return n[INTERNAL]={target:e,kind:t,index:0},n}const HeadersIteratorPrototype=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==HeadersIteratorPrototype)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[INTERNAL];const t=e.target,n=e.kind,r=e.index,i=getHeaders(t,n);return r>=i.length?{value:void 0,done:!0}:(this[INTERNAL].index=r+1,{value:i[r],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[MAP]),n=find(e[MAP],"Host");return void 0!==n&&(t[n]=t[n][0]),t}function createHeadersLenient(e){const t=new Headers$1;for(const n of Object.keys(e))if(!invalidTokenRegex.test(n))if(Array.isArray(e[n]))for(const r of e[n])invalidHeaderCharRegex.test(r)||(void 0===t[MAP][n]?t[MAP][n]=[r]:t[MAP][n].push(r));else invalidHeaderCharRegex.test(e[n])||(t[MAP][n]=[e[n]]);return t}Object.defineProperty(HeadersIteratorPrototype,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const INTERNALS$1=Symbol("Response internals"),STATUS_CODES=require$$2$1.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Body.call(this,e,t);const n=t.status||200,r=new Headers$1(t.headers);if(null!=e&&!r.has("Content-Type")){const t=extractContentType(e);t&&r.append("Content-Type",t)}this[INTERNALS$1]={url:t.url,status:n,statusText:t.statusText||STATUS_CODES[n],headers:r}}get url(){return this[INTERNALS$1].url}get status(){return this[INTERNALS$1].status}get ok(){return this[INTERNALS$1].status>=200&&this[INTERNALS$1].status<300}get statusText(){return this[INTERNALS$1].statusText}get headers(){return this[INTERNALS$1].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok})}}Body.mixIn(Response.prototype),Object.defineProperties(Response.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const INTERNALS$2=Symbol("Request internals"),parse_url=require$$0$k.parse,format_url=require$$0$k.format,streamDestructionSupported="destroy"in require$$0$b.Readable.prototype;function isRequest(e){return"object"==typeof e&&"object"==typeof e[INTERNALS$2]}function isAbortSignal(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}class Request{constructor(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};isRequest(e)?t=parse_url(e.url):(t=e&&e.href?parse_url(e.href):parse_url(`${e}`),e={});let r=n.method||e.method||"GET";if(r=r.toUpperCase(),(null!=n.body||isRequest(e)&&null!==e.body)&&("GET"===r||"HEAD"===r))throw new TypeError("Request with GET/HEAD method cannot have body");let i=null!=n.body?n.body:isRequest(e)&&null!==e.body?clone(e):null;Body.call(this,i,{timeout:n.timeout||e.timeout||0,size:n.size||e.size||0});const o=new Headers$1(n.headers||e.headers||{});if(null!=i&&!o.has("Content-Type")){const e=extractContentType(i);e&&o.append("Content-Type",e)}let s=isRequest(e)?e.signal:null;if("signal"in n&&(s=n.signal),null!=s&&!isAbortSignal(s))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[INTERNALS$2]={method:r,redirect:n.redirect||e.redirect||"follow",headers:o,parsedURL:t,signal:s},this.follow=void 0!==n.follow?n.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==n.compress?n.compress:void 0===e.compress||e.compress,this.counter=n.counter||e.counter||0,this.agent=n.agent||e.agent}get method(){return this[INTERNALS$2].method}get url(){return format_url(this[INTERNALS$2].parsedURL)}get headers(){return this[INTERNALS$2].headers}get redirect(){return this[INTERNALS$2].redirect}get signal(){return this[INTERNALS$2].signal}clone(){return new Request(this)}}function getNodeRequestOptions(e){const t=e[INTERNALS$2].parsedURL,n=new Headers$1(e[INTERNALS$2].headers);if(n.has("Accept")||n.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof require$$0$b.Readable&&!streamDestructionSupported)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let r=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(r="0"),null!=e.body){const t=getTotalBytes(e);"number"==typeof t&&(r=String(t))}return r&&n.set("Content-Length",r),n.has("User-Agent")||n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip,deflate"),n.has("Connection")||e.agent||n.set("Connection","close"),Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(n),agent:e.agent})}function AbortError(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}Body.mixIn(Request.prototype),Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Request.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),AbortError.prototype=Object.create(Error.prototype),AbortError.prototype.constructor=AbortError,AbortError.prototype.name="AbortError";const PassThrough$1=require$$0$b.PassThrough,resolve_url=require$$0$k.resolve;function fetch$1(e,t){if(!fetch$1.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Body.Promise=fetch$1.Promise,new fetch$1.Promise((function(n,r){const i=new Request(e,t),o=getNodeRequestOptions(i),s=h2.request,a=i.signal;let c=null;const l=function(){let e=new AbortError("The user aborted a request.");r(e),i.body&&i.body instanceof require$$0$b.Readable&&i.body.destroy(e),c&&c.body&&c.body.emit("error",e)};if(a&&a.aborted)return void l();const u=function(){l(),f()},d=s(o);let p;function f(){d.abort(),a&&a.removeEventListener("abort",u),clearTimeout(p)}a&&a.addEventListener("abort",u),i.timeout&&d.once("socket",(function(e){p=setTimeout((function(){r(new FetchError(`network timeout at: ${i.url}`,"request-timeout")),f()}),i.timeout)})),d.on("error",(function(e){r(new FetchError(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),f()})),d.on("response",(function(e){clearTimeout(p);const t=createHeadersLenient(e.headers);if(fetch$1.isRedirect(e.statusCode)){const o=t.get("Location"),s=null===o?null:resolve_url(i.url,o);switch(i.redirect){case"error":return r(new FetchError(`redirect mode is set to error: ${i.url}`,"no-redirect")),void f();case"manual":if(null!==s)try{t.set("Location",s)}catch(e){r(e)}break;case"follow":if(null===s)break;if(i.counter>=i.follow)return r(new FetchError(`maximum redirect reached at: ${i.url}`,"max-redirect")),void f();const o={headers:new Headers$1(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal};return 303!==e.statusCode&&i.body&&null===getTotalBytes(i)?(r(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(o.method="GET",o.body=void 0,o.headers.delete("content-length")),n(fetch$1(new Request(s,o))),void f())}}e.once("end",(function(){a&&a.removeEventListener("abort",u)}));let o=e.pipe(new PassThrough$1);const s={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:i.size,timeout:i.timeout},l=t.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===l||204===e.statusCode||304===e.statusCode)return c=new Response(o,s),void n(c);const d={flush:zlib.Z_SYNC_FLUSH,finishFlush:zlib.Z_SYNC_FLUSH};if("gzip"==l||"x-gzip"==l)return o=o.pipe(zlib.createGunzip(d)),c=new Response(o,s),void n(c);if("deflate"!=l&&"x-deflate"!=l)c=new Response(o,s),n(c);else{e.pipe(new PassThrough$1).once("data",(function(e){o=8==(15&e[0])?o.pipe(zlib.createInflate()):o.pipe(zlib.createInflateRaw()),c=new Response(o,s),n(c)}))}})),writeToStream(d,i)}))}fetch$1.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},fetch$1.Promise=global.Promise;var lib$7=Object.freeze({__proto__:null,FetchError:FetchError,Headers:Headers$1,Request:Request,Response:Response,default:fetch$1}),require$$4=getAugmentedNamespace(lib$7),dist$1={},parseCst={},PlainValueEc8e588e={},hasRequiredPlainValueEc8e588e,hasRequiredParseCst;function requirePlainValueEc8e588e(){if(hasRequiredPlainValueEc8e588e)return PlainValueEc8e588e;hasRequiredPlainValueEc8e588e=1;const e={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},t={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function n(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function r(e){let t,r;return"string"==typeof e?(t=n(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=n(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function i(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:i}=r(t);if(!n||!i||e>i.length)return null;for(let t=0;t<n.length;++t){const r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}const o=n.length;return{line:o,col:e-n[o-1]+1}}function o({start:e,end:t},n,i=80){let o=function(e,t){const{lineStarts:n,src:i}=r(t);if(!n||!(e>=1)||e>n.length)return null;const o=n[e-1];let s=n[e];for(;s&&s>o&&"\n"===i[s-1];)--s;return i.slice(o,s)}(e.line,n);if(!o)return null;let{col:s}=e;if(o.length>i)if(s<=i-10)o=o.substr(0,i-1)+"โ€ฆ";else{const e=Math.round(i/2);o.length>s+e&&(o=o.substr(0,s+e-1)+"โ€ฆ"),s-=o.length-i,o="โ€ฆ"+o.substr(1-i)}let a=1,c="";t&&(t.line===e.line&&s+(t.col-e.col)<=i+1?a=t.col-e.col:(a=Math.min(o.length+1,i)-s,c="โ€ฆ"));return`${o}\n${s>1?" ".repeat(s-1):""}${"^".repeat(a)}${c}`}class s{static copy(e){return new s(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let i=t;for(;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;const o=i;for(;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,o}}class a{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=a.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(t,n,r){const i=t[n];if(!i)return!0;const o=t[n-1];if(o&&"\n"!==o)return!1;if(r){if(i!==r)return!1}else if(i!==e.DIRECTIVES_END&&i!==e.DOCUMENT_END)return!1;const s=t[n+1],a=t[n+2];if(s!==i||a!==i)return!1;const c=t[n+3];return!c||"\n"===c||"\t"===c||" "===c}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=a.endOfIndent(e,n);if(r>n+t)return r;{const t=a.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:a.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,i=!1,o="",s=e[t+1];for(;" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":r=0,t+=1,o+="\n";break;case"\t":r<=n&&(i=!0),t=a.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}s=e[t+1]}return o||(o=" "),s&&r<=n&&(i=!0),{fold:o,offset:t,error:i}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}get anchor(){for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,e.ANCHOR,!0);if(null!=n)return n}return null}get comment(){const t=[];for(let n=0;n<this.props.length;++n){const r=this.getPropValue(n,e.COMMENT,!0);null!=r&&t.push(r)}return t.length>0?t.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||a.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:t}=this.context;for(let n=0;n<this.props.length;++n)if(t[this.props[n].start]===e.COMMENT)return!0}return!1}get hasProps(){if(this.context){const{src:t}=this.context;for(let n=0;n<this.props.length;++n)if(t[this.props[n].start]!==e.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[t.FLOW_MAP,t.FLOW_SEQ,t.QUOTE_DOUBLE,t.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;const e=i(this.range.start,this.context.root);if(!e)return;return{start:e,end:i(this.range.end,this.context.root)}}get rawValue(){if(!this.valueRange||!this.context)return null;const{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,e.TAG,!1);if(null!=n){if("<"===n[1])return{verbatim:n.slice(2,-1)};{const[e,t,r]=n.match(/^(.*!)([^!]*)$/);return{handle:t,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;const{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if("\n"===n[r])return!0;return!1}parseComment(t){const{src:n}=this.context;if(n[t]===e.COMMENT){const e=a.endOfLine(n,t+1),r=new s(t,e);return this.props.push(r),e}return t}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((n=>n.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return a.addStringTerminator(e,t.end,r)}}class c extends Error{constructor(e,t,n){if(!(n&&t instanceof a))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new s(this.offset,this.offset+1);const t=e&&i(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const r=e&&o(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}}class l extends c{constructor(e,t){super("YAMLSemanticError",e,t)}}class u extends a{static endOfLine(e,t,n){let r=e[t],i=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[i+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;i+=1,r=t}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let r=n[t-1];for(;e<t&&("\n"===r||"\t"===r||" "===r);)r=n[--t-1];let i="";for(let r=e;r<t;++r){const e=n[r];if("\n"===e){const{fold:e,offset:t}=a.foldNewline(n,r,-1);i+=e,r=t}else if(" "===e||"\t"===e){const o=r;let s=n[r+1];for(;r<t&&(" "===s||"\t"===s);)r+=1,s=n[r+1];"\n"!==s&&(i+=r>o?n.slice(o,r+1):e)}else i+=e}const o=n[e];switch(o){case"\t":return{errors:[new l(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":return{errors:[new l(this,`Plain value cannot start with reserved character ${o}`)],str:i};default:return i}}parseBlockValue(e){const{indent:t,inFlow:n,src:r}=this.context;let i=e,o=e;for(let e=r[i];"\n"===e&&!a.atDocumentBoundary(r,i+1);e=r[i]){const e=a.endOfBlockIndent(r,t,i+1);if(null===e||"#"===r[e])break;"\n"===r[e]?i=e:(o=u.endOfLine(r,e,n),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,t){this.context=e;const{inFlow:n,src:r}=e;let i=t;const o=r[i];return o&&"#"!==o&&"\n"!==o&&(i=u.endOfLine(r,t,n)),this.valueRange=new s(t,i),i=a.endOfWhiteSpace(r,i),i=this.parseComment(i),this.hasComment&&!this.valueRange.isEmpty()||(i=this.parseBlockValue(i)),i}}return PlainValueEc8e588e.Char=e,PlainValueEc8e588e.Node=a,PlainValueEc8e588e.PlainValue=u,PlainValueEc8e588e.Range=s,PlainValueEc8e588e.Type=t,PlainValueEc8e588e.YAMLError=c,PlainValueEc8e588e.YAMLReferenceError=class extends c{constructor(e,t){super("YAMLReferenceError",e,t)}},PlainValueEc8e588e.YAMLSemanticError=l,PlainValueEc8e588e.YAMLSyntaxError=class extends c{constructor(e,t){super("YAMLSyntaxError",e,t)}},PlainValueEc8e588e.YAMLWarning=class extends c{constructor(e,t){super("YAMLWarning",e,t)}},PlainValueEc8e588e._defineProperty=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},PlainValueEc8e588e.defaultTagPrefix="tag:yaml.org,2002:",PlainValueEc8e588e.defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"},PlainValueEc8e588e}function requireParseCst(){if(hasRequiredParseCst)return parseCst;hasRequiredParseCst=1;var e=requirePlainValueEc8e588e();class t extends e.Node{constructor(){super(e.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(t,n){return this.context=t,this.range=new e.Range(n,n+1),n+1}}class n extends e.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(n,r){this.context=n;const{parseNode:i,src:o}=n;let{atLineStart:s,lineStart:a}=n;s||this.type!==e.Type.SEQ_ITEM||(this.error=new e.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const c=s?r-a:n.indent;let l=e.Node.endOfWhiteSpace(o,r+1),u=o[l];const d="#"===u,p=[];let f=null;for(;"\n"===u||"#"===u;){if("#"===u){const t=e.Node.endOfLine(o,l+1);p.push(new e.Range(l,t)),l=t}else{s=!0,a=l+1;"\n"===o[e.Node.endOfWhiteSpace(o,a)]&&0===p.length&&(f=new t,a=f.parse({src:o},a)),l=e.Node.endOfIndent(o,a)}u=o[l]}if(e.Node.nextNodeIsIndented(u,l-(a+c),this.type!==e.Type.SEQ_ITEM)?this.node=i({atLineStart:s,inCollection:!1,indent:c,lineStart:a,parent:this},l):u&&a>r+1&&(l=a-1),this.node){if(f){const e=n.parent.items||n.parent.contents;e&&e.push(f)}p.length&&Array.prototype.push.apply(this.props,p),l=this.node.range.end}else if(d){const e=p[0];this.props.push(e),l=e.end}else l=e.Node.endOfLine(o,r+1);const _=this.node?this.node.valueRange.end:l;return this.valueRange=new e.Range(r,_),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:t},node:n,range:r,value:i}=this;if(null!=i)return i;const o=n?t.slice(r.start,n.range.start)+String(n):t.slice(r.start,r.end);return e.Node.addStringTerminator(t,r.end,o)}}class r extends e.Node{constructor(){super(e.Type.COMMENT)}parse(t,n){this.context=t;const r=this.parseComment(n);return this.range=new e.Range(n,r),r}}function i(t){let r=t;for(;r instanceof n;)r=r.node;if(!(r instanceof o))return null;const i=r.items.length;let s=-1;for(let t=i-1;t>=0;--t){const n=r.items[t];if(n.type===e.Type.COMMENT){const{indent:e,lineStart:r}=n.context;if(e>0&&n.range.start>=r+e)break;s=t}else{if(n.type!==e.Type.BLANK_LINE)break;s=t}}if(-1===s)return null;const a=r.items.splice(s,i-s),c=a[0].range.start;for(;r.range.end=c,r.valueRange&&r.valueRange.end>c&&(r.valueRange.end=c),r!==t;)r=r.context.parent;return a}class o extends e.Node{static nextContentHasIndent(t,n,r){const i=e.Node.endOfLine(t,n)+1,s=t[n=e.Node.endOfWhiteSpace(t,i)];return!!s&&(n>=i+r||("#"===s||"\n"===s)&&o.nextContentHasIndent(t,n,r))}constructor(t){super(t.type===e.Type.SEQ_ITEM?e.Type.SEQ:e.Type.MAP);for(let e=t.props.length-1;e>=0;--e)if(t.props[e].start<t.context.lineStart){this.props=t.props.slice(0,e+1),t.props=t.props.slice(e+1);const n=t.props[0]||t.valueRange;t.range.start=n.start;break}this.items=[t];const n=i(t);n&&Array.prototype.push.apply(this.items,n)}get includesTrailingLines(){return this.items.length>0}parse(n,s){this.context=n;const{parseNode:a,src:c}=n;let l=e.Node.startOfLine(c,s);const u=this.items[0];u.context.parent=this,this.valueRange=e.Range.copy(u.valueRange);const d=u.range.start-u.context.lineStart;let p=s;p=e.Node.normalizeOffset(c,p);let f=c[p],_=e.Node.endOfWhiteSpace(c,l)===p,m=!1;for(;f;){for(;"\n"===f||"#"===f;){if(_&&"\n"===f&&!m){const e=new t;if(p=e.parse({src:c},p),this.valueRange.end=p,p>=c.length){f=null;break}this.items.push(e),p-=1}else if("#"===f){if(p<l+d&&!o.nextContentHasIndent(c,p,d))return p;const e=new r;if(p=e.parse({indent:d,lineStart:l,src:c},p),this.items.push(e),this.valueRange.end=p,p>=c.length){f=null;break}}if(l=p+1,p=e.Node.endOfIndent(c,l),e.Node.atBlank(c,p)){const t=e.Node.endOfWhiteSpace(c,p),n=c[t];n&&"\n"!==n&&"#"!==n||(p=t)}f=c[p],_=!0}if(!f)break;if(p!==l+d&&(_||":"!==f)){if(p<l+d){l>s&&(p=l);break}if(!this.error){const t="All collection items must start at the same column";this.error=new e.YAMLSyntaxError(this,t)}}if(u.type===e.Type.SEQ_ITEM){if("-"!==f){l>s&&(p=l);break}}else if("-"===f&&!this.error){const t=c[p+1];if(!t||"\n"===t||"\t"===t||" "===t){const t="A collection cannot be both a mapping and a sequence";this.error=new e.YAMLSyntaxError(this,t)}}const n=a({atLineStart:_,inCollection:!0,indent:d,lineStart:l,parent:this},p);if(!n)return p;if(this.items.push(n),this.valueRange.end=n.valueRange.end,p=e.Node.normalizeOffset(c,n.range.end),f=c[p],_=!1,m=n.includesTrailingLines,f){let e=p-1,t=c[e];for(;" "===t||"\t"===t;)t=c[--e];"\n"===t&&(l=e+1,_=!0)}const h=i(n);h&&Array.prototype.push.apply(this.items,h)}return p}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:t},items:n,range:r,value:i}=this;if(null!=i)return i;let o=t.slice(r.start,n[0].range.start)+String(n[0]);for(let e=1;e<n.length;++e){const t=n[e],{atLineStart:r,indent:i}=t.context;if(r)for(let e=0;e<i;++e)o+=" ";o+=String(t)}return e.Node.addStringTerminator(t,r.end,o)}}class s extends e.Node{constructor(){super(e.Type.DIRECTIVE),this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let n=e,r=t[n];for(;r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(t){const{src:n}=this.context;let r=t,i=n[r];for(;i&&"\n"!==i&&"#"!==i;)i=n[r+=1];return this.valueRange=new e.Range(t,r),r}parse(t,n){this.context=t;let r=this.parseName(n+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new e.Range(n,r),r}}class a extends e.Node{static startCommentOrEndBlankLine(t,n){const r=e.Node.endOfWhiteSpace(t,n),i=t[r];return"#"===i||"\n"===i?r:n}constructor(){super(e.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(n){const{src:i}=this.context;this.directives=[];let o=!0,c=!1,l=n;for(;!e.Node.atDocumentBoundary(i,l,e.Char.DIRECTIVES_END);)switch(l=a.startCommentOrEndBlankLine(i,l),i[l]){case"\n":if(o){const e=new t;l=e.parse({src:i},l),l<i.length&&this.directives.push(e)}else l+=1,o=!0;break;case"#":{const e=new r;l=e.parse({src:i},l),this.directives.push(e),o=!1}break;case"%":{const e=new s;l=e.parse({parent:this,src:i},l),this.directives.push(e),c=!0,o=!1}break;default:return c?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return i[l]?(this.directivesEndMarker=new e.Range(l,l+3),l+3):(c?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(n){const{parseNode:o,src:s}=this.context;this.contents||(this.contents=[]);let c=n;for(;"-"===s[c-1];)c-=1;let l=e.Node.endOfWhiteSpace(s,n),u=c===n;for(this.valueRange=new e.Range(l);!e.Node.atDocumentBoundary(s,l,e.Char.DOCUMENT_END);){switch(s[l]){case"\n":if(u){const e=new t;l=e.parse({src:s},l),l<s.length&&this.contents.push(e)}else l+=1,u=!0;c=l;break;case"#":{const e=new r;l=e.parse({src:s},l),this.contents.push(e),u=!1}break;default:{const t=e.Node.endOfIndent(s,l),n=o({atLineStart:u,indent:-1,inFlow:!1,inCollection:!1,lineStart:c,parent:this},t);if(!n)return this.valueRange.end=t;this.contents.push(n),l=n.range.end,u=!1;const r=i(n);r&&Array.prototype.push.apply(this.contents,r)}}l=a.startCommentOrEndBlankLine(s,l)}if(this.valueRange.end=l,s[l]&&(this.documentEndMarker=new e.Range(l,l+3),l+=3,s[l])){if(l=e.Node.endOfWhiteSpace(s,l),"#"===s[l]){const e=new r;l=e.parse({src:s},l),this.contents.push(e)}switch(s[l]){case"\n":l+=1;break;case void 0:break;default:this.error=new e.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return l}parse(e,t){e.root=this,this.context=e;const{src:n}=e;let r=65279===n.charCodeAt(t)?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach((n=>{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:t,directives:n,value:r}=this;if(null!=r)return r;let i=n.join("");return t.length>0&&((n.length>0||t[0].type===e.Type.COMMENT)&&(i+="---\n"),i+=t.join("")),"\n"!==i[i.length-1]&&(i+="\n"),i}}class c extends e.Node{parse(t,n){this.context=t;const{src:r}=t;let i=e.Node.endOfIdentifier(r,n+1);return this.valueRange=new e.Range(n+1,i),i=e.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}}const l="CLIP",u="KEEP",d="STRIP";class p extends e.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=l,this.header=null}get includesTrailingLines(){return this.chomping===u}get strValue(){if(!this.valueRange||!this.context)return null;let{start:t,end:n}=this.valueRange;const{indent:r,src:i}=this.context;if(this.valueRange.isEmpty())return"";let o=null,s=i[n-1];for(;"\n"===s||"\t"===s||" "===s;){if(n-=1,n<=t){if(this.chomping===u)break;return""}"\n"===s&&(o=n),s=i[n-1]}let a=n+1;o&&(this.chomping===u?(a=o,n=this.valueRange.end):n=o);const c=r+this.blockIndent,l=this.type===e.Type.BLOCK_FOLDED;let p=!0,f="",_="",m=!1;for(let r=t;r<n;++r){for(let e=0;e<c&&" "===i[r];++e)r+=1;const t=i[r];if("\n"===t)"\n"===_?f+="\n":_="\n";else{const o=e.Node.endOfLine(i,r),s=i.slice(r,o);r=o,l&&(" "===t||"\t"===t)&&r<a?(" "===_?_="\n":m||p||"\n"!==_||(_="\n\n"),f+=_+s,_=o<n&&i[o]||"",m=!0):(f+=_+s,_=l&&r<a?" ":"\n",m=!1),p&&""!==s&&(p=!1)}}return this.chomping===d?f:f+"\n"}parseBlockHeader(t){const{src:n}=this.context;let r=t+1,i="";for(;;){const o=n[r];switch(o){case"-":this.chomping=d;break;case"+":this.chomping=u;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":i+=o;break;default:return this.blockIndent=Number(i)||null,this.header=new e.Range(t,r),r}r+=1}}parseBlockValue(t){const{indent:n,src:r}=this.context,i=!!this.blockIndent;let o=t,s=t,a=1;for(let t=r[o];"\n"===t&&(o+=1,!e.Node.atDocumentBoundary(r,o));t=r[o]){const t=e.Node.endOfBlockIndent(r,n,o);if(null===t)break;const c=r[t],l=t-(o+n);if(this.blockIndent){if(c&&"\n"!==c&&l<this.blockIndent){if("#"===r[t])break;if(!this.error){const t=`Block scalars must not be less indented than their ${i?"explicit indentation indicator":"first line"}`;this.error=new e.YAMLSemanticError(this,t)}}}else if("\n"!==r[t]){if(l<a){const t="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new e.YAMLSemanticError(this,t)}this.blockIndent=l}else l>a&&(a=l);o="\n"===r[t]?t:s=e.Node.endOfLine(r,t)}return this.chomping!==u&&(o=r[s]?s+1:s),this.valueRange=new e.Range(t+1,o),o}parse(t,n){this.context=t;const{src:r}=t;let i=this.parseBlockHeader(n);return i=e.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i=this.parseBlockValue(i),i}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}class f extends e.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(t=this.items.length){const n=this.items[t-1];return!!n&&(n.jsonLike||n.type===e.Type.COMMENT&&this.prevNodeIsJsonLike(t-1))}parse(n,i){this.context=n;const{parseNode:o,src:s}=n;let{indent:a,lineStart:c}=n,l=s[i];this.items=[{char:l,offset:i}];let u=e.Node.endOfWhiteSpace(s,i+1);for(l=s[u];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":c=u+1;if("\n"===s[e.Node.endOfWhiteSpace(s,c)]){const e=new t;c=e.parse({src:s},c),this.items.push(e)}if(u=e.Node.endOfIndent(s,c),u<=c+a&&(l=s[u],u<c+a||"]"!==l&&"}"!==l)){const t="Insufficient indentation in flow collection";this.error=new e.YAMLSemanticError(this,t)}break;case",":this.items.push({char:l,offset:u}),u+=1;break;case"#":{const e=new r;u=e.parse({src:s},u),this.items.push(e)}break;case"?":case":":{const e=s[u+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===l&&this.prevNodeIsJsonLike()){this.items.push({char:l,offset:u}),u+=1;break}}default:{const t=o({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:c,parent:this},u);if(!t)return this.valueRange=new e.Range(i,u),u;this.items.push(t),u=e.Node.normalizeOffset(s,t.range.end)}}u=e.Node.endOfWhiteSpace(s,u),l=s[u]}return this.valueRange=new e.Range(i,u+1),l&&(this.items.push({char:l,offset:u}),u=e.Node.endOfWhiteSpace(s,u+1),u=this.parseComment(u)),u}setOrigRanges(t,n){return n=super.setOrigRanges(t,n),this.items.forEach((r=>{if(r instanceof e.Node)n=r.setOrigRanges(t,n);else if(0===t.length)r.origOffset=r.offset;else{let e=n;for(;e<t.length&&!(t[e]>r.offset);)++e;r.origOffset=r.offset+e,n=e}})),n}toString(){const{context:{src:t},items:n,range:r,value:i}=this;if(null!=i)return i;const o=n.filter((t=>t instanceof e.Node));let s="",a=r.start;return o.forEach((e=>{const n=t.slice(a,e.range.start);a=e.range.end,s+=n+String(e),"\n"===s[s.length-1]&&"\n"!==t[a-1]&&"\n"===t[a]&&(a+=1)})),s+=t.slice(a,r.end),e.Node.addStringTerminator(t,r.end,s)}}class _ extends e.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const t=[],{start:n,end:r}=this.valueRange,{indent:i,src:o}=this.context;'"'!==o[r-1]&&t.push(new e.YAMLSyntaxError(this,'Missing closing "quote'));let s="";for(let a=n+1;a<r-1;++a){const n=o[a];if("\n"===n){e.Node.atDocumentBoundary(o,a+1)&&t.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:n,offset:r,error:c}=e.Node.foldNewline(o,a,i);s+=n,a=r,c&&t.push(new e.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===n)switch(a+=1,o[a]){case"0":s+="\0";break;case"a":s+="";break;case"b":s+="\b";break;case"e":s+="";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":case"\t":s+="\t";break;case"v":s+="\v";break;case"N":s+="ย…";break;case"_":s+="ย ";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"x":s+=this.parseCharCode(a+1,2,t),a+=2;break;case"u":s+=this.parseCharCode(a+1,4,t),a+=4;break;case"U":s+=this.parseCharCode(a+1,8,t),a+=8;break;case"\n":for(;" "===o[a+1]||"\t"===o[a+1];)a+=1;break;default:t.push(new e.YAMLSyntaxError(this,`Invalid escape sequence ${o.substr(a-1,2)}`)),s+="\\"+o[a]}else if(" "===n||"\t"===n){const e=a;let t=o[a+1];for(;" "===t||"\t"===t;)a+=1,t=o[a+1];"\n"!==t&&(s+=a>e?o.slice(e,a+1):n)}else s+=n}return t.length>0?{errors:t,str:s}:s}parseCharCode(t,n,r){const{src:i}=this.context,o=i.substr(t,n),s=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(s)?(r.push(new e.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(t-2,n+2)}`)),i.substr(t-2,n+2)):String.fromCodePoint(s)}parse(t,n){this.context=t;const{src:r}=t;let i=_.endOfQuote(r,n+1);return this.valueRange=new e.Range(n,i),i=e.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}}class m extends e.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const t=[],{start:n,end:r}=this.valueRange,{indent:i,src:o}=this.context;"'"!==o[r-1]&&t.push(new e.YAMLSyntaxError(this,"Missing closing 'quote"));let s="";for(let a=n+1;a<r-1;++a){const n=o[a];if("\n"===n){e.Node.atDocumentBoundary(o,a+1)&&t.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:n,offset:r,error:c}=e.Node.foldNewline(o,a,i);s+=n,a=r,c&&t.push(new e.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===n)s+=n,a+=1,"'"!==o[a]&&t.push(new e.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===n||"\t"===n){const e=a;let t=o[a+1];for(;" "===t||"\t"===t;)a+=1,t=o[a+1];"\n"!==t&&(s+=a>e?o.slice(e,a+1):n)}else s+=n}return t.length>0?{errors:t,str:s}:s}parse(t,n){this.context=t;const{src:r}=t;let i=m.endOfQuote(r,n+1);return this.valueRange=new e.Range(n,i),i=e.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}}class h{static parseType(t,n,r){switch(t[n]){case"*":return e.Type.ALIAS;case">":return e.Type.BLOCK_FOLDED;case"|":return e.Type.BLOCK_LITERAL;case"{":return e.Type.FLOW_MAP;case"[":return e.Type.FLOW_SEQ;case"?":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.MAP_KEY:e.Type.PLAIN;case":":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.MAP_VALUE:e.Type.PLAIN;case"-":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.SEQ_ITEM:e.Type.PLAIN;case'"':return e.Type.QUOTE_DOUBLE;case"'":return e.Type.QUOTE_SINGLE;default:return e.Type.PLAIN}}constructor(t={},{atLineStart:r,inCollection:i,inFlow:s,indent:a,lineStart:l,parent:u}={}){e._defineProperty(this,"parseNode",((t,r)=>{if(e.Node.atDocumentBoundary(this.src,r))return null;const i=new h(this,t),{props:s,type:a,valueStart:l}=i.parseProps(r),u=function(t,r){switch(t){case e.Type.ALIAS:return new c(t,r);case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return new p(t,r);case e.Type.FLOW_MAP:case e.Type.FLOW_SEQ:return new f(t,r);case e.Type.MAP_KEY:case e.Type.MAP_VALUE:case e.Type.SEQ_ITEM:return new n(t,r);case e.Type.COMMENT:case e.Type.PLAIN:return new e.PlainValue(t,r);case e.Type.QUOTE_DOUBLE:return new _(t,r);case e.Type.QUOTE_SINGLE:return new m(t,r);default:return null}}(a,s);let d=u.parse(i,l);if(u.range=new e.Range(r,d),d<=r&&(u.error=new Error("Node#parse consumed no characters"),u.error.parseEnd=d,u.error.source=u,u.range.end=r+1),i.nodeStartsCollection(u)){u.error||i.atLineStart||i.parent.type!==e.Type.DOCUMENT||(u.error=new e.YAMLSyntaxError(u,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const t=new o(u);return d=t.parse(new h(i),d),t.range=new e.Range(r,d),t}return u})),this.atLineStart=null!=r?r:t.atLineStart||!1,this.inCollection=null!=i?i:t.inCollection||!1,this.inFlow=null!=s?s:t.inFlow||!1,this.indent=null!=a?a:t.indent,this.lineStart=null!=l?l:t.lineStart,this.parent=null!=u?u:t.parent||{},this.root=t.root,this.src=t.src}nodeStartsCollection(t){const{inCollection:r,inFlow:i,src:o}=this;if(r||i)return!1;if(t instanceof n)return!0;let s=t.range.end;return"\n"!==o[s]&&"\n"!==o[s-1]&&(s=e.Node.endOfWhiteSpace(o,s),":"===o[s])}parseProps(t){const{inFlow:n,parent:r,src:i}=this,o=[];let s=!1,a=i[t=this.atLineStart?e.Node.endOfIndent(i,t):e.Node.endOfWhiteSpace(i,t)];for(;a===e.Char.ANCHOR||a===e.Char.COMMENT||a===e.Char.TAG||"\n"===a;){if("\n"===a){let n,o=t;do{n=o+1,o=e.Node.endOfIndent(i,n)}while("\n"===i[o]);const a=o-(n+this.indent),c=r.type===e.Type.SEQ_ITEM&&r.context.atLineStart;if("#"!==i[o]&&!e.Node.nextNodeIsIndented(i[o],a,!c))break;this.atLineStart=!0,this.lineStart=n,s=!1,t=o}else if(a===e.Char.COMMENT){const n=e.Node.endOfLine(i,t+1);o.push(new e.Range(t,n)),t=n}else{let n=e.Node.endOfIdentifier(i,t+1);a===e.Char.TAG&&","===i[n]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(t+1,n+13))&&(n=e.Node.endOfIdentifier(i,n+5)),o.push(new e.Range(t,n)),s=!0,t=e.Node.endOfWhiteSpace(i,n)}a=i[t]}s&&":"===a&&e.Node.atBlank(i,t+1,!0)&&(t-=1);return{props:o,type:h.parseType(i,t,n),valueStart:t}}}return parseCst.parse=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const n=[];let r=0;do{const t=new a,i=new h({src:e});r=t.parse(i,r),n.push(t)}while(r<e.length);return n.setOrigRanges=()=>{if(0===t.length)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let r=0;r<n.length;++r)e=n[r].setOrigRanges(t,e);return t.splice(0,t.length),!0},n.toString=()=>n.join("...\n"),n},parseCst}var Document9b4560a1={},resolveSeqD03cb037={},hasRequiredResolveSeqD03cb037;function requireResolveSeqD03cb037(){if(hasRequiredResolveSeqD03cb037)return resolveSeqD03cb037;hasRequiredResolveSeqD03cb037=1;var e=requirePlainValueEc8e588e();function t(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}class n{}function r(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>r(e,String(t),n)));if(e&&"function"==typeof e.toJSON){const r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});const i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}class i extends n{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:r(this.value,e,t)}toString(){return String(this.value)}}function o(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else{const e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}const s=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;class a extends n{constructor(t){super(),e._defineProperty(this,"items",[]),this.schema=t}addIn(e,t){if(s(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(i instanceof a)i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,o(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof a)return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof i?r.value:r:r instanceof a?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;const t=e.value;return null==t||t instanceof i&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof a&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof a)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,o(this.schema,t,n))}}}toJSON(){return null}toString(n,{blockItem:r,flowChars:i,isMap:o,itemIndent:s},c,l){const{indent:u,indentStep:d,stringify:p}=n,f=this.type===e.Type.FLOW_MAP||this.type===e.Type.FLOW_SEQ||n.inFlow;f&&(s+=d);const _=o&&this.hasAllNullValues();n=Object.assign({},n,{allNullValues:_,indent:s,inFlow:f,type:null});let m=!1,h=!1;const g=this.items.reduce(((e,r,i)=>{let o;r&&(!m&&r.spaceBefore&&e.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((t=>{e.push({type:"comment",str:`#${t}`})})),r.comment&&(o=r.comment),f&&(!m&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(h=!0)),m=!1;let a=p(r,n,(()=>o=null),(()=>m=!0));return f&&!h&&a.includes("\n")&&(h=!0),f&&i<this.items.length-1&&(a+=","),a=t(a,s,o),m&&(o||f)&&(m=!1),e.push({type:"item",str:a}),e}),[]);let A;if(0===g.length)A=i.start+i.end;else if(f){const{start:e,end:t}=i,n=g.map((e=>e.str));if(h||n.reduce(((e,t)=>e+t.length+2),2)>a.maxFlowStringSingleLineLength){A=e;for(const e of n)A+=e?`\n${d}${u}${e}`:"\n";A+=`\n${u}${t}`}else A=`${e} ${n.join(" ")} ${t}`}else{const e=g.map(r);A=e.shift();for(const t of e)A+=t?`\n${u}${t}`:"\n"}return this.comment?(A+="\n"+this.comment.replace(/^/gm,`${u}#`),c&&c()):m&&l&&l(),A}}function c(e){let t=e instanceof i?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}e._defineProperty(a,"maxFlowStringSingleLineLength",60);class l extends a{add(e){this.items.push(e)}delete(e){const t=c(e);if("number"!=typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const n=c(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof i?r.value:r}has(e){const t=c(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=c(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);this.items[n]=t}toJSON(e,t){const n=[];t&&t.onCreate&&t.onCreate(n);let i=0;for(const e of this.items)n.push(r(e,String(i++),t));return n}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}class u extends n{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=u.Type.PAIR}get commentBefore(){return this.key instanceof n?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new i(null)),!(this.key instanceof n)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}addToJSMap(e,t){const i=r(this.key,"",e);if(t instanceof Map){const n=r(this.value,i,e);t.set(i,n)}else if(t instanceof Set)t.add(i);else{const o=((e,t,r)=>null===t?"":"object"!=typeof t?String(t):e instanceof n&&r&&r.doc?e.toString({anchors:Object.create(null),doc:r.doc,indent:"",indentStep:r.indentStep,inFlow:!0,inStringifyKey:!0,stringify:r.stringify}):JSON.stringify(t))(this.key,i,e),s=r(this.value,o,e);o in t?Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[o]=s}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(r,o,s){if(!r||!r.doc)return JSON.stringify(this);const{indent:c,indentSeq:u,simpleKeys:d}=r.doc.options;let{key:p,value:f}=this,_=p instanceof n&&p.comment;if(d){if(_)throw new Error("With simple keys, key nodes cannot have comments");if(p instanceof a){throw new Error("With simple keys, collection cannot be used as a key value")}}let m=!d&&(!p||_||(p instanceof n?p instanceof a||p.type===e.Type.BLOCK_FOLDED||p.type===e.Type.BLOCK_LITERAL:"object"==typeof p));const{doc:h,indent:g,indentStep:A,stringify:y}=r;r=Object.assign({},r,{implicitKey:!m,indent:g+A});let v=!1,b=y(p,r,(()=>_=null),(()=>v=!0));if(b=t(b,r.indent,_),!m&&b.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(r.allNullValues&&!d)return this.comment?(b=t(b,r.indent,this.comment),o&&o()):v&&!_&&s&&s(),r.inFlow&&!m?b:`? ${b}`;b=m?`? ${b}\n${g}:`:`${b}:`,this.comment&&(b=t(b,r.indent,this.comment),o&&o());let C="",E=null;if(f instanceof n){if(f.spaceBefore&&(C="\n"),f.commentBefore){C+=`\n${f.commentBefore.replace(/^/gm,`${r.indent}#`)}`}E=f.comment}else f&&"object"==typeof f&&(f=h.schema.createNode(f,!0));r.implicitKey=!1,!m&&!this.comment&&f instanceof i&&(r.indentAtStart=b.length+1),v=!1,!u&&c>=2&&!r.inFlow&&!m&&f instanceof l&&f.type!==e.Type.FLOW_SEQ&&!f.tag&&!h.anchors.getName(f)&&(r.indent=r.indent.substr(2));const x=y(f,r,(()=>E=null),(()=>v=!0));let S=" ";if(C||this.comment)S=`${C}\n${r.indent}`;else if(!m&&f instanceof a){("["===x[0]||"{"===x[0])&&!x.includes("\n")||(S=`\n${r.indent}`)}else"\n"===x[0]&&(S="");return v&&!E&&s&&s(),t(b+S+x,r.indent,E)}}e._defineProperty(u,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const d=(e,t)=>{if(e instanceof p){const n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof a){let n=0;for(const r of e.items){const e=d(r,t);e>n&&(n=e)}return n}if(e instanceof u){const n=d(e.key,t),r=d(e.value,t);return Math.max(n,r)}return 1};class p extends n{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:i,inStringifyKey:o}){let s=Object.keys(n).find((e=>n[e]===t));if(!s&&o&&(s=r.anchors.getName(t)||r.anchors.newName()),s)return`*${s}${i?" ":""}`;const a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${a} [${e}]`)}constructor(t){super(),this.source=t,this.type=e.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(t,n){if(!n)return r(this.source,t,n);const{anchors:i,maxAliasCount:o}=n,s=i.get(this.source);if(!s||void 0===s.res){const t="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,t):new ReferenceError(t)}if(o>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=d(this.source,i)),s.count*s.aliasCount>o)){const t="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,t):new ReferenceError(t)}return s.res}toString(e){return p.stringify(this,e)}}function f(e,t){const n=t instanceof i?t.value:t;for(const r of e)if(r instanceof u){if(r.key===t||r.key===n)return r;if(r.key&&r.key.value===n)return r}}e._defineProperty(p,"default",!0);class _ extends a{add(e,t){e?e instanceof u||(e=new u(e.key||e,e.value)):e=new u(e);const n=f(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){const t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=f(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=f(this.items,e),r=n&&n.value;return!t&&r instanceof i?r.value:r}has(e){return!!f(this.items,e)}set(e,t){this.add(new u(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof u))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}class m extends u{constructor(e){if(e instanceof u){let t=e.value;t instanceof l||(t=new l,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new i("<<"),new l);this.type=u.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof _))throw new Error("Merge sources must be maps");const r=n.toJSON(null,e,Map);for(const[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}const h={defaultType:e.Type.BLOCK_LITERAL,lineWidth:76},g={defaultType:e.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function A(e,t,n){for(const{format:n,test:r,resolve:o}of t)if(r){const t=e.match(r);if(t){let e=o.apply(null,t);return e instanceof i||(e=new i(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new i(e)}const y="flow",v="block",b="quoted",C=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function E(e,t,n,{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:s,onOverflow:a}){if(!i||i<0)return e;const c=Math.max(1+o,1+i-t.length);if(e.length<=c)return e;const l=[],u={};let d,p,f=i-t.length;"number"==typeof r&&(r>i-Math.max(2,o)?l.push(0):f=i-r);let _=!1,m=-1,h=-1,g=-1;n===v&&(m=C(e,m),-1!==m&&(f=m+c));for(let t;t=e[m+=1];){if(n===b&&"\\"===t){switch(h=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}g=m}if("\n"===t)n===v&&(m=C(e,m)),f=m+c,d=void 0;else{if(" "===t&&p&&" "!==p&&"\n"!==p&&"\t"!==p){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=m)}if(m>=f)if(d)l.push(d),f=d+c,d=void 0;else if(n===b){for(;" "===p||"\t"===p;)p=t,t=e[m+=1],_=!0;const n=m>g+1?m-2:h-1;if(u[n])return e;l.push(n),u[n]=!0,f=n+c,d=void 0}else _=!0}p=t}if(_&&a&&a(),0===l.length)return e;s&&s();let A=e.slice(0,l[0]);for(let r=0;r<l.length;++r){const i=l[r],o=l[r+1]||e.length;0===i?A=`\n${t}${e.slice(0,o)}`:(n===b&&u[i]&&(A+=`${e[i]}\\`),A+=`\n${t}${e.slice(i+1,o)}`)}return A}const x=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},g.fold):g.fold,S=e=>/^(%|---|\.\.\.)/m.test(e);function k(e,t){const{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:i}=g.doubleQuoted,o=JSON.stringify(e);if(r)return o;const s=t.indent||(S(e)?" ":"");let a="",c=0;for(let e=0,t=o[e];t;t=o[++e])if(" "===t&&"\\"===o[e+1]&&"n"===o[e+2]&&(a+=o.slice(c,e)+"\\ ",e+=1,c=e,t="\\"),"\\"===t)switch(o[e+1]){case"u":{a+=o.slice(c,e);const t=o.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=o.substr(e,6)}e+=5,c=e+1}break;case"n":if(n||'"'===o[e+2]||o.length<i)e+=1;else{for(a+=o.slice(c,e)+"\n\n";"\\"===o[e+2]&&"n"===o[e+3]&&'"'!==o[e+4];)a+="\n",e+=2;a+=s," "===o[e+2]&&(a+="\\"),e+=1,c=e+1}break;default:e+=1}return a=c?a+o.slice(c):o,n?a:E(a,s,b,x(t))}function D(e,t){if(t.implicitKey){if(/\n/.test(e))return k(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return k(e,t);const n=t.indent||(S(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:E(r,n,y,x(t))}function w({comment:t,type:n,value:r},i,o,s){if(/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return k(r,i);const a=i.indent||(i.forceBlockIndent||S(r)?" ":""),c=a?"2":"1",l=n!==e.Type.BLOCK_FOLDED&&(n===e.Type.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}(r,g.fold.lineWidth,a.length));let u=l?"|":">";if(!r)return u+"\n";let d="",p="";if(r=r.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?u+="-":r!==e&&t===e.length-1||(u+="+",s&&s()),p=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(u+=c);const t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,"")})),p&&(p=p.replace(/\n+(?!\n|$)/g,`$&${a}`)),d&&(d=d.replace(/\n+/g,`$&${a}`)),t&&(u+=" #"+t.replace(/ ?[\r\n]+/g," "),o&&o()),!r)return`${u}${c}\n${a}${p}`;if(l)return r=r.replace(/\n+/g,`$&${a}`),`${u}\n${a}${d}${r}${p}`;r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${a}`);const f=E(`${d}${r}${p}`,a,v,g.fold);return`${u}\n${a}${f}`}function I(t,n){let r,i,o;switch(n.type){case e.Type.FLOW_MAP:r="}",i="flow map";break;case e.Type.FLOW_SEQ:r="]",i="flow sequence";break;default:return void t.push(new e.YAMLSemanticError(n,"Not a flow collection!?"))}for(let t=n.items.length-1;t>=0;--t){const r=n.items[t];if(!r||r.type!==e.Type.COMMENT){o=r;break}}if(o&&o.char!==r){const s=`Expected ${i} to end with ${r}`;let a;"number"==typeof o.offset?(a=new e.YAMLSemanticError(n,s),a.offset=o.offset+1):(a=new e.YAMLSemanticError(o,s),o.range&&o.range.end&&(a.offset=o.range.end-o.range.start)),t.push(a)}}function T(t,n){const r=n.context.src[n.range.start-1];if("\n"!==r&&"\t"!==r&&" "!==r){const r="Comments must be separated from other tokens by white space characters";t.push(new e.YAMLSemanticError(n,r))}}function F(t,n){const r=String(n),i=r.substr(0,8)+"..."+r.substr(-8);return new e.YAMLSemanticError(t,`The "${i}" key is too long`)}function R(e,t){for(const{afterKey:n,before:r,comment:i}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===i?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+i:t.commentBefore=i):void 0!==i&&(e.comment?e.comment+="\n"+i:e.comment=i)}}function P(e,t){const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function N(t,n){const{tag:r,type:i}=n;let o=!1;if(r){const{handle:i,suffix:s,verbatim:a}=r;if(a){if("!"!==a&&"!!"!==a)return a;const r=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new e.YAMLSemanticError(n,r))}else if("!"!==i||s)try{return function(t,n){const{handle:r,suffix:i}=n.tag;let o=t.tagPrefixes.find((e=>e.handle===r));if(!o){const i=t.getDefaults().tagPrefixes;if(i&&(o=i.find((e=>e.handle===r))),!o)throw new e.YAMLSemanticError(n,`The ${r} tag handle is non-default and was not declared.`)}if(!i)throw new e.YAMLSemanticError(n,`The ${r} tag has no suffix.`);if("!"===r&&"1.0"===(t.version||t.options.version)){if("^"===i[0])return t.warnings.push(new e.YAMLWarning(n,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){const e=i.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${i}`}}return o.prefix+decodeURIComponent(i)}(t,n)}catch(e){t.errors.push(e)}else o=!0}switch(i){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:case e.Type.QUOTE_DOUBLE:case e.Type.QUOTE_SINGLE:return e.defaultTags.STR;case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;case e.Type.PLAIN:return o?e.defaultTags.STR:null;default:return null}}function B(e,t,n){const{tags:r}=e.schema,o=[];for(const s of r)if(s.tag===n){if(!s.test){const n=s.resolve(e,t);return n instanceof a?n:new i(n)}o.push(s)}const s=P(e,t);return"string"==typeof s&&o.length>0?A(s,o,r.scalarFallback):null}function O(t,n,r){try{const e=B(t,n,r);if(e)return r&&n.tag&&(e.tag=r),e}catch(e){return e.source||(e.source=n),t.errors.push(e),null}try{const i=function({type:t}){switch(t){case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;default:return e.defaultTags.STR}}(n);if(!i)throw new Error(`The tag ${r} is unavailable`);const o=`The tag ${r} is unavailable, falling back to ${i}`;t.warnings.push(new e.YAMLWarning(n,o));const s=B(t,n,i);return s.tag=r,s}catch(r){const i=new e.YAMLReferenceError(n,r.message);return i.stack=r.stack,t.errors.push(i),null}}function q(t,n){const r={before:[],after:[]};let i=!1,o=!1;const s=(t=>{if(!t)return!1;const{type:n}=t;return n===e.Type.MAP_KEY||n===e.Type.MAP_VALUE||n===e.Type.SEQ_ITEM})(n.context.parent)?n.context.parent.props.concat(n.props):n.props;for(const{start:a,end:c}of s)switch(n.context.src[a]){case e.Char.COMMENT:{if(!n.commentHasRequiredWhitespace(a)){const r="Comments must be separated from other tokens by white space characters";t.push(new e.YAMLSemanticError(n,r))}const{header:i,valueRange:o}=n;(o&&(a>o.start||i&&a>i.start)?r.after:r.before).push(n.context.src.slice(a+1,c));break}case e.Char.ANCHOR:if(i){const r="A node can have at most one anchor";t.push(new e.YAMLSemanticError(n,r))}i=!0;break;case e.Char.TAG:if(o){const r="A node can have at most one tag";t.push(new e.YAMLSemanticError(n,r))}o=!0}return{comments:r,hasAnchor:i,hasTag:o}}function $(t,n){if(!n)return null;n.error&&t.errors.push(n.error);const{comments:r,hasAnchor:i,hasTag:o}=q(t.errors,n);if(i){const{anchors:e}=t,r=n.anchor,i=e.getNode(r);i&&(e.map[e.newName(r)]=i),e.map[r]=n}if(n.type===e.Type.ALIAS&&(i||o)){const r="An alias node must not specify any properties";t.errors.push(new e.YAMLSemanticError(n,r))}const s=function(t,n){const{anchors:r,errors:i,schema:o}=t;if(n.type===e.Type.ALIAS){const t=n.rawValue,o=r.getNode(t);if(!o){const r=`Aliased anchor not found: ${t}`;return i.push(new e.YAMLReferenceError(n,r)),null}const s=new p(o);return r._cstAliases.push(s),s}const s=N(t,n);if(s)return O(t,n,s);if(n.type!==e.Type.PLAIN){const t=`Failed to resolve ${n.type} node here`;return i.push(new e.YAMLSyntaxError(n,t)),null}try{return A(P(t,n),o.tags,o.tags.scalarFallback)}catch(e){return e.source||(e.source=n),i.push(e),null}}(t,n);if(s){s.range=[n.range.start,n.range.end],t.options.keepCstNodes&&(s.cstNode=n),t.options.keepNodeTypes&&(s.type=n.type);const e=r.before.join("\n");e&&(s.commentBefore=s.commentBefore?`${s.commentBefore}\n${e}`:e);const i=r.after.join("\n");i&&(s.comment=s.comment?`${s.comment}\n${i}`:i)}return n.resolved=s}const Q=({context:{lineStart:t,node:n,src:r},props:i})=>{if(0===i.length)return!1;const{start:o}=i[0];if(n&&o>n.valueRange.start)return!1;if(r[o]!==e.Char.COMMENT)return!1;for(let e=t;e<o;++e)if("\n"===r[e])return!1;return!0};function L(t,n){if(!Q(t))return;const r=t.getPropValue(0,e.Char.COMMENT,!0);let i=!1;const o=n.value.commentBefore;if(o&&o.startsWith(r))n.value.commentBefore=o.substr(r.length+1),i=!0;else{const e=n.value.comment;!t.node&&e&&e.startsWith(r)&&(n.value.comment=e.substr(r.length+1),i=!0)}i&&(n.comment=r)}return resolveSeqD03cb037.Alias=p,resolveSeqD03cb037.Collection=a,resolveSeqD03cb037.Merge=m,resolveSeqD03cb037.Node=n,resolveSeqD03cb037.Pair=u,resolveSeqD03cb037.Scalar=i,resolveSeqD03cb037.YAMLMap=_,resolveSeqD03cb037.YAMLSeq=l,resolveSeqD03cb037.addComment=t,resolveSeqD03cb037.binaryOptions=h,resolveSeqD03cb037.boolOptions={trueStr:"true",falseStr:"false"},resolveSeqD03cb037.findPair=f,resolveSeqD03cb037.intOptions={asBigInt:!1},resolveSeqD03cb037.isEmptyPath=s,resolveSeqD03cb037.nullOptions={nullStr:"null"},resolveSeqD03cb037.resolveMap=function(t,n){if(n.type!==e.Type.MAP&&n.type!==e.Type.FLOW_MAP){const r=`A ${n.type} node cannot be resolved as a mapping`;return t.errors.push(new e.YAMLSyntaxError(n,r)),null}const{comments:r,items:i}=n.type===e.Type.FLOW_MAP?function(t,n){const r=[],i=[];let o,s=!1,a="{";for(let c=0;c<n.items.length;++c){const l=n.items[c];if("string"==typeof l.char){const{char:r,offset:d}=l;if("?"===r&&void 0===o&&!s){s=!0,a=":";continue}if(":"===r){if(void 0===o&&(o=null),":"===a){a=",";continue}}else if(s&&(void 0===o&&","!==r&&(o=null),s=!1),void 0!==o&&(i.push(new u(o)),o=void 0,","===r)){a=":";continue}if("}"===r){if(c===n.items.length-1)continue}else if(r===a){a=":";continue}const p=`Flow map contains an unexpected ${r}`,f=new e.YAMLSyntaxError(n,p);f.offset=d,t.errors.push(f)}else l.type===e.Type.BLANK_LINE?r.push({afterKey:!!o,before:i.length}):l.type===e.Type.COMMENT?(T(t.errors,l),r.push({afterKey:!!o,before:i.length,comment:l.comment})):void 0===o?(","===a&&t.errors.push(new e.YAMLSemanticError(l,"Separator , missing in flow map")),o=$(t,l)):(","!==a&&t.errors.push(new e.YAMLSemanticError(l,"Indicator : missing in flow map entry")),i.push(new u(o,$(t,l))),o=void 0,s=!1)}I(t.errors,n),void 0!==o&&i.push(new u(o));return{comments:r,items:i}}(t,n):function(t,n){const r=[],i=[];let o,s=null;for(let a=0;a<n.items.length;++a){const c=n.items[a];switch(c.type){case e.Type.BLANK_LINE:r.push({afterKey:!!o,before:i.length});break;case e.Type.COMMENT:r.push({afterKey:!!o,before:i.length,comment:c.comment});break;case e.Type.MAP_KEY:void 0!==o&&i.push(new u(o)),c.error&&t.errors.push(c.error),o=$(t,c.node),s=null;break;case e.Type.MAP_VALUE:{if(void 0===o&&(o=null),c.error&&t.errors.push(c.error),!c.context.atLineStart&&c.node&&c.node.type===e.Type.MAP&&!c.node.context.atLineStart){const n="Nested mappings are not allowed in compact mappings";t.errors.push(new e.YAMLSemanticError(c.node,n))}let r=c.node;if(!r&&c.props.length>0){r=new e.PlainValue(e.Type.PLAIN,[]),r.context={parent:c,src:c.context.src};const t=c.range.start+1;if(r.range={start:t,end:t},r.valueRange={start:t,end:t},"number"==typeof c.range.origStart){const e=c.range.origStart+1;r.range.origStart=r.range.origEnd=e,r.valueRange.origStart=r.valueRange.origEnd=e}}const a=new u(o,$(t,r));L(c,a),i.push(a),o&&"number"==typeof s&&c.range.start>s+1024&&t.errors.push(F(n,o)),o=void 0,s=null}break;default:void 0!==o&&i.push(new u(o)),o=$(t,c),s=c.range.start,c.error&&t.errors.push(c.error);e:for(let r=a+1;;++r){const i=n.items[r];switch(i&&i.type){case e.Type.BLANK_LINE:case e.Type.COMMENT:continue e;case e.Type.MAP_VALUE:break e;default:{const n="Implicit map keys need to be followed by map values";t.errors.push(new e.YAMLSemanticError(c,n));break e}}}if(c.valueRangeContainsNewline){const n="Implicit map keys need to be on a single line";t.errors.push(new e.YAMLSemanticError(c,n))}}}void 0!==o&&i.push(new u(o));return{comments:r,items:i}}(t,n),o=new _;o.items=i,R(o,r);let s=!1;for(let r=0;r<i.length;++r){const{key:o}=i[r];if(o instanceof a&&(s=!0),t.schema.merge&&o&&"<<"===o.value){i[r]=new m(i[r]);const o=i[r].value.items;let s=null;o.some((t=>{if(t instanceof p){const{type:n}=t.source;return n!==e.Type.MAP&&n!==e.Type.FLOW_MAP&&(s="Merge nodes aliases can only point to maps")}return s="Merge nodes can only have Alias nodes as values"})),s&&t.errors.push(new e.YAMLSemanticError(n,s))}else for(let s=r+1;s<i.length;++s){const{key:r}=i[s];if(o===r||o&&r&&Object.prototype.hasOwnProperty.call(o,"value")&&o.value===r.value){const r=`Map keys must be unique; "${o}" is repeated`;t.errors.push(new e.YAMLSemanticError(n,r));break}}}if(s&&!t.options.mapAsMap){const r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new e.YAMLWarning(n,r))}return n.resolved=o,o},resolveSeqD03cb037.resolveNode=$,resolveSeqD03cb037.resolveSeq=function(t,n){if(n.type!==e.Type.SEQ&&n.type!==e.Type.FLOW_SEQ){const r=`A ${n.type} node cannot be resolved as a sequence`;return t.errors.push(new e.YAMLSyntaxError(n,r)),null}const{comments:r,items:i}=n.type===e.Type.FLOW_SEQ?function(t,n){const r=[],i=[];let o,s=!1,a=null,c="[",l=null;for(let d=0;d<n.items.length;++d){const p=n.items[d];if("string"==typeof p.char){const{char:r,offset:f}=p;if(":"===r||!s&&void 0===o||(s&&void 0===o&&(o=c?i.pop():null),i.push(new u(o)),s=!1,o=void 0,a=null),r===c)c=null;else if(c||"?"!==r){if("["!==c&&":"===r&&void 0===o){if(","===c){if(o=i.pop(),o instanceof u){const r="Chaining flow sequence pairs is invalid",i=new e.YAMLSemanticError(n,r);i.offset=f,t.errors.push(i)}if(!s&&"number"==typeof a){const r=p.range?p.range.start:p.offset;r>a+1024&&t.errors.push(F(n,o));const{src:i}=l.context;for(let n=a;n<r;++n)if("\n"===i[n]){const n="Implicit keys of flow sequence pairs need to be on a single line";t.errors.push(new e.YAMLSemanticError(l,n));break}}}else o=null;a=null,s=!1,c=null}else if("["===c||"]"!==r||d<n.items.length-1){const i=`Flow sequence contains an unexpected ${r}`,o=new e.YAMLSyntaxError(n,i);o.offset=f,t.errors.push(o)}}else s=!0}else if(p.type===e.Type.BLANK_LINE)r.push({before:i.length});else if(p.type===e.Type.COMMENT)T(t.errors,p),r.push({comment:p.comment,before:i.length});else{if(c){const n=`Expected a ${c} in flow sequence`;t.errors.push(new e.YAMLSemanticError(p,n))}const n=$(t,p);void 0===o?(i.push(n),l=p):(i.push(new u(o,n)),o=void 0),a=p.range.start,c=","}}I(t.errors,n),void 0!==o&&i.push(new u(o));return{comments:r,items:i}}(t,n):function(t,n){const r=[],i=[];for(let o=0;o<n.items.length;++o){const s=n.items[o];switch(s.type){case e.Type.BLANK_LINE:r.push({before:i.length});break;case e.Type.COMMENT:r.push({comment:s.comment,before:i.length});break;case e.Type.SEQ_ITEM:if(s.error&&t.errors.push(s.error),i.push($(t,s.node)),s.hasProps){const n="Sequence items cannot have tags or anchors before the - indicator";t.errors.push(new e.YAMLSemanticError(s,n))}break;default:s.error&&t.errors.push(s.error),t.errors.push(new e.YAMLSyntaxError(s,`Unexpected ${s.type} node in sequence`))}}return{comments:r,items:i}}(t,n),o=new l;if(o.items=i,R(o,r),!t.options.mapAsMap&&i.some((e=>e instanceof u&&e.key instanceof a))){const r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new e.YAMLWarning(n,r))}return n.resolved=o,o},resolveSeqD03cb037.resolveString=P,resolveSeqD03cb037.strOptions=g,resolveSeqD03cb037.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i},resolveSeqD03cb037.stringifyString=function(t,n,r,i){const{defaultType:o}=g,{implicitKey:s,inFlow:a}=n;let{type:c,value:l}=t;"string"!=typeof l&&(l=String(l),t=Object.assign({},t,{value:l}));const u=o=>{switch(o){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return w(t,n,r,i);case e.Type.QUOTE_DOUBLE:return k(l,n);case e.Type.QUOTE_SINGLE:return D(l,n);case e.Type.PLAIN:return function(t,n,r,i){const{comment:o,type:s,value:a}=t,{actualString:c,implicitKey:l,indent:u,inFlow:d}=n;if(l&&/[\n[\]{},]/.test(a)||d&&/[[\]{},]/.test(a))return k(a,n);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||d||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?D(a,n):k(a,n):w(t,n,r,i);if(!l&&!d&&s!==e.Type.PLAIN&&-1!==a.indexOf("\n"))return w(t,n,r,i);if(""===u&&S(a))return n.forceBlockIndent=!0,w(t,n,r,i);const p=a.replace(/\n+/g,`$&\n${u}`);if(c){const{tags:e}=n.doc.schema;if("string"!=typeof A(p,e,e.scalarFallback).value)return k(a,n)}const f=l?p:E(p,u,y,x(n));return!o||d||-1===f.indexOf("\n")&&-1===o.indexOf("\n")?f:(r&&r(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(f,u,o))}(t,n,r,i);default:return null}};c!==e.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(l)?c=e.Type.QUOTE_DOUBLE:!s&&!a||c!==e.Type.BLOCK_FOLDED&&c!==e.Type.BLOCK_LITERAL||(c=e.Type.QUOTE_DOUBLE);let d=u(c);if(null===d&&(d=u(o),null===d))throw new Error(`Unsupported default string type ${o}`);return d},resolveSeqD03cb037.toJSON=r,resolveSeqD03cb037}var Schema88e323a7={},warnings1000a372={},hasRequiredWarnings1000a372,hasRequiredSchema88e323a7,hasRequiredDocument9b4560a1,hasRequiredDist$1,yaml,hasRequiredYaml,jptr_1,hasRequiredJptr,isref,hasRequiredIsref,clone_1,hasRequiredClone,recurse_1,hasRequiredRecurse,dereference_1,hasRequiredDereference,fastSafeStringify,hasRequiredFastSafeStringify,oasKitCommon,hasRequiredOasKitCommon,oasResolver,hasRequiredOasResolver,oasSchemaWalker,hasRequiredOasSchemaWalker,statusCodes,hasRequiredStatusCodes;function requireWarnings1000a372(){if(hasRequiredWarnings1000a372)return warnings1000a372;hasRequiredWarnings1000a372=1;var e=requirePlainValueEc8e588e(),t=requireResolveSeqD03cb037();const n={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(n,r)=>{const i=t.resolveString(n,r);if("function"==typeof Buffer)return Buffer.from(i,"base64");if("function"==typeof atob){const e=atob(i.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}{const t="This environment does not support reading binary tags; either Buffer or atob is required";return n.errors.push(new e.YAMLReferenceError(r,t)),null}},options:t.binaryOptions,stringify:({comment:n,type:r,value:i},o,s,a)=>{let c;if("function"==typeof Buffer)c=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<i.length;++t)e+=String.fromCharCode(i[t]);c=btoa(e)}}if(r||(r=t.binaryOptions.defaultType),r===e.Type.QUOTE_DOUBLE)i=c;else{const{lineWidth:n}=t.binaryOptions,o=Math.ceil(c.length/n),s=new Array(o);for(let e=0,t=0;e<o;++e,t+=n)s[e]=c.substr(t,n);i=s.join(r===e.Type.BLOCK_LITERAL?"\n":" ")}return t.stringifyString({comment:n,type:r,value:i},o,s,a)}};function r(n,r){const i=t.resolveSeq(n,r);for(let n=0;n<i.items.length;++n){let o=i.items[n];if(!(o instanceof t.Pair)){if(o instanceof t.YAMLMap){if(o.items.length>1){const t="Each pair must have its own sequence indicator";throw new e.YAMLSemanticError(r,t)}const n=o.items[0]||new t.Pair;o.commentBefore&&(n.commentBefore=n.commentBefore?`${o.commentBefore}\n${n.commentBefore}`:o.commentBefore),o.comment&&(n.comment=n.comment?`${o.comment}\n${n.comment}`:o.comment),o=n}i.items[n]=o instanceof t.Pair?o:new t.Pair(o)}}return i}function i(e,n,r){const i=new t.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";for(const t of n){let n,o;if(Array.isArray(t)){if(2!==t.length)throw new TypeError(`Expected [key, value] tuple: ${t}`);n=t[0],o=t[1]}else if(t&&t instanceof Object){const e=Object.keys(t);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${t}`);n=e[0],o=t[n]}else n=t;const s=e.createPair(n,o,r);i.items.push(s)}return i}const o={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:r,createNode:i};class s extends t.YAMLSeq{constructor(){super(),e._defineProperty(this,"add",t.YAMLMap.prototype.add.bind(this)),e._defineProperty(this,"delete",t.YAMLMap.prototype.delete.bind(this)),e._defineProperty(this,"get",t.YAMLMap.prototype.get.bind(this)),e._defineProperty(this,"has",t.YAMLMap.prototype.has.bind(this)),e._defineProperty(this,"set",t.YAMLMap.prototype.set.bind(this)),this.tag=s.tag}toJSON(e,n){const r=new Map;n&&n.onCreate&&n.onCreate(r);for(const e of this.items){let i,o;if(e instanceof t.Pair?(i=t.toJSON(e.key,"",n),o=t.toJSON(e.value,i,n)):i=t.toJSON(e,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}}e._defineProperty(s,"tag","tag:yaml.org,2002:omap");const a={identify:e=>e instanceof Map,nodeClass:s,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(n,i){const o=r(n,i),a=[];for(const{key:n}of o.items)if(n instanceof t.Scalar){if(a.includes(n.value)){const t="Ordered maps must not include duplicate keys";throw new e.YAMLSemanticError(i,t)}a.push(n.value)}return Object.assign(new s,o)},createNode:function(e,t,n){const r=i(e,t,n),o=new s;return o.items=r.items,o}};class c extends t.YAMLMap{constructor(){super(),this.tag=c.tag}add(e){const n=e instanceof t.Pair?e:new t.Pair(e);t.findPair(this.items,n.key)||this.items.push(n)}get(e,n){const r=t.findPair(this.items,e);return!n&&r instanceof t.Pair?r.key instanceof t.Scalar?r.key.value:r.key:r}set(e,n){if("boolean"!=typeof n)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof n);const r=t.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new t.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}e._defineProperty(c,"tag","tag:yaml.org,2002:set");const l={identify:e=>e instanceof Set,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(n,r){const i=t.resolveMap(n,r);if(!i.hasAllNullValues())throw new e.YAMLSemanticError(r,"Set items must all have null values");return Object.assign(new c,i)},createNode:function(e,t,n){const r=new c;for(const i of t)r.items.push(e.createPair(i,null,n));return r}},u=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},d=({value:e})=>{if(isNaN(e)||!isFinite(e))return t.stringifyNumber(e);let n="";e<0&&(n="-",e=Math.abs(e));const r=[e%60];return e<60?r.unshift(0):(e=Math.round((e-r[0])/60),r.unshift(e%60),e>=60&&(e=Math.round((e-r[0])/60),r.unshift(e))),n+r.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},p={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>u(t,n.replace(/_/g,"")),stringify:d},f={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>u(t,n.replace(/_/g,"")),stringify:d},_={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,r,i,o,s,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(t,n-1,r,i||0,o||0,s||0,a||0);if(c&&"Z"!==c){let e=u(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function m(e){const t="undefined"!=typeof process&&process.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function h(e,t){if(m(!1)){const n="undefined"!=typeof process&&process.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const g={};return warnings1000a372.binary=n,warnings1000a372.floatTime=f,warnings1000a372.intTime=p,warnings1000a372.omap=a,warnings1000a372.pairs=o,warnings1000a372.set=l,warnings1000a372.timestamp=_,warnings1000a372.warn=h,warnings1000a372.warnFileDeprecation=function(e){if(m(!0)){h(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")}},warnings1000a372.warnOptionDeprecation=function(e,t){if(!g[e]&&m(!0)){g[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",h(n,"DeprecationWarning")}},warnings1000a372}function requireSchema88e323a7(){if(hasRequiredSchema88e323a7)return Schema88e323a7;hasRequiredSchema88e323a7=1;var e=requirePlainValueEc8e588e(),t=requireResolveSeqD03cb037(),n=requireWarnings1000a372();const r={createNode:function(e,n,r){const i=new t.YAMLMap(e);if(n instanceof Map)for(const[t,o]of n)i.items.push(e.createPair(t,o,r));else if(n&&"object"==typeof n)for(const t of Object.keys(n))i.items.push(e.createPair(t,n[t],r));return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:t.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:t.resolveMap};const i={createNode:function(e,n,r){const i=new t.YAMLSeq(e);if(n&&n[Symbol.iterator])for(const t of n){const n=e.createNode(t,r.wrapScalars,null,r);i.items.push(n)}return i},default:!0,nodeClass:t.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:t.resolveSeq},o={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:t.resolveString,stringify:(e,n,r,i)=>(n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)),options:t.strOptions},s=[r,i,o],a=e=>"bigint"==typeof e||Number.isInteger(e),c=(e,n,r)=>t.intOptions.asBigInt?BigInt(e):parseInt(n,r);function l(e,n,r){const{value:i}=e;return a(i)&&i>=0?r+i.toString(n):t.stringifyNumber(e)}const u={identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:t.nullOptions,stringify:()=>t.nullOptions.nullStr},d={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:t.boolOptions,stringify:({value:e})=>e?t.boolOptions.trueStr:t.boolOptions.falseStr},p={identify:e=>a(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>c(e,t,8),options:t.intOptions,stringify:e=>l(e,8,"0o")},f={identify:a,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>c(e,e,10),options:t.intOptions,stringify:t.stringifyNumber},_={identify:e=>a(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>c(e,t,16),options:t.intOptions,stringify:e=>l(e,16,"0x")},m={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:t.stringifyNumber},h={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},g={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,n,r){const i=n||r,o=new t.Scalar(parseFloat(e));return i&&"0"===i[i.length-1]&&(o.minFractionDigits=i.length),o},stringify:t.stringifyNumber},A=s.concat([u,d,p,f,_,m,h,g]),y=e=>"bigint"==typeof e||Number.isInteger(e),v=({value:e})=>JSON.stringify(e),b=[r,i,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:t.resolveString,stringify:v},{identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:v},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:v},{identify:y,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>t.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>y(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:v}];b.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const C=({value:e})=>e?t.boolOptions.trueStr:t.boolOptions.falseStr,E=e=>"bigint"==typeof e||Number.isInteger(e);function x(e,n,r){let i=n.replace(/_/g,"");if(t.intOptions.asBigInt){switch(r){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`}const t=BigInt(i);return"-"===e?BigInt(-1)*t:t}const o=parseInt(i,r);return"-"===e?-1*o:o}function S(e,n,r){const{value:i}=e;if(E(i)){const e=i.toString(n);return i<0?"-"+r+e.substr(1):r+e}return t.stringifyNumber(e)}const k=s.concat([{identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:t.nullOptions,stringify:()=>t.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:t.boolOptions,stringify:C},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:t.boolOptions,stringify:C},{identify:E,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>x(t,n,2),stringify:e=>S(e,2,"0b")},{identify:E,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>x(t,n,8),stringify:e=>S(e,8,"0")},{identify:E,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>x(t,n,10),stringify:t.stringifyNumber},{identify:E,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>x(t,n,16),stringify:e=>S(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:t.stringifyNumber},{identify:e=>"number"==typeof e,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:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,n){const r=new t.Scalar(parseFloat(e.replace(/_/g,"")));if(n){const e=n.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:t.stringifyNumber}],n.binary,n.omap,n.pairs,n.set,n.intTime,n.floatTime,n.timestamp),D={core:A,failsafe:s,json:b,yaml11:k},w={binary:n.binary,bool:d,float:g,floatExp:h,floatNaN:m,floatTime:n.floatTime,int:f,intHex:_,intOct:p,intTime:n.intTime,map:r,null:u,omap:n.omap,pairs:n.pairs,seq:i,set:n.set,timestamp:n.timestamp};function I(e,n,o){if(e instanceof t.Node)return e;const{defaultPrefix:s,onTagObj:a,prevObjects:c,schema:l,wrapScalars:u}=o;n&&n.startsWith("!!")&&(n=s+n.slice(2));let d=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,n,l.tags);if(!d){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return u?new t.Scalar(e):e;d=e instanceof Map?r:e[Symbol.iterator]?i:r}a&&(a(d),delete o.onTagObj);const p={value:void 0,node:void 0};if(e&&"object"==typeof e&&c){const n=c.get(e);if(n){const e=new t.Alias(n);return o.aliasNodes.push(e),e}p.value=e,c.set(e,p)}return p.node=d.createNode?d.createNode(o.schema,e,o):u?new t.Scalar(e):e,n&&p.node instanceof t.Node&&(p.node.tag=n),p.node}const T=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class F{constructor({customTags:e,merge:t,schema:r,sortMapEntries:i,tags:o}){this.merge=!!t,this.name=r,this.sortMapEntries=!0===i?T:i||null,!e&&o&&n.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let i=e[r.replace(/\W/g,"")];if(!i){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)i=i.concat(e);else"function"==typeof n&&(i=n(i.slice()));for(let e=0;e<i.length;++e){const n=i[e];if("string"==typeof n){const r=t[n];if(!r){const e=Object.keys(t).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}i[e]=r}}return i}(D,w,e||o,r)}createNode(e,t,n,r){const i={defaultPrefix:F.defaultPrefix,schema:this,wrapScalars:t};return I(e,n,r?Object.assign(r,i):i)}createPair(e,n,r){r||(r={wrapScalars:!0});const i=this.createNode(e,r.wrapScalars,null,r),o=this.createNode(n,r.wrapScalars,null,r);return new t.Pair(i,o)}}return e._defineProperty(F,"defaultPrefix",e.defaultTagPrefix),e._defineProperty(F,"defaultTags",e.defaultTags),Schema88e323a7.Schema=F,Schema88e323a7}function requireDocument9b4560a1(){if(hasRequiredDocument9b4560a1)return Document9b4560a1;hasRequiredDocument9b4560a1=1;var e=requirePlainValueEc8e588e(),t=requireResolveSeqD03cb037(),n=requireSchema88e323a7();const r={get binary(){return t.binaryOptions},set binary(e){Object.assign(t.binaryOptions,e)},get bool(){return t.boolOptions},set bool(e){Object.assign(t.boolOptions,e)},get int(){return t.intOptions},set int(e){Object.assign(t.intOptions,e)},get null(){return t.nullOptions},set null(e){Object.assign(t.nullOptions,e)},get str(){return t.strOptions},set str(e){Object.assign(t.strOptions,e)}},i={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:e.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]}};function o(e,t){if("1.0"===(e.version||e.options.version)){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){const r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;const r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function s(e,n,r,i){const{anchors:s,schema:a}=n.doc;let c;if(!(e instanceof t.Node)){const t={aliasNodes:[],onTagObj:e=>c=e,prevObjects:new Map};e=a.createNode(e,!0,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=s.getName(e.source);t||(t=s.newName(),s.map[t]=e.source)}}if(e instanceof t.Pair)return e.toString(n,r,i);c||(c=function(e,n){if(n instanceof t.Alias)return t.Alias;if(n.tag){const t=e.filter((e=>e.tag===n.tag));if(t.length>0)return t.find((e=>e.format===n.format))||t[0]}let r,i;if(n instanceof t.Scalar){i=n.value;const t=e.filter((e=>e.identify&&e.identify(i)||e.class&&i instanceof e.class));r=t.find((e=>e.format===n.format))||t.find((e=>!e.format))}else i=n,r=e.find((e=>e.nodeClass&&i instanceof e.nodeClass));if(!r){const e=i&&i.constructor?i.constructor.name:typeof i;throw new Error(`Tag not resolved for ${e} value`)}return r}(a.tags,e));const l=function(e,t,{anchors:n,doc:r}){const i=[],s=r.anchors.getName(e);return s&&(n[s]=e,i.push(`&${s}`)),e.tag?i.push(o(r,e.tag)):t.default||i.push(o(r,t.tag)),i.join(" ")}(e,c,n);l.length>0&&(n.indentAtStart=(n.indentAtStart||0)+l.length+1);const u="function"==typeof c.stringify?c.stringify(e,n,r,i):e instanceof t.Scalar?t.stringifyString(e,n,r,i):e.toString(n,r,i);return l?e instanceof t.Scalar||"{"===u[0]||"["===u[0]?`${l} ${u}`:`${l}\n${n.indent}${u}`:u}class a{static validAnchorNode(e){return e instanceof t.Scalar||e instanceof t.YAMLSeq||e instanceof t.YAMLMap}constructor(t){e._defineProperty(this,"map",Object.create(null)),this.prefix=t}createAlias(e,n){return this.setAnchor(e,n),new t.Alias(e)}createMergePair(...e){const n=new t.Merge;return n.value.items=e.map((e=>{if(e instanceof t.Alias){if(e.source instanceof t.YAMLMap)return e}else if(e instanceof t.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),n}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!a.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const c=(e,n)=>{if(e&&"object"==typeof e){const{tag:r}=e;e instanceof t.Collection?(r&&(n[r]=!0),e.items.forEach((e=>c(e,n)))):e instanceof t.Pair?(c(e.key,n),c(e.value,n)):e instanceof t.Scalar&&r&&(n[r]=!0)}return n};function l({tagPrefixes:t},n){const[r,i]=n.parameters;if(!r||!i){const t="Insufficient parameters given for %TAG directive";throw new e.YAMLSemanticError(n,t)}if(t.some((e=>e.handle===r))){const t="The %TAG directive must only be given at most once per handle in the same document.";throw new e.YAMLSemanticError(n,t)}return{handle:r,prefix:i}}function u(t,n){let[r]=n.parameters;if("YAML:1.0"===n.name&&(r="1.0"),!r){const t="Insufficient parameters given for %YAML directive";throw new e.YAMLSemanticError(n,t)}if(!i[r]){const i=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${r}`;t.warnings.push(new e.YAMLWarning(n,i))}return r}function d(e){if(e instanceof t.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}class p{constructor(e){this.anchors=new a(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return d(this.contents),this.contents.add(e)}addIn(e,t){d(this.contents),this.contents.addIn(e,t)}delete(e){return d(this.contents),this.contents.delete(e)}deleteIn(e){return t.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(d(this.contents),this.contents.deleteIn(e))}getDefaults(){return p.defaults[this.version]||p.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof t.Collection?this.contents.get(e,n):void 0}getIn(e,n){return t.isEmptyPath(e)?!n&&this.contents instanceof t.Scalar?this.contents.value:this.contents:this.contents instanceof t.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof t.Collection&&this.contents.has(e)}hasIn(e){return t.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof t.Collection&&this.contents.hasIn(e)}set(e,t){d(this.contents),this.contents.set(e,t)}setIn(e,n){t.isEmptyPath(e)?this.contents=n:(d(this.contents),this.contents.setIn(e,n))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const r=Object.assign({},this.getDefaults(),this.options);this.schema=new n.Schema(r)}parse(n,r){this.options.keepCstNodes&&(this.cstNode=n),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:i=[],contents:o=[],directivesEndMarker:s,error:a,valueRange:c}=n;if(a&&(a.source||(a.source=this),this.errors.push(a)),function(t,n,r){const i=[];let o=!1;for(const r of n){const{comment:n,name:s}=r;switch(s){case"TAG":try{t.tagPrefixes.push(l(t,r))}catch(e){t.errors.push(e)}o=!0;break;case"YAML":case"YAML:1.0":if(t.version){const n="The %YAML directive must only be given at most once per document.";t.errors.push(new e.YAMLSemanticError(r,n))}try{t.version=u(t,r)}catch(e){t.errors.push(e)}o=!0;break;default:if(s){const n=`YAML only supports %TAG and %YAML directives, and not %${s}`;t.warnings.push(new e.YAMLWarning(r,n))}}n&&i.push(n)}if(r&&!o&&"1.1"===(t.version||r.version||t.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});t.tagPrefixes=r.tagPrefixes.map(e),t.version=r.version}t.commentBefore=i.join("\n")||null}(this,i,r),s&&(this.directivesEndMarker=!0),this.range=c?[c.start,c.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(n,r){const i={before:[],after:[]};let o,s=!1;for(const a of r)if(a.valueRange){if(void 0!==o){const t="Document contains trailing content not separated by a ... or --- line";n.errors.push(new e.YAMLSyntaxError(a,t));break}const r=t.resolveNode(n,a);s&&(r.spaceBefore=!0,s=!1),o=r}else null!==a.comment?(void 0===o?i.before:i.after).push(a.comment):a.type===e.Type.BLANK_LINE&&(s=!0,void 0===o&&i.before.length>0&&!n.commentBefore&&(n.commentBefore=i.before.join("\n"),i.before=[]));if(n.contents=o||null,o){const e=i.before.join("\n");if(e){const n=o instanceof t.Collection&&o.items[0]?o.items[0]:o;n.commentBefore=n.commentBefore?`${e}\n${n.commentBefore}`:e}n.comment=i.after.join("\n")||null}else n.comment=i.before.concat(i.after).join("\n")||null}(this,o),this.anchors.resolveNodes(),this.options.prettyErrors){for(const t of this.errors)t instanceof e.YAMLError&&t.makePretty();for(const t of this.warnings)t instanceof e.YAMLError&&t.makePretty()}return this}listNonDefaultTags(){return(e=>Object.keys(c(e,{})))(this.contents).filter((e=>0!==e.indexOf(n.Schema.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,n){const{keepBlobsInJSON:r,mapAsMap:i,maxAliasCount:o}=this.options,a=r&&("string"!=typeof e||!(this.contents instanceof t.Scalar)),c={doc:this,indentStep:" ",keep:a,mapAsMap:a&&!!i,maxAliasCount:o,stringify:s},l=Object.keys(this.anchors.map);l.length>0&&(c.anchors=new Map(l.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));const u=t.toJSON(this.contents,e,c);if("function"==typeof n&&c.anchors)for(const{count:e,res:t}of c.anchors.values())n(t,e);return u}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const n=[];let r=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),n.push(e),r=!0}const i=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:t})=>{i.some((e=>0===e.indexOf(t)))&&(n.push(`%TAG ${e} ${t}`),r=!0)})),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&(!r&&this.directivesEndMarker||n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));const o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:s};let a=!1,c=null;if(this.contents){this.contents instanceof t.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,c=this.contents.comment);const e=c?null:()=>a=!0,i=s(this.contents,o,(()=>c=null),e);n.push(t.addComment(i,"",c))}else void 0!==this.contents&&n.push(s(this.contents,o));return this.comment&&(a&&!c||""===n[n.length-1]||n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join("\n")+"\n"}}return e._defineProperty(p,"defaults",i),Document9b4560a1.Document=p,Document9b4560a1.defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Document9b4560a1.scalarOptions=r,Document9b4560a1}function requireDist$1(){if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=1;var e=requireParseCst(),t=requireDocument9b4560a1(),n=requireSchema88e323a7(),r=requirePlainValueEc8e588e(),i=requireWarnings1000a372();requireResolveSeqD03cb037();class o extends t.Document{constructor(e){super(Object.assign({},t.defaultOptions,e))}}function s(t,n){const i=e.parse(t),s=new o(n).parse(i[0]);if(i.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new r.YAMLSemanticError(i[1],e))}return s}const a={createNode:function(e,r=!0,i){void 0===i&&"string"==typeof r&&(i=r,r=!0);const o=Object.assign({},t.Document.defaults[t.defaultOptions.version],t.defaultOptions);return new n.Schema(o).createNode(e,r,i)},defaultOptions:t.defaultOptions,Document:o,parse:function(e,t){const n=s(e,t);if(n.warnings.forEach((e=>i.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(t,n){const r=[];let i;for(const s of e.parse(t)){const e=new o(n);e.parse(s,i),r.push(e),i=e}return r},parseCST:e.parse,parseDocument:s,scalarOptions:t.scalarOptions,stringify:function(e,t){const n=new o(t);return n.contents=e,String(n)}};return dist$1.YAML=a,dist$1}function requireYaml(){return hasRequiredYaml?yaml:(hasRequiredYaml=1,yaml=requireDist$1().YAML)}function requireJptr(){if(hasRequiredJptr)return jptr_1;function e(e){return e.replace(/\~1/g,"/").replace(/~0/g,"~")}return hasRequiredJptr=1,jptr_1={jptr:function(t,n,r){if(void 0===t)return!1;if(!n||"string"!=typeof n||"#"===n)return void 0!==r?r:t;if(n.indexOf("#")>=0){let e=n.split("#");if(e[0])return!1;n=e[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));let i=n.split("/");for(let n=0;n<i.length;n++){i[n]=e(i[n]);let o=void 0!==r&&n==i.length-1,s=parseInt(i[n],10);if(!Array.isArray(t)||isNaN(s)||s.toString()!==i[n]?s=Array.isArray(t)&&"-"===i[n]?-2:-1:i[n]=n>0?i[n-1]:"",-1!=s||t&&t.hasOwnProperty(i[n]))if(s>=0)o&&(t[s]=r),t=t[s];else{if(-2===s)return o?(Array.isArray(t)&&t.push(r),r):void 0;o&&(t[i[n]]=r),t=t[i[n]]}else{if(void 0===r||"object"!=typeof t||Array.isArray(t))return!1;t[i[n]]=o?r:"0"===i[n+1]||"-"===i[n+1]?[]:{},t=t[i[n]]}}return t},jpescape:function(e){return e.replace(/\~/g,"~0").replace(/\//g,"~1")},jpunescape:e},jptr_1}function requireIsref(){if(hasRequiredIsref)return isref;return hasRequiredIsref=1,isref={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}}function requireClone(){if(hasRequiredClone)return clone_1;return hasRequiredClone=1,clone_1={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},deepClone:function e(t){let n=Array.isArray(t)?[]:{};for(let r in t)(t.hasOwnProperty(r)||Array.isArray(t))&&(n[r]="object"==typeof t[r]?e(t[r]):t[r]);return n},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,n){if(n||(n=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(n.has(t))return n.get(t);try{var r=new t.constructor}catch(e){r=Object.create(Object.getPrototypeOf(t))}return n.set(t,r),Object.assign(r,...Object.keys(t).map((r=>({[r]:e(t[r],n)}))))}},clone_1}function requireRecurse(){if(hasRequiredRecurse)return recurse_1;hasRequiredRecurse=1;const e=requireJptr().jpescape;return recurse_1={recurse:function t(n,r,i){if(r||(r={depth:0}),r.depth||(r=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},r)),"object"!=typeof n)return;let o=r.path;for(let s in n){if(r.key=s,r.path=r.path+"/"+encodeURIComponent(e(s)),r.identityPath=r.seen.get(n[s]),r.identity=void 0!==r.identityPath,n.hasOwnProperty(s)&&i(n,s,r),"object"==typeof n[s]&&!r.identity){r.identityDetection&&!Array.isArray(n[s])&&null!==n[s]&&r.seen.set(n[s],r.path);let e={};e.parent=n,e.path=r.path,e.depth=r.depth?r.depth+1:1,e.pkey=s,e.payload=r.payload,e.seen=r.seen,e.identity=!1,e.identityDetection=r.identityDetection,t(n[s],e,i)}r.path=o}}},recurse_1}function requireDereference(){if(hasRequiredDereference)return dereference_1;hasRequiredDereference=1;const e=requireRecurse().recurse,t=requireClone().shallowClone,n=requireJptr().jptr,r=requireIsref().isRef;return dereference_1={dereference:function i(o,s,a){a||(a={}),a.cache||(a.cache={}),a.state||(a.state={}),a.state.identityDetection=!0,a.depth=a.depth?a.depth+1:1;let c=a.depth>1?o:t(o),l={data:c},u=a.depth>1?s:t(s);a.master||(a.master=c);let d=function(e){return e&&e.verbose?{warn:function(){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}:{warn:function(){}}}(a),p=1;for(;p>0;)p=0,e(l,a.state,(function(e,t,o){if(r(e,t)){let r=e[t];if(p++,a.cache[r]){let e=a.cache[r];if(e.resolved)d.warn("Patching %s for %s",r,e.path),o.parent[o.pkey]=e.data,a.$ref&&"object"==typeof o.parent[o.pkey]&&null!==o.parent[o.pkey]&&(o.parent[o.pkey][a.$ref]=r);else{if(r===e.path)throw new Error(`Tight circle at ${e.path}`);d.warn("Unresolved ref"),o.parent[o.pkey]=n(e.source,e.path),!1===o.parent[o.pkey]&&(o.parent[o.pkey]=n(e.source,e.key)),a.$ref&&"object"==typeof o.parent[o.pkey]&&null!==o.parent[o.pkey]&&(o.parent[a.$ref]=r)}}else{let e={};e.path=o.path.split("/$ref")[0],e.key=r,d.warn("Dereffing %s at %s",r,e.path),e.source=u,e.data=n(e.source,e.key),!1===e.data&&(e.data=n(a.master,e.key),e.source=a.master),!1===e.data&&d.warn("Missing $ref target",e.key),a.cache[r]=e,e.data=o.parent[o.pkey]=i(n(e.source,e.key),e.source,a),a.$ref&&"object"==typeof o.parent[o.pkey]&&null!==o.parent[o.pkey]&&(o.parent[o.pkey][a.$ref]=r),e.resolved=!0}}}));return l.data}},dereference_1}function requireFastSafeStringify(){if(hasRequiredFastSafeStringify)return fastSafeStringify;hasRequiredFastSafeStringify=1,fastSafeStringify=o,o.default=o,o.stable=l,o.stableStringify=l;var e="[...]",t="[Circular]",n=[],r=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,o,s){var c;void 0===s&&(s=i()),a(e,"",0,[],void 0,0,s);try{c=0===r.length?JSON.stringify(e,t,o):JSON.stringify(e,d(t),o)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function s(e,t,i,o){var s=Object.getOwnPropertyDescriptor(o,i);void 0!==s.get?s.configurable?(Object.defineProperty(o,i,{value:e}),n.push([o,i,t,s])):r.push([t,i,e]):(o[i]=e,n.push([o,i,t]))}function a(n,r,i,o,c,l,u){var d;if(l+=1,"object"==typeof n&&null!==n){for(d=0;d<o.length;d++)if(o[d]===n)return void s(t,n,r,c);if(void 0!==u.depthLimit&&l>u.depthLimit)return void s(e,n,r,c);if(void 0!==u.edgesLimit&&i+1>u.edgesLimit)return void s(e,n,r,c);if(o.push(n),Array.isArray(n))for(d=0;d<n.length;d++)a(n[d],d,d,o,n,l,u);else{var p=Object.keys(n);for(d=0;d<p.length;d++){var f=p[d];a(n[f],f,d,o,n,l,u)}}o.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function l(e,t,o,s){void 0===s&&(s=i());var a,c=u(e,"",0,[],void 0,0,s)||e;try{a=0===r.length?JSON.stringify(c,t,o):JSON.stringify(c,d(t),o)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function u(r,i,o,a,l,d,p){var f;if(d+=1,"object"==typeof r&&null!==r){for(f=0;f<a.length;f++)if(a[f]===r)return void s(t,r,i,l);try{if("function"==typeof r.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&d>p.depthLimit)return void s(e,r,i,l);if(void 0!==p.edgesLimit&&o+1>p.edgesLimit)return void s(e,r,i,l);if(a.push(r),Array.isArray(r))for(f=0;f<r.length;f++)u(r[f],f,f,a,r,d,p);else{var _={},m=Object.keys(r).sort(c);for(f=0;f<m.length;f++){var h=m[f];u(r[h],h,f,a,r,d,p),_[h]=r[h]}if(void 0===l)return _;n.push([l,i,r]),l[i]=_}a.pop()}}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(r.length>0)for(var i=0;i<r.length;i++){var o=r[i];if(o[1]===t&&o[0]===n){n=o[2],r.splice(i,1);break}}return e.call(this,t,n)}}return fastSafeStringify}function requireOasKitCommon(){if(hasRequiredOasKitCommon)return oasKitCommon;hasRequiredOasKitCommon=1;const e=requireFastSafeStringify(),t=process.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"",yellow:"",green:"",normal:""};function n(t,n){function r(t,n){return e.stringify(t)===e.stringify(Object.assign({},t,n))}return r(t,n)&&r(n,t)}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,(function(e,t){return t.toUpperCase()}))};function r(e){let t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}return oasKitCommon={colour:t,uniqueOnly:function(e,t,n){return n.indexOf(e)===t},hasDuplicates:function(e){return new Set(e).size!==e.length},allSame:function(e){return new Set(e).size<=1},distinctArray:function(e){return e.length===function(e){let t=[];for(let r of e)t.find((function(e,t,i){return n(e,r)}))||t.push(r);return t}(e).length},firstDupe:function(e){return e.find((function(t,n,r){return e.indexOf(t)<n}))},hash:function(e){let t,n=0;if(0===e.length)return n;for(let r=0;r<e.length;r++)t=e.charCodeAt(r),n=(n<<5)-n+t,n|=0;return n},parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],sanitise:r,sanitiseAll:function(e){return r(e.split("/").join("_"))}},oasKitCommon}function requireOasResolver(){if(hasRequiredOasResolver)return oasResolver;hasRequiredOasResolver=1;const e=require$$0$7,t=require$$0$8,n=require$$0$k,r=require$$4,i=requireYaml(),o=requireJptr().jptr,s=requireRecurse().recurse,a=requireClone().clone,c=requireDereference().dereference,l=requireIsref().isRef,u=requireOasKitCommon();function d(e,t,r,i,c,d){let p=d.externalRefs[r+i].paths[0],f=n.parse(c),_={},m=1;for(;m;)m=0,s(e,{identityDetection:!0},(function(e,r,i){if(l(e,r))if(e[r].startsWith("#"))if(_[e[r]]||e.$fixed){if(!e.$fixed){let t=(p+"/"+_[e[r]]).split("/#/").join("/");i.parent[i.pkey]={$ref:t,"x-miro":e[r],$fixed:!0},d.verbose>1&&console.warn("Replacing with",t),m++}}else{let n=a(o(t,e[r]));if(d.verbose>1&&console.warn((!1===n?u.colour.red:u.colour.green)+"Fragment resolution",e[r],u.colour.normal),!1===n){if(i.parent[i.pkey]={},d.fatal){let t=new Error("Fragment $ref resolution failed "+e[r]);if(!d.promise)throw t;d.promise.reject(t)}}else m++,i.parent[i.pkey]=n,_[e[r]]=i.path.replace("/%24ref","")}else if(f.protocol){let t=n.resolve(c,e[r]).toString();d.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",e[r],"as",t,u.colour.normal),e["x-miro"]=e[r],d.externalRefs[e[r]]&&(d.externalRefs[t]||(d.externalRefs[t]=d.externalRefs[e[r]]),d.externalRefs[t].failed=d.externalRefs[e[r]].failed),e[r]=t}else if(!e["x-miro"]){let t=n.resolve(c,e[r]).toString(),i=!1;d.externalRefs[e[r]]&&(i=d.externalRefs[e[r]].failed),i||(d.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",e[r],"as",t,u.colour.normal),e["x-miro"]=e[r],e[r]=t)}}));return s(e,{},(function(e,t,n){l(e,t)&&void 0!==e.$fixed&&delete e.$fixed})),d.verbose>1&&console.warn("Finished fragment resolution"),e}function p(e,t){if(!t.filters||!t.filters.length)return e;for(let n of t.filters)e=n(e,t);return e}function f(r,s,c,l){var u=n.parse(c.source),f=c.source.split("\\").join("/").split("/");f.pop()||f.pop();let _="",m=s.split("#");m.length>1&&(_="#"+m[1],s=m[0]),f=f.join("/");let h=n.parse(s),g=(A=h.protocol,y=u.protocol,A&&A.length>2?A:y&&y.length>2?y:"file:");var A,y;let v;if(v="file:"===g?t.resolve(f?f+"/":"",s):n.resolve(f?f+"/":"",s),c.cache[v]){c.verbose&&console.warn("CACHED",v,_);let e=a(c.cache[v]),t=c.externalRef=e;if(_&&(t=o(t,_),!1===t&&(t={},c.fatal))){let e=new Error("Cached $ref resolution failed "+v+_);if(!c.promise)throw e;c.promise.reject(e)}return t=d(t,e,s,_,v,c),t=p(t,c),l(a(t),v,c),Promise.resolve(t)}if(c.verbose&&console.warn("GET",v,_),c.handlers&&c.handlers[g])return c.handlers[g](f,s,_,c).then((function(e){return c.externalRef=e,e=p(e,c),c.cache[v]=e,l(e,v,c),e})).catch((function(e){throw c.verbose&&console.warn(e),e}));if(g&&g.startsWith("http")){const e=Object.assign({},c.fetchOptions,{agent:c.agent});return c.fetch(v,e).then((function(e){if(200!==e.status){if(c.ignoreIOErrors)return c.verbose&&console.warn("FAILED",s),c.externalRefs[s].failed=!0,'{"$ref":"'+s+'"}';throw new Error(`Received status code ${e.status}: ${v}`)}return e.text()})).then((function(e){try{let t=i.parse(e,{schema:"core",prettyErrors:!0});if(e=c.externalRef=t,c.cache[v]=a(e),_&&!1===(e=o(e,_))&&(e={},c.fatal)){let e=new Error("Remote $ref resolution failed "+v+_);if(!c.promise)throw e;c.promise.reject(e)}e=p(e=d(e,t,s,_,v,c),c)}catch(e){if(c.verbose&&console.warn(e),!c.promise||!c.fatal)throw e;c.promise.reject(e)}return l(e,v,c),e})).catch((function(e){if(c.verbose&&console.warn(e),c.cache[v]={},!c.promise||!c.fatal)throw e;c.promise.reject(e)}))}{const t='{"$ref":"'+s+'"}';return function(t,n,r,i,o){return new Promise((function(s,a){e.readFile(t,n,(function(e,t){e?r.ignoreIOErrors&&o?(r.verbose&&console.warn("FAILED",i),r.externalRefs[i].failed=!0,s(o)):a(e):s(t)}))}))}(v,c.encoding||"utf8",c,s,t).then((function(e){try{let t=i.parse(e,{schema:"core",prettyErrors:!0});if(e=c.externalRef=t,c.cache[v]=a(e),_&&!1===(e=o(e,_))&&(e={},c.fatal)){let e=new Error("File $ref resolution failed "+v+_);if(!c.promise)throw e;c.promise.reject(e)}e=p(e=d(e,t,s,_,v,c),c)}catch(e){if(c.verbose&&console.warn(e),!c.promise||!c.fatal)throw e;c.promise.reject(e)}return l(e,v,c),e})).catch((function(e){if(c.verbose&&console.warn(e),!c.promise||!c.fatal)throw e;c.promise.reject(e)}))}}function _(e){return new Promise((function(t,n){(function(e){return new Promise((function(t,n){function r(t,n,r){if(t[n]&&l(t[n],"$ref")){let o=t[n].$ref;if(!o.startsWith("#")){let s="";if(!i[o]){let t=Object.keys(i).find((function(e,t,n){return o.startsWith(e+"/")}));t&&(e.verbose&&console.warn("Found potential subschema at",t),s="/"+(o.split("#")[1]||"").replace(t.split("#")[1]||""),s=s.split("/undefined").join(""),o=t)}if(i[o]||(i[o]={resolved:!1,paths:[],extras:{},description:t[n].description}),i[o].resolved)if(i[o].failed);else if(e.rewriteRefs){let r=i[o].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",o,r),t[n]["x-miro"]=o,t[n].$ref=r+s}else t[n]=a(i[o].data);else i[o].paths.push(r.path),i[o].extras[r.path]=s}}}let i=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(i);s(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},r),s(e.openapi.components,{identityDetection:!0,path:"#/components"},r),s(e.openapi,{identityDetection:!0},r),t(i)}))})(e).then((function(t){for(let n in t)if(!t[n].resolved){let r=e.resolver.depth;r>0&&r++,e.resolver.actions[r].push((function(){return f(e.openapi,n,e,(function(e,r,i){if(!t[n].resolved){let o={};o.context=t[n],o.$ref=n,o.original=a(e),o.updated=e,o.source=r,i.externals.push(o),t[n].resolved=!0}let s=Object.assign({},i,{source:"",resolver:{actions:i.resolver.actions,depth:i.resolver.actions.length-1,base:i.resolver.base}});i.patch&&t[n].description&&!e.description&&"object"==typeof e&&(e.description=t[n].description),t[n].data=e;let c=(l=t[n].paths,[...new Set(l)]);var l;c=c.sort((function(e,t){const n=e.startsWith("#/components/")||e.startsWith("#/definitions/"),r=t.startsWith("#/components/")||t.startsWith("#/definitions/");return n&&!r?-1:r&&!n?1:0}));for(let r of c)if(t[n].resolvedAt&&r!==t[n].resolvedAt&&r.indexOf("x-ms-examples/")<0)i.verbose>1&&console.warn("Creating pointer to data at",r),o(i.openapi,r,{$ref:t[n].resolvedAt+t[n].extras[r],"x-miro":n+t[n].extras[r]});else{t[n].resolvedAt?i.verbose>1&&console.warn("Avoiding circular reference"):(t[n].resolvedAt=r,i.verbose>1&&console.warn("Creating initial clone of data at",r));let s=a(e);o(i.openapi,r,s)}0===i.resolver.actions[s.resolver.depth].length&&i.resolver.actions[s.resolver.depth].push((function(){return _(s)}))}))}))}})).catch((function(t){e.verbose&&console.warn(t),n(t)}));let r={options:e};r.actions=e.resolver.actions[e.resolver.depth],t(r)}))}function m(e,t,n){e.resolver.actions.push([]),_(e).then((function(r){var i;(i=r.actions,i.reduce(((e,t)=>e.then((e=>t().then(Array.prototype.concat.bind(e))))),Promise.resolve([]))).then((function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout((function(){m(r.options,t,n)}),0):(e.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),e.openapi=c(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),s(e.openapi,{},(function(t,n,r){l(t,n)&&(e.preserveMiro||delete t["x-miro"])})),t(e))})).catch((function(t){e.verbose&&console.warn(t),n(t)}))})).catch((function(t){e.verbose&&console.warn(t),n(t)}))}function h(e){if(e.cache||(e.cache={}),e.fetch||(e.fetch=r),e.source){let r=n.parse(e.source);(!r.protocol||r.protocol.length<=2)&&(e.source=t.resolve(e.source))}e.externals=[],e.externalRefs={},e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}return oasResolver={optionalResolve:function(e){return h(e),new Promise((function(t,n){e.resolve?m(e,t,n):t(e)}))},resolve:function(e,t,n){return n||(n={}),n.openapi=e,n.source=t,n.resolve=!0,h(n),new Promise((function(e,t){m(n,e,t)}))}},oasResolver}function requireOasSchemaWalker(){if(hasRequiredOasSchemaWalker)return oasSchemaWalker;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}return hasRequiredOasSchemaWalker=1,oasSchemaWalker={getDefaultState:e,walkSchema:function t(n,r,i,o){if(void 0===i.depth&&(i=e()),null==n)return n;if(void 0!==n.$ref){let e={$ref:n.$ref};return i.allowRefSiblings&&n.description&&(e.description=n.description),o(e,r,i),e}if(i.combine&&(n.allOf&&Array.isArray(n.allOf)&&1===n.allOf.length&&delete(n=Object.assign({},n.allOf[0],n)).allOf,n.anyOf&&Array.isArray(n.anyOf)&&1===n.anyOf.length&&delete(n=Object.assign({},n.anyOf[0],n)).anyOf,n.oneOf&&Array.isArray(n.oneOf)&&1===n.oneOf.length&&delete(n=Object.assign({},n.oneOf[0],n)).oneOf),o(n,r,i),i.seen.has(n))return n;if("object"==typeof n&&null!==n&&i.seen.set(n,!0),i.top=!1,i.depth++,void 0!==n.items&&(i.property="items",t(n.items,n,i,o)),n.additionalItems&&"object"==typeof n.additionalItems&&(i.property="additionalItems",t(n.additionalItems,n,i,o)),n.additionalProperties&&"object"==typeof n.additionalProperties&&(i.property="additionalProperties",t(n.additionalProperties,n,i,o)),n.properties)for(let e in n.properties){let r=n.properties[e];i.property="properties/"+e,t(r,n,i,o)}if(n.patternProperties)for(let e in n.patternProperties){let r=n.patternProperties[e];i.property="patternProperties/"+e,t(r,n,i,o)}if(n.allOf)for(let e in n.allOf){let r=n.allOf[e];i.property="allOf/"+e,t(r,n,i,o)}if(n.anyOf)for(let e in n.anyOf){let r=n.anyOf[e];i.property="anyOf/"+e,t(r,n,i,o)}if(n.oneOf)for(let e in n.oneOf){let r=n.oneOf[e];i.property="oneOf/"+e,t(r,n,i,o)}return n.not&&(i.property="not",t(n.not,n,i,o)),i.depth--,n}},oasSchemaWalker}function requireStatusCodes(){if(hasRequiredStatusCodes)return statusCodes;hasRequiredStatusCodes=1;const e=require$$2$1;return statusCodes={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},e.STATUS_CODES)}}var name="swagger2openapi",version="7.0.8",description="Convert Swagger 2.0 definitions to OpenApi 3.0 and validate",main$1="index.js",bin={swagger2openapi:"./swagger2openapi.js","oas-validate":"./oas-validate.js",boast:"./boast.js"},funding="https://github.com/Mermade/oas-kit?sponsor=1",scripts={test:"mocha"},browserify={transform:[["babelify",{presets:["es2015"]}]]},repository={url:"https://github.com/Mermade/oas-kit.git",type:"git"},bugs={url:"https://github.com/mermade/oas-kit/issues"},author="Mike Ralphson <mike.ralphson@gmail.com>",license="BSD-3-Clause",dependencies={"call-me-maybe":"^1.0.1","node-fetch":"^2.6.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.8","oas-resolver":"^2.5.6","oas-schema-walker":"^1.1.5","oas-validator":"^5.0.8",reftools:"^1.1.9",yaml:"^1.10.0",yargs:"^17.0.1"},keywords=["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],gitHead="b1bba3fc5007e96a991bf2a015cf0534ac36b88b",require$$14={name:name,version:version,description:description,main:main$1,bin:bin,funding:funding,scripts:scripts,browserify:browserify,repository:repository,bugs:bugs,author:author,license:license,dependencies:dependencies,keywords:keywords,gitHead:gitHead},swagger2openapi,hasRequiredSwagger2openapi;function requireSwagger2openapi(){if(hasRequiredSwagger2openapi)return swagger2openapi;hasRequiredSwagger2openapi=1;const e=require$$0$7,t=require$$0$k,n=requireMaybe(),r=require$$4,i=requireYaml(),o=requireJptr(),s=o.jptr,a=requireIsref().isRef,c=requireClone().clone,l=requireClone().circularClone,u=requireRecurse().recurse,d=requireOasResolver(),p=requireOasSchemaWalker(),f=requireOasKitCommon(),_=requireStatusCodes().statusCodes,m=require$$14.version,h="3.0.0";let g;class A extends Error{constructor(e){super(e),this.name="S2OError"}}function y(e,t){let n=new A(e);if(n.options=t,!t.promise)throw n;t.promise.reject(n)}function v(e,t,n){n.warnOnly?t[n.warnProperty||"x-s2o-warning"]=e:y(e,n)}function b(e,t){p.walkSchema(e,{},{},(function(e,n,r){!function(e){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let t in e.discriminator.mapping){let n=e.discriminator.mapping[t];n.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=n.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,n){if(e.nullable&&n.patches++,e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(n.patch){if(n.patches++,0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let t of e.type){let n={};if("null"===t)e.nullable=!0;else{n.type=t;for(let t of f.arrayProperties)void 0!==e.prop&&(n[t]=e[t],delete e[t])}n.type&&e.oneOf.push(n)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&v("Lost properties from oneOf",e,n),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else y("(Patchable) schema type must not be an array",n);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),void 0!==e.allowEmptyValue&&(n.patches++,delete e.allowEmptyValue)}(e,n,t)}))}function C(e,t,n){let r=n.payload.options;if(a(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],n.parent[n.pkey]=c(r.openapi.consumes);else if("#/produces"===e[t])delete e[t],n.parent[n.pkey]=c(r.openapi.produces);else if(e[t].startsWith("#/definitions/")){let n=e[t].replace("#/definitions/","").split("/");const i=o.jpunescape(n[0]);let s=g.schemas[decodeURIComponent(i)];s?n[0]=s:v("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+f.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+f.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let n=c(o.jptr(r.openapi,e[t]));if(!1===n)v("direct $ref not found "+e[t],e,r);else if(r.refmap[e[t]])e[t]=r.refmap[e[t]];else{let i=e[t];i=i.replace("/properties/headers/",""),i=i.replace("/properties/responses/",""),i=i.replace("/properties/parameters/",""),i=i.replace("/properties/schemas/","");let s="schemas",a=i.lastIndexOf("/schema");if(s=i.indexOf("/headers/")>a?"headers":i.indexOf("/responses/")>a?"responses":i.indexOf("/example")>a?"examples":i.indexOf("/x-")>a?"extensions":i.indexOf("/parameters/")>a?"parameters":"schemas","schemas"===s&&b(n,r),"responses"!==s&&"extensions"!==s){let i=s.substr(0,s.length-1);"parameter"===i&&n.name&&n.name===f.sanitise(n.name)&&(i=encodeURIComponent(n.name));let a=1;for(e["x-miro"]&&(i=function(e){return e=e.indexOf("#")>=0?e.split("#")[1].split("/").pop():e.split("/").pop().split(".")[0],encodeURIComponent(f.sanitise(e))}(e["x-miro"]),a="");o.jptr(r.openapi,"#/components/"+s+"/"+i+a);)a=""===a?2:++a;let c="#/components/"+s+"/"+i+a,l="";"examples"===s&&(n={value:n},l="/value"),o.jptr(r.openapi,c,n),r.refmap[e[t]]=c+l,e[t]=c+l}}}if(delete e["x-miro"],Object.keys(e).length>1){const i=e[t],o=n.path.indexOf("/schema")>=0;"preserve"===r.refSiblings||(o&&"allOf"===r.refSiblings?(delete e.$ref,n.parent[n.pkey]={allOf:[{$ref:i},e]}):n.parent[n.pkey]={$ref:i})}}if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let n=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),i=g.schemas[decodeURIComponent(n[0])];i?n[0]=i:v("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}}function E(e){for(let t in e)for(let n in e[t]){let r=f.sanitise(n);n!==r&&(e[t][r]=e[t][n],delete e[t][n])}}function x(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let n={},r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),void 0!==e.authorizationUrl&&(n.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(n.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),n.scopes=e.scopes||{},e.flows={},e.flows[r]=n,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?(t.patches++,delete e.name):y("(Patchable) oauth2 securitySchemes should not have name property",t))}}function S(e){return e&&!e["x-s2o-delete"]}function k(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type&&(e.items.collectionFormat!==e.collectionFormat&&v("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),"array"===e.type?("ssv"===e.collectionFormat?v("collectionFormat:ssv is no longer supported for headers",e,t):"pipes"===e.collectionFormat?v("collectionFormat:pipes is no longer supported for headers",e,t):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(v("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(t.patch?(t.patches++,delete e.collectionFormat):y("(Patchable) collectionFormat is only applicable to header.type array",t)),delete e.type;for(let t of f.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(let t of f.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}}function D(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+f.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&v("Definition used as parameter",e,t)}function w(e,t,n,r,i,o,a){let l,d={},p=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!a.patch)return y("(Patchable) operation.consumes must be an array",a);a.patches++,t.consumes=[t.consumes]}Array.isArray(o.consumes)||delete o.consumes;let _=((t?t.consumes:null)||o.consumes||[]).filter(f.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){D(e,a);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),n=!1,r=o.components.parameters[t];if(r&&!r["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,n=!0),n){let t=e.$ref,n=s(o,e.$ref);!n&&t.startsWith("#/")?v("Could not resolve reference "+t,e,a):n&&(e=n)}}if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(a.patch?(a.patches++,e.type="string"):y("(Patchable) parameter.type is mandatory for non-body parameters",a)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=s(o,e.type.$ref)),"file"===e.type&&(e["x-s2o-originalType"]=e.type,l=e.type),e.description&&"object"==typeof e.description&&e.description.$ref&&(e.description=s(o,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(a.patch?(a.patches++,delete e.collectionFormat):y("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":v("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":v("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===t&&(e.explode=!0),"tsv"===t&&(v("collectionFormat:tsv is no longer supported",e,a),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)v("parameter has array,items and schema",e,a);else{e.schema&&a.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,u(e.schema.items,null,(function(n,r,i){"collectionFormat"===r&&"string"==typeof n[r]&&(t&&n[r]!==t&&v("Nested collectionFormats are not supported",e,a),delete n[r])})));for(let t of f.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&b(e.schema,a),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){p=!1,d.content={};let t="application/x-www-form-urlencoded";if(_.length&&_.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),d.content[t]={},e.schema)d.content[t].schema=e.schema,e.schema.$ref&&(d["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{d.content[t].schema={},d.content[t].schema.type="object",d.content[t].schema.properties={},d.content[t].schema.properties[e.name]={};let n=d.content[t].schema,r=d.content[t].schema.properties[e.name];e.description&&(r.description=e.description),e.example&&(r.example=e.example),e.type&&(r.type=e.type);for(let t of f.parameterTypeProperties)void 0!==e[t]&&(r[t]=e[t]);!0===e.required&&(n.required||(n.required=[]),n.required.push(e.name),d.required=!0),void 0!==e.default&&(r.default=e.default),r.properties&&(r.properties=e.properties),e.allOf&&(r.allOf=e.allOf),"array"===e.type&&e.items&&(r.items=e.items,r.items.collectionFormat&&delete r.items.collectionFormat),"file"!==l&&"file"!==e["x-s2o-originalType"]||(r.type="string",r.format="binary"),I(e,r)}}else e&&"file"===e.type&&(e.required&&(d.required=e.required),d.content={},d.content["application/octet-stream"]={},d.content["application/octet-stream"].schema={},d.content["application/octet-stream"].schema.type="string",d.content["application/octet-stream"].schema.format="binary",I(e,d));if(e&&"body"===e.in){d.content={},e.name&&(d["x-s2o-name"]=(t&&t.operationId?f.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(d.description=e.description),e.required&&(d.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?d["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(d["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),_.length||_.push("application/json");for(let t of _)d.content[t]={},d.content[t].schema=c(e.schema||{}),b(d.content[t].schema,a);I(e,d)}if(Object.keys(d).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&p){t.requestBody["x-s2o-overloaded"]=!0,v("Operation "+(t.operationId||i)+" has multiple requestBodies",t,a)}else t.requestBody||(t=n[r]=function(e,t){let n={};for(let r of Object.keys(e))n[r]=e[r],"parameters"===r&&(n.requestBody={},t.rbname&&(n[t.rbname]=""));return n.requestBody={},n}(t,a)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&d.content["multipart/form-data"]&&d.content["multipart/form-data"].schema&&d.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,d.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(d.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&d.content["application/x-www-form-urlencoded"]&&d.content["application/x-www-form-urlencoded"].schema&&d.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,d.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(d.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,d),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=f.sanitiseAll(t.operationId))));if(e&&!e["x-s2o-delete"]){delete e.type;for(let t of f.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(a.patch?(a.patches++,e.required=!0):y("(Patchable) path parameters must be required:true ["+e.name+" in "+i+"]",a))}return t}function I(e,t){for(let n in e)n.startsWith("x-")&&!n.startsWith("x-s2o")&&(t[n]=e[n])}function T(e,t,n,r,i){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?v("definition used as response: "+e.$ref,e,i):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+f.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((void 0===e.description||null===e.description||""===e.description&&i.patch)&&(i.patch?"object"!=typeof e||Array.isArray(e)||(i.patches++,e.description=_[e]||""):y("(Patchable) response.description is mandatory",i)),void 0!==e.schema){if(b(e.schema,i),e.schema.$ref&&"string"==typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+f.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),n&&n.produces&&"string"==typeof n.produces){if(!i.patch)return y("(Patchable) operation.produces must be an array",i);i.patches++,n.produces=[n.produces]}r.produces&&!Array.isArray(r.produces)&&delete r.produces;let t=((n?n.produces:null)||r.produces||[]).filter(f.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let n of t){if(e.content[n]={},e.content[n].schema=c(e.schema),e.examples&&e.examples[n]){let t={};t.value=e.examples[n],e.content[n].examples={},e.content[n].examples.response=t,delete e.examples[n]}"file"===e.content[n].schema.type&&(e.content[n].schema={type:"string",format:"binary"})}delete e.schema}for(let t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(let t in e.headers)"status code"===t.toLowerCase()?i.patch?(i.patches++,delete e.headers[t]):y('(Patchable) "Status Code" is not a valid header',i):k(e.headers[t],i)}}function F(e,n,r,i,a){for(let l in e){let u=e[l];u&&u["x-trace"]&&"object"==typeof u["x-trace"]&&(u.trace=u["x-trace"],delete u["x-trace"]),u&&u["x-summary"]&&"string"==typeof u["x-summary"]&&(u.summary=u["x-summary"],delete u["x-summary"]),u&&u["x-description"]&&"string"==typeof u["x-description"]&&(u.description=u["x-description"],delete u["x-description"]),u&&u["x-servers"]&&Array.isArray(u["x-servers"])&&(u.servers=u["x-servers"],delete u["x-servers"]);for(let e in u)if(f.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let d=u[e];if(d&&d.parameters&&Array.isArray(d.parameters)){if(u.parameters)for(let t of u.parameters){"string"==typeof t.$ref&&(D(t,r),t=s(a,t.$ref)),d.parameters.find((function(e,n,r){return e.name===t.name&&e.in===t.in}))||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(d=w(t,d,u,e,l,a,r),r.rbname&&""===d[r.rbname]&&delete d[r.rbname])}for(let t of d.parameters)d=w(t,d,u,e,e+":"+l,a,r);r.rbname&&""===d[r.rbname]&&delete d[r.rbname],r.debug||d.parameters&&(d.parameters=d.parameters.filter(S))}if(d&&d.security&&E(d.security),"object"==typeof d){if(!d.responses){let e={description:"Default response"};d.responses={default:e}}for(let e in d.responses){T(d.responses[e],0,d,a,r)}}if(d&&d["x-servers"]&&Array.isArray(d["x-servers"]))d.servers=d["x-servers"],delete d["x-servers"];else if(d&&d.schemes&&d.schemes.length)for(let e of d.schemes)if((!a.schemes||a.schemes.indexOf(e)<0)&&(d.servers||(d.servers=[]),Array.isArray(a.servers)))for(let n of a.servers){let r=c(n),i=t.parse(r.url);i.protocol=e,r.url=i.format(),d.servers.push(r)}if(r.debug&&(d["x-s2o-consumes"]=d.consumes||[],d["x-s2o-produces"]=d.produces||[]),d){if(delete d.consumes,delete d.produces,delete d.schemes,d["x-ms-examples"]){for(let e in d["x-ms-examples"]){let t=d["x-ms-examples"][e],n=f.sanitiseAll(e);if(t.parameters)for(let n in t.parameters){let r=t.parameters[n];for(let t of(d.parameters||[]).concat(u.parameters||[]))t.$ref&&(t=o.jptr(a,t.$ref)),t.name!==n||t.example||(t.examples||(t.examples={}),t.examples[e]={value:r})}if(t.responses)for(let r in t.responses){if(t.responses[r].headers)for(let e in t.responses[r].headers){let n=t.responses[r].headers[e];for(let t in d.responses[r].headers)if(t===e){d.responses[r].headers[t].example=n}}if(t.responses[r].body&&(a.components.examples[n]={value:c(t.responses[r].body)},d.responses[r]&&d.responses[r].content))for(let t in d.responses[r].content){let i=d.responses[r].content[t];i.examples||(i.examples={}),i.examples[e]={$ref:"#/components/examples/"+n}}}}delete d["x-ms-examples"]}if(d.parameters&&0===d.parameters.length&&delete d.parameters,d.requestBody){let t=d.operationId?f.sanitiseAll(d.operationId):f.sanitiseAll(e+l).toCamelCase(),r=f.sanitise(d.requestBody["x-s2o-name"]||t||"");delete d.requestBody["x-s2o-name"];let s=JSON.stringify(d.requestBody),a=f.hash(s);if(!i[a]){let e={};e.name=r,e.body=d.requestBody,e.refs=[],i[a]=e}let c="#/"+n+"/"+encodeURIComponent(o.jpescape(l))+"/"+e+"/requestBody";i[a].refs.push(c)}}}if(u&&u.parameters){for(let e in u.parameters){w(u.parameters[e],null,u,null,l,a,r)}!r.debug&&Array.isArray(u.parameters)&&(u.parameters=u.parameters.filter(S))}}}function R(e,t){let n={};g={schemas:{}},e.security&&E(e.security);for(let n in e.components.securitySchemes){let r=f.sanitise(n);n!==r&&(e.components.securitySchemes[r]&&y("Duplicate sanitised securityScheme name "+r,t),e.components.securitySchemes[r]=e.components.securitySchemes[n],delete e.components.securitySchemes[n]),x(e.components.securitySchemes[r],t)}for(let n in e.components.schemas){let r=f.sanitiseAll(n),i="";if(n!==r){for(;e.components.schemas[r+i];)i=i?++i:2;e.components.schemas[r+i]=e.components.schemas[n],delete e.components.schemas[n]}g.schemas[n]=r+i,b(e.components.schemas[r+i],t)}t.refmap={},u(e,{payload:{options:t}},C),function(e,t){for(let n in t.refmap)o.jptr(e,n,{$ref:t.refmap[n]})}(e,t);for(let n in e.components.parameters){let r=f.sanitise(n);n!==r&&(e.components.parameters[r]&&y("Duplicate sanitised parameter name "+r,t),e.components.parameters[r]=e.components.parameters[n],delete e.components.parameters[n]),w(e.components.parameters[r],null,null,null,r,e,t)}for(let n in e.components.responses){let r=f.sanitise(n);n!==r&&(e.components.responses[r]&&y("Duplicate sanitised response name "+r,t),e.components.responses[r]=e.components.responses[n],delete e.components.responses[n]);let i=e.components.responses[r];if(T(i,0,null,e,t),i.headers)for(let e in i.headers)"status code"===e.toLowerCase()?t.patch?(t.patches++,delete i.headers[e]):y('(Patchable) "Status Code" is not a valid header',t):k(i.headers[e],t)}for(let t in e.components.requestBodies){let r=e.components.requestBodies[t],i=JSON.stringify(r),o=f.hash(i),s={};s.name=t,s.body=r,s.refs=[],n[o]=s}if(F(e.paths,"paths",t,n,e),e["x-ms-paths"]&&F(e["x-ms-paths"],"x-ms-paths",t,n,e),!t.debug)for(let t in e.components.parameters){e.components.parameters[t]["x-s2o-delete"]&&delete e.components.parameters[t]}t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let r=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let i in n){let s=n[i];if(s.refs.length>1){let n="";for(s.name||(s.name="requestBody",n=t++);r.indexOf(s.name+n)>=0;)n=n?++n:2;s.name=s.name+n,r.push(s.name),e.components.requestBodies[s.name]=c(s.body);for(let t in s.refs){let n={};n.$ref="#/components/requestBodies/"+s.name,o.jptr(e,s.refs[t],n)}}}}return e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components,e}function P(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,(function(t,n){e.variables||(e.variables={}),e.variables[n]={default:"unknown"}})),e):e}function N(e,t,n){if(void 0===e.info||null===e.info){if(!t.patch)return n(new A("(Patchable) info object is mandatory"));t.patches++,e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return n(new A("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return n(new A("(Patchable) info.title cannot be null"));t.patches++,e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return n(new A("(Patchable) info.version cannot be null"));t.patches++,e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return n(new A("(Patchable) info.version must be a string"));t.patches++,e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return n(new A("(Patchable) info should not have logo property"));t.patches++,e.info["x-logo"]=e.info.logo,delete e.info.logo}if(void 0!==e.info.termsOfService){if(null===e.info.termsOfService){if(!t.patch)return n(new A("(Patchable) info.termsOfService cannot be null"));t.patches++,e.info.termsOfService=""}try{new URL(e.info.termsOfService)}catch(r){if(!t.patch)return n(new A("(Patchable) info.termsOfService must be a URL"));t.patches++,delete e.info.termsOfService}}}function B(e,t,n){if(void 0===e.paths){if(!t.patch)return n(new A("(Patchable) paths object is mandatory"));t.patches++,e.paths={}}}function O(e,t,r){return n(r,new Promise((function(n,r){if(e||(e={}),t.original=e,t.text||(t.text=i.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=n,t.promise.reject=r,t.patches=0,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),function(e,t){const n=new WeakSet;u(e,{identityDetection:!0},(function(e,r,i){"object"==typeof e[r]&&null!==e[r]&&(n.has(e[r])?t.anchors?e[r]=c(e[r]):y("YAML anchor or merge key at "+i.path,t):n.add(e[r]))}))}(e,t),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=l(e),N(t.openapi,t,r),B(t.openapi,t,r),void d.optionalResolve(t).then((function(){return t.direct?n(t.openapi):n(t)})).catch((function(e){console.warn(e),r(e)}));if(!e.swagger||"2.0"!=e.swagger)return r(new A("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi="string"==typeof t.targetVersion&&t.targetVersion.startsWith("3.")?t.targetVersion:h,t.origin){o["x-origin"]||(o["x-origin"]=[]);let n={};n.url=t.source||t.origin,n.format="swagger",n.version=e.swagger,n.converter={},n.converter.url="https://github.com/mermade/oas-kit",n.converter.version=m,o["x-origin"].push(n)}if(o=Object.assign(o,l(e)),delete o.swagger,u(o,{},(function(e,t,n){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&n.path.indexOf("/example")<0&&delete e[t]})),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let n={},r=(e.basePath||"").replace(/\/$/,"");n.url=(t?t+":":"")+"//"+e.host+r,P(n),o.servers||(o.servers=[]),o.servers.push(n)}else if(e.basePath){let t={};t.url=e.basePath,P(t),o.servers||(o.servers=[]),o.servers.push(t)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let t=e["x-ms-parameterized-host"],n={};n.url=t.hostTemplate+(e.basePath?e.basePath:""),n.variables={};const r=n.url.match(/\{\w+\}/g);for(let e in t.parameters){let i=t.parameters[e];i.$ref&&(i=c(s(o,i.$ref))),e.startsWith("x-")||(delete i.required,delete i.type,delete i.in,void 0===i.default&&(i.enum?i.default=i.enum[0]:i.default="none"),i.name||(i.name=r[e].replace("{","").replace("}","")),n.variables[i.name]=i,delete i.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(n):e.schemes.forEach((e=>{o.servers.push(Object.assign({},n,{url:e+"://"+n.url}))})),delete o["x-ms-parameterized-host"]}N(o,t,r),B(o,t,r),"string"==typeof o.consumes&&(o.consumes=[o.consumes]),"string"==typeof o.produces&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,d.optionalResolve(t).then((function(){R(t.openapi,t),t.direct?n(t.openapi):n(t)})).catch((function(e){console.warn(e),r(e)}))})))}function q(e,t,r){return n(r,new Promise((function(n,r){let o=null,s=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(n){s=n;try{o=i.parse(e,{schema:"core",prettyErrors:!0}),t.sourceYaml=!0,t.text=e}catch(e){s=e}}o?O(o,t).then((e=>n(e))).catch((e=>r(e))):r(new A(s?s.message:"Could not parse string"))})))}return swagger2openapi={S2OError:A,targetVersion:h,convert:O,convertObj:O,convertUrl:function(e,t,i){return n(i,new Promise((function(n,i){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),t.fetch||(t.fetch=r);const o=Object.assign({},t.fetchOptions,{agent:t.agent});t.fetch(e,o).then((function(t){if(200!==t.status)throw new A(`Received status code ${t.status}: ${e}`);return t.text()})).then((function(e){q(e,t).then((e=>n(e))).catch((e=>i(e)))})).catch((function(e){i(e)}))})))},convertStr:q,convertFile:function(t,r,i){return n(i,new Promise((function(n,i){e.readFile(t,r.encoding||"utf8",(function(e,o){e?i(e):(r.sourceFile=t,q(o,r).then((e=>n(e))).catch((e=>i(e))))}))})))},convertStream:function(e,t,r){return n(r,new Promise((function(n,r){let i="";e.on("data",(function(e){i+=e})).on("end",(function(){q(i,t).then((e=>n(e))).catch((e=>r(e)))}))})))}},swagger2openapi}var swagger2openapiExports=requireSwagger2openapi(),converter=getDefaultExportFromCjs(swagger2openapiExports),OASNormalize=class e{constructor(e,t){this.file=e,this.opts={colorizeErrors:!1,enablePaths:!1,...t},this.type=getType(this.file),this.cache={load:!1,bundle:!1,deref:!1}}async load(){if(this.cache.load)return Promise.resolve(this.cache.load);const e=e=>{const t=stringToJSON(e);return this.cache.load=t,Promise.resolve(t)};switch(this.type){case"json":case"string-json":case"string-yaml":return e(this.file);case"buffer":return e(this.file.toString());case"url":return e(await fetch(normalizeURL(this.file)).then((e=>e.text())));case"path":if(!this.opts.enablePaths)return Promise.reject(new Error("Use `opts.enablePaths` to enable accessing local files."));const t=fs$6.readFileSync(this.file).toString();return t.trim()?e(t):Promise.reject(new Error("No file contents found."));default:return Promise.reject(new Error("Could not load this file."))}}static async convertPostmanToOpenAPI(e){return postmanToOpenAPI(JSON.stringify(e),void 0,{outputFormat:"json",replaceVars:!0}).then(JSON.parse)}async bundle(){return this.cache.bundle?Promise.resolve(this.cache.bundle):this.load().then((t=>isPostman(t)?e.convertPostmanToOpenAPI(t):t)).then((e=>openapiParser.bundle(e))).then((e=>(this.cache.bundle=e,e)))}async deref(){return this.cache.deref?Promise.resolve(this.cache.deref):this.load().then((t=>isPostman(t)?e.convertPostmanToOpenAPI(t):t)).then((e=>openapiParser.dereference(e))).then((e=>(this.cache.deref=e,e)))}async validate(t={convertToLatest:!1}){const n=t.convertToLatest,r=t.parser||{};return r.validate||(r.validate={}),r.validate.colorizeErrors=this.opts.colorizeErrors,this.load().then((async t=>isPostman(t)?e.convertPostmanToOpenAPI(t):t)).then((async e=>{if(!isSwagger(e)&&!isOpenAPI(e))return Promise.reject(new Error("The supplied API definition is unsupported."));if(isSwagger(e)){if(1===parseInt(e.swagger,10))return Promise.reject(new Error("Swagger v1.2 is unsupported."))}const t=JSON.parse(JSON.stringify(e));return openapiParser.validate(t,r).then((()=>!n||isOpenAPI(e)?e:converter.convertObj(e,{anchors:!0}).then((e=>e.openapi)))).catch((e=>Promise.reject(e)))}))}async version(){return this.load().then((e=>{switch(getAPIDefinitionType(e)){case"openapi":return{specification:"openapi",version:e.openapi};case"postman":let t="unknown";if(e?.info?.schema){const n=(e?.info).schema.match(/http(s?):\/\/schema.getpostman.com\/json\/collection\/v([0-9.]+)\//);n&&(t=n[2])}return{specification:"postman",version:t};case"swagger":return{specification:"swagger",version:e.swagger};default:throw new Error("Unknown file detected.")}}))}};const copyProperty=(e,t,n,r)=>{if("length"===n||"prototype"===n)return;if("arguments"===n||"caller"===n)return;const i=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);!canCopyProperty(i,o)&&r||Object.defineProperty(e,n,o)},canCopyProperty=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},changePrototype=(e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},wrappedToString=(e,t)=>`/* Wrapped ${e}*/\n${t}`,toStringDescriptor=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),toStringName=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),changeToString=(e,t,n)=>{const r=""===n?"":`with ${n.trim()}() `,i=wrappedToString.bind(null,r,t.toString());Object.defineProperty(i,"name",toStringName);const{writable:o,enumerable:s,configurable:a}=toStringDescriptor;Object.defineProperty(e,"toString",{value:i,writable:o,enumerable:s,configurable:a})};function mimicFunction(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:r}=e;for(const r of Reflect.ownKeys(t))copyProperty(e,t,r,n);return changePrototype(e,t),changeToString(e,t,r),e}const calledFunctions=new WeakMap,onetime=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,r=0;const i=e.displayName||e.name||"<anonymous>",o=function(...s){if(calledFunctions.set(o,++r),1===r)n=e.apply(this,s),e=void 0;else if(!0===t.throw)throw new Error(`Function \`${i}\` can only be called once`);return n};return mimicFunction(o,e),calledFunctions.set(o,r),o};onetime.callCount=e=>{if(!calledFunctions.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return calledFunctions.get(e)};const signals=[];signals.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&signals.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&signals.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const processOk=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,kExitEmitter=Symbol.for("signal-exit emitter"),global$1=globalThis,ObjectDefineProperty=Object.defineProperty.bind(Object);class Emitter{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(global$1[kExitEmitter])return global$1[kExitEmitter];ObjectDefineProperty(global$1,kExitEmitter,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const n=this.listeners[e],r=n.indexOf(t);-1!==r&&(0===r&&1===n.length?n.length=0:n.splice(r,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(const i of this.listeners[e])r=!0===i(t,n)||r;return"exit"===e&&(r=this.emit("afterExit",t,n)||r),r}}class SignalExitBase{}const signalExitWrap=e=>({onExit:(t,n)=>e.onExit(t,n),load:()=>e.load(),unload:()=>e.unload()});class SignalExitFallback extends SignalExitBase{onExit(){return()=>{}}load(){}unload(){}}class SignalExit extends SignalExitBase{#F="win32"===process$1.platform?"SIGINT":"SIGHUP";#R=new Emitter;#P;#N;#B;#O={};#q=!1;constructor(e){super(),this.#P=e,this.#O={};for(const t of signals)this.#O[t]=()=>{const n=this.#P.listeners(t);let{count:r}=this.#R;const i=e;if("object"==typeof i.__signal_exit_emitter__&&"number"==typeof i.__signal_exit_emitter__.count&&(r+=i.__signal_exit_emitter__.count),n.length===r){this.unload();const n=this.#R.emit("exit",null,t),r="SIGHUP"===t?this.#F:t;n||e.kill(e.pid,r)}};this.#B=e.reallyExit,this.#N=e.emit}onExit(e,t){if(!processOk(this.#P))return()=>{};!1===this.#q&&this.load();const n=t?.alwaysLast?"afterExit":"exit";return this.#R.on(n,e),()=>{this.#R.removeListener(n,e),0===this.#R.listeners.exit.length&&0===this.#R.listeners.afterExit.length&&this.unload()}}load(){if(!this.#q){this.#q=!0,this.#R.count+=1;for(const e of signals)try{const t=this.#O[e];t&&this.#P.on(e,t)}catch(e){}this.#P.emit=(e,...t)=>this.#$(e,...t),this.#P.reallyExit=e=>this.#Q(e)}}unload(){this.#q&&(this.#q=!1,signals.forEach((e=>{const t=this.#O[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#P.removeListener(e,t)}catch(e){}})),this.#P.emit=this.#N,this.#P.reallyExit=this.#B,this.#R.count-=1)}#Q(e){return processOk(this.#P)?(this.#P.exitCode=e||0,this.#R.emit("exit",this.#P.exitCode,null),this.#B.call(this.#P,this.#P.exitCode)):0}#$(e,...t){const n=this.#N;if("exit"===e&&processOk(this.#P)){"number"==typeof t[0]&&(this.#P.exitCode=t[0]);const r=n.call(this.#P,e,...t);return this.#R.emit("exit",this.#P.exitCode,null),r}return n.call(this.#P,e,...t)}}const process$1=globalThis.process,{onExit:onExit,load:load,unload:unload}=signalExitWrap(processOk(process$1)?new SignalExit(process$1):new SignalExitFallback),terminal=process$2.stderr.isTTY?process$2.stderr:process$2.stdout.isTTY?process$2.stdout:void 0,restoreCursor=terminal?onetime((()=>{onExit((()=>{terminal.write("[?25h")}),{alwaysLast:!0})})):()=>{};let isHidden=!1;const cliCursor={show:(e=process$2.stderr)=>{e.isTTY&&(isHidden=!1,e.write("[?25h"))},hide:(e=process$2.stderr)=>{e.isTTY&&(restoreCursor(),isHidden=!0,e.write("[?25l"))},toggle:(e,t)=>{void 0!==e&&(isHidden=e),isHidden?cliCursor.show(t):cliCursor.hide(t)}};var cliSpinnersExports=requireCliSpinners(),cliSpinners=getDefaultExportFromCjs(cliSpinnersExports);function isUnicodeSupported$1(){return"win32"!==process$2.platform?"linux"!==process$2.env.TERM:Boolean(process$2.env.CI)||Boolean(process$2.env.WT_SESSION)||Boolean(process$2.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===process$2.env.ConEmuTask||"Terminus-Sublime"===process$2.env.TERM_PROGRAM||"vscode"===process$2.env.TERM_PROGRAM||"xterm-256color"===process$2.env.TERM||"alacritty"===process$2.env.TERM||"JetBrains-JediTerm"===process$2.env.TERMINAL_EMULATOR}const main={info:chalk.blue("โ„น"),success:chalk.green("โœ”"),warning:chalk.yellow("โš "),error:chalk.red("โœ–")},fallback={info:chalk.blue("i"),success:chalk.green("โˆš"),warning:chalk.yellow("โ€ผ"),error:chalk.red("ร—")},logSymbols=isUnicodeSupported$1()?main:fallback;function ansiRegex({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}const regex=ansiRegex();function stripAnsi(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(regex,"")}function isAmbiguous(e){return 161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function isFullWidth(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}function isWide(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9776&&e<=9783||e>=9800&&e<=9811||9855===e||e>=9866&&e<=9871||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function validate(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function eastAsianWidth(e,{ambiguousAsWide:t=!1}={}){return validate(e),isFullWidth(e)||isWide(e)||t&&isAmbiguous(e)?2:1}var emojiRegex=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uD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200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;const segmenter=new Intl.Segmenter,defaultIgnorableCodePointRegex=/^\p{Default_Ignorable_Code_Point}$/u;function stringWidth(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=stripAnsi(e)),0===e.length)return 0;let i=0;const o={ambiguousAsWide:!n};for(const{segment:t}of segmenter.segment(e)){const e=t.codePointAt(0);e<=31||e>=127&&e<=159||(e>=8203&&e<=8207||65279===e||e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=55296&&e<=57343||e>=65024&&e<=65039||defaultIgnorableCodePointRegex.test(t)||(emojiRegex().test(t)?i+=2:i+=eastAsianWidth(e,o)))}return i}function isInteractive({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}function isUnicodeSupported(){const{env:e}=process$2,{TERM:t,TERM_PROGRAM:n}=e;return"win32"!==process$2.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===n||"vscode"===n||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}const ASCII_ETX_CODE=3;class StdinDiscarder{#L=0;start(){this.#L++,1===this.#L&&this.#M()}stop(){if(this.#L<=0)throw new Error("`stop` called more times than `start`");this.#L--,0===this.#L&&this.#j()}#M(){"win32"!==process$2.platform&&process$2.stdin.isTTY&&(process$2.stdin.setRawMode(!0),process$2.stdin.on("data",this.#U),process$2.stdin.resume())}#j(){process$2.stdin.isTTY&&(process$2.stdin.off("data",this.#U),process$2.stdin.pause(),process$2.stdin.setRawMode(!1))}#U(e){e[0]===ASCII_ETX_CODE&&process$2.emit("SIGINT")}}const stdinDiscarder=new StdinDiscarder;class Ora{#J=0;#V=!1;#H=0;#G=-1;#W=0;#c;#z;#Y;#K;#X;#Z;#ee;#te;#ne;#re;#ie;color;constructor(e){"string"==typeof e&&(e={text:e}),this.#c={color:"cyan",stream:process$2.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#c.color,this.spinner=this.#c.spinner,this.#X=this.#c.interval,this.#Y=this.#c.stream,this.#Z="boolean"==typeof this.#c.isEnabled?this.#c.isEnabled:isInteractive({stream:this.#Y}),this.#ee="boolean"==typeof this.#c.isSilent&&this.#c.isSilent,this.text=this.#c.text,this.prefixText=this.#c.prefixText,this.suffixText=this.#c.suffixText,this.indent=this.#c.indent,"test"===process$2.env.NODE_ENV&&(this._stream=this.#Y,this._isEnabled=this.#Z,Object.defineProperty(this,"_linesToClear",{get(){return this.#J},set(e){this.#J=e}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#G}}),Object.defineProperty(this,"_lineCount",{get(){return this.#H}}))}get indent(){return this.#te}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#te=e,this.#oe()}get interval(){return this.#X??this.#z.interval??100}get spinner(){return this.#z}set spinner(e){if(this.#G=-1,this.#X=void 0,"object"==typeof e){if(void 0===e.frames)throw new Error("The given spinner must have a `frames` property");this.#z=e}else if(isUnicodeSupported())if(void 0===e)this.#z=cliSpinners.dots;else{if("default"===e||!cliSpinners[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#z=cliSpinners[e]}else this.#z=cliSpinners.line}get text(){return this.#ne}set text(e=""){this.#ne=e,this.#oe()}get prefixText(){return this.#re}set prefixText(e=""){this.#re=e,this.#oe()}get suffixText(){return this.#ie}set suffixText(e=""){this.#ie=e,this.#oe()}get isSpinning(){return void 0!==this.#K}#se(e=this.#re,t=" "){return"string"==typeof e&&""!==e?e+t:"function"==typeof e?e()+t:""}#ae(e=this.#ie,t=" "){return"string"==typeof e&&""!==e?t+e:"function"==typeof e?t+e():""}#oe(){const e=this.#Y.columns??80,t=this.#se(this.#re,"-"),n=this.#ae(this.#ie,"-"),r=" ".repeat(this.#te)+t+"--"+this.#ne+"--"+n;this.#H=0;for(const t of stripAnsi(r).split("\n"))this.#H+=Math.max(1,Math.ceil(stringWidth(t,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#Z&&!this.#ee}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#Z=e}get isSilent(){return this.#ee}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#ee=e}frame(){const e=Date.now();(-1===this.#G||e-this.#W>=this.interval)&&(this.#G=++this.#G%this.#z.frames.length,this.#W=e);const{frames:t}=this.#z;let n=t[this.#G];this.color&&(n=chalk[this.color](n));return("string"==typeof this.#re&&""!==this.#re?this.#re+" ":"")+n+("string"==typeof this.text?" "+this.text:"")+("string"==typeof this.#ie&&""!==this.#ie?" "+this.#ie:"")}clear(){if(!this.#Z||!this.#Y.isTTY)return this;this.#Y.cursorTo(0);for(let e=0;e<this.#J;e++)e>0&&this.#Y.moveCursor(0,-1),this.#Y.clearLine(1);return(this.#te||this.lastIndent!==this.#te)&&this.#Y.cursorTo(this.#te),this.lastIndent=this.#te,this.#J=0,this}render(){return this.#ee||(this.clear(),this.#Y.write(this.frame()),this.#J=this.#H),this}start(e){return e&&(this.text=e),this.#ee?this:this.#Z?(this.isSpinning||(this.#c.hideCursor&&cliCursor.hide(this.#Y),this.#c.discardStdin&&process$2.stdin.isTTY&&(this.#V=!0,stdinDiscarder.start()),this.render(),this.#K=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.#Y.write(`- ${this.text}\n`),this)}stop(){return this.#Z?(clearInterval(this.#K),this.#K=void 0,this.#G=0,this.clear(),this.#c.hideCursor&&cliCursor.show(this.#Y),this.#c.discardStdin&&process$2.stdin.isTTY&&this.#V&&(stdinDiscarder.stop(),this.#V=!1),this):this}succeed(e){return this.stopAndPersist({symbol:logSymbols.success,text:e})}fail(e){return this.stopAndPersist({symbol:logSymbols.error,text:e})}warn(e){return this.stopAndPersist({symbol:logSymbols.warning,text:e})}info(e){return this.stopAndPersist({symbol:logSymbols.info,text:e})}stopAndPersist(e={}){if(this.#ee)return this;const t=e.prefixText??this.#re,n=this.#se(t," "),r=e.symbol??" ",i=e.text??this.text,o="string"==typeof i?(r?" ":"")+i:"",s=e.suffixText??this.#ie,a=n+r+o+this.#ae(s," ")+"\n";return this.stop(),this.#Y.write(a),this}}function ora(e){return new Ora(e)}function truthy(e){return!!e}const capitalizeSpecType=e=>"openapi"===e?"OpenAPI":e.charAt(0).toUpperCase()+e.slice(1);async function prepareOas(e,t,n={convertToLatest:!1}){let r=e;if(!r){const e=ora({text:"Looking for API definitions...",...oraOptions()}).start();let n;if("openapi"===t)n="upload";else n=t.split(" ")[1];const i=readdirRecursive(".",!0).filter((e=>e.toLowerCase().endsWith(".json")||e.toLowerCase().endsWith(".yaml")||e.toLowerCase().endsWith(".yml")));debug(`number of JSON or YAML files found: ${i.length}`);const o=(await Promise.all(i.map((e=>{debug(`attempting to oas-normalize ${e}`);return new OASNormalize(e,{enablePaths:!0}).version().then((({specification:t,version:n})=>(debug(`specification type for ${e}: ${t}`),debug(`version for ${e}: ${n}`),["openapi","swagger","postman"].includes(t)?{filePath:e,specType:capitalizeSpecType(t),version:n}:null))).catch((t=>(debug(`error extracting API definition specification version for ${e}: ${t.message}`),null)))})))).filter(truthy);if(debug(`number of possible OpenAPI/Swagger files found: ${o.length}`),!o.length)throw e.fail(),new Error(`We couldn't find an OpenAPI or Swagger definition.\n\nPlease specify the path to your definition with \`rdme ${t} ./path/to/api/definition\`.`);if(r=o[0].filePath,1===o.length)e.stop(),info(chalk.yellow(`We found ${r} and are attempting to ${n} it.`));else if(o.length>1){if(isCI())throw e.fail(),new Error("Multiple API definitions found in current directory. Please specify file.");e.stop();const t=await promptTerminal({name:"file",message:`Multiple potential API definitions found! Which one would you like to ${n}?`,type:"select",choices:o.map((e=>({title:e.filePath,value:e.filePath,description:`${e.specType} ${e.version}`})))});r=t.file}}const i=ora({text:`Validating the API definition located at ${r}...`,...oraOptions()}).start();debug(`about to normalize spec located at ${r}`);const o=new OASNormalize(r,{colorizeErrors:!0,enablePaths:!0});debug("spec normalized");const{specType:s,definitionVersion:a}=await o.load().then((async e=>{const t=getAPIDefinitionType(e);return{specType:capitalizeSpecType(t),definitionVersion:await o.version()}})).catch((e=>{throw i.fail(),debug(`raw oas load error object: ${JSON.stringify(e)}`),e}));let c=await o.validate({convertToLatest:n.convertToLatest}).catch((e=>{throw i.fail(),debug(`raw validation error object: ${JSON.stringify(e)}`),e}));i.stop(),debug("๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡ spec validated! logging spec below ๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡"),debug(c),debug("๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘† finished logging spec ๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†"),debug(`spec type: ${s}`),n.title&&(debug(`renaming title field to ${n.title}`),c.info.title=n.title);const l=o.type,u=c.info.version;return debug(`version in spec: ${u}`),["openapi","openapi inspect","openapi reduce"].includes(t)&&(c=await o.bundle(),debug("spec bundled")),{preparedSpec:JSON.stringify(c),specFileType:l,specPath:r,specType:s,specVersion:u,definitionVersion:a}}class OpenAPIConvertCommand extends BaseCommand{static summary="Converts an API definition to OpenAPI and bundles any external references.";static description="Converts Swagger files and Postman collections to OpenAPI and bundles any external references. **Note**: All of our other OpenAPI commands already do this conversion automatically, but this command is available in case you need this functionality exclusively.";static args={spec:libExports$3.Args.string({description:"A file/URL to your API definition"})};static flags={out:libExports$3.Flags.string({description:"Output file path to write converted file to"}),title:titleFlag,workingDirectory:workingDirectoryFlag};static examples=[{description:"By default, this command will display a comprehensive table of all OpenAPI and ReadMe features found in your API definition:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file]"},{description:"You can omit the file name and `rdme` will scan your working directory (and any subdirectories) for OpenAPI/Swagger files. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %>"}];async run(){const{spec:e}=this.args,{out:t,title:n,workingDirectory:r}=this.flags;if(r){const e=process.cwd();process.chdir(r),this.debug(`switching working directory from ${e} to ${process.cwd()}`)}const{preparedSpec:i,specPath:o,specType:s}=await prepareOas(e,"openapi convert",{convertToLatest:!0,title:n}),a=JSON.parse(i);"OpenAPI"===s&&warn("The input file is already OpenAPI, so no conversion is necessary. Any external references will be bundled."),prompts.override({outputPath:t});const c=await promptTerminal([{type:"text",name:"outputPath",message:"Enter the path to save your converted/bundled API definition to:",initial:()=>{const e=path$1.extname(o);return`${path$1.basename(o).split(e)[0]}.openapi${e}`},validate:e=>validateFilePath(e)}]);return this.debug(`saving converted/bundled spec to ${c.outputPath}`),fs$6.writeFileSync(c.outputPath,JSON.stringify(a,null,2)),this.debug("converted/bundled spec saved"),Promise.resolve(chalk.green(`Your API definition has been converted and bundled and saved to ${c.outputPath}!`))}}var immutable,hasRequiredImmutable,parseLinkHeader,hasRequiredParseLinkHeader;function requireImmutable(){if(hasRequiredImmutable)return immutable;hasRequiredImmutable=1,immutable=function(){for(var t={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)e.call(r,i)&&(t[i]=r[i])}return t};var e=Object.prototype.hasOwnProperty;return immutable}function requireParseLinkHeader(){if(hasRequiredParseLinkHeader)return parseLinkHeader;hasRequiredParseLinkHeader=1;var e=require$$8,t=require$$0$k,n=requireImmutable();const r=parseInt(process.env.PARSE_LINK_HEADER_MAXLEN)||2e3,i=null!=process.env.PARSE_LINK_HEADER_THROW_ON_MAXLEN_EXCEEDED;function o(e){return e&&e.rel}function s(e,t){return t.rel.split(/\s+/).forEach((function(r){e[r]=n(t,{rel:r})})),e}function a(e,t){var n=t.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return n&&(e[n[1]]=n[2]),e}function c(r){try{var i=r.match(/<?([^>]*)>(.*)/),o=i[1],s=i[2].split(";"),c=t.parse(o),l=e.parse(c.query);s.shift();var u=s.reduce(a,{});return(u=n(l,u)).url=o,u}catch(e){return null}}return parseLinkHeader=function(e){return function(e){if(!e)return!1;if(e.length>r){if(i)throw new Error("Input string too long, it should be under "+r+" characters.");return!1}return!0}(e)?e.split(/,\s*</).map(c).filter(o).reduce(s,{}):null}}var parseLinkHeaderExports=requireParseLinkHeader(),parse=getDefaultExportFromCjs(parseLinkHeaderExports);function specOptions(e,t,n,r){const i=e.map((e=>({description:`API Definition ID: ${e._id}`,title:e.title,value:e._id})));return t?.prev?.page&&i.push({description:"Go to the previous page",title:`< Prev (page ${n-1} of ${r})`,value:"prev"}),t?.next?.page&&i.push({description:"Go to the next page",title:`Next (page ${n+1} of ${r}) >`,value:"next"}),i}const updateOasPrompt=(e,t,n,r,i)=>[{type:"select",name:"specId",message:"Select your desired file to update",choices:specOptions(e,t,n,r),async format(e){if("prev"===e)try{const e=await i(`${t?.prev?.url||""}`),o=parse(e.headers.get("link")),s=await handleAPIv1Res(e),{specId:a}=await promptTerminal(updateOasPrompt(s,o,n-1,r,i));return a}catch(e){return debug(`error retrieving previous specs: ${e.message}`),null}else if("next"===e)try{const e=await i(`${t?.next?.url||""}`),o=parse(e.headers.get("link")),s=await handleAPIv1Res(e),{specId:a}=await promptTerminal(updateOasPrompt(s,o,n+1,r,i));return a}catch(e){return debug(`error retrieving next specs: ${e.message}`),null}return e}}];function createOasPrompt(e,t,n,r){return[{type:"select",name:"option",message:"Would you like to update an existing OAS file or create a new one?",choices:[{title:"Update existing",value:"update"},{title:"Create a new spec",value:"create"}],async format(i){if("update"===i){const{specId:i}=await promptTerminal(updateOasPrompt(e,t,1,n,r));return i}return i}}]}function versionPrompt(e,t){return[{type:t?null:"select",name:"from",message:"Which version would you like to fork from?",choices:e.map((e=>({title:e.version,value:e.version})))},{type:t?"text":null,name:"newVersion",message:"What should the version be renamed to?",hint:"1.0.0",validate:e=>!e||(!!semver.valid(semver.coerce(e))||"Please specify a semantic version.")},{type:t?.is_stable?null:"confirm",name:"is_stable",message:"Should this be the main version for your project?"},{type:"confirm",name:"is_beta",message:"Should this version be in beta?"},{type:(e,n)=>n.is_stable||t?.is_stable?null:"confirm",name:"is_hidden",message:"Should this version be hidden?"},{type:(e,n)=>n.is_stable||t?.is_stable?null:"confirm",name:"is_deprecated",message:"Should this version be deprecated?"}]}var tmpPromise={exports:{}},tmp={exports:{}},hasRequiredTmp,hasRequiredTmpPromise;function requireTmp(){return hasRequiredTmp||(hasRequiredTmp=1,function(e){const t=require$$0$7,n=require$$0$9,r=require$$0$8,i=require$$0$e,o={fs:t.constants,os:n.constants},s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",a=/XXXXXX/,c=(o.O_CREAT||o.fs.O_CREAT)|(o.O_EXCL||o.fs.O_EXCL)|(o.O_RDWR||o.fs.O_RDWR),l="win32"===n.platform(),u=o.EBADF||o.os.errno.EBADF,d=o.ENOENT||o.os.errno.ENOENT,p=[],f=t.rmdirSync.bind(t);let _=!1;function m(e,n){return t.rm(e,{recursive:!0},n)}function h(e){return t.rmSync(e,{recursive:!0})}function g(e,n){const r=k(e,n),i=r[0],o=r[1];try{w(i)}catch(e){return o(e)}let s=i.tries;!function e(){try{const n=D(i);t.stat(n,(function(t){if(!t)return s-- >0?e():o(new Error("Could not get a unique tmp filename, max tries reached "+n));o(null,n)}))}catch(e){o(e)}}()}function A(e){const n=k(e)[0];w(n);let r=n.tries;do{const e=D(n);try{t.statSync(e)}catch(t){return e}}while(r-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function y(e,n){const r=function(e){if(e&&!F(e))return n(e);n()};0<=e[0]?t.close(e[0],(function(){t.unlink(e[1],r)})):t.unlink(e[1],r)}function v(e){let n=null;try{0<=e[0]&&t.closeSync(e[0])}catch(e){if(!function(e){return R(e,-u,"EBADF")}(e)&&!F(e))throw e}finally{try{t.unlinkSync(e[1])}catch(e){F(e)||(n=e)}}if(null!==n)throw n}function b(e,t,n,r){const i=E(v,[t,e],r),o=E(y,[t,e],r,i);return n.keep||p.unshift(i),r?i:o}function C(e,n,r){const i=n.unsafeCleanup?m:t.rmdir.bind(t),o=E(n.unsafeCleanup?h:f,e,r),s=E(i,e,r,o);return n.keep||p.unshift(o),r?o:s}function E(e,t,n,r){let i=!1;return function o(s){if(!i){const a=r||o,c=p.indexOf(a);return c>=0&&p.splice(c,1),i=!0,n||e===f||e===h?e(t):e(t,s||function(){})}}}function x(e){let t=[],n=null;try{n=i.randomBytes(e)}catch(t){n=i.pseudoRandomBytes(e)}for(var r=0;r<e;r++)t.push(s[n[r]%62]);return t.join("")}function S(e){return void 0===e}function k(e,t){if("function"==typeof e)return[{},e];if(S(e))return[{},t];const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=e[t];return[n,t]}function D(e){const t=e.tmpdir;if(!S(e.name))return r.join(t,e.dir,e.name);if(!S(e.template))return r.join(t,e.dir,e.template).replace(a,x(6));const n=[e.prefix?e.prefix:"tmp","-",process.pid,"-",x(12),e.postfix?"-"+e.postfix:""].join("");return r.join(t,e.dir,n)}function w(e){e.tmpdir=P(e);const t=e.tmpdir;if(S(e.name)||T(e.name,"name",t),S(e.dir)||T(e.dir,"dir",t),!S(e.template)&&(T(e.template,"template",t),!e.template.match(a)))throw new Error(`Invalid template, found "${e.template}".`);if(!S(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);var n;e.tries=S(e.name)?e.tries||3:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=S(e.dir)?"":r.relative(t,I(e.dir,t)),e.template=S(e.template)?void 0:r.relative(t,I(e.template,t)),e.template=null===(n=e.template)||S(n)||!n.trim()?void 0:r.relative(e.dir,e.template),e.name=S(e.name)?void 0:e.name,e.prefix=S(e.prefix)?"":e.prefix,e.postfix=S(e.postfix)?"":e.postfix}function I(e,t){return e.startsWith(t)?r.resolve(e):r.resolve(r.join(t,e))}function T(e,t,n){if("name"===t){if(r.isAbsolute(e))throw new Error(`${t} option must not contain an absolute path, found "${e}".`);let n=r.basename(e);if(".."===n||"."===n||n!==e)throw new Error(`${t} option must not contain a path, found "${e}".`)}else{if(r.isAbsolute(e)&&!e.startsWith(n))throw new Error(`${t} option must be relative to "${n}", found "${e}".`);let i=I(e,n);if(!i.startsWith(n))throw new Error(`${t} option must be relative to "${n}", found "${i}".`)}}function F(e){return R(e,-d,"ENOENT")}function R(e,t,n){return l?e.code===n:e.code===n&&e.errno===t}function P(e){return r.resolve(e&&e.tmpdir||n.tmpdir())}process.addListener("exit",(function(){if(_)for(;p.length;)try{p[0]()}catch(e){}})),Object.defineProperty(e.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return P()}}),e.exports.dir=function(e,n){const r=k(e,n),i=r[0],o=r[1];g(i,(function(e,n){if(e)return o(e);t.mkdir(n,i.mode||448,(function(e){if(e)return o(e);o(null,n,C(n,i,!1))}))}))},e.exports.dirSync=function(e){const n=k(e)[0],r=A(n);return t.mkdirSync(r,n.mode||448),{name:r,removeCallback:C(r,n,!0)}},e.exports.file=function(e,n){const r=k(e,n),i=r[0],o=r[1];g(i,(function(e,n){if(e)return o(e);t.open(n,c,i.mode||384,(function(e,r){if(e)return o(e);if(i.discardDescriptor)return t.close(r,(function(e){return o(e,n,void 0,b(n,-1,i,!1))}));{const e=i.discardDescriptor||i.detachDescriptor;o(null,n,r,b(n,e?-1:r,i,!1))}}))}))},e.exports.fileSync=function(e){const n=k(e)[0],r=n.discardDescriptor||n.detachDescriptor,i=A(n);var o=t.openSync(i,c,n.mode||384);return n.discardDescriptor&&(t.closeSync(o),o=void 0),{name:i,fd:o,removeCallback:b(i,r?-1:o,n,!0)}},e.exports.tmpName=g,e.exports.tmpNameSync=A,e.exports.setGracefulCleanup=function(){_=!0}}(tmp)),tmp.exports}function requireTmpPromise(){return hasRequiredTmpPromise||(hasRequiredTmpPromise=1,function(e){const{promisify:t}=require$$0__default,n=requireTmp();e.exports.fileSync=n.fileSync;const r=t(((e,r)=>n.file(e,((e,n,i,o)=>e?r(e):r(void 0,{path:n,fd:i,cleanup:t(o)})))));e.exports.file=async e=>r(e),e.exports.withFile=async function(t,n){const{path:r,fd:i,cleanup:o}=await e.exports.file(n);try{return await t({path:r,fd:i})}finally{await o()}},e.exports.dirSync=n.dirSync;const i=t(((e,r)=>n.dir(e,((e,n,i)=>e?r(e):r(void 0,{path:n,cleanup:t(i)})))));e.exports.dir=async e=>i(e),e.exports.withDir=async function(t,n){const{path:r,cleanup:i}=await e.exports.dir(n);try{return await t({path:r})}finally{await i()}},e.exports.tmpNameSync=n.tmpNameSync,e.exports.tmpName=t(n.tmpName),e.exports.tmpdir=n.tmpdir,e.exports.setGracefulCleanup=n.setGracefulCleanup}(tmpPromise)),tmpPromise.exports}var tmpPromiseExports=requireTmpPromise();async function streamSpecToRegistry(e){const t=ora({text:"Staging your API definition for upload...",...oraOptions()}).start(),{path:n}=await tmpPromiseExports.file({prefix:"rdme-openapi-",postfix:".json"});debug(`creating temporary file at ${n}`),await fs$6.writeFileSync(n,e);const r=fs$6.createReadStream(n);debug("file and stream created, streaming into form data payload");const i=new FormData;i.append("spec",{type:"application/json",name:"openapi.json",[Symbol.toStringTag]:"File",stream:()=>r});return readmeAPIv1Fetch("/api/v1/api-registry",{body:i,headers:{Accept:"application/json"},method:"POST"}).then(handleAPIv1Res).then((e=>(t.stop(),e.registryUUID))).catch((e=>{throw t.fail(),e}))}class OpenAPICommand extends BaseCommand{static summary="Upload, or resync, your OpenAPI/Swagger definition to ReadMe.";static description="Locates your API definition (if you don't supply one), validates it, and then syncs it to your API reference on ReadMe.";static id="openapi";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and v10 will have a replacement command that supports ReadMe Refactored. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static args={spec:libExports$3.Args.string({description:"A file/URL to your API definition"})};static flags={key:keyFlag,version:versionFlag,id:libExports$3.Flags.string({description:"Unique identifier for your API definition. Use this if you're re-uploading an existing API definition."}),title:titleFlag,workingDirectory:workingDirectoryFlag,github:githubFlag,dryRun:libExports$3.Flags.boolean({description:"Runs the command without creating/updating any API Definitions in ReadMe. Useful for debugging."}),useSpecVersion:libExports$3.Flags.boolean({description:"Uses the version listed in the `info.version` field in the API definition for the project version parameter."}),raw:libExports$3.Flags.boolean({description:"Return the command results as a JSON object instead of a pretty output."}),create:libExports$3.Flags.boolean({description:"Bypasses the create/update prompt and creates a new API definition in ReadMe.",exclusive:["update"]}),update:libExports$3.Flags.boolean({description:"Note that this flag only works if there's only one API definition associated with the current version.",summary:"Bypasses the create/update prompt and automatically updates an existing API definition in ReadMe."})};static examples=[{description:"This will upload the API definition at the given URL or path to your project and return an ID and URL for you to later update your file, and view it in the client:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file]"},{description:"You can omit the file name and `rdme` will scan your working directory (and any subdirectories) for OpenAPI/Swagger files. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %>"},{description:"If you want to bypass the prompt to create or update an API definition, you can pass the `--create` flag:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --version={project-version} --create"},{description:"This will edit (re-sync) an existing API definition (identified by `--id`) within your ReadMe project. **This is the recommended approach for usage in CI environments.**",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --id={existing-api-definition-id}"},{description:"Alternatively, you can include a version flag, which specifies the target version for your file's destination. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --id={existing-api-definition-id}"},{description:"If you wish to programmatically access any of this script's results (such as the API definition ID or the link to the corresponding docs in your dashboard), supply the `--raw` flag and the command will return a JSON output:",command:"<%= config.bin %> <%= command.id %> openapi.json --id={existing-api-definition-id} --raw"},{description:"You can also pass in a file in a subdirectory (we recommend running the CLI from the root of your repository if possible):",command:"<%= config.bin %> <%= command.id %> example-directory/petstore.json"},{description:"By default, `<%= config.bin %>` bundles all references with paths based on the directory that it is being run in. You can override the working directory using the `--workingDirectory` option, which can be helpful for bundling certain external references:",command:"<%= config.bin %> <%= command.id %> petstore.json --workingDirectory=[path to directory]"},{description:"If you wish to use the version specified in the `info.version` field of your OpenAPI definition, you can pass the `--useSpecVersion` option. So if the the `info.version` field was `1.2.3`, this is equivalent to passing `--version=1.2.3`.",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --useSpecVersion"},{description:"If there's only one API definition for the given project version to update, you can use the `--update` flag and it will select it without any prompts:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --version={project-version} --update"}];async run(){const{spec:e}=this.args,{dryRun:t,key:n,id:r,create:i,raw:o,title:s,useSpecVersion:a,version:c,workingDirectory:l,update:u}=this.flags;let d,p=c;const f=ora({...oraOptions()}),_={version:void 0,update:!1};if(t&&warn("๐ŸŽญ dry run option detected! No API definitions will be created or updated in ReadMe."),l){const e=process.cwd();process.chdir(l),this.debug(`switching working directory from ${e} to ${process.cwd()}`)}c&&r&&warn("We'll be using the version associated with the `--id` option, so the `--version` option will be ignored."),i&&r&&warn("We'll be using the `--create` option, so the `--id` parameter will be ignored."),u&&r&&warn("We'll be updating the API definition associated with the `--id` parameter, so the `--update` parameter will be ignored.");const{preparedSpec:m,specFileType:h,specPath:g,specType:A,specVersion:y}=await prepareOas(e,"openapi",{title:s});a&&(info(`Using the version specified in your API definition for your ReadMe project version (${y})`),p=y),!i&&r||(p=await getProjectVersion(p,n)),this.debug(`selectedVersion: ${p}`);const v=async e=>{const t=d?`You've successfully updated an existing ${A} file on your ReadMe project!`:`You've successfully uploaded a new ${A} file to your ReadMe project!`,n=await handleAPIv1Res(e,!1),r={commandType:d?"update":"create",docs:e.headers.get("location"),id:n._id,specPath:g,specType:A,version:p},i=[t,"",`\t${chalk.green(r.docs)}`,"",`To update your ${A} definition, run the following:`,"",`\t${chalk.green(`rdme openapi ${g} --key=<key> --id=${r.id}`)}`].join("\n");return this.runCreateGHAHook({parsedOpts:{...this.flags,spec:g,id:n._id,version:p,..._},result:o?JSON.stringify(r,null,2):i})},b=e=>handleAPIv1Res(e).catch((e=>{if("APIv1Error"===e.name)throw e;if("string"==typeof e&&(e.includes("<title>Application Error")||e.includes("520: Web server is returning an unknown error")))throw new Error("We're sorry, your upload request timed out. Please try again or split your file up into smaller chunks.");throw new Error(`Yikes, something went wrong! Please try uploading your spec again and if the problem persists, get in touch with our support team at ${chalk.underline("support@readme.io")}.`)})),C=await streamSpecToRegistry(m),E={headers:cleanAPIv1Headers(n,p,new Headers({Accept:"application/json","Content-Type":"application/json"})),body:JSON.stringify({registryUUID:C})};function x(){return t?`๐ŸŽญ dry run! The API Definition located at ${g} will be created for this project version: ${p}`:(E.method="post",f.start("Creating your API docs in ReadMe..."),readmeAPIv1Fetch("/api/v1/api-specification",E,{filePath:g,fileType:h}).then((e=>e.ok?(f.succeed(`${f.text} done! ๐Ÿฆ‰`),v(e)):(f.fail(),b(e)))))}function S(e){return t?`๐ŸŽญ dry run! The API Definition located at ${g} will update this API Definition ID: ${e}`:(d=!0,E.method="put",f.start("Updating your API docs in ReadMe..."),readmeAPIv1Fetch(`/api/v1/api-specification/${e}`,E,{filePath:g,fileType:h}).then((e=>e.ok?(f.succeed(`${f.text} done! ๐Ÿฆ‰`),v(e)):(f.fail(),b(e)))))}function k(e){if(e)return readmeAPIv1Fetch(e,{method:"get",headers:cleanAPIv1Headers(n,p)});throw new Error("There was an error retrieving your list of API definitions. Please get in touch with us at support@readme.io")}if(i)return _.id=void 0,delete _.version,x();if(!r){this.debug("no id parameter, retrieving list of API specs");const e=await k("/api/v1/api-specification"),t=Math.ceil(parseInt(e.headers.get("x-total-count")||"0",10)/10),n=parse(e.headers.get("link"));this.debug(`total pages: ${t}`),this.debug(`pagination result: ${JSON.stringify(n)}`);const r=await handleAPIv1Res(e);if(!r.length)return x();if(u){if(r.length>1)throw new Error(`The \`--update\` option cannot be used when there's more than one API definition available (found ${r.length}).`);const{_id:e}=r[0];return S(e)}const{option:i}=await promptTerminal(createOasPrompt(r,n,t,k));return this.debug(`selection result: ${i}`),"create"===i?x():S(i)}return S(r)}}var pluralize$2={exports:{}},pluralize$1=pluralize$2.exports,hasRequiredPluralize;function requirePluralize(){return hasRequiredPluralize||(hasRequiredPluralize=1,function(e){!function(t,n){"function"==typeof commonjsRequire?e.exports=n():t.pluralize=n()}(pluralize$1,(function(){var e=[],t=[],n={},r={},i={};function o(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function s(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function a(e,t){return e.replace(t[0],(function(n,r){var i=function(e,t){return e.replace(/\$(\d{1,2})/g,(function(e,n){return t[n]||""}))}(t[1],arguments);return s(""===n?e[r-1]:n,i)}))}function c(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var o=r[i];if(o[0].test(t))return a(t,o)}return t}function l(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?s(r,i):e.hasOwnProperty(i)?s(r,e[i]):c(i,r,n)}}function u(e,t,n,r){return function(r){var i=r.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&c(i,i,n)===i}}function d(e,t,n){return(n?t+" ":"")+(1===t?d.singular(e):d.plural(e))}return d.plural=l(i,r,e),d.isPlural=u(i,r,e),d.singular=l(r,i,t),d.isSingular=u(r,i,t),d.addPluralRule=function(t,n){e.push([o(t),n])},d.addSingularRule=function(e,n){t.push([o(e),n])},d.addUncountableRule=function(e){"string"!=typeof e?(d.addPluralRule(e,"$0"),d.addSingularRule(e,"$0")):n[e.toLowerCase()]=!0},d.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach((function(e){return d.addIrregularRule(e[0],e[1])})),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach((function(e){return d.addPluralRule(e[0],e[1])})),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach((function(e){return d.addSingularRule(e[0],e[1])})),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eรฉ]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(d.addUncountableRule),d}))}(pluralize$2)),pluralize$2.exports}var pluralizeExports=requirePluralize(),pluralize=getDefaultExportFromCjs(pluralizeExports),src$2={},createStream={},alignTableData={},alignString={},utils={},astralRegex_1,hasRequiredAstralRegex,sliceAnsi,hasRequiredSliceAnsi;function requireAstralRegex(){if(hasRequiredAstralRegex)return astralRegex_1;hasRequiredAstralRegex=1;const e="[\ud800-\udbff][\udc00-\udfff]";return astralRegex_1=t=>t&&t.exact?new RegExp(`^${e}$`):new RegExp(e,"g"),astralRegex_1}function requireSliceAnsi(){if(hasRequiredSliceAnsi)return sliceAnsi;hasRequiredSliceAnsi=1;const e=requireIsFullwidthCodePoint(),t=requireAstralRegex(),n=requireAnsiStyles(),r=["","ย›"],i=e=>`${r[0]}[${e}m`,o=(e,t,r)=>{let o=[];e=[...e];for(let r of e){const s=r;r.includes(";")&&(r=r.split(";")[0][0]+"0");const a=n.codes.get(Number.parseInt(r,10));if(a){const n=e.indexOf(a.toString());-1===n?o.push(i(t?a:s)):e.splice(n,1)}else{if(t){o.push(i(0));break}o.push(i(s))}}if(t&&(o=o.filter(((e,t)=>o.indexOf(e)===t)),void 0!==r)){const e=i(n.codes.get(Number.parseInt(r,10)));o=o.reduce(((t,n)=>n===e?[n,...t]:[...t,n]),[])}return o.join("")};return sliceAnsi=(n,i,s)=>{const a=[...n],c=[];let l,u="number"==typeof s?s:a.length,d=!1,p=0,f="";for(const[_,m]of a.entries()){let a=!1;if(r.includes(m)){const e=/\d[^m]*/.exec(n.slice(_,_+18));l=e&&e.length>0?e[0]:void 0,pi&&p<=u)f+=m;else if(p!==i||d||void 0===l){if(p>=u){f+=o(c,!0,l);break}}else f=o(c)}return f},sliceAnsi}var getBorderCharacters={},hasRequiredGetBorderCharacters,hasRequiredUtils,hasRequiredAlignString,hasRequiredAlignTableData;function requireGetBorderCharacters(){if(hasRequiredGetBorderCharacters)return getBorderCharacters;hasRequiredGetBorderCharacters=1,Object.defineProperty(getBorderCharacters,"__esModule",{value:!0}),getBorderCharacters.getBorderCharacters=void 0;return getBorderCharacters.getBorderCharacters=e=>{if("honeywell"===e)return{topBody:"โ•",topJoin:"โ•ค",topLeft:"โ•”",topRight:"โ•—",bottomBody:"โ•",bottomJoin:"โ•ง",bottomLeft:"โ•š",bottomRight:"โ•",bodyLeft:"โ•‘",bodyRight:"โ•‘",bodyJoin:"โ”‚",headerJoin:"โ”ฌ",joinBody:"โ”€",joinLeft:"โ•Ÿ",joinRight:"โ•ข",joinJoin:"โ”ผ",joinMiddleDown:"โ”ฌ",joinMiddleUp:"โ”ด",joinMiddleLeft:"โ”ค",joinMiddleRight:"โ”œ"};if("norc"===e)return{topBody:"โ”€",topJoin:"โ”ฌ",topLeft:"โ”Œ",topRight:"โ”",bottomBody:"โ”€",bottomJoin:"โ”ด",bottomLeft:"โ””",bottomRight:"โ”˜",bodyLeft:"โ”‚",bodyRight:"โ”‚",bodyJoin:"โ”‚",headerJoin:"โ”ฌ",joinBody:"โ”€",joinLeft:"โ”œ",joinRight:"โ”ค",joinJoin:"โ”ผ",joinMiddleDown:"โ”ฌ",joinMiddleUp:"โ”ด",joinMiddleLeft:"โ”ค",joinMiddleRight:"โ”œ"};if("ramac"===e)return{topBody:"-",topJoin:"+",topLeft:"+",topRight:"+",bottomBody:"-",bottomJoin:"+",bottomLeft:"+",bottomRight:"+",bodyLeft:"|",bodyRight:"|",bodyJoin:"|",headerJoin:"+",joinBody:"-",joinLeft:"|",joinRight:"|",joinJoin:"|",joinMiddleDown:"+",joinMiddleUp:"+",joinMiddleLeft:"+",joinMiddleRight:"+"};if("void"===e)return{topBody:"",topJoin:"",topLeft:"",topRight:"",bottomBody:"",bottomJoin:"",bottomLeft:"",bottomRight:"",bodyLeft:"",bodyRight:"",bodyJoin:"",headerJoin:"",joinBody:"",joinLeft:"",joinRight:"",joinJoin:"",joinMiddleDown:"",joinMiddleUp:"",joinMiddleLeft:"",joinMiddleRight:""};throw new Error('Unknown border template "'+e+'".')},getBorderCharacters}function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1;var e=utils&&utils.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(utils,"__esModule",{value:!0}),utils.isCellInRange=utils.areCellEqual=utils.calculateRangeCoordinate=utils.flatten=utils.extractTruncates=utils.sumArray=utils.sequence=utils.distributeUnevenly=utils.countSpaceSequence=utils.groupBySizes=utils.makeBorderConfig=utils.splitAnsi=utils.normalizeString=void 0;const t=e(requireSliceAnsi()),n=e(requireStringWidth()),r=e(requireStripAnsi()),i=requireGetBorderCharacters();utils.normalizeString=e=>e.replace(/\r\n/g,"\n");utils.splitAnsi=e=>{const i=(0,r.default)(e).split("\n").map(n.default),o=[];let s=0;return i.forEach((n=>{o.push(0===n?"":(0,t.default)(e,s,s+n)),s+=n+1})),o};utils.makeBorderConfig=e=>({...(0,i.getBorderCharacters)("honeywell"),...e});utils.groupBySizes=(e,t)=>{let n=0;return t.map((t=>{const r=e.slice(n,n+t);return n+=t,r}))};utils.countSpaceSequence=e=>{var t,n;return null!==(n=null===(t=e.match(/\s+/g))||void 0===t?void 0:t.length)&&void 0!==n?n:0};utils.distributeUnevenly=(e,t)=>Array.from({length:t}).fill(Math.floor(e/t)).map(((n,r)=>n+(rArray.from({length:t-e+1},((t,n)=>n+e));utils.sumArray=e=>e.reduce(((e,t)=>e+t),0);utils.extractTruncates=e=>e.columns.map((({truncate:e})=>e));utils.flatten=e=>[].concat(...e);utils.calculateRangeCoordinate=e=>{const{row:t,col:n,colSpan:r=1,rowSpan:i=1}=e;return{bottomRight:{col:n+r-1,row:t+i-1},topLeft:{col:n,row:t}}};utils.areCellEqual=(e,t)=>e.row===t.row&&e.col===t.col;return utils.isCellInRange=(e,{topLeft:t,bottomRight:n})=>t.row<=e.row&&e.row<=n.row&&t.col<=e.col&&e.col<=n.col,utils}function requireAlignString(){if(hasRequiredAlignString)return alignString;hasRequiredAlignString=1;var e=alignString&&alignString.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(alignString,"__esModule",{value:!0}),alignString.alignString=void 0;const t=e(requireStringWidth()),n=requireUtils(),r=(e,t)=>e+" ".repeat(t);return alignString.alignString=(e,i,o)=>{const s=(0,t.default)(e);if(s===i)return e;if(s>i)throw new Error("Subject parameter value width cannot be greater than the container width.");if(0===s)return" ".repeat(i);const a=i-s;return"left"===o?r(e,a):"right"===o?((e,t)=>" ".repeat(t)+e)(e,a):"justify"===o?((e,t)=>{const i=(0,n.countSpaceSequence)(e);if(0===i)return r(e,t);const o=(0,n.distributeUnevenly)(t,i);if(Math.max(...o)>3)return r(e,t);let s=0;return e.replace(/\s+/g,(e=>e+" ".repeat(o[s++])))})(e,a):((e,t)=>" ".repeat(Math.floor(t/2))+e+" ".repeat(Math.ceil(t/2)))(e,a)},alignString}function requireAlignTableData(){if(hasRequiredAlignTableData)return alignTableData;hasRequiredAlignTableData=1,Object.defineProperty(alignTableData,"__esModule",{value:!0}),alignTableData.alignTableData=void 0;const e=requireAlignString();return alignTableData.alignTableData=(t,n)=>t.map(((t,r)=>t.map(((t,i)=>{var o;const{width:s,alignment:a}=n.columns[i];return(null===(o=n.spanningCellManager)||void 0===o?void 0:o.getContainingRange({col:i,row:r},{mapped:!0}))?t:(0,e.alignString)(t,s,a)})))),alignTableData}var calculateRowHeights={},calculateCellHeight={},wrapCell={},wrapString={},hasRequiredWrapString;function requireWrapString(){if(hasRequiredWrapString)return wrapString;hasRequiredWrapString=1;var e=wrapString&&wrapString.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wrapString,"__esModule",{value:!0}),wrapString.wrapString=void 0;const t=e(requireSliceAnsi()),n=e(requireStringWidth());return wrapString.wrapString=(e,r)=>{let i=e;const o=[];do{o.push((0,t.default)(i,0,r)),i=(0,t.default)(i,r).trim()}while((0,n.default)(i));return o},wrapString}var wrapWord={},hasRequiredWrapWord,hasRequiredWrapCell,hasRequiredCalculateCellHeight,hasRequiredCalculateRowHeights;function requireWrapWord(){if(hasRequiredWrapWord)return wrapWord;hasRequiredWrapWord=1;var e=wrapWord&&wrapWord.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wrapWord,"__esModule",{value:!0}),wrapWord.wrapWord=void 0;const t=e(requireSliceAnsi()),n=e(requireStripAnsi());return wrapWord.wrapWord=(e,r)=>{const i=[];let o=0;return((e,t)=>{let r=(0,n.default)(e);const i=[],o=new RegExp("(^.{1,"+String(Math.max(t,1))+"}(\\s+|$))|(^.{1,"+String(Math.max(t-1,1))+"}(\\\\|/|_|\\.|,|;|-))");do{let e;const n=o.exec(r);if(n){e=n[0],r=r.slice(e.length);const t=e.trim().length,o=e.length-t;i.push([t,o])}else e=r.slice(0,t),r=r.slice(t),i.push([e.length,0])}while(r.length);return i})(e,r).forEach((([n,r])=>{i.push((0,t.default)(e,o,o+n)),o+=n+r})),i},wrapWord}function requireWrapCell(){if(hasRequiredWrapCell)return wrapCell;hasRequiredWrapCell=1,Object.defineProperty(wrapCell,"__esModule",{value:!0}),wrapCell.wrapCell=void 0;const e=requireUtils(),t=requireWrapString(),n=requireWrapWord();return wrapCell.wrapCell=(r,i,o)=>{const s=(0,e.splitAnsi)(r);for(let e=0;e(0,e.wrapCell)(t,n,r).length,calculateCellHeight}function requireCalculateRowHeights(){if(hasRequiredCalculateRowHeights)return calculateRowHeights;hasRequiredCalculateRowHeights=1,Object.defineProperty(calculateRowHeights,"__esModule",{value:!0}),calculateRowHeights.calculateRowHeights=void 0;const e=requireCalculateCellHeight(),t=requireUtils();return calculateRowHeights.calculateRowHeights=(n,r)=>{const i=[];for(const[o,s]of n.entries()){let a=1;s.forEach(((s,c)=>{var l;const u=null===(l=r.spanningCellManager)||void 0===l?void 0:l.getContainingRange({col:c,row:o});if(!u){const t=(0,e.calculateCellHeight)(s,r.columns[c].width,r.columns[c].wrapWord);return void(a=Math.max(a,t))}const{topLeft:d,bottomRight:p,height:f}=u;if(o===p.row){const e=(0,t.sumArray)(i.slice(d.row)),o=p.row-d.row,s=(0,t.sequence)(d.row+1,p.row).filter((e=>{var t;return!(null===(t=r.drawHorizontalLine)||void 0===t?void 0:t.call(r,e,n.length))})).length,c=f-e-o+s;a=Math.max(a,c)}})),i.push(a)}return i},calculateRowHeights}var drawBorder={},drawContent={},hasRequiredDrawContent,hasRequiredDrawBorder;function requireDrawContent(){if(hasRequiredDrawContent)return drawContent;hasRequiredDrawContent=1,Object.defineProperty(drawContent,"__esModule",{value:!0}),drawContent.drawContent=void 0;return drawContent.drawContent=e=>{const{contents:t,separatorGetter:n,drawSeparator:r,spanningCellManager:i,rowIndex:o,elementType:s}=e,a=t.length,c=[];return r(0,a)&&c.push(n(0,a)),t.forEach(((e,t)=>{if(s&&"border"!==s&&"row"!==s||c.push(e),"cell"===s&&void 0===o&&c.push(e),"cell"===s&&void 0!==o){const n=null==i?void 0:i.getContainingRange({col:t,row:o});n&&t!==n.topLeft.col||c.push(e)}if(t+1{const{separator:n,horizontalBorderIndex:r,spanningCellManager:i}=t;return e.map(((e,t)=>{const o=n.body.repeat(e);if(void 0===r)return o;const s=null==i?void 0:i.getContainingRange({col:t,row:r});if(!s)return o;const{topLeft:a}=s;return r===a.row?o:t!==a.col?"":s.extractBorderContent(r)}))};e.createSeparatorGetter=e=>{const{separator:t,spanningCellManager:n,horizontalBorderIndex:r,rowCount:i}=e;return(e,o)=>{const s=null==n?void 0:n.inSameRange;if(void 0!==r&&s){const n={col:e,row:r-1},a={col:e-1,row:r},c={col:e-1,row:r-1},l={col:e,row:r},u=[[c,n],[n,l],[l,a],[a,c]];if(0===e)return s(l,n)&&t.bodyJoinOuter?t.bodyJoinOuter:t.left;if(e===o)return s(c,a)&&t.bodyJoinOuter?t.bodyJoinOuter:t.right;if(0===r)return s(l,a)?t.body:t.join;if(r===i)return s(n,c)?t.body:t.join;const d=u.map((e=>s(...e))).filter(Boolean).length;if(0===d)return t.join;if(4===d)return"";if(2===d)return s(...u[1])&&s(...u[3])&&t.bodyJoinInner?t.bodyJoinInner:t.body;if(1===d){if(!(t.joinRight&&t.joinLeft&&t.joinUp&&t.joinDown))throw new Error(`Can not get border separator for position [${r}, ${e}]`);return s(...u[0])?t.joinDown:s(...u[1])?t.joinLeft:s(...u[2])?t.joinUp:t.joinRight}throw new Error("Invalid case")}return 0===e?t.left:e===o?t.right:t.join}};e.drawBorder=(n,r)=>{const i=(0,e.drawBorderSegments)(n,r),{drawVerticalLine:o,horizontalBorderIndex:s,spanningCellManager:a}=r;return(0,t.drawContent)({contents:i,drawSeparator:o,elementType:"border",rowIndex:s,separatorGetter:(0,e.createSeparatorGetter)(r),spanningCellManager:a})+"\n"};e.drawBorderTop=(t,n)=>{const{border:r}=n,i=(0,e.drawBorder)(t,{...n,separator:{body:r.topBody,join:r.topJoin,left:r.topLeft,right:r.topRight}});return"\n"===i?"":i};e.drawBorderJoin=(t,n)=>{const{border:r}=n;return(0,e.drawBorder)(t,{...n,separator:{body:r.joinBody,bodyJoinInner:r.bodyJoin,bodyJoinOuter:r.bodyLeft,join:r.joinJoin,joinDown:r.joinMiddleDown,joinLeft:r.joinMiddleLeft,joinRight:r.joinMiddleRight,joinUp:r.joinMiddleUp,left:r.joinLeft,right:r.joinRight}})};e.drawBorderBottom=(t,n)=>{const{border:r}=n;return(0,e.drawBorder)(t,{...n,separator:{body:r.bottomBody,join:r.bottomJoin,left:r.bottomLeft,right:r.bottomRight}})};e.createTableBorderGetter=(t,n)=>(r,i)=>{const o={...n,horizontalBorderIndex:r};return 0===r?(0,e.drawBorderTop)(t,o):r===i?(0,e.drawBorderBottom)(t,o):(0,e.drawBorderJoin)(t,o)}}(drawBorder)),drawBorder}var drawRow={},hasRequiredDrawRow;function requireDrawRow(){if(hasRequiredDrawRow)return drawRow;hasRequiredDrawRow=1,Object.defineProperty(drawRow,"__esModule",{value:!0}),drawRow.drawRow=void 0;const e=requireDrawContent();return drawRow.drawRow=(t,n)=>{const{border:r,drawVerticalLine:i,rowIndex:o,spanningCellManager:s}=n;return(0,e.drawContent)({contents:t,drawSeparator:i,elementType:"cell",rowIndex:o,separatorGetter:(e,t)=>0===e?r.bodyLeft:e===t?r.bodyRight:r.bodyJoin,spanningCellManager:s})+"\n"},drawRow}var makeStreamConfig={},validateConfig={},validators={},hasRequiredValidators,hasRequiredValidateConfig,hasRequiredMakeStreamConfig;function requireValidators(){return hasRequiredValidators||(hasRequiredValidators=1,function(e){e["config.json"]=function e(n,{instancePath:i="",parentData:s,parentDataProperty:c,rootData:l=n}={}){let u=null,d=0;if(n&&"object"==typeof n&&!Array.isArray(n)){for(const e in n)if("border"!==e&&"header"!==e&&"columns"!==e&&"columnDefault"!==e&&"drawVerticalLine"!==e&&"drawHorizontalLine"!==e&&"singleLine"!==e&&"spanningCells"!==e){const t={instancePath:i,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===u?u=[t]:u.push(t),d++}if(void 0!==n.border&&(o(n.border,{instancePath:i+"/border",parentData:n,parentDataProperty:"border",rootData:l})||(u=null===u?o.errors:u.concat(o.errors),d=u.length)),void 0!==n.header){let e=n.header;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.content){const e={instancePath:i+"/header",schemaPath:"#/properties/header/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};null===u?u=[e]:u.push(e),d++}for(const t in e)if("content"!==t&&"alignment"!==t&&"wrapWord"!==t&&"truncate"!==t&&"paddingLeft"!==t&&"paddingRight"!==t){const e={instancePath:i+"/header",schemaPath:"#/properties/header/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:t},message:"must NOT have additional properties"};null===u?u=[e]:u.push(e),d++}if(void 0!==e.content&&"string"!=typeof e.content){const e={instancePath:i+"/header/content",schemaPath:"#/properties/header/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),d++}if(void 0!==e.alignment&&(a(e.alignment,{instancePath:i+"/header/alignment",parentData:e,parentDataProperty:"alignment",rootData:l})||(u=null===u?a.errors:u.concat(a.errors),d=u.length)),void 0!==e.wrapWord&&"boolean"!=typeof e.wrapWord){const e={instancePath:i+"/header/wrapWord",schemaPath:"#/properties/header/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===u?u=[e]:u.push(e),d++}if(void 0!==e.truncate){let t=e.truncate;if("number"!=typeof t||t%1||isNaN(t)||!isFinite(t)){const e={instancePath:i+"/header/truncate",schemaPath:"#/properties/header/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}if(void 0!==e.paddingLeft){let t=e.paddingLeft;if("number"!=typeof t||t%1||isNaN(t)||!isFinite(t)){const e={instancePath:i+"/header/paddingLeft",schemaPath:"#/properties/header/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}if(void 0!==e.paddingRight){let t=e.paddingRight;if("number"!=typeof t||t%1||isNaN(t)||!isFinite(t)){const e={instancePath:i+"/header/paddingRight",schemaPath:"#/properties/header/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}}else{const e={instancePath:i+"/header",schemaPath:"#/properties/header/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.columns&&(f(n.columns,{instancePath:i+"/columns",parentData:n,parentDataProperty:"columns",rootData:l})||(u=null===u?f.errors:u.concat(f.errors),d=u.length)),void 0!==n.columnDefault&&(_(n.columnDefault,{instancePath:i+"/columnDefault",parentData:n,parentDataProperty:"columnDefault",rootData:l})||(u=null===u?_.errors:u.concat(_.errors),d=u.length)),void 0!==n.drawVerticalLine&&"function"!=typeof n.drawVerticalLine){const e={instancePath:i+"/drawVerticalLine",schemaPath:"#/properties/drawVerticalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};null===u?u=[e]:u.push(e),d++}if(void 0!==n.drawHorizontalLine&&"function"!=typeof n.drawHorizontalLine){const e={instancePath:i+"/drawHorizontalLine",schemaPath:"#/properties/drawHorizontalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};null===u?u=[e]:u.push(e),d++}if(void 0!==n.singleLine&&"boolean"!=typeof n.singleLine){const e={instancePath:i+"/singleLine",schemaPath:"#/properties/singleLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};null===u?u=[e]:u.push(e),d++}if(void 0!==n.spanningCells){let e=n.spanningCells;if(Array.isArray(e)){const n=e.length;for(let o=0;o=",limit:0},message:"must be >= 0"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.row){let e=n.row;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/row",schemaPath:"#/properties/spanningCells/items/properties/row/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}if("number"==typeof e&&isFinite(e)&&(e<0||isNaN(e))){const e={instancePath:i+"/spanningCells/"+o+"/row",schemaPath:"#/properties/spanningCells/items/properties/row/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.colSpan){let e=n.colSpan;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/colSpan",schemaPath:"#/properties/spanningCells/items/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}if("number"==typeof e&&isFinite(e)&&(e<1||isNaN(e))){const e={instancePath:i+"/spanningCells/"+o+"/colSpan",schemaPath:"#/properties/spanningCells/items/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.rowSpan){let e=n.rowSpan;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/rowSpan",schemaPath:"#/properties/spanningCells/items/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}if("number"==typeof e&&isFinite(e)&&(e<1||isNaN(e))){const e={instancePath:i+"/spanningCells/"+o+"/rowSpan",schemaPath:"#/properties/spanningCells/items/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.alignment&&(a(n.alignment,{instancePath:i+"/spanningCells/"+o+"/alignment",parentData:n,parentDataProperty:"alignment",rootData:l})||(u=null===u?a.errors:u.concat(a.errors),d=u.length)),void 0!==n.verticalAlignment&&(m(n.verticalAlignment,{instancePath:i+"/spanningCells/"+o+"/verticalAlignment",parentData:n,parentDataProperty:"verticalAlignment",rootData:l})||(u=null===u?m.errors:u.concat(m.errors),d=u.length)),void 0!==n.wrapWord&&"boolean"!=typeof n.wrapWord){const e={instancePath:i+"/spanningCells/"+o+"/wrapWord",schemaPath:"#/properties/spanningCells/items/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===u?u=[e]:u.push(e),d++}if(void 0!==n.truncate){let e=n.truncate;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/truncate",schemaPath:"#/properties/spanningCells/items/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.paddingLeft){let e=n.paddingLeft;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/paddingLeft",schemaPath:"#/properties/spanningCells/items/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.paddingRight){let e=n.paddingRight;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/paddingRight",schemaPath:"#/properties/spanningCells/items/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}}else{const e={instancePath:i+"/spanningCells/"+o,schemaPath:"#/properties/spanningCells/items/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),d++}}}else{const e={instancePath:i+"/spanningCells",schemaPath:"#/properties/spanningCells/type",keyword:"type",params:{type:"array"},message:"must be array"};null===u?u=[e]:u.push(e),d++}}}else{const e={instancePath:i,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),d++}return e.errors=u,0===d};const t={$id:"config.json",$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{border:{$ref:"shared.json#/definitions/borders"},header:{type:"object",properties:{content:{type:"string"},alignment:{$ref:"shared.json#/definitions/alignment"},wrapWord:{type:"boolean"},truncate:{type:"integer"},paddingLeft:{type:"integer"},paddingRight:{type:"integer"}},required:["content"],additionalProperties:!1},columns:{$ref:"shared.json#/definitions/columns"},columnDefault:{$ref:"shared.json#/definitions/column"},drawVerticalLine:{typeof:"function"},drawHorizontalLine:{typeof:"function"},singleLine:{typeof:"boolean"},spanningCells:{type:"array",items:{type:"object",properties:{col:{type:"integer",minimum:0},row:{type:"integer",minimum:0},colSpan:{type:"integer",minimum:1},rowSpan:{type:"integer",minimum:1},alignment:{$ref:"shared.json#/definitions/alignment"},verticalAlignment:{$ref:"shared.json#/definitions/verticalAlignment"},wrapWord:{type:"boolean"},truncate:{type:"integer"},paddingLeft:{type:"integer"},paddingRight:{type:"integer"}},required:["row","col"],additionalProperties:!1}}},additionalProperties:!1},n={type:"object",properties:{topBody:{$ref:"#/definitions/border"},topJoin:{$ref:"#/definitions/border"},topLeft:{$ref:"#/definitions/border"},topRight:{$ref:"#/definitions/border"},bottomBody:{$ref:"#/definitions/border"},bottomJoin:{$ref:"#/definitions/border"},bottomLeft:{$ref:"#/definitions/border"},bottomRight:{$ref:"#/definitions/border"},bodyLeft:{$ref:"#/definitions/border"},bodyRight:{$ref:"#/definitions/border"},bodyJoin:{$ref:"#/definitions/border"},headerJoin:{$ref:"#/definitions/border"},joinBody:{$ref:"#/definitions/border"},joinLeft:{$ref:"#/definitions/border"},joinRight:{$ref:"#/definitions/border"},joinJoin:{$ref:"#/definitions/border"},joinMiddleUp:{$ref:"#/definitions/border"},joinMiddleDown:{$ref:"#/definitions/border"},joinMiddleLeft:{$ref:"#/definitions/border"},joinMiddleRight:{$ref:"#/definitions/border"}},additionalProperties:!1},r=Object.prototype.hasOwnProperty;function i(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:o=e}={}){let s=null,a=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===s?s=[e]:s.push(e),a++}return i.errors=s,0===a}function o(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:c=e}={}){let l=null,u=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const i in e)if(!r.call(n.properties,i)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};null===l?l=[e]:l.push(e),u++}void 0!==e.topBody&&(i(e.topBody,{instancePath:t+"/topBody",parentData:e,parentDataProperty:"topBody",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.topJoin&&(i(e.topJoin,{instancePath:t+"/topJoin",parentData:e,parentDataProperty:"topJoin",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.topLeft&&(i(e.topLeft,{instancePath:t+"/topLeft",parentData:e,parentDataProperty:"topLeft",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.topRight&&(i(e.topRight,{instancePath:t+"/topRight",parentData:e,parentDataProperty:"topRight",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bottomBody&&(i(e.bottomBody,{instancePath:t+"/bottomBody",parentData:e,parentDataProperty:"bottomBody",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bottomJoin&&(i(e.bottomJoin,{instancePath:t+"/bottomJoin",parentData:e,parentDataProperty:"bottomJoin",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bottomLeft&&(i(e.bottomLeft,{instancePath:t+"/bottomLeft",parentData:e,parentDataProperty:"bottomLeft",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bottomRight&&(i(e.bottomRight,{instancePath:t+"/bottomRight",parentData:e,parentDataProperty:"bottomRight",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bodyLeft&&(i(e.bodyLeft,{instancePath:t+"/bodyLeft",parentData:e,parentDataProperty:"bodyLeft",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bodyRight&&(i(e.bodyRight,{instancePath:t+"/bodyRight",parentData:e,parentDataProperty:"bodyRight",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bodyJoin&&(i(e.bodyJoin,{instancePath:t+"/bodyJoin",parentData:e,parentDataProperty:"bodyJoin",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.headerJoin&&(i(e.headerJoin,{instancePath:t+"/headerJoin",parentData:e,parentDataProperty:"headerJoin",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinBody&&(i(e.joinBody,{instancePath:t+"/joinBody",parentData:e,parentDataProperty:"joinBody",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinLeft&&(i(e.joinLeft,{instancePath:t+"/joinLeft",parentData:e,parentDataProperty:"joinLeft",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinRight&&(i(e.joinRight,{instancePath:t+"/joinRight",parentData:e,parentDataProperty:"joinRight",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinJoin&&(i(e.joinJoin,{instancePath:t+"/joinJoin",parentData:e,parentDataProperty:"joinJoin",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinMiddleUp&&(i(e.joinMiddleUp,{instancePath:t+"/joinMiddleUp",parentData:e,parentDataProperty:"joinMiddleUp",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinMiddleDown&&(i(e.joinMiddleDown,{instancePath:t+"/joinMiddleDown",parentData:e,parentDataProperty:"joinMiddleDown",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinMiddleLeft&&(i(e.joinMiddleLeft,{instancePath:t+"/joinMiddleLeft",parentData:e,parentDataProperty:"joinMiddleLeft",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinMiddleRight&&(i(e.joinMiddleRight,{instancePath:t+"/joinMiddleRight",parentData:e,parentDataProperty:"joinMiddleRight",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===l?l=[e]:l.push(e),u++}return o.errors=l,0===u}const s={type:"string",enum:["left","right","center","justify"]};function a(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,c=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),c++}if("left"!==e&&"right"!==e&&"center"!==e&&"justify"!==e){const e={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:s.enum},message:"must be equal to one of the allowed values"};null===o?o=[e]:o.push(e),c++}return a.errors=o,0===c}requireEqual().default;const c=new RegExp("^[0-9]+$","u");function l(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,a=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),a++}if("left"!==e&&"right"!==e&&"center"!==e&&"justify"!==e){const e={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:s.enum},message:"must be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}return l.errors=o,0===a}const u={type:"string",enum:["top","middle","bottom"]};function d(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,s=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),s++}if("top"!==e&&"middle"!==e&&"bottom"!==e){const e={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:u.enum},message:"must be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}return d.errors=o,0===s}function p(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,s=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const n in e)if("alignment"!==n&&"verticalAlignment"!==n&&"width"!==n&&"wrapWord"!==n&&"truncate"!==n&&"paddingLeft"!==n&&"paddingRight"!==n){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.alignment&&(l(e.alignment,{instancePath:t+"/alignment",parentData:e,parentDataProperty:"alignment",rootData:i})||(o=null===o?l.errors:o.concat(l.errors),s=o.length)),void 0!==e.verticalAlignment&&(d(e.verticalAlignment,{instancePath:t+"/verticalAlignment",parentData:e,parentDataProperty:"verticalAlignment",rootData:i})||(o=null===o?d.errors:o.concat(d.errors),s=o.length)),void 0!==e.width){let n=e.width;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}if("number"==typeof n&&isFinite(n)&&(n<1||isNaN(n))){const e={instancePath:t+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.wrapWord&&"boolean"!=typeof e.wrapWord){const e={instancePath:t+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.truncate){let n=e.truncate;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingLeft){let n=e.paddingLeft;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingRight){let n=e.paddingRight;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),s++}return p.errors=o,0===s}function f(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,s=0;const a=s;let l=!1,u=null;const d=s;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const n in e)if(!c.test(n)){const e={instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),s++}for(const n in e)c.test(n)&&(p(e[n],{instancePath:t+"/"+n.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:n,rootData:i})||(o=null===o?p.errors:o.concat(p.errors),s=o.length))}else{const e={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),s++}(m=d===s)&&(l=!0,u=0);const _=s;if(Array.isArray(e)){const n=e.length;for(let r=0;r=",limit:1},message:"must be >= 1"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.wrapWord&&"boolean"!=typeof e.wrapWord){const e={instancePath:t+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.truncate){let n=e.truncate;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingLeft){let n=e.paddingLeft;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingRight){let n=e.paddingRight;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),s++}return _.errors=o,0===s}function m(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,s=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),s++}if("top"!==e&&"middle"!==e&&"bottom"!==e){const e={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:u.enum},message:"must be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}return m.errors=o,0===s}function h(e,{instancePath:t="",parentData:o,parentDataProperty:s,rootData:a=e}={}){let c=null,l=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const i in e)if(!r.call(n.properties,i)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};null===c?c=[e]:c.push(e),l++}void 0!==e.topBody&&(i(e.topBody,{instancePath:t+"/topBody",parentData:e,parentDataProperty:"topBody",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.topJoin&&(i(e.topJoin,{instancePath:t+"/topJoin",parentData:e,parentDataProperty:"topJoin",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.topLeft&&(i(e.topLeft,{instancePath:t+"/topLeft",parentData:e,parentDataProperty:"topLeft",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.topRight&&(i(e.topRight,{instancePath:t+"/topRight",parentData:e,parentDataProperty:"topRight",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bottomBody&&(i(e.bottomBody,{instancePath:t+"/bottomBody",parentData:e,parentDataProperty:"bottomBody",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bottomJoin&&(i(e.bottomJoin,{instancePath:t+"/bottomJoin",parentData:e,parentDataProperty:"bottomJoin",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bottomLeft&&(i(e.bottomLeft,{instancePath:t+"/bottomLeft",parentData:e,parentDataProperty:"bottomLeft",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bottomRight&&(i(e.bottomRight,{instancePath:t+"/bottomRight",parentData:e,parentDataProperty:"bottomRight",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bodyLeft&&(i(e.bodyLeft,{instancePath:t+"/bodyLeft",parentData:e,parentDataProperty:"bodyLeft",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bodyRight&&(i(e.bodyRight,{instancePath:t+"/bodyRight",parentData:e,parentDataProperty:"bodyRight",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bodyJoin&&(i(e.bodyJoin,{instancePath:t+"/bodyJoin",parentData:e,parentDataProperty:"bodyJoin",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.headerJoin&&(i(e.headerJoin,{instancePath:t+"/headerJoin",parentData:e,parentDataProperty:"headerJoin",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinBody&&(i(e.joinBody,{instancePath:t+"/joinBody",parentData:e,parentDataProperty:"joinBody",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinLeft&&(i(e.joinLeft,{instancePath:t+"/joinLeft",parentData:e,parentDataProperty:"joinLeft",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinRight&&(i(e.joinRight,{instancePath:t+"/joinRight",parentData:e,parentDataProperty:"joinRight",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinJoin&&(i(e.joinJoin,{instancePath:t+"/joinJoin",parentData:e,parentDataProperty:"joinJoin",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinMiddleUp&&(i(e.joinMiddleUp,{instancePath:t+"/joinMiddleUp",parentData:e,parentDataProperty:"joinMiddleUp",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinMiddleDown&&(i(e.joinMiddleDown,{instancePath:t+"/joinMiddleDown",parentData:e,parentDataProperty:"joinMiddleDown",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinMiddleLeft&&(i(e.joinMiddleLeft,{instancePath:t+"/joinMiddleLeft",parentData:e,parentDataProperty:"joinMiddleLeft",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinMiddleRight&&(i(e.joinMiddleRight,{instancePath:t+"/joinMiddleRight",parentData:e,parentDataProperty:"joinMiddleRight",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===c?c=[e]:c.push(e),l++}return h.errors=c,0===l}function g(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,s=0;const a=s;let l=!1,u=null;const d=s;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const n in e)if(!c.test(n)){const e={instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),s++}for(const n in e)c.test(n)&&(p(e[n],{instancePath:t+"/"+n.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:n,rootData:i})||(o=null===o?p.errors:o.concat(p.errors),s=o.length))}else{const e={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),s++}(_=d===s)&&(l=!0,u=0);const f=s;if(Array.isArray(e)){const n=e.length;for(let r=0;r=",limit:1},message:"must be >= 1"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.wrapWord&&"boolean"!=typeof e.wrapWord){const e={instancePath:t+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.truncate){let n=e.truncate;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingLeft){let n=e.paddingLeft;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingRight){let n=e.paddingRight;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),s++}return A.errors=o,0===s}e["streamConfig.json"]=function e(t,{instancePath:n="",parentData:r,parentDataProperty:i,rootData:o=t}={}){let s=null,a=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.columnDefault){const e={instancePath:n,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columnDefault"},message:"must have required property 'columnDefault'"};null===s?s=[e]:s.push(e),a++}if(void 0===t.columnCount){const e={instancePath:n,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columnCount"},message:"must have required property 'columnCount'"};null===s?s=[e]:s.push(e),a++}for(const e in t)if("border"!==e&&"columns"!==e&&"columnDefault"!==e&&"columnCount"!==e&&"drawVerticalLine"!==e){const t={instancePath:n,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===s?s=[t]:s.push(t),a++}if(void 0!==t.border&&(h(t.border,{instancePath:n+"/border",parentData:t,parentDataProperty:"border",rootData:o})||(s=null===s?h.errors:s.concat(h.errors),a=s.length)),void 0!==t.columns&&(g(t.columns,{instancePath:n+"/columns",parentData:t,parentDataProperty:"columns",rootData:o})||(s=null===s?g.errors:s.concat(g.errors),a=s.length)),void 0!==t.columnDefault&&(A(t.columnDefault,{instancePath:n+"/columnDefault",parentData:t,parentDataProperty:"columnDefault",rootData:o})||(s=null===s?A.errors:s.concat(A.errors),a=s.length)),void 0!==t.columnCount){let e=t.columnCount;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:n+"/columnCount",schemaPath:"#/properties/columnCount/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===s?s=[e]:s.push(e),a++}if("number"==typeof e&&isFinite(e)&&(e<1||isNaN(e))){const e={instancePath:n+"/columnCount",schemaPath:"#/properties/columnCount/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};null===s?s=[e]:s.push(e),a++}}if(void 0!==t.drawVerticalLine&&"function"!=typeof t.drawVerticalLine){const e={instancePath:n+"/drawVerticalLine",schemaPath:"#/properties/drawVerticalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};null===s?s=[e]:s.push(e),a++}}else{const e={instancePath:n,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===s?s=[e]:s.push(e),a++}return e.errors=s,0===a}}(validators)),validators}function requireValidateConfig(){if(hasRequiredValidateConfig)return validateConfig;hasRequiredValidateConfig=1;var e=validateConfig&&validateConfig.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(validateConfig,"__esModule",{value:!0}),validateConfig.validateConfig=void 0;const t=e(requireValidators());return validateConfig.validateConfig=(e,n)=>{const r=t.default[e];if(!r(n)&&r.errors){const e=r.errors.map((e=>({message:e.message,params:e.params,schemaPath:e.schemaPath})));throw console.log("config",n),console.log("errors",e),new Error("Invalid config.")}},validateConfig}function requireMakeStreamConfig(){if(hasRequiredMakeStreamConfig)return makeStreamConfig;hasRequiredMakeStreamConfig=1,Object.defineProperty(makeStreamConfig,"__esModule",{value:!0}),makeStreamConfig.makeStreamConfig=void 0;const e=requireUtils(),t=requireValidateConfig(),n=(e,t={},n)=>Array.from({length:e}).map(((e,r)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",wrapWord:!1,...n,...t[r]})));return makeStreamConfig.makeStreamConfig=r=>{if((0,t.validateConfig)("streamConfig.json",r),void 0===r.columnDefault.width)throw new Error("Must provide config.columnDefault.width when creating a stream.");return{drawVerticalLine:()=>!0,...r,border:(0,e.makeBorderConfig)(r.border),columns:n(r.columnCount,r.columns,r.columnDefault)}},makeStreamConfig}var mapDataUsingRowHeights={},hasRequiredMapDataUsingRowHeights;function requireMapDataUsingRowHeights(){return hasRequiredMapDataUsingRowHeights||(hasRequiredMapDataUsingRowHeights=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mapDataUsingRowHeights=e.padCellVertically=void 0;const t=requireUtils(),n=requireWrapCell(),r=e=>new Array(e).fill("");e.padCellVertically=(e,t,n)=>{const i=t-e.length;return"top"===n?[...e,...r(i)]:"bottom"===n?[...r(i),...e]:[...r(Math.floor(i/2)),...e,...r(Math.ceil(i/2))]};e.mapDataUsingRowHeights=(r,i,o)=>{const s=r[0].length,a=r.map(((t,r)=>{const a=i[r],c=Array.from({length:a},(()=>new Array(s).fill("")));return t.forEach(((t,i)=>{var s;const l=null===(s=o.spanningCellManager)||void 0===s?void 0:s.getContainingRange({col:i,row:r});if(l)return void l.extractCellContent(r).forEach(((e,t)=>{c[t][i]=e}));const u=(0,n.wrapCell)(t,o.columns[i].width,o.columns[i].wrapWord);(0,e.padCellVertically)(u,a,o.columns[i].verticalAlignment).forEach(((e,t)=>{c[t][i]=e}))})),c}));return(0,t.flatten)(a)}}(mapDataUsingRowHeights)),mapDataUsingRowHeights}var padTableData={},hasRequiredPadTableData;function requirePadTableData(){return hasRequiredPadTableData||(hasRequiredPadTableData=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.padTableData=e.padString=void 0;e.padString=(e,t,n)=>" ".repeat(t)+e+" ".repeat(n);e.padTableData=(t,n)=>t.map(((t,r)=>t.map(((t,i)=>{var o;if(null===(o=n.spanningCellManager)||void 0===o?void 0:o.getContainingRange({col:i,row:r},{mapped:!0}))return t;const{paddingLeft:s,paddingRight:a}=n.columns[i];return(0,e.padString)(t,s,a)}))))}(padTableData)),padTableData}var stringifyTableData={},hasRequiredStringifyTableData;function requireStringifyTableData(){if(hasRequiredStringifyTableData)return stringifyTableData;hasRequiredStringifyTableData=1,Object.defineProperty(stringifyTableData,"__esModule",{value:!0}),stringifyTableData.stringifyTableData=void 0;const e=requireUtils();return stringifyTableData.stringifyTableData=t=>t.map((t=>t.map((t=>(0,e.normalizeString)(String(t)))))),stringifyTableData}var truncateTableData={},lodash_truncate={exports:{}},hasRequiredLodash_truncate,hasRequiredTruncateTableData,hasRequiredCreateStream;function requireLodash_truncate(){return hasRequiredLodash_truncate||(hasRequiredLodash_truncate=1,function(e,t){var n,r=1/0,i=NaN,o=/^\s+|\s+$/g,s=/\w*$/,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u="\\ud800-\\udfff",d="\\u0300-\\u036f\\ufe20-\\ufe23",p="\\u20d0-\\u20f0",f="\\ufe0e\\ufe0f",_="["+u+"]",m="["+d+p+"]",h="\\ud83c[\\udffb-\\udfff]",g="[^"+u+"]",A="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",v="\\u200d",b="(?:"+m+"|"+h+")"+"?",C="["+f+"]?",E=C+b+("(?:"+v+"(?:"+[g,A,y].join("|")+")"+C+b+")*"),x="(?:"+[g+m+"?",m,A,y,_].join("|")+")",S=RegExp(h+"(?="+h+")|"+x+E,"g"),k=RegExp("["+v+u+d+p+f+"]"),D=parseInt,w="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,I="object"==typeof self&&self&&self.Object===Object&&self,T=w||I||Function("return this")(),F=t&&!t.nodeType&&t,R=F&&e&&!e.nodeType&&e,P=R&&R.exports===F&&w.process,N=function(){try{return P&&P.binding("util")}catch(e){}}(),B=N&&N.isRegExp,O=(n="length",function(e){return null==e?void 0:e[n]});function q(e){return k.test(e)}function $(e){return q(e)?function(e){var t=S.lastIndex=0;for(;S.test(e);)t++;return t}(e):O(e)}function Q(e){return q(e)?function(e){return e.match(S)||[]}(e):function(e){return e.split("")}(e)}var L=Object.prototype.toString,M=T.Symbol,j=M?M.prototype:void 0,U=j?j.toString:void 0;function J(e){if("string"==typeof e)return e;if(z(e))return U?U.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function V(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=o)return e;var c=n-$(r);if(c<1)return r;var l=a?V(a,0,c).join(""):e.slice(0,c);if(void 0===i)return l+r;if(a&&(c+=l.length-c),W(i)){if(e.slice(c).search(i)){var u,d=l;for(i.global||(i=RegExp(i.source,K(s.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;l=l.slice(0,void 0===p?c:p)}}else if(e.indexOf(J(i),c)!=c){var f=l.lastIndexOf(i);f>-1&&(l=l.slice(0,f))}return l+r}}(lodash_truncate,lodash_truncate.exports)),lodash_truncate.exports}function requireTruncateTableData(){return hasRequiredTruncateTableData||(hasRequiredTruncateTableData=1,function(e){var t=truncateTableData&&truncateTableData.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.truncateTableData=e.truncateString=void 0;const n=t(requireLodash_truncate());e.truncateString=(e,t)=>(0,n.default)(e,{length:t,omission:"โ€ฆ"});e.truncateTableData=(t,n)=>t.map((t=>t.map(((t,r)=>(0,e.truncateString)(t,n[r])))))}(truncateTableData)),truncateTableData}function requireCreateStream(){if(hasRequiredCreateStream)return createStream;hasRequiredCreateStream=1,Object.defineProperty(createStream,"__esModule",{value:!0}),createStream.createStream=void 0;const e=requireAlignTableData(),t=requireCalculateRowHeights(),n=requireDrawBorder(),r=requireDrawRow(),i=requireMakeStreamConfig(),o=requireMapDataUsingRowHeights(),s=requirePadTableData(),a=requireStringifyTableData(),c=requireTruncateTableData(),l=requireUtils(),u=(n,r)=>{let i=(0,a.stringifyTableData)(n);i=(0,c.truncateTableData)(i,(0,l.extractTruncates)(r));const u=(0,t.calculateRowHeights)(i,r);return i=(0,o.mapDataUsingRowHeights)(i,u,r),i=(0,e.alignTableData)(i,r),i=(0,s.padTableData)(i,r),i};return createStream.createStream=e=>{const t=(0,i.makeStreamConfig)(e),o=Object.values(t.columns).map((e=>e.width+e.paddingLeft+e.paddingRight));let s=!0;return{write:e=>{if(e.length!==t.columnCount)throw new Error("Row cell count does not match the config.columnCount.");s?(s=!1,((e,t,i)=>{const o=u([e],i).map((e=>(0,r.drawRow)(e,i))).join("");let s;s="",s+=(0,n.drawBorderTop)(t,i),s+=o,s+=(0,n.drawBorderBottom)(t,i),s=s.trimEnd(),process.stdout.write(s)})(e,o,t)):((e,t,i)=>{const o=u([e],i).map((e=>(0,r.drawRow)(e,i))).join("");let s="";const a=(0,n.drawBorderBottom)(t,i);"\n"!==a&&(s="\r"),s+=(0,n.drawBorderJoin)(t,i),s+=o,s+=a,s=s.trimEnd(),process.stdout.write(s)})(e,o,t)}}},createStream}lodash_truncate.exports;var table={},calculateOutputColumnWidths={},hasRequiredCalculateOutputColumnWidths;function requireCalculateOutputColumnWidths(){if(hasRequiredCalculateOutputColumnWidths)return calculateOutputColumnWidths;hasRequiredCalculateOutputColumnWidths=1,Object.defineProperty(calculateOutputColumnWidths,"__esModule",{value:!0}),calculateOutputColumnWidths.calculateOutputColumnWidths=void 0;return calculateOutputColumnWidths.calculateOutputColumnWidths=e=>e.columns.map((e=>e.paddingLeft+e.width+e.paddingRight)),calculateOutputColumnWidths}var drawTable={},hasRequiredDrawTable;function requireDrawTable(){if(hasRequiredDrawTable)return drawTable;hasRequiredDrawTable=1,Object.defineProperty(drawTable,"__esModule",{value:!0}),drawTable.drawTable=void 0;const e=requireDrawBorder(),t=requireDrawContent(),n=requireDrawRow(),r=requireUtils();return drawTable.drawTable=(i,o,s,a)=>{const{drawHorizontalLine:c,singleLine:l}=a,u=(0,r.groupBySizes)(i,s).map(((e,t)=>e.map((e=>(0,n.drawRow)(e,{...a,rowIndex:t}))).join("")));return(0,t.drawContent)({contents:u,drawSeparator:(e,t)=>(0===e||e===t||!l)&&c(e,t),elementType:"row",rowIndex:-1,separatorGetter:(0,e.createTableBorderGetter)(o,{...a,rowCount:u.length}),spanningCellManager:a.spanningCellManager})},drawTable}var injectHeaderConfig={},hasRequiredInjectHeaderConfig;function requireInjectHeaderConfig(){if(hasRequiredInjectHeaderConfig)return injectHeaderConfig;hasRequiredInjectHeaderConfig=1,Object.defineProperty(injectHeaderConfig,"__esModule",{value:!0}),injectHeaderConfig.injectHeaderConfig=void 0;return injectHeaderConfig.injectHeaderConfig=(e,t)=>{var n;let r=null!==(n=t.spanningCells)&&void 0!==n?n:[];const i=t.header,o=[...e];if(i){r=r.map((({row:e,...t})=>({...t,row:e+1})));const{content:t,...n}=i;r.unshift({alignment:"center",col:0,colSpan:e[0].length,paddingLeft:1,paddingRight:1,row:0,wrapWord:!1,...n}),o.unshift([t,...Array.from({length:e[0].length-1}).fill("")])}return[o,r]},injectHeaderConfig}var makeTableConfig={},calculateMaximumColumnWidths={},hasRequiredCalculateMaximumColumnWidths;function requireCalculateMaximumColumnWidths(){return hasRequiredCalculateMaximumColumnWidths||(hasRequiredCalculateMaximumColumnWidths=1,function(e){var t=calculateMaximumColumnWidths&&calculateMaximumColumnWidths.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.calculateMaximumColumnWidths=e.calculateMaximumCellWidth=void 0;const n=t(requireStringWidth()),r=requireUtils();e.calculateMaximumCellWidth=e=>Math.max(...e.split("\n").map(n.default));e.calculateMaximumColumnWidths=(t,n=[])=>{const i=new Array(t[0].length).fill(0),o=n.map(r.calculateRangeCoordinate);return t.forEach(((t,n)=>{t.forEach(((t,s)=>{((e,t)=>o.some((n=>(0,r.isCellInRange)({col:t,row:e},n))))(n,s)||(i[s]=Math.max(i[s],(0,e.calculateMaximumCellWidth)(t)))}))})),i}}(calculateMaximumColumnWidths)),calculateMaximumColumnWidths}var spanningCellManager={},alignSpanningCell={},hasRequiredAlignSpanningCell;function requireAlignSpanningCell(){if(hasRequiredAlignSpanningCell)return alignSpanningCell;hasRequiredAlignSpanningCell=1;var e=alignSpanningCell&&alignSpanningCell.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(alignSpanningCell,"__esModule",{value:!0}),alignSpanningCell.alignVerticalRangeContent=alignSpanningCell.wrapRangeContent=void 0;const t=e(requireStringWidth()),n=requireAlignString(),r=requireMapDataUsingRowHeights(),i=requirePadTableData(),o=requireTruncateTableData(),s=requireUtils(),a=requireWrapCell();alignSpanningCell.wrapRangeContent=(e,t,r)=>{const{topLeft:s,paddingRight:c,paddingLeft:l,truncate:u,wrapWord:d,alignment:p}=e,f=r.rows[s.row][s.col],_=t-l-c;return(0,a.wrapCell)((0,o.truncateString)(f,u),_,d).map((e=>{const t=(0,n.alignString)(e,_,p);return(0,i.padString)(t,l,c)}))};return alignSpanningCell.alignVerticalRangeContent=(e,n,i)=>{const{rows:o,drawHorizontalLine:a,rowHeights:c}=i,{topLeft:l,bottomRight:u,verticalAlignment:d}=e;if(0===c.length)return[];const p=(0,s.sumArray)(c.slice(l.row,u.row+1))+(u.row-l.row)-(0,s.sequence)(l.row+1,u.row).filter((e=>!a(e,o.length))).length;return(0,r.padCellVertically)(n,p,d).map((e=>0===e.length?" ".repeat((0,t.default)(n[0])):e))},alignSpanningCell}var calculateSpanningCellWidth={},hasRequiredCalculateSpanningCellWidth;function requireCalculateSpanningCellWidth(){if(hasRequiredCalculateSpanningCellWidth)return calculateSpanningCellWidth;hasRequiredCalculateSpanningCellWidth=1,Object.defineProperty(calculateSpanningCellWidth,"__esModule",{value:!0}),calculateSpanningCellWidth.calculateSpanningCellWidth=void 0;const e=requireUtils();return calculateSpanningCellWidth.calculateSpanningCellWidth=(t,n)=>{const{columnsConfig:r,drawVerticalLine:i}=n,{topLeft:o,bottomRight:s}=t;return(0,e.sumArray)(r.slice(o.col,s.col+1).map((({width:e})=>e)))+(o.col===s.col?r[o.col].paddingRight+r[s.col].paddingLeft:(0,e.sumArray)(r.slice(o.col,s.col+1).map((({paddingLeft:e,paddingRight:t})=>e+t))))+(s.col-o.col)-(0,e.sequence)(o.col+1,s.col).filter((e=>!i(e,r.length))).length},calculateSpanningCellWidth}var makeRangeConfig={},hasRequiredMakeRangeConfig,hasRequiredSpanningCellManager;function requireMakeRangeConfig(){if(hasRequiredMakeRangeConfig)return makeRangeConfig;hasRequiredMakeRangeConfig=1,Object.defineProperty(makeRangeConfig,"__esModule",{value:!0}),makeRangeConfig.makeRangeConfig=void 0;const e=requireUtils();return makeRangeConfig.makeRangeConfig=(t,n)=>{var r;const{topLeft:i,bottomRight:o}=(0,e.calculateRangeCoordinate)(t);return{...{...n[i.col],...t,paddingRight:null!==(r=t.paddingRight)&&void 0!==r?r:n[o.col].paddingRight},bottomRight:o,topLeft:i}},makeRangeConfig}function requireSpanningCellManager(){if(hasRequiredSpanningCellManager)return spanningCellManager;hasRequiredSpanningCellManager=1,Object.defineProperty(spanningCellManager,"__esModule",{value:!0}),spanningCellManager.createSpanningCellManager=void 0;const e=requireAlignSpanningCell(),t=requireCalculateSpanningCellWidth(),n=requireMakeRangeConfig(),r=requireUtils(),i=(e,t)=>t.find((t=>(0,r.isCellInRange)(e,t))),o=(n,i)=>{const o=(0,t.calculateSpanningCellWidth)(n,i),s=(0,e.wrapRangeContent)(n,o,i),a=(0,e.alignVerticalRangeContent)(n,s,i);return{...n,extractBorderContent:e=>{const{topLeft:t}=n,o=(0,r.sumArray)(i.rowHeights.slice(t.row,e))+(e-t.row-1);return a[o]},extractCellContent:e=>{const{topLeft:t}=n,{drawHorizontalLine:o,rowHeights:s}=i,c=e-t.row,l=(0,r.sequence)(t.row+1,e).filter((e=>!(null==o?void 0:o(e,s.length)))).length,u=(0,r.sumArray)(s.slice(t.row,e))+c-l;return a.slice(u,u+s[e])},height:s.length,width:o}};return spanningCellManager.createSpanningCellManager=e=>{const{spanningCellConfigs:t,columnsConfig:s}=e,a=t.map((e=>(0,n.makeRangeConfig)(e,s))),c={};let l=[],u=[];return{getContainingRange:(t,n)=>{var r;const s=(null==n?void 0:n.mapped)?u[t.row]:t.row,d=i({...t,row:s},a);if(!d)return;if(0===l.length)return o(d,{...e,rowHeights:l});const p=(e=>{const{row:t,col:n}=e.topLeft;return`${t}/${n}`})(d);return null!==(r=c[p])&&void 0!==r||(c[p]=o(d,{...e,rowHeights:l})),c[p]},inSameRange:(e,t)=>((e,t,n)=>{const o=i(e,n),s=i(t,n);return!(!o||!s)&&(0,r.areCellEqual)(o.topLeft,s.topLeft)})(e,t,a),rowHeights:l,rowIndexMapping:u,setRowHeights:e=>{l=e},setRowIndexMapping:e=>{u=(0,r.flatten)(e.map(((e,t)=>Array.from({length:e},(()=>t)))))}}},spanningCellManager}var validateSpanningCellConfig={},hasRequiredValidateSpanningCellConfig,hasRequiredMakeTableConfig;function requireValidateSpanningCellConfig(){if(hasRequiredValidateSpanningCellConfig)return validateSpanningCellConfig;hasRequiredValidateSpanningCellConfig=1,Object.defineProperty(validateSpanningCellConfig,"__esModule",{value:!0}),validateSpanningCellConfig.validateSpanningCellConfig=void 0;const e=requireUtils(),t=(e,t,n)=>e<=n&&n<=t;return validateSpanningCellConfig.validateSpanningCellConfig=(n,r)=>{const[i,o]=[n.length,n[0].length];r.forEach(((e,t)=>{const{colSpan:n,rowSpan:r}=e;if(void 0===n&&void 0===r)throw new Error(`Expect at least colSpan or rowSpan is provided in config.spanningCells[${t}]`);if(void 0!==n&&n<1)throw new Error(`Expect colSpan is not equal zero, instead got: ${n} in config.spanningCells[${t}]`);if(void 0!==r&&r<1)throw new Error(`Expect rowSpan is not equal zero, instead got: ${r} in config.spanningCells[${t}]`)}));const s=r.map(e.calculateRangeCoordinate);s.forEach((({topLeft:e,bottomRight:n},r)=>{if(!(t(0,o-1,e.col)&&t(0,i-1,e.row)&&t(0,o-1,n.col)&&t(0,i-1,n.row)))throw new Error(`Some cells in config.spanningCells[${r}] are out of the table`)}));const a=Array.from({length:i},(()=>Array.from({length:o})));s.forEach((({topLeft:t,bottomRight:n},r)=>{(0,e.sequence)(t.row,n.row).forEach((i=>{(0,e.sequence)(t.col,n.col).forEach((e=>{if(void 0!==a[i][e])throw new Error(`Spanning cells in config.spanningCells[${a[i][e]}] and config.spanningCells[${r}] are overlap each other`);a[i][e]=r}))}))}))},validateSpanningCellConfig}function requireMakeTableConfig(){if(hasRequiredMakeTableConfig)return makeTableConfig;hasRequiredMakeTableConfig=1,Object.defineProperty(makeTableConfig,"__esModule",{value:!0}),makeTableConfig.makeTableConfig=void 0;const e=requireCalculateMaximumColumnWidths(),t=requireSpanningCellManager(),n=requireUtils(),r=requireValidateConfig(),i=requireValidateSpanningCellConfig();return makeTableConfig.makeTableConfig=(o,s={},a)=>{var c,l,u,d,p;(0,r.validateConfig)("config.json",s),(0,i.validateSpanningCellConfig)(o,null!==(c=s.spanningCells)&&void 0!==c?c:[]);const f=null!==(l=null!=a?a:s.spanningCells)&&void 0!==l?l:[],_=((t,n,r,i)=>{const o=(0,e.calculateMaximumColumnWidths)(t,i);return t[0].map(((e,t)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",width:o[t],wrapWord:!1,...r,...null==n?void 0:n[t]})))})(o,s.columns,s.columnDefault,f),m=null!==(u=s.drawVerticalLine)&&void 0!==u?u:()=>!0,h=null!==(d=s.drawHorizontalLine)&&void 0!==d?d:()=>!0;return{...s,border:(0,n.makeBorderConfig)(s.border),columns:_,drawHorizontalLine:h,drawVerticalLine:m,singleLine:null!==(p=s.singleLine)&&void 0!==p&&p,spanningCellManager:(0,t.createSpanningCellManager)({columnsConfig:_,drawHorizontalLine:h,drawVerticalLine:m,rows:o,spanningCellConfigs:f})}},makeTableConfig}var validateTableData={},hasRequiredValidateTableData,hasRequiredTable;function requireValidateTableData(){if(hasRequiredValidateTableData)return validateTableData;hasRequiredValidateTableData=1,Object.defineProperty(validateTableData,"__esModule",{value:!0}),validateTableData.validateTableData=void 0;const e=requireUtils();return validateTableData.validateTableData=t=>{if(!Array.isArray(t))throw new TypeError("Table data must be an array.");if(0===t.length)throw new Error("Table must define at least one row.");if(0===t[0].length)throw new Error("Table must define at least one column.");const n=t[0].length;for(const r of t){if(!Array.isArray(r))throw new TypeError("Table row data must be an array.");if(r.length!==n)throw new Error("Table must have a consistent number of cells.");for(const t of r)if(/[\u0001-\u0006\u0008\u0009\u000B-\u001A]/.test((0,e.normalizeString)(String(t))))throw new Error("Table data must not contain control characters.")}},validateTableData}function requireTable(){if(hasRequiredTable)return table;hasRequiredTable=1,Object.defineProperty(table,"__esModule",{value:!0}),table.table=void 0;const e=requireAlignTableData(),t=requireCalculateOutputColumnWidths(),n=requireCalculateRowHeights(),r=requireDrawTable(),i=requireInjectHeaderConfig(),o=requireMakeTableConfig(),s=requireMapDataUsingRowHeights(),a=requirePadTableData(),c=requireStringifyTableData(),l=requireTruncateTableData(),u=requireUtils(),d=requireValidateTableData();return table.table=(p,f={})=>{(0,d.validateTableData)(p);let _=(0,c.stringifyTableData)(p);const[m,h]=(0,i.injectHeaderConfig)(_,f),g=(0,o.makeTableConfig)(m,f,h);_=(0,l.truncateTableData)(m,(0,u.extractTruncates)(g));const A=(0,n.calculateRowHeights)(_,g);g.spanningCellManager.setRowHeights(A),g.spanningCellManager.setRowIndexMapping(A),_=(0,s.mapDataUsingRowHeights)(_,A,g),_=(0,e.alignTableData)(_,g),_=(0,a.padTableData)(_,g);const y=(0,t.calculateOutputColumnWidths)(g);return(0,r.drawTable)(_,y,A,g)},table}var api={},hasRequiredApi,hasRequiredSrc$2;function requireApi(){return hasRequiredApi||(hasRequiredApi=1,Object.defineProperty(api,"__esModule",{value:!0})),api}function requireSrc$2(){return hasRequiredSrc$2||(hasRequiredSrc$2=1,function(e){var t=src$2&&src$2.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=src$2&&src$2.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.getBorderCharacters=e.createStream=e.table=void 0;const r=requireCreateStream();Object.defineProperty(e,"createStream",{enumerable:!0,get:function(){return r.createStream}});const i=requireGetBorderCharacters();Object.defineProperty(e,"getBorderCharacters",{enumerable:!0,get:function(){return i.getBorderCharacters}});const o=requireTable();Object.defineProperty(e,"table",{enumerable:!0,get:function(){return o.table}}),n(requireApi(),e)}(src$2)),src$2}var srcExports$1=requireSrc$2(),jsonpointerExports=requireJsonpointer(),jsonPointer=getDefaultExportFromCjs(jsonpointerExports);function findSchemaDefinition(e,t={}){const n=e;if(""===(e=e.trim()))return!1;if(!e.startsWith("#"))throw new Error(`Could not find a definition for ${n}.`);e=decodeURIComponent(e.substring(1));const r=jsonPointer.get(t,e);if(void 0===r)throw new Error(`Could not find a definition for ${n}.`);return r}var supportedMethods=new Set(["get","put","post","delete","options","head","patch","trace"]),CODE_SAMPLES="code-samples",EXPLORER_ENABLED="explorer-enabled",HEADERS="headers",METRICS_ENABLED="metrics-enabled",OAUTH_OPTIONS="oauth-options",PARAMETER_ORDERING="parameter-ordering",PROXY_ENABLED="proxy-enabled",SAMPLES_LANGUAGES="samples-languages",SIMPLE_MODE="simple-mode",DISABLE_TAG_SORTING="disable-tag-sorting",extensionDefaults={[CODE_SAMPLES]:void 0,[DISABLE_TAG_SORTING]:!1,[EXPLORER_ENABLED]:!0,[HEADERS]:void 0,[METRICS_ENABLED]:!0,[OAUTH_OPTIONS]:{},[PARAMETER_ORDERING]:["path","query","body","cookie","form","header"],[PROXY_ENABLED]:!0,[SAMPLES_LANGUAGES]:["shell","node","ruby","php","python","java","csharp"],[SIMPLE_MODE]:!0},_listCacheClear,hasRequired_listCacheClear,eq_1,hasRequiredEq,_assocIndexOf,hasRequired_assocIndexOf,_listCacheDelete,hasRequired_listCacheDelete,_listCacheGet,hasRequired_listCacheGet,_listCacheHas,hasRequired_listCacheHas,_listCacheSet,hasRequired_listCacheSet,_ListCache,hasRequired_ListCache,_stackClear,hasRequired_stackClear,_stackDelete,hasRequired_stackDelete,_stackGet,hasRequired_stackGet,_stackHas,hasRequired_stackHas,_freeGlobal,hasRequired_freeGlobal,_root,hasRequired_root,_Symbol,hasRequired_Symbol,_getRawTag,hasRequired_getRawTag,_objectToString,hasRequired_objectToString,_baseGetTag,hasRequired_baseGetTag,isObject_1,hasRequiredIsObject$1,isFunction_1,hasRequiredIsFunction$1,_coreJsData,hasRequired_coreJsData,_isMasked,hasRequired_isMasked,_toSource,hasRequired_toSource,_baseIsNative,hasRequired_baseIsNative,_getValue,hasRequired_getValue,_getNative,hasRequired_getNative,_Map,hasRequired_Map,_nativeCreate,hasRequired_nativeCreate,_hashClear,hasRequired_hashClear,_hashDelete,hasRequired_hashDelete,_hashGet,hasRequired_hashGet,_hashHas,hasRequired_hashHas,_hashSet,hasRequired_hashSet,_Hash,hasRequired_Hash,_mapCacheClear,hasRequired_mapCacheClear,_isKeyable,hasRequired_isKeyable,_getMapData,hasRequired_getMapData,_mapCacheDelete,hasRequired_mapCacheDelete,_mapCacheGet,hasRequired_mapCacheGet,_mapCacheHas,hasRequired_mapCacheHas,_mapCacheSet,hasRequired_mapCacheSet,_MapCache,hasRequired_MapCache,_stackSet,hasRequired_stackSet,_Stack,hasRequired_Stack,_arrayEach,hasRequired_arrayEach,_defineProperty,hasRequired_defineProperty,_baseAssignValue,hasRequired_baseAssignValue,_assignValue,hasRequired_assignValue,_copyObject,hasRequired_copyObject,_baseTimes,hasRequired_baseTimes,isObjectLike_1,hasRequiredIsObjectLike,_baseIsArguments,hasRequired_baseIsArguments,isArguments_1,hasRequiredIsArguments$1,isArray_1,hasRequiredIsArray;function hasRootExtension(e,t){return Boolean(t&&e in t)}function getExtension(e,t,n){if(n){if(n.hasExtension("x-readme")){const t=n.getExtension("x-readme");if(t&&"object"==typeof t&&e in t)return t[e]}if(n.hasExtension(`x-${e}`))return n.getExtension(`x-${e}`);if(n.hasExtension(e))return n.getExtension(e)}if(e===CODE_SAMPLES)return extensionDefaults[e];if(hasRootExtension("x-readme",t)){const n=t?.["x-readme"];if(n&&"object"==typeof n&&e in n)return n[e]}return hasRootExtension(`x-${e}`,t)?t?.[`x-${e}`]:hasRootExtension(e,t)?t?.[e]:e in extensionDefaults?extensionDefaults[e]:void 0}function validateParameterOrdering(e,t){const n=extensionDefaults[PARAMETER_ORDERING],r=n.length,i=`${n.slice(0,-1).join(", ")}, and ${n.slice(-1)}`;if(e.length!==r)throw new TypeError(`"${t}" must contain ${r} items comprised of: ${i}`);if(e.filter((e=>n.includes(e.toLowerCase()))).length!==r)throw new TypeError(`"${t}" must contain ${r} items comprised of: ${i}`)}function isRef(e){return void 0!==e.$ref}function isOAS31(e){return"3.1.0"===e.openapi}function isSchema(e,t=!1){return void 0!==e.type||void 0!==e.allOf||void 0!==e.anyOf||void 0!==e.oneOf||t}function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;return hasRequired_listCacheClear=1,_listCacheClear=function(){this.__data__=[],this.size=0}}function requireEq(){if(hasRequiredEq)return eq_1;return hasRequiredEq=1,eq_1=function(e,t){return e===t||e!=e&&t!=t}}function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var e=requireEq();return _assocIndexOf=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1},_assocIndexOf}function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var e=require_assocIndexOf(),t=Array.prototype.splice;return _listCacheDelete=function(n){var r=this.__data__,i=e(r,n);return!(i<0)&&(i==r.length-1?r.pop():t.call(r,i,1),--this.size,!0)},_listCacheDelete}function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var e=require_assocIndexOf();return _listCacheGet=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},_listCacheGet}function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var e=require_assocIndexOf();return _listCacheHas=function(t){return e(this.__data__,t)>-1}}function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var e=require_assocIndexOf();return _listCacheSet=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this},_listCacheSet}function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var e=require_listCacheClear(),t=require_listCacheDelete(),n=require_listCacheGet(),r=require_listCacheHas(),i=require_listCacheSet();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&t%1==0&&t-1&&e%1==0&&e<=9007199254740991}}function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var e=require_baseGetTag(),t=requireIsLength(),n=requireIsObjectLike(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,_baseIsTypedArray=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;return hasRequired_baseUnary=1,_baseUnary=function(e){return function(t){return e(t)}}}isBuffer.exports;var _nodeUtil={exports:{}},hasRequired_nodeUtil,isTypedArray_1,hasRequiredIsTypedArray,_arrayLikeKeys,hasRequired_arrayLikeKeys,_isPrototype,hasRequired_isPrototype,_overArg,hasRequired_overArg,_nativeKeys,hasRequired_nativeKeys,_baseKeys,hasRequired_baseKeys,isArrayLike_1,hasRequiredIsArrayLike,keys_1,hasRequiredKeys$1,_baseAssign,hasRequired_baseAssign,_nativeKeysIn,hasRequired_nativeKeysIn,_baseKeysIn,hasRequired_baseKeysIn,keysIn_1,hasRequiredKeysIn,_baseAssignIn,hasRequired_baseAssignIn;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,function(e,t){var n=require_freeGlobal(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var e=require_baseIsTypedArray(),t=require_baseUnary(),n=require_nodeUtil(),r=n&&n.isTypedArray,i=r?t(r):e;return isTypedArray_1=i}function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var e=require_baseTimes(),t=requireIsArguments$1(),n=requireIsArray(),r=requireIsBuffer(),i=require_isIndex(),o=requireIsTypedArray(),s=Object.prototype.hasOwnProperty;return _arrayLikeKeys=function(a,c){var l=n(a),u=!l&&t(a),d=!l&&!u&&r(a),p=!l&&!u&&!d&&o(a),f=l||u||d||p,_=f?e(a.length,String):[],m=_.length;for(var h in a)!c&&!s.call(a,h)||f&&("length"==h||d&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||i(h,m))||_.push(h);return _}}function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var e=Object.prototype;return _isPrototype=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function require_overArg(){if(hasRequired_overArg)return _overArg;return hasRequired_overArg=1,_overArg=function(e,t){return function(n){return e(t(n))}}}function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var e=require_overArg()(Object.keys,Object);return _nativeKeys=e}function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var e=require_isPrototype(),t=require_nativeKeys(),n=Object.prototype.hasOwnProperty;return _baseKeys=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i}}function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var e=requireIsFunction$1(),t=requireIsLength();return isArrayLike_1=function(n){return null!=n&&t(n.length)&&!e(n)}}function requireKeys$1(){if(hasRequiredKeys$1)return keys_1;hasRequiredKeys$1=1;var e=require_arrayLikeKeys(),t=require_baseKeys(),n=requireIsArrayLike();return keys_1=function(r){return n(r)?e(r):t(r)}}function require_baseAssign(){if(hasRequired_baseAssign)return _baseAssign;hasRequired_baseAssign=1;var e=require_copyObject(),t=requireKeys$1();return _baseAssign=function(n,r){return n&&e(r,t(r),n)},_baseAssign}function require_nativeKeysIn(){if(hasRequired_nativeKeysIn)return _nativeKeysIn;return hasRequired_nativeKeysIn=1,_nativeKeysIn=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function require_baseKeysIn(){if(hasRequired_baseKeysIn)return _baseKeysIn;hasRequired_baseKeysIn=1;var e=requireIsObject$1(),t=require_isPrototype(),n=require_nativeKeysIn(),r=Object.prototype.hasOwnProperty;return _baseKeysIn=function(i){if(!e(i))return n(i);var o=t(i),s=[];for(var a in i)("constructor"!=a||!o&&r.call(i,a))&&s.push(a);return s}}function requireKeysIn(){if(hasRequiredKeysIn)return keysIn_1;hasRequiredKeysIn=1;var e=require_arrayLikeKeys(),t=require_baseKeysIn(),n=requireIsArrayLike();return keysIn_1=function(r){return n(r)?e(r,!0):t(r)}}function require_baseAssignIn(){if(hasRequired_baseAssignIn)return _baseAssignIn;hasRequired_baseAssignIn=1;var e=require_copyObject(),t=requireKeysIn();return _baseAssignIn=function(n,r){return n&&e(r,t(r),n)},_baseAssignIn}_nodeUtil.exports;var _cloneBuffer={exports:{}},hasRequired_cloneBuffer,_copyArray,hasRequired_copyArray,_arrayFilter,hasRequired_arrayFilter,stubArray_1,hasRequiredStubArray,_getSymbols,hasRequired_getSymbols,_copySymbols,hasRequired_copySymbols,_arrayPush,hasRequired_arrayPush,_getPrototype,hasRequired_getPrototype,_getSymbolsIn,hasRequired_getSymbolsIn,_copySymbolsIn,hasRequired_copySymbolsIn,_baseGetAllKeys,hasRequired_baseGetAllKeys,_getAllKeys,hasRequired_getAllKeys,_getAllKeysIn,hasRequired_getAllKeysIn,_DataView,hasRequired_DataView,_Promise,hasRequired_Promise,_Set,hasRequired_Set,_WeakMap,hasRequired_WeakMap,_getTag,hasRequired_getTag,_initCloneArray,hasRequired_initCloneArray,_Uint8Array,hasRequired_Uint8Array,_cloneArrayBuffer,hasRequired_cloneArrayBuffer,_cloneDataView,hasRequired_cloneDataView,_cloneRegExp,hasRequired_cloneRegExp,_cloneSymbol,hasRequired_cloneSymbol,_cloneTypedArray,hasRequired_cloneTypedArray,_initCloneByTag,hasRequired_initCloneByTag,_baseCreate,hasRequired_baseCreate,_initCloneObject,hasRequired_initCloneObject,_baseIsMap,hasRequired_baseIsMap,isMap_1,hasRequiredIsMap,_baseIsSet,hasRequired_baseIsSet,isSet_1,hasRequiredIsSet,_baseClone,hasRequired_baseClone,cloneDeep_1,hasRequiredCloneDeep,_setCacheAdd,hasRequired_setCacheAdd,_setCacheHas,hasRequired_setCacheHas,_SetCache,hasRequired_SetCache,_arraySome,hasRequired_arraySome,_cacheHas,hasRequired_cacheHas,_equalArrays,hasRequired_equalArrays,_mapToArray,hasRequired_mapToArray,_setToArray,hasRequired_setToArray,_equalByTag,hasRequired_equalByTag,_equalObjects,hasRequired_equalObjects,_baseIsEqualDeep,hasRequired_baseIsEqualDeep,_baseIsEqual,hasRequired_baseIsEqual,isEqual_1,hasRequiredIsEqual,_isFlattenable,hasRequired_isFlattenable,_baseFlatten,hasRequired_baseFlatten,_arrayMap,hasRequired_arrayMap,isSymbol_1,hasRequiredIsSymbol$1,_isKey,hasRequired_isKey,memoize_1,hasRequiredMemoize,_memoizeCapped,hasRequired_memoizeCapped,_stringToPath,hasRequired_stringToPath,_baseToString,hasRequired_baseToString,toString_1,hasRequiredToString,_castPath,hasRequired_castPath,_toKey,hasRequired_toKey,_baseGet,hasRequired_baseGet,_baseIsMatch,hasRequired_baseIsMatch,_isStrictComparable,hasRequired_isStrictComparable,_getMatchData,hasRequired_getMatchData,_matchesStrictComparable,hasRequired_matchesStrictComparable,_baseMatches,hasRequired_baseMatches,get_1,hasRequiredGet$1,_baseHasIn,hasRequired_baseHasIn,_hasPath,hasRequired_hasPath,hasIn_1,hasRequiredHasIn,_baseMatchesProperty,hasRequired_baseMatchesProperty,identity_1,hasRequiredIdentity,_baseProperty,hasRequired_baseProperty,_basePropertyDeep,hasRequired_basePropertyDeep,property_1,hasRequiredProperty,_baseIteratee,hasRequired_baseIteratee,_createBaseFor,hasRequired_createBaseFor,_baseFor,hasRequired_baseFor,_baseForOwn,hasRequired_baseForOwn,_createBaseEach,hasRequired_createBaseEach,_baseEach,hasRequired_baseEach,_baseMap,hasRequired_baseMap,_baseSortBy,hasRequired_baseSortBy,_compareAscending,hasRequired_compareAscending,_compareMultiple,hasRequired_compareMultiple,_baseOrderBy,hasRequired_baseOrderBy,_apply,hasRequired_apply,_overRest,hasRequired_overRest,constant_1,hasRequiredConstant,_baseSetToString,hasRequired_baseSetToString,_shortOut,hasRequired_shortOut,_setToString,hasRequired_setToString,_baseRest,hasRequired_baseRest,_isIterateeCall,hasRequired_isIterateeCall,sortBy_1,hasRequiredSortBy,_baseFindIndex,hasRequired_baseFindIndex,_baseIsNaN,hasRequired_baseIsNaN,_strictIndexOf,hasRequired_strictIndexOf,_baseIndexOf,hasRequired_baseIndexOf,_arrayIncludes,hasRequired_arrayIncludes,_arrayIncludesWith,hasRequired_arrayIncludesWith,noop_1,hasRequiredNoop$1,_createSet,hasRequired_createSet,_baseUniq,hasRequired_baseUniq,uniq_1,hasRequiredUniq,uniqWith_1,hasRequiredUniqWith,defaults_1,hasRequiredDefaults,_baseIntersection,hasRequired_baseIntersection,isArrayLikeObject_1,hasRequiredIsArrayLikeObject,_castArrayLikeObject,hasRequired_castArrayLikeObject,last_1,hasRequiredLast,intersectionWith_1,hasRequiredIntersectionWith,isPlainObject_1,hasRequiredIsPlainObject,isBoolean_1,hasRequiredIsBoolean,src$1,hasRequiredSrc$1,lib$6,hasRequiredLib$6,lib$5,hasRequiredLib$5,lib$4,hasRequiredLib$4,lib$3,hasRequiredLib$3,lib$2,hasRequiredLib$2,lib$1,hasRequiredLib$1,lib,hasRequiredLib,_assignMergeValue,hasRequired_assignMergeValue,_safeGet,hasRequired_safeGet,toPlainObject_1,hasRequiredToPlainObject,_baseMergeDeep,hasRequired_baseMergeDeep,_baseMerge,hasRequired_baseMerge,_customDefaultsMerge,hasRequired_customDefaultsMerge,_createAssigner,hasRequired_createAssigner,mergeWith_1,hasRequiredMergeWith,defaultsDeep_1,hasRequiredDefaultsDeep,flatten_1,hasRequiredFlatten,flattenDeep_1,hasRequiredFlattenDeep,intersection_1,hasRequiredIntersection,_baseIndexOfWith,hasRequired_baseIndexOfWith,_basePullAll,hasRequired_basePullAll,pullAll_1,hasRequiredPullAll,_castFunction,hasRequired_castFunction,forEach_1,hasRequiredForEach$1,_baseDifference,hasRequired_baseDifference,without_1,hasRequiredWithout,common,hasRequiredCommon,properties,hasRequiredProperties,items,hasRequiredItems,src,hasRequiredSrc;function require_cloneBuffer(){return hasRequired_cloneBuffer||(hasRequired_cloneBuffer=1,function(e,t){var n=require_root(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(_cloneBuffer,_cloneBuffer.exports)),_cloneBuffer.exports}function require_copyArray(){if(hasRequired_copyArray)return _copyArray;return hasRequired_copyArray=1,_copyArray=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++nu))return!1;var p=c.get(r),f=c.get(i);if(p&&f)return p==i&&f==r;var _=-1,m=!0,h=2&o?new e:void 0;for(c.set(r,i),c.set(i,r);++_0&&o(u)?i>1?n(u,i-1,o,s,a):e(a,u):s||(a[a.length]=u)}return a},_baseFlatten}function require_arrayMap(){if(hasRequired_arrayMap)return _arrayMap;return hasRequired_arrayMap=1,_arrayMap=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++nn||s&&a&&l&&!c&&!u||i&&a&&l||!r&&l||!o)return 1;if(!i&&!s&&!u&&t=c?l:l*("desc"==r[i]?-1:1)}return t.index-n.index},_compareMultiple}function require_baseOrderBy(){if(hasRequired_baseOrderBy)return _baseOrderBy;hasRequired_baseOrderBy=1;var e=require_arrayMap(),t=require_baseGet(),n=require_baseIteratee(),r=require_baseMap(),i=require_baseSortBy(),o=require_baseUnary(),s=require_compareMultiple(),a=requireIdentity(),c=requireIsArray();return _baseOrderBy=function(l,u,d){u=u.length?e(u,(function(e){return c(e)?function(n){return t(n,1===e.length?e[0]:e)}:e})):[a];var p=-1;u=e(u,o(n));var f=r(l,(function(t,n,r){return{criteria:e(u,(function(e){return e(t)})),index:++p,value:t}}));return i(f,(function(e,t){return s(e,t,d)}))},_baseOrderBy}function require_apply(){if(hasRequired_apply)return _apply;return hasRequired_apply=1,_apply=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},_apply}function require_overRest(){if(hasRequired_overRest)return _overRest;hasRequired_overRest=1;var e=require_apply(),t=Math.max;return _overRest=function(n,r,i){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,s=-1,a=t(o.length-r,0),c=Array(a);++s0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},_shortOut}function require_setToString(){if(hasRequired_setToString)return _setToString;hasRequired_setToString=1;var e=require_baseSetToString(),t=require_shortOut()(e);return _setToString=t}function require_baseRest(){if(hasRequired_baseRest)return _baseRest;hasRequired_baseRest=1;var e=requireIdentity(),t=require_overRest(),n=require_setToString();return _baseRest=function(r,i){return n(t(r,i,e),r+"")}}function require_isIterateeCall(){if(hasRequired_isIterateeCall)return _isIterateeCall;hasRequired_isIterateeCall=1;var e=requireEq(),t=requireIsArrayLike(),n=require_isIndex(),r=requireIsObject$1();return _isIterateeCall=function(i,o,s){if(!r(s))return!1;var a=typeof o;return!!("number"==a?t(s)&&n(o,s.length):"string"==a&&o in s)&&e(s[o],i)},_isIterateeCall}function requireSortBy(){if(hasRequiredSortBy)return sortBy_1;hasRequiredSortBy=1;var e=require_baseFlatten(),t=require_baseOrderBy(),n=require_baseRest(),r=require_isIterateeCall(),i=n((function(n,i){if(null==n)return[];var o=i.length;return o>1&&r(n,i[0],i[1])?i=[]:o>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),t(n,e(i,1),[])}));return sortBy_1=i}function require_baseFindIndex(){if(hasRequired_baseFindIndex)return _baseFindIndex;return hasRequired_baseFindIndex=1,_baseFindIndex=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o-1},_arrayIncludes}function require_arrayIncludesWith(){if(hasRequired_arrayIncludesWith)return _arrayIncludesWith;return hasRequired_arrayIncludesWith=1,_arrayIncludesWith=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200){var m=a?null:i(s);if(m)return o(m);p=!1,u=r,_=new e}else _=a?[]:f;e:for(;++l2?s[2]:void 0;for(l&&n(s[0],s[1],l)&&(c=1);++a=120&&g.length>=120)?new e(f&&g):void 0}g=a[0];var A=-1,y=_[0];e:for(;++AArray.isArray(e)?e:[e],l=e=>void 0===e,u=e=>s(e)||Array.isArray(e)?Object.keys(e):[],d=(e,t)=>e.hasOwnProperty(t),p=e=>t(n(e)),f=e=>l(e)||Array.isArray(e)&&0===e.length,_=(t,n)=>l(t)&&0===n||l(n)&&0===t||e(t,n),m=t=>l(t)||e(t,{})||!0===t,h=t=>l(t)||e(t,{}),g=e=>l(e)||s(e)||!0===e||!1===e;function A(t,n){return!(!f(t)||!f(n))||e(p(t),p(n))}function y(t,r,i,o){var s=n(u(t).concat(u(r)));return!(!h(t)||!h(r))||(!h(t)||!u(r).length)&&((!h(r)||!u(t).length)&&s.every((function(n){var i=t[n],s=r[n];return Array.isArray(i)&&Array.isArray(s)?e(p(t),p(r)):!(Array.isArray(i)&&!Array.isArray(s))&&(!(Array.isArray(s)&&!Array.isArray(i))&&((e,t,n,r)=>t&&d(t,n)&&e&&d(e,n)&&r(e[n],t[n]))(t,r,n,o))})))}function v(e,t,n,i){var s=r(e,i),a=r(t,i);return o(s,a,i).length===Math.max(s.length,a.length)}var b={title:e,uniqueItems:(t,n)=>l(t)&&!1===n||l(n)&&!1===t||e(t,n),minLength:_,minItems:_,minProperties:_,required:A,enum:A,type:function(t,n){return t=c(t),n=c(n),e(p(t),p(n))},items:function(t,n,r,i){return s(t)&&s(n)?i(t,n):Array.isArray(t)&&Array.isArray(n)?y(t,n,0,i):e(t,n)},anyOf:v,allOf:v,oneOf:v,properties:y,patternProperties:y,dependencies:y},C=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],E=["additionalProperties","additionalItems","contains","propertyNames","not"];return src$1=function t(r,o,s){if(s=i(s,{ignore:[]}),m(r)&&m(o))return!0;if(!g(r)||!g(o))throw new Error("Either of the values are not a JSON schema.");if(r===o)return!0;if(a(r)&&a(o))return r===o;if(void 0===r&&!1===o||void 0===o&&!1===r)return!1;if(l(r)&&!l(o)||!l(r)&&l(o))return!1;var c=n(Object.keys(r).concat(Object.keys(o)));if(s.ignore.length&&(c=c.filter((e=>-1===s.ignore.indexOf(e)))),!c.length)return!0;function u(e,n){return t(e,n,s)}return c.every((function(n){var i=r[n],c=o[n];if(-1!==E.indexOf(n))return t(i,c,s);var l=b[n];if(l||(l=e),e(i,c))return!0;if(-1===C.indexOf(n)&&(!d(r,n)&&d(o,n)||d(r,n)&&!d(o,n)))return i===c;var p=l(i,c,n,u);if(!a(p))throw new Error("Comparer must return true or false");return p}))},src$1}function requireLib$6(){if(hasRequiredLib$6)return lib$6;return hasRequiredLib$6=1,lib$6=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}function requireLib$5(){if(hasRequiredLib$5)return lib$5;return hasRequiredLib$5=1,lib$5=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()}}function requireLib$4(){if(hasRequiredLib$4)return lib$4;hasRequiredLib$4=1;var e=requireLib$5();return lib$4=function(t){return e(t)&&t%1==0}}function requireLib$3(){if(hasRequiredLib$3)return lib$3;hasRequiredLib$3=1;var e=requireLib$6(),t=requireLib$4();return lib$3=function(n){var r;if(!e(n))return!1;if(!(r=n.length))return!1;for(var i=0;it&&(n=t,t=e,e=n),t-=e}return r*e}function o(e,t){var n,r=0;if(0===e)return t;if(0===t)return e;for(;!(1&e||1&t);)e>>>=1,t>>>=1,r++;for(;!(1&e);)e>>>=1;for(;t;){for(;!(1&t);)t>>>=1;e>t&&(n=t,t=e,e=n),t-=e}return e<1){if(c=s[0],a=s[1],!n(a))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+a+"`.")}else c=s[0]}if((l=c.length)<2)return null;if(a){for(u=new Array(l),p=0;p1){if(s=i[0],o=i[1],!r(o))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+o+"`.")}else s=i[0]}if((a=s.length)<2)return null;if(o){for(c=new Array(a),u=0;u1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=n.length>3&&"function"==typeof s?(o--,s):void 0,a&&t(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++i-1;)f!==s&&o.call(f,_,1),o.call(s,_,1);return s},_basePullAll}function requirePullAll(){if(hasRequiredPullAll)return pullAll_1;hasRequiredPullAll=1;var e=require_basePullAll();return pullAll_1=function(t,n){return t&&t.length&&n&&n.length?e(t,n):t},pullAll_1}function require_castFunction(){if(hasRequired_castFunction)return _castFunction;hasRequired_castFunction=1;var e=requireIdentity();return _castFunction=function(t){return"function"==typeof t?t:e}}function requireForEach$1(){if(hasRequiredForEach$1)return forEach_1;hasRequiredForEach$1=1;var e=require_arrayEach(),t=require_baseEach(),n=require_castFunction(),r=requireIsArray();return forEach_1=function(i,o){return(r(i)?e:t)(i,n(o))}}function require_baseDifference(){if(hasRequired_baseDifference)return _baseDifference;hasRequired_baseDifference=1;var e=require_SetCache(),t=require_arrayIncludes(),n=require_arrayIncludesWith(),r=require_arrayMap(),i=require_baseUnary(),o=require_cacheHas();return _baseDifference=function(s,a,c,l){var u=-1,d=t,p=!0,f=s.length,_=[],m=a.length;if(!f)return _;c&&(a=r(a,i(c))),l?(d=n,p=!1):a.length>=200&&(d=o,p=!1,a=new e(a));e:for(;++uObject.prototype.hasOwnProperty.call(e,t),a=e=>n(e)||Array.isArray(e)?Object.keys(e):[],c=e=>!a(e).length&&!1!==e&&!0!==e;return common={allUniqueKeys:e=>r(t(e.map(a))),deleteUndefinedProps:function(e){for(const t in e)s(e,t)&&c(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:s,isEmptySchema:c,isSchema:e=>n(e)||!0===e||!1===e,keys:a,notUndefined:e=>void 0!==e,uniqWith:i,withoutArr:(t,...n)=>o.apply(null,[t].concat(e(n)))},common}function requireProperties(){if(hasRequiredProperties)return properties;hasRequiredProperties=1;const e=requireSrc$1(),t=requireForEach$1(),{allUniqueKeys:n,deleteUndefinedProps:r,getValues:i,keys:o,notUndefined:s,uniqWith:a,withoutArr:c}=requireCommon();function l(t,r){return n(t).reduce((function(n,o){const c=i(t,o),l=a(c.filter(s),e);return n[o]=r(l,o),n}),{})}return properties={keywords:["properties","patternProperties","additionalProperties"],resolver(e,n,i,s){s.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),r=o(t.properties),s=o(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=o(e.properties),a=n.filter((e=>s.some((t=>t.test(e)))));c(n,r,a).forEach((function(n){e.properties[n]=i.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){const n=e.filter((e=>e!==t)),r=o(t.patternProperties);!1===t.additionalProperties&&n.forEach((function(e){const t=o(e.patternProperties);c(t,r).forEach((t=>delete e.patternProperties[t]))}))})));const a={additionalProperties:i.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:l(e.map((e=>e.patternProperties)),i.patternProperties),properties:l(e.map((e=>e.properties)),i.properties)};var u;return!1===a.additionalProperties&&t(u=a.properties,(function(e,t){!1===e&&delete u[t]})),r(a)}},properties}function requireItems(){if(hasRequiredItems)return items;hasRequiredItems=1;const e=requireSrc$1(),t=requireForEach$1(),{allUniqueKeys:n,deleteUndefinedProps:r,has:i,isSchema:o,notUndefined:s,uniqWith:a}=requireCommon();function c(t,r,c){return n(c).reduce((function(n,c){const l=function(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const n=e.items[t];if(o(n))return n;if(i(e,"additionalItems"))return e.additionalItems}}}))}(t,c),u=a(l.filter(s),e);return n[c]=r(u,c),n}),[])}return items={keywords:["items","additionalItems"],resolver(e,n,i){const a=e.map((e=>e.items)),l=a.filter(s),u={};let d;var p;return l.every(o)?u.items=i.items(a):u.items=c(e,i.items,a),l.every(Array.isArray)?d=e.map((e=>e.additionalItems)):l.some(Array.isArray)&&(d=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),d&&(u.additionalItems=i.additionalItems(d)),!1===u.additionalItems&&Array.isArray(u.items)&&(p=u.items,t(p,(function(e,t){!1===e&&p.splice(t,1)}))),r(u)}},items}function requireSrc(){if(hasRequiredSrc)return src;hasRequiredSrc=1;const e=requireCloneDeep(),t=requireSrc$1(),n=requireLib(),r=requireDefaultsDeep(),i=requireFlatten(),o=requireFlattenDeep(),s=requireIntersection(),a=requireIntersectionWith(),c=requireIsEqual(),l=requireIsPlainObject(),u=requirePullAll(),d=requireSortBy(),p=requireUniq(),f=requireUniqWith(),_=requireProperties(),m=requireItems(),h=(e,t)=>-1!==e.indexOf(t),g=e=>l(e)||!0===e||!1===e,A=e=>!1===e,y=e=>!0===e,v=(e,t,n)=>n(e),b=e=>d(p(o(e))),C=e=>void 0!==e,E=e=>p(o(e.map(I))),x=e=>e[0],S=e=>Math.max.apply(Math,e),k=e=>Math.min.apply(Math,e);function D(e){let{allOf:t=[],...n}=e;return n=l(e)?n:e,[n,...t.map(D)]}function w(e,t){return e.map((e=>e&&e[t]))}function I(e){return l(e)||Array.isArray(e)?Object.keys(e):[]}function T(e,t){if(t=t||[],!e.length)return t;const n=e.slice(0).shift(),r=e.slice(1);return t.length?T(r,i(t.map((e=>n.map((t=>[t].concat(e))))))):T(r,n.map((e=>e)))}function F(e,t){let n;try{n=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(t){n=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+n)}function R(e,n,r,i,o,s){if(e.length){const a=o.complexResolvers[n];if(!a||!a.resolver)throw new Error("No resolver found for "+n);const c=r.map((t=>e.reduce(((e,n)=>(void 0!==t[n]&&(e[n]=t[n]),e)),{}))),u=f(c,t),d=a.keywords.reduce(((e,t)=>({...e,[t]:(e,n=[])=>i(e,null,s.concat(t,n))})),{}),p=a.resolver(u,s.concat(n),d,o);return l(p)||F(u,s.concat(n)),p}}function P(e){return{required:e}}const N=["properties","patternProperties","definitions","dependencies"],B=["anyOf","oneOf"],O=["additionalProperties","additionalItems","contains","propertyNames","not","items"],q={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),n=s.apply(null,t);if(1===n.length)return n[0];if(n.length>1)return p(n)}},dependencies:(e,n,r)=>E(e).reduce((function(n,i){const o=w(e,i);let s=f(o.filter(C),c);const a=s.filter(Array.isArray);if(a.length){if(a.length===s.length)n[i]=b(s);else{const e=s.filter(g),t=a.map(P);n[i]=r(e.concat(t),i)}return n}return s=f(s,t),n[i]=r(s,i),n}),{}),oneOf(n,r,i){const o=function(e,t){return e.map((function(e,n){try{return t(e,n)}catch(e){return}})).filter(C)}(T(e(n)),i),s=f(o,t);if(s.length)return s},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let t=e.slice(0),r=1;for(;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return n(t)/r},enum(e){const t=a.apply(null,e.concat(c));if(t.length)return d(t)}};q.$id=x,q.$ref=x,q.$schema=x,q.additionalItems=v,q.additionalProperties=v,q.anyOf=q.oneOf,q.contains=v,q.default=x,q.definitions=q.dependencies,q.description=x,q.examples=e=>f(i(e),c),q.exclusiveMaximum=k,q.exclusiveMinimum=S,q.items=m,q.maximum=k,q.maxItems=k,q.maxLength=k,q.maxProperties=k,q.minimum=S,q.minItems=S,q.minLength=S,q.minProperties=S,q.properties=_,q.propertyNames=v,q.required=e=>b(e),q.title=x,q.uniqueItems=e=>e.some(y);const $={properties:_,items:m};function Q(n,i,s){i=r(i,{ignoreAdditionalProperties:!1,resolvers:q,complexResolvers:$,deep:!0});const a=Object.entries(i.complexResolvers);const c=function n(r,o,s){r=e(r.filter(C)),s=s||[];const c=l(o)?o:{};if(!r.length)return;if(r.some(A))return!1;if(r.every(y))return!0;r=r.filter(l);const d=E(r);if(i.deep&&h(d,"allOf"))return Q({allOf:r},i);const p=a.map((([e,t])=>d.filter((e=>t.keywords.includes(e)))));return p.forEach((e=>u(d,e))),d.forEach((function(e){const o=w(r,e),a=f(o.filter(C),function(e){return function(n,r){return t({[e]:n},{[e]:r})}}(e));if(1===a.length&&h(B,e))c[e]=a[0].map((e=>n([e],e)));else if(1!==a.length||h(N,e)||h(O,e)){const t=i.resolvers[e]||i.resolvers.defaultResolver;if(!t)throw new Error("No resolver found for key "+e+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const r=(t,r=[])=>n(t,null,s.concat(e,r));c[e]=t(a,s.concat(e),r,i),void 0===c[e]?F(a,s.concat(e)):void 0===c[e]&&delete c[e]}else c[e]=a[0]})),a.reduce(((e,[t,o],a)=>({...e,...R(p[a],t,r,n,i,s)})),c)}(o(D(n)));return c}return Q.options={resolvers:q},src=Q}_cloneBuffer.exports;var srcExports=requireSrc(),mergeJSONSchemaAllOf=getDefaultExportFromCjs(srcExports);function isObject$2(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function isEmptyObject(e){return"object"==typeof e&&null!==e&&!Object.keys(e).length}function stripEmptyObjects(e){const t=e;return isObject$2(e)||Array.isArray(t)?null!==e?Array.isArray(t)?(t.forEach(((e,n)=>{let r=e;"object"==typeof r&&null!==r?(r=stripEmptyObjects(r),isEmptyObject(r)?delete t[n]:t[n]=r):null===r&&delete t[n]})),t.filter((e=>void 0!==e))):(Object.keys(t).forEach((e=>{let n=t[e];"object"==typeof n&&null!==n&&(n=stripEmptyObjects(n),isEmptyObject(n)?delete t[e]:t[e]=n)})),t):void 0:t}function removeUndefinedObjects(e){if(void 0===e)return;let t=JSON.parse(JSON.stringify(e));return t=stripEmptyObjects(t),isEmptyObject(t)?void 0:t}function cloneObject(e){if(void 0!==e)return JSON.parse(JSON.stringify(e))}function hasSchemaType(e,t){return Array.isArray(e.type)?e.type.includes(t):e.type===t}function isObject$1(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function isPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function matchesMediaType(e,t){return e.some((e=>t.indexOf(e)>-1))}var matches_mimetype_default={formUrlEncoded:e=>matchesMediaType(["application/x-www-form-urlencoded"],e),json:e=>matchesMediaType(["application/json","application/x-json","text/json","text/x-json","+json"],e),multipart:e=>matchesMediaType(["multipart/mixed","multipart/related","multipart/form-data","multipart/alternative"],e),wildcard:e=>"*/*"===e,xml:e=>matchesMediaType(["application/xml","application/xml-external-parsed-entity","application/xml-dtd","text/xml","text/xml-external-parsed-entity","+xml"],e)},UNSUPPORTED_SCHEMA_PROPS=["example","externalDocs","xml"];function encodePointer(e){return e.replace("~","~0").replace("/","~1")}function getSchemaVersionString(e,t){return isOAS31(t)?e.$schema?e.$schema:t.jsonSchemaDialect?t.jsonSchemaDialect:"https://json-schema.org/draft/2020-12/schema#":"http://json-schema.org/draft-04/schema#"}function isPolymorphicSchema(e){return"allOf"in e||"anyOf"in e||"oneOf"in e}function isRequestBodySchema(e){return"content"in e}function searchForValueByPropAndPointer(e,t,n=[]){if(!n.length||!t.length)return;const r=t.split("/").filter(Boolean).reverse(),i=[];let o,s="";for(let e=0;e!0,transformer:e=>e,...t};if(isRef(n))return p(n.$ref,"ref"),f({$ref:n.$ref});if(isSchema(n,l)){if("allOf"in n&&Array.isArray(n.allOf)){try{n=mergeJSONSchemaAllOf(n,{ignoreAdditionalProperties:!0,resolvers:{description:e=>e.slice(-1)[0],enum:e=>{let t=[];return e.forEach((e=>{t=t.concat(e)})),t},defaultResolver:mergeJSONSchemaAllOf.options.resolvers.title}})}catch(e){const{...t}=n;n=t,delete n.allOf}if(isRef(n))return p(n.$ref,"ref"),f({$ref:n.$ref})}if(["anyOf","oneOf"].forEach((e=>{e in n&&Array.isArray(n[e])&&n[e].forEach(((t,r)=>{const l={addEnumsToDescriptions:i,currentLocation:`${o}/${r}`,globalDefaults:s,hideReadOnlyProperties:a,hideWriteOnlyProperties:c,isPolymorphicAllOfChild:!1,prevDefaultSchemas:u,prevExampleSchemas:d,refLogger:p,transformer:f};n[e][r]=toJSONSchema("properties"in n?{required:n.required,allOf:[t,{properties:n.properties}]}:"items"in n?{allOf:[t,{items:n.items}]}:t,l),isObject$1(n[e][r])&&"required"in n[e][r]&&"boolean"==typeof n[e][r].required&&delete n[e][r].required}))})),"discriminator"in n&&"mapping"in n.discriminator&&"object"==typeof n.discriminator.mapping){const e=n.discriminator.mapping;Object.keys(e).forEach((t=>{p(e[t],"discriminator")}))}}if("type"in n||isPolymorphicSchema(n)||isRequestBodySchema(n)||("properties"in n?n.type="object":"items"in n&&(n.type="array")),"type"in n)if("nullable"in n&&(n.nullable&&(Array.isArray(n.type)?n.type.push("null"):null!==n.type&&"null"!==n.type&&(n.type=[n.type,"null"])),delete n.nullable),null===n.type)n.type="null";else if(Array.isArray(n.type))if(n.type.includes(null)&&(n.type[n.type.indexOf(null)]="null"),n.type=Array.from(new Set(n.type)),1===n.type.length)n.type=n.type.shift();else if(n.type.includes("array")||n.type.includes("boolean")||n.type.includes("object")){const e=n.type.includes("null");if(2===n.type.length&&e);else{const t=[];Object.entries({array:["additionalItems","contains","items","maxContains","maxItems","minContains","minItems","prefixItems","uniqueItems"],boolean:[],object:["additionalProperties","maxProperties","minProperties","nullable","patternProperties","properties","propertyNames","required"]}).forEach((([r,i])=>{if(!n.type.includes(r))return;const o=removeUndefinedObjects({type:e?[r,"null"]:r,allowEmptyValue:n.allowEmptyValue??void 0,deprecated:n.deprecated??void 0,description:n.description??void 0,readOnly:n.readOnly??void 0,title:n.title??void 0,writeOnly:n.writeOnly??void 0});i.forEach((e=>{e in n&&(o[e]=n[e],delete n[e])})),t.push(o)})),n.type=n.type.filter((e=>"array"!==e&&"boolean"!==e&&"object"!==e)),1===n.type.length&&(n.type=n.type.shift()),n=n.type.length>1?{oneOf:[n,...t]}:{oneOf:t}}}if(isSchema(n,l)){if("default"in n&&isObject$1(n.default)&&u.push({default:n.default}),"example"in n)isPrimitive(n.example)?n.examples=[n.example]:Array.isArray(n.example)?(n.examples=n.example.filter((e=>isPrimitive(e))),n.examples.length||delete n.examples):d.push({example:n.example}),delete n.example;else if("examples"in n){let e=!1;if("object"!=typeof n.examples||Array.isArray(n.examples))Array.isArray(n.examples)&&isPrimitive(n.examples[0])&&(e=!0);else{const t=[];Object.keys(n.examples).forEach((r=>{const i=n.examples[r];"$ref"in i?p(i.$ref,"ref"):"value"in i&&(isPrimitive(i.value)?(t.push(i.value),e=!0):Array.isArray(i.value)&&isPrimitive(i.value[0])?(t.push(i.value[0]),e=!0):d.push({example:i.value}))})),t.length&&(e=!0,n.examples=t)}e||delete n.examples}if(!hasSchemaType(n,"array")&&!hasSchemaType(n,"object")&&!n.examples){const e=searchForValueByPropAndPointer("example",o,d);e&&(isPrimitive(e)||Array.isArray(e)&&isPrimitive(e[0]))&&(n.examples=[e])}if(hasSchemaType(n,"array"))"items"in n?!Array.isArray(n.items)&&1===Object.keys(n.items).length&&isRef(n.items)?p(n.items.$ref,"ref"):!0!==n.items&&(n.items=toJSONSchema(n.items,{addEnumsToDescriptions:i,currentLocation:`${o}/0`,globalDefaults:s,hideReadOnlyProperties:a,hideWriteOnlyProperties:c,prevExampleSchemas:d,refLogger:p,transformer:f}),isObject$1(n.items)&&"required"in n.items&&!Array.isArray(n.items.required)&&delete n.items.required):"properties"in n||"additionalProperties"in n?n.type="object":n.items={};else if(hasSchemaType(n,"object")){if("properties"in n&&(Object.keys(n.properties).forEach((e=>{if(Array.isArray(n.properties[e])||"object"==typeof n.properties[e]&&null!==n.properties[e]){const t=toJSONSchema(n.properties[e],{addEnumsToDescriptions:i,currentLocation:`${o}/${encodePointer(e)}`,globalDefaults:s,hideReadOnlyProperties:a,hideWriteOnlyProperties:c,prevDefaultSchemas:u,prevExampleSchemas:d,refLogger:p,transformer:f});let r=!0;!a&&!c||Object.keys(t).length||Object.keys(n.properties[e]).length>0&&(delete n.properties[e],r=!1),r&&(n.properties[e]=t,isObject$1(t)&&"required"in t&&"boolean"==typeof t.required&&!0===t.required&&("required"in n&&Array.isArray(n.required)?n.required.push(e):n.required=[e],delete n.properties[e].required))}})),(a||c)&&!Object.keys(n.properties).length))return f({});"object"==typeof r&&null!==r&&("type"in r||"$ref"in r||isPolymorphicSchema(r)?n.additionalProperties=toJSONSchema(r,{addEnumsToDescriptions:i,currentLocation:o,globalDefaults:s,hideReadOnlyProperties:a,hideWriteOnlyProperties:c,prevDefaultSchemas:u,prevExampleSchemas:d,refLogger:p,transformer:f}):n.additionalProperties=!0),isPolymorphicSchema(n)||"properties"in n||"additionalProperties"in n||(n.additionalProperties=!0)}}if(isSchema(n,l)&&s&&Object.keys(s).length>0&&o)try{const e=jsonPointer.get(s,o);e&&(n.default=e)}catch(e){}if("default"in n&&void 0!==n.default)hasSchemaType(n,"object")?delete n.default:"allowEmptyValue"in n&&n.allowEmptyValue&&""===n.default||""!==n.default||delete n.default;else if(u.length){const e=searchForValueByPropAndPointer("default",o,u);(isPrimitive(e)||null===e||Array.isArray(e)&&hasSchemaType(n,"array"))&&(n.default=e)}if(isSchema(n,l)&&"enum"in n&&Array.isArray(n.enum)&&(n.enum=Array.from(new Set(n.enum)),i)){const e=n.enum.filter(Boolean).map((e=>`\`${e}\``)).join(" ");e.length&&("description"in n?n.description+=`\n\n${e}`:n.description=e)}("anyOf"in n||"oneOf"in n)&&("properties"in n&&delete n.properties,"items"in n&&delete n.items);for(let e=0;e{const t=i.properties[e];!t.deprecated||s.includes(e)||t.readOnly||(a[e]=t)})),i.properties=a;const c=toJSONSchema(i,{globalDefaults:n.globalDefaults,hideReadOnlyProperties:n.hideReadOnlyProperties,hideWriteOnlyProperties:n.hideWriteOnlyProperties,prevExampleSchemas:[],refLogger:o,transformer:n.transformer});return 0===Object.keys(c).length||0===Object.keys(c.properties).length?null:(Object.keys(e.properties).forEach((t=>{e.properties[t].deprecated&&!s.includes(t)&&delete e.properties[t]})),{type:r,schema:isPrimitive(c)?c:{...c,$schema:getSchemaVersionString(c,t)}})}if(!e.hasParameters()&&!e.hasRequestBody())return null;const a=getExtension(PARAMETER_ORDERING,t,e).map((e=>e.toLowerCase()));a[a.indexOf("form")]="formData",a.push("metadata");const c=[function(){const r=e.getRequestBody();if(!r||!Array.isArray(r))return null;const[i,a,c]=r,l="application/x-www-form-urlencoded"===i?"formData":"body";if(!a.schema||!Object.keys(a.schema).length)return null;const u=[];"example"in a?u.push({example:a.example}):"examples"in a&&u.push({examples:Object.values(a.examples).map((e=>e.value)).filter((e=>void 0!==e))});const d=toJSONSchema(cloneObject(a.schema),{globalDefaults:n.globalDefaults,hideReadOnlyProperties:n.hideReadOnlyProperties,hideWriteOnlyProperties:n.hideWriteOnlyProperties,prevExampleSchemas:u,refLogger:o,transformer:n.transformer});return Object.keys(d).length?{type:l,label:types[l],schema:isPrimitive(d)?d:{...d,$schema:getSchemaVersionString(d,t)},deprecatedProps:s(d,l),...c?{description:c}:{}}:null}()].concat(...function(){const r=e.getParameters(),i=Object.keys(types).map((e=>{const i=[],a=r.filter((t=>t.in===e));if(0===a.length)return null;const c={type:"object",properties:a.reduce(((e,r)=>{let s={};if("schema"in r){const e=r.schema?cloneObject(r.schema):{};r.example?e.example=r.example:r.examples&&(e.examples=r.examples),r.deprecated&&(e.deprecated=r.deprecated);const i=toJSONSchema(e,{currentLocation:`/${r.name}`,globalDefaults:n.globalDefaults,hideReadOnlyProperties:n.hideReadOnlyProperties,hideWriteOnlyProperties:n.hideWriteOnlyProperties,refLogger:o,transformer:n.transformer});s=isPrimitive(i)?i:{...i,$schema:getSchemaVersionString(e,t)}}else if("content"in r&&"object"==typeof r.content){const e=Object.keys(r.content);if(e.length){let i;if(1===e.length)i=e[0];else{const t=e.filter((e=>matches_mimetype_default.json(e)));i=t.length?t[0]:e[0]}if("object"==typeof r.content[i]&&"schema"in r.content[i]){const e=r.content[i].schema?cloneObject(r.content[i].schema):{};r.example?e.example=r.example:r.examples&&(e.examples=r.examples),r.deprecated&&(e.deprecated=r.deprecated);const a=toJSONSchema(e,{currentLocation:`/${r.name}`,globalDefaults:n.globalDefaults,hideReadOnlyProperties:n.hideReadOnlyProperties,hideWriteOnlyProperties:n.hideWriteOnlyProperties,refLogger:o,transformer:n.transformer});s=isPrimitive(a)?a:{...a,$schema:getSchemaVersionString(e,t)}}}}return r.description&&(isPrimitive(s)||(s.description=r.description)),e[r.name]=s,r.required&&i.push(r.name),e}),{}),required:i};return{type:e,label:types[e],schema:c,deprecatedProps:s(c,e)}})).filter(Boolean);if(!n.mergeIntoBodyAndMetadata)return i;if(!i.length)return[];const a=i.map((e=>e.deprecatedProps?.schema||null)).filter(Boolean);return[{type:"metadata",label:types.metadata,schema:{allOf:i.map((e=>e.schema))},deprecatedProps:a.length?{type:"metadata",schema:{allOf:a}}:null}]}()).filter(Boolean),l=r||i&&n.includeDiscriminatorMappingRefs,u=!!l&&function(){if(!("components"in t))return!1;const e={...Object.keys(t.components).map((e=>({[e]:{}}))).reduce(((e,t)=>Object.assign(e,t)),{})};return Object.keys(t.components).forEach((r=>{"object"!=typeof t.components[r]||Array.isArray(t.components[r])||Object.keys(t.components[r]).forEach((i=>{const s=cloneObject(t.components[r][i]);e[r][i]=toJSONSchema(s,{globalDefaults:n.globalDefaults,hideReadOnlyProperties:n.hideReadOnlyProperties,hideWriteOnlyProperties:n.hideWriteOnlyProperties,refLogger:o,transformer:n.transformer})}))})),Object.keys(e).forEach((t=>{Object.keys(e[t]).length||delete e[t]})),e}();return c.map((e=>(u&&l&&(e.schema.components=u),e.deprecatedProps||delete e.deprecatedProps,e))).sort(((e,t)=>a.indexOf(e.type)-a.indexOf(t.type)))}function requireNoop(){return hasRequiredNoop?noop:(hasRequiredNoop=1,noop=function(){})}function requireIsValue(){if(hasRequiredIsValue)return isValue;hasRequiredIsValue=1;var e=requireNoop()();return isValue=function(t){return t!==e&&null!==t}}function requireNormalizeOptions(){if(hasRequiredNormalizeOptions)return normalizeOptions;hasRequiredNormalizeOptions=1;var e=requireIsValue(),t=Array.prototype.forEach,n=Object.create;return normalizeOptions=function(r){var i=n(null);return t.call(arguments,(function(t){e(t)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(t),i)})),i},normalizeOptions}function requireIsImplemented$7(){return hasRequiredIsImplemented$7||(hasRequiredIsImplemented$7=1,isImplemented$7=function(){var e=Math.sign;return"function"==typeof e&&(1===e(10)&&-1===e(-20))}),isImplemented$7}function requireShim$5(){return hasRequiredShim$5?shim$5:(hasRequiredShim$5=1,shim$5=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1})}function requireSign(){return hasRequiredSign?sign:(hasRequiredSign=1,sign=requireIsImplemented$7()()?Math.sign:requireShim$5())}function requireToInteger(){if(hasRequiredToInteger)return toInteger;hasRequiredToInteger=1;var e=requireSign(),t=Math.abs,n=Math.floor;return toInteger=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}function requireToPosInteger(){if(hasRequiredToPosInteger)return toPosInteger;hasRequiredToPosInteger=1;var e=requireToInteger(),t=Math.max;return toPosInteger=function(n){return t(0,e(n))}}function requireResolveLength(){if(hasRequiredResolveLength)return resolveLength;hasRequiredResolveLength=1;var e=requireToPosInteger();return resolveLength=function(t,n,r){var i;return isNaN(t)?(i=n)>=0?r&&i?i-1:i:1:!1!==t&&e(t)}}function requireValidCallable(){return hasRequiredValidCallable?validCallable:(hasRequiredValidCallable=1,validCallable=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function requireValidValue(){if(hasRequiredValidValue)return validValue;hasRequiredValidValue=1;var e=requireIsValue();return validValue=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function require_iterate(){if(hasRequired_iterate)return _iterate;hasRequired_iterate=1;var e=requireValidCallable(),t=requireValidValue(),n=Function.prototype.bind,r=Function.prototype.call,i=Object.keys,o=Object.prototype.propertyIsEnumerable;return _iterate=function(s,a){return function(c,l){var u,d=arguments[2],p=arguments[3];return c=Object(t(c)),e(l),u=i(c),p&&u.sort("function"==typeof p?n.call(p,c):void 0),"function"!=typeof s&&(s=u[s]),r.call(s,u,(function(e,t){return o.call(c,e)?r.call(l,d,c[e],e,c,t):a}))}},_iterate}function requireForEach(){return hasRequiredForEach?forEach:(hasRequiredForEach=1,forEach=require_iterate()("forEach"))}var registeredExtensions={},hasRequiredRegisteredExtensions;function requireRegisteredExtensions(){return hasRequiredRegisteredExtensions||(hasRequiredRegisteredExtensions=1),registeredExtensions}var custom={exports:{}},isImplemented$6,hasRequiredIsImplemented$6,isImplemented$5,hasRequiredIsImplemented$5,shim$4,hasRequiredShim$4,keys,hasRequiredKeys,shim$3,hasRequiredShim$3,assign,hasRequiredAssign,isObject,hasRequiredIsObject,hasRequiredCustom;function requireIsImplemented$6(){return hasRequiredIsImplemented$6||(hasRequiredIsImplemented$6=1,isImplemented$6=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}),isImplemented$6}function requireIsImplemented$5(){return hasRequiredIsImplemented$5?isImplemented$5:(hasRequiredIsImplemented$5=1,isImplemented$5=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}})}function requireShim$4(){if(hasRequiredShim$4)return shim$4;hasRequiredShim$4=1;var e=requireIsValue(),t=Object.keys;return shim$4=function(n){return t(e(n)?Object(n):n)}}function requireKeys(){return hasRequiredKeys?keys:(hasRequiredKeys=1,keys=requireIsImplemented$5()()?Object.keys:requireShim$4())}function requireShim$3(){if(hasRequiredShim$3)return shim$3;hasRequiredShim$3=1;var e=requireKeys(),t=requireValidValue(),n=Math.max;return shim$3=function(r,i){var o,s,a,c=n(arguments.length,2);for(r=Object(t(r)),a=function(e){try{r[e]=i[e]}catch(e){o||(o=e)}},s=1;s-1},shim$2}function requireContains(){return hasRequiredContains?contains:(hasRequiredContains=1,contains=requireIsImplemented$4()()?String.prototype.contains:requireShim$2())}function requireD(){if(hasRequiredD)return d.exports;hasRequiredD=1;var e=requireIs$4(),t=requireIs(),n=requireAssign(),r=requireNormalizeOptions(),i=requireContains(),o=d.exports=function(t,o){var s,a,c,l,u;return arguments.length<2||"string"!=typeof t?(l=o,o=t,t=null):l=arguments[2],e(t)?(s=i.call(t,"c"),a=i.call(t,"e"),c=i.call(t,"w")):(s=c=!0,a=!1),u={value:o,configurable:s,enumerable:a,writable:c},l?n(r(l),u):u};return o.gs=function(o,s,a){var c,l,u,d;return"string"!=typeof o?(u=a,a=s,s=o,o=null):u=arguments[3],e(s)?t(s)?e(a)?t(a)||(u=a,a=void 0):a=void 0:(u=s,s=a=void 0):s=void 0,e(o)?(c=i.call(o,"c"),l=i.call(o,"e")):(c=!0,l=!1),d={get:s,set:a,configurable:c,enumerable:l},u?n(r(u),d):d},d.exports}var eventEmitter={exports:{}},hasRequiredEventEmitter,isImplemented$3,hasRequiredIsImplemented$3,isImplemented$2,hasRequiredIsImplemented$2,implementation,hasRequiredImplementation,globalThis_1,hasRequiredGlobalThis,isImplemented$1,hasRequiredIsImplemented$1,isSymbol,hasRequiredIsSymbol,validateSymbol,hasRequiredValidateSymbol,generateName,hasRequiredGenerateName,standardSymbols,hasRequiredStandardSymbols,symbolRegistry,hasRequiredSymbolRegistry,polyfill,hasRequiredPolyfill,es6Symbol,hasRequiredEs6Symbol,isArguments,hasRequiredIsArguments,isFunction,hasRequiredIsFunction,isString,hasRequiredIsString,shim$1,hasRequiredShim$1,from,hasRequiredFrom,toArray,hasRequiredToArray,resolveResolve,hasRequiredResolveResolve,resolveNormalize,hasRequiredResolveNormalize,configureMap,hasRequiredConfigureMap,plain,hasRequiredPlain,primitive$1,hasRequiredPrimitive,getPrimitiveFixed,hasRequiredGetPrimitiveFixed,isImplemented,hasRequiredIsImplemented,shim,hasRequiredShim,isNan,hasRequiredIsNan,eIndexOf,hasRequiredEIndexOf,get,hasRequiredGet,get1,hasRequiredGet1,getFixed,hasRequiredGetFixed;function requireEventEmitter(){return hasRequiredEventEmitter||(hasRequiredEventEmitter=1,function(e,t){var n,r,i,o,s,a,c,l=requireD(),u=requireValidCallable(),d=Function.prototype.apply,p=Function.prototype.call,f=Object.create,_=Object.defineProperty,m=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return u(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),_(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,o;return u(t),o=this,n.call(this,e,r=function(){i.call(o,e,r),d.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e,t){var n,r,i,o;if(u(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},o=function(e){var t,n,r,i,o;if(h.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==typeof i){for(n=arguments.length,o=new Array(n-1),t=1;t=55296&&A<=56319&&(C+=p[++_]),C=E?l.call(E,x,C,m):C,f?(u.value=C,d(h,m,u)):h[m]=C,++m;g=m}if(void 0===g)for(g=r(p.length),f&&(h=new f(g)),_=0;_=0?s(u):t(this.length)-s(o(u));c"}}}function requireToShortStringRepresentation(){if(hasRequiredToShortStringRepresentation)return toShortStringRepresentation;hasRequiredToShortStringRepresentation=1;var e=requireSafeToString(),t=/[\n\r\u2028\u2029]/g;return toShortStringRepresentation=function(n){var r=e(n);return r.length>100&&(r=r.slice(0,99)+"โ€ฆ"),r=r.replace(t,(function(e){return JSON.stringify(e).slice(1,-1)}))},toShortStringRepresentation}var isPromise={exports:{}},hasRequiredIsPromise,hasRequiredPromise;function requireIsPromise(){if(hasRequiredIsPromise)return isPromise.exports;function e(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}return hasRequiredIsPromise=1,isPromise.exports=e,isPromise.exports.default=e,isPromise.exports}function requirePromise(){if(hasRequiredPromise)return promise;hasRequiredPromise=1;var e=requireMap(),t=requirePrimitiveSet(),n=requireValidateStringifiableValue(),r=requireToShortStringRepresentation(),i=requireIsPromise(),o=requireNextTick(),s=Object.create,a=t("then","then:finally","done","done:finally");return requireRegisteredExtensions().promise=function(t,c){var l=s(null),u=s(null),d=s(null);if(!0===t)t=null;else if(t=n(t),!a[t])throw new TypeError("'"+r(t)+"' is not valid promise mode");c.on("set",(function(e,n,r){var s=!1;if(!i(r))return u[e]=r,void c.emit("setasync",e,1);l[e]=1,d[e]=r;var a=function(t){var n=l[e];if(s)throw new Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");n&&(delete l[e],u[e]=t,c.emit("setasync",e,n))},p=function(){s=!0,l[e]&&(delete l[e],delete d[e],c.delete(e))},f=t;if(f||(f="then"),"then"===f){var _=function(){o(p)};"function"==typeof(r=r.then((function(e){o(a.bind(this,e))}),_)).finally&&r.finally(_)}else if("done"===f){if("function"!=typeof r.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");r.done(a,p)}else if("done:finally"===f){if("function"!=typeof r.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof r.finally)throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");r.done(a),r.finally(p)}})),c.on("get",(function(e,t,n){var r;if(l[e])++l[e];else{r=d[e];var s=function(){c.emit("getasync",e,t,n)};i(r)?"function"==typeof r.done?r.done(s):r.then((function(){o(s)})):s()}})),c.on("delete",(function(e){if(delete d[e],l[e])delete l[e];else if(hasOwnProperty.call(u,e)){var t=u[e];delete u[e],c.emit("deleteasync",e,[t])}})),c.on("clear",(function(){var t=u;u=s(null),l=s(null),d=s(null),c.emit("clearasync",e(t,(function(e){return[e]})))}))},promise}var dispose={},hasRequiredDispose;function requireDispose(){if(hasRequiredDispose)return dispose;hasRequiredDispose=1;var e=requireValidCallable(),t=requireForEach(),n=requireRegisteredExtensions(),r=Function.prototype.apply;return n.dispose=function(i,o,s){var a;if(e(i),s.async&&n.async||s.promise&&n.promise)return o.on("deleteasync",a=function(e,t){r.call(i,null,t)}),void o.on("clearasync",(function(e){t(e,(function(e,t){a(t,e)}))}));o.on("delete",a=function(e,t){i(t)}),o.on("clear",(function(e){t(e,(function(e,t){a(t,e)}))}))},dispose}var maxAge={},maxTimeout,hasRequiredMaxTimeout,validTimeout,hasRequiredValidTimeout,hasRequiredMaxAge;function requireMaxTimeout(){return hasRequiredMaxTimeout?maxTimeout:(hasRequiredMaxTimeout=1,maxTimeout=2147483647)}function requireValidTimeout(){if(hasRequiredValidTimeout)return validTimeout;hasRequiredValidTimeout=1;var e=requireToPosInteger(),t=requireMaxTimeout();return validTimeout=function(n){if((n=e(n))>t)throw new TypeError(n+" exceeds maximum possible timeout");return n}}function requireMaxAge(){if(hasRequiredMaxAge)return maxAge;hasRequiredMaxAge=1;var e=requireFrom(),t=requireForEach(),n=requireNextTick(),r=requireIsPromise(),i=requireValidTimeout(),o=requireRegisteredExtensions(),s=Function.prototype,a=Math.max,c=Math.min,l=Object.create;return o.maxAge=function(u,d,p){var f,_,m,h;(u=i(u))&&(f=l(null),_=p.async&&o.async||p.promise&&o.promise?"async":"",d.on("set"+_,(function(e){f[e]=setTimeout((function(){d.delete(e)}),u),"function"==typeof f[e].unref&&f[e].unref(),h&&(h[e]&&"nextTick"!==h[e]&&clearTimeout(h[e]),h[e]=setTimeout((function(){delete h[e]}),m),"function"==typeof h[e].unref&&h[e].unref())})),d.on("delete"+_,(function(e){clearTimeout(f[e]),delete f[e],h&&("nextTick"!==h[e]&&clearTimeout(h[e]),delete h[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(h={},m=(1-m)*u,d.on("get"+_,(function(t,i,o){h[t]||(h[t]="nextTick",n((function(){var n;"nextTick"===h[t]&&(delete h[t],d.delete(t),p.async&&(i=e(i)).push(s),n=d.memoized.apply(o,i),p.promise&&r(n)&&("function"==typeof n.done?n.done(s,s):n.then(s,s)))})))}))),d.on("clear"+_,(function(){t(f,(function(e){clearTimeout(e)})),f={},h&&(t(h,(function(e){"nextTick"!==e&&clearTimeout(e)})),h={})})))},maxAge}var max={},lruQueue,hasRequiredLruQueue,hasRequiredMax;function requireLruQueue(){if(hasRequiredLruQueue)return lruQueue;hasRequiredLruQueue=1;var e=requireToPosInteger(),t=Object.create,n=Object.prototype.hasOwnProperty;return lruQueue=function(r){var i,o=0,s=1,a=t(null),c=t(null),l=0;return r=e(r),{hit:function(e){var t=c[e],u=++l;if(a[u]=e,c[e]=u,!t){if(++o<=r)return;return e=a[s],i(e),e}if(delete a[t],s===t)for(;!n.call(a,++s);)continue},delete:i=function(e){var t=c[e];if(t&&(delete a[t],delete c[e],--o,s===t)){if(!o)return l=0,void(s=1);for(;!n.call(a,++s);)continue}},clear:function(){o=0,s=1,a=t(null),c=t(null),l=0}}},lruQueue}function requireMax(){if(hasRequiredMax)return max;hasRequiredMax=1;var e=requireToPosInteger(),t=requireLruQueue(),n=requireRegisteredExtensions();return n.max=function(r,i,o){var s,a,c;(r=e(r))&&(a=t(r),s=o.async&&n.async||o.promise&&n.promise?"async":"",i.on("set"+s,c=function(e){void 0!==(e=a.hit(e))&&i.delete(e)}),i.on("get"+s,c),i.on("delete"+s,a.delete),i.on("clear"+s,a.clear))},max}var refCounter={},hasRequiredRefCounter,memoizee,hasRequiredMemoizee;function requireRefCounter(){if(hasRequiredRefCounter)return refCounter;hasRequiredRefCounter=1;var e=requireD(),t=requireRegisteredExtensions(),n=Object.create,r=Object.defineProperties;return t.refCounter=function(i,o,s){var a,c;a=n(null),c=s.async&&t.async||s.promise&&t.promise?"async":"",o.on("set"+c,(function(e,t){a[e]=t||1})),o.on("get"+c,(function(e){++a[e]})),o.on("delete"+c,(function(e){delete a[e]})),o.on("clear"+c,(function(){a={}})),r(o.memoized,{deleteRef:e((function(){var e=o.get(arguments);return null===e?null:a[e]?! --a[e]&&(o.delete(e),!0):null})),getRefCount:e((function(){var e=o.get(arguments);return null===e?0:a[e]?a[e]:0}))})},refCounter}function requireMemoizee(){if(hasRequiredMemoizee)return memoizee;hasRequiredMemoizee=1;var e=requireNormalizeOptions(),t=requireResolveLength(),n=requirePlain();return memoizee=function(r){var i,o=e(arguments[1]);return o.normalizer||0!==(i=o.length=t(o.length,r.length,o.async))&&(o.primitive?!1===i?o.normalizer=requirePrimitive():i>1&&(o.normalizer=requireGetPrimitiveFixed()(i)):o.normalizer=!1===i?requireGet()():1===i?requireGet1()():requireGetFixed()(i)),o.async&&requireAsync(),o.promise&&requirePromise(),o.dispose&&requireDispose(),o.maxAge&&requireMaxAge(),o.max&&requireMax(),o.refCounter&&requireRefCounter(),n(r,o)},memoizee}var memoizeeExports=requireMemoizee(),memoize=getDefaultExportFromCjs(memoizeeExports);function dedupeCommonParameters(e,t){return t.filter((t=>!e.find((e=>t.name&&e.name?t.name===e.name&&t.in===e.in:!(!isRef(t)||!isRef(e))&&t.$ref===e.$ref))))}function usesPolymorphism(e){return e.oneOf?"oneOf":e.anyOf?"anyOf":!!e.allOf&&"allOf"}function objectify(e){return isObject$1(e)?e:{}}function normalizeArray(e){return Array.isArray(e)?e:[e]}function isFunc(e){return"function"==typeof e}function deeplyStripKey(e,t,n=(e,t)=>!0){if("object"!=typeof e||Array.isArray(e)||null===e||!t)return e;const r={...e};return Object.keys(r).forEach((e=>{e===t&&n(r[e],e)?delete r[e]:r[e]=deeplyStripKey(r[e],t,n)})),r}var sampleDefaults=e=>t=>typeof t.default==typeof e?t.default:e,primitives={string:sampleDefaults("string"),string_email:sampleDefaults("user@example.com"),"string_date-time":sampleDefaults((new Date).toISOString()),string_date:sampleDefaults((new Date).toISOString().substring(0,10)),"string_YYYY-MM-DD":sampleDefaults((new Date).toISOString().substring(0,10)),string_uuid:sampleDefaults("3fa85f64-5717-4562-b3fc-2c963f66afa6"),string_hostname:sampleDefaults("example.com"),string_ipv4:sampleDefaults("198.51.100.42"),string_ipv6:sampleDefaults("2001:0db8:5b96:0000:0000:426f:8e17:642a"),number:sampleDefaults(0),number_float:sampleDefaults(0),integer:sampleDefaults(0),boolean:sampleDefaults(!0)},primitive=e=>{e=objectify(e);const{format:t}=e;let{type:n}=e;if("null"===n)return null;Array.isArray(n)&&(1===n.length?n=n[0]:(n.includes("null")&&(n=n.filter((e=>"null"!==e))),n=n.shift()));const r=primitives[`${n}_${t}`]||primitives[n];return isFunc(r)?r(e):`Unknown Type: ${e.type}`};function sampleFromSchema(e,t={}){const n=objectify(e);let{type:r}=n;const i=usesPolymorphism(n);if("allOf"===i)try{return sampleFromSchema(mergeJSONSchemaAllOf(n,{resolvers:{defaultResolver:mergeJSONSchemaAllOf.options.resolvers.title}}),t)}catch(e){return}else if(i){const e=n[i].map((e=>sampleFromSchema(e,t)));return 1===e.length?e[0]:e.some((e=>null===e))?e.find((e=>null!==e)):e[0]}const{example:o,additionalProperties:s,properties:a,items:c}=n,{includeReadOnly:l,includeWriteOnly:u}=t;if(void 0!==o)return deeplyStripKey(o,"$$ref",(e=>"string"==typeof e&&e.indexOf("#")>-1));if(!r)if(a||s)r="object";else{if(!c)return;r="array"}if("object"===r||Array.isArray(r)&&r.includes("object")){const e=objectify(a),n={};for(const r in e)e[r]&&e[r].deprecated||e[r]&&e[r].readOnly&&!l||e[r]&&e[r].writeOnly&&!u||(e[r].examples?.length?n[r]=e[r].examples[0]:n[r]=sampleFromSchema(e[r],t));if(!0===s)n.additionalProp={};else if(s){const e=sampleFromSchema(objectify(s),t);n.additionalProp=e}return n}return"array"===r||Array.isArray(r)&&r.includes("array")?void 0===c?[]:Array.isArray(c.anyOf)?c.anyOf.map((e=>sampleFromSchema(e,t))):Array.isArray(c.oneOf)?c.oneOf.map((e=>sampleFromSchema(e,t))):[sampleFromSchema(c,t)]:e.enum?e.default?e.default:normalizeArray(e.enum)[0]:"file"!==r?primitive(e):void 0}var samples_default=memoize(sampleFromSchema);function getMediaTypeExamples(e,t,n={}){if(t.example)return[{value:t.example}];if(t.examples){const{examples:e}=t,n=Object.keys(e).map((t=>{let n,r=t,i=e[t];if(null!==i&&"object"==typeof i&&("summary"in i&&(r=i.summary),"description"in i&&(n=i.description),"value"in i)){if(null!==i.value&&"object"==typeof i.value&&"$ref"in i.value)return!1;i=i.value}const o={summary:r,title:t,value:i};return n&&(o.description=n),o})).filter(Boolean);if(n.length)return n}return t.schema&&!matches_mimetype_default.xml(e)?[{value:samples_default(JSON.parse(JSON.stringify(t.schema)),n)}]:[]}function getResponseExamples(e){return Object.keys(e.responses||{}).map((t=>{const n=e.responses[t];let r=!1;if(isRef(n))return!1;const i={};return(n.content?Object.keys(n.content):[]).forEach((e=>{if(!e)return;const t=getMediaTypeExamples(e,n.content[e],{includeReadOnly:!0,includeWriteOnly:!1});t&&(i[e]=t)})),n.headers&&Object.keys(n.headers).length&&!Object.keys(i).length&&(i["*/*"]=[],r=!0),!!Object.keys(i).length&&{status:t,mediaTypes:i,...r?{onlyHeaders:r}:{}}})).filter(Boolean)}function getCallbackExamples(e){return[].concat(...Object.keys(e.callbacks||{}).map((t=>{const n=e.callbacks[t];return[].concat(...Object.keys(n).map((e=>Object.keys(n[e]).map((r=>{const i=getResponseExamples(n[e][r]);return 0!==i.length&&{identifier:t,expression:e,method:r,example:i}}))))).filter(Boolean)})))}var noCorrespondingResponseKey="NoCorrespondingResponseForCustomCodeSample";function addMatchingResponseExamples(e,t){t.getResponseExamples().forEach((t=>{Object.entries(t.mediaTypes||{}).forEach((([n,r])=>{r.forEach((r=>{r.title&&Object.keys(e).includes(r.title)&&(e[r.title].response={mediaType:n,mediaTypeExample:r,status:t.status},e[r.title].name||(e[r.title].name=r.summary))}))}))}))}function getDefaultName(e,t){return e.name&&e.name.length>0?e.name:"Default"+(t[e.language]>1?` #${t[e.language]}`:"")}function getExampleGroups(e){const t={},n={},r=getExtension("code-samples",e.api,e);return r?.forEach(((e,r)=>{t[e.language]?t[e.language]+=1:t[e.language]=1;const i=getDefaultName(e,t);n[e.correspondingExample]?.customCodeSamples?.length?n[e.correspondingExample].customCodeSamples.push({...e,name:i,originalIndex:r}):e.correspondingExample?n[e.correspondingExample]={name:i,customCodeSamples:[{...e,name:i,originalIndex:r}]}:n[noCorrespondingResponseKey]?.customCodeSamples?.length?n[noCorrespondingResponseKey].customCodeSamples.push({...e,name:i,originalIndex:r}):n[noCorrespondingResponseKey]={name:i,customCodeSamples:[{...e,name:i,originalIndex:r}]}})),Object.keys(n).length?(addMatchingResponseExamples(n,e),n):(e.getParameters().forEach((e=>{Object.entries(e.examples||{}).forEach((([t,r])=>{n[t]={...n[t],name:n[t]?.name||r.summary,request:{...n[t]?.request,[e.in]:{...n[t]?.request?.[e.in],[e.name]:r.value}}}}))})),e.getRequestBodyExamples().forEach((e=>{e.examples.forEach((t=>{if(t.title){const r="application/x-www-form-urlencoded"===e.mediaType?"formData":"body";n[t.title]={...n[t.title],name:n[t.title]?.name||t.summary,request:{...n[t.title]?.request,[r]:t.value}}}}))})),Object.keys(n).length&&addMatchingResponseExamples(n,e),Object.entries(n).forEach((([e,t])=>{t.request&&!t.response&&delete n[e]})),n)}function getRequestBodyExamples(e){const t=e.requestBody;return t&&t.content?Object.keys(t.content||{}).map((e=>{const n=getMediaTypeExamples(e,t.content[e],{includeReadOnly:!1,includeWriteOnly:!0});return!!n.length&&{mediaType:e,examples:n}})).filter(Boolean):[]}var isJSON=matches_mimetype_default.json;function buildHeadersSchema(e,t){const n=e.headers,r={type:"object",properties:{}};Object.keys(n).forEach((e=>{if(n[e]&&n[e].schema){const i=n[e];r.properties[e]=toJSONSchema(i.schema,{addEnumsToDescriptions:!0,transformer:t.transformer}),i.description&&(r.properties[e].description=i.description)}}));const i={schema:r,type:"object",label:"Headers"};return e.description&&i.schema&&(i.description=e.description),i}function getResponseAsJSONSchema(e,t,n,r){const i=e.getResponseByStatusCode(n),o=[];if(!i)return null;let s=!1,a=!1;function c(e,t){"ref"===t?s=!0:a=!0}const l=function(e){if(!e)return null;const t=Object.keys(e);if(!t.length)return null;for(let n=0;n{matches_mimetype_default.json(e)&&(this.contentType=e)})),this.contentType}isFormUrlEncoded(){return matches_mimetype_default.formUrlEncoded(this.getContentType())}isMultipart(){return matches_mimetype_default.multipart(this.getContentType())}isJson(){return matches_mimetype_default.json(this.getContentType())}isXml(){return matches_mimetype_default.xml(this.getContentType())}isWebhook(){return this instanceof Webhook}getSecurity(){return this.api?.components?.securitySchemes&&Object.keys(this.api.components.securitySchemes).length&&(this.schema.security||this.api.security)||[]}getSecurityWithTypes(e=!1){return this.getSecurity().map((t=>{let n;try{n=Object.keys(t)}catch(e){return!1}const r=n.map((e=>{let n;try{n=this.api.components.securitySchemes[e]}catch(e){return!1}if(!n)return!1;let r=null;if("http"===n.type)r="basic"===n.scheme?"Basic":"bearer"===n.scheme?"Bearer":n.type;else if("oauth2"===n.type)r="OAuth2";else{if("apiKey"!==n.type)return!1;r="query"===n.in?"Query":"header"===n.in?"Header":"cookie"===n.in?"Cookie":n.type}return{type:r,security:{...n,_key:e,_requirements:t[e]}}}));return e?r.filter((e=>!1!==e)):r}))}prepareSecurity(){return this.getSecurityWithTypes().reduce(((e,t)=>t?(t.forEach((t=>{if(!t)return;e[t.type]||(e[t.type]=[]);e[t.type].some((e=>e._key===t.security._key))||(t.security?._requirements&&delete t.security._requirements,e[t.type].push(t.security))})),e):e),{})}getHeaders(){this.headers={request:[],response:[]};const e=this.prepareSecurity();return e.Header&&(this.headers.request=e.Header.map((e=>e.name))),(e.Bearer||e.Basic||e.OAuth2)&&this.headers.request.push("Authorization"),e.Cookie&&this.headers.request.push("Cookie"),this.schema.parameters&&(this.headers.request=this.headers.request.concat(this.schema.parameters.map((e=>{if(e.in&&"header"===e.in)return e.name})).filter((e=>e)))),this.schema.responses&&(this.headers.response=Object.keys(this.schema.responses).filter((e=>this.schema.responses[e].headers)).map((e=>Object.keys(this.schema.responses[e].headers))).reduce(((e,t)=>e.concat(t)),[])),!this.headers.request.includes("Content-Type")&&this.schema.requestBody&&this.schema.requestBody.content&&Object.keys(this.schema.requestBody.content)&&this.headers.request.push("Content-Type"),this.schema.responses&&Object.keys(this.schema.responses).some((e=>!!this.schema.responses[e].content))&&(this.headers.request.includes("Accept")||this.headers.request.push("Accept"),this.headers.response.includes("Content-Type")||this.headers.response.push("Content-Type")),this.headers}hasOperationId(){return Boolean("operationId"in this.schema&&this.schema.operationId.length)}getOperationId(e={}){function t(t){return t.replace(e?.camelCase||e?.friendlyCase?/[^a-zA-Z0-9_]/g:/[^a-zA-Z0-9]/g,"-").replace(/--+/g,"-").replace(/^-|-$/g,"")}let n;n=this.hasOperationId()?this.schema.operationId:t(this.path).toLowerCase();const r=this.method.toLowerCase();return e?.camelCase||e?.friendlyCase?(e?.friendlyCase&&(n=n.replaceAll("_"," "),this.hasOperationId()||(n=n.replace(/[^a-zA-Z0-9_]+(.)/g,((e,t)=>` ${t}`)).split(" ").filter(((e,t,n)=>e!==n[t-1])).join(" "))),n=n.replace(/[^a-zA-Z0-9_]+(.)/g,((e,t)=>t.toUpperCase())),this.hasOperationId()&&(n=t(n)),n=n.replace(/^[0-9]/g,(e=>`_${e}`)),n=n.charAt(0).toLowerCase()+n.slice(1),n.startsWith(r)||this.hasOperationId()?n:(n=n.charAt(0).toUpperCase()+n.slice(1),`${r}${n}`)):this.hasOperationId()?n:`${r}_${n}`}getTags(){if(!("tags"in this.schema))return[];const e=new Map;"tags"in this.api&&this.api.tags.forEach((t=>{e.set(t.name,t)}));const t=Object.fromEntries(e),n=[];return Array.isArray(this.schema.tags)&&this.schema.tags.forEach((e=>{e in t?n.push(t[e]):n.push({name:e})})),n}isDeprecated(){return"deprecated"in this.schema&&this.schema.deprecated}hasParameters(){return!!this.getParameters().length}getParameters(){let e=this.schema?.parameters||[];const t=this.api?.paths?.[this.path]?.parameters||[];return t.length&&(e=e.concat(dedupeCommonParameters(e,t)||[])),e}hasRequiredParameters(){return this.getParameters().some((e=>"required"in e&&e.required))}getParametersAsJSONSchema(e={}){return getParametersAsJSONSchema(this,this.api,{includeDiscriminatorMappingRefs:!0,transformer:e=>e,...e})}getResponseAsJSONSchema(e,t={}){return getResponseAsJSONSchema(this,this.api,e,{includeDiscriminatorMappingRefs:!0,transformer:e=>e,...t})}getResponseStatusCodes(){return this.schema.responses?Object.keys(this.schema.responses):[]}hasRequestBody(){return!!this.schema.requestBody}getRequestBodyMediaTypes(){if(!this.hasRequestBody())return[];const e=this.schema.requestBody;return isRef(e)?[]:Object.keys(e.content)}hasRequiredRequestBody(){if(!this.hasRequestBody())return!1;const e=this.schema.requestBody;return!isRef(e)&&(!!e.required||!!this.getParametersAsJSONSchema().filter((e=>["body","formData"].includes(e.type))).find((e=>e.schema&&Array.isArray(e.schema.required)&&e.schema.required.length)))}getRequestBody(e){if(!this.hasRequestBody())return!1;const t=this.schema.requestBody;if(isRef(t))return!1;if(e)return e in t.content&&t.content[e];let n;const r=this.getRequestBodyMediaTypes();return r.forEach((e=>{!n&&matches_mimetype_default.json(e)&&(n=e)})),n||r.forEach((e=>{n||(n=e)})),!!n&&[n,t.content[n],...t.description?[t.description]:[]]}getRequestBodyExamples(){const e=void 0!==this.requestBodyExamples?.[0]?.examples?.[0].value;return this.requestBodyExamples&&e||(this.requestBodyExamples=getRequestBodyExamples(this.schema)),this.requestBodyExamples}getResponseByStatusCode(e){if(!this.schema.responses)return!1;if(void 0===this.schema.responses[e])return!1;const t=this.schema.responses[e];return!isRef(t)&&t}getResponseExamples(){return this.responseExamples||(this.responseExamples=getResponseExamples(this.schema)),this.responseExamples}hasCallbacks(){return!!this.schema.callbacks}getCallback(e,t,n){if(!this.schema.callbacks)return!1;const r=!!this.schema.callbacks[e]&&this.schema.callbacks[e][t];return!(!r||!r[n])&&new Callback(this.api,t,n,r[n],e,r)}getCallbacks(){const e=[];return!!this.hasCallbacks()&&(Object.keys(this.schema.callbacks).forEach((t=>{Object.keys(this.schema.callbacks[t]).forEach((n=>{const r=this.schema.callbacks[t];if(!isRef(r)){const i=r[n];isRef(i)||Object.keys(i).forEach((r=>{supportedMethods.has(r)&&e.push(this.getCallback(t,n,r))}))}}))})),e)}getCallbackExamples(){return this.callbackExamples||(this.callbackExamples=getCallbackExamples(this.schema)),this.callbackExamples}hasExtension(e){return Boolean(this.schema&&e in this.schema)}getExtension(e){return this.schema?.[e]}getExampleGroups(){if(this.exampleGroups)return this.exampleGroups;const e=getExampleGroups(this);return this.exampleGroups=e,e}},Callback=class extends Operation{constructor(e,t,n,r,i,o){super(e,t,n,r),this.identifier=i,this.parentSchema=o}getIdentifier(){return this.identifier}getSummary(){return this.schema?.summary&&"string"==typeof this.schema.summary?this.schema.summary:this.parentSchema.summary&&"string"==typeof this.parentSchema.summary?this.parentSchema.summary:void 0}getDescription(){return this.schema?.description&&"string"==typeof this.schema.description?this.schema.description:this.parentSchema.description&&"string"==typeof this.parentSchema.description?this.parentSchema.description:void 0}getParameters(){let e=this.schema?.parameters||[];const t=this.parentSchema.parameters||[];return t.length&&(e=e.concat(dedupeCommonParameters(e,t)||[])),e}},Webhook=class extends Operation{getSummary(){return this.schema?.summary&&"string"==typeof this.schema.summary?this.schema.summary:this.api.webhooks[this.path].summary&&"string"==typeof this.api.webhooks[this.path].summary?this.api.webhooks[this.path].summary:void 0}getDescription(){return this.schema?.description&&"string"==typeof this.schema.description?this.schema.description:this.api.webhooks[this.path].description&&"string"==typeof this.api.webhooks[this.path].description?this.api.webhooks[this.path].description:void 0}},libExports=requireLib$d(),$RefParser=getDefaultExportFromCjs(libExports),dist={},hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist;hasRequiredDist=1,Object.defineProperty(dist,"__esModule",{value:!0}),dist.TokenData=void 0,dist.parse=l,dist.compile=function(t,n={}){const{encode:r=encodeURIComponent,delimiter:i=e}=n,o=t instanceof c?t:l(t,n),s=u(o.tokens,i,r);return function(e={}){const[t,...n]=s(e);if(n.length)throw new TypeError(`Missing parameters: ${n.join(", ")}`);return t}},dist.match=function(n,r={}){const{decode:i=decodeURIComponent,delimiter:o=e}=r,{regexp:s,keys:a}=d(n,r),c=a.map((e=>!1===i?t:"param"===e.type?i:e=>e.split(o).map(i)));return function(e){const t=s.exec(e);if(!t)return!1;const n=t[0],r=Object.create(null);for(let e=1;er.test(e)))}(t.name)&&function(e){return"text"!==(null==e?void 0:e.type)||!r.test(e.value[0])}(o[i+1]),a=s?t.name:JSON.stringify(t.name);if("param"===t.type)return`:${a}`;if("wildcard"===t.type)return`*${a}`;throw new TypeError(`Unexpected token: ${t}`)})).join("")};const e="/",t=e=>e,n=/^[$_\p{ID_Start}]$/u,r=/^[$\u200c\u200d\p{ID_Continue}]$/u,i="https://git.new/pathToRegexpError",o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function s(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class a{constructor(e){this.tokens=e}peek(){if(!this._peek){const e=this.tokens.next();this._peek=e.value}return this._peek}tryConsume(e){const t=this.peek();if(t.type===e)return this._peek=void 0,t.value}consume(e){const t=this.tryConsume(e);if(void 0!==t)return t;const{type:n,index:r}=this.peek();throw new TypeError(`Unexpected ${n} at ${r}, expected ${e}: ${i}`)}text(){let e,t="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=e;return t}}class c{constructor(e){this.tokens=e}}function l(e,s={}){const{encodePath:l=t}=s,u=new a(function*(e){const t=[...e];let s=0;function a(){let e="";if(n.test(t[++s]))for(e+=t[s];r.test(t[++s]);)e+=t[s];else if('"'===t[s]){let n=s;for(;sfunction(e,n,r){if("text"===e.type)return()=>[e.value];if("group"===e.type){const t=u(e.tokens,n,r);return e=>{const[n,...r]=t(e);return r.length?[""]:[n]}}const i=r||t;if("wildcard"===e.type&&!1!==r)return t=>{const r=t[e.name];if(null==r)return["",e.name];if(!Array.isArray(r)||0===r.length)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[r.map(((t,n)=>{if("string"!=typeof t)throw new TypeError(`Expected "${e.name}/${n}" to be a string`);return i(t)})).join(n)]};return t=>{const n=t[e.name];if(null==n)return["",e.name];if("string"!=typeof n)throw new TypeError(`Expected "${e.name}" to be a string`);return[i(n)]}}(e,n,r)));return e=>{const t=[""];for(const n of i){const[r,...i]=n(e);t[0]+=r,t.push(...i)}return t}}function d(t,n={}){const{delimiter:r=e,end:i=!0,sensitive:o=!1,trailing:a=!0}=n,u=[],d=[],_=o?"":"i",m=(Array.isArray(t)?t:[t]).map((e=>e instanceof c?e:l(e,n)));for(const{tokens:e}of m)for(const t of p(e,0,[])){const e=f(t,r,u);d.push(e)}let h=`^(?:${d.join("|")})`;a&&(h+=`(?:${s(r)}$)?`),h+=i?"$":`(?=${s(r)}|$)`;return{regexp:new RegExp(h,_),keys:u}}function*p(e,t,n){if(t===e.length)return yield n;const r=e[t];if("group"===r.type){const i=n.slice();for(const n of p(r.tokens,0,i))yield*p(e,t+1,n)}else n.push(r);yield*p(e,t+1,n)}function f(e,t,n){let r="",o="",a=!0;for(let c=0;ce.name===n)):e.keys[0],t):getKey(e,t)}function getAuth(e,t,n){return Object.keys(e?.components?.securitySchemes||{}).map((r=>({[r]:getByScheme(t,{...e.components.securitySchemes[r],_key:r},n)}))).reduce(((e,t)=>Object.assign(e,t)),{})}function getUserVariable(e,t,n){let r=e;return"keys"in e&&Array.isArray(e.keys)&&e.keys.length&&(r=e.keys[0]),r[t]||e[t]||null}var SERVER_VARIABLE_REGEX=/{([-_a-zA-Z0-9:.[\]]+)}/g;function ensureProtocol(e){return e.match(/^\/\//)?`https:${e}`:e.match(/\/\//)?e:`https://${e}`}function stripTrailingSlash(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function normalizedUrl(e,t){const n="https://example.com";let r;try{if(r=e.servers[t].url,!r)throw new Error("no url");if(r=stripTrailingSlash(r),r.startsWith("/")&&!r.startsWith("//")){const e=new URL(n);e.pathname=r,r=e.href}}catch(e){r=n}return ensureProtocol(r)}function transformUrlIntoRegex(e){return stripTrailingSlash(e.replace(SERVER_VARIABLE_REGEX,"([-_a-zA-Z0-9:.[\\]]+)"))}function normalizePath(e){return e.replace(/({?){(.*?)}(}?)/g,((e,...t)=>`:${t[1].replace("-","")}`)).replace(/::/,"\\::").split("?")[0]}function generatePathMatches(e,t,n){const r=t.split("?")[0];return Object.keys(e).map((t=>{const i=normalizePath(t);let o;try{const e=distExports.match(i,{decode:decodeURIComponent});o=e(r)}catch(e){return}const s={};return o&&Object.keys(o.params).length&&Object.keys(o.params).forEach((e=>{s[`:${e}`]=o.params[e]})),{url:{origin:n,path:i.replace(/\\::/,"::"),nonNormalizedPath:t,slugs:s},operation:e[t],match:o}})).filter(Boolean).filter((e=>e.match))}function filterPathMethods(e,t){const n=distExports.pathToRegexp(t);return e.map((e=>{const t=Object.keys(e.operation).filter((e=>n.regexp.exec(e)));if(t.length){const n=t[0];return e.url.method=n.toUpperCase(),{url:e.url,operation:e.operation[n]}}return!1})).filter(Boolean)}function findTargetPath(e){let t,n=Object.keys(e[0].url.slugs).length;for(let r=0;r{n[e]=getUserVariable(this.user,e)||t[e].default||""})),n}splitUrl(e=0){const t=normalizedUrl(this.api,e),n=this.variables(e);return t.split(/({.+?})/).filter(Boolean).map(((e,t)=>{const r=e.match(/[{}]/),i=e.replace(/[{}]/g,""),o=`${i}-${t}`;if(!r)return{type:"text",value:i,key:o};const s=n?.[i];return{type:"variable",value:i,key:o,description:s?.description,enum:s?.enum}}))}splitVariables(e){const t=(this.api.servers||[]).map(((t,n)=>{const r=transformUrlIntoRegex(t.url),i=new RegExp(r).exec(e);if(!i)return!1;const o={};return Array.from(t.url.matchAll(SERVER_VARIABLE_REGEX)).forEach(((e,t)=>{o[e[1]]=i[t+1]})),{selected:n,variables:o}})).filter(Boolean);return!!t.length&&t[0]}replaceUrl(e,t={}){return stripTrailingSlash(e.replace(SERVER_VARIABLE_REGEX,((e,n)=>{if(n in t){const e=t[n];if("object"!=typeof e)return e;if(!Array.isArray(e)&&null!==e&&"default"in e)return e.default}const r=getUserVariable(this.user,n);return r||e})))}operation(e,t,n={}){let r={parameters:[]};if(n.isWebhook){const n=this.api;if(n?.webhooks[e]?.[t])return r=n.webhooks[e][t],new Webhook(n,e,t,r)}return this?.api?.paths?.[e]?.[t]&&(r=this.api.paths[e][t]),new Operation(this.api,e,t,r)}findOperationMatches(e){const{origin:t,hostname:n}=new URL(e),r=new RegExp(t,"i"),{servers:i,paths:o}=this.api;let s,a,c;if(i&&i.length){if(c=i.find((e=>r.exec(this.replaceUrl(e.url,e.variables||{})))),!c){const e=new RegExp(n);c=i.find((t=>e.exec(this.replaceUrl(t.url,t.variables||{}))))}}else c={url:"https://example.com"};if(c)a={...c,url:this.replaceUrl(c.url,c.variables||{})},[,s]=e.split(new RegExp(a.url,"i"));else{const t=i.map((t=>{const n=transformUrlIntoRegex(t.url);if(new RegExp(n).exec(e))return{matchedServer:t,pathName:e.split(new RegExp(n)).slice(-1).pop()}})).filter(Boolean);if(!t.length)return;s=t[0].pathName,a={...t[0].matchedServer}}if(void 0===s)return;""===s&&(s="/");const l=generatePathMatches(o,s,a.url);return l.length?l:void 0}findOperation(e,t){const n=this.findOperationMatches(e);if(!n)return;const r=filterPathMethods(n,t);return r.length?findTargetPath(r):void 0}findOperationWithoutMethod(e){const t=this.findOperationMatches(e);if(t)return findTargetPath(t)}getOperation(e,t){const n=this.findOperation(e,t);if(void 0!==n)return this.operation(n.url.nonNormalizedPath,t)}getOperationById(e){let t;return Object.values(this.getPaths()).forEach((n=>{t||(t=Object.values(n).find((t=>t.getOperationId()===e)))})),t||(Object.entries(this.getWebhooks()).forEach((([,n])=>{t||(t=Object.values(n).find((t=>t.getOperationId()===e)))})),t)}getAuth(e,t){return this.api?.components?.securitySchemes?getAuth(this.api,e,t):{}}getPaths(){const e={};return Object.keys(this.api.paths?this.api.paths:[]).forEach((t=>{t.startsWith("x-")||(e[t]={},"$ref"in this.api.paths[t]&&(this.api.paths[t]=findSchemaDefinition(this.api.paths[t].$ref,this.api)),Object.keys(this.api.paths[t]).forEach((n=>{supportedMethods.has(n)&&(e[t][n]=this.operation(t,n))})))})),e}getWebhooks(){const e={},t=this.api;return Object.keys(t.webhooks?t.webhooks:[]).forEach((n=>{e[n]={},Object.keys(t.webhooks[n]).forEach((t=>{e[n][t]=this.operation(n,t,{isWebhook:!0})}))})),e}getTags(e=!1){const t=new Set,n=this.api.tags?.map((e=>e.name))||[],r=getExtension("disable-tag-sorting",this.api);Object.entries(this.getPaths()).forEach((([n,r])=>{Object.values(r).forEach((r=>{const i=r.getTags();!e||i.length?i.forEach((e=>{t.add(e.name)})):t.add(n)}))})),Object.entries(this.getWebhooks()).forEach((([n,r])=>{Object.values(r).forEach((r=>{const i=r.getTags();!e||i.length?i.forEach((e=>{t.add(e.name)})):t.add(n)}))}));const i=[],o=[];if(r)return Array.from(t);Array.from(t).forEach((e=>{n.includes(e)?o.push(e):i.push(e)}));let s=o.sort(((e,t)=>n.indexOf(e)-n.indexOf(t)));return s=s.concat(i),s}hasExtension(e){return hasRootExtension(e,this.api)}getExtension(e,t){return getExtension(e,this.api,t)}validateExtension(e){if(this.hasExtension("x-readme")){const t=this.getExtension("x-readme");if("object"!=typeof t||Array.isArray(t)||null===t)throw new TypeError('"x-readme" must be of type "Object"');if(e in t)if([CODE_SAMPLES,HEADERS,PARAMETER_ORDERING,SAMPLES_LANGUAGES].includes(e)){if(!Array.isArray(t[e]))throw new TypeError(`"x-readme.${e}" must be of type "Array"`);e===PARAMETER_ORDERING&&validateParameterOrdering(t[e],`x-readme.${e}`)}else if(e===OAUTH_OPTIONS){if("object"!=typeof t[e])throw new TypeError(`"x-readme.${e}" must be of type "Object"`)}else if("boolean"!=typeof t[e])throw new TypeError(`"x-readme.${e}" must be of type "Boolean"`)}if(this.hasExtension(`x-${e}`)){const t=this.getExtension(`x-${e}`);if([CODE_SAMPLES,HEADERS,PARAMETER_ORDERING,SAMPLES_LANGUAGES].includes(e)){if(!Array.isArray(t))throw new TypeError(`"x-${e}" must be of type "Array"`);e===PARAMETER_ORDERING&&validateParameterOrdering(t,`x-${e}`)}else if(e===OAUTH_OPTIONS){if("object"!=typeof t)throw new TypeError(`"x-${e}" must be of type "Object"`)}else if("boolean"!=typeof t)throw new TypeError(`"x-${e}" must be of type "Boolean"`)}}validateExtensions(){Object.keys(extensionDefaults).forEach((e=>{this.validateExtension(e)}))}getCircularReferences(){if(!this.dereferencing.complete)throw new Error("#dereference() must be called first in order for this method to obtain circular references.");return this.dereferencing.circularRefs}async dereference(e={preserveRefAsJSONSchemaTitle:!1}){if(this.dereferencing.complete)return new Promise((e=>{e(!0)}));if(this.dereferencing.processing)return new Promise(((e,t)=>{this.promises.push({resolve:e,reject:t})}));this.dereferencing.processing=!0;const{api:t,promises:n}=this;t&&t.components&&t.components.schemas&&"object"==typeof t.components.schemas&&Object.keys(t.components.schemas).forEach((n=>{isPrimitive(t.components.schemas[n])||Array.isArray(t.components.schemas[n])||null===t.components.schemas[n]||(e.preserveRefAsJSONSchemaTitle&&(t.components.schemas[n].title=n),t.components.schemas[n]["x-readme-ref-name"]=n)}));const r=new $RefParser;return r.dereference(t||{},{resolve:{external:!1},dereference:{circular:"ignore"}}).then((t=>{let i=[];r.$refs.circular&&(i=r.$refs.circularRefs.map((e=>`#${e.split("#")[1]}`))),this.api=t,this.promises=n,this.dereferencing={processing:!1,complete:!0,circularRefs:i},e.cb&&e.cb()})).then((()=>this.promises.map((e=>e.resolve()))))}};class Hooks{add(e,t,n){if("string"!=typeof arguments[0])for(let e in arguments[0])this.add(e,arguments[0][e],arguments[1]);else(Array.isArray(e)?e:[e]).forEach((function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)}),this)}run(e,t){this[e]=this[e]||[],this[e].forEach((function(e){e.call(t&&t.context?t.context:t,t)}))}}class Plugins{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach((e=>{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)}))}}class Jsep{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+Jsep.version}static addUnaryOp(e){return Jsep.max_unop_len=Math.max(e.length,Jsep.max_unop_len),Jsep.unary_ops[e]=1,Jsep}static addBinaryOp(e,t,n){return Jsep.max_binop_len=Math.max(e.length,Jsep.max_binop_len),Jsep.binary_ops[e]=t,n?Jsep.right_associative.add(e):Jsep.right_associative.delete(e),Jsep}static addIdentifierChar(e){return Jsep.additional_identifier_chars.add(e),Jsep}static addLiteral(e,t){return Jsep.literals[e]=t,Jsep}static removeUnaryOp(e){return delete Jsep.unary_ops[e],e.length===Jsep.max_unop_len&&(Jsep.max_unop_len=Jsep.getMaxKeyLen(Jsep.unary_ops)),Jsep}static removeAllUnaryOps(){return Jsep.unary_ops={},Jsep.max_unop_len=0,Jsep}static removeIdentifierChar(e){return Jsep.additional_identifier_chars.delete(e),Jsep}static removeBinaryOp(e){return delete Jsep.binary_ops[e],e.length===Jsep.max_binop_len&&(Jsep.max_binop_len=Jsep.getMaxKeyLen(Jsep.binary_ops)),Jsep.right_associative.delete(e),Jsep}static removeAllBinaryOps(){return Jsep.binary_ops={},Jsep.max_binop_len=0,Jsep}static removeLiteral(e){return delete Jsep.literals[e],Jsep}static removeAllLiterals(){return Jsep.literals={},Jsep}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new Jsep(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map((e=>e.length)))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return Jsep.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!Jsep.binary_ops[String.fromCharCode(e)]||Jsep.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return Jsep.isIdentifierStart(e)||Jsep.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(Jsep.hooks[e]){const n={context:this,node:t};return Jsep.hooks.run(e,n),n.node}return t}searchHook(e){if(Jsep.hooks[e]){const t={context:this};return Jsep.hooks[e].find((function(e){return e.call(t.context,t),t.node})),t.node}}gobbleSpaces(){let e=this.code;for(;e===Jsep.SPACE_CODE||e===Jsep.TAB_CODE||e===Jsep.LF_CODE||e===Jsep.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:Jsep.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t,n,r=[];for(;this.index0;){if(Jsep.binary_ops.hasOwnProperty(e)&&(!Jsep.isIdentifierStart(this.code)||this.index+e.lengthi.right_a&&e.right_a?n>e.prec:n<=e.prec;for(;r.length>2&&a(r[r.length-2]);)s=r.pop(),t=r.pop().value,o=r.pop(),e={type:Jsep.BINARY_EXP,operator:t,left:o,right:s},r.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+c),r.push(i,e)}for(a=r.length-1,e=r[a];a>1;)e={type:Jsep.BINARY_EXP,operator:r[a-1].value,left:r[a-2],right:e},a-=2;return e}gobbleToken(){let e,t,n,r;if(this.gobbleSpaces(),r=this.searchHook("gobble-token"),r)return this.runHook("after-token",r);if(e=this.code,Jsep.isDecimalDigit(e)||e===Jsep.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===Jsep.SQUOTE_CODE||e===Jsep.DQUOTE_CODE)r=this.gobbleStringLiteral();else if(e===Jsep.OBRACK_CODE)r=this.gobbleArray();else{for(t=this.expr.substr(this.index,Jsep.max_unop_len),n=t.length;n>0;){if(Jsep.unary_ops.hasOwnProperty(t)&&(!Jsep.isIdentifierStart(this.code)||this.index+t.length=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(i===Jsep.COMMA_CODE){if(this.index++,r++,r!==t.length)if(e===Jsep.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===Jsep.CBRACK_CODE)for(let e=t.length;e":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),Jsep.max_unop_len=Jsep.getMaxKeyLen(Jsep.unary_ops),Jsep.max_binop_len=Jsep.getMaxKeyLen(Jsep.binary_ops);const jsep=e=>new Jsep(e).parse(),stdClassProps=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(Jsep).filter((e=>!stdClassProps.includes(e)&&void 0===jsep[e])).forEach((e=>{jsep[e]=Jsep[e]})),jsep.Jsep=Jsep;const CONDITIONAL_EXP="ConditionalExpression";var ternary={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:CONDITIONAL_EXP,test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){let r=n;for(;r.right.operator&&e.binary_ops[r.right.operator]<=.9;)r=r.right;t.node.test=r.right,r.right=t.node,t.node=n}}else this.throwError("Expected :")}}))}};jsep.plugins.register(ternary);const FSLASH_CODE=47,BSLASH_CODE=92;var index={name:"regex",init(e){e.hooks.add("gobble-token",(function(t){if(this.code===FSLASH_CODE){const n=++this.index;let r=!1;for(;this.index=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57))break;o+=this.char}try{i=new RegExp(r,o)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:i,raw:this.expr.slice(n-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?r=!0:r&&this.code===e.CBRACK_CODE&&(r=!1),this.index+=this.code===BSLASH_CODE?2:1}this.throwError("Unclosed Regex")}}))}};const PLUS_CODE=43,MINUS_CODE=45,plugin={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[PLUS_CODE,MINUS_CODE],assignmentPrecedence:.9,init(e){const t=[e.IDENTIFIER,e.MEMBER_EXP];function n(e){plugin.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",n(e.left),n(e.right)):e.operator||Object.values(e).forEach((e=>{e&&"object"==typeof e&&n(e)}))}plugin.assignmentOperators.forEach((t=>e.addBinaryOp(t,plugin.assignmentPrecedence,!0))),e.hooks.add("gobble-token",(function(e){const n=this.code;plugin.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(this.index+=2,e.node={type:"UpdateExpression",operator:n===PLUS_CODE?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},e.node.argument&&t.includes(e.node.argument.type)||this.throwError(`Unexpected ${e.node.operator}`))})),e.hooks.add("after-token",(function(e){if(e.node){const n=this.code;plugin.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(t.includes(e.node.type)||this.throwError(`Unexpected ${e.node.operator}`),this.index+=2,e.node={type:"UpdateExpression",operator:n===PLUS_CODE?"++":"--",argument:e.node,prefix:!1})}})),e.hooks.add("after-expression",(function(e){e.node&&n(e.node)}))}};jsep.plugins.register(index,plugin),jsep.addUnaryOp("typeof"),jsep.addLiteral("null",null),jsep.addLiteral("undefined",void 0);const BLOCKED_PROTO_PROPERTIES=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__"]),SafeEval={evalAst(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return SafeEval.evalBinaryExpression(e,t);case"Compound":return SafeEval.evalCompound(e,t);case"ConditionalExpression":return SafeEval.evalConditionalExpression(e,t);case"Identifier":return SafeEval.evalIdentifier(e,t);case"Literal":return SafeEval.evalLiteral(e,t);case"MemberExpression":return SafeEval.evalMemberExpression(e,t);case"UnaryExpression":return SafeEval.evalUnaryExpression(e,t);case"ArrayExpression":return SafeEval.evalArrayExpression(e,t);case"CallExpression":return SafeEval.evalCallExpression(e,t);case"AssignmentExpression":return SafeEval.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression:(e,t)=>({"||":(e,t)=>e||t(),"&&":(e,t)=>e&&t(),"|":(e,t)=>e|t(),"^":(e,t)=>e^t(),"&":(e,t)=>e&t(),"==":(e,t)=>e==t(),"!=":(e,t)=>e!=t(),"===":(e,t)=>e===t(),"!==":(e,t)=>e!==t(),"<":(e,t)=>e":(e,t)=>e>t(),"<=":(e,t)=>e<=t(),">=":(e,t)=>e>=t(),"<<":(e,t)=>e<>":(e,t)=>e>>t(),">>>":(e,t)=>e>>>t(),"+":(e,t)=>e+t(),"-":(e,t)=>e-t(),"*":(e,t)=>e*t(),"/":(e,t)=>e/t(),"%":(e,t)=>e%t()}[e.operator](SafeEval.evalAst(e.left,t),(()=>SafeEval.evalAst(e.right,t)))),evalCompound(e,t){let n;for(let r=0;rSafeEval.evalAst(e.test,t)?SafeEval.evalAst(e.consequent,t):SafeEval.evalAst(e.alternate,t),evalIdentifier(e,t){if(Object.hasOwn(t,e.name))return t[e.name];throw ReferenceError(`${e.name} is not defined`)},evalLiteral:e=>e.value,evalMemberExpression(e,t){const n=e.computed?SafeEval.evalAst(e.property):e.property.name,r=SafeEval.evalAst(e.object,t);if(null==r)throw TypeError(`Cannot read properties of ${r} (reading '${n}')`);if(!Object.hasOwn(r,n)&&BLOCKED_PROTO_PROPERTIES.has(n))throw TypeError(`Cannot read properties of ${r} (reading '${n}')`);const i=r[n];return"function"==typeof i?i.bind(r):i},evalUnaryExpression:(e,t)=>({"-":e=>-SafeEval.evalAst(e,t),"!":e=>!SafeEval.evalAst(e,t),"~":e=>~SafeEval.evalAst(e,t),"+":e=>+SafeEval.evalAst(e,t),typeof:e=>typeof SafeEval.evalAst(e,t)}[e.operator](e.argument)),evalArrayExpression:(e,t)=>e.elements.map((e=>SafeEval.evalAst(e,t))),evalCallExpression(e,t){const n=e.arguments.map((e=>SafeEval.evalAst(e,t)));return SafeEval.evalAst(e.callee,t)(...n)},evalAssignmentExpression(e,t){if("Identifier"!==e.left.type)throw SyntaxError("Invalid left-hand side in assignment");const n=e.left.name,r=SafeEval.evalAst(e.right,t);return t[n]=r,t[n]}};class SafeScript{constructor(e){this.code=e,this.ast=jsep(this.code)}runInNewContext(e){const t=Object.assign(Object.create(null),e);return SafeEval.evalAst(this.ast,t)}}function push(e,t){return(e=e.slice()).push(t),e}function unshift(e,t){return(t=t.slice()).unshift(e),t}class NewError extends Error{constructor(e){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=e,this.name="NewError"}}function JSONPath(e,t,n,r,i){if(!(this instanceof JSONPath))try{return new JSONPath(e,t,n,r,i)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(i=r,r=n,n=t,t=e,e=null);const o=e&&"object"==typeof e;if(e=e||{},this.json=e.json||n,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!Object.hasOwn(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.eval=void 0===e.eval?"safe":e.eval,this.ignoreEvalErrors=void 0!==e.ignoreEvalErrors&&e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||r||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){const r={path:o?e.path:t};o?"json"in e&&(r.json=e.json):r.json=n;const i=this.evaluate(r);if(!i||"object"!=typeof i)throw new NewError(i);return i}}function query(e,t){const n=e.map((e=>JSONPath({path:e,json:t,resultType:"all"}))).filter((e=>!!e.length&&e)).reduce(((e,t)=>e.concat(t)),[]);return n.sort(((e,t)=>e.pointert.pointer?1:0)),n}function refizePointer(e){return`#${e}`}function additionalProperties(e){return query(["$..additionalProperties"],e).map((e=>refizePointer(e.pointer)))}function callbacks(e){return query(["$.components.callbacks","$.paths..callbacks"],e).map((e=>refizePointer(e.pointer)))}async function circularRefs(e){const t=new Oas(JSON.parse(JSON.stringify(e)));await t.dereference();const n=t.getCircularReferences();return n.sort(),n}function discriminators(e){return query(["$..discriminator"],e).map((e=>refizePointer(e.pointer)))}function links(e){return query(["$..links"],e).map((e=>refizePointer(e.pointer)))}function mediaTypes(e){const t=Array.from(new Set(query(["$..paths..content"],e).map((e=>Object.keys(e.value))).flat()));return t.sort(),t}function parameterSerialization(e){return query(["$..parameters[*].style^"],e).map((e=>refizePointer(e.pointer)))}function polymorphism(e){const t=Array.from(new Set(query(["$..allOf^","$..anyOf^","$..oneOf^"],e).map((e=>refizePointer(e.pointer)))));return t.sort(),t}function securityTypes(e){return Array.from(new Set(query(["$.components.securitySchemes..type"],e).map((e=>e.value))))}function serverVariables(e){return query(["$.servers..variables^"],e).map((e=>refizePointer(e.pointer)))}function totalOperations(e){return query(["$..paths[*]"],e).map((e=>Object.keys(e.value))).flat().length}function webhooks(e){return query(["$.webhooks[*]"],e).map((e=>refizePointer(e.pointer)))}function xml(e){return query(["$.components.schemas..xml^","$..parameters..xml^","$..requestBody..xml^","$..requestBody..['application/xml']","$..requestBody..['application/xml-external-parsed-entity']","$..requestBody..['application/xml-dtd']","$..requestBody..['text/xml']","$..requestBody..['text/xml-external-parsed-entity']","$..requestBody.content[?(@property.match(/\\+xml$/i))]","$..responses..['application/xml']","$..responses..['application/xml-external-parsed-entity']","$..responses..['application/xml-dtd']","$..responses..['text/xml']","$..responses..['text/xml-external-parsed-entity']","$..responses[*].content[?(@property.match(/\\+xml$/i))]"],e).map((e=>refizePointer(e.pointer)))}function authDefaults(e){return query(["$.components.securitySchemes..['x-default']^"],e).map((e=>refizePointer(e.pointer)))}function codeSampleLanguages(e){const t=Array.from(new Set(query(["$..['x-readme']['samples-languages']","$..['x-samples-languages']"],e).map((e=>e.value)).reduce(((e,t)=>e.concat(t)),[])));return t.sort(),t}function codeSamplesDisabled(e){return Array.from(new Set(query(["$['x-samples-enabled']^","$['x-readme']['samples-enabled']","$..paths[*]..['x-samples-enabled']^","$..paths[*]..['x-readme']['samples-enabled']^^"],e).map((e=>refizePointer(e.pointer)))))}function corsProxyDisabled(e){return Array.from(new Set(query(["$['x-proxy-enabled']^","$['x-readme']['proxy-enabled']","$..paths[*]..['x-proxy-enabled']^","$..paths[*]..['x-readme']['proxy-enabled']^^"],e).map((e=>refizePointer(e.pointer)))))}function customCodeSamples(e){return query(["$..['x-code-samples']","$..['x-readme']['code-samples']"],e).filter((e=>!(!Array.isArray(e.value)||!e.value.length)&&e)).map((e=>refizePointer(e.pointer)))}function explorerDisabled(e){return query(["$['x-explorer-enabled']^","$['x-readme']['explorer-enabled']","$..paths[*]..['x-explorer-enabled']^","$..paths[*]..['x-readme']['explorer-enabled']^^"],e).map((e=>refizePointer(e.pointer)))}function rawBody(e){return query(["$..RAW_BODY^^"],e).map((e=>refizePointer(e.pointer)))}function staticHeaders(e){return query(["$..['x-headers']","$..['x-readme']['headers']"],e).filter((e=>!(!Array.isArray(e.value)||!e.value.length)&&e)).map((e=>refizePointer(e.pointer)))}async function analyzer(e){const t=additionalProperties(e),n=callbacks(e),r=await circularRefs(e),i=discriminators(e),o=links(e),s=parameterSerialization(e),a=polymorphism(e),c=serverVariables(e),l=webhooks(e),u=xml(e),d=authDefaults(e),p=codeSampleLanguages(e),f=customCodeSamples(e),_=codeSamplesDisabled(e),m=corsProxyDisabled(e),h=explorerDisabled(e),g=staticHeaders(e),A=rawBody(e),y={general:{mediaTypes:{name:"Media Type",found:mediaTypes(e)},operationTotal:{name:"Operation",found:totalOperations(e)},securityTypes:{name:"Security Type",found:securityTypes(e)}},openapi:{additionalProperties:{present:!!t.length,locations:t},callbacks:{present:!!n.length,locations:n},circularRefs:{present:!!r.length,locations:r},discriminators:{present:!!i.length,locations:i},links:{present:!!o.length,locations:o},style:{present:!!s.length,locations:s},polymorphism:{present:!!a.length,locations:a},serverVariables:{present:!!c.length,locations:c},webhooks:{present:!!l.length,locations:l},xml:{present:!!u.length,locations:u}},readme:{"x-default":{present:!!d.length,locations:d},"x-readme.code-samples":{present:!!f.length,locations:f},"x-readme.headers":{present:!!g.length,locations:g},"x-readme.explorer-enabled":{present:!!h.length,locations:h},"x-readme.proxy-enabled":{present:!!m.length,locations:m},"x-readme.samples-languages":{present:!!p.length,locations:p}}};return _.length&&(y.readme["x-readme.samples-enabled"]={present:!!_.length,locations:_}),A.length&&(y.readme.raw_body={present:!!A.length,locations:A}),y}JSONPath.prototype.evaluate=function(e,t,n,r){let i=this.parent,o=this.parentProperty,{flatten:s,wrap:a}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=r||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"==typeof e&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:t}=e),s=Object.hasOwn(e,"flatten")?e.flatten:s,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,a=Object.hasOwn(e,"wrap")?e.wrap:a,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,n=Object.hasOwn(e,"callback")?e.callback:n,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,i=Object.hasOwn(e,"parent")?e.parent:i,o=Object.hasOwn(e,"parentProperty")?e.parentProperty:o,e=e.path}if(i=i||null,o=o||null,Array.isArray(e)&&(e=JSONPath.toPathString(e)),!e&&""!==e||!t)return;const c=JSONPath.toPathArray(e);"$"===c[0]&&c.length>1&&c.shift(),this._hasParentSelector=null;const l=this._trace(c,t,["$"],i,o,n).filter((function(e){return e&&!e.isParentSelector}));return l.length?a||1!==l.length||l[0].hasArrExpr?l.reduce(((e,t)=>{const n=this._getPreferredOutput(t);return s&&Array.isArray(n)?e=e.concat(n):e.push(n),e}),[]):this._getPreferredOutput(l[0]):a?[]:void 0},JSONPath.prototype._getPreferredOutput=function(e){const t=this.currResultType;switch(t){case"all":{const t=Array.isArray(e.path)?e.path:JSONPath.toPathArray(e.path);return e.pointer=JSONPath.toPointer(t),e.path="string"==typeof e.path?e.path:JSONPath.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return JSONPath.toPathString(e[t]);case"pointer":return JSONPath.toPointer(e.path);default:throw new TypeError("Unknown result type")}},JSONPath.prototype._handleCallback=function(e,t,n){if(t){const r=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:JSONPath.toPathString(e.path),t(r,n,e)}},JSONPath.prototype._trace=function(e,t,n,r,i,o,s,a){let c;if(!e.length)return c={path:n,value:t,parent:r,parentProperty:i,hasArrExpr:s},this._handleCallback(c,o,"value"),c;const l=e[0],u=e.slice(1),d=[];function p(e){Array.isArray(e)?e.forEach((e=>{d.push(e)})):d.push(e)}if(("string"!=typeof l||a)&&t&&Object.hasOwn(t,l))p(this._trace(u,t[l],push(n,l),t,l,o,s));else if("*"===l)this._walk(t,(e=>{p(this._trace(u,t[e],push(n,e),t,e,o,!0,!0))}));else if(".."===l)p(this._trace(u,t,n,r,i,o,s)),this._walk(t,(r=>{"object"==typeof t[r]&&p(this._trace(e.slice(),t[r],push(n,r),t,r,o,!0))}));else{if("^"===l)return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:u,isParentSelector:!0};if("~"===l)return c={path:push(n,l),value:i,parent:r,parentProperty:null},this._handleCallback(c,o,"property"),c;if("$"===l)p(this._trace(u,t,n,null,null,o,s));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(l))p(this._slice(l,u,t,n,r,i,o));else if(0===l.indexOf("?(")){if(!1===this.currEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");const e=l.replace(/^\?\((.*?)\)$/u,"$1"),s=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(e);s?this._walk(t,(e=>{const a=[s[2]],c=s[1]?t[e][s[1]]:t[e];this._trace(a,c,n,r,i,o,!0).length>0&&p(this._trace(u,t[e],push(n,e),t,e,o,!0))})):this._walk(t,(s=>{this._eval(e,t[s],s,n,r,i)&&p(this._trace(u,t[s],push(n,s),t,s,o,!0))}))}else if("("===l[0]){if(!1===this.currEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");p(this._trace(unshift(this._eval(l,t,n.at(-1),n.slice(0,-1),r,i),u),t,n,r,i,o,s))}else if("@"===l[0]){let e=!1;const s=l.slice(1,-2);switch(s){case"scalar":t&&["object","function"].includes(typeof t)||(e=!0);break;case"boolean":case"string":case"undefined":case"function":typeof t===s&&(e=!0);break;case"integer":!Number.isFinite(t)||t%1||(e=!0);break;case"number":Number.isFinite(t)&&(e=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(e=!0);break;case"object":t&&typeof t===s&&(e=!0);break;case"array":Array.isArray(t)&&(e=!0);break;case"other":e=this.currOtherTypeCallback(t,n,r,i);break;case"null":null===t&&(e=!0);break;default:throw new TypeError("Unknown value type "+s)}if(e)return c={path:n,value:t,parent:r,parentProperty:i},this._handleCallback(c,o,"value"),c}else if("`"===l[0]&&t&&Object.hasOwn(t,l.slice(1))){const e=l.slice(1);p(this._trace(u,t[e],push(n,e),t,e,o,s,!0))}else if(l.includes(",")){const e=l.split(",");for(const s of e)p(this._trace(unshift(s,u),t,n,r,i,o,!0))}else!a&&t&&Object.hasOwn(t,l)&&p(this._trace(u,t[l],push(n,l),t,l,o,s,!0))}if(this._hasParentSelector)for(let e=0;e{t(e)}))},JSONPath.prototype._slice=function(e,t,n,r,i,o,s){if(!Array.isArray(n))return;const a=n.length,c=e.split(":"),l=c[2]&&Number.parseInt(c[2])||1;let u=c[0]&&Number.parseInt(c[0])||0,d=c[1]&&Number.parseInt(c[1])||a;u=u<0?Math.max(0,u+a):Math.min(a,u),d=d<0?Math.max(0,d+a):Math.min(a,d);const p=[];for(let e=u;e{p.push(e)}))}return p},JSONPath.prototype._eval=function(e,t,n,r,i,o){this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=i,this.currSandbox._$_property=n,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;const s=e.includes("@path");s&&(this.currSandbox._$_path=JSONPath.toPathString(r.concat([n])));const a=this.currEval+"Script:"+e;if(!JSONPath.cache[a]){let t=e.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(s&&(t=t.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)JSONPath.cache[a]=new this.safeVm.Script(t);else if("native"===this.currEval)JSONPath.cache[a]=new this.vm.Script(t);else if("function"==typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){const e=this.currEval;JSONPath.cache[a]=new e(t)}else{if("function"!=typeof this.currEval)throw new TypeError(`Unknown "eval" property "${this.currEval}"`);JSONPath.cache[a]={runInNewContext:e=>this.currEval(t,e)}}}try{return JSONPath.cache[a].runInNewContext(this.currSandbox)}catch(t){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+t.message+": "+e)}},JSONPath.cache={},JSONPath.toPathString=function(e){const t=e,n=t.length;let r="$";for(let e=1;e{const t=e;return t.openapi&&Object.entries(OPENAPI_FEATURE_DOCS).forEach((([e,n])=>{t.openapi[e]={...t.openapi[e],...n}})),t.readme&&Object.entries(README_FEATURE_DOCS).forEach((([e,n])=>{e in t.readme&&(t.readme[e]={...t.readme[e],...n})})),t}))}function getSupportedFeatures(){return[...Object.keys(OPENAPI_FEATURE_DOCS),"readme"]}class SoftError extends Error{constructor(e){super(e),this.name="SoftError"}}function getFeatureDocsURL(e,t){if(e.url)return"object"==typeof e.url?t.startsWith("3.0")?e.url?.["3.0"]||"This feature is not available on OpenAPI v3.0.":t.startsWith("3.1")?e.url?.[3.1]||"This feature is not available on OpenAPI v3.1.":"":e.url}function buildFeaturesReport(e,t){let n=!1;const r=[""];return t.forEach((t=>{if(t in e.openapi){const i=e.openapi[t];i.present?(r.push(""),r.push(`${t}:`),r.push(...i.locations.map((e=>` ยท ${chalk.yellow(e)}`)))):(r.length&&r[r.length-1].length&&r.push(""),r.push(`${t}: You do not use this.`),n=!0)}})),t.includes("readme")&&(t.length>1&&r[r.length-1].length&&r.push(""),Object.entries(e.readme).forEach((([e,t])=>{t.present?(r.push(`${e}:`),r.push(...t.locations.map((e=>` ยท ${chalk.yellow(e)}`))),r.push("")):(r.push(`${e}: You do not use this.`),n=!0)}))),r[1].length||r.splice(0,1),r[r.length-1].length||r.pop(),{report:r.join("\n"),hasUnusedFeature:n}}function buildFullReport(e,t,n){const r=["Here are some interesting things we found in your API definition. ๐Ÿ•ต๏ธ",""];return Object.entries(e.general).forEach((([,e])=>{let t;if(Array.isArray(e.found)){if(!e.found.length)return;const n=e.found.map((e=>chalk.yellow(e)));t=e.found.length>1?`You are using ${chalk.bold(e.found.length)} ${pluralize(e.name,e.found.length)} throughout your API: ${new Intl.ListFormat("en").format(n)}`:`You are using a single ${e.name} throughout your API: ${n[0]}`}else e.found>1?(t=`You have a total of ${chalk.bold(e.found)} ${pluralize(e.name,e.found)} in your API.`,e.found>100&&(t+=" Wow!")):t=`You have a single ${e.name} in your API.`;r.push(` ยท ${t}`)})),[{component:"openapi",header:"OpenAPI Features"},{component:"readme",header:"ReadMe-Specific Features and Extensions"}].forEach((({component:i,header:o})=>{const s=[[chalk.bold.green("Feature"),chalk.bold.green("Used?"),chalk.bold.green("Description")]];Object.entries(e[i]).forEach((([e,n])=>{const r=[];n.description&&r.push(n.description);const i=getFeatureDocsURL(n,t);i&&r.push(chalk.grey(i)),s.push([e,n.present?"โœ…":"",r.join("\n\n")])})),r.push(""),r.push(o),r.push(srcExports$1.table(s,{border:n,columns:{2:{width:80,wrapWord:!0}}}))})),r.join("\n")}class OpenAPIInspectCommand extends BaseCommand{static summary="Analyze an OpenAPI/Swagger definition for various OpenAPI and ReadMe feature usage.";static description="This command will perform a comprehensive analysis of your API definition to determine how it's utilizing aspects of the OpenAPI Specification (such as circular references, polymorphism, etc.) and any ReadMe-specific extensions you might be using.";static args={spec:libExports$3.Args.string({description:"A file/URL to your API definition"})};static flags={feature:libExports$3.Flags.string({description:"A specific OpenAPI or ReadMe feature you wish to see detailed information on (if it exists). If any features supplied do not exist within the API definition an exit(1) code will be returned alongside the report.",multiple:!0,options:getSupportedFeatures()}),workingDirectory:workingDirectoryFlag};static examples=[{description:"By default, this command will display a comprehensive table of all OpenAPI and ReadMe features found in your API definition:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file]"},{description:"You can omit the file name and `rdme` will scan your working directory (and any subdirectories) for OpenAPI/Swagger files. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %>"},{description:"If you wish to automate this command, it contains a `--feature` flag so you can filter for one or several specific features. If you pass in one or more `--feature` flags, the command returns a `0` exit code if your definition contains all of the given features and a `1` exit code if your definition lacks any of the given features:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --feature circularRefs --feature polymorphism"}];async run(){const{spec:e}=this.args,{workingDirectory:t,feature:n}=this.flags,r=Object.entries(srcExports$1.getBorderCharacters("norc")).map((([e,t])=>({[e]:chalk.gray(t)}))).reduce(((e,t)=>Object.assign(e,t)));if(t){const e=process.cwd();process.chdir(t),this.debug(`switching working directory from ${e} to ${process.cwd()}`)}const{preparedSpec:i,definitionVersion:o}=await prepareOas(e,"openapi inspect",{convertToLatest:!0}),s=JSON.parse(i),a=ora({...oraOptions()});n?.length?a.start(`Analyzing your API definition for usage of ${new Intl.ListFormat("en").format(n.map((e=>"readme"===e?"ReadMe extensions":e)))}...`):a.start("Analyzing your API definition for OpenAPI and ReadMe feature usage...");const c=await analyzeOas(s).catch((e=>{throw this.debug(`analyzer err: ${e.message}`),a.fail(),e}));if(n?.length){a.succeed(`${a.text} done! โœ…`);const{report:e,hasUnusedFeature:t}=buildFeaturesReport(c,n);return t?Promise.reject(new SoftError(e)):Promise.resolve(e)}return a.stop(),Promise.resolve(buildFullReport(c,o.version,r))}}function getUsedRefs(e){return query(["$..['$ref']"],e)}function accumulateUsedRefs(e,t,n){let r;"string"==typeof n&&(r=jsonPointer.get(e,n.substring(1))),void 0!==r&&getUsedRefs(r).forEach((({value:n})=>{t.has(n)||(t.add(n),accumulateUsedRefs(e,t,n))}))}function reducer(e,t={}){const n="tags"in t?t.tags.map((e=>e.toLowerCase())):[],r="paths"in t?Object.entries(t.paths).reduce(((e,[t,n])=>{const r=t.toLowerCase(),i=Array.isArray(n)?n.map((e=>e.toLowerCase())):n.toLowerCase();return e[r]=i,e}),{}):{},i=new Set,o=new Set;if("openapi"!==getAPIDefinitionType(e))throw new Error("Sorry, only OpenAPI definitions are supported.");const s=JSON.parse(JSON.stringify(e));if("security"in s&&Object.values(s.security).forEach((e=>{Object.keys(e).forEach((e=>{i.add(`#/components/securitySchemes/${e}`)}))})),"paths"in s&&(Object.keys(s.paths).forEach((e=>{const t=e.toLowerCase();!Object.keys(r).length||t in r?(Object.keys(s.paths[e]).forEach((a=>{if("parameters"!==a&&Object.keys(r).length&&"*"!==r[t]&&Array.isArray(r[t])&&!r[t].includes(a))return void delete s.paths[e][a];const c=s.paths[e][a];if(n.length){if(!("tags"in c))return void delete s.paths[e][a];if(!c.tags.filter((e=>n.includes(e.toLowerCase()))).length)return void delete s.paths[e][a]}"tags"in c&&c.tags.forEach((e=>{o.add(e)})),getUsedRefs(c).forEach((({value:e})=>{i.add(e)})),"security"in c&&Object.values(c.security).forEach((e=>{Object.keys(e).forEach((e=>{i.add(`#/components/securitySchemes/${e}`)}))}))})),Object.keys(s.paths[e]).length||delete s.paths[e]):delete s.paths[e]})),!Object.keys(s.paths).length))throw new Error("All paths in the API definition were removed. Did you supply the right path name to reduce by?");return i.forEach((e=>accumulateUsedRefs(s,i,e))),"components"in s&&(Object.keys(s.components).forEach((e=>{Object.keys(s.components[e]).forEach((t=>{i.has(`#/components/${e}/${t}`)||delete s.components[e][t]})),Object.keys(s.components[e]).length||delete s.components[e]})),Object.keys(s.components).length||delete s.components),"tags"in s&&(s.tags.forEach(((e,t)=>{o.has(e.name)||delete s.tags[t]})),s.tags=s.tags.filter(Boolean),s.tags.length||delete s.tags),s}class OpenAPIReduceCommand extends BaseCommand{static summary="Reduce an OpenAPI definition into a smaller subset.";static description="Reduce your API definition down to a specific set of tags or paths, which can be useful if you're debugging a problematic schema somewhere, or if you have a file that is too big to maintain.";static args={spec:libExports$3.Args.string({description:"A file/URL to your API definition"})};static flags={method:libExports$3.Flags.string({description:"Methods to reduce by (can only be used alongside the `path` option)",multiple:!0}),out:libExports$3.Flags.string({description:"Output file path to write reduced file to"}),path:libExports$3.Flags.string({description:"Paths to reduce by",multiple:!0}),tag:libExports$3.Flags.string({description:"Tags to reduce by",multiple:!0}),title:titleFlag,workingDirectory:workingDirectoryFlag};static examples=[{description:"By default, this command will ask you a couple questions about how you wish to reduce the file and then do so:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file]"},{description:"You can omit the file name and `rdme` will scan your working directory (and any subdirectories) for OpenAPI/Swagger files. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %>"},{description:"If you wish to automate this command, you can pass in CLI arguments to bypass the prompts:",command:"<%= config.bin %> <%= command.id %> petstore.json --path /pet/{id} --method get --method put --out petstore.reduced.json"}];async run(){const{spec:e}=this.args,t=this.flags,{title:n,workingDirectory:r}=t;if(r){const e=process.cwd();process.chdir(r),this.debug(`switching working directory from ${e} to ${process.cwd()}`)}const{preparedSpec:i,specPath:o,specType:s}=await prepareOas(e,"openapi reduce",{title:n}),a=JSON.parse(i);if("OpenAPI"!==s)throw new Error("Sorry, this reducer feature in rdme only supports OpenAPI 3.0+ definitions.");if((t.path?.length||t.method?.length)&&t.tag?.length)throw new Error("You can pass in either tags or paths/methods, but not both.");prompts.override({reduceBy:t.tag?.length?"tags":t.path?.length?"paths":void 0,tags:t.tag,paths:t.path,methods:t.method,outputPath:t.out});const c=await promptTerminal([{type:"select",name:"reduceBy",message:"Would you like to reduce by paths or tags?",choices:[{title:"Tags",value:"tags"},{title:"Paths",value:"paths"}]},{type:(e,t)=>"tags"===t.reduceBy?"multiselect":null,name:"tags",message:"Choose which tags to reduce by:",min:1,choices:()=>new Oas(a).getTags().map((e=>({title:e,value:e})))},{type:(e,t)=>"paths"===t.reduceBy?"multiselect":null,name:"paths",message:"Choose which paths to reduce by:",min:1,choices:()=>Object.keys(a.paths||[]).map((e=>({title:e,value:e})))},{type:(e,t)=>"paths"===t.reduceBy?"multiselect":null,name:"methods",message:"Choose which HTTP methods that are available across these paths to reduce by:",min:1,choices:(e,n)=>{let r=n.paths.map((e=>Object.keys(a.paths?.[e]||{}))).flat().filter((e=>"parameters"!==e.toLowerCase()));if(!r.length&&!t.method?.length)throw new Error("All paths in the API definition were removed. Did you supply the right path name to reduce by?");return r=[...new Set(r)],r.sort(),r.map((e=>({title:e.toUpperCase(),value:e})))}},{type:"text",name:"outputPath",message:"Enter the path to save your reduced API definition to:",initial:()=>{const e=path$1.extname(o);return`${path$1.basename(o).split(e)[0]}.reduced${e}`},validate:e=>validateFilePath(e)}]);this.debug(`reducing by ${c.reduceBy}`),this.debug(`options being supplied to the reducer: ${JSON.stringify({tags:c.tags,paths:c.paths,methods:c.methods})}`),this.debug(`about to reduce spec located at ${o}`);const l=ora({...oraOptions()});let u;l.start("Reducing your API definition...");try{u=reducer(a,{tags:c.tags||[],paths:(c.paths||[]).reduce(((e,t)=>(e[t]=c.methods,e)),{})}),l.succeed(`${l.text} done! โœ…`)}catch(e){throw this.debug(`reducer err: ${e.message}`),l.fail(),e}return this.debug(`saving reduced spec to ${c.outputPath}`),fs$6.writeFileSync(c.outputPath,JSON.stringify(u,null,2)),this.debug("reduced spec saved"),Promise.resolve(chalk.green(`Your reduced API definition has been saved to ${c.outputPath}! ๐Ÿค`))}}class OpenAPIValidateCommand extends BaseCommand{static summary="Validate your OpenAPI/Swagger definition.";static description="Perform a local validation of your API definition (no ReadMe account required!), which can be useful when constructing or editing your API definition.";static id="openapi validate";static args={spec:libExports$3.Args.string({description:"A file/URL to your API definition"})};static examples=[{description:"This will validate the API definition at the given URL or path:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file]"},{description:"You can omit the file name and `rdme` will scan your working directory (and any subdirectories) for OpenAPI/Swagger files. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %>"}];static flags={github:githubFlag,workingDirectory:workingDirectoryFlag};async run(){if(this.flags.workingDirectory){const e=process.cwd();process.chdir(this.flags.workingDirectory),this.debug(`switching working directory from ${e} to ${process.cwd()}`)}const{specPath:e,specType:t}=await prepareOas(this.args.spec,OpenAPIValidateCommand.id);return this.runCreateGHAHook({parsedOpts:{...this.flags,spec:e},result:chalk.green(`${e} is a valid ${t} API definition!`)})}}function castStringOptToBool(e,t){if(e){if("true"===e)return!0;if("false"===e)return!1;throw new Error(`Invalid option passed for '${t}'. Must be 'true' or 'false'.`)}}class CreateVersionCommand extends BaseCommand{static description="Create a new version for your project.";static id="versions create";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static args={version:libExports$3.Args.string({description:"The version you'd like to create. Must be valid SemVer (https://semver.org/)",required:!0})};static flags={fork:libExports$3.Flags.string({description:"The semantic version which you'd like to fork from."}),key:keyFlag,...baseVersionFlags};static examples=[{description:"Create a new version (with no flags):",command:"<%= config.bin %> <%= command.id %>"},{description:"If you wish to automate the process of creating a new project version, and not have the CLI prompt you for input, you can do so by supplying the necessary flags:",command:"<%= config.bin %> <%= command.id %> --fork={version-fork} --main={true|false} --beta={true|false} --deprecated={true|false} --hidden={true|false}"}];async run(){let e;const{version:t}=this.args,{key:n,fork:r,codename:i,main:o,beta:s,deprecated:a,hidden:c}=this.flags;if(!semver.valid(semver.coerce(t)))return Promise.reject(new Error(`Please specify a semantic version. See \`${this.config.bin} help ${this.id}\` for help.`));r||(e=await readmeAPIv1Fetch("/api/v1/version",{method:"get",headers:cleanAPIv1Headers(n)}).then(handleAPIv1Res)),prompts.override({from:r,is_beta:castStringOptToBool(s,"beta"),is_deprecated:castStringOptToBool(a,"deprecated"),is_hidden:castStringOptToBool(c,"hidden"),is_stable:castStringOptToBool(o,"main")});const l=await promptTerminal(versionPrompt(e||[])),u={codename:i,version:t,from:l.from,is_beta:l.is_beta,is_deprecated:l.is_deprecated,is_hidden:l.is_hidden,is_stable:l.is_stable};return readmeAPIv1Fetch("/api/v1/version",{method:"post",headers:cleanAPIv1Headers(n,void 0,new Headers({Accept:"application/json","Content-Type":"application/json"})),body:JSON.stringify(u)}).then(handleAPIv1Res).then((()=>Promise.resolve(`Version ${t} created successfully.`)))}}class DeleteVersionCommand extends BaseCommand{static id="versions delete";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static description="Delete a version associated with your ReadMe project.";static args={version:libExports$3.Args.string({description:"The version you'd like to delete."})};static flags={key:keyFlag};static examples=[{description:"Remove a specific version from your project, as well as all of the associated documentation:",command:"<%= config.bin %> <%= command.id %> "}];async run(){const{version:e}=this.args,{key:t}=this.flags,n=await getProjectVersion(e,t);return this.debug(`selectedVersion: ${n}`),readmeAPIv1Fetch(`/api/v1/version/${n}`,{method:"delete",headers:cleanAPIv1Headers(t)}).then(handleAPIv1Res).then((()=>Promise.resolve(`Version ${n} deleted successfully.`)))}}class VersionsCommand extends BaseCommand{static id="versions";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static description="List versions available in your project or get a version by SemVer (https://semver.org/).";static flags={key:keyFlag,version:libExports$3.Flags.string({description:"A specific project version to view."})};static examples=[{description:"Get all versions associated with your project:",command:"<%= config.bin %> <%= command.id %>"},{description:"Get all information about a particular version:",command:"<%= config.bin %> <%= command.id %> --version={project-version}"}];async run(){const{key:e,version:t}=this.flags;return readmeAPIv1Fetch(t?`/api/v1/version/${t}`:"/api/v1/version",{method:"get",headers:cleanAPIv1Headers(e)}).then(handleAPIv1Res).then((e=>Promise.resolve(JSON.stringify(e,null,2))))}}class UpdateVersionCommand extends BaseCommand{static id="versions update";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static description="Update an existing version for your project.";static args={version:libExports$3.Args.string({description:"The existing version you'd like to update."})};static flags={newVersion:libExports$3.Flags.string({description:"What should the version be renamed to?"}),key:keyFlag,...baseVersionFlags};static examples=[{description:"Update an existing version (with no flags):",command:"<%= config.bin %> <%= command.id %>"},{description:"If you wish to automate the process of updating a project version, and not have the CLI prompt you for input, you can do so by supplying the necessary flags:",command:"<%= config.bin %> <%= command.id %> --newVersion={new-version-name} --main={true|false} --beta={true|false} --deprecated={true|false} --hidden={true|false}"}];async run(){const{version:e}=this.args,{key:t,newVersion:n,codename:r,main:i,beta:o,hidden:s,deprecated:a}=this.flags,c=await getProjectVersion(e,t);this.debug(`selectedVersion: ${c}`);const l=await readmeAPIv1Fetch(`/api/v1/version/${c}`,{method:"get",headers:cleanAPIv1Headers(t)}).then(handleAPIv1Res);prompts.override({is_beta:castStringOptToBool(o,"beta"),is_deprecated:castStringOptToBool(a,"deprecated"),is_hidden:castStringOptToBool(s,"hidden"),is_stable:castStringOptToBool(i,"main"),newVersion:n});const u=await promptTerminal(versionPrompt([],l)),d={codename:r,version:u.newVersion||c,is_beta:u.is_beta,is_deprecated:u.is_deprecated,is_hidden:u.is_hidden,is_stable:u.is_stable};return readmeAPIv1Fetch(`/api/v1/version/${c}`,{method:"put",headers:cleanAPIv1Headers(t,void 0,new Headers({Accept:"application/json","Content-Type":"application/json"})),body:JSON.stringify(d)}).then(handleAPIv1Res).then((()=>Promise.resolve(`Version ${c} updated successfully.`)))}}class WhoAmICommand extends BaseCommand{static description="Displays the current user and project authenticated with ReadMe.";async run(){const{email:e,project:t}=getCurrentConfig();return e&&t?Promise.resolve(`You are currently logged in as ${chalk.green(e)} to the ${chalk.blue(t)} project.`):Promise.reject(new Error(`Please login using \`${this.config.bin} login\`.`))}}const hook$1=async function(e){const t=e.result,n=e.command,r=e.parsedOpts;return createGHA.call(this,t,n,r)},hook=async function(e){this.debug("configstore location:",configstore.path),e.Command?.flags?.key?(this.debug("current command has --key flag"),isTest()?e.Command.flags.key=keyFlag:e.Command.flags.key=libExports$3.Flags.string({parse:async e=>{this.debug("--key flag detected in parse function");const{email:t,project:n}=getCurrentConfig.call(this);return e&&configstore.get("apiKey")===e&&info(`๐Ÿ”‘ ${chalk.green(t)} is currently logged in, using the stored API key for this project: ${chalk.blue(n)}`,{includeEmojiPrefix:!1}),e},default:async()=>{this.debug("no --key flag detected, running default function");const{apiKey:e}=getCurrentConfig.call(this);if(e)return this.debug("api key found in config, returning"),e;if(isCI())throw new Error("No project API key provided. Please use `--key`.");info("Looks like you're missing a ReadMe API key, let's fix that! ๐Ÿฆ‰",{includeEmojiPrefix:!1});return info(await loginFlow(),{includeEmojiPrefix:!1}),configstore.get("apiKey")}})):this.debug("current command does not have --key flag"),e.Command?.flags?.github?(this.debug("current command has --github flag"),isCI()&&(this.debug("in CI environment"),e.Command.flags.github=libExports$3.Flags.boolean({parse:()=>{throw new Error("The `--github` flag is only for usage in non-CI environments.")}})),process.env.TEST_RDME_CREATEGHA&&(e.Command.flags.github=githubFlag)):this.debug("current command does not have --github flag")},COMMANDS={categories:CategoriesCommand,"categories:create":CategoriesCreateCommand,changelogs:ChangelogsCommand,custompages:CustomPagesCommand,docs:DocsCommand,"docs:prune":DocsPruneCommand,versions:VersionsCommand,"versions:create":CreateVersionCommand,"versions:delete":DeleteVersionCommand,"versions:update":UpdateVersionCommand,login:LoginCommand,logout:LogoutCommand,open:OpenCommand,openapi:OpenAPICommand,"openapi:convert":OpenAPIConvertCommand,"openapi:inspect":OpenAPIInspectCommand,"openapi:reduce":OpenAPIReduceCommand,"openapi:validate":OpenAPIValidateCommand,whoami:WhoAmICommand};export{COMMANDS,hook$1 as createGHA,hook as prerun}; +var e=Object.prototype.toString,t=Array.isArray||function(t){return"[object Array]"===e.call(t)};function n(e){return"function"==typeof e}function r(e){return t(e)?"array":typeof e}function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}function s(e,t){return null!=e&&"object"!=typeof e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var a=RegExp.prototype.test;function c(e,t){return a.call(e,t)}var l=/\S/;function u(e){return!c(l,e)}var d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function p(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return d[e]}))}var f=/\s*/,_=/\s+/,m=/\s*=/,h=/\s*\}/,g=/#|\^|\/|>|\{|&|=|!/;function A(e,n){if(!e)return[];var r,o,s,a=!1,c=[],l=[],d=[],p=!1,A=!1,C="",E=0;function S(){if(p&&!A)for(;d.length;)delete l[d.pop()];else d=[];p=!1,A=!1}function k(e){if("string"==typeof e&&(e=e.split(_,2)),!t(e)||2!==e.length)throw new Error("Invalid tags: "+e);r=new RegExp(i(e[0])+"\\s*"),o=new RegExp("\\s*"+i(e[1])),s=new RegExp("\\s*"+i("}"+e[1]))}k(n||x.tags);for(var D,w,I,T,F,R,P=new b(e);!P.eos();){if(D=P.pos,I=P.scanUntil(r))for(var N=0,B=I.length;N0?i[i.length-1][4]:n;break;default:r.push(t)}return n}function b(e){this.string=e,this.tail=e,this.pos=0}function C(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function E(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}b.prototype.eos=function(){return""===this.tail},b.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},b.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},C.prototype.push=function(e){return new C(e,this)},C.prototype.lookup=function(e){var t,r=this.cache;if(r.hasOwnProperty(e))t=r[e];else{for(var i,a,c,l=this,u=!1;l;){if(e.indexOf(".")>0)for(i=l.view,a=e.split("."),c=0;null!=i&&c"===s?a=this.renderPartial(o,t,n,i):"&"===s?a=this.unescapedValue(o,t):"name"===s?a=this.escapedValue(o,t,i):"text"===s&&(a=this.rawValue(o)),void 0!==a&&(c+=a);return c},E.prototype.renderSection=function(e,r,i,o,s){var a=this,c="",l=r.lookup(e[1]);function u(e){return a.render(e,r,i,s)}if(l){if(t(l))for(var d=0,p=l.length;d0||!n)&&(i[o]=r+i[o]);return i.join("\n")},E.prototype.renderPartial=function(e,t,r,i){if(r){var o=this.getConfigTags(i),s=n(r)?r(e[1]):r[e[1]];if(null!=s){var a=e[6],c=e[5],l=e[4],u=s;0==c&&l&&(u=this.indentPartial(s,l,a));var d=this.parse(u,o);return this.renderTokens(d,t,r,u,i)}}},E.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},E.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||x.escape,i=t.lookup(e[1]);if(null!=i)return"number"==typeof i&&r===x.escape?String(i):r(i)},E.prototype.rawValue=function(e){return e[1]},E.prototype.getConfigTags=function(e){return t(e)?e:e&&"object"==typeof e?e.tags:void 0},E.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!t(e)?e.escape:void 0};var x={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){S.templateCache=e},get templateCache(){return S.templateCache}},S=new E;return x.clearCache=function(){return S.clearCache()},x.parse=function(e,t){return S.parse(e,t)},x.render=function(e,t,n,i){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+r(e)+'" was given as the first argument for mustache#render(template, view, partials)');return S.render(e,t,n,i)},x.escape=p,x.Scanner=b,x.Context=C,x.Writer=E,x}()),mustache$1.exports}function requireVarReplacer(){if(hasRequiredVarReplacer)return varReplacer;hasRequiredVarReplacer=1;const e=requireMustache();return e.Writer.prototype.escapedValue=function(e,t){const n=t.lookup(e[1])||`{{${e[1]}}}`;return String(n)},varReplacer=function(t,n={}){const r=JSON.parse(t),{variable:i=[]}=r,o={...i.reduce(((e,{key:t,value:n})=>(e[t]=n,e)),{}),...n};return e.render(t,o)}}function requireSrc$3(){if(hasRequiredSrc$3)return src$3;hasRequiredSrc$3=1;const{promises:{writeFile:e,readFile:t}}=require$$0$7,{getStatusCodeMessage:n}=requireSrc$4(),{dump:r}=requireJsYaml(),i=require$$3,o=requireLodash_camelcase(),{parseMdTable:s}=requireMdUtils(),a=requireVarReplacer();function c({tag:e,name:t},{separator:n=" > ",concat:r=!0}){return e&&r?`${e}${n}${t}`:t}function l(e,t){const{info:{name:n,description:r},variable:i=[]}=e,o=y(i,"version","1.0.0"),{title:s=n,description:a=r,version:c=o,termsOfService:l,license:f,contact:_,xLogo:m}=t;return{title:s,description:a,version:c,...u(i,m),...l?{termsOfService:l}:{},...p(i,_),...d(i,f)}}function u(e,t={}){const n=y(e,"x-logo.urlVar"),r=y(e,"x-logo.backgroundColorVar"),i=y(e,"x-logo.altTextVar"),o=y(e,"x-logo.hrefVar"),{url:s=n,backgroundColor:a=r,altText:c=i,href:l=o}=t;return null!=s?{"x-logo":{url:s,backgroundColor:a,altText:c,href:l}}:{}}function d(e,t={}){const n=y(e,"license.name"),r=y(e,"license.url"),{name:i=n,url:o=r}=t;return null!=i?{license:{name:i,...o?{url:o}:{}}}:{}}function p(e,t={}){const n=y(e,"contact.name"),r=y(e,"contact.url"),i=y(e,"contact.email"),{name:o=n,url:s=r,email:a=i}=t;return[o,s,a].some((e=>null!=e))?{contact:{...o?{name:o}:{},...s?{url:s}:{},...a?{email:a}:{}}}:{}}function f(e,t){const n=y(e,"externalDocs.description"),r=y(e,"externalDocs.url"),{description:i=n,url:o=r}=t;return null!=o?{externalDocs:{url:o,...i?{description:i}:{}}}:{}}function _(e={},t){if(["GET","DELETE"].includes(t))return{};const{mode:n,raw:r,options:o={raw:r}}=e;let s={};switch(n){case"raw":{const{raw:{language:e}}=o;let t="";if("json"===e){if(r){const e=[];t=i.parse(r,e),e.length>0&&(t=r)}s={"application/json":{schema:{type:"object",example:t}}}}else s="text"===e?{"text/plain":{schema:{type:"string",example:r}}}:{"*/*":{schema:{type:"string",example:JSON.stringify(r)}}};break}case"file":s={"text/plain":{}};break;case"formdata":s={"multipart/form-data":m(e.formdata)};break;case"urlencoded":s={"application/x-www-form-urlencoded":m(e.urlencoded)}}return{requestBody:{content:s}}}function m(e){return e.reduce(((e,{key:t,type:n,description:r,value:i})=>{const{schema:o}=e;return function(e){return/\[required\]/gi.test(e)}(r)&&(o.required=o.required||[]).push(t),(o.properties=o.properties||{})[t]={type:v(i),...r?{description:r.replace(/ ?\[required\] ?/gi,"")}:{},...i?{example:i}:{},..."file"===n?{format:"binary"}:{}},e}),{schema:{type:"object"}})}const h=(e,t)=>(e.has(t.name)||e.set(t.name,t),e);function g(e,t,n,r={},i,{includeQuery:o=!1,includeHeader:s=!1},a=h){const c=[...t.reduce(A("header",s,a),new Map).values()];return c.push(...e.reduce(A("query",o,a),new Map).values()),c.push(...function(e,t,n){const r=e.match(/{\s*[\w-]+\s*}/g)||[];return r.map((e=>{const r=e.slice(1,-1),{type:i="string",description:o,value:s}=n[r]||{},{type:a=i,description:c=o,example:l=s}=t[r]||{};return{name:r,in:"path",schema:{type:a},required:!0,...c?{description:c}:{},...l?{example:l}:{}}}))}(n,r,i)),c.length?{parameters:c}:{}}function A(e,t,n){return(r,{key:i,description:o,value:s,disabled:a})=>{if(!t&&!0===a)return r;const c=/\[required\]/gi.test(o);return n(r,{name:i,in:e,schema:{type:v(s)},...c?{required:c}:{},...o?{description:o.replace(/ ?\[required\] ?/gi,"")}:{},...s?{example:s}:{}}),r}}function y(e,t,n=void 0){const r=e.find((({key:e})=>e===t));return r?r.value:n}function v(e){return/^\d+$/.test(e)?"integer":/^[+-]?([0-9]*[.])?[0-9]+$/.test(e)?"number":/^(true|false)$/.test(e)?"boolean":"string"}function b({auth:e},t,n){return null!=t?function(e){const t={},n=[];for(const[r,i]of Object.entries(e)){const{type:e,scheme:o,...s}=i;"http"===e&&["bearer","basic"].includes(o)&&(t[r]={type:"http",scheme:o,...s},n.push({[r]:[]}))}return 0===Object.keys(t).length?{}:{components:{securitySchemes:t},security:n}}(t):function(e={},t){const{type:n}=e;if(null!=n)return t[`${n}Auth`]={type:"http",scheme:n},{components:{securitySchemes:t},security:[{[`${n}Auth`]:[]}]};return 0===Object.keys(t).length?{}:{components:{securitySchemes:t}}}(e,n)}function C(e,t,n){if(null==e||null!=n)return{};const{type:r}=e;return t[`${r}Auth`]={type:"http",scheme:r},{security:[{[`${r}Auth`]:[]}]}}function E(e,t){return`/${(e=e.slice(t)).map((e=>e=(e=e.replace(/([{}])\1+/g,"$1")).replace(/^:(.*)/g,"{$1}"))).join("/")}`}function x(e,t,n){return`${e}://${t.join(".")}${n?`:${n}`:""}`}function S(e){if(void 0===e||""===e||""===e.raw)return{valid:!1};const t="string"==typeof e||e instanceof String?e:e.raw,n=t.startsWith("{{")?`http://${t}`:t,r=new URL(n);return{raw:t,path:decodeURIComponent(r.pathname).slice(1).split("/"),query:k(r.searchParams,e.query),protocol:r.protocol.slice(0,-1),host:decodeURIComponent(r.hostname).split("."),port:r.port,valid:!0,pathVars:null==e.variable?{}:e.variable.reduce(((e,{key:t,value:n,description:r})=>(e[t]={value:n,description:r,type:v(n)},e)),{})}}function k(e,t=[]){return t}function D(e,t){let n;return n=null!=t?t.map((({url:e,description:t})=>({url:e,description:t}))):Array.from(e).map((e=>({url:e}))),n.length>0?{servers:n}:{}}function w(e){const t=Object.entries(e).map((([e,t])=>({name:e,description:t})));return t.length>0?{tags:t}:{}}function I(e){if(null==e)return{description:e};const t=e.split(/# postman-to-openapi/gi);return 1===t.length?{description:e}:{description:t[0].trim(),paramsMeta:s(t[1])}}function T(e,t,r){return null!=e&&Array.isArray(e)&&e.length>0?function(e,t){const r=e.reduce(((e,{name:t,code:r,status:i,header:o,body:s,_postman_previewlanguage:a})=>{if(void 0===r&&(r="default"),!i)try{i=n({code:r})}catch(e){i=r}return r in e?(a in e[r].bodies||(e[r].bodies[a]=[]),e[r].bodies[a].push({name:t,body:s})):e[r]={description:i,header:o,bodies:{[a]:[{name:t,body:s}]}},e}),{}),i=Object.entries(r).reduce(((e,[n,{description:r,header:i,bodies:o}])=>(e[n]={description:r,...B(i,t),...R(o)},e)),{});return{responses:i}}(e,r):{responses:F(t)}}function F(e=[]){let t=200;const n=e.filter((e=>"test"===e.listen));if(n.length>0){const e=n[0].script.exec.join().match(/\.response\.code\)\.to\.eql\((\d{3})\)|\.to\.have\.status\((\d{3})\)/);t=e&&null!=e[1]?e[1]:e&&null!=e[2]?e[2]:t}return{[t]:{description:"Successful response",content:{"application/json":{}}}}}function R(e){return{content:Object.entries(e).reduce(((e,[t,n])=>("json"===t?e["application/json"]={schema:{type:"object"},...P(n,"json")}:e["text/plain"]={schema:{type:"string"},...P(n,"text")},e)),{})}}function P(e,t){if(Array.isArray(e)&&e.length>1)return{examples:e.reduce(((e,{name:n,body:r},i)=>(e[`example-${i}`]={summary:n,value:N(r,n,t)},e)),{})};const{body:n,name:r}=e[0];return{example:N(n,r,t)}}function N(e,t,n){if("json"===n){const n=[],r=i.parse(null==e||0===e.trim().length?"{}":e,n);if(n.length>0)throw new Error(`Error parsing response example "${t}"`);return r}return e}function B(e,t){if(!t)return{};const n=(e=e||[]).reduce(((e,{key:t,value:n})=>(e[t]={schema:{type:v(n),example:n}},e)),{});return Object.keys(n).length>0?{headers:n}:{}}function O(e,t,n){let r;switch(e){case"off":break;case"auto":r=o(n);break;case"brackets":{const e=t.match(/\[([^\[\]]*)\]/);r=e?e[1]:void 0;break}}return r?{operationId:r}:{}}return src$3=async function(n,i,{info:o={},defaultTag:s="default",pathDepth:u=0,auth:d,servers:p,externalDocs:m={},folders:h={},responseHeaders:A=!0,replaceVars:y=!1,additionalVars:v={},outputFormat:k="yaml",disabledParams:F={includeQuery:!1,includeHeader:!1},operationId:R="off"}={}){let P=await async function(e){if(e.trim().startsWith("{"))return e;return t(e,"utf8")}(n);y&&(P=a(P,v));const N=JSON.parse(P),B=N.collection||N,{item:q,variable:$=[]}=B,Q={},L=new Set,M={},j={};for(let[e,t]of q.entries()){for(;null!=t&&null!=t.item;){const{item:n,description:r}=t,i=c(t,h),o=n.map((e=>({...e,tag:i})));M[i]=r,q.splice(e,1,...o),t=o.length>0?o.shift():q[e]}if(null!=t){const{request:{url:e,method:n,body:r,description:i,header:o=[],auth:a},name:c,tag:l=s,event:p,response:f}=t,{path:m,query:h,protocol:y,host:v,port:b,valid:k,pathVars:D}=S(e);if(k){const e=c.replace(/ \[([^\[\]]*)\]/gi,"");L.add(x(y,v,b));const t=E(m,u);Q[t]||(Q[t]={});const{description:s,paramsMeta:S}=I(i);Q[t][n.toLowerCase()]={tags:[l],summary:e,...O(R,c,e),...s?{description:s}:{},..._(r,n),...C(a,j,d),...g(h,o,t,S,D,F),...T(f,p,A)}}}}const U={openapi:"3.0.0",info:l(B,o),...f($,m),...D(L,p),...b(B,d,j),...w(M),paths:Q},J="json"===k?JSON.stringify(U,null,4):r(U,{skipInvalid:!0});return null!=i&&await e(i,J,"utf8"),J},src$3}var srcExports$2=requireSrc$3(),postmanToOpenAPI=getDefaultExportFromCjs(srcExports$2),utils$1,hasRequiredUtils$1,requestOptions,hasRequiredRequestOptions,request,hasRequiredRequest,http_1,hasRequiredHttp,https_1,hasRequiredHttps,lib$8,hasRequiredLib$7;function requireUtils$1(){if(hasRequiredUtils$1)return utils$1;hasRequiredUtils$1=1;class e extends TypeError{constructor(e,t,n){e.includes(".");determiner}}return utils$1={ERR_INVALID_ARG_TYPE:e,assertIsObject:function t(n,r,i="Object"){if(void 0!==n&&(null===n||"object"!=typeof n||Array.isArray(n))){const o=new e(r,i,n);throw Error.captureStackTrace(o,t),o}},DebounceTimers:class{constructor(e,t){this.cb=e,this.delay=t,this.timers={},this.pausers={}}setDelay(e){e>=0&&(this.delay=e)}pause(e){this.pausers[e]=this.pausers[e]||0,this.pausers[e]++}unpause(e){var t=this.pausers[e]||0;t>0&&t--,this.pausers[e]=t}unpauseAndTime(e){this.unpause(e),this.time(e)}time(e){var t=this,n=this.timers,r=this.timers[e];this.pausers[e]>0||(r&&clearTimeout(r),n[e]=setTimeout((function(){t.cb(e),delete n[e]}),t.delay))}}},utils$1}function requireRequestOptions(){if(hasRequiredRequestOptions)return requestOptions;hasRequiredRequestOptions=1;const{assertIsObject:e}=requireUtils$1();function t(t){return e(t,"options"),(t=Object.assign({},t)).allowHalfOpen=!0,t.rejectUnauthorized=!1,e(t.settings,"options.settings"),t.settings=Object.assign({},t.settings),t.Http1IncomingMessage=t.Http1IncomingMessage||this.http.IncomingMessage,t.Http1ServerResponse=t.Http1ServerResponse||this.http.ServerResponse,t.Http2ServerRequest=t.Http2ServerRequest||(this.http2||{}).Http2ServerRequest,t.Http2ServerResponse=t.Http2ServerResponse||(this.http2||{}).Http2ServerResponse,t}return requestOptions={initializeTLSOptions:function(e,n){var r=(e=t.call(this,e)).ALPNProtocols=[];return this.http2Support&&r.push("h2"),1!=e.allowHTTP1&&this.http2Support||r.push("http/1.1"),void 0!==n&&void 0===e.servername&&(e.servername=n),e}},requestOptions}function requireRequest(){if(hasRequiredRequest)return request;hasRequiredRequest=1;const{URL:e}=require$$0$k,{EventEmitter:t}=require$$0$c,n=require$$0__default._extend,{DebounceTimers:r,assertIsObject:i,ERR_INVALID_ARG_TYPE:o}=requireUtils$1(),{initializeTLSOptions:s}=requireRequestOptions(),a=require$$2$1,c=require$$1$4,{Stream:l}=require$$0$b;function u(e,t){const n=t.prototype;Object.keys(n).forEach((t=>{-1==e.indexOf(t)&&0!=t.indexOf("_")&&"function"==typeof n[t]&&e.push(t)}))}const d=[];u(d,a.ClientRequest),u(d,a.OutgoingMessage),u(d,t),u(d,l);const p=["httpVersionMajor","httpVersionMinor","httpVersion"],f=["host","connection"],_=Symbol("stubs");function m(){this.http2Mimic=!0,this[_]=[];for(var t=0;te.agent?"https:"==e.agent.protocol?y.globalManager:b.globalManager:h.globalManager,genericStubber(e,t){return this[_]?(this[_].push([e,t]),!0):this[e](...arguments)},on(e,t){"response"==e&&(t.http2Safe||(arguments[0]=e="http1.response")),this._on?this._on(...arguments):this.genericStubber("on",arguments)},once(e,t){"response"==e&&(t.http2Safe||(e="http1.response")),this._once?this._once(...arguments):this.genericStubber("once",arguments)},emitError(e){if(!this[_])return this.emit("error",e);this[_].forEach((([t,n])=>{"on"!==t&&"once"!==t||"error"!==n[0]||n[1](e)}))},take(e){for(var t=0;to};process.nextTick(function(){r.makeRequest(e,i,t,n,s)}.bind(r))}else r.holdConnectionToIdentification(i,t,function(o,s){o?e.emitError(o):r.makeRequest(e,i,t,n,s)}.bind(r))}getClientKey(e){return`${e.protocol||this.enforceProtocol}${e.servername||e.host||e.hostname}:${e.port}`}getHttp2Client(e){return this.http2Clients[e]}setHttp2Client(e,t){const n=this,r=n.http2Clients[e];function i(){n.removeHttp2Client(e,t)}r&&n.removeHttp2Client(e,r),n.http2Clients[e]=t,t.on("close",i),t.on("goaway",i),t.on("error",i),t.on("frameError",i),t.on("timeout",i)}removeHttp2Client(e,t){try{delete this.http2Clients[e],t.closed||t.close()}catch(e){}t.removeAllListeners("close"),t.removeAllListeners("error"),t.removeAllListeners("frameError"),t.removeAllListeners("timeout")}request(e,t,n){var r=new A(arguments);return this.enforceProtocol&&(r.protocol=this.enforceProtocol),new m(r)}get(){var e=new A(arguments);e.method="GET";var t=this.request(e);return t.end(),t}hasCachedConnection(e){return!!this.getHttp2Client(e)||this.cachedHTTP1Result[e]+this.keepH1IdentificationCacheFori};if("h2"==s&&this.http2Support){var c=this.http2.connect(t,a);this.setHttp2Client(e,c)}else this.cachedHTTP1Result[e]=Date.now();n(null,a),this.emit(r,a)}.bind(this))}}makeHttpRequest(t,r,i,o,s){i instanceof e&&(i=g(i));const a=n({},i);s&&(a.createConnection=s.createConnection);const c=("https:"==a.protocol?this.https:this.http).request(a,o);r.take(c),r._on("response",(function(e){this.emit("http1.response",e)}))}makeHttp2Request(e,t,r,i,o){var s=this.http2Debouncer;s.pause(e);var a=n({},i.headers||{});i.method&&(a[":method"]=i.method),i.path&&(a[":path"]=i.path),Object.keys(a).forEach((e=>{-1!=f.indexOf((e+"").toLowerCase())&&delete a[e]})),i.headers=a;var c=r.request(a);let l;t.emit("socket",i.createConnection());let u=0;function d(n){l=parseInt(n["content-length"]),l<0&&this.http2Debouncer.unpauseAndTime(e),h.httpCompatibleResponse(c,i,n),t.emit("http1.response",c),o&&o(c)}c.on("data",(function(t){u+=t.length,u>=l&&s.unpauseAndTime(e)})),t.take(c),d.http2Safe=!0,c.once("response",d.bind(this))}static httpCompatibleResponse(e,t,n){e.httpVersion="2.0",e.rawHeaders=n,e.headers=n,e.statusCode=n[":status"],delete n[":status"]}identifyConnection(e,t){var n=this.connect(e,{allowHTTP1:!0},(function(){n.removeListener("error",t),"h2"==n.alpnProtocol?t(null,"h2"):(n.end(),t(null,"h1"))}));return n.on("error",t),n}connect(t,n,r){"function"==typeof n&&(r=n,n=void 0),i(n,"options"),n=Object.assign({},n),"string"==typeof t&&(t=new e(t)),i(t,"authority",["string","Object","URL"]);var o,a=t.protocol||n.protocol||("detect"!=this.enforceProtocol?this.enforceProtocol:null)||"http:",c=""+(""!==t.port?t.port:"http:"===t.protocol?80:443),l=t.hostname||t.host||"localhost";if("function"==typeof n.createConnection)o=n.createConnection(t,n);else switch(a){case"http:":o=this.net.connect(c,l,r);break;case"https:":o=this.tls.connect(c,l,s.call(this,n,l),r);break;default:throw new Error("Not supprted"+a)}return o}}function g(e){var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return""!==e.port&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t}class A{constructor(e){if(e[0]instanceof A)return e[0];this.args=e,this.method=null,this.protocol=null}}class y extends h{constructor(){super(...arguments),this.Agent=c.Agent,this.globalAgent=c.globalAgent,this.enforceProtocol="https:"}}const v=new y;y.globalManager=v,y.Manager=y;class b extends h{constructor(){super(...arguments),this.Agent=a.Agent,this.globalAgent=a.globalAgent,this.enforceProtocol="http:"}}const C=new b;b.globalManager=C,b.Manager=b;const E=new h;return E.enforceProtocol="detect",h.globalManager=E,request={HttpRequest:b,HttpsRequest:y,HTTP2OutgoingMessage:m,ClientRequest:m,HttpRequestManager:h}}function requireHttp(){if(hasRequiredHttp)return http_1;hasRequiredHttp=1;const{HttpRequest:e,ClientRequest:t}=requireRequest(),n=e.globalManager,r=n.request.bind(n),i=n.get.bind(n),o=Object.assign({},require$$2$1);return http_1=Object.assign(o,{ClientRequest:t,globalManager:n,request:r,get:i})}function requireHttps(){if(hasRequiredHttps)return https_1;hasRequiredHttps=1;const{HttpsRequest:e,ClientRequest:t}=requireRequest(),n=e.globalManager,r=n.request.bind(n),i=n.get.bind(n),o=Object.assign({},require$$1$4);return https_1=Object.assign(o,{ClientRequest:t,globalManager:n,request:r,get:i})}function requireLib$7(){if(hasRequiredLib$7)return lib$8;hasRequiredLib$7=1;const{HttpRequestManager:e,HTTP2OutgoingMessage:t,ClientRequest:n}=requireRequest(),r=requireHttp(),i=requireHttps(),o=new e;e.globalManager=o;const s=o.request.bind(o),a=o.get.bind(o);return lib$8={HTTP2OutgoingMessage:t,ClientRequest:n,globalManager:e.globalManager,request:s,get:a,http:r,https:i}}var libExports$1=requireLib$7(),h2=getDefaultExportFromCjs(libExports$1);const BUFFER=Symbol("buffer"),TYPE=Symbol("type");let Blob$1=class e{constructor(){this[TYPE]="";const t=arguments[0],n=arguments[1],r=[];if(t){const n=t,i=Number(n.length);for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:{},r=n.size;let i=void 0===r?0:r;var o=n.timeout;let s=void 0===o?0:o;null==e?e=null:isURLSearchParams(e)?e=Buffer.from(e.toString()):e instanceof Blob$1?e=e[BUFFER]:Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof require$$0$b||(e=Buffer.from(String(e)))),this[INTERNALS]={body:e,disturbed:!1,error:null},this.size=i,this.timeout=s,e instanceof require$$0$b&&e.on("error",(function(e){const n="AbortError"===e.name?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[INTERNALS].error=n}))}function consumeBody(){var e=this;if(this[INTERNALS].disturbed)return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[INTERNALS].disturbed=!0,this[INTERNALS].error)return Body.Promise.reject(this[INTERNALS].error);if(null===this.body)return Body.Promise.resolve(Buffer.alloc(0));if(Buffer.isBuffer(this.body))return Body.Promise.resolve(this.body);if(!(this.body instanceof require$$0$b))return Body.Promise.resolve(Buffer.alloc(0));let t=[],n=0,r=!1;return new Body.Promise((function(i,o){let s;e.timeout&&(s=setTimeout((function(){r=!0,o(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),e.body.on("error",(function(t){"AbortError"===t.name?(r=!0,o(t)):o(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))})),e.body.on("data",(function(i){if(!r&&null!==i){if(e.size&&n+i.length>e.size)return r=!0,void o(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));n+=i.length,t.push(i)}})),e.body.on("end",(function(){if(!r){clearTimeout(s);try{i(Buffer.concat(t))}catch(t){o(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}}))}))}function convertBody(e,t){if("function"!=typeof convert)throw new Error("The package `encoding` must be installed to use the textConverted() function");const n=t.get("content-type");let r,i,o="utf-8";return n&&(r=/charset=([^;]*)/i.exec(n)),i=e.slice(0,1024).toString(),!r&&i&&(r=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[MAP]=Object.create(null),t instanceof e){const e=t.raw(),n=Object.keys(e);for(const t of n)for(const n of e[t])this.append(t,n)}else if(null==t);else{if("object"!=typeof t)throw new TypeError("Provided initializer must be an object");{const e=t[Symbol.iterator];if(null!=e){if("function"!=typeof e)throw new TypeError("Header pairs must be iterable");const n=[];for(const e of t){if("object"!=typeof e||"function"!=typeof e[Symbol.iterator])throw new TypeError("Each header pair must be iterable");n.push(Array.from(e))}for(const e of n){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const e of Object.keys(t)){const n=t[e];this.append(e,n)}}}}get(e){validateName(e=`${e}`);const t=find(this[MAP],e);return void 0===t?null:this[MAP][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=getHeaders(this),r=0;for(;r1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[MAP]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[MAP][t].join(", ")}:function(t){return[t.toLowerCase(),e[MAP][t].join(", ")]})}Headers$1.prototype.entries=Headers$1.prototype[Symbol.iterator],Object.defineProperty(Headers$1.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Headers$1.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const INTERNAL=Symbol("internal");function createHeadersIterator(e,t){const n=Object.create(HeadersIteratorPrototype);return n[INTERNAL]={target:e,kind:t,index:0},n}const HeadersIteratorPrototype=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==HeadersIteratorPrototype)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[INTERNAL];const t=e.target,n=e.kind,r=e.index,i=getHeaders(t,n);return r>=i.length?{value:void 0,done:!0}:(this[INTERNAL].index=r+1,{value:i[r],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[MAP]),n=find(e[MAP],"Host");return void 0!==n&&(t[n]=t[n][0]),t}function createHeadersLenient(e){const t=new Headers$1;for(const n of Object.keys(e))if(!invalidTokenRegex.test(n))if(Array.isArray(e[n]))for(const r of e[n])invalidHeaderCharRegex.test(r)||(void 0===t[MAP][n]?t[MAP][n]=[r]:t[MAP][n].push(r));else invalidHeaderCharRegex.test(e[n])||(t[MAP][n]=[e[n]]);return t}Object.defineProperty(HeadersIteratorPrototype,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const INTERNALS$1=Symbol("Response internals"),STATUS_CODES=require$$2$1.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Body.call(this,e,t);const n=t.status||200,r=new Headers$1(t.headers);if(null!=e&&!r.has("Content-Type")){const t=extractContentType(e);t&&r.append("Content-Type",t)}this[INTERNALS$1]={url:t.url,status:n,statusText:t.statusText||STATUS_CODES[n],headers:r}}get url(){return this[INTERNALS$1].url}get status(){return this[INTERNALS$1].status}get ok(){return this[INTERNALS$1].status>=200&&this[INTERNALS$1].status<300}get statusText(){return this[INTERNALS$1].statusText}get headers(){return this[INTERNALS$1].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok})}}Body.mixIn(Response.prototype),Object.defineProperties(Response.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const INTERNALS$2=Symbol("Request internals"),parse_url=require$$0$k.parse,format_url=require$$0$k.format,streamDestructionSupported="destroy"in require$$0$b.Readable.prototype;function isRequest(e){return"object"==typeof e&&"object"==typeof e[INTERNALS$2]}function isAbortSignal(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}class Request{constructor(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};isRequest(e)?t=parse_url(e.url):(t=e&&e.href?parse_url(e.href):parse_url(`${e}`),e={});let r=n.method||e.method||"GET";if(r=r.toUpperCase(),(null!=n.body||isRequest(e)&&null!==e.body)&&("GET"===r||"HEAD"===r))throw new TypeError("Request with GET/HEAD method cannot have body");let i=null!=n.body?n.body:isRequest(e)&&null!==e.body?clone(e):null;Body.call(this,i,{timeout:n.timeout||e.timeout||0,size:n.size||e.size||0});const o=new Headers$1(n.headers||e.headers||{});if(null!=i&&!o.has("Content-Type")){const e=extractContentType(i);e&&o.append("Content-Type",e)}let s=isRequest(e)?e.signal:null;if("signal"in n&&(s=n.signal),null!=s&&!isAbortSignal(s))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[INTERNALS$2]={method:r,redirect:n.redirect||e.redirect||"follow",headers:o,parsedURL:t,signal:s},this.follow=void 0!==n.follow?n.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==n.compress?n.compress:void 0===e.compress||e.compress,this.counter=n.counter||e.counter||0,this.agent=n.agent||e.agent}get method(){return this[INTERNALS$2].method}get url(){return format_url(this[INTERNALS$2].parsedURL)}get headers(){return this[INTERNALS$2].headers}get redirect(){return this[INTERNALS$2].redirect}get signal(){return this[INTERNALS$2].signal}clone(){return new Request(this)}}function getNodeRequestOptions(e){const t=e[INTERNALS$2].parsedURL,n=new Headers$1(e[INTERNALS$2].headers);if(n.has("Accept")||n.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof require$$0$b.Readable&&!streamDestructionSupported)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let r=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(r="0"),null!=e.body){const t=getTotalBytes(e);"number"==typeof t&&(r=String(t))}return r&&n.set("Content-Length",r),n.has("User-Agent")||n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip,deflate"),n.has("Connection")||e.agent||n.set("Connection","close"),Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(n),agent:e.agent})}function AbortError(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}Body.mixIn(Request.prototype),Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Request.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),AbortError.prototype=Object.create(Error.prototype),AbortError.prototype.constructor=AbortError,AbortError.prototype.name="AbortError";const PassThrough$1=require$$0$b.PassThrough,resolve_url=require$$0$k.resolve;function fetch$1(e,t){if(!fetch$1.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Body.Promise=fetch$1.Promise,new fetch$1.Promise((function(n,r){const i=new Request(e,t),o=getNodeRequestOptions(i),s=h2.request,a=i.signal;let c=null;const l=function(){let e=new AbortError("The user aborted a request.");r(e),i.body&&i.body instanceof require$$0$b.Readable&&i.body.destroy(e),c&&c.body&&c.body.emit("error",e)};if(a&&a.aborted)return void l();const u=function(){l(),f()},d=s(o);let p;function f(){d.abort(),a&&a.removeEventListener("abort",u),clearTimeout(p)}a&&a.addEventListener("abort",u),i.timeout&&d.once("socket",(function(e){p=setTimeout((function(){r(new FetchError(`network timeout at: ${i.url}`,"request-timeout")),f()}),i.timeout)})),d.on("error",(function(e){r(new FetchError(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),f()})),d.on("response",(function(e){clearTimeout(p);const t=createHeadersLenient(e.headers);if(fetch$1.isRedirect(e.statusCode)){const o=t.get("Location"),s=null===o?null:resolve_url(i.url,o);switch(i.redirect){case"error":return r(new FetchError(`redirect mode is set to error: ${i.url}`,"no-redirect")),void f();case"manual":if(null!==s)try{t.set("Location",s)}catch(e){r(e)}break;case"follow":if(null===s)break;if(i.counter>=i.follow)return r(new FetchError(`maximum redirect reached at: ${i.url}`,"max-redirect")),void f();const o={headers:new Headers$1(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal};return 303!==e.statusCode&&i.body&&null===getTotalBytes(i)?(r(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(o.method="GET",o.body=void 0,o.headers.delete("content-length")),n(fetch$1(new Request(s,o))),void f())}}e.once("end",(function(){a&&a.removeEventListener("abort",u)}));let o=e.pipe(new PassThrough$1);const s={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:i.size,timeout:i.timeout},l=t.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===l||204===e.statusCode||304===e.statusCode)return c=new Response(o,s),void n(c);const d={flush:zlib.Z_SYNC_FLUSH,finishFlush:zlib.Z_SYNC_FLUSH};if("gzip"==l||"x-gzip"==l)return o=o.pipe(zlib.createGunzip(d)),c=new Response(o,s),void n(c);if("deflate"!=l&&"x-deflate"!=l)c=new Response(o,s),n(c);else{e.pipe(new PassThrough$1).once("data",(function(e){o=8==(15&e[0])?o.pipe(zlib.createInflate()):o.pipe(zlib.createInflateRaw()),c=new Response(o,s),n(c)}))}})),writeToStream(d,i)}))}fetch$1.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},fetch$1.Promise=global.Promise;var lib$7=Object.freeze({__proto__:null,FetchError:FetchError,Headers:Headers$1,Request:Request,Response:Response,default:fetch$1}),require$$4=getAugmentedNamespace(lib$7),dist$1={},parseCst={},PlainValueEc8e588e={},hasRequiredPlainValueEc8e588e,hasRequiredParseCst;function requirePlainValueEc8e588e(){if(hasRequiredPlainValueEc8e588e)return PlainValueEc8e588e;hasRequiredPlainValueEc8e588e=1;const e={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},t={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function n(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function r(e){let t,r;return"string"==typeof e?(t=n(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=n(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function i(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:i}=r(t);if(!n||!i||e>i.length)return null;for(let t=0;t=1)||e>n.length)return null;const o=n[e-1];let s=n[e];for(;s&&s>o&&"\n"===i[s-1];)--s;return i.slice(o,s)}(e.line,n);if(!o)return null;let{col:s}=e;if(o.length>i)if(s<=i-10)o=o.substr(0,i-1)+"โ€ฆ";else{const e=Math.round(i/2);o.length>s+e&&(o=o.substr(0,s+e-1)+"โ€ฆ"),s-=o.length-i,o="โ€ฆ"+o.substr(1-i)}let a=1,c="";t&&(t.line===e.line&&s+(t.col-e.col)<=i+1?a=t.col-e.col:(a=Math.min(o.length+1,i)-s,c="โ€ฆ"));return`${o}\n${s>1?" ".repeat(s-1):""}${"^".repeat(a)}${c}`}class s{static copy(e){return new s(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let i=t;for(;in);)++i;this.origStart=n+i;const o=i;for(;i=r);)++i;return this.origEnd=r+i,o}}class a{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=a.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(t,n,r){const i=t[n];if(!i)return!0;const o=t[n-1];if(o&&"\n"!==o)return!1;if(r){if(i!==r)return!1}else if(i!==e.DIRECTIVES_END&&i!==e.DOCUMENT_END)return!1;const s=t[n+1],a=t[n+2];if(s!==i||a!==i)return!1;const c=t[n+3];return!c||"\n"===c||"\t"===c||" "===c}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=a.endOfIndent(e,n);if(r>n+t)return r;{const t=a.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:a.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,i=!1,o="",s=e[t+1];for(;" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":r=0,t+=1,o+="\n";break;case"\t":r<=n&&(i=!0),t=a.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}s=e[t+1]}return o||(o=" "),s&&r<=n&&(i=!0),{fold:o,offset:t,error:i}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}get anchor(){for(let t=0;t0?t.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||a.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:t}=this.context;for(let n=0;nn.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return a.addStringTerminator(e,t.end,r)}}class c extends Error{constructor(e,t,n){if(!(n&&t instanceof a))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new s(this.offset,this.offset+1);const t=e&&i(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const r=e&&o(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}}class l extends c{constructor(e,t){super("YAMLSemanticError",e,t)}}class u extends a{static endOfLine(e,t,n){let r=e[t],i=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[i+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;i+=1,r=t}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let r=n[t-1];for(;eo?n.slice(o,r+1):e)}else i+=e}const o=n[e];switch(o){case"\t":return{errors:[new l(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":return{errors:[new l(this,`Plain value cannot start with reserved character ${o}`)],str:i};default:return i}}parseBlockValue(e){const{indent:t,inFlow:n,src:r}=this.context;let i=e,o=e;for(let e=r[i];"\n"===e&&!a.atDocumentBoundary(r,i+1);e=r[i]){const e=a.endOfBlockIndent(r,t,i+1);if(null===e||"#"===r[e])break;"\n"===r[e]?i=e:(o=u.endOfLine(r,e,n),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,t){this.context=e;const{inFlow:n,src:r}=e;let i=t;const o=r[i];return o&&"#"!==o&&"\n"!==o&&(i=u.endOfLine(r,t,n)),this.valueRange=new s(t,i),i=a.endOfWhiteSpace(r,i),i=this.parseComment(i),this.hasComment&&!this.valueRange.isEmpty()||(i=this.parseBlockValue(i)),i}}return PlainValueEc8e588e.Char=e,PlainValueEc8e588e.Node=a,PlainValueEc8e588e.PlainValue=u,PlainValueEc8e588e.Range=s,PlainValueEc8e588e.Type=t,PlainValueEc8e588e.YAMLError=c,PlainValueEc8e588e.YAMLReferenceError=class extends c{constructor(e,t){super("YAMLReferenceError",e,t)}},PlainValueEc8e588e.YAMLSemanticError=l,PlainValueEc8e588e.YAMLSyntaxError=class extends c{constructor(e,t){super("YAMLSyntaxError",e,t)}},PlainValueEc8e588e.YAMLWarning=class extends c{constructor(e,t){super("YAMLWarning",e,t)}},PlainValueEc8e588e._defineProperty=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},PlainValueEc8e588e.defaultTagPrefix="tag:yaml.org,2002:",PlainValueEc8e588e.defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"},PlainValueEc8e588e}function requireParseCst(){if(hasRequiredParseCst)return parseCst;hasRequiredParseCst=1;var e=requirePlainValueEc8e588e();class t extends e.Node{constructor(){super(e.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(t,n){return this.context=t,this.range=new e.Range(n,n+1),n+1}}class n extends e.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(n,r){this.context=n;const{parseNode:i,src:o}=n;let{atLineStart:s,lineStart:a}=n;s||this.type!==e.Type.SEQ_ITEM||(this.error=new e.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const c=s?r-a:n.indent;let l=e.Node.endOfWhiteSpace(o,r+1),u=o[l];const d="#"===u,p=[];let f=null;for(;"\n"===u||"#"===u;){if("#"===u){const t=e.Node.endOfLine(o,l+1);p.push(new e.Range(l,t)),l=t}else{s=!0,a=l+1;"\n"===o[e.Node.endOfWhiteSpace(o,a)]&&0===p.length&&(f=new t,a=f.parse({src:o},a)),l=e.Node.endOfIndent(o,a)}u=o[l]}if(e.Node.nextNodeIsIndented(u,l-(a+c),this.type!==e.Type.SEQ_ITEM)?this.node=i({atLineStart:s,inCollection:!1,indent:c,lineStart:a,parent:this},l):u&&a>r+1&&(l=a-1),this.node){if(f){const e=n.parent.items||n.parent.contents;e&&e.push(f)}p.length&&Array.prototype.push.apply(this.props,p),l=this.node.range.end}else if(d){const e=p[0];this.props.push(e),l=e.end}else l=e.Node.endOfLine(o,r+1);const _=this.node?this.node.valueRange.end:l;return this.valueRange=new e.Range(r,_),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:t},node:n,range:r,value:i}=this;if(null!=i)return i;const o=n?t.slice(r.start,n.range.start)+String(n):t.slice(r.start,r.end);return e.Node.addStringTerminator(t,r.end,o)}}class r extends e.Node{constructor(){super(e.Type.COMMENT)}parse(t,n){this.context=t;const r=this.parseComment(n);return this.range=new e.Range(n,r),r}}function i(t){let r=t;for(;r instanceof n;)r=r.node;if(!(r instanceof o))return null;const i=r.items.length;let s=-1;for(let t=i-1;t>=0;--t){const n=r.items[t];if(n.type===e.Type.COMMENT){const{indent:e,lineStart:r}=n.context;if(e>0&&n.range.start>=r+e)break;s=t}else{if(n.type!==e.Type.BLANK_LINE)break;s=t}}if(-1===s)return null;const a=r.items.splice(s,i-s),c=a[0].range.start;for(;r.range.end=c,r.valueRange&&r.valueRange.end>c&&(r.valueRange.end=c),r!==t;)r=r.context.parent;return a}class o extends e.Node{static nextContentHasIndent(t,n,r){const i=e.Node.endOfLine(t,n)+1,s=t[n=e.Node.endOfWhiteSpace(t,i)];return!!s&&(n>=i+r||("#"===s||"\n"===s)&&o.nextContentHasIndent(t,n,r))}constructor(t){super(t.type===e.Type.SEQ_ITEM?e.Type.SEQ:e.Type.MAP);for(let e=t.props.length-1;e>=0;--e)if(t.props[e].start0}parse(n,s){this.context=n;const{parseNode:a,src:c}=n;let l=e.Node.startOfLine(c,s);const u=this.items[0];u.context.parent=this,this.valueRange=e.Range.copy(u.valueRange);const d=u.range.start-u.context.lineStart;let p=s;p=e.Node.normalizeOffset(c,p);let f=c[p],_=e.Node.endOfWhiteSpace(c,l)===p,m=!1;for(;f;){for(;"\n"===f||"#"===f;){if(_&&"\n"===f&&!m){const e=new t;if(p=e.parse({src:c},p),this.valueRange.end=p,p>=c.length){f=null;break}this.items.push(e),p-=1}else if("#"===f){if(p=c.length){f=null;break}}if(l=p+1,p=e.Node.endOfIndent(c,l),e.Node.atBlank(c,p)){const t=e.Node.endOfWhiteSpace(c,p),n=c[t];n&&"\n"!==n&&"#"!==n||(p=t)}f=c[p],_=!0}if(!f)break;if(p!==l+d&&(_||":"!==f)){if(ps&&(p=l);break}if(!this.error){const t="All collection items must start at the same column";this.error=new e.YAMLSyntaxError(this,t)}}if(u.type===e.Type.SEQ_ITEM){if("-"!==f){l>s&&(p=l);break}}else if("-"===f&&!this.error){const t=c[p+1];if(!t||"\n"===t||"\t"===t||" "===t){const t="A collection cannot be both a mapping and a sequence";this.error=new e.YAMLSyntaxError(this,t)}}const n=a({atLineStart:_,inCollection:!0,indent:d,lineStart:l,parent:this},p);if(!n)return p;if(this.items.push(n),this.valueRange.end=n.valueRange.end,p=e.Node.normalizeOffset(c,n.range.end),f=c[p],_=!1,m=n.includesTrailingLines,f){let e=p-1,t=c[e];for(;" "===t||"\t"===t;)t=c[--e];"\n"===t&&(l=e+1,_=!0)}const h=i(n);h&&Array.prototype.push.apply(this.items,h)}return p}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:t},items:n,range:r,value:i}=this;if(null!=i)return i;let o=t.slice(r.start,n[0].range.start)+String(n[0]);for(let e=1;e0&&(this.contents=this.directives,this.directives=[]),l}return i[l]?(this.directivesEndMarker=new e.Range(l,l+3),l+3):(c?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(n){const{parseNode:o,src:s}=this.context;this.contents||(this.contents=[]);let c=n;for(;"-"===s[c-1];)c-=1;let l=e.Node.endOfWhiteSpace(s,n),u=c===n;for(this.valueRange=new e.Range(l);!e.Node.atDocumentBoundary(s,l,e.Char.DOCUMENT_END);){switch(s[l]){case"\n":if(u){const e=new t;l=e.parse({src:s},l),l{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:t,directives:n,value:r}=this;if(null!=r)return r;let i=n.join("");return t.length>0&&((n.length>0||t[0].type===e.Type.COMMENT)&&(i+="---\n"),i+=t.join("")),"\n"!==i[i.length-1]&&(i+="\n"),i}}class c extends e.Node{parse(t,n){this.context=t;const{src:r}=t;let i=e.Node.endOfIdentifier(r,n+1);return this.valueRange=new e.Range(n+1,i),i=e.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}}const l="CLIP",u="KEEP",d="STRIP";class p extends e.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=l,this.header=null}get includesTrailingLines(){return this.chomping===u}get strValue(){if(!this.valueRange||!this.context)return null;let{start:t,end:n}=this.valueRange;const{indent:r,src:i}=this.context;if(this.valueRange.isEmpty())return"";let o=null,s=i[n-1];for(;"\n"===s||"\t"===s||" "===s;){if(n-=1,n<=t){if(this.chomping===u)break;return""}"\n"===s&&(o=n),s=i[n-1]}let a=n+1;o&&(this.chomping===u?(a=o,n=this.valueRange.end):n=o);const c=r+this.blockIndent,l=this.type===e.Type.BLOCK_FOLDED;let p=!0,f="",_="",m=!1;for(let r=t;ra&&(a=l);o="\n"===r[t]?t:s=e.Node.endOfLine(r,t)}return this.chomping!==u&&(o=r[s]?s+1:s),this.valueRange=new e.Range(t+1,o),o}parse(t,n){this.context=t;const{src:r}=t;let i=this.parseBlockHeader(n);return i=e.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i=this.parseBlockValue(i),i}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}class f extends e.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(t=this.items.length){const n=this.items[t-1];return!!n&&(n.jsonLike||n.type===e.Type.COMMENT&&this.prevNodeIsJsonLike(t-1))}parse(n,i){this.context=n;const{parseNode:o,src:s}=n;let{indent:a,lineStart:c}=n,l=s[i];this.items=[{char:l,offset:i}];let u=e.Node.endOfWhiteSpace(s,i+1);for(l=s[u];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":c=u+1;if("\n"===s[e.Node.endOfWhiteSpace(s,c)]){const e=new t;c=e.parse({src:s},c),this.items.push(e)}if(u=e.Node.endOfIndent(s,c),u<=c+a&&(l=s[u],u{if(r instanceof e.Node)n=r.setOrigRanges(t,n);else if(0===t.length)r.origOffset=r.offset;else{let e=n;for(;er.offset);)++e;r.origOffset=r.offset+e,n=e}})),n}toString(){const{context:{src:t},items:n,range:r,value:i}=this;if(null!=i)return i;const o=n.filter((t=>t instanceof e.Node));let s="",a=r.start;return o.forEach((e=>{const n=t.slice(a,e.range.start);a=e.range.end,s+=n+String(e),"\n"===s[s.length-1]&&"\n"!==t[a-1]&&"\n"===t[a]&&(a+=1)})),s+=t.slice(a,r.end),e.Node.addStringTerminator(t,r.end,s)}}class _ extends e.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const t=[],{start:n,end:r}=this.valueRange,{indent:i,src:o}=this.context;'"'!==o[r-1]&&t.push(new e.YAMLSyntaxError(this,'Missing closing "quote'));let s="";for(let a=n+1;ae?o.slice(e,a+1):n)}else s+=n}return t.length>0?{errors:t,str:s}:s}parseCharCode(t,n,r){const{src:i}=this.context,o=i.substr(t,n),s=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(s)?(r.push(new e.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(t-2,n+2)}`)),i.substr(t-2,n+2)):String.fromCodePoint(s)}parse(t,n){this.context=t;const{src:r}=t;let i=_.endOfQuote(r,n+1);return this.valueRange=new e.Range(n,i),i=e.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}}class m extends e.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const t=[],{start:n,end:r}=this.valueRange,{indent:i,src:o}=this.context;"'"!==o[r-1]&&t.push(new e.YAMLSyntaxError(this,"Missing closing 'quote"));let s="";for(let a=n+1;ae?o.slice(e,a+1):n)}else s+=n}return t.length>0?{errors:t,str:s}:s}parse(t,n){this.context=t;const{src:r}=t;let i=m.endOfQuote(r,n+1);return this.valueRange=new e.Range(n,i),i=e.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}}class h{static parseType(t,n,r){switch(t[n]){case"*":return e.Type.ALIAS;case">":return e.Type.BLOCK_FOLDED;case"|":return e.Type.BLOCK_LITERAL;case"{":return e.Type.FLOW_MAP;case"[":return e.Type.FLOW_SEQ;case"?":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.MAP_KEY:e.Type.PLAIN;case":":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.MAP_VALUE:e.Type.PLAIN;case"-":return!r&&e.Node.atBlank(t,n+1,!0)?e.Type.SEQ_ITEM:e.Type.PLAIN;case'"':return e.Type.QUOTE_DOUBLE;case"'":return e.Type.QUOTE_SINGLE;default:return e.Type.PLAIN}}constructor(t={},{atLineStart:r,inCollection:i,inFlow:s,indent:a,lineStart:l,parent:u}={}){e._defineProperty(this,"parseNode",((t,r)=>{if(e.Node.atDocumentBoundary(this.src,r))return null;const i=new h(this,t),{props:s,type:a,valueStart:l}=i.parseProps(r),u=function(t,r){switch(t){case e.Type.ALIAS:return new c(t,r);case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return new p(t,r);case e.Type.FLOW_MAP:case e.Type.FLOW_SEQ:return new f(t,r);case e.Type.MAP_KEY:case e.Type.MAP_VALUE:case e.Type.SEQ_ITEM:return new n(t,r);case e.Type.COMMENT:case e.Type.PLAIN:return new e.PlainValue(t,r);case e.Type.QUOTE_DOUBLE:return new _(t,r);case e.Type.QUOTE_SINGLE:return new m(t,r);default:return null}}(a,s);let d=u.parse(i,l);if(u.range=new e.Range(r,d),d<=r&&(u.error=new Error("Node#parse consumed no characters"),u.error.parseEnd=d,u.error.source=u,u.range.end=r+1),i.nodeStartsCollection(u)){u.error||i.atLineStart||i.parent.type!==e.Type.DOCUMENT||(u.error=new e.YAMLSyntaxError(u,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const t=new o(u);return d=t.parse(new h(i),d),t.range=new e.Range(r,d),t}return u})),this.atLineStart=null!=r?r:t.atLineStart||!1,this.inCollection=null!=i?i:t.inCollection||!1,this.inFlow=null!=s?s:t.inFlow||!1,this.indent=null!=a?a:t.indent,this.lineStart=null!=l?l:t.lineStart,this.parent=null!=u?u:t.parent||{},this.root=t.root,this.src=t.src}nodeStartsCollection(t){const{inCollection:r,inFlow:i,src:o}=this;if(r||i)return!1;if(t instanceof n)return!0;let s=t.range.end;return"\n"!==o[s]&&"\n"!==o[s-1]&&(s=e.Node.endOfWhiteSpace(o,s),":"===o[s])}parseProps(t){const{inFlow:n,parent:r,src:i}=this,o=[];let s=!1,a=i[t=this.atLineStart?e.Node.endOfIndent(i,t):e.Node.endOfWhiteSpace(i,t)];for(;a===e.Char.ANCHOR||a===e.Char.COMMENT||a===e.Char.TAG||"\n"===a;){if("\n"===a){let n,o=t;do{n=o+1,o=e.Node.endOfIndent(i,n)}while("\n"===i[o]);const a=o-(n+this.indent),c=r.type===e.Type.SEQ_ITEM&&r.context.atLineStart;if("#"!==i[o]&&!e.Node.nextNodeIsIndented(i[o],a,!c))break;this.atLineStart=!0,this.lineStart=n,s=!1,t=o}else if(a===e.Char.COMMENT){const n=e.Node.endOfLine(i,t+1);o.push(new e.Range(t,n)),t=n}else{let n=e.Node.endOfIdentifier(i,t+1);a===e.Char.TAG&&","===i[n]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(t+1,n+13))&&(n=e.Node.endOfIdentifier(i,n+5)),o.push(new e.Range(t,n)),s=!0,t=e.Node.endOfWhiteSpace(i,n)}a=i[t]}s&&":"===a&&e.Node.atBlank(i,t+1,!0)&&(t-=1);return{props:o,type:h.parseType(i,t,n),valueStart:t}}}return parseCst.parse=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const n=[];let r=0;do{const t=new a,i=new h({src:e});r=t.parse(i,r),n.push(t)}while(r{if(0===t.length)return!1;for(let e=1;en.join("...\n"),n},parseCst}var Document9b4560a1={},resolveSeqD03cb037={},hasRequiredResolveSeqD03cb037;function requireResolveSeqD03cb037(){if(hasRequiredResolveSeqD03cb037)return resolveSeqD03cb037;hasRequiredResolveSeqD03cb037=1;var e=requirePlainValueEc8e588e();function t(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}class n{}function r(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>r(e,String(t),n)));if(e&&"function"==typeof e.toJSON){const r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});const i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}class i extends n{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:r(this.value,e,t)}toString(){return String(this.value)}}function o(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else{const e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}const s=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;class a extends n{constructor(t){super(),e._defineProperty(this,"items",[]),this.schema=t}addIn(e,t){if(s(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(i instanceof a)i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,o(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof a)return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof i?r.value:r:r instanceof a?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;const t=e.value;return null==t||t instanceof i&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof a&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof a)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,o(this.schema,t,n))}}}toJSON(){return null}toString(n,{blockItem:r,flowChars:i,isMap:o,itemIndent:s},c,l){const{indent:u,indentStep:d,stringify:p}=n,f=this.type===e.Type.FLOW_MAP||this.type===e.Type.FLOW_SEQ||n.inFlow;f&&(s+=d);const _=o&&this.hasAllNullValues();n=Object.assign({},n,{allNullValues:_,indent:s,inFlow:f,type:null});let m=!1,h=!1;const g=this.items.reduce(((e,r,i)=>{let o;r&&(!m&&r.spaceBefore&&e.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((t=>{e.push({type:"comment",str:`#${t}`})})),r.comment&&(o=r.comment),f&&(!m&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(h=!0)),m=!1;let a=p(r,n,(()=>o=null),(()=>m=!0));return f&&!h&&a.includes("\n")&&(h=!0),f&&ie.str));if(h||n.reduce(((e,t)=>e+t.length+2),2)>a.maxFlowStringSingleLineLength){A=e;for(const e of n)A+=e?`\n${d}${u}${e}`:"\n";A+=`\n${u}${t}`}else A=`${e} ${n.join(" ")} ${t}`}else{const e=g.map(r);A=e.shift();for(const t of e)A+=t?`\n${u}${t}`:"\n"}return this.comment?(A+="\n"+this.comment.replace(/^/gm,`${u}#`),c&&c()):m&&l&&l(),A}}function c(e){let t=e instanceof i?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}e._defineProperty(a,"maxFlowStringSingleLineLength",60);class l extends a{add(e){this.items.push(e)}delete(e){const t=c(e);if("number"!=typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const n=c(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof i?r.value:r}has(e){const t=c(e);return"number"==typeof t&&t"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}class u extends n{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=u.Type.PAIR}get commentBefore(){return this.key instanceof n?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new i(null)),!(this.key instanceof n)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}addToJSMap(e,t){const i=r(this.key,"",e);if(t instanceof Map){const n=r(this.value,i,e);t.set(i,n)}else if(t instanceof Set)t.add(i);else{const o=((e,t,r)=>null===t?"":"object"!=typeof t?String(t):e instanceof n&&r&&r.doc?e.toString({anchors:Object.create(null),doc:r.doc,indent:"",indentStep:r.indentStep,inFlow:!0,inStringifyKey:!0,stringify:r.stringify}):JSON.stringify(t))(this.key,i,e),s=r(this.value,o,e);o in t?Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[o]=s}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(r,o,s){if(!r||!r.doc)return JSON.stringify(this);const{indent:c,indentSeq:u,simpleKeys:d}=r.doc.options;let{key:p,value:f}=this,_=p instanceof n&&p.comment;if(d){if(_)throw new Error("With simple keys, key nodes cannot have comments");if(p instanceof a){throw new Error("With simple keys, collection cannot be used as a key value")}}let m=!d&&(!p||_||(p instanceof n?p instanceof a||p.type===e.Type.BLOCK_FOLDED||p.type===e.Type.BLOCK_LITERAL:"object"==typeof p));const{doc:h,indent:g,indentStep:A,stringify:y}=r;r=Object.assign({},r,{implicitKey:!m,indent:g+A});let v=!1,b=y(p,r,(()=>_=null),(()=>v=!0));if(b=t(b,r.indent,_),!m&&b.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(r.allNullValues&&!d)return this.comment?(b=t(b,r.indent,this.comment),o&&o()):v&&!_&&s&&s(),r.inFlow&&!m?b:`? ${b}`;b=m?`? ${b}\n${g}:`:`${b}:`,this.comment&&(b=t(b,r.indent,this.comment),o&&o());let C="",E=null;if(f instanceof n){if(f.spaceBefore&&(C="\n"),f.commentBefore){C+=`\n${f.commentBefore.replace(/^/gm,`${r.indent}#`)}`}E=f.comment}else f&&"object"==typeof f&&(f=h.schema.createNode(f,!0));r.implicitKey=!1,!m&&!this.comment&&f instanceof i&&(r.indentAtStart=b.length+1),v=!1,!u&&c>=2&&!r.inFlow&&!m&&f instanceof l&&f.type!==e.Type.FLOW_SEQ&&!f.tag&&!h.anchors.getName(f)&&(r.indent=r.indent.substr(2));const x=y(f,r,(()=>E=null),(()=>v=!0));let S=" ";if(C||this.comment)S=`${C}\n${r.indent}`;else if(!m&&f instanceof a){("["===x[0]||"{"===x[0])&&!x.includes("\n")||(S=`\n${r.indent}`)}else"\n"===x[0]&&(S="");return v&&!E&&s&&s(),t(b+S+x,r.indent,E)}}e._defineProperty(u,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const d=(e,t)=>{if(e instanceof p){const n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof a){let n=0;for(const r of e.items){const e=d(r,t);e>n&&(n=e)}return n}if(e instanceof u){const n=d(e.key,t),r=d(e.value,t);return Math.max(n,r)}return 1};class p extends n{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:i,inStringifyKey:o}){let s=Object.keys(n).find((e=>n[e]===t));if(!s&&o&&(s=r.anchors.getName(t)||r.anchors.newName()),s)return`*${s}${i?" ":""}`;const a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${a} [${e}]`)}constructor(t){super(),this.source=t,this.type=e.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(t,n){if(!n)return r(this.source,t,n);const{anchors:i,maxAliasCount:o}=n,s=i.get(this.source);if(!s||void 0===s.res){const t="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,t):new ReferenceError(t)}if(o>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=d(this.source,i)),s.count*s.aliasCount>o)){const t="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,t):new ReferenceError(t)}return s.res}toString(e){return p.stringify(this,e)}}function f(e,t){const n=t instanceof i?t.value:t;for(const r of e)if(r instanceof u){if(r.key===t||r.key===n)return r;if(r.key&&r.key.value===n)return r}}e._defineProperty(p,"default",!0);class _ extends a{add(e,t){e?e instanceof u||(e=new u(e.key||e,e.value)):e=new u(e);const n=f(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){const t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=f(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=f(this.items,e),r=n&&n.value;return!t&&r instanceof i?r.value:r}has(e){return!!f(this.items,e)}set(e,t){this.add(new u(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof u))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}class m extends u{constructor(e){if(e instanceof u){let t=e.value;t instanceof l||(t=new l,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new i("<<"),new l);this.type=u.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof _))throw new Error("Merge sources must be maps");const r=n.toJSON(null,e,Map);for(const[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}const h={defaultType:e.Type.BLOCK_LITERAL,lineWidth:76},g={defaultType:e.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function A(e,t,n){for(const{format:n,test:r,resolve:o}of t)if(r){const t=e.match(r);if(t){let e=o.apply(null,t);return e instanceof i||(e=new i(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new i(e)}const y="flow",v="block",b="quoted",C=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function E(e,t,n,{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:s,onOverflow:a}){if(!i||i<0)return e;const c=Math.max(1+o,1+i-t.length);if(e.length<=c)return e;const l=[],u={};let d,p,f=i-t.length;"number"==typeof r&&(r>i-Math.max(2,o)?l.push(0):f=i-r);let _=!1,m=-1,h=-1,g=-1;n===v&&(m=C(e,m),-1!==m&&(f=m+c));for(let t;t=e[m+=1];){if(n===b&&"\\"===t){switch(h=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}g=m}if("\n"===t)n===v&&(m=C(e,m)),f=m+c,d=void 0;else{if(" "===t&&p&&" "!==p&&"\n"!==p&&"\t"!==p){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=m)}if(m>=f)if(d)l.push(d),f=d+c,d=void 0;else if(n===b){for(;" "===p||"\t"===p;)p=t,t=e[m+=1],_=!0;const n=m>g+1?m-2:h-1;if(u[n])return e;l.push(n),u[n]=!0,f=n+c,d=void 0}else _=!0}p=t}if(_&&a&&a(),0===l.length)return e;s&&s();let A=e.slice(0,l[0]);for(let r=0;re?Object.assign({indentAtStart:e},g.fold):g.fold,S=e=>/^(%|---|\.\.\.)/m.test(e);function k(e,t){const{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:i}=g.doubleQuoted,o=JSON.stringify(e);if(r)return o;const s=t.indent||(S(e)?" ":"");let a="",c=0;for(let e=0,t=o[e];t;t=o[++e])if(" "===t&&"\\"===o[e+1]&&"n"===o[e+2]&&(a+=o.slice(c,e)+"\\ ",e+=1,c=e,t="\\"),"\\"===t)switch(o[e+1]){case"u":{a+=o.slice(c,e);const t=o.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=o.substr(e,6)}e+=5,c=e+1}break;case"n":if(n||'"'===o[e+2]||o.lengthr)return!0;if(n=t+1,i-n<=r)return!1}return!0}(r,g.fold.lineWidth,a.length));let u=l?"|":">";if(!r)return u+"\n";let d="",p="";if(r=r.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?u+="-":r!==e&&t===e.length-1||(u+="+",s&&s()),p=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(u+=c);const t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,"")})),p&&(p=p.replace(/\n+(?!\n|$)/g,`$&${a}`)),d&&(d=d.replace(/\n+/g,`$&${a}`)),t&&(u+=" #"+t.replace(/ ?[\r\n]+/g," "),o&&o()),!r)return`${u}${c}\n${a}${p}`;if(l)return r=r.replace(/\n+/g,`$&${a}`),`${u}\n${a}${d}${r}${p}`;r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${a}`);const f=E(`${d}${r}${p}`,a,v,g.fold);return`${u}\n${a}${f}`}function I(t,n){let r,i,o;switch(n.type){case e.Type.FLOW_MAP:r="}",i="flow map";break;case e.Type.FLOW_SEQ:r="]",i="flow sequence";break;default:return void t.push(new e.YAMLSemanticError(n,"Not a flow collection!?"))}for(let t=n.items.length-1;t>=0;--t){const r=n.items[t];if(!r||r.type!==e.Type.COMMENT){o=r;break}}if(o&&o.char!==r){const s=`Expected ${i} to end with ${r}`;let a;"number"==typeof o.offset?(a=new e.YAMLSemanticError(n,s),a.offset=o.offset+1):(a=new e.YAMLSemanticError(o,s),o.range&&o.range.end&&(a.offset=o.range.end-o.range.start)),t.push(a)}}function T(t,n){const r=n.context.src[n.range.start-1];if("\n"!==r&&"\t"!==r&&" "!==r){const r="Comments must be separated from other tokens by white space characters";t.push(new e.YAMLSemanticError(n,r))}}function F(t,n){const r=String(n),i=r.substr(0,8)+"..."+r.substr(-8);return new e.YAMLSemanticError(t,`The "${i}" key is too long`)}function R(e,t){for(const{afterKey:n,before:r,comment:i}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===i?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+i:t.commentBefore=i):void 0!==i&&(e.comment?e.comment+="\n"+i:e.comment=i)}}function P(e,t){const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function N(t,n){const{tag:r,type:i}=n;let o=!1;if(r){const{handle:i,suffix:s,verbatim:a}=r;if(a){if("!"!==a&&"!!"!==a)return a;const r=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new e.YAMLSemanticError(n,r))}else if("!"!==i||s)try{return function(t,n){const{handle:r,suffix:i}=n.tag;let o=t.tagPrefixes.find((e=>e.handle===r));if(!o){const i=t.getDefaults().tagPrefixes;if(i&&(o=i.find((e=>e.handle===r))),!o)throw new e.YAMLSemanticError(n,`The ${r} tag handle is non-default and was not declared.`)}if(!i)throw new e.YAMLSemanticError(n,`The ${r} tag has no suffix.`);if("!"===r&&"1.0"===(t.version||t.options.version)){if("^"===i[0])return t.warnings.push(new e.YAMLWarning(n,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){const e=i.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${i}`}}return o.prefix+decodeURIComponent(i)}(t,n)}catch(e){t.errors.push(e)}else o=!0}switch(i){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:case e.Type.QUOTE_DOUBLE:case e.Type.QUOTE_SINGLE:return e.defaultTags.STR;case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;case e.Type.PLAIN:return o?e.defaultTags.STR:null;default:return null}}function B(e,t,n){const{tags:r}=e.schema,o=[];for(const s of r)if(s.tag===n){if(!s.test){const n=s.resolve(e,t);return n instanceof a?n:new i(n)}o.push(s)}const s=P(e,t);return"string"==typeof s&&o.length>0?A(s,o,r.scalarFallback):null}function O(t,n,r){try{const e=B(t,n,r);if(e)return r&&n.tag&&(e.tag=r),e}catch(e){return e.source||(e.source=n),t.errors.push(e),null}try{const i=function({type:t}){switch(t){case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;default:return e.defaultTags.STR}}(n);if(!i)throw new Error(`The tag ${r} is unavailable`);const o=`The tag ${r} is unavailable, falling back to ${i}`;t.warnings.push(new e.YAMLWarning(n,o));const s=B(t,n,i);return s.tag=r,s}catch(r){const i=new e.YAMLReferenceError(n,r.message);return i.stack=r.stack,t.errors.push(i),null}}function q(t,n){const r={before:[],after:[]};let i=!1,o=!1;const s=(t=>{if(!t)return!1;const{type:n}=t;return n===e.Type.MAP_KEY||n===e.Type.MAP_VALUE||n===e.Type.SEQ_ITEM})(n.context.parent)?n.context.parent.props.concat(n.props):n.props;for(const{start:a,end:c}of s)switch(n.context.src[a]){case e.Char.COMMENT:{if(!n.commentHasRequiredWhitespace(a)){const r="Comments must be separated from other tokens by white space characters";t.push(new e.YAMLSemanticError(n,r))}const{header:i,valueRange:o}=n;(o&&(a>o.start||i&&a>i.start)?r.after:r.before).push(n.context.src.slice(a+1,c));break}case e.Char.ANCHOR:if(i){const r="A node can have at most one anchor";t.push(new e.YAMLSemanticError(n,r))}i=!0;break;case e.Char.TAG:if(o){const r="A node can have at most one tag";t.push(new e.YAMLSemanticError(n,r))}o=!0}return{comments:r,hasAnchor:i,hasTag:o}}function $(t,n){if(!n)return null;n.error&&t.errors.push(n.error);const{comments:r,hasAnchor:i,hasTag:o}=q(t.errors,n);if(i){const{anchors:e}=t,r=n.anchor,i=e.getNode(r);i&&(e.map[e.newName(r)]=i),e.map[r]=n}if(n.type===e.Type.ALIAS&&(i||o)){const r="An alias node must not specify any properties";t.errors.push(new e.YAMLSemanticError(n,r))}const s=function(t,n){const{anchors:r,errors:i,schema:o}=t;if(n.type===e.Type.ALIAS){const t=n.rawValue,o=r.getNode(t);if(!o){const r=`Aliased anchor not found: ${t}`;return i.push(new e.YAMLReferenceError(n,r)),null}const s=new p(o);return r._cstAliases.push(s),s}const s=N(t,n);if(s)return O(t,n,s);if(n.type!==e.Type.PLAIN){const t=`Failed to resolve ${n.type} node here`;return i.push(new e.YAMLSyntaxError(n,t)),null}try{return A(P(t,n),o.tags,o.tags.scalarFallback)}catch(e){return e.source||(e.source=n),i.push(e),null}}(t,n);if(s){s.range=[n.range.start,n.range.end],t.options.keepCstNodes&&(s.cstNode=n),t.options.keepNodeTypes&&(s.type=n.type);const e=r.before.join("\n");e&&(s.commentBefore=s.commentBefore?`${s.commentBefore}\n${e}`:e);const i=r.after.join("\n");i&&(s.comment=s.comment?`${s.comment}\n${i}`:i)}return n.resolved=s}const Q=({context:{lineStart:t,node:n,src:r},props:i})=>{if(0===i.length)return!1;const{start:o}=i[0];if(n&&o>n.valueRange.start)return!1;if(r[o]!==e.Char.COMMENT)return!1;for(let e=t;e0){r=new e.PlainValue(e.Type.PLAIN,[]),r.context={parent:c,src:c.context.src};const t=c.range.start+1;if(r.range={start:t,end:t},r.valueRange={start:t,end:t},"number"==typeof c.range.origStart){const e=c.range.origStart+1;r.range.origStart=r.range.origEnd=e,r.valueRange.origStart=r.valueRange.origEnd=e}}const a=new u(o,$(t,r));L(c,a),i.push(a),o&&"number"==typeof s&&c.range.start>s+1024&&t.errors.push(F(n,o)),o=void 0,s=null}break;default:void 0!==o&&i.push(new u(o)),o=$(t,c),s=c.range.start,c.error&&t.errors.push(c.error);e:for(let r=a+1;;++r){const i=n.items[r];switch(i&&i.type){case e.Type.BLANK_LINE:case e.Type.COMMENT:continue e;case e.Type.MAP_VALUE:break e;default:{const n="Implicit map keys need to be followed by map values";t.errors.push(new e.YAMLSemanticError(c,n));break e}}}if(c.valueRangeContainsNewline){const n="Implicit map keys need to be on a single line";t.errors.push(new e.YAMLSemanticError(c,n))}}}void 0!==o&&i.push(new u(o));return{comments:r,items:i}}(t,n),o=new _;o.items=i,R(o,r);let s=!1;for(let r=0;r{if(t instanceof p){const{type:n}=t.source;return n!==e.Type.MAP&&n!==e.Type.FLOW_MAP&&(s="Merge nodes aliases can only point to maps")}return s="Merge nodes can only have Alias nodes as values"})),s&&t.errors.push(new e.YAMLSemanticError(n,s))}else for(let s=r+1;sa+1024&&t.errors.push(F(n,o));const{src:i}=l.context;for(let n=a;ne instanceof u&&e.key instanceof a))){const r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new e.YAMLWarning(n,r))}return n.resolved=o,o},resolveSeqD03cb037.resolveString=P,resolveSeqD03cb037.strOptions=g,resolveSeqD03cb037.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i},resolveSeqD03cb037.stringifyString=function(t,n,r,i){const{defaultType:o}=g,{implicitKey:s,inFlow:a}=n;let{type:c,value:l}=t;"string"!=typeof l&&(l=String(l),t=Object.assign({},t,{value:l}));const u=o=>{switch(o){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return w(t,n,r,i);case e.Type.QUOTE_DOUBLE:return k(l,n);case e.Type.QUOTE_SINGLE:return D(l,n);case e.Type.PLAIN:return function(t,n,r,i){const{comment:o,type:s,value:a}=t,{actualString:c,implicitKey:l,indent:u,inFlow:d}=n;if(l&&/[\n[\]{},]/.test(a)||d&&/[[\]{},]/.test(a))return k(a,n);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||d||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?D(a,n):k(a,n):w(t,n,r,i);if(!l&&!d&&s!==e.Type.PLAIN&&-1!==a.indexOf("\n"))return w(t,n,r,i);if(""===u&&S(a))return n.forceBlockIndent=!0,w(t,n,r,i);const p=a.replace(/\n+/g,`$&\n${u}`);if(c){const{tags:e}=n.doc.schema;if("string"!=typeof A(p,e,e.scalarFallback).value)return k(a,n)}const f=l?p:E(p,u,y,x(n));return!o||d||-1===f.indexOf("\n")&&-1===o.indexOf("\n")?f:(r&&r(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(f,u,o))}(t,n,r,i);default:return null}};c!==e.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(l)?c=e.Type.QUOTE_DOUBLE:!s&&!a||c!==e.Type.BLOCK_FOLDED&&c!==e.Type.BLOCK_LITERAL||(c=e.Type.QUOTE_DOUBLE);let d=u(c);if(null===d&&(d=u(o),null===d))throw new Error(`Unsupported default string type ${o}`);return d},resolveSeqD03cb037.toJSON=r,resolveSeqD03cb037}var Schema88e323a7={},warnings1000a372={},hasRequiredWarnings1000a372,hasRequiredSchema88e323a7,hasRequiredDocument9b4560a1,hasRequiredDist$1,yaml,hasRequiredYaml,jptr_1,hasRequiredJptr,isref,hasRequiredIsref,clone_1,hasRequiredClone,recurse_1,hasRequiredRecurse,dereference_1,hasRequiredDereference,fastSafeStringify,hasRequiredFastSafeStringify,oasKitCommon,hasRequiredOasKitCommon,oasResolver,hasRequiredOasResolver,oasSchemaWalker,hasRequiredOasSchemaWalker,statusCodes,hasRequiredStatusCodes;function requireWarnings1000a372(){if(hasRequiredWarnings1000a372)return warnings1000a372;hasRequiredWarnings1000a372=1;var e=requirePlainValueEc8e588e(),t=requireResolveSeqD03cb037();const n={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(n,r)=>{const i=t.resolveString(n,r);if("function"==typeof Buffer)return Buffer.from(i,"base64");if("function"==typeof atob){const e=atob(i.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n{let c;if("function"==typeof Buffer)c=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t1){const t="Each pair must have its own sequence indicator";throw new e.YAMLSemanticError(r,t)}const n=o.items[0]||new t.Pair;o.commentBefore&&(n.commentBefore=n.commentBefore?`${o.commentBefore}\n${n.commentBefore}`:o.commentBefore),o.comment&&(n.comment=n.comment?`${o.comment}\n${n.comment}`:o.comment),o=n}i.items[n]=o instanceof t.Pair?o:new t.Pair(o)}}return i}function i(e,n,r){const i=new t.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";for(const t of n){let n,o;if(Array.isArray(t)){if(2!==t.length)throw new TypeError(`Expected [key, value] tuple: ${t}`);n=t[0],o=t[1]}else if(t&&t instanceof Object){const e=Object.keys(t);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${t}`);n=e[0],o=t[n]}else n=t;const s=e.createPair(n,o,r);i.items.push(s)}return i}const o={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:r,createNode:i};class s extends t.YAMLSeq{constructor(){super(),e._defineProperty(this,"add",t.YAMLMap.prototype.add.bind(this)),e._defineProperty(this,"delete",t.YAMLMap.prototype.delete.bind(this)),e._defineProperty(this,"get",t.YAMLMap.prototype.get.bind(this)),e._defineProperty(this,"has",t.YAMLMap.prototype.has.bind(this)),e._defineProperty(this,"set",t.YAMLMap.prototype.set.bind(this)),this.tag=s.tag}toJSON(e,n){const r=new Map;n&&n.onCreate&&n.onCreate(r);for(const e of this.items){let i,o;if(e instanceof t.Pair?(i=t.toJSON(e.key,"",n),o=t.toJSON(e.value,i,n)):i=t.toJSON(e,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}}e._defineProperty(s,"tag","tag:yaml.org,2002:omap");const a={identify:e=>e instanceof Map,nodeClass:s,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(n,i){const o=r(n,i),a=[];for(const{key:n}of o.items)if(n instanceof t.Scalar){if(a.includes(n.value)){const t="Ordered maps must not include duplicate keys";throw new e.YAMLSemanticError(i,t)}a.push(n.value)}return Object.assign(new s,o)},createNode:function(e,t,n){const r=i(e,t,n),o=new s;return o.items=r.items,o}};class c extends t.YAMLMap{constructor(){super(),this.tag=c.tag}add(e){const n=e instanceof t.Pair?e:new t.Pair(e);t.findPair(this.items,n.key)||this.items.push(n)}get(e,n){const r=t.findPair(this.items,e);return!n&&r instanceof t.Pair?r.key instanceof t.Scalar?r.key.value:r.key:r}set(e,n){if("boolean"!=typeof n)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof n);const r=t.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new t.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}e._defineProperty(c,"tag","tag:yaml.org,2002:set");const l={identify:e=>e instanceof Set,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(n,r){const i=t.resolveMap(n,r);if(!i.hasAllNullValues())throw new e.YAMLSemanticError(r,"Set items must all have null values");return Object.assign(new c,i)},createNode:function(e,t,n){const r=new c;for(const i of t)r.items.push(e.createPair(i,null,n));return r}},u=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},d=({value:e})=>{if(isNaN(e)||!isFinite(e))return t.stringifyNumber(e);let n="";e<0&&(n="-",e=Math.abs(e));const r=[e%60];return e<60?r.unshift(0):(e=Math.round((e-r[0])/60),r.unshift(e%60),e>=60&&(e=Math.round((e-r[0])/60),r.unshift(e))),n+r.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},p={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>u(t,n.replace(/_/g,"")),stringify:d},f={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>u(t,n.replace(/_/g,"")),stringify:d},_={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,r,i,o,s,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(t,n-1,r,i||0,o||0,s||0,a||0);if(c&&"Z"!==c){let e=u(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function m(e){const t="undefined"!=typeof process&&process.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function h(e,t){if(m(!1)){const n="undefined"!=typeof process&&process.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const g={};return warnings1000a372.binary=n,warnings1000a372.floatTime=f,warnings1000a372.intTime=p,warnings1000a372.omap=a,warnings1000a372.pairs=o,warnings1000a372.set=l,warnings1000a372.timestamp=_,warnings1000a372.warn=h,warnings1000a372.warnFileDeprecation=function(e){if(m(!0)){h(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")}},warnings1000a372.warnOptionDeprecation=function(e,t){if(!g[e]&&m(!0)){g[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",h(n,"DeprecationWarning")}},warnings1000a372}function requireSchema88e323a7(){if(hasRequiredSchema88e323a7)return Schema88e323a7;hasRequiredSchema88e323a7=1;var e=requirePlainValueEc8e588e(),t=requireResolveSeqD03cb037(),n=requireWarnings1000a372();const r={createNode:function(e,n,r){const i=new t.YAMLMap(e);if(n instanceof Map)for(const[t,o]of n)i.items.push(e.createPair(t,o,r));else if(n&&"object"==typeof n)for(const t of Object.keys(n))i.items.push(e.createPair(t,n[t],r));return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:t.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:t.resolveMap};const i={createNode:function(e,n,r){const i=new t.YAMLSeq(e);if(n&&n[Symbol.iterator])for(const t of n){const n=e.createNode(t,r.wrapScalars,null,r);i.items.push(n)}return i},default:!0,nodeClass:t.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:t.resolveSeq},o={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:t.resolveString,stringify:(e,n,r,i)=>(n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)),options:t.strOptions},s=[r,i,o],a=e=>"bigint"==typeof e||Number.isInteger(e),c=(e,n,r)=>t.intOptions.asBigInt?BigInt(e):parseInt(n,r);function l(e,n,r){const{value:i}=e;return a(i)&&i>=0?r+i.toString(n):t.stringifyNumber(e)}const u={identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:t.nullOptions,stringify:()=>t.nullOptions.nullStr},d={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:t.boolOptions,stringify:({value:e})=>e?t.boolOptions.trueStr:t.boolOptions.falseStr},p={identify:e=>a(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>c(e,t,8),options:t.intOptions,stringify:e=>l(e,8,"0o")},f={identify:a,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>c(e,e,10),options:t.intOptions,stringify:t.stringifyNumber},_={identify:e=>a(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>c(e,t,16),options:t.intOptions,stringify:e=>l(e,16,"0x")},m={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:t.stringifyNumber},h={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},g={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,n,r){const i=n||r,o=new t.Scalar(parseFloat(e));return i&&"0"===i[i.length-1]&&(o.minFractionDigits=i.length),o},stringify:t.stringifyNumber},A=s.concat([u,d,p,f,_,m,h,g]),y=e=>"bigint"==typeof e||Number.isInteger(e),v=({value:e})=>JSON.stringify(e),b=[r,i,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:t.resolveString,stringify:v},{identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:v},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:v},{identify:y,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>t.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>y(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:v}];b.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const C=({value:e})=>e?t.boolOptions.trueStr:t.boolOptions.falseStr,E=e=>"bigint"==typeof e||Number.isInteger(e);function x(e,n,r){let i=n.replace(/_/g,"");if(t.intOptions.asBigInt){switch(r){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`}const t=BigInt(i);return"-"===e?BigInt(-1)*t:t}const o=parseInt(i,r);return"-"===e?-1*o:o}function S(e,n,r){const{value:i}=e;if(E(i)){const e=i.toString(n);return i<0?"-"+r+e.substr(1):r+e}return t.stringifyNumber(e)}const k=s.concat([{identify:e=>null==e,createNode:(e,n,r)=>r.wrapScalars?new t.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:t.nullOptions,stringify:()=>t.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:t.boolOptions,stringify:C},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:t.boolOptions,stringify:C},{identify:E,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>x(t,n,2),stringify:e=>S(e,2,"0b")},{identify:E,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>x(t,n,8),stringify:e=>S(e,8,"0")},{identify:E,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>x(t,n,10),stringify:t.stringifyNumber},{identify:E,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>x(t,n,16),stringify:e=>S(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:t.stringifyNumber},{identify:e=>"number"==typeof e,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:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,n){const r=new t.Scalar(parseFloat(e.replace(/_/g,"")));if(n){const e=n.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:t.stringifyNumber}],n.binary,n.omap,n.pairs,n.set,n.intTime,n.floatTime,n.timestamp),D={core:A,failsafe:s,json:b,yaml11:k},w={binary:n.binary,bool:d,float:g,floatExp:h,floatNaN:m,floatTime:n.floatTime,int:f,intHex:_,intOct:p,intTime:n.intTime,map:r,null:u,omap:n.omap,pairs:n.pairs,seq:i,set:n.set,timestamp:n.timestamp};function I(e,n,o){if(e instanceof t.Node)return e;const{defaultPrefix:s,onTagObj:a,prevObjects:c,schema:l,wrapScalars:u}=o;n&&n.startsWith("!!")&&(n=s+n.slice(2));let d=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,n,l.tags);if(!d){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return u?new t.Scalar(e):e;d=e instanceof Map?r:e[Symbol.iterator]?i:r}a&&(a(d),delete o.onTagObj);const p={value:void 0,node:void 0};if(e&&"object"==typeof e&&c){const n=c.get(e);if(n){const e=new t.Alias(n);return o.aliasNodes.push(e),e}p.value=e,c.set(e,p)}return p.node=d.createNode?d.createNode(o.schema,e,o):u?new t.Scalar(e):e,n&&p.node instanceof t.Node&&(p.node.tag=n),p.node}const T=(e,t)=>e.keyt.key?1:0;class F{constructor({customTags:e,merge:t,schema:r,sortMapEntries:i,tags:o}){this.merge=!!t,this.name=r,this.sortMapEntries=!0===i?T:i||null,!e&&o&&n.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let i=e[r.replace(/\W/g,"")];if(!i){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)i=i.concat(e);else"function"==typeof n&&(i=n(i.slice()));for(let e=0;eJSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}i[e]=r}}return i}(D,w,e||o,r)}createNode(e,t,n,r){const i={defaultPrefix:F.defaultPrefix,schema:this,wrapScalars:t};return I(e,n,r?Object.assign(r,i):i)}createPair(e,n,r){r||(r={wrapScalars:!0});const i=this.createNode(e,r.wrapScalars,null,r),o=this.createNode(n,r.wrapScalars,null,r);return new t.Pair(i,o)}}return e._defineProperty(F,"defaultPrefix",e.defaultTagPrefix),e._defineProperty(F,"defaultTags",e.defaultTags),Schema88e323a7.Schema=F,Schema88e323a7}function requireDocument9b4560a1(){if(hasRequiredDocument9b4560a1)return Document9b4560a1;hasRequiredDocument9b4560a1=1;var e=requirePlainValueEc8e588e(),t=requireResolveSeqD03cb037(),n=requireSchema88e323a7();const r={get binary(){return t.binaryOptions},set binary(e){Object.assign(t.binaryOptions,e)},get bool(){return t.boolOptions},set bool(e){Object.assign(t.boolOptions,e)},get int(){return t.intOptions},set int(e){Object.assign(t.intOptions,e)},get null(){return t.nullOptions},set null(e){Object.assign(t.nullOptions,e)},get str(){return t.strOptions},set str(e){Object.assign(t.strOptions,e)}},i={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:e.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]}};function o(e,t){if("1.0"===(e.version||e.options.version)){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){const r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;const r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function s(e,n,r,i){const{anchors:s,schema:a}=n.doc;let c;if(!(e instanceof t.Node)){const t={aliasNodes:[],onTagObj:e=>c=e,prevObjects:new Map};e=a.createNode(e,!0,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=s.getName(e.source);t||(t=s.newName(),s.map[t]=e.source)}}if(e instanceof t.Pair)return e.toString(n,r,i);c||(c=function(e,n){if(n instanceof t.Alias)return t.Alias;if(n.tag){const t=e.filter((e=>e.tag===n.tag));if(t.length>0)return t.find((e=>e.format===n.format))||t[0]}let r,i;if(n instanceof t.Scalar){i=n.value;const t=e.filter((e=>e.identify&&e.identify(i)||e.class&&i instanceof e.class));r=t.find((e=>e.format===n.format))||t.find((e=>!e.format))}else i=n,r=e.find((e=>e.nodeClass&&i instanceof e.nodeClass));if(!r){const e=i&&i.constructor?i.constructor.name:typeof i;throw new Error(`Tag not resolved for ${e} value`)}return r}(a.tags,e));const l=function(e,t,{anchors:n,doc:r}){const i=[],s=r.anchors.getName(e);return s&&(n[s]=e,i.push(`&${s}`)),e.tag?i.push(o(r,e.tag)):t.default||i.push(o(r,t.tag)),i.join(" ")}(e,c,n);l.length>0&&(n.indentAtStart=(n.indentAtStart||0)+l.length+1);const u="function"==typeof c.stringify?c.stringify(e,n,r,i):e instanceof t.Scalar?t.stringifyString(e,n,r,i):e.toString(n,r,i);return l?e instanceof t.Scalar||"{"===u[0]||"["===u[0]?`${l} ${u}`:`${l}\n${n.indent}${u}`:u}class a{static validAnchorNode(e){return e instanceof t.Scalar||e instanceof t.YAMLSeq||e instanceof t.YAMLMap}constructor(t){e._defineProperty(this,"map",Object.create(null)),this.prefix=t}createAlias(e,n){return this.setAnchor(e,n),new t.Alias(e)}createMergePair(...e){const n=new t.Merge;return n.value.items=e.map((e=>{if(e instanceof t.Alias){if(e.source instanceof t.YAMLMap)return e}else if(e instanceof t.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),n}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!a.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const c=(e,n)=>{if(e&&"object"==typeof e){const{tag:r}=e;e instanceof t.Collection?(r&&(n[r]=!0),e.items.forEach((e=>c(e,n)))):e instanceof t.Pair?(c(e.key,n),c(e.value,n)):e instanceof t.Scalar&&r&&(n[r]=!0)}return n};function l({tagPrefixes:t},n){const[r,i]=n.parameters;if(!r||!i){const t="Insufficient parameters given for %TAG directive";throw new e.YAMLSemanticError(n,t)}if(t.some((e=>e.handle===r))){const t="The %TAG directive must only be given at most once per handle in the same document.";throw new e.YAMLSemanticError(n,t)}return{handle:r,prefix:i}}function u(t,n){let[r]=n.parameters;if("YAML:1.0"===n.name&&(r="1.0"),!r){const t="Insufficient parameters given for %YAML directive";throw new e.YAMLSemanticError(n,t)}if(!i[r]){const i=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${r}`;t.warnings.push(new e.YAMLWarning(n,i))}return r}function d(e){if(e instanceof t.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}class p{constructor(e){this.anchors=new a(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return d(this.contents),this.contents.add(e)}addIn(e,t){d(this.contents),this.contents.addIn(e,t)}delete(e){return d(this.contents),this.contents.delete(e)}deleteIn(e){return t.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(d(this.contents),this.contents.deleteIn(e))}getDefaults(){return p.defaults[this.version]||p.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof t.Collection?this.contents.get(e,n):void 0}getIn(e,n){return t.isEmptyPath(e)?!n&&this.contents instanceof t.Scalar?this.contents.value:this.contents:this.contents instanceof t.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof t.Collection&&this.contents.has(e)}hasIn(e){return t.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof t.Collection&&this.contents.hasIn(e)}set(e,t){d(this.contents),this.contents.set(e,t)}setIn(e,n){t.isEmptyPath(e)?this.contents=n:(d(this.contents),this.contents.setIn(e,n))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const r=Object.assign({},this.getDefaults(),this.options);this.schema=new n.Schema(r)}parse(n,r){this.options.keepCstNodes&&(this.cstNode=n),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:i=[],contents:o=[],directivesEndMarker:s,error:a,valueRange:c}=n;if(a&&(a.source||(a.source=this),this.errors.push(a)),function(t,n,r){const i=[];let o=!1;for(const r of n){const{comment:n,name:s}=r;switch(s){case"TAG":try{t.tagPrefixes.push(l(t,r))}catch(e){t.errors.push(e)}o=!0;break;case"YAML":case"YAML:1.0":if(t.version){const n="The %YAML directive must only be given at most once per document.";t.errors.push(new e.YAMLSemanticError(r,n))}try{t.version=u(t,r)}catch(e){t.errors.push(e)}o=!0;break;default:if(s){const n=`YAML only supports %TAG and %YAML directives, and not %${s}`;t.warnings.push(new e.YAMLWarning(r,n))}}n&&i.push(n)}if(r&&!o&&"1.1"===(t.version||r.version||t.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});t.tagPrefixes=r.tagPrefixes.map(e),t.version=r.version}t.commentBefore=i.join("\n")||null}(this,i,r),s&&(this.directivesEndMarker=!0),this.range=c?[c.start,c.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(n,r){const i={before:[],after:[]};let o,s=!1;for(const a of r)if(a.valueRange){if(void 0!==o){const t="Document contains trailing content not separated by a ... or --- line";n.errors.push(new e.YAMLSyntaxError(a,t));break}const r=t.resolveNode(n,a);s&&(r.spaceBefore=!0,s=!1),o=r}else null!==a.comment?(void 0===o?i.before:i.after).push(a.comment):a.type===e.Type.BLANK_LINE&&(s=!0,void 0===o&&i.before.length>0&&!n.commentBefore&&(n.commentBefore=i.before.join("\n"),i.before=[]));if(n.contents=o||null,o){const e=i.before.join("\n");if(e){const n=o instanceof t.Collection&&o.items[0]?o.items[0]:o;n.commentBefore=n.commentBefore?`${e}\n${n.commentBefore}`:e}n.comment=i.after.join("\n")||null}else n.comment=i.before.concat(i.after).join("\n")||null}(this,o),this.anchors.resolveNodes(),this.options.prettyErrors){for(const t of this.errors)t instanceof e.YAMLError&&t.makePretty();for(const t of this.warnings)t instanceof e.YAMLError&&t.makePretty()}return this}listNonDefaultTags(){return(e=>Object.keys(c(e,{})))(this.contents).filter((e=>0!==e.indexOf(n.Schema.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,n){const{keepBlobsInJSON:r,mapAsMap:i,maxAliasCount:o}=this.options,a=r&&("string"!=typeof e||!(this.contents instanceof t.Scalar)),c={doc:this,indentStep:" ",keep:a,mapAsMap:a&&!!i,maxAliasCount:o,stringify:s},l=Object.keys(this.anchors.map);l.length>0&&(c.anchors=new Map(l.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));const u=t.toJSON(this.contents,e,c);if("function"==typeof n&&c.anchors)for(const{count:e,res:t}of c.anchors.values())n(t,e);return u}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const n=[];let r=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),n.push(e),r=!0}const i=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:t})=>{i.some((e=>0===e.indexOf(t)))&&(n.push(`%TAG ${e} ${t}`),r=!0)})),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&(!r&&this.directivesEndMarker||n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));const o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:s};let a=!1,c=null;if(this.contents){this.contents instanceof t.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,c=this.contents.comment);const e=c?null:()=>a=!0,i=s(this.contents,o,(()=>c=null),e);n.push(t.addComment(i,"",c))}else void 0!==this.contents&&n.push(s(this.contents,o));return this.comment&&(a&&!c||""===n[n.length-1]||n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join("\n")+"\n"}}return e._defineProperty(p,"defaults",i),Document9b4560a1.Document=p,Document9b4560a1.defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Document9b4560a1.scalarOptions=r,Document9b4560a1}function requireDist$1(){if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=1;var e=requireParseCst(),t=requireDocument9b4560a1(),n=requireSchema88e323a7(),r=requirePlainValueEc8e588e(),i=requireWarnings1000a372();requireResolveSeqD03cb037();class o extends t.Document{constructor(e){super(Object.assign({},t.defaultOptions,e))}}function s(t,n){const i=e.parse(t),s=new o(n).parse(i[0]);if(i.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new r.YAMLSemanticError(i[1],e))}return s}const a={createNode:function(e,r=!0,i){void 0===i&&"string"==typeof r&&(i=r,r=!0);const o=Object.assign({},t.Document.defaults[t.defaultOptions.version],t.defaultOptions);return new n.Schema(o).createNode(e,r,i)},defaultOptions:t.defaultOptions,Document:o,parse:function(e,t){const n=s(e,t);if(n.warnings.forEach((e=>i.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(t,n){const r=[];let i;for(const s of e.parse(t)){const e=new o(n);e.parse(s,i),r.push(e),i=e}return r},parseCST:e.parse,parseDocument:s,scalarOptions:t.scalarOptions,stringify:function(e,t){const n=new o(t);return n.contents=e,String(n)}};return dist$1.YAML=a,dist$1}function requireYaml(){return hasRequiredYaml?yaml:(hasRequiredYaml=1,yaml=requireDist$1().YAML)}function requireJptr(){if(hasRequiredJptr)return jptr_1;function e(e){return e.replace(/\~1/g,"/").replace(/~0/g,"~")}return hasRequiredJptr=1,jptr_1={jptr:function(t,n,r){if(void 0===t)return!1;if(!n||"string"!=typeof n||"#"===n)return void 0!==r?r:t;if(n.indexOf("#")>=0){let e=n.split("#");if(e[0])return!1;n=e[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));let i=n.split("/");for(let n=0;n0?i[n-1]:"",-1!=s||t&&t.hasOwnProperty(i[n]))if(s>=0)o&&(t[s]=r),t=t[s];else{if(-2===s)return o?(Array.isArray(t)&&t.push(r),r):void 0;o&&(t[i[n]]=r),t=t[i[n]]}else{if(void 0===r||"object"!=typeof t||Array.isArray(t))return!1;t[i[n]]=o?r:"0"===i[n+1]||"-"===i[n+1]?[]:{},t=t[i[n]]}}return t},jpescape:function(e){return e.replace(/\~/g,"~0").replace(/\//g,"~1")},jpunescape:e},jptr_1}function requireIsref(){if(hasRequiredIsref)return isref;return hasRequiredIsref=1,isref={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}}function requireClone(){if(hasRequiredClone)return clone_1;return hasRequiredClone=1,clone_1={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},deepClone:function e(t){let n=Array.isArray(t)?[]:{};for(let r in t)(t.hasOwnProperty(r)||Array.isArray(t))&&(n[r]="object"==typeof t[r]?e(t[r]):t[r]);return n},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,n){if(n||(n=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(n.has(t))return n.get(t);try{var r=new t.constructor}catch(e){r=Object.create(Object.getPrototypeOf(t))}return n.set(t,r),Object.assign(r,...Object.keys(t).map((r=>({[r]:e(t[r],n)}))))}},clone_1}function requireRecurse(){if(hasRequiredRecurse)return recurse_1;hasRequiredRecurse=1;const e=requireJptr().jpescape;return recurse_1={recurse:function t(n,r,i){if(r||(r={depth:0}),r.depth||(r=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},r)),"object"!=typeof n)return;let o=r.path;for(let s in n){if(r.key=s,r.path=r.path+"/"+encodeURIComponent(e(s)),r.identityPath=r.seen.get(n[s]),r.identity=void 0!==r.identityPath,n.hasOwnProperty(s)&&i(n,s,r),"object"==typeof n[s]&&!r.identity){r.identityDetection&&!Array.isArray(n[s])&&null!==n[s]&&r.seen.set(n[s],r.path);let e={};e.parent=n,e.path=r.path,e.depth=r.depth?r.depth+1:1,e.pkey=s,e.payload=r.payload,e.seen=r.seen,e.identity=!1,e.identityDetection=r.identityDetection,t(n[s],e,i)}r.path=o}}},recurse_1}function requireDereference(){if(hasRequiredDereference)return dereference_1;hasRequiredDereference=1;const e=requireRecurse().recurse,t=requireClone().shallowClone,n=requireJptr().jptr,r=requireIsref().isRef;return dereference_1={dereference:function i(o,s,a){a||(a={}),a.cache||(a.cache={}),a.state||(a.state={}),a.state.identityDetection=!0,a.depth=a.depth?a.depth+1:1;let c=a.depth>1?o:t(o),l={data:c},u=a.depth>1?s:t(s);a.master||(a.master=c);let d=function(e){return e&&e.verbose?{warn:function(){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}:{warn:function(){}}}(a),p=1;for(;p>0;)p=0,e(l,a.state,(function(e,t,o){if(r(e,t)){let r=e[t];if(p++,a.cache[r]){let e=a.cache[r];if(e.resolved)d.warn("Patching %s for %s",r,e.path),o.parent[o.pkey]=e.data,a.$ref&&"object"==typeof o.parent[o.pkey]&&null!==o.parent[o.pkey]&&(o.parent[o.pkey][a.$ref]=r);else{if(r===e.path)throw new Error(`Tight circle at ${e.path}`);d.warn("Unresolved ref"),o.parent[o.pkey]=n(e.source,e.path),!1===o.parent[o.pkey]&&(o.parent[o.pkey]=n(e.source,e.key)),a.$ref&&"object"==typeof o.parent[o.pkey]&&null!==o.parent[o.pkey]&&(o.parent[a.$ref]=r)}}else{let e={};e.path=o.path.split("/$ref")[0],e.key=r,d.warn("Dereffing %s at %s",r,e.path),e.source=u,e.data=n(e.source,e.key),!1===e.data&&(e.data=n(a.master,e.key),e.source=a.master),!1===e.data&&d.warn("Missing $ref target",e.key),a.cache[r]=e,e.data=o.parent[o.pkey]=i(n(e.source,e.key),e.source,a),a.$ref&&"object"==typeof o.parent[o.pkey]&&null!==o.parent[o.pkey]&&(o.parent[o.pkey][a.$ref]=r),e.resolved=!0}}}));return l.data}},dereference_1}function requireFastSafeStringify(){if(hasRequiredFastSafeStringify)return fastSafeStringify;hasRequiredFastSafeStringify=1,fastSafeStringify=o,o.default=o,o.stable=l,o.stableStringify=l;var e="[...]",t="[Circular]",n=[],r=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,o,s){var c;void 0===s&&(s=i()),a(e,"",0,[],void 0,0,s);try{c=0===r.length?JSON.stringify(e,t,o):JSON.stringify(e,d(t),o)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function s(e,t,i,o){var s=Object.getOwnPropertyDescriptor(o,i);void 0!==s.get?s.configurable?(Object.defineProperty(o,i,{value:e}),n.push([o,i,t,s])):r.push([t,i,e]):(o[i]=e,n.push([o,i,t]))}function a(n,r,i,o,c,l,u){var d;if(l+=1,"object"==typeof n&&null!==n){for(d=0;du.depthLimit)return void s(e,n,r,c);if(void 0!==u.edgesLimit&&i+1>u.edgesLimit)return void s(e,n,r,c);if(o.push(n),Array.isArray(n))for(d=0;dt?1:0}function l(e,t,o,s){void 0===s&&(s=i());var a,c=u(e,"",0,[],void 0,0,s)||e;try{a=0===r.length?JSON.stringify(c,t,o):JSON.stringify(c,d(t),o)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function u(r,i,o,a,l,d,p){var f;if(d+=1,"object"==typeof r&&null!==r){for(f=0;fp.depthLimit)return void s(e,r,i,l);if(void 0!==p.edgesLimit&&o+1>p.edgesLimit)return void s(e,r,i,l);if(a.push(r),Array.isArray(r))for(f=0;f0)for(var i=0;i1&&console.warn("Replacing with",t),m++}}else{let n=a(o(t,e[r]));if(d.verbose>1&&console.warn((!1===n?u.colour.red:u.colour.green)+"Fragment resolution",e[r],u.colour.normal),!1===n){if(i.parent[i.pkey]={},d.fatal){let t=new Error("Fragment $ref resolution failed "+e[r]);if(!d.promise)throw t;d.promise.reject(t)}}else m++,i.parent[i.pkey]=n,_[e[r]]=i.path.replace("/%24ref","")}else if(f.protocol){let t=n.resolve(c,e[r]).toString();d.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",e[r],"as",t,u.colour.normal),e["x-miro"]=e[r],d.externalRefs[e[r]]&&(d.externalRefs[t]||(d.externalRefs[t]=d.externalRefs[e[r]]),d.externalRefs[t].failed=d.externalRefs[e[r]].failed),e[r]=t}else if(!e["x-miro"]){let t=n.resolve(c,e[r]).toString(),i=!1;d.externalRefs[e[r]]&&(i=d.externalRefs[e[r]].failed),i||(d.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",e[r],"as",t,u.colour.normal),e["x-miro"]=e[r],e[r]=t)}}));return s(e,{},(function(e,t,n){l(e,t)&&void 0!==e.$fixed&&delete e.$fixed})),d.verbose>1&&console.warn("Finished fragment resolution"),e}function p(e,t){if(!t.filters||!t.filters.length)return e;for(let n of t.filters)e=n(e,t);return e}function f(r,s,c,l){var u=n.parse(c.source),f=c.source.split("\\").join("/").split("/");f.pop()||f.pop();let _="",m=s.split("#");m.length>1&&(_="#"+m[1],s=m[0]),f=f.join("/");let h=n.parse(s),g=(A=h.protocol,y=u.protocol,A&&A.length>2?A:y&&y.length>2?y:"file:");var A,y;let v;if(v="file:"===g?t.resolve(f?f+"/":"",s):n.resolve(f?f+"/":"",s),c.cache[v]){c.verbose&&console.warn("CACHED",v,_);let e=a(c.cache[v]),t=c.externalRef=e;if(_&&(t=o(t,_),!1===t&&(t={},c.fatal))){let e=new Error("Cached $ref resolution failed "+v+_);if(!c.promise)throw e;c.promise.reject(e)}return t=d(t,e,s,_,v,c),t=p(t,c),l(a(t),v,c),Promise.resolve(t)}if(c.verbose&&console.warn("GET",v,_),c.handlers&&c.handlers[g])return c.handlers[g](f,s,_,c).then((function(e){return c.externalRef=e,e=p(e,c),c.cache[v]=e,l(e,v,c),e})).catch((function(e){throw c.verbose&&console.warn(e),e}));if(g&&g.startsWith("http")){const e=Object.assign({},c.fetchOptions,{agent:c.agent});return c.fetch(v,e).then((function(e){if(200!==e.status){if(c.ignoreIOErrors)return c.verbose&&console.warn("FAILED",s),c.externalRefs[s].failed=!0,'{"$ref":"'+s+'"}';throw new Error(`Received status code ${e.status}: ${v}`)}return e.text()})).then((function(e){try{let t=i.parse(e,{schema:"core",prettyErrors:!0});if(e=c.externalRef=t,c.cache[v]=a(e),_&&!1===(e=o(e,_))&&(e={},c.fatal)){let e=new Error("Remote $ref resolution failed "+v+_);if(!c.promise)throw e;c.promise.reject(e)}e=p(e=d(e,t,s,_,v,c),c)}catch(e){if(c.verbose&&console.warn(e),!c.promise||!c.fatal)throw e;c.promise.reject(e)}return l(e,v,c),e})).catch((function(e){if(c.verbose&&console.warn(e),c.cache[v]={},!c.promise||!c.fatal)throw e;c.promise.reject(e)}))}{const t='{"$ref":"'+s+'"}';return function(t,n,r,i,o){return new Promise((function(s,a){e.readFile(t,n,(function(e,t){e?r.ignoreIOErrors&&o?(r.verbose&&console.warn("FAILED",i),r.externalRefs[i].failed=!0,s(o)):a(e):s(t)}))}))}(v,c.encoding||"utf8",c,s,t).then((function(e){try{let t=i.parse(e,{schema:"core",prettyErrors:!0});if(e=c.externalRef=t,c.cache[v]=a(e),_&&!1===(e=o(e,_))&&(e={},c.fatal)){let e=new Error("File $ref resolution failed "+v+_);if(!c.promise)throw e;c.promise.reject(e)}e=p(e=d(e,t,s,_,v,c),c)}catch(e){if(c.verbose&&console.warn(e),!c.promise||!c.fatal)throw e;c.promise.reject(e)}return l(e,v,c),e})).catch((function(e){if(c.verbose&&console.warn(e),!c.promise||!c.fatal)throw e;c.promise.reject(e)}))}}function _(e){return new Promise((function(t,n){(function(e){return new Promise((function(t,n){function r(t,n,r){if(t[n]&&l(t[n],"$ref")){let o=t[n].$ref;if(!o.startsWith("#")){let s="";if(!i[o]){let t=Object.keys(i).find((function(e,t,n){return o.startsWith(e+"/")}));t&&(e.verbose&&console.warn("Found potential subschema at",t),s="/"+(o.split("#")[1]||"").replace(t.split("#")[1]||""),s=s.split("/undefined").join(""),o=t)}if(i[o]||(i[o]={resolved:!1,paths:[],extras:{},description:t[n].description}),i[o].resolved)if(i[o].failed);else if(e.rewriteRefs){let r=i[o].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",o,r),t[n]["x-miro"]=o,t[n].$ref=r+s}else t[n]=a(i[o].data);else i[o].paths.push(r.path),i[o].extras[r.path]=s}}}let i=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(i);s(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},r),s(e.openapi.components,{identityDetection:!0,path:"#/components"},r),s(e.openapi,{identityDetection:!0},r),t(i)}))})(e).then((function(t){for(let n in t)if(!t[n].resolved){let r=e.resolver.depth;r>0&&r++,e.resolver.actions[r].push((function(){return f(e.openapi,n,e,(function(e,r,i){if(!t[n].resolved){let o={};o.context=t[n],o.$ref=n,o.original=a(e),o.updated=e,o.source=r,i.externals.push(o),t[n].resolved=!0}let s=Object.assign({},i,{source:"",resolver:{actions:i.resolver.actions,depth:i.resolver.actions.length-1,base:i.resolver.base}});i.patch&&t[n].description&&!e.description&&"object"==typeof e&&(e.description=t[n].description),t[n].data=e;let c=(l=t[n].paths,[...new Set(l)]);var l;c=c.sort((function(e,t){const n=e.startsWith("#/components/")||e.startsWith("#/definitions/"),r=t.startsWith("#/components/")||t.startsWith("#/definitions/");return n&&!r?-1:r&&!n?1:0}));for(let r of c)if(t[n].resolvedAt&&r!==t[n].resolvedAt&&r.indexOf("x-ms-examples/")<0)i.verbose>1&&console.warn("Creating pointer to data at",r),o(i.openapi,r,{$ref:t[n].resolvedAt+t[n].extras[r],"x-miro":n+t[n].extras[r]});else{t[n].resolvedAt?i.verbose>1&&console.warn("Avoiding circular reference"):(t[n].resolvedAt=r,i.verbose>1&&console.warn("Creating initial clone of data at",r));let s=a(e);o(i.openapi,r,s)}0===i.resolver.actions[s.resolver.depth].length&&i.resolver.actions[s.resolver.depth].push((function(){return _(s)}))}))}))}})).catch((function(t){e.verbose&&console.warn(t),n(t)}));let r={options:e};r.actions=e.resolver.actions[e.resolver.depth],t(r)}))}function m(e,t,n){e.resolver.actions.push([]),_(e).then((function(r){var i;(i=r.actions,i.reduce(((e,t)=>e.then((e=>t().then(Array.prototype.concat.bind(e))))),Promise.resolve([]))).then((function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout((function(){m(r.options,t,n)}),0):(e.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),e.openapi=c(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),s(e.openapi,{},(function(t,n,r){l(t,n)&&(e.preserveMiro||delete t["x-miro"])})),t(e))})).catch((function(t){e.verbose&&console.warn(t),n(t)}))})).catch((function(t){e.verbose&&console.warn(t),n(t)}))}function h(e){if(e.cache||(e.cache={}),e.fetch||(e.fetch=r),e.source){let r=n.parse(e.source);(!r.protocol||r.protocol.length<=2)&&(e.source=t.resolve(e.source))}e.externals=[],e.externalRefs={},e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}return oasResolver={optionalResolve:function(e){return h(e),new Promise((function(t,n){e.resolve?m(e,t,n):t(e)}))},resolve:function(e,t,n){return n||(n={}),n.openapi=e,n.source=t,n.resolve=!0,h(n),new Promise((function(e,t){m(n,e,t)}))}},oasResolver}function requireOasSchemaWalker(){if(hasRequiredOasSchemaWalker)return oasSchemaWalker;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}return hasRequiredOasSchemaWalker=1,oasSchemaWalker={getDefaultState:e,walkSchema:function t(n,r,i,o){if(void 0===i.depth&&(i=e()),null==n)return n;if(void 0!==n.$ref){let e={$ref:n.$ref};return i.allowRefSiblings&&n.description&&(e.description=n.description),o(e,r,i),e}if(i.combine&&(n.allOf&&Array.isArray(n.allOf)&&1===n.allOf.length&&delete(n=Object.assign({},n.allOf[0],n)).allOf,n.anyOf&&Array.isArray(n.anyOf)&&1===n.anyOf.length&&delete(n=Object.assign({},n.anyOf[0],n)).anyOf,n.oneOf&&Array.isArray(n.oneOf)&&1===n.oneOf.length&&delete(n=Object.assign({},n.oneOf[0],n)).oneOf),o(n,r,i),i.seen.has(n))return n;if("object"==typeof n&&null!==n&&i.seen.set(n,!0),i.top=!1,i.depth++,void 0!==n.items&&(i.property="items",t(n.items,n,i,o)),n.additionalItems&&"object"==typeof n.additionalItems&&(i.property="additionalItems",t(n.additionalItems,n,i,o)),n.additionalProperties&&"object"==typeof n.additionalProperties&&(i.property="additionalProperties",t(n.additionalProperties,n,i,o)),n.properties)for(let e in n.properties){let r=n.properties[e];i.property="properties/"+e,t(r,n,i,o)}if(n.patternProperties)for(let e in n.patternProperties){let r=n.patternProperties[e];i.property="patternProperties/"+e,t(r,n,i,o)}if(n.allOf)for(let e in n.allOf){let r=n.allOf[e];i.property="allOf/"+e,t(r,n,i,o)}if(n.anyOf)for(let e in n.anyOf){let r=n.anyOf[e];i.property="anyOf/"+e,t(r,n,i,o)}if(n.oneOf)for(let e in n.oneOf){let r=n.oneOf[e];i.property="oneOf/"+e,t(r,n,i,o)}return n.not&&(i.property="not",t(n.not,n,i,o)),i.depth--,n}},oasSchemaWalker}function requireStatusCodes(){if(hasRequiredStatusCodes)return statusCodes;hasRequiredStatusCodes=1;const e=require$$2$1;return statusCodes={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},e.STATUS_CODES)}}var name="swagger2openapi",version="7.0.8",description="Convert Swagger 2.0 definitions to OpenApi 3.0 and validate",main$1="index.js",bin={swagger2openapi:"./swagger2openapi.js","oas-validate":"./oas-validate.js",boast:"./boast.js"},funding="https://github.com/Mermade/oas-kit?sponsor=1",scripts={test:"mocha"},browserify={transform:[["babelify",{presets:["es2015"]}]]},repository={url:"https://github.com/Mermade/oas-kit.git",type:"git"},bugs={url:"https://github.com/mermade/oas-kit/issues"},author="Mike Ralphson ",license="BSD-3-Clause",dependencies={"call-me-maybe":"^1.0.1","node-fetch":"^2.6.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.8","oas-resolver":"^2.5.6","oas-schema-walker":"^1.1.5","oas-validator":"^5.0.8",reftools:"^1.1.9",yaml:"^1.10.0",yargs:"^17.0.1"},keywords=["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],gitHead="b1bba3fc5007e96a991bf2a015cf0534ac36b88b",require$$14={name:name,version:version,description:description,main:main$1,bin:bin,funding:funding,scripts:scripts,browserify:browserify,repository:repository,bugs:bugs,author:author,license:license,dependencies:dependencies,keywords:keywords,gitHead:gitHead},swagger2openapi,hasRequiredSwagger2openapi;function requireSwagger2openapi(){if(hasRequiredSwagger2openapi)return swagger2openapi;hasRequiredSwagger2openapi=1;const e=require$$0$7,t=require$$0$k,n=requireMaybe(),r=require$$4,i=requireYaml(),o=requireJptr(),s=o.jptr,a=requireIsref().isRef,c=requireClone().clone,l=requireClone().circularClone,u=requireRecurse().recurse,d=requireOasResolver(),p=requireOasSchemaWalker(),f=requireOasKitCommon(),_=requireStatusCodes().statusCodes,m=require$$14.version,h="3.0.0";let g;class A extends Error{constructor(e){super(e),this.name="S2OError"}}function y(e,t){let n=new A(e);if(n.options=t,!t.promise)throw n;t.promise.reject(n)}function v(e,t,n){n.warnOnly?t[n.warnProperty||"x-s2o-warning"]=e:y(e,n)}function b(e,t){p.walkSchema(e,{},{},(function(e,n,r){!function(e){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let t in e.discriminator.mapping){let n=e.discriminator.mapping[t];n.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=n.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,n){if(e.nullable&&n.patches++,e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(n.patch){if(n.patches++,0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let t of e.type){let n={};if("null"===t)e.nullable=!0;else{n.type=t;for(let t of f.arrayProperties)void 0!==e.prop&&(n[t]=e[t],delete e[t])}n.type&&e.oneOf.push(n)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&v("Lost properties from oneOf",e,n),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else y("(Patchable) schema type must not be an array",n);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),void 0!==e.allowEmptyValue&&(n.patches++,delete e.allowEmptyValue)}(e,n,t)}))}function C(e,t,n){let r=n.payload.options;if(a(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],n.parent[n.pkey]=c(r.openapi.consumes);else if("#/produces"===e[t])delete e[t],n.parent[n.pkey]=c(r.openapi.produces);else if(e[t].startsWith("#/definitions/")){let n=e[t].replace("#/definitions/","").split("/");const i=o.jpunescape(n[0]);let s=g.schemas[decodeURIComponent(i)];s?n[0]=s:v("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+f.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+f.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let n=c(o.jptr(r.openapi,e[t]));if(!1===n)v("direct $ref not found "+e[t],e,r);else if(r.refmap[e[t]])e[t]=r.refmap[e[t]];else{let i=e[t];i=i.replace("/properties/headers/",""),i=i.replace("/properties/responses/",""),i=i.replace("/properties/parameters/",""),i=i.replace("/properties/schemas/","");let s="schemas",a=i.lastIndexOf("/schema");if(s=i.indexOf("/headers/")>a?"headers":i.indexOf("/responses/")>a?"responses":i.indexOf("/example")>a?"examples":i.indexOf("/x-")>a?"extensions":i.indexOf("/parameters/")>a?"parameters":"schemas","schemas"===s&&b(n,r),"responses"!==s&&"extensions"!==s){let i=s.substr(0,s.length-1);"parameter"===i&&n.name&&n.name===f.sanitise(n.name)&&(i=encodeURIComponent(n.name));let a=1;for(e["x-miro"]&&(i=function(e){return e=e.indexOf("#")>=0?e.split("#")[1].split("/").pop():e.split("/").pop().split(".")[0],encodeURIComponent(f.sanitise(e))}(e["x-miro"]),a="");o.jptr(r.openapi,"#/components/"+s+"/"+i+a);)a=""===a?2:++a;let c="#/components/"+s+"/"+i+a,l="";"examples"===s&&(n={value:n},l="/value"),o.jptr(r.openapi,c,n),r.refmap[e[t]]=c+l,e[t]=c+l}}}if(delete e["x-miro"],Object.keys(e).length>1){const i=e[t],o=n.path.indexOf("/schema")>=0;"preserve"===r.refSiblings||(o&&"allOf"===r.refSiblings?(delete e.$ref,n.parent[n.pkey]={allOf:[{$ref:i},e]}):n.parent[n.pkey]={$ref:i})}}if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let n=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),i=g.schemas[decodeURIComponent(n[0])];i?n[0]=i:v("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}}function E(e){for(let t in e)for(let n in e[t]){let r=f.sanitise(n);n!==r&&(e[t][r]=e[t][n],delete e[t][n])}}function x(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let n={},r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),void 0!==e.authorizationUrl&&(n.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(n.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),n.scopes=e.scopes||{},e.flows={},e.flows[r]=n,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?(t.patches++,delete e.name):y("(Patchable) oauth2 securitySchemes should not have name property",t))}}function S(e){return e&&!e["x-s2o-delete"]}function k(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type&&(e.items.collectionFormat!==e.collectionFormat&&v("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),"array"===e.type?("ssv"===e.collectionFormat?v("collectionFormat:ssv is no longer supported for headers",e,t):"pipes"===e.collectionFormat?v("collectionFormat:pipes is no longer supported for headers",e,t):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(v("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(t.patch?(t.patches++,delete e.collectionFormat):y("(Patchable) collectionFormat is only applicable to header.type array",t)),delete e.type;for(let t of f.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(let t of f.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}}function D(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+f.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&v("Definition used as parameter",e,t)}function w(e,t,n,r,i,o,a){let l,d={},p=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!a.patch)return y("(Patchable) operation.consumes must be an array",a);a.patches++,t.consumes=[t.consumes]}Array.isArray(o.consumes)||delete o.consumes;let _=((t?t.consumes:null)||o.consumes||[]).filter(f.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){D(e,a);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),n=!1,r=o.components.parameters[t];if(r&&!r["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,n=!0),n){let t=e.$ref,n=s(o,e.$ref);!n&&t.startsWith("#/")?v("Could not resolve reference "+t,e,a):n&&(e=n)}}if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(a.patch?(a.patches++,e.type="string"):y("(Patchable) parameter.type is mandatory for non-body parameters",a)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=s(o,e.type.$ref)),"file"===e.type&&(e["x-s2o-originalType"]=e.type,l=e.type),e.description&&"object"==typeof e.description&&e.description.$ref&&(e.description=s(o,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(a.patch?(a.patches++,delete e.collectionFormat):y("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":v("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":v("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===t&&(e.explode=!0),"tsv"===t&&(v("collectionFormat:tsv is no longer supported",e,a),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)v("parameter has array,items and schema",e,a);else{e.schema&&a.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,u(e.schema.items,null,(function(n,r,i){"collectionFormat"===r&&"string"==typeof n[r]&&(t&&n[r]!==t&&v("Nested collectionFormats are not supported",e,a),delete n[r])})));for(let t of f.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&b(e.schema,a),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){p=!1,d.content={};let t="application/x-www-form-urlencoded";if(_.length&&_.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),d.content[t]={},e.schema)d.content[t].schema=e.schema,e.schema.$ref&&(d["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{d.content[t].schema={},d.content[t].schema.type="object",d.content[t].schema.properties={},d.content[t].schema.properties[e.name]={};let n=d.content[t].schema,r=d.content[t].schema.properties[e.name];e.description&&(r.description=e.description),e.example&&(r.example=e.example),e.type&&(r.type=e.type);for(let t of f.parameterTypeProperties)void 0!==e[t]&&(r[t]=e[t]);!0===e.required&&(n.required||(n.required=[]),n.required.push(e.name),d.required=!0),void 0!==e.default&&(r.default=e.default),r.properties&&(r.properties=e.properties),e.allOf&&(r.allOf=e.allOf),"array"===e.type&&e.items&&(r.items=e.items,r.items.collectionFormat&&delete r.items.collectionFormat),"file"!==l&&"file"!==e["x-s2o-originalType"]||(r.type="string",r.format="binary"),I(e,r)}}else e&&"file"===e.type&&(e.required&&(d.required=e.required),d.content={},d.content["application/octet-stream"]={},d.content["application/octet-stream"].schema={},d.content["application/octet-stream"].schema.type="string",d.content["application/octet-stream"].schema.format="binary",I(e,d));if(e&&"body"===e.in){d.content={},e.name&&(d["x-s2o-name"]=(t&&t.operationId?f.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(d.description=e.description),e.required&&(d.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?d["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(d["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),_.length||_.push("application/json");for(let t of _)d.content[t]={},d.content[t].schema=c(e.schema||{}),b(d.content[t].schema,a);I(e,d)}if(Object.keys(d).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&p){t.requestBody["x-s2o-overloaded"]=!0,v("Operation "+(t.operationId||i)+" has multiple requestBodies",t,a)}else t.requestBody||(t=n[r]=function(e,t){let n={};for(let r of Object.keys(e))n[r]=e[r],"parameters"===r&&(n.requestBody={},t.rbname&&(n[t.rbname]=""));return n.requestBody={},n}(t,a)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&d.content["multipart/form-data"]&&d.content["multipart/form-data"].schema&&d.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,d.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(d.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&d.content["application/x-www-form-urlencoded"]&&d.content["application/x-www-form-urlencoded"].schema&&d.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,d.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(d.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,d),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=f.sanitiseAll(t.operationId))));if(e&&!e["x-s2o-delete"]){delete e.type;for(let t of f.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(a.patch?(a.patches++,e.required=!0):y("(Patchable) path parameters must be required:true ["+e.name+" in "+i+"]",a))}return t}function I(e,t){for(let n in e)n.startsWith("x-")&&!n.startsWith("x-s2o")&&(t[n]=e[n])}function T(e,t,n,r,i){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?v("definition used as response: "+e.$ref,e,i):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+f.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((void 0===e.description||null===e.description||""===e.description&&i.patch)&&(i.patch?"object"!=typeof e||Array.isArray(e)||(i.patches++,e.description=_[e]||""):y("(Patchable) response.description is mandatory",i)),void 0!==e.schema){if(b(e.schema,i),e.schema.$ref&&"string"==typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+f.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),n&&n.produces&&"string"==typeof n.produces){if(!i.patch)return y("(Patchable) operation.produces must be an array",i);i.patches++,n.produces=[n.produces]}r.produces&&!Array.isArray(r.produces)&&delete r.produces;let t=((n?n.produces:null)||r.produces||[]).filter(f.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let n of t){if(e.content[n]={},e.content[n].schema=c(e.schema),e.examples&&e.examples[n]){let t={};t.value=e.examples[n],e.content[n].examples={},e.content[n].examples.response=t,delete e.examples[n]}"file"===e.content[n].schema.type&&(e.content[n].schema={type:"string",format:"binary"})}delete e.schema}for(let t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(let t in e.headers)"status code"===t.toLowerCase()?i.patch?(i.patches++,delete e.headers[t]):y('(Patchable) "Status Code" is not a valid header',i):k(e.headers[t],i)}}function F(e,n,r,i,a){for(let l in e){let u=e[l];u&&u["x-trace"]&&"object"==typeof u["x-trace"]&&(u.trace=u["x-trace"],delete u["x-trace"]),u&&u["x-summary"]&&"string"==typeof u["x-summary"]&&(u.summary=u["x-summary"],delete u["x-summary"]),u&&u["x-description"]&&"string"==typeof u["x-description"]&&(u.description=u["x-description"],delete u["x-description"]),u&&u["x-servers"]&&Array.isArray(u["x-servers"])&&(u.servers=u["x-servers"],delete u["x-servers"]);for(let e in u)if(f.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let d=u[e];if(d&&d.parameters&&Array.isArray(d.parameters)){if(u.parameters)for(let t of u.parameters){"string"==typeof t.$ref&&(D(t,r),t=s(a,t.$ref)),d.parameters.find((function(e,n,r){return e.name===t.name&&e.in===t.in}))||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(d=w(t,d,u,e,l,a,r),r.rbname&&""===d[r.rbname]&&delete d[r.rbname])}for(let t of d.parameters)d=w(t,d,u,e,e+":"+l,a,r);r.rbname&&""===d[r.rbname]&&delete d[r.rbname],r.debug||d.parameters&&(d.parameters=d.parameters.filter(S))}if(d&&d.security&&E(d.security),"object"==typeof d){if(!d.responses){let e={description:"Default response"};d.responses={default:e}}for(let e in d.responses){T(d.responses[e],0,d,a,r)}}if(d&&d["x-servers"]&&Array.isArray(d["x-servers"]))d.servers=d["x-servers"],delete d["x-servers"];else if(d&&d.schemes&&d.schemes.length)for(let e of d.schemes)if((!a.schemes||a.schemes.indexOf(e)<0)&&(d.servers||(d.servers=[]),Array.isArray(a.servers)))for(let n of a.servers){let r=c(n),i=t.parse(r.url);i.protocol=e,r.url=i.format(),d.servers.push(r)}if(r.debug&&(d["x-s2o-consumes"]=d.consumes||[],d["x-s2o-produces"]=d.produces||[]),d){if(delete d.consumes,delete d.produces,delete d.schemes,d["x-ms-examples"]){for(let e in d["x-ms-examples"]){let t=d["x-ms-examples"][e],n=f.sanitiseAll(e);if(t.parameters)for(let n in t.parameters){let r=t.parameters[n];for(let t of(d.parameters||[]).concat(u.parameters||[]))t.$ref&&(t=o.jptr(a,t.$ref)),t.name!==n||t.example||(t.examples||(t.examples={}),t.examples[e]={value:r})}if(t.responses)for(let r in t.responses){if(t.responses[r].headers)for(let e in t.responses[r].headers){let n=t.responses[r].headers[e];for(let t in d.responses[r].headers)if(t===e){d.responses[r].headers[t].example=n}}if(t.responses[r].body&&(a.components.examples[n]={value:c(t.responses[r].body)},d.responses[r]&&d.responses[r].content))for(let t in d.responses[r].content){let i=d.responses[r].content[t];i.examples||(i.examples={}),i.examples[e]={$ref:"#/components/examples/"+n}}}}delete d["x-ms-examples"]}if(d.parameters&&0===d.parameters.length&&delete d.parameters,d.requestBody){let t=d.operationId?f.sanitiseAll(d.operationId):f.sanitiseAll(e+l).toCamelCase(),r=f.sanitise(d.requestBody["x-s2o-name"]||t||"");delete d.requestBody["x-s2o-name"];let s=JSON.stringify(d.requestBody),a=f.hash(s);if(!i[a]){let e={};e.name=r,e.body=d.requestBody,e.refs=[],i[a]=e}let c="#/"+n+"/"+encodeURIComponent(o.jpescape(l))+"/"+e+"/requestBody";i[a].refs.push(c)}}}if(u&&u.parameters){for(let e in u.parameters){w(u.parameters[e],null,u,null,l,a,r)}!r.debug&&Array.isArray(u.parameters)&&(u.parameters=u.parameters.filter(S))}}}function R(e,t){let n={};g={schemas:{}},e.security&&E(e.security);for(let n in e.components.securitySchemes){let r=f.sanitise(n);n!==r&&(e.components.securitySchemes[r]&&y("Duplicate sanitised securityScheme name "+r,t),e.components.securitySchemes[r]=e.components.securitySchemes[n],delete e.components.securitySchemes[n]),x(e.components.securitySchemes[r],t)}for(let n in e.components.schemas){let r=f.sanitiseAll(n),i="";if(n!==r){for(;e.components.schemas[r+i];)i=i?++i:2;e.components.schemas[r+i]=e.components.schemas[n],delete e.components.schemas[n]}g.schemas[n]=r+i,b(e.components.schemas[r+i],t)}t.refmap={},u(e,{payload:{options:t}},C),function(e,t){for(let n in t.refmap)o.jptr(e,n,{$ref:t.refmap[n]})}(e,t);for(let n in e.components.parameters){let r=f.sanitise(n);n!==r&&(e.components.parameters[r]&&y("Duplicate sanitised parameter name "+r,t),e.components.parameters[r]=e.components.parameters[n],delete e.components.parameters[n]),w(e.components.parameters[r],null,null,null,r,e,t)}for(let n in e.components.responses){let r=f.sanitise(n);n!==r&&(e.components.responses[r]&&y("Duplicate sanitised response name "+r,t),e.components.responses[r]=e.components.responses[n],delete e.components.responses[n]);let i=e.components.responses[r];if(T(i,0,null,e,t),i.headers)for(let e in i.headers)"status code"===e.toLowerCase()?t.patch?(t.patches++,delete i.headers[e]):y('(Patchable) "Status Code" is not a valid header',t):k(i.headers[e],t)}for(let t in e.components.requestBodies){let r=e.components.requestBodies[t],i=JSON.stringify(r),o=f.hash(i),s={};s.name=t,s.body=r,s.refs=[],n[o]=s}if(F(e.paths,"paths",t,n,e),e["x-ms-paths"]&&F(e["x-ms-paths"],"x-ms-paths",t,n,e),!t.debug)for(let t in e.components.parameters){e.components.parameters[t]["x-s2o-delete"]&&delete e.components.parameters[t]}t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let r=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let i in n){let s=n[i];if(s.refs.length>1){let n="";for(s.name||(s.name="requestBody",n=t++);r.indexOf(s.name+n)>=0;)n=n?++n:2;s.name=s.name+n,r.push(s.name),e.components.requestBodies[s.name]=c(s.body);for(let t in s.refs){let n={};n.$ref="#/components/requestBodies/"+s.name,o.jptr(e,s.refs[t],n)}}}}return e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components,e}function P(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,(function(t,n){e.variables||(e.variables={}),e.variables[n]={default:"unknown"}})),e):e}function N(e,t,n){if(void 0===e.info||null===e.info){if(!t.patch)return n(new A("(Patchable) info object is mandatory"));t.patches++,e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return n(new A("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return n(new A("(Patchable) info.title cannot be null"));t.patches++,e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return n(new A("(Patchable) info.version cannot be null"));t.patches++,e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return n(new A("(Patchable) info.version must be a string"));t.patches++,e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return n(new A("(Patchable) info should not have logo property"));t.patches++,e.info["x-logo"]=e.info.logo,delete e.info.logo}if(void 0!==e.info.termsOfService){if(null===e.info.termsOfService){if(!t.patch)return n(new A("(Patchable) info.termsOfService cannot be null"));t.patches++,e.info.termsOfService=""}try{new URL(e.info.termsOfService)}catch(r){if(!t.patch)return n(new A("(Patchable) info.termsOfService must be a URL"));t.patches++,delete e.info.termsOfService}}}function B(e,t,n){if(void 0===e.paths){if(!t.patch)return n(new A("(Patchable) paths object is mandatory"));t.patches++,e.paths={}}}function O(e,t,r){return n(r,new Promise((function(n,r){if(e||(e={}),t.original=e,t.text||(t.text=i.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=n,t.promise.reject=r,t.patches=0,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),function(e,t){const n=new WeakSet;u(e,{identityDetection:!0},(function(e,r,i){"object"==typeof e[r]&&null!==e[r]&&(n.has(e[r])?t.anchors?e[r]=c(e[r]):y("YAML anchor or merge key at "+i.path,t):n.add(e[r]))}))}(e,t),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=l(e),N(t.openapi,t,r),B(t.openapi,t,r),void d.optionalResolve(t).then((function(){return t.direct?n(t.openapi):n(t)})).catch((function(e){console.warn(e),r(e)}));if(!e.swagger||"2.0"!=e.swagger)return r(new A("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi="string"==typeof t.targetVersion&&t.targetVersion.startsWith("3.")?t.targetVersion:h,t.origin){o["x-origin"]||(o["x-origin"]=[]);let n={};n.url=t.source||t.origin,n.format="swagger",n.version=e.swagger,n.converter={},n.converter.url="https://github.com/mermade/oas-kit",n.converter.version=m,o["x-origin"].push(n)}if(o=Object.assign(o,l(e)),delete o.swagger,u(o,{},(function(e,t,n){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&n.path.indexOf("/example")<0&&delete e[t]})),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let n={},r=(e.basePath||"").replace(/\/$/,"");n.url=(t?t+":":"")+"//"+e.host+r,P(n),o.servers||(o.servers=[]),o.servers.push(n)}else if(e.basePath){let t={};t.url=e.basePath,P(t),o.servers||(o.servers=[]),o.servers.push(t)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let t=e["x-ms-parameterized-host"],n={};n.url=t.hostTemplate+(e.basePath?e.basePath:""),n.variables={};const r=n.url.match(/\{\w+\}/g);for(let e in t.parameters){let i=t.parameters[e];i.$ref&&(i=c(s(o,i.$ref))),e.startsWith("x-")||(delete i.required,delete i.type,delete i.in,void 0===i.default&&(i.enum?i.default=i.enum[0]:i.default="none"),i.name||(i.name=r[e].replace("{","").replace("}","")),n.variables[i.name]=i,delete i.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(n):e.schemes.forEach((e=>{o.servers.push(Object.assign({},n,{url:e+"://"+n.url}))})),delete o["x-ms-parameterized-host"]}N(o,t,r),B(o,t,r),"string"==typeof o.consumes&&(o.consumes=[o.consumes]),"string"==typeof o.produces&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,d.optionalResolve(t).then((function(){R(t.openapi,t),t.direct?n(t.openapi):n(t)})).catch((function(e){console.warn(e),r(e)}))})))}function q(e,t,r){return n(r,new Promise((function(n,r){let o=null,s=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(n){s=n;try{o=i.parse(e,{schema:"core",prettyErrors:!0}),t.sourceYaml=!0,t.text=e}catch(e){s=e}}o?O(o,t).then((e=>n(e))).catch((e=>r(e))):r(new A(s?s.message:"Could not parse string"))})))}return swagger2openapi={S2OError:A,targetVersion:h,convert:O,convertObj:O,convertUrl:function(e,t,i){return n(i,new Promise((function(n,i){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),t.fetch||(t.fetch=r);const o=Object.assign({},t.fetchOptions,{agent:t.agent});t.fetch(e,o).then((function(t){if(200!==t.status)throw new A(`Received status code ${t.status}: ${e}`);return t.text()})).then((function(e){q(e,t).then((e=>n(e))).catch((e=>i(e)))})).catch((function(e){i(e)}))})))},convertStr:q,convertFile:function(t,r,i){return n(i,new Promise((function(n,i){e.readFile(t,r.encoding||"utf8",(function(e,o){e?i(e):(r.sourceFile=t,q(o,r).then((e=>n(e))).catch((e=>i(e))))}))})))},convertStream:function(e,t,r){return n(r,new Promise((function(n,r){let i="";e.on("data",(function(e){i+=e})).on("end",(function(){q(i,t).then((e=>n(e))).catch((e=>r(e)))}))})))}},swagger2openapi}var swagger2openapiExports=requireSwagger2openapi(),converter=getDefaultExportFromCjs(swagger2openapiExports),OASNormalize=class e{constructor(e,t){this.file=e,this.opts={colorizeErrors:!1,enablePaths:!1,...t},this.type=getType(this.file),this.cache={load:!1,bundle:!1,deref:!1}}async load(){if(this.cache.load)return Promise.resolve(this.cache.load);const e=e=>{const t=stringToJSON(e);return this.cache.load=t,Promise.resolve(t)};switch(this.type){case"json":case"string-json":case"string-yaml":return e(this.file);case"buffer":return e(this.file.toString());case"url":return e(await fetch(normalizeURL(this.file)).then((e=>e.text())));case"path":if(!this.opts.enablePaths)return Promise.reject(new Error("Use `opts.enablePaths` to enable accessing local files."));const t=fs$6.readFileSync(this.file).toString();return t.trim()?e(t):Promise.reject(new Error("No file contents found."));default:return Promise.reject(new Error("Could not load this file."))}}static async convertPostmanToOpenAPI(e){return postmanToOpenAPI(JSON.stringify(e),void 0,{outputFormat:"json",replaceVars:!0}).then(JSON.parse)}async bundle(){return this.cache.bundle?Promise.resolve(this.cache.bundle):this.load().then((t=>isPostman(t)?e.convertPostmanToOpenAPI(t):t)).then((e=>openapiParser.bundle(e))).then((e=>(this.cache.bundle=e,e)))}async deref(){return this.cache.deref?Promise.resolve(this.cache.deref):this.load().then((t=>isPostman(t)?e.convertPostmanToOpenAPI(t):t)).then((e=>openapiParser.dereference(e))).then((e=>(this.cache.deref=e,e)))}async validate(t={convertToLatest:!1}){const n=t.convertToLatest,r=t.parser||{};return r.validate||(r.validate={}),r.validate.colorizeErrors=this.opts.colorizeErrors,this.load().then((async t=>isPostman(t)?e.convertPostmanToOpenAPI(t):t)).then((async e=>{if(!isSwagger(e)&&!isOpenAPI(e))return Promise.reject(new Error("The supplied API definition is unsupported."));if(isSwagger(e)){if(1===parseInt(e.swagger,10))return Promise.reject(new Error("Swagger v1.2 is unsupported."))}const t=JSON.parse(JSON.stringify(e));return openapiParser.validate(t,r).then((()=>!n||isOpenAPI(e)?e:converter.convertObj(e,{anchors:!0}).then((e=>e.openapi)))).catch((e=>Promise.reject(e)))}))}async version(){return this.load().then((e=>{switch(getAPIDefinitionType(e)){case"openapi":return{specification:"openapi",version:e.openapi};case"postman":let t="unknown";if(e?.info?.schema){const n=(e?.info).schema.match(/http(s?):\/\/schema.getpostman.com\/json\/collection\/v([0-9.]+)\//);n&&(t=n[2])}return{specification:"postman",version:t};case"swagger":return{specification:"swagger",version:e.swagger};default:throw new Error("Unknown file detected.")}}))}};const copyProperty=(e,t,n,r)=>{if("length"===n||"prototype"===n)return;if("arguments"===n||"caller"===n)return;const i=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);!canCopyProperty(i,o)&&r||Object.defineProperty(e,n,o)},canCopyProperty=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},changePrototype=(e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},wrappedToString=(e,t)=>`/* Wrapped ${e}*/\n${t}`,toStringDescriptor=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),toStringName=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),changeToString=(e,t,n)=>{const r=""===n?"":`with ${n.trim()}() `,i=wrappedToString.bind(null,r,t.toString());Object.defineProperty(i,"name",toStringName);const{writable:o,enumerable:s,configurable:a}=toStringDescriptor;Object.defineProperty(e,"toString",{value:i,writable:o,enumerable:s,configurable:a})};function mimicFunction(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:r}=e;for(const r of Reflect.ownKeys(t))copyProperty(e,t,r,n);return changePrototype(e,t),changeToString(e,t,r),e}const calledFunctions=new WeakMap,onetime=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,r=0;const i=e.displayName||e.name||"",o=function(...s){if(calledFunctions.set(o,++r),1===r)n=e.apply(this,s),e=void 0;else if(!0===t.throw)throw new Error(`Function \`${i}\` can only be called once`);return n};return mimicFunction(o,e),calledFunctions.set(o,r),o};onetime.callCount=e=>{if(!calledFunctions.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return calledFunctions.get(e)};const signals=[];signals.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&signals.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&signals.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const processOk=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,kExitEmitter=Symbol.for("signal-exit emitter"),global$1=globalThis,ObjectDefineProperty=Object.defineProperty.bind(Object);class Emitter{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(global$1[kExitEmitter])return global$1[kExitEmitter];ObjectDefineProperty(global$1,kExitEmitter,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const n=this.listeners[e],r=n.indexOf(t);-1!==r&&(0===r&&1===n.length?n.length=0:n.splice(r,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(const i of this.listeners[e])r=!0===i(t,n)||r;return"exit"===e&&(r=this.emit("afterExit",t,n)||r),r}}class SignalExitBase{}const signalExitWrap=e=>({onExit:(t,n)=>e.onExit(t,n),load:()=>e.load(),unload:()=>e.unload()});class SignalExitFallback extends SignalExitBase{onExit(){return()=>{}}load(){}unload(){}}class SignalExit extends SignalExitBase{#F="win32"===process$1.platform?"SIGINT":"SIGHUP";#R=new Emitter;#P;#N;#B;#O={};#q=!1;constructor(e){super(),this.#P=e,this.#O={};for(const t of signals)this.#O[t]=()=>{const n=this.#P.listeners(t);let{count:r}=this.#R;const i=e;if("object"==typeof i.__signal_exit_emitter__&&"number"==typeof i.__signal_exit_emitter__.count&&(r+=i.__signal_exit_emitter__.count),n.length===r){this.unload();const n=this.#R.emit("exit",null,t),r="SIGHUP"===t?this.#F:t;n||e.kill(e.pid,r)}};this.#B=e.reallyExit,this.#N=e.emit}onExit(e,t){if(!processOk(this.#P))return()=>{};!1===this.#q&&this.load();const n=t?.alwaysLast?"afterExit":"exit";return this.#R.on(n,e),()=>{this.#R.removeListener(n,e),0===this.#R.listeners.exit.length&&0===this.#R.listeners.afterExit.length&&this.unload()}}load(){if(!this.#q){this.#q=!0,this.#R.count+=1;for(const e of signals)try{const t=this.#O[e];t&&this.#P.on(e,t)}catch(e){}this.#P.emit=(e,...t)=>this.#$(e,...t),this.#P.reallyExit=e=>this.#Q(e)}}unload(){this.#q&&(this.#q=!1,signals.forEach((e=>{const t=this.#O[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#P.removeListener(e,t)}catch(e){}})),this.#P.emit=this.#N,this.#P.reallyExit=this.#B,this.#R.count-=1)}#Q(e){return processOk(this.#P)?(this.#P.exitCode=e||0,this.#R.emit("exit",this.#P.exitCode,null),this.#B.call(this.#P,this.#P.exitCode)):0}#$(e,...t){const n=this.#N;if("exit"===e&&processOk(this.#P)){"number"==typeof t[0]&&(this.#P.exitCode=t[0]);const r=n.call(this.#P,e,...t);return this.#R.emit("exit",this.#P.exitCode,null),r}return n.call(this.#P,e,...t)}}const process$1=globalThis.process,{onExit:onExit,load:load,unload:unload}=signalExitWrap(processOk(process$1)?new SignalExit(process$1):new SignalExitFallback),terminal=process$2.stderr.isTTY?process$2.stderr:process$2.stdout.isTTY?process$2.stdout:void 0,restoreCursor=terminal?onetime((()=>{onExit((()=>{terminal.write("[?25h")}),{alwaysLast:!0})})):()=>{};let isHidden=!1;const cliCursor={show:(e=process$2.stderr)=>{e.isTTY&&(isHidden=!1,e.write("[?25h"))},hide:(e=process$2.stderr)=>{e.isTTY&&(restoreCursor(),isHidden=!0,e.write("[?25l"))},toggle:(e,t)=>{void 0!==e&&(isHidden=e),isHidden?cliCursor.show(t):cliCursor.hide(t)}};var cliSpinnersExports=requireCliSpinners(),cliSpinners=getDefaultExportFromCjs(cliSpinnersExports);function isUnicodeSupported$1(){return"win32"!==process$2.platform?"linux"!==process$2.env.TERM:Boolean(process$2.env.CI)||Boolean(process$2.env.WT_SESSION)||Boolean(process$2.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===process$2.env.ConEmuTask||"Terminus-Sublime"===process$2.env.TERM_PROGRAM||"vscode"===process$2.env.TERM_PROGRAM||"xterm-256color"===process$2.env.TERM||"alacritty"===process$2.env.TERM||"JetBrains-JediTerm"===process$2.env.TERMINAL_EMULATOR}const main={info:chalk.blue("โ„น"),success:chalk.green("โœ”"),warning:chalk.yellow("โš "),error:chalk.red("โœ–")},fallback={info:chalk.blue("i"),success:chalk.green("โˆš"),warning:chalk.yellow("โ€ผ"),error:chalk.red("ร—")},logSymbols=isUnicodeSupported$1()?main:fallback;function ansiRegex({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}const regex=ansiRegex();function stripAnsi(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(regex,"")}function isAmbiguous(e){return 161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function isFullWidth(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}function isWide(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9776&&e<=9783||e>=9800&&e<=9811||9855===e||e>=9866&&e<=9871||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function validate(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function eastAsianWidth(e,{ambiguousAsWide:t=!1}={}){return validate(e),isFullWidth(e)||isWide(e)||t&&isAmbiguous(e)?2:1}var emojiRegex=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-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BF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;const segmenter=new Intl.Segmenter,defaultIgnorableCodePointRegex=/^\p{Default_Ignorable_Code_Point}$/u;function stringWidth(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=stripAnsi(e)),0===e.length)return 0;let i=0;const o={ambiguousAsWide:!n};for(const{segment:t}of segmenter.segment(e)){const e=t.codePointAt(0);e<=31||e>=127&&e<=159||(e>=8203&&e<=8207||65279===e||e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=55296&&e<=57343||e>=65024&&e<=65039||defaultIgnorableCodePointRegex.test(t)||(emojiRegex().test(t)?i+=2:i+=eastAsianWidth(e,o)))}return i}function isInteractive({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}function isUnicodeSupported(){const{env:e}=process$2,{TERM:t,TERM_PROGRAM:n}=e;return"win32"!==process$2.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===n||"vscode"===n||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}const ASCII_ETX_CODE=3;class StdinDiscarder{#L=0;start(){this.#L++,1===this.#L&&this.#M()}stop(){if(this.#L<=0)throw new Error("`stop` called more times than `start`");this.#L--,0===this.#L&&this.#j()}#M(){"win32"!==process$2.platform&&process$2.stdin.isTTY&&(process$2.stdin.setRawMode(!0),process$2.stdin.on("data",this.#U),process$2.stdin.resume())}#j(){process$2.stdin.isTTY&&(process$2.stdin.off("data",this.#U),process$2.stdin.pause(),process$2.stdin.setRawMode(!1))}#U(e){e[0]===ASCII_ETX_CODE&&process$2.emit("SIGINT")}}const stdinDiscarder=new StdinDiscarder;class Ora{#J=0;#V=!1;#H=0;#G=-1;#W=0;#c;#z;#Y;#K;#X;#Z;#ee;#te;#ne;#re;#ie;color;constructor(e){"string"==typeof e&&(e={text:e}),this.#c={color:"cyan",stream:process$2.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#c.color,this.spinner=this.#c.spinner,this.#X=this.#c.interval,this.#Y=this.#c.stream,this.#Z="boolean"==typeof this.#c.isEnabled?this.#c.isEnabled:isInteractive({stream:this.#Y}),this.#ee="boolean"==typeof this.#c.isSilent&&this.#c.isSilent,this.text=this.#c.text,this.prefixText=this.#c.prefixText,this.suffixText=this.#c.suffixText,this.indent=this.#c.indent,"test"===process$2.env.NODE_ENV&&(this._stream=this.#Y,this._isEnabled=this.#Z,Object.defineProperty(this,"_linesToClear",{get(){return this.#J},set(e){this.#J=e}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#G}}),Object.defineProperty(this,"_lineCount",{get(){return this.#H}}))}get indent(){return this.#te}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#te=e,this.#oe()}get interval(){return this.#X??this.#z.interval??100}get spinner(){return this.#z}set spinner(e){if(this.#G=-1,this.#X=void 0,"object"==typeof e){if(void 0===e.frames)throw new Error("The given spinner must have a `frames` property");this.#z=e}else if(isUnicodeSupported())if(void 0===e)this.#z=cliSpinners.dots;else{if("default"===e||!cliSpinners[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#z=cliSpinners[e]}else this.#z=cliSpinners.line}get text(){return this.#ne}set text(e=""){this.#ne=e,this.#oe()}get prefixText(){return this.#re}set prefixText(e=""){this.#re=e,this.#oe()}get suffixText(){return this.#ie}set suffixText(e=""){this.#ie=e,this.#oe()}get isSpinning(){return void 0!==this.#K}#se(e=this.#re,t=" "){return"string"==typeof e&&""!==e?e+t:"function"==typeof e?e()+t:""}#ae(e=this.#ie,t=" "){return"string"==typeof e&&""!==e?t+e:"function"==typeof e?t+e():""}#oe(){const e=this.#Y.columns??80,t=this.#se(this.#re,"-"),n=this.#ae(this.#ie,"-"),r=" ".repeat(this.#te)+t+"--"+this.#ne+"--"+n;this.#H=0;for(const t of stripAnsi(r).split("\n"))this.#H+=Math.max(1,Math.ceil(stringWidth(t,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#Z&&!this.#ee}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#Z=e}get isSilent(){return this.#ee}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#ee=e}frame(){const e=Date.now();(-1===this.#G||e-this.#W>=this.interval)&&(this.#G=++this.#G%this.#z.frames.length,this.#W=e);const{frames:t}=this.#z;let n=t[this.#G];this.color&&(n=chalk[this.color](n));return("string"==typeof this.#re&&""!==this.#re?this.#re+" ":"")+n+("string"==typeof this.text?" "+this.text:"")+("string"==typeof this.#ie&&""!==this.#ie?" "+this.#ie:"")}clear(){if(!this.#Z||!this.#Y.isTTY)return this;this.#Y.cursorTo(0);for(let e=0;e0&&this.#Y.moveCursor(0,-1),this.#Y.clearLine(1);return(this.#te||this.lastIndent!==this.#te)&&this.#Y.cursorTo(this.#te),this.lastIndent=this.#te,this.#J=0,this}render(){return this.#ee||(this.clear(),this.#Y.write(this.frame()),this.#J=this.#H),this}start(e){return e&&(this.text=e),this.#ee?this:this.#Z?(this.isSpinning||(this.#c.hideCursor&&cliCursor.hide(this.#Y),this.#c.discardStdin&&process$2.stdin.isTTY&&(this.#V=!0,stdinDiscarder.start()),this.render(),this.#K=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.#Y.write(`- ${this.text}\n`),this)}stop(){return this.#Z?(clearInterval(this.#K),this.#K=void 0,this.#G=0,this.clear(),this.#c.hideCursor&&cliCursor.show(this.#Y),this.#c.discardStdin&&process$2.stdin.isTTY&&this.#V&&(stdinDiscarder.stop(),this.#V=!1),this):this}succeed(e){return this.stopAndPersist({symbol:logSymbols.success,text:e})}fail(e){return this.stopAndPersist({symbol:logSymbols.error,text:e})}warn(e){return this.stopAndPersist({symbol:logSymbols.warning,text:e})}info(e){return this.stopAndPersist({symbol:logSymbols.info,text:e})}stopAndPersist(e={}){if(this.#ee)return this;const t=e.prefixText??this.#re,n=this.#se(t," "),r=e.symbol??" ",i=e.text??this.text,o="string"==typeof i?(r?" ":"")+i:"",s=e.suffixText??this.#ie,a=n+r+o+this.#ae(s," ")+"\n";return this.stop(),this.#Y.write(a),this}}function ora(e){return new Ora(e)}function truthy(e){return!!e}const capitalizeSpecType=e=>"openapi"===e?"OpenAPI":e.charAt(0).toUpperCase()+e.slice(1);async function prepareOas(e,t,n={convertToLatest:!1}){let r=e;if(!r){const e=ora({text:"Looking for API definitions...",...oraOptions()}).start();let n;if("openapi"===t)n="upload";else n=t.split(" ")[1];const i=readdirRecursive(".",!0).filter((e=>e.toLowerCase().endsWith(".json")||e.toLowerCase().endsWith(".yaml")||e.toLowerCase().endsWith(".yml")));debug(`number of JSON or YAML files found: ${i.length}`);const o=(await Promise.all(i.map((e=>{debug(`attempting to oas-normalize ${e}`);return new OASNormalize(e,{enablePaths:!0}).version().then((({specification:t,version:n})=>(debug(`specification type for ${e}: ${t}`),debug(`version for ${e}: ${n}`),["openapi","swagger","postman"].includes(t)?{filePath:e,specType:capitalizeSpecType(t),version:n}:null))).catch((t=>(debug(`error extracting API definition specification version for ${e}: ${t.message}`),null)))})))).filter(truthy);if(debug(`number of possible OpenAPI/Swagger files found: ${o.length}`),!o.length)throw e.fail(),new Error(`We couldn't find an OpenAPI or Swagger definition.\n\nPlease specify the path to your definition with \`rdme ${t} ./path/to/api/definition\`.`);if(r=o[0].filePath,1===o.length)e.stop(),info(chalk.yellow(`We found ${r} and are attempting to ${n} it.`));else if(o.length>1){if(isCI())throw e.fail(),new Error("Multiple API definitions found in current directory. Please specify file.");e.stop();const t=await promptTerminal({name:"file",message:`Multiple potential API definitions found! Which one would you like to ${n}?`,type:"select",choices:o.map((e=>({title:e.filePath,value:e.filePath,description:`${e.specType} ${e.version}`})))});r=t.file}}const i=ora({text:`Validating the API definition located at ${r}...`,...oraOptions()}).start();debug(`about to normalize spec located at ${r}`);const o=new OASNormalize(r,{colorizeErrors:!0,enablePaths:!0});debug("spec normalized");const{specType:s,definitionVersion:a}=await o.load().then((async e=>{const t=getAPIDefinitionType(e);return{specType:capitalizeSpecType(t),definitionVersion:await o.version()}})).catch((e=>{throw i.fail(),debug(`raw oas load error object: ${JSON.stringify(e)}`),e}));let c=await o.validate({convertToLatest:n.convertToLatest}).catch((e=>{throw i.fail(),debug(`raw validation error object: ${JSON.stringify(e)}`),e}));i.stop(),debug("๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡ spec validated! logging spec below ๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡"),debug(c),debug("๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘† finished logging spec ๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†"),debug(`spec type: ${s}`),n.title&&(debug(`renaming title field to ${n.title}`),c.info.title=n.title);const l=o.type,u=c.info.version;return debug(`version in spec: ${u}`),["openapi","openapi inspect","openapi reduce"].includes(t)&&(c=await o.bundle(),debug("spec bundled")),{preparedSpec:JSON.stringify(c),specFileType:l,specPath:r,specType:s,specVersion:u,definitionVersion:a}}class OpenAPIConvertCommand extends BaseCommand{static summary="Converts an API definition to OpenAPI and bundles any external references.";static description="Converts Swagger files and Postman collections to OpenAPI and bundles any external references. **Note**: All of our other OpenAPI commands already do this conversion automatically, but this command is available in case you need this functionality exclusively.";static args={spec:specArg};static flags={out:libExports$3.Flags.string({description:"Output file path to write converted file to"}),title:titleFlag,workingDirectory:workingDirectoryFlag};static examples=[{description:"By default, this command will display a comprehensive table of all OpenAPI and ReadMe features found in your API definition:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file]"},{description:"You can omit the file name and `rdme` will scan your working directory (and any subdirectories) for OpenAPI/Swagger files. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %>"}];async run(){const{spec:e}=this.args,{out:t,title:n,workingDirectory:r}=this.flags;if(r){const e=process.cwd();process.chdir(r),this.debug(`switching working directory from ${e} to ${process.cwd()}`)}const{preparedSpec:i,specPath:o,specType:s}=await prepareOas(e,"openapi convert",{convertToLatest:!0,title:n}),a=JSON.parse(i);"OpenAPI"===s&&warn("The input file is already OpenAPI, so no conversion is necessary. Any external references will be bundled."),prompts.override({outputPath:t});const c=await promptTerminal([{type:"text",name:"outputPath",message:"Enter the path to save your converted/bundled API definition to:",initial:()=>{const e=path$1.extname(o);return`${path$1.basename(o).split(e)[0]}.openapi${e}`},validate:e=>validateFilePath(e)}]);return this.debug(`saving converted/bundled spec to ${c.outputPath}`),fs$6.writeFileSync(c.outputPath,JSON.stringify(a,null,2)),this.debug("converted/bundled spec saved"),Promise.resolve(chalk.green(`Your API definition has been converted and bundled and saved to ${c.outputPath}!`))}}var immutable,hasRequiredImmutable,parseLinkHeader,hasRequiredParseLinkHeader;function requireImmutable(){if(hasRequiredImmutable)return immutable;hasRequiredImmutable=1,immutable=function(){for(var t={},n=0;n]*)>(.*)/),o=i[1],s=i[2].split(";"),c=t.parse(o),l=e.parse(c.query);s.shift();var u=s.reduce(a,{});return(u=n(l,u)).url=o,u}catch(e){return null}}return parseLinkHeader=function(e){return function(e){if(!e)return!1;if(e.length>r){if(i)throw new Error("Input string too long, it should be under "+r+" characters.");return!1}return!0}(e)?e.split(/,\s*({description:`API Definition ID: ${e._id}`,title:e.title,value:e._id})));return t?.prev?.page&&i.push({description:"Go to the previous page",title:`< Prev (page ${n-1} of ${r})`,value:"prev"}),t?.next?.page&&i.push({description:"Go to the next page",title:`Next (page ${n+1} of ${r}) >`,value:"next"}),i}const updateOasPrompt=(e,t,n,r,i)=>[{type:"select",name:"specId",message:"Select your desired file to update",choices:specOptions(e,t,n,r),async format(e){if("prev"===e)try{const e=await i(`${t?.prev?.url||""}`),o=parse(e.headers.get("link")),s=await handleAPIv1Res(e),{specId:a}=await promptTerminal(updateOasPrompt(s,o,n-1,r,i));return a}catch(e){return debug(`error retrieving previous specs: ${e.message}`),null}else if("next"===e)try{const e=await i(`${t?.next?.url||""}`),o=parse(e.headers.get("link")),s=await handleAPIv1Res(e),{specId:a}=await promptTerminal(updateOasPrompt(s,o,n+1,r,i));return a}catch(e){return debug(`error retrieving next specs: ${e.message}`),null}return e}}];function createOasPrompt(e,t,n,r){return[{type:"select",name:"option",message:"Would you like to update an existing OAS file or create a new one?",choices:[{title:"Update existing",value:"update"},{title:"Create a new spec",value:"create"}],async format(i){if("update"===i){const{specId:i}=await promptTerminal(updateOasPrompt(e,t,1,n,r));return i}return i}}]}function versionPrompt(e,t){return[{type:t?null:"select",name:"from",message:"Which version would you like to fork from?",choices:e.map((e=>({title:e.version,value:e.version})))},{type:t?"text":null,name:"newVersion",message:"What should the version be renamed to?",hint:"1.0.0",validate:e=>!e||(!!semver.valid(semver.coerce(e))||"Please specify a semantic version.")},{type:t?.is_stable?null:"confirm",name:"is_stable",message:"Should this be the main version for your project?"},{type:"confirm",name:"is_beta",message:"Should this version be in beta?"},{type:(e,n)=>n.is_stable||t?.is_stable?null:"confirm",name:"is_hidden",message:"Should this version be hidden?"},{type:(e,n)=>n.is_stable||t?.is_stable?null:"confirm",name:"is_deprecated",message:"Should this version be deprecated?"}]}var tmpPromise={exports:{}},tmp={exports:{}},hasRequiredTmp,hasRequiredTmpPromise;function requireTmp(){return hasRequiredTmp||(hasRequiredTmp=1,function(e){const t=require$$0$7,n=require$$0$9,r=require$$0$8,i=require$$0$e,o={fs:t.constants,os:n.constants},s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",a=/XXXXXX/,c=(o.O_CREAT||o.fs.O_CREAT)|(o.O_EXCL||o.fs.O_EXCL)|(o.O_RDWR||o.fs.O_RDWR),l="win32"===n.platform(),u=o.EBADF||o.os.errno.EBADF,d=o.ENOENT||o.os.errno.ENOENT,p=[],f=t.rmdirSync.bind(t);let _=!1;function m(e,n){return t.rm(e,{recursive:!0},n)}function h(e){return t.rmSync(e,{recursive:!0})}function g(e,n){const r=k(e,n),i=r[0],o=r[1];try{w(i)}catch(e){return o(e)}let s=i.tries;!function e(){try{const n=D(i);t.stat(n,(function(t){if(!t)return s-- >0?e():o(new Error("Could not get a unique tmp filename, max tries reached "+n));o(null,n)}))}catch(e){o(e)}}()}function A(e){const n=k(e)[0];w(n);let r=n.tries;do{const e=D(n);try{t.statSync(e)}catch(t){return e}}while(r-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function y(e,n){const r=function(e){if(e&&!F(e))return n(e);n()};0<=e[0]?t.close(e[0],(function(){t.unlink(e[1],r)})):t.unlink(e[1],r)}function v(e){let n=null;try{0<=e[0]&&t.closeSync(e[0])}catch(e){if(!function(e){return R(e,-u,"EBADF")}(e)&&!F(e))throw e}finally{try{t.unlinkSync(e[1])}catch(e){F(e)||(n=e)}}if(null!==n)throw n}function b(e,t,n,r){const i=E(v,[t,e],r),o=E(y,[t,e],r,i);return n.keep||p.unshift(i),r?i:o}function C(e,n,r){const i=n.unsafeCleanup?m:t.rmdir.bind(t),o=E(n.unsafeCleanup?h:f,e,r),s=E(i,e,r,o);return n.keep||p.unshift(o),r?o:s}function E(e,t,n,r){let i=!1;return function o(s){if(!i){const a=r||o,c=p.indexOf(a);return c>=0&&p.splice(c,1),i=!0,n||e===f||e===h?e(t):e(t,s||function(){})}}}function x(e){let t=[],n=null;try{n=i.randomBytes(e)}catch(t){n=i.pseudoRandomBytes(e)}for(var r=0;rn.file(e,((e,n,i,o)=>e?r(e):r(void 0,{path:n,fd:i,cleanup:t(o)})))));e.exports.file=async e=>r(e),e.exports.withFile=async function(t,n){const{path:r,fd:i,cleanup:o}=await e.exports.file(n);try{return await t({path:r,fd:i})}finally{await o()}},e.exports.dirSync=n.dirSync;const i=t(((e,r)=>n.dir(e,((e,n,i)=>e?r(e):r(void 0,{path:n,cleanup:t(i)})))));e.exports.dir=async e=>i(e),e.exports.withDir=async function(t,n){const{path:r,cleanup:i}=await e.exports.dir(n);try{return await t({path:r})}finally{await i()}},e.exports.tmpNameSync=n.tmpNameSync,e.exports.tmpName=t(n.tmpName),e.exports.tmpdir=n.tmpdir,e.exports.setGracefulCleanup=n.setGracefulCleanup}(tmpPromise)),tmpPromise.exports}var tmpPromiseExports=requireTmpPromise();async function streamSpecToRegistry(e){const t=ora({text:"Staging your API definition for upload...",...oraOptions()}).start(),{path:n}=await tmpPromiseExports.file({prefix:"rdme-openapi-",postfix:".json"});debug(`creating temporary file at ${n}`),await fs$6.writeFileSync(n,e);const r=fs$6.createReadStream(n);debug("file and stream created, streaming into form data payload");const i=new FormData;i.append("spec",{type:"application/json",name:"openapi.json",[Symbol.toStringTag]:"File",stream:()=>r});return readmeAPIv1Fetch("/api/v1/api-registry",{body:i,headers:{Accept:"application/json"},method:"POST"}).then(handleAPIv1Res).then((e=>(t.stop(),e.registryUUID))).catch((e=>{throw t.fail(),e}))}class OpenAPICommand extends BaseCommand{static summary="Upload, or resync, your OpenAPI/Swagger definition to ReadMe.";static description="Locates your API definition (if you don't supply one), validates it, and then syncs it to your API reference on ReadMe.";static id="openapi";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and v10 will have a replacement command that supports ReadMe Refactored. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static args={spec:specArg};static flags={key:keyFlag,version:versionFlag,id:libExports$3.Flags.string({description:"Unique identifier for your API definition. Use this if you're re-uploading an existing API definition."}),title:titleFlag,workingDirectory:workingDirectoryFlag,github:githubFlag,dryRun:libExports$3.Flags.boolean({description:"Runs the command without creating/updating any API Definitions in ReadMe. Useful for debugging."}),useSpecVersion:libExports$3.Flags.boolean({description:"Uses the version listed in the `info.version` field in the API definition for the project version parameter."}),raw:libExports$3.Flags.boolean({description:"Return the command results as a JSON object instead of a pretty output."}),create:libExports$3.Flags.boolean({description:"Bypasses the create/update prompt and creates a new API definition in ReadMe.",exclusive:["update"]}),update:libExports$3.Flags.boolean({description:"Note that this flag only works if there's only one API definition associated with the current version.",summary:"Bypasses the create/update prompt and automatically updates an existing API definition in ReadMe."})};static examples=[{description:"This will upload the API definition at the given URL or path to your project and return an ID and URL for you to later update your file, and view it in the client:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file]"},{description:"You can omit the file name and `rdme` will scan your working directory (and any subdirectories) for OpenAPI/Swagger files. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %>"},{description:"If you want to bypass the prompt to create or update an API definition, you can pass the `--create` flag:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --version={project-version} --create"},{description:"This will edit (re-sync) an existing API definition (identified by `--id`) within your ReadMe project. **This is the recommended approach for usage in CI environments.**",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --id={existing-api-definition-id}"},{description:"Alternatively, you can include a version flag, which specifies the target version for your file's destination. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --id={existing-api-definition-id}"},{description:"If you wish to programmatically access any of this script's results (such as the API definition ID or the link to the corresponding docs in your dashboard), supply the `--raw` flag and the command will return a JSON output:",command:"<%= config.bin %> <%= command.id %> openapi.json --id={existing-api-definition-id} --raw"},{description:"You can also pass in a file in a subdirectory (we recommend running the CLI from the root of your repository if possible):",command:"<%= config.bin %> <%= command.id %> example-directory/petstore.json"},{description:"By default, `<%= config.bin %>` bundles all references with paths based on the directory that it is being run in. You can override the working directory using the `--workingDirectory` option, which can be helpful for bundling certain external references:",command:"<%= config.bin %> <%= command.id %> petstore.json --workingDirectory=[path to directory]"},{description:"If you wish to use the version specified in the `info.version` field of your OpenAPI definition, you can pass the `--useSpecVersion` option. So if the the `info.version` field was `1.2.3`, this is equivalent to passing `--version=1.2.3`.",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --useSpecVersion"},{description:"If there's only one API definition for the given project version to update, you can use the `--update` flag and it will select it without any prompts:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --version={project-version} --update"}];async run(){const{spec:e}=this.args,{dryRun:t,key:n,id:r,create:i,raw:o,title:s,useSpecVersion:a,version:c,workingDirectory:l,update:u}=this.flags;let d,p=c;const f=ora({...oraOptions()}),_={version:void 0,update:!1};if(t&&warn("๐ŸŽญ dry run option detected! No API definitions will be created or updated in ReadMe."),l){const e=process.cwd();process.chdir(l),this.debug(`switching working directory from ${e} to ${process.cwd()}`)}c&&r&&warn("We'll be using the version associated with the `--id` option, so the `--version` option will be ignored."),i&&r&&warn("We'll be using the `--create` option, so the `--id` parameter will be ignored."),u&&r&&warn("We'll be updating the API definition associated with the `--id` parameter, so the `--update` parameter will be ignored.");const{preparedSpec:m,specFileType:h,specPath:g,specType:A,specVersion:y}=await prepareOas(e,"openapi",{title:s});a&&(info(`Using the version specified in your API definition for your ReadMe project version (${y})`),p=y),!i&&r||(p=await getProjectVersion(p,n)),this.debug(`selectedVersion: ${p}`);const v=async e=>{const t=d?`You've successfully updated an existing ${A} file on your ReadMe project!`:`You've successfully uploaded a new ${A} file to your ReadMe project!`,n=await handleAPIv1Res(e,!1),r={commandType:d?"update":"create",docs:e.headers.get("location"),id:n._id,specPath:g,specType:A,version:p},i=[t,"",`\t${chalk.green(r.docs)}`,"",`To update your ${A} definition, run the following:`,"",`\t${chalk.green(`rdme openapi ${g} --key= --id=${r.id}`)}`].join("\n");return this.runCreateGHAHook({parsedOpts:{...this.flags,spec:g,id:n._id,version:p,..._},result:o?JSON.stringify(r,null,2):i})},b=e=>handleAPIv1Res(e).catch((e=>{if("APIv1Error"===e.name)throw e;if("string"==typeof e&&(e.includes("Application Error")||e.includes("520: Web server is returning an unknown error")))throw new Error("We're sorry, your upload request timed out. Please try again or split your file up into smaller chunks.");throw new Error(`Yikes, something went wrong! Please try uploading your spec again and if the problem persists, get in touch with our support team at ${chalk.underline("support@readme.io")}.`)})),C=await streamSpecToRegistry(m),E={headers:cleanAPIv1Headers(n,p,new Headers({Accept:"application/json","Content-Type":"application/json"})),body:JSON.stringify({registryUUID:C})};function x(){return t?`๐ŸŽญ dry run! The API Definition located at ${g} will be created for this project version: ${p}`:(E.method="post",f.start("Creating your API docs in ReadMe..."),readmeAPIv1Fetch("/api/v1/api-specification",E,{filePath:g,fileType:h}).then((e=>e.ok?(f.succeed(`${f.text} done! ๐Ÿฆ‰`),v(e)):(f.fail(),b(e)))))}function S(e){return t?`๐ŸŽญ dry run! The API Definition located at ${g} will update this API Definition ID: ${e}`:(d=!0,E.method="put",f.start("Updating your API docs in ReadMe..."),readmeAPIv1Fetch(`/api/v1/api-specification/${e}`,E,{filePath:g,fileType:h}).then((e=>e.ok?(f.succeed(`${f.text} done! ๐Ÿฆ‰`),v(e)):(f.fail(),b(e)))))}function k(e){if(e)return readmeAPIv1Fetch(e,{method:"get",headers:cleanAPIv1Headers(n,p)});throw new Error("There was an error retrieving your list of API definitions. Please get in touch with us at support@readme.io")}if(i)return _.id=void 0,delete _.version,x();if(!r){this.debug("no id parameter, retrieving list of API specs");const e=await k("/api/v1/api-specification"),t=Math.ceil(parseInt(e.headers.get("x-total-count")||"0",10)/10),n=parse(e.headers.get("link"));this.debug(`total pages: ${t}`),this.debug(`pagination result: ${JSON.stringify(n)}`);const r=await handleAPIv1Res(e);if(!r.length)return x();if(u){if(r.length>1)throw new Error(`The \`--update\` option cannot be used when there's more than one API definition available (found ${r.length}).`);const{_id:e}=r[0];return S(e)}const{option:i}=await promptTerminal(createOasPrompt(r,n,t,k));return this.debug(`selection result: ${i}`),"create"===i?x():S(i)}return S(r)}}var pluralize$2={exports:{}},pluralize$1=pluralize$2.exports,hasRequiredPluralize;function requirePluralize(){return hasRequiredPluralize||(hasRequiredPluralize=1,function(e){!function(t,n){"function"==typeof commonjsRequire?e.exports=n():t.pluralize=n()}(pluralize$1,(function(){var e=[],t=[],n={},r={},i={};function o(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function s(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function a(e,t){return e.replace(t[0],(function(n,r){var i=function(e,t){return e.replace(/\$(\d{1,2})/g,(function(e,n){return t[n]||""}))}(t[1],arguments);return s(""===n?e[r-1]:n,i)}))}function c(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var o=r[i];if(o[0].test(t))return a(t,o)}return t}function l(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?s(r,i):e.hasOwnProperty(i)?s(r,e[i]):c(i,r,n)}}function u(e,t,n,r){return function(r){var i=r.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&c(i,i,n)===i}}function d(e,t,n){return(n?t+" ":"")+(1===t?d.singular(e):d.plural(e))}return d.plural=l(i,r,e),d.isPlural=u(i,r,e),d.singular=l(r,i,t),d.isSingular=u(r,i,t),d.addPluralRule=function(t,n){e.push([o(t),n])},d.addSingularRule=function(e,n){t.push([o(e),n])},d.addUncountableRule=function(e){"string"!=typeof e?(d.addPluralRule(e,"$0"),d.addSingularRule(e,"$0")):n[e.toLowerCase()]=!0},d.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach((function(e){return d.addIrregularRule(e[0],e[1])})),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach((function(e){return d.addPluralRule(e[0],e[1])})),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach((function(e){return d.addSingularRule(e[0],e[1])})),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eรฉ]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(d.addUncountableRule),d}))}(pluralize$2)),pluralize$2.exports}var pluralizeExports=requirePluralize(),pluralize=getDefaultExportFromCjs(pluralizeExports),src$2={},createStream={},alignTableData={},alignString={},utils={},astralRegex_1,hasRequiredAstralRegex,sliceAnsi,hasRequiredSliceAnsi;function requireAstralRegex(){if(hasRequiredAstralRegex)return astralRegex_1;hasRequiredAstralRegex=1;const e="[\ud800-\udbff][\udc00-\udfff]";return astralRegex_1=t=>t&&t.exact?new RegExp(`^${e}$`):new RegExp(e,"g"),astralRegex_1}function requireSliceAnsi(){if(hasRequiredSliceAnsi)return sliceAnsi;hasRequiredSliceAnsi=1;const e=requireIsFullwidthCodePoint(),t=requireAstralRegex(),n=requireAnsiStyles(),r=["","ย›"],i=e=>`${r[0]}[${e}m`,o=(e,t,r)=>{let o=[];e=[...e];for(let r of e){const s=r;r.includes(";")&&(r=r.split(";")[0][0]+"0");const a=n.codes.get(Number.parseInt(r,10));if(a){const n=e.indexOf(a.toString());-1===n?o.push(i(t?a:s)):e.splice(n,1)}else{if(t){o.push(i(0));break}o.push(i(s))}}if(t&&(o=o.filter(((e,t)=>o.indexOf(e)===t)),void 0!==r)){const e=i(n.codes.get(Number.parseInt(r,10)));o=o.reduce(((t,n)=>n===e?[n,...t]:[...t,n]),[])}return o.join("")};return sliceAnsi=(n,i,s)=>{const a=[...n],c=[];let l,u="number"==typeof s?s:a.length,d=!1,p=0,f="";for(const[_,m]of a.entries()){let a=!1;if(r.includes(m)){const e=/\d[^m]*/.exec(n.slice(_,_+18));l=e&&e.length>0?e[0]:void 0,pi&&p<=u)f+=m;else if(p!==i||d||void 0===l){if(p>=u){f+=o(c,!0,l);break}}else f=o(c)}return f},sliceAnsi}var getBorderCharacters={},hasRequiredGetBorderCharacters,hasRequiredUtils,hasRequiredAlignString,hasRequiredAlignTableData;function requireGetBorderCharacters(){if(hasRequiredGetBorderCharacters)return getBorderCharacters;hasRequiredGetBorderCharacters=1,Object.defineProperty(getBorderCharacters,"__esModule",{value:!0}),getBorderCharacters.getBorderCharacters=void 0;return getBorderCharacters.getBorderCharacters=e=>{if("honeywell"===e)return{topBody:"โ•",topJoin:"โ•ค",topLeft:"โ•”",topRight:"โ•—",bottomBody:"โ•",bottomJoin:"โ•ง",bottomLeft:"โ•š",bottomRight:"โ•",bodyLeft:"โ•‘",bodyRight:"โ•‘",bodyJoin:"โ”‚",headerJoin:"โ”ฌ",joinBody:"โ”€",joinLeft:"โ•Ÿ",joinRight:"โ•ข",joinJoin:"โ”ผ",joinMiddleDown:"โ”ฌ",joinMiddleUp:"โ”ด",joinMiddleLeft:"โ”ค",joinMiddleRight:"โ”œ"};if("norc"===e)return{topBody:"โ”€",topJoin:"โ”ฌ",topLeft:"โ”Œ",topRight:"โ”",bottomBody:"โ”€",bottomJoin:"โ”ด",bottomLeft:"โ””",bottomRight:"โ”˜",bodyLeft:"โ”‚",bodyRight:"โ”‚",bodyJoin:"โ”‚",headerJoin:"โ”ฌ",joinBody:"โ”€",joinLeft:"โ”œ",joinRight:"โ”ค",joinJoin:"โ”ผ",joinMiddleDown:"โ”ฌ",joinMiddleUp:"โ”ด",joinMiddleLeft:"โ”ค",joinMiddleRight:"โ”œ"};if("ramac"===e)return{topBody:"-",topJoin:"+",topLeft:"+",topRight:"+",bottomBody:"-",bottomJoin:"+",bottomLeft:"+",bottomRight:"+",bodyLeft:"|",bodyRight:"|",bodyJoin:"|",headerJoin:"+",joinBody:"-",joinLeft:"|",joinRight:"|",joinJoin:"|",joinMiddleDown:"+",joinMiddleUp:"+",joinMiddleLeft:"+",joinMiddleRight:"+"};if("void"===e)return{topBody:"",topJoin:"",topLeft:"",topRight:"",bottomBody:"",bottomJoin:"",bottomLeft:"",bottomRight:"",bodyLeft:"",bodyRight:"",bodyJoin:"",headerJoin:"",joinBody:"",joinLeft:"",joinRight:"",joinJoin:"",joinMiddleDown:"",joinMiddleUp:"",joinMiddleLeft:"",joinMiddleRight:""};throw new Error('Unknown border template "'+e+'".')},getBorderCharacters}function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1;var e=utils&&utils.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(utils,"__esModule",{value:!0}),utils.isCellInRange=utils.areCellEqual=utils.calculateRangeCoordinate=utils.flatten=utils.extractTruncates=utils.sumArray=utils.sequence=utils.distributeUnevenly=utils.countSpaceSequence=utils.groupBySizes=utils.makeBorderConfig=utils.splitAnsi=utils.normalizeString=void 0;const t=e(requireSliceAnsi()),n=e(requireStringWidth()),r=e(requireStripAnsi()),i=requireGetBorderCharacters();utils.normalizeString=e=>e.replace(/\r\n/g,"\n");utils.splitAnsi=e=>{const i=(0,r.default)(e).split("\n").map(n.default),o=[];let s=0;return i.forEach((n=>{o.push(0===n?"":(0,t.default)(e,s,s+n)),s+=n+1})),o};utils.makeBorderConfig=e=>({...(0,i.getBorderCharacters)("honeywell"),...e});utils.groupBySizes=(e,t)=>{let n=0;return t.map((t=>{const r=e.slice(n,n+t);return n+=t,r}))};utils.countSpaceSequence=e=>{var t,n;return null!==(n=null===(t=e.match(/\s+/g))||void 0===t?void 0:t.length)&&void 0!==n?n:0};utils.distributeUnevenly=(e,t)=>Array.from({length:t}).fill(Math.floor(e/t)).map(((n,r)=>n+(rArray.from({length:t-e+1},((t,n)=>n+e));utils.sumArray=e=>e.reduce(((e,t)=>e+t),0);utils.extractTruncates=e=>e.columns.map((({truncate:e})=>e));utils.flatten=e=>[].concat(...e);utils.calculateRangeCoordinate=e=>{const{row:t,col:n,colSpan:r=1,rowSpan:i=1}=e;return{bottomRight:{col:n+r-1,row:t+i-1},topLeft:{col:n,row:t}}};utils.areCellEqual=(e,t)=>e.row===t.row&&e.col===t.col;return utils.isCellInRange=(e,{topLeft:t,bottomRight:n})=>t.row<=e.row&&e.row<=n.row&&t.col<=e.col&&e.col<=n.col,utils}function requireAlignString(){if(hasRequiredAlignString)return alignString;hasRequiredAlignString=1;var e=alignString&&alignString.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(alignString,"__esModule",{value:!0}),alignString.alignString=void 0;const t=e(requireStringWidth()),n=requireUtils(),r=(e,t)=>e+" ".repeat(t);return alignString.alignString=(e,i,o)=>{const s=(0,t.default)(e);if(s===i)return e;if(s>i)throw new Error("Subject parameter value width cannot be greater than the container width.");if(0===s)return" ".repeat(i);const a=i-s;return"left"===o?r(e,a):"right"===o?((e,t)=>" ".repeat(t)+e)(e,a):"justify"===o?((e,t)=>{const i=(0,n.countSpaceSequence)(e);if(0===i)return r(e,t);const o=(0,n.distributeUnevenly)(t,i);if(Math.max(...o)>3)return r(e,t);let s=0;return e.replace(/\s+/g,(e=>e+" ".repeat(o[s++])))})(e,a):((e,t)=>" ".repeat(Math.floor(t/2))+e+" ".repeat(Math.ceil(t/2)))(e,a)},alignString}function requireAlignTableData(){if(hasRequiredAlignTableData)return alignTableData;hasRequiredAlignTableData=1,Object.defineProperty(alignTableData,"__esModule",{value:!0}),alignTableData.alignTableData=void 0;const e=requireAlignString();return alignTableData.alignTableData=(t,n)=>t.map(((t,r)=>t.map(((t,i)=>{var o;const{width:s,alignment:a}=n.columns[i];return(null===(o=n.spanningCellManager)||void 0===o?void 0:o.getContainingRange({col:i,row:r},{mapped:!0}))?t:(0,e.alignString)(t,s,a)})))),alignTableData}var calculateRowHeights={},calculateCellHeight={},wrapCell={},wrapString={},hasRequiredWrapString;function requireWrapString(){if(hasRequiredWrapString)return wrapString;hasRequiredWrapString=1;var e=wrapString&&wrapString.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wrapString,"__esModule",{value:!0}),wrapString.wrapString=void 0;const t=e(requireSliceAnsi()),n=e(requireStringWidth());return wrapString.wrapString=(e,r)=>{let i=e;const o=[];do{o.push((0,t.default)(i,0,r)),i=(0,t.default)(i,r).trim()}while((0,n.default)(i));return o},wrapString}var wrapWord={},hasRequiredWrapWord,hasRequiredWrapCell,hasRequiredCalculateCellHeight,hasRequiredCalculateRowHeights;function requireWrapWord(){if(hasRequiredWrapWord)return wrapWord;hasRequiredWrapWord=1;var e=wrapWord&&wrapWord.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wrapWord,"__esModule",{value:!0}),wrapWord.wrapWord=void 0;const t=e(requireSliceAnsi()),n=e(requireStripAnsi());return wrapWord.wrapWord=(e,r)=>{const i=[];let o=0;return((e,t)=>{let r=(0,n.default)(e);const i=[],o=new RegExp("(^.{1,"+String(Math.max(t,1))+"}(\\s+|$))|(^.{1,"+String(Math.max(t-1,1))+"}(\\\\|/|_|\\.|,|;|-))");do{let e;const n=o.exec(r);if(n){e=n[0],r=r.slice(e.length);const t=e.trim().length,o=e.length-t;i.push([t,o])}else e=r.slice(0,t),r=r.slice(t),i.push([e.length,0])}while(r.length);return i})(e,r).forEach((([n,r])=>{i.push((0,t.default)(e,o,o+n)),o+=n+r})),i},wrapWord}function requireWrapCell(){if(hasRequiredWrapCell)return wrapCell;hasRequiredWrapCell=1,Object.defineProperty(wrapCell,"__esModule",{value:!0}),wrapCell.wrapCell=void 0;const e=requireUtils(),t=requireWrapString(),n=requireWrapWord();return wrapCell.wrapCell=(r,i,o)=>{const s=(0,e.splitAnsi)(r);for(let e=0;e(0,e.wrapCell)(t,n,r).length,calculateCellHeight}function requireCalculateRowHeights(){if(hasRequiredCalculateRowHeights)return calculateRowHeights;hasRequiredCalculateRowHeights=1,Object.defineProperty(calculateRowHeights,"__esModule",{value:!0}),calculateRowHeights.calculateRowHeights=void 0;const e=requireCalculateCellHeight(),t=requireUtils();return calculateRowHeights.calculateRowHeights=(n,r)=>{const i=[];for(const[o,s]of n.entries()){let a=1;s.forEach(((s,c)=>{var l;const u=null===(l=r.spanningCellManager)||void 0===l?void 0:l.getContainingRange({col:c,row:o});if(!u){const t=(0,e.calculateCellHeight)(s,r.columns[c].width,r.columns[c].wrapWord);return void(a=Math.max(a,t))}const{topLeft:d,bottomRight:p,height:f}=u;if(o===p.row){const e=(0,t.sumArray)(i.slice(d.row)),o=p.row-d.row,s=(0,t.sequence)(d.row+1,p.row).filter((e=>{var t;return!(null===(t=r.drawHorizontalLine)||void 0===t?void 0:t.call(r,e,n.length))})).length,c=f-e-o+s;a=Math.max(a,c)}})),i.push(a)}return i},calculateRowHeights}var drawBorder={},drawContent={},hasRequiredDrawContent,hasRequiredDrawBorder;function requireDrawContent(){if(hasRequiredDrawContent)return drawContent;hasRequiredDrawContent=1,Object.defineProperty(drawContent,"__esModule",{value:!0}),drawContent.drawContent=void 0;return drawContent.drawContent=e=>{const{contents:t,separatorGetter:n,drawSeparator:r,spanningCellManager:i,rowIndex:o,elementType:s}=e,a=t.length,c=[];return r(0,a)&&c.push(n(0,a)),t.forEach(((e,t)=>{if(s&&"border"!==s&&"row"!==s||c.push(e),"cell"===s&&void 0===o&&c.push(e),"cell"===s&&void 0!==o){const n=null==i?void 0:i.getContainingRange({col:t,row:o});n&&t!==n.topLeft.col||c.push(e)}if(t+1{const{separator:n,horizontalBorderIndex:r,spanningCellManager:i}=t;return e.map(((e,t)=>{const o=n.body.repeat(e);if(void 0===r)return o;const s=null==i?void 0:i.getContainingRange({col:t,row:r});if(!s)return o;const{topLeft:a}=s;return r===a.row?o:t!==a.col?"":s.extractBorderContent(r)}))};e.createSeparatorGetter=e=>{const{separator:t,spanningCellManager:n,horizontalBorderIndex:r,rowCount:i}=e;return(e,o)=>{const s=null==n?void 0:n.inSameRange;if(void 0!==r&&s){const n={col:e,row:r-1},a={col:e-1,row:r},c={col:e-1,row:r-1},l={col:e,row:r},u=[[c,n],[n,l],[l,a],[a,c]];if(0===e)return s(l,n)&&t.bodyJoinOuter?t.bodyJoinOuter:t.left;if(e===o)return s(c,a)&&t.bodyJoinOuter?t.bodyJoinOuter:t.right;if(0===r)return s(l,a)?t.body:t.join;if(r===i)return s(n,c)?t.body:t.join;const d=u.map((e=>s(...e))).filter(Boolean).length;if(0===d)return t.join;if(4===d)return"";if(2===d)return s(...u[1])&&s(...u[3])&&t.bodyJoinInner?t.bodyJoinInner:t.body;if(1===d){if(!(t.joinRight&&t.joinLeft&&t.joinUp&&t.joinDown))throw new Error(`Can not get border separator for position [${r}, ${e}]`);return s(...u[0])?t.joinDown:s(...u[1])?t.joinLeft:s(...u[2])?t.joinUp:t.joinRight}throw new Error("Invalid case")}return 0===e?t.left:e===o?t.right:t.join}};e.drawBorder=(n,r)=>{const i=(0,e.drawBorderSegments)(n,r),{drawVerticalLine:o,horizontalBorderIndex:s,spanningCellManager:a}=r;return(0,t.drawContent)({contents:i,drawSeparator:o,elementType:"border",rowIndex:s,separatorGetter:(0,e.createSeparatorGetter)(r),spanningCellManager:a})+"\n"};e.drawBorderTop=(t,n)=>{const{border:r}=n,i=(0,e.drawBorder)(t,{...n,separator:{body:r.topBody,join:r.topJoin,left:r.topLeft,right:r.topRight}});return"\n"===i?"":i};e.drawBorderJoin=(t,n)=>{const{border:r}=n;return(0,e.drawBorder)(t,{...n,separator:{body:r.joinBody,bodyJoinInner:r.bodyJoin,bodyJoinOuter:r.bodyLeft,join:r.joinJoin,joinDown:r.joinMiddleDown,joinLeft:r.joinMiddleLeft,joinRight:r.joinMiddleRight,joinUp:r.joinMiddleUp,left:r.joinLeft,right:r.joinRight}})};e.drawBorderBottom=(t,n)=>{const{border:r}=n;return(0,e.drawBorder)(t,{...n,separator:{body:r.bottomBody,join:r.bottomJoin,left:r.bottomLeft,right:r.bottomRight}})};e.createTableBorderGetter=(t,n)=>(r,i)=>{const o={...n,horizontalBorderIndex:r};return 0===r?(0,e.drawBorderTop)(t,o):r===i?(0,e.drawBorderBottom)(t,o):(0,e.drawBorderJoin)(t,o)}}(drawBorder)),drawBorder}var drawRow={},hasRequiredDrawRow;function requireDrawRow(){if(hasRequiredDrawRow)return drawRow;hasRequiredDrawRow=1,Object.defineProperty(drawRow,"__esModule",{value:!0}),drawRow.drawRow=void 0;const e=requireDrawContent();return drawRow.drawRow=(t,n)=>{const{border:r,drawVerticalLine:i,rowIndex:o,spanningCellManager:s}=n;return(0,e.drawContent)({contents:t,drawSeparator:i,elementType:"cell",rowIndex:o,separatorGetter:(e,t)=>0===e?r.bodyLeft:e===t?r.bodyRight:r.bodyJoin,spanningCellManager:s})+"\n"},drawRow}var makeStreamConfig={},validateConfig={},validators={},hasRequiredValidators,hasRequiredValidateConfig,hasRequiredMakeStreamConfig;function requireValidators(){return hasRequiredValidators||(hasRequiredValidators=1,function(e){e["config.json"]=function e(n,{instancePath:i="",parentData:s,parentDataProperty:c,rootData:l=n}={}){let u=null,d=0;if(n&&"object"==typeof n&&!Array.isArray(n)){for(const e in n)if("border"!==e&&"header"!==e&&"columns"!==e&&"columnDefault"!==e&&"drawVerticalLine"!==e&&"drawHorizontalLine"!==e&&"singleLine"!==e&&"spanningCells"!==e){const t={instancePath:i,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===u?u=[t]:u.push(t),d++}if(void 0!==n.border&&(o(n.border,{instancePath:i+"/border",parentData:n,parentDataProperty:"border",rootData:l})||(u=null===u?o.errors:u.concat(o.errors),d=u.length)),void 0!==n.header){let e=n.header;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.content){const e={instancePath:i+"/header",schemaPath:"#/properties/header/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};null===u?u=[e]:u.push(e),d++}for(const t in e)if("content"!==t&&"alignment"!==t&&"wrapWord"!==t&&"truncate"!==t&&"paddingLeft"!==t&&"paddingRight"!==t){const e={instancePath:i+"/header",schemaPath:"#/properties/header/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:t},message:"must NOT have additional properties"};null===u?u=[e]:u.push(e),d++}if(void 0!==e.content&&"string"!=typeof e.content){const e={instancePath:i+"/header/content",schemaPath:"#/properties/header/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),d++}if(void 0!==e.alignment&&(a(e.alignment,{instancePath:i+"/header/alignment",parentData:e,parentDataProperty:"alignment",rootData:l})||(u=null===u?a.errors:u.concat(a.errors),d=u.length)),void 0!==e.wrapWord&&"boolean"!=typeof e.wrapWord){const e={instancePath:i+"/header/wrapWord",schemaPath:"#/properties/header/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===u?u=[e]:u.push(e),d++}if(void 0!==e.truncate){let t=e.truncate;if("number"!=typeof t||t%1||isNaN(t)||!isFinite(t)){const e={instancePath:i+"/header/truncate",schemaPath:"#/properties/header/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}if(void 0!==e.paddingLeft){let t=e.paddingLeft;if("number"!=typeof t||t%1||isNaN(t)||!isFinite(t)){const e={instancePath:i+"/header/paddingLeft",schemaPath:"#/properties/header/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}if(void 0!==e.paddingRight){let t=e.paddingRight;if("number"!=typeof t||t%1||isNaN(t)||!isFinite(t)){const e={instancePath:i+"/header/paddingRight",schemaPath:"#/properties/header/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}}else{const e={instancePath:i+"/header",schemaPath:"#/properties/header/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.columns&&(f(n.columns,{instancePath:i+"/columns",parentData:n,parentDataProperty:"columns",rootData:l})||(u=null===u?f.errors:u.concat(f.errors),d=u.length)),void 0!==n.columnDefault&&(_(n.columnDefault,{instancePath:i+"/columnDefault",parentData:n,parentDataProperty:"columnDefault",rootData:l})||(u=null===u?_.errors:u.concat(_.errors),d=u.length)),void 0!==n.drawVerticalLine&&"function"!=typeof n.drawVerticalLine){const e={instancePath:i+"/drawVerticalLine",schemaPath:"#/properties/drawVerticalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};null===u?u=[e]:u.push(e),d++}if(void 0!==n.drawHorizontalLine&&"function"!=typeof n.drawHorizontalLine){const e={instancePath:i+"/drawHorizontalLine",schemaPath:"#/properties/drawHorizontalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};null===u?u=[e]:u.push(e),d++}if(void 0!==n.singleLine&&"boolean"!=typeof n.singleLine){const e={instancePath:i+"/singleLine",schemaPath:"#/properties/singleLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};null===u?u=[e]:u.push(e),d++}if(void 0!==n.spanningCells){let e=n.spanningCells;if(Array.isArray(e)){const n=e.length;for(let o=0;o=",limit:0},message:"must be >= 0"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.row){let e=n.row;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/row",schemaPath:"#/properties/spanningCells/items/properties/row/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}if("number"==typeof e&&isFinite(e)&&(e<0||isNaN(e))){const e={instancePath:i+"/spanningCells/"+o+"/row",schemaPath:"#/properties/spanningCells/items/properties/row/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.colSpan){let e=n.colSpan;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/colSpan",schemaPath:"#/properties/spanningCells/items/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}if("number"==typeof e&&isFinite(e)&&(e<1||isNaN(e))){const e={instancePath:i+"/spanningCells/"+o+"/colSpan",schemaPath:"#/properties/spanningCells/items/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.rowSpan){let e=n.rowSpan;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/rowSpan",schemaPath:"#/properties/spanningCells/items/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}if("number"==typeof e&&isFinite(e)&&(e<1||isNaN(e))){const e={instancePath:i+"/spanningCells/"+o+"/rowSpan",schemaPath:"#/properties/spanningCells/items/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.alignment&&(a(n.alignment,{instancePath:i+"/spanningCells/"+o+"/alignment",parentData:n,parentDataProperty:"alignment",rootData:l})||(u=null===u?a.errors:u.concat(a.errors),d=u.length)),void 0!==n.verticalAlignment&&(m(n.verticalAlignment,{instancePath:i+"/spanningCells/"+o+"/verticalAlignment",parentData:n,parentDataProperty:"verticalAlignment",rootData:l})||(u=null===u?m.errors:u.concat(m.errors),d=u.length)),void 0!==n.wrapWord&&"boolean"!=typeof n.wrapWord){const e={instancePath:i+"/spanningCells/"+o+"/wrapWord",schemaPath:"#/properties/spanningCells/items/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===u?u=[e]:u.push(e),d++}if(void 0!==n.truncate){let e=n.truncate;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/truncate",schemaPath:"#/properties/spanningCells/items/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.paddingLeft){let e=n.paddingLeft;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/paddingLeft",schemaPath:"#/properties/spanningCells/items/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}if(void 0!==n.paddingRight){let e=n.paddingRight;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:i+"/spanningCells/"+o+"/paddingRight",schemaPath:"#/properties/spanningCells/items/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===u?u=[e]:u.push(e),d++}}}else{const e={instancePath:i+"/spanningCells/"+o,schemaPath:"#/properties/spanningCells/items/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),d++}}}else{const e={instancePath:i+"/spanningCells",schemaPath:"#/properties/spanningCells/type",keyword:"type",params:{type:"array"},message:"must be array"};null===u?u=[e]:u.push(e),d++}}}else{const e={instancePath:i,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),d++}return e.errors=u,0===d};const t={$id:"config.json",$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{border:{$ref:"shared.json#/definitions/borders"},header:{type:"object",properties:{content:{type:"string"},alignment:{$ref:"shared.json#/definitions/alignment"},wrapWord:{type:"boolean"},truncate:{type:"integer"},paddingLeft:{type:"integer"},paddingRight:{type:"integer"}},required:["content"],additionalProperties:!1},columns:{$ref:"shared.json#/definitions/columns"},columnDefault:{$ref:"shared.json#/definitions/column"},drawVerticalLine:{typeof:"function"},drawHorizontalLine:{typeof:"function"},singleLine:{typeof:"boolean"},spanningCells:{type:"array",items:{type:"object",properties:{col:{type:"integer",minimum:0},row:{type:"integer",minimum:0},colSpan:{type:"integer",minimum:1},rowSpan:{type:"integer",minimum:1},alignment:{$ref:"shared.json#/definitions/alignment"},verticalAlignment:{$ref:"shared.json#/definitions/verticalAlignment"},wrapWord:{type:"boolean"},truncate:{type:"integer"},paddingLeft:{type:"integer"},paddingRight:{type:"integer"}},required:["row","col"],additionalProperties:!1}}},additionalProperties:!1},n={type:"object",properties:{topBody:{$ref:"#/definitions/border"},topJoin:{$ref:"#/definitions/border"},topLeft:{$ref:"#/definitions/border"},topRight:{$ref:"#/definitions/border"},bottomBody:{$ref:"#/definitions/border"},bottomJoin:{$ref:"#/definitions/border"},bottomLeft:{$ref:"#/definitions/border"},bottomRight:{$ref:"#/definitions/border"},bodyLeft:{$ref:"#/definitions/border"},bodyRight:{$ref:"#/definitions/border"},bodyJoin:{$ref:"#/definitions/border"},headerJoin:{$ref:"#/definitions/border"},joinBody:{$ref:"#/definitions/border"},joinLeft:{$ref:"#/definitions/border"},joinRight:{$ref:"#/definitions/border"},joinJoin:{$ref:"#/definitions/border"},joinMiddleUp:{$ref:"#/definitions/border"},joinMiddleDown:{$ref:"#/definitions/border"},joinMiddleLeft:{$ref:"#/definitions/border"},joinMiddleRight:{$ref:"#/definitions/border"}},additionalProperties:!1},r=Object.prototype.hasOwnProperty;function i(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:o=e}={}){let s=null,a=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===s?s=[e]:s.push(e),a++}return i.errors=s,0===a}function o(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:c=e}={}){let l=null,u=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const i in e)if(!r.call(n.properties,i)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};null===l?l=[e]:l.push(e),u++}void 0!==e.topBody&&(i(e.topBody,{instancePath:t+"/topBody",parentData:e,parentDataProperty:"topBody",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.topJoin&&(i(e.topJoin,{instancePath:t+"/topJoin",parentData:e,parentDataProperty:"topJoin",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.topLeft&&(i(e.topLeft,{instancePath:t+"/topLeft",parentData:e,parentDataProperty:"topLeft",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.topRight&&(i(e.topRight,{instancePath:t+"/topRight",parentData:e,parentDataProperty:"topRight",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bottomBody&&(i(e.bottomBody,{instancePath:t+"/bottomBody",parentData:e,parentDataProperty:"bottomBody",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bottomJoin&&(i(e.bottomJoin,{instancePath:t+"/bottomJoin",parentData:e,parentDataProperty:"bottomJoin",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bottomLeft&&(i(e.bottomLeft,{instancePath:t+"/bottomLeft",parentData:e,parentDataProperty:"bottomLeft",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bottomRight&&(i(e.bottomRight,{instancePath:t+"/bottomRight",parentData:e,parentDataProperty:"bottomRight",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bodyLeft&&(i(e.bodyLeft,{instancePath:t+"/bodyLeft",parentData:e,parentDataProperty:"bodyLeft",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bodyRight&&(i(e.bodyRight,{instancePath:t+"/bodyRight",parentData:e,parentDataProperty:"bodyRight",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.bodyJoin&&(i(e.bodyJoin,{instancePath:t+"/bodyJoin",parentData:e,parentDataProperty:"bodyJoin",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.headerJoin&&(i(e.headerJoin,{instancePath:t+"/headerJoin",parentData:e,parentDataProperty:"headerJoin",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinBody&&(i(e.joinBody,{instancePath:t+"/joinBody",parentData:e,parentDataProperty:"joinBody",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinLeft&&(i(e.joinLeft,{instancePath:t+"/joinLeft",parentData:e,parentDataProperty:"joinLeft",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinRight&&(i(e.joinRight,{instancePath:t+"/joinRight",parentData:e,parentDataProperty:"joinRight",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinJoin&&(i(e.joinJoin,{instancePath:t+"/joinJoin",parentData:e,parentDataProperty:"joinJoin",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinMiddleUp&&(i(e.joinMiddleUp,{instancePath:t+"/joinMiddleUp",parentData:e,parentDataProperty:"joinMiddleUp",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinMiddleDown&&(i(e.joinMiddleDown,{instancePath:t+"/joinMiddleDown",parentData:e,parentDataProperty:"joinMiddleDown",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinMiddleLeft&&(i(e.joinMiddleLeft,{instancePath:t+"/joinMiddleLeft",parentData:e,parentDataProperty:"joinMiddleLeft",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length)),void 0!==e.joinMiddleRight&&(i(e.joinMiddleRight,{instancePath:t+"/joinMiddleRight",parentData:e,parentDataProperty:"joinMiddleRight",rootData:c})||(l=null===l?i.errors:l.concat(i.errors),u=l.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===l?l=[e]:l.push(e),u++}return o.errors=l,0===u}const s={type:"string",enum:["left","right","center","justify"]};function a(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,c=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),c++}if("left"!==e&&"right"!==e&&"center"!==e&&"justify"!==e){const e={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:s.enum},message:"must be equal to one of the allowed values"};null===o?o=[e]:o.push(e),c++}return a.errors=o,0===c}requireEqual().default;const c=new RegExp("^[0-9]+$","u");function l(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,a=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),a++}if("left"!==e&&"right"!==e&&"center"!==e&&"justify"!==e){const e={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:s.enum},message:"must be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}return l.errors=o,0===a}const u={type:"string",enum:["top","middle","bottom"]};function d(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,s=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),s++}if("top"!==e&&"middle"!==e&&"bottom"!==e){const e={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:u.enum},message:"must be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}return d.errors=o,0===s}function p(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,s=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const n in e)if("alignment"!==n&&"verticalAlignment"!==n&&"width"!==n&&"wrapWord"!==n&&"truncate"!==n&&"paddingLeft"!==n&&"paddingRight"!==n){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.alignment&&(l(e.alignment,{instancePath:t+"/alignment",parentData:e,parentDataProperty:"alignment",rootData:i})||(o=null===o?l.errors:o.concat(l.errors),s=o.length)),void 0!==e.verticalAlignment&&(d(e.verticalAlignment,{instancePath:t+"/verticalAlignment",parentData:e,parentDataProperty:"verticalAlignment",rootData:i})||(o=null===o?d.errors:o.concat(d.errors),s=o.length)),void 0!==e.width){let n=e.width;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}if("number"==typeof n&&isFinite(n)&&(n<1||isNaN(n))){const e={instancePath:t+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.wrapWord&&"boolean"!=typeof e.wrapWord){const e={instancePath:t+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.truncate){let n=e.truncate;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingLeft){let n=e.paddingLeft;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingRight){let n=e.paddingRight;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),s++}return p.errors=o,0===s}function f(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,s=0;const a=s;let l=!1,u=null;const d=s;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const n in e)if(!c.test(n)){const e={instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),s++}for(const n in e)c.test(n)&&(p(e[n],{instancePath:t+"/"+n.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:n,rootData:i})||(o=null===o?p.errors:o.concat(p.errors),s=o.length))}else{const e={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),s++}(m=d===s)&&(l=!0,u=0);const _=s;if(Array.isArray(e)){const n=e.length;for(let r=0;r=",limit:1},message:"must be >= 1"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.wrapWord&&"boolean"!=typeof e.wrapWord){const e={instancePath:t+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.truncate){let n=e.truncate;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingLeft){let n=e.paddingLeft;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingRight){let n=e.paddingRight;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),s++}return _.errors=o,0===s}function m(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,s=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),s++}if("top"!==e&&"middle"!==e&&"bottom"!==e){const e={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:u.enum},message:"must be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}return m.errors=o,0===s}function h(e,{instancePath:t="",parentData:o,parentDataProperty:s,rootData:a=e}={}){let c=null,l=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const i in e)if(!r.call(n.properties,i)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};null===c?c=[e]:c.push(e),l++}void 0!==e.topBody&&(i(e.topBody,{instancePath:t+"/topBody",parentData:e,parentDataProperty:"topBody",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.topJoin&&(i(e.topJoin,{instancePath:t+"/topJoin",parentData:e,parentDataProperty:"topJoin",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.topLeft&&(i(e.topLeft,{instancePath:t+"/topLeft",parentData:e,parentDataProperty:"topLeft",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.topRight&&(i(e.topRight,{instancePath:t+"/topRight",parentData:e,parentDataProperty:"topRight",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bottomBody&&(i(e.bottomBody,{instancePath:t+"/bottomBody",parentData:e,parentDataProperty:"bottomBody",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bottomJoin&&(i(e.bottomJoin,{instancePath:t+"/bottomJoin",parentData:e,parentDataProperty:"bottomJoin",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bottomLeft&&(i(e.bottomLeft,{instancePath:t+"/bottomLeft",parentData:e,parentDataProperty:"bottomLeft",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bottomRight&&(i(e.bottomRight,{instancePath:t+"/bottomRight",parentData:e,parentDataProperty:"bottomRight",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bodyLeft&&(i(e.bodyLeft,{instancePath:t+"/bodyLeft",parentData:e,parentDataProperty:"bodyLeft",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bodyRight&&(i(e.bodyRight,{instancePath:t+"/bodyRight",parentData:e,parentDataProperty:"bodyRight",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.bodyJoin&&(i(e.bodyJoin,{instancePath:t+"/bodyJoin",parentData:e,parentDataProperty:"bodyJoin",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.headerJoin&&(i(e.headerJoin,{instancePath:t+"/headerJoin",parentData:e,parentDataProperty:"headerJoin",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinBody&&(i(e.joinBody,{instancePath:t+"/joinBody",parentData:e,parentDataProperty:"joinBody",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinLeft&&(i(e.joinLeft,{instancePath:t+"/joinLeft",parentData:e,parentDataProperty:"joinLeft",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinRight&&(i(e.joinRight,{instancePath:t+"/joinRight",parentData:e,parentDataProperty:"joinRight",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinJoin&&(i(e.joinJoin,{instancePath:t+"/joinJoin",parentData:e,parentDataProperty:"joinJoin",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinMiddleUp&&(i(e.joinMiddleUp,{instancePath:t+"/joinMiddleUp",parentData:e,parentDataProperty:"joinMiddleUp",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinMiddleDown&&(i(e.joinMiddleDown,{instancePath:t+"/joinMiddleDown",parentData:e,parentDataProperty:"joinMiddleDown",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinMiddleLeft&&(i(e.joinMiddleLeft,{instancePath:t+"/joinMiddleLeft",parentData:e,parentDataProperty:"joinMiddleLeft",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length)),void 0!==e.joinMiddleRight&&(i(e.joinMiddleRight,{instancePath:t+"/joinMiddleRight",parentData:e,parentDataProperty:"joinMiddleRight",rootData:a})||(c=null===c?i.errors:c.concat(i.errors),l=c.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===c?c=[e]:c.push(e),l++}return h.errors=c,0===l}function g(e,{instancePath:t="",parentData:n,parentDataProperty:r,rootData:i=e}={}){let o=null,s=0;const a=s;let l=!1,u=null;const d=s;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const n in e)if(!c.test(n)){const e={instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),s++}for(const n in e)c.test(n)&&(p(e[n],{instancePath:t+"/"+n.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:n,rootData:i})||(o=null===o?p.errors:o.concat(p.errors),s=o.length))}else{const e={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),s++}(_=d===s)&&(l=!0,u=0);const f=s;if(Array.isArray(e)){const n=e.length;for(let r=0;r=",limit:1},message:"must be >= 1"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.wrapWord&&"boolean"!=typeof e.wrapWord){const e={instancePath:t+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.truncate){let n=e.truncate;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingLeft){let n=e.paddingLeft;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.paddingRight){let n=e.paddingRight;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n)){const e={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),s++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),s++}return A.errors=o,0===s}e["streamConfig.json"]=function e(t,{instancePath:n="",parentData:r,parentDataProperty:i,rootData:o=t}={}){let s=null,a=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.columnDefault){const e={instancePath:n,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columnDefault"},message:"must have required property 'columnDefault'"};null===s?s=[e]:s.push(e),a++}if(void 0===t.columnCount){const e={instancePath:n,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columnCount"},message:"must have required property 'columnCount'"};null===s?s=[e]:s.push(e),a++}for(const e in t)if("border"!==e&&"columns"!==e&&"columnDefault"!==e&&"columnCount"!==e&&"drawVerticalLine"!==e){const t={instancePath:n,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===s?s=[t]:s.push(t),a++}if(void 0!==t.border&&(h(t.border,{instancePath:n+"/border",parentData:t,parentDataProperty:"border",rootData:o})||(s=null===s?h.errors:s.concat(h.errors),a=s.length)),void 0!==t.columns&&(g(t.columns,{instancePath:n+"/columns",parentData:t,parentDataProperty:"columns",rootData:o})||(s=null===s?g.errors:s.concat(g.errors),a=s.length)),void 0!==t.columnDefault&&(A(t.columnDefault,{instancePath:n+"/columnDefault",parentData:t,parentDataProperty:"columnDefault",rootData:o})||(s=null===s?A.errors:s.concat(A.errors),a=s.length)),void 0!==t.columnCount){let e=t.columnCount;if("number"!=typeof e||e%1||isNaN(e)||!isFinite(e)){const e={instancePath:n+"/columnCount",schemaPath:"#/properties/columnCount/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===s?s=[e]:s.push(e),a++}if("number"==typeof e&&isFinite(e)&&(e<1||isNaN(e))){const e={instancePath:n+"/columnCount",schemaPath:"#/properties/columnCount/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};null===s?s=[e]:s.push(e),a++}}if(void 0!==t.drawVerticalLine&&"function"!=typeof t.drawVerticalLine){const e={instancePath:n+"/drawVerticalLine",schemaPath:"#/properties/drawVerticalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};null===s?s=[e]:s.push(e),a++}}else{const e={instancePath:n,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===s?s=[e]:s.push(e),a++}return e.errors=s,0===a}}(validators)),validators}function requireValidateConfig(){if(hasRequiredValidateConfig)return validateConfig;hasRequiredValidateConfig=1;var e=validateConfig&&validateConfig.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(validateConfig,"__esModule",{value:!0}),validateConfig.validateConfig=void 0;const t=e(requireValidators());return validateConfig.validateConfig=(e,n)=>{const r=t.default[e];if(!r(n)&&r.errors){const e=r.errors.map((e=>({message:e.message,params:e.params,schemaPath:e.schemaPath})));throw console.log("config",n),console.log("errors",e),new Error("Invalid config.")}},validateConfig}function requireMakeStreamConfig(){if(hasRequiredMakeStreamConfig)return makeStreamConfig;hasRequiredMakeStreamConfig=1,Object.defineProperty(makeStreamConfig,"__esModule",{value:!0}),makeStreamConfig.makeStreamConfig=void 0;const e=requireUtils(),t=requireValidateConfig(),n=(e,t={},n)=>Array.from({length:e}).map(((e,r)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",wrapWord:!1,...n,...t[r]})));return makeStreamConfig.makeStreamConfig=r=>{if((0,t.validateConfig)("streamConfig.json",r),void 0===r.columnDefault.width)throw new Error("Must provide config.columnDefault.width when creating a stream.");return{drawVerticalLine:()=>!0,...r,border:(0,e.makeBorderConfig)(r.border),columns:n(r.columnCount,r.columns,r.columnDefault)}},makeStreamConfig}var mapDataUsingRowHeights={},hasRequiredMapDataUsingRowHeights;function requireMapDataUsingRowHeights(){return hasRequiredMapDataUsingRowHeights||(hasRequiredMapDataUsingRowHeights=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mapDataUsingRowHeights=e.padCellVertically=void 0;const t=requireUtils(),n=requireWrapCell(),r=e=>new Array(e).fill("");e.padCellVertically=(e,t,n)=>{const i=t-e.length;return"top"===n?[...e,...r(i)]:"bottom"===n?[...r(i),...e]:[...r(Math.floor(i/2)),...e,...r(Math.ceil(i/2))]};e.mapDataUsingRowHeights=(r,i,o)=>{const s=r[0].length,a=r.map(((t,r)=>{const a=i[r],c=Array.from({length:a},(()=>new Array(s).fill("")));return t.forEach(((t,i)=>{var s;const l=null===(s=o.spanningCellManager)||void 0===s?void 0:s.getContainingRange({col:i,row:r});if(l)return void l.extractCellContent(r).forEach(((e,t)=>{c[t][i]=e}));const u=(0,n.wrapCell)(t,o.columns[i].width,o.columns[i].wrapWord);(0,e.padCellVertically)(u,a,o.columns[i].verticalAlignment).forEach(((e,t)=>{c[t][i]=e}))})),c}));return(0,t.flatten)(a)}}(mapDataUsingRowHeights)),mapDataUsingRowHeights}var padTableData={},hasRequiredPadTableData;function requirePadTableData(){return hasRequiredPadTableData||(hasRequiredPadTableData=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.padTableData=e.padString=void 0;e.padString=(e,t,n)=>" ".repeat(t)+e+" ".repeat(n);e.padTableData=(t,n)=>t.map(((t,r)=>t.map(((t,i)=>{var o;if(null===(o=n.spanningCellManager)||void 0===o?void 0:o.getContainingRange({col:i,row:r},{mapped:!0}))return t;const{paddingLeft:s,paddingRight:a}=n.columns[i];return(0,e.padString)(t,s,a)}))))}(padTableData)),padTableData}var stringifyTableData={},hasRequiredStringifyTableData;function requireStringifyTableData(){if(hasRequiredStringifyTableData)return stringifyTableData;hasRequiredStringifyTableData=1,Object.defineProperty(stringifyTableData,"__esModule",{value:!0}),stringifyTableData.stringifyTableData=void 0;const e=requireUtils();return stringifyTableData.stringifyTableData=t=>t.map((t=>t.map((t=>(0,e.normalizeString)(String(t)))))),stringifyTableData}var truncateTableData={},lodash_truncate={exports:{}},hasRequiredLodash_truncate,hasRequiredTruncateTableData,hasRequiredCreateStream;function requireLodash_truncate(){return hasRequiredLodash_truncate||(hasRequiredLodash_truncate=1,function(e,t){var n,r=1/0,i=NaN,o=/^\s+|\s+$/g,s=/\w*$/,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u="\\ud800-\\udfff",d="\\u0300-\\u036f\\ufe20-\\ufe23",p="\\u20d0-\\u20f0",f="\\ufe0e\\ufe0f",_="["+u+"]",m="["+d+p+"]",h="\\ud83c[\\udffb-\\udfff]",g="[^"+u+"]",A="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",v="\\u200d",b="(?:"+m+"|"+h+")"+"?",C="["+f+"]?",E=C+b+("(?:"+v+"(?:"+[g,A,y].join("|")+")"+C+b+")*"),x="(?:"+[g+m+"?",m,A,y,_].join("|")+")",S=RegExp(h+"(?="+h+")|"+x+E,"g"),k=RegExp("["+v+u+d+p+f+"]"),D=parseInt,w="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,I="object"==typeof self&&self&&self.Object===Object&&self,T=w||I||Function("return this")(),F=t&&!t.nodeType&&t,R=F&&e&&!e.nodeType&&e,P=R&&R.exports===F&&w.process,N=function(){try{return P&&P.binding("util")}catch(e){}}(),B=N&&N.isRegExp,O=(n="length",function(e){return null==e?void 0:e[n]});function q(e){return k.test(e)}function $(e){return q(e)?function(e){var t=S.lastIndex=0;for(;S.test(e);)t++;return t}(e):O(e)}function Q(e){return q(e)?function(e){return e.match(S)||[]}(e):function(e){return e.split("")}(e)}var L=Object.prototype.toString,M=T.Symbol,j=M?M.prototype:void 0,U=j?j.toString:void 0;function J(e){if("string"==typeof e)return e;if(z(e))return U?U.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function V(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=o)return e;var c=n-$(r);if(c<1)return r;var l=a?V(a,0,c).join(""):e.slice(0,c);if(void 0===i)return l+r;if(a&&(c+=l.length-c),W(i)){if(e.slice(c).search(i)){var u,d=l;for(i.global||(i=RegExp(i.source,K(s.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;l=l.slice(0,void 0===p?c:p)}}else if(e.indexOf(J(i),c)!=c){var f=l.lastIndexOf(i);f>-1&&(l=l.slice(0,f))}return l+r}}(lodash_truncate,lodash_truncate.exports)),lodash_truncate.exports}function requireTruncateTableData(){return hasRequiredTruncateTableData||(hasRequiredTruncateTableData=1,function(e){var t=truncateTableData&&truncateTableData.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.truncateTableData=e.truncateString=void 0;const n=t(requireLodash_truncate());e.truncateString=(e,t)=>(0,n.default)(e,{length:t,omission:"โ€ฆ"});e.truncateTableData=(t,n)=>t.map((t=>t.map(((t,r)=>(0,e.truncateString)(t,n[r])))))}(truncateTableData)),truncateTableData}function requireCreateStream(){if(hasRequiredCreateStream)return createStream;hasRequiredCreateStream=1,Object.defineProperty(createStream,"__esModule",{value:!0}),createStream.createStream=void 0;const e=requireAlignTableData(),t=requireCalculateRowHeights(),n=requireDrawBorder(),r=requireDrawRow(),i=requireMakeStreamConfig(),o=requireMapDataUsingRowHeights(),s=requirePadTableData(),a=requireStringifyTableData(),c=requireTruncateTableData(),l=requireUtils(),u=(n,r)=>{let i=(0,a.stringifyTableData)(n);i=(0,c.truncateTableData)(i,(0,l.extractTruncates)(r));const u=(0,t.calculateRowHeights)(i,r);return i=(0,o.mapDataUsingRowHeights)(i,u,r),i=(0,e.alignTableData)(i,r),i=(0,s.padTableData)(i,r),i};return createStream.createStream=e=>{const t=(0,i.makeStreamConfig)(e),o=Object.values(t.columns).map((e=>e.width+e.paddingLeft+e.paddingRight));let s=!0;return{write:e=>{if(e.length!==t.columnCount)throw new Error("Row cell count does not match the config.columnCount.");s?(s=!1,((e,t,i)=>{const o=u([e],i).map((e=>(0,r.drawRow)(e,i))).join("");let s;s="",s+=(0,n.drawBorderTop)(t,i),s+=o,s+=(0,n.drawBorderBottom)(t,i),s=s.trimEnd(),process.stdout.write(s)})(e,o,t)):((e,t,i)=>{const o=u([e],i).map((e=>(0,r.drawRow)(e,i))).join("");let s="";const a=(0,n.drawBorderBottom)(t,i);"\n"!==a&&(s="\r"),s+=(0,n.drawBorderJoin)(t,i),s+=o,s+=a,s=s.trimEnd(),process.stdout.write(s)})(e,o,t)}}},createStream}lodash_truncate.exports;var table={},calculateOutputColumnWidths={},hasRequiredCalculateOutputColumnWidths;function requireCalculateOutputColumnWidths(){if(hasRequiredCalculateOutputColumnWidths)return calculateOutputColumnWidths;hasRequiredCalculateOutputColumnWidths=1,Object.defineProperty(calculateOutputColumnWidths,"__esModule",{value:!0}),calculateOutputColumnWidths.calculateOutputColumnWidths=void 0;return calculateOutputColumnWidths.calculateOutputColumnWidths=e=>e.columns.map((e=>e.paddingLeft+e.width+e.paddingRight)),calculateOutputColumnWidths}var drawTable={},hasRequiredDrawTable;function requireDrawTable(){if(hasRequiredDrawTable)return drawTable;hasRequiredDrawTable=1,Object.defineProperty(drawTable,"__esModule",{value:!0}),drawTable.drawTable=void 0;const e=requireDrawBorder(),t=requireDrawContent(),n=requireDrawRow(),r=requireUtils();return drawTable.drawTable=(i,o,s,a)=>{const{drawHorizontalLine:c,singleLine:l}=a,u=(0,r.groupBySizes)(i,s).map(((e,t)=>e.map((e=>(0,n.drawRow)(e,{...a,rowIndex:t}))).join("")));return(0,t.drawContent)({contents:u,drawSeparator:(e,t)=>(0===e||e===t||!l)&&c(e,t),elementType:"row",rowIndex:-1,separatorGetter:(0,e.createTableBorderGetter)(o,{...a,rowCount:u.length}),spanningCellManager:a.spanningCellManager})},drawTable}var injectHeaderConfig={},hasRequiredInjectHeaderConfig;function requireInjectHeaderConfig(){if(hasRequiredInjectHeaderConfig)return injectHeaderConfig;hasRequiredInjectHeaderConfig=1,Object.defineProperty(injectHeaderConfig,"__esModule",{value:!0}),injectHeaderConfig.injectHeaderConfig=void 0;return injectHeaderConfig.injectHeaderConfig=(e,t)=>{var n;let r=null!==(n=t.spanningCells)&&void 0!==n?n:[];const i=t.header,o=[...e];if(i){r=r.map((({row:e,...t})=>({...t,row:e+1})));const{content:t,...n}=i;r.unshift({alignment:"center",col:0,colSpan:e[0].length,paddingLeft:1,paddingRight:1,row:0,wrapWord:!1,...n}),o.unshift([t,...Array.from({length:e[0].length-1}).fill("")])}return[o,r]},injectHeaderConfig}var makeTableConfig={},calculateMaximumColumnWidths={},hasRequiredCalculateMaximumColumnWidths;function requireCalculateMaximumColumnWidths(){return hasRequiredCalculateMaximumColumnWidths||(hasRequiredCalculateMaximumColumnWidths=1,function(e){var t=calculateMaximumColumnWidths&&calculateMaximumColumnWidths.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.calculateMaximumColumnWidths=e.calculateMaximumCellWidth=void 0;const n=t(requireStringWidth()),r=requireUtils();e.calculateMaximumCellWidth=e=>Math.max(...e.split("\n").map(n.default));e.calculateMaximumColumnWidths=(t,n=[])=>{const i=new Array(t[0].length).fill(0),o=n.map(r.calculateRangeCoordinate);return t.forEach(((t,n)=>{t.forEach(((t,s)=>{((e,t)=>o.some((n=>(0,r.isCellInRange)({col:t,row:e},n))))(n,s)||(i[s]=Math.max(i[s],(0,e.calculateMaximumCellWidth)(t)))}))})),i}}(calculateMaximumColumnWidths)),calculateMaximumColumnWidths}var spanningCellManager={},alignSpanningCell={},hasRequiredAlignSpanningCell;function requireAlignSpanningCell(){if(hasRequiredAlignSpanningCell)return alignSpanningCell;hasRequiredAlignSpanningCell=1;var e=alignSpanningCell&&alignSpanningCell.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(alignSpanningCell,"__esModule",{value:!0}),alignSpanningCell.alignVerticalRangeContent=alignSpanningCell.wrapRangeContent=void 0;const t=e(requireStringWidth()),n=requireAlignString(),r=requireMapDataUsingRowHeights(),i=requirePadTableData(),o=requireTruncateTableData(),s=requireUtils(),a=requireWrapCell();alignSpanningCell.wrapRangeContent=(e,t,r)=>{const{topLeft:s,paddingRight:c,paddingLeft:l,truncate:u,wrapWord:d,alignment:p}=e,f=r.rows[s.row][s.col],_=t-l-c;return(0,a.wrapCell)((0,o.truncateString)(f,u),_,d).map((e=>{const t=(0,n.alignString)(e,_,p);return(0,i.padString)(t,l,c)}))};return alignSpanningCell.alignVerticalRangeContent=(e,n,i)=>{const{rows:o,drawHorizontalLine:a,rowHeights:c}=i,{topLeft:l,bottomRight:u,verticalAlignment:d}=e;if(0===c.length)return[];const p=(0,s.sumArray)(c.slice(l.row,u.row+1))+(u.row-l.row)-(0,s.sequence)(l.row+1,u.row).filter((e=>!a(e,o.length))).length;return(0,r.padCellVertically)(n,p,d).map((e=>0===e.length?" ".repeat((0,t.default)(n[0])):e))},alignSpanningCell}var calculateSpanningCellWidth={},hasRequiredCalculateSpanningCellWidth;function requireCalculateSpanningCellWidth(){if(hasRequiredCalculateSpanningCellWidth)return calculateSpanningCellWidth;hasRequiredCalculateSpanningCellWidth=1,Object.defineProperty(calculateSpanningCellWidth,"__esModule",{value:!0}),calculateSpanningCellWidth.calculateSpanningCellWidth=void 0;const e=requireUtils();return calculateSpanningCellWidth.calculateSpanningCellWidth=(t,n)=>{const{columnsConfig:r,drawVerticalLine:i}=n,{topLeft:o,bottomRight:s}=t;return(0,e.sumArray)(r.slice(o.col,s.col+1).map((({width:e})=>e)))+(o.col===s.col?r[o.col].paddingRight+r[s.col].paddingLeft:(0,e.sumArray)(r.slice(o.col,s.col+1).map((({paddingLeft:e,paddingRight:t})=>e+t))))+(s.col-o.col)-(0,e.sequence)(o.col+1,s.col).filter((e=>!i(e,r.length))).length},calculateSpanningCellWidth}var makeRangeConfig={},hasRequiredMakeRangeConfig,hasRequiredSpanningCellManager;function requireMakeRangeConfig(){if(hasRequiredMakeRangeConfig)return makeRangeConfig;hasRequiredMakeRangeConfig=1,Object.defineProperty(makeRangeConfig,"__esModule",{value:!0}),makeRangeConfig.makeRangeConfig=void 0;const e=requireUtils();return makeRangeConfig.makeRangeConfig=(t,n)=>{var r;const{topLeft:i,bottomRight:o}=(0,e.calculateRangeCoordinate)(t);return{...{...n[i.col],...t,paddingRight:null!==(r=t.paddingRight)&&void 0!==r?r:n[o.col].paddingRight},bottomRight:o,topLeft:i}},makeRangeConfig}function requireSpanningCellManager(){if(hasRequiredSpanningCellManager)return spanningCellManager;hasRequiredSpanningCellManager=1,Object.defineProperty(spanningCellManager,"__esModule",{value:!0}),spanningCellManager.createSpanningCellManager=void 0;const e=requireAlignSpanningCell(),t=requireCalculateSpanningCellWidth(),n=requireMakeRangeConfig(),r=requireUtils(),i=(e,t)=>t.find((t=>(0,r.isCellInRange)(e,t))),o=(n,i)=>{const o=(0,t.calculateSpanningCellWidth)(n,i),s=(0,e.wrapRangeContent)(n,o,i),a=(0,e.alignVerticalRangeContent)(n,s,i);return{...n,extractBorderContent:e=>{const{topLeft:t}=n,o=(0,r.sumArray)(i.rowHeights.slice(t.row,e))+(e-t.row-1);return a[o]},extractCellContent:e=>{const{topLeft:t}=n,{drawHorizontalLine:o,rowHeights:s}=i,c=e-t.row,l=(0,r.sequence)(t.row+1,e).filter((e=>!(null==o?void 0:o(e,s.length)))).length,u=(0,r.sumArray)(s.slice(t.row,e))+c-l;return a.slice(u,u+s[e])},height:s.length,width:o}};return spanningCellManager.createSpanningCellManager=e=>{const{spanningCellConfigs:t,columnsConfig:s}=e,a=t.map((e=>(0,n.makeRangeConfig)(e,s))),c={};let l=[],u=[];return{getContainingRange:(t,n)=>{var r;const s=(null==n?void 0:n.mapped)?u[t.row]:t.row,d=i({...t,row:s},a);if(!d)return;if(0===l.length)return o(d,{...e,rowHeights:l});const p=(e=>{const{row:t,col:n}=e.topLeft;return`${t}/${n}`})(d);return null!==(r=c[p])&&void 0!==r||(c[p]=o(d,{...e,rowHeights:l})),c[p]},inSameRange:(e,t)=>((e,t,n)=>{const o=i(e,n),s=i(t,n);return!(!o||!s)&&(0,r.areCellEqual)(o.topLeft,s.topLeft)})(e,t,a),rowHeights:l,rowIndexMapping:u,setRowHeights:e=>{l=e},setRowIndexMapping:e=>{u=(0,r.flatten)(e.map(((e,t)=>Array.from({length:e},(()=>t)))))}}},spanningCellManager}var validateSpanningCellConfig={},hasRequiredValidateSpanningCellConfig,hasRequiredMakeTableConfig;function requireValidateSpanningCellConfig(){if(hasRequiredValidateSpanningCellConfig)return validateSpanningCellConfig;hasRequiredValidateSpanningCellConfig=1,Object.defineProperty(validateSpanningCellConfig,"__esModule",{value:!0}),validateSpanningCellConfig.validateSpanningCellConfig=void 0;const e=requireUtils(),t=(e,t,n)=>e<=n&&n<=t;return validateSpanningCellConfig.validateSpanningCellConfig=(n,r)=>{const[i,o]=[n.length,n[0].length];r.forEach(((e,t)=>{const{colSpan:n,rowSpan:r}=e;if(void 0===n&&void 0===r)throw new Error(`Expect at least colSpan or rowSpan is provided in config.spanningCells[${t}]`);if(void 0!==n&&n<1)throw new Error(`Expect colSpan is not equal zero, instead got: ${n} in config.spanningCells[${t}]`);if(void 0!==r&&r<1)throw new Error(`Expect rowSpan is not equal zero, instead got: ${r} in config.spanningCells[${t}]`)}));const s=r.map(e.calculateRangeCoordinate);s.forEach((({topLeft:e,bottomRight:n},r)=>{if(!(t(0,o-1,e.col)&&t(0,i-1,e.row)&&t(0,o-1,n.col)&&t(0,i-1,n.row)))throw new Error(`Some cells in config.spanningCells[${r}] are out of the table`)}));const a=Array.from({length:i},(()=>Array.from({length:o})));s.forEach((({topLeft:t,bottomRight:n},r)=>{(0,e.sequence)(t.row,n.row).forEach((i=>{(0,e.sequence)(t.col,n.col).forEach((e=>{if(void 0!==a[i][e])throw new Error(`Spanning cells in config.spanningCells[${a[i][e]}] and config.spanningCells[${r}] are overlap each other`);a[i][e]=r}))}))}))},validateSpanningCellConfig}function requireMakeTableConfig(){if(hasRequiredMakeTableConfig)return makeTableConfig;hasRequiredMakeTableConfig=1,Object.defineProperty(makeTableConfig,"__esModule",{value:!0}),makeTableConfig.makeTableConfig=void 0;const e=requireCalculateMaximumColumnWidths(),t=requireSpanningCellManager(),n=requireUtils(),r=requireValidateConfig(),i=requireValidateSpanningCellConfig();return makeTableConfig.makeTableConfig=(o,s={},a)=>{var c,l,u,d,p;(0,r.validateConfig)("config.json",s),(0,i.validateSpanningCellConfig)(o,null!==(c=s.spanningCells)&&void 0!==c?c:[]);const f=null!==(l=null!=a?a:s.spanningCells)&&void 0!==l?l:[],_=((t,n,r,i)=>{const o=(0,e.calculateMaximumColumnWidths)(t,i);return t[0].map(((e,t)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",width:o[t],wrapWord:!1,...r,...null==n?void 0:n[t]})))})(o,s.columns,s.columnDefault,f),m=null!==(u=s.drawVerticalLine)&&void 0!==u?u:()=>!0,h=null!==(d=s.drawHorizontalLine)&&void 0!==d?d:()=>!0;return{...s,border:(0,n.makeBorderConfig)(s.border),columns:_,drawHorizontalLine:h,drawVerticalLine:m,singleLine:null!==(p=s.singleLine)&&void 0!==p&&p,spanningCellManager:(0,t.createSpanningCellManager)({columnsConfig:_,drawHorizontalLine:h,drawVerticalLine:m,rows:o,spanningCellConfigs:f})}},makeTableConfig}var validateTableData={},hasRequiredValidateTableData,hasRequiredTable;function requireValidateTableData(){if(hasRequiredValidateTableData)return validateTableData;hasRequiredValidateTableData=1,Object.defineProperty(validateTableData,"__esModule",{value:!0}),validateTableData.validateTableData=void 0;const e=requireUtils();return validateTableData.validateTableData=t=>{if(!Array.isArray(t))throw new TypeError("Table data must be an array.");if(0===t.length)throw new Error("Table must define at least one row.");if(0===t[0].length)throw new Error("Table must define at least one column.");const n=t[0].length;for(const r of t){if(!Array.isArray(r))throw new TypeError("Table row data must be an array.");if(r.length!==n)throw new Error("Table must have a consistent number of cells.");for(const t of r)if(/[\u0001-\u0006\u0008\u0009\u000B-\u001A]/.test((0,e.normalizeString)(String(t))))throw new Error("Table data must not contain control characters.")}},validateTableData}function requireTable(){if(hasRequiredTable)return table;hasRequiredTable=1,Object.defineProperty(table,"__esModule",{value:!0}),table.table=void 0;const e=requireAlignTableData(),t=requireCalculateOutputColumnWidths(),n=requireCalculateRowHeights(),r=requireDrawTable(),i=requireInjectHeaderConfig(),o=requireMakeTableConfig(),s=requireMapDataUsingRowHeights(),a=requirePadTableData(),c=requireStringifyTableData(),l=requireTruncateTableData(),u=requireUtils(),d=requireValidateTableData();return table.table=(p,f={})=>{(0,d.validateTableData)(p);let _=(0,c.stringifyTableData)(p);const[m,h]=(0,i.injectHeaderConfig)(_,f),g=(0,o.makeTableConfig)(m,f,h);_=(0,l.truncateTableData)(m,(0,u.extractTruncates)(g));const A=(0,n.calculateRowHeights)(_,g);g.spanningCellManager.setRowHeights(A),g.spanningCellManager.setRowIndexMapping(A),_=(0,s.mapDataUsingRowHeights)(_,A,g),_=(0,e.alignTableData)(_,g),_=(0,a.padTableData)(_,g);const y=(0,t.calculateOutputColumnWidths)(g);return(0,r.drawTable)(_,y,A,g)},table}var api={},hasRequiredApi,hasRequiredSrc$2;function requireApi(){return hasRequiredApi||(hasRequiredApi=1,Object.defineProperty(api,"__esModule",{value:!0})),api}function requireSrc$2(){return hasRequiredSrc$2||(hasRequiredSrc$2=1,function(e){var t=src$2&&src$2.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=src$2&&src$2.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.getBorderCharacters=e.createStream=e.table=void 0;const r=requireCreateStream();Object.defineProperty(e,"createStream",{enumerable:!0,get:function(){return r.createStream}});const i=requireGetBorderCharacters();Object.defineProperty(e,"getBorderCharacters",{enumerable:!0,get:function(){return i.getBorderCharacters}});const o=requireTable();Object.defineProperty(e,"table",{enumerable:!0,get:function(){return o.table}}),n(requireApi(),e)}(src$2)),src$2}var srcExports$1=requireSrc$2(),jsonpointerExports=requireJsonpointer(),jsonPointer=getDefaultExportFromCjs(jsonpointerExports);function findSchemaDefinition(e,t={}){const n=e;if(""===(e=e.trim()))return!1;if(!e.startsWith("#"))throw new Error(`Could not find a definition for ${n}.`);e=decodeURIComponent(e.substring(1));const r=jsonPointer.get(t,e);if(void 0===r)throw new Error(`Could not find a definition for ${n}.`);return r}var supportedMethods=new Set(["get","put","post","delete","options","head","patch","trace"]),CODE_SAMPLES="code-samples",EXPLORER_ENABLED="explorer-enabled",HEADERS="headers",METRICS_ENABLED="metrics-enabled",OAUTH_OPTIONS="oauth-options",PARAMETER_ORDERING="parameter-ordering",PROXY_ENABLED="proxy-enabled",SAMPLES_LANGUAGES="samples-languages",SIMPLE_MODE="simple-mode",DISABLE_TAG_SORTING="disable-tag-sorting",extensionDefaults={[CODE_SAMPLES]:void 0,[DISABLE_TAG_SORTING]:!1,[EXPLORER_ENABLED]:!0,[HEADERS]:void 0,[METRICS_ENABLED]:!0,[OAUTH_OPTIONS]:{},[PARAMETER_ORDERING]:["path","query","body","cookie","form","header"],[PROXY_ENABLED]:!0,[SAMPLES_LANGUAGES]:["shell","node","ruby","php","python","java","csharp"],[SIMPLE_MODE]:!0},_listCacheClear,hasRequired_listCacheClear,eq_1,hasRequiredEq,_assocIndexOf,hasRequired_assocIndexOf,_listCacheDelete,hasRequired_listCacheDelete,_listCacheGet,hasRequired_listCacheGet,_listCacheHas,hasRequired_listCacheHas,_listCacheSet,hasRequired_listCacheSet,_ListCache,hasRequired_ListCache,_stackClear,hasRequired_stackClear,_stackDelete,hasRequired_stackDelete,_stackGet,hasRequired_stackGet,_stackHas,hasRequired_stackHas,_freeGlobal,hasRequired_freeGlobal,_root,hasRequired_root,_Symbol,hasRequired_Symbol,_getRawTag,hasRequired_getRawTag,_objectToString,hasRequired_objectToString,_baseGetTag,hasRequired_baseGetTag,isObject_1,hasRequiredIsObject$1,isFunction_1,hasRequiredIsFunction$1,_coreJsData,hasRequired_coreJsData,_isMasked,hasRequired_isMasked,_toSource,hasRequired_toSource,_baseIsNative,hasRequired_baseIsNative,_getValue,hasRequired_getValue,_getNative,hasRequired_getNative,_Map,hasRequired_Map,_nativeCreate,hasRequired_nativeCreate,_hashClear,hasRequired_hashClear,_hashDelete,hasRequired_hashDelete,_hashGet,hasRequired_hashGet,_hashHas,hasRequired_hashHas,_hashSet,hasRequired_hashSet,_Hash,hasRequired_Hash,_mapCacheClear,hasRequired_mapCacheClear,_isKeyable,hasRequired_isKeyable,_getMapData,hasRequired_getMapData,_mapCacheDelete,hasRequired_mapCacheDelete,_mapCacheGet,hasRequired_mapCacheGet,_mapCacheHas,hasRequired_mapCacheHas,_mapCacheSet,hasRequired_mapCacheSet,_MapCache,hasRequired_MapCache,_stackSet,hasRequired_stackSet,_Stack,hasRequired_Stack,_arrayEach,hasRequired_arrayEach,_defineProperty,hasRequired_defineProperty,_baseAssignValue,hasRequired_baseAssignValue,_assignValue,hasRequired_assignValue,_copyObject,hasRequired_copyObject,_baseTimes,hasRequired_baseTimes,isObjectLike_1,hasRequiredIsObjectLike,_baseIsArguments,hasRequired_baseIsArguments,isArguments_1,hasRequiredIsArguments$1,isArray_1,hasRequiredIsArray;function hasRootExtension(e,t){return Boolean(t&&e in t)}function getExtension(e,t,n){if(n){if(n.hasExtension("x-readme")){const t=n.getExtension("x-readme");if(t&&"object"==typeof t&&e in t)return t[e]}if(n.hasExtension(`x-${e}`))return n.getExtension(`x-${e}`);if(n.hasExtension(e))return n.getExtension(e)}if(e===CODE_SAMPLES)return extensionDefaults[e];if(hasRootExtension("x-readme",t)){const n=t?.["x-readme"];if(n&&"object"==typeof n&&e in n)return n[e]}return hasRootExtension(`x-${e}`,t)?t?.[`x-${e}`]:hasRootExtension(e,t)?t?.[e]:e in extensionDefaults?extensionDefaults[e]:void 0}function validateParameterOrdering(e,t){const n=extensionDefaults[PARAMETER_ORDERING],r=n.length,i=`${n.slice(0,-1).join(", ")}, and ${n.slice(-1)}`;if(e.length!==r)throw new TypeError(`"${t}" must contain ${r} items comprised of: ${i}`);if(e.filter((e=>n.includes(e.toLowerCase()))).length!==r)throw new TypeError(`"${t}" must contain ${r} items comprised of: ${i}`)}function isRef(e){return void 0!==e.$ref}function isOAS31(e){return"3.1.0"===e.openapi}function isSchema(e,t=!1){return void 0!==e.type||void 0!==e.allOf||void 0!==e.anyOf||void 0!==e.oneOf||t}function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;return hasRequired_listCacheClear=1,_listCacheClear=function(){this.__data__=[],this.size=0}}function requireEq(){if(hasRequiredEq)return eq_1;return hasRequiredEq=1,eq_1=function(e,t){return e===t||e!=e&&t!=t}}function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var e=requireEq();return _assocIndexOf=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1},_assocIndexOf}function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var e=require_assocIndexOf(),t=Array.prototype.splice;return _listCacheDelete=function(n){var r=this.__data__,i=e(r,n);return!(i<0)&&(i==r.length-1?r.pop():t.call(r,i,1),--this.size,!0)},_listCacheDelete}function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var e=require_assocIndexOf();return _listCacheGet=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},_listCacheGet}function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var e=require_assocIndexOf();return _listCacheHas=function(t){return e(this.__data__,t)>-1}}function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var e=require_assocIndexOf();return _listCacheSet=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this},_listCacheSet}function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var e=require_listCacheClear(),t=require_listCacheDelete(),n=require_listCacheGet(),r=require_listCacheHas(),i=require_listCacheSet();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&t%1==0&&t-1&&e%1==0&&e<=9007199254740991}}function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var e=require_baseGetTag(),t=requireIsLength(),n=requireIsObjectLike(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,_baseIsTypedArray=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;return hasRequired_baseUnary=1,_baseUnary=function(e){return function(t){return e(t)}}}isBuffer.exports;var _nodeUtil={exports:{}},hasRequired_nodeUtil,isTypedArray_1,hasRequiredIsTypedArray,_arrayLikeKeys,hasRequired_arrayLikeKeys,_isPrototype,hasRequired_isPrototype,_overArg,hasRequired_overArg,_nativeKeys,hasRequired_nativeKeys,_baseKeys,hasRequired_baseKeys,isArrayLike_1,hasRequiredIsArrayLike,keys_1,hasRequiredKeys$1,_baseAssign,hasRequired_baseAssign,_nativeKeysIn,hasRequired_nativeKeysIn,_baseKeysIn,hasRequired_baseKeysIn,keysIn_1,hasRequiredKeysIn,_baseAssignIn,hasRequired_baseAssignIn;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,function(e,t){var n=require_freeGlobal(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var e=require_baseIsTypedArray(),t=require_baseUnary(),n=require_nodeUtil(),r=n&&n.isTypedArray,i=r?t(r):e;return isTypedArray_1=i}function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var e=require_baseTimes(),t=requireIsArguments$1(),n=requireIsArray(),r=requireIsBuffer(),i=require_isIndex(),o=requireIsTypedArray(),s=Object.prototype.hasOwnProperty;return _arrayLikeKeys=function(a,c){var l=n(a),u=!l&&t(a),d=!l&&!u&&r(a),p=!l&&!u&&!d&&o(a),f=l||u||d||p,_=f?e(a.length,String):[],m=_.length;for(var h in a)!c&&!s.call(a,h)||f&&("length"==h||d&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||i(h,m))||_.push(h);return _}}function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var e=Object.prototype;return _isPrototype=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function require_overArg(){if(hasRequired_overArg)return _overArg;return hasRequired_overArg=1,_overArg=function(e,t){return function(n){return e(t(n))}}}function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var e=require_overArg()(Object.keys,Object);return _nativeKeys=e}function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var e=require_isPrototype(),t=require_nativeKeys(),n=Object.prototype.hasOwnProperty;return _baseKeys=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i}}function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var e=requireIsFunction$1(),t=requireIsLength();return isArrayLike_1=function(n){return null!=n&&t(n.length)&&!e(n)}}function requireKeys$1(){if(hasRequiredKeys$1)return keys_1;hasRequiredKeys$1=1;var e=require_arrayLikeKeys(),t=require_baseKeys(),n=requireIsArrayLike();return keys_1=function(r){return n(r)?e(r):t(r)}}function require_baseAssign(){if(hasRequired_baseAssign)return _baseAssign;hasRequired_baseAssign=1;var e=require_copyObject(),t=requireKeys$1();return _baseAssign=function(n,r){return n&&e(r,t(r),n)},_baseAssign}function require_nativeKeysIn(){if(hasRequired_nativeKeysIn)return _nativeKeysIn;return hasRequired_nativeKeysIn=1,_nativeKeysIn=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function require_baseKeysIn(){if(hasRequired_baseKeysIn)return _baseKeysIn;hasRequired_baseKeysIn=1;var e=requireIsObject$1(),t=require_isPrototype(),n=require_nativeKeysIn(),r=Object.prototype.hasOwnProperty;return _baseKeysIn=function(i){if(!e(i))return n(i);var o=t(i),s=[];for(var a in i)("constructor"!=a||!o&&r.call(i,a))&&s.push(a);return s}}function requireKeysIn(){if(hasRequiredKeysIn)return keysIn_1;hasRequiredKeysIn=1;var e=require_arrayLikeKeys(),t=require_baseKeysIn(),n=requireIsArrayLike();return keysIn_1=function(r){return n(r)?e(r,!0):t(r)}}function require_baseAssignIn(){if(hasRequired_baseAssignIn)return _baseAssignIn;hasRequired_baseAssignIn=1;var e=require_copyObject(),t=requireKeysIn();return _baseAssignIn=function(n,r){return n&&e(r,t(r),n)},_baseAssignIn}_nodeUtil.exports;var _cloneBuffer={exports:{}},hasRequired_cloneBuffer,_copyArray,hasRequired_copyArray,_arrayFilter,hasRequired_arrayFilter,stubArray_1,hasRequiredStubArray,_getSymbols,hasRequired_getSymbols,_copySymbols,hasRequired_copySymbols,_arrayPush,hasRequired_arrayPush,_getPrototype,hasRequired_getPrototype,_getSymbolsIn,hasRequired_getSymbolsIn,_copySymbolsIn,hasRequired_copySymbolsIn,_baseGetAllKeys,hasRequired_baseGetAllKeys,_getAllKeys,hasRequired_getAllKeys,_getAllKeysIn,hasRequired_getAllKeysIn,_DataView,hasRequired_DataView,_Promise,hasRequired_Promise,_Set,hasRequired_Set,_WeakMap,hasRequired_WeakMap,_getTag,hasRequired_getTag,_initCloneArray,hasRequired_initCloneArray,_Uint8Array,hasRequired_Uint8Array,_cloneArrayBuffer,hasRequired_cloneArrayBuffer,_cloneDataView,hasRequired_cloneDataView,_cloneRegExp,hasRequired_cloneRegExp,_cloneSymbol,hasRequired_cloneSymbol,_cloneTypedArray,hasRequired_cloneTypedArray,_initCloneByTag,hasRequired_initCloneByTag,_baseCreate,hasRequired_baseCreate,_initCloneObject,hasRequired_initCloneObject,_baseIsMap,hasRequired_baseIsMap,isMap_1,hasRequiredIsMap,_baseIsSet,hasRequired_baseIsSet,isSet_1,hasRequiredIsSet,_baseClone,hasRequired_baseClone,cloneDeep_1,hasRequiredCloneDeep,_setCacheAdd,hasRequired_setCacheAdd,_setCacheHas,hasRequired_setCacheHas,_SetCache,hasRequired_SetCache,_arraySome,hasRequired_arraySome,_cacheHas,hasRequired_cacheHas,_equalArrays,hasRequired_equalArrays,_mapToArray,hasRequired_mapToArray,_setToArray,hasRequired_setToArray,_equalByTag,hasRequired_equalByTag,_equalObjects,hasRequired_equalObjects,_baseIsEqualDeep,hasRequired_baseIsEqualDeep,_baseIsEqual,hasRequired_baseIsEqual,isEqual_1,hasRequiredIsEqual,_isFlattenable,hasRequired_isFlattenable,_baseFlatten,hasRequired_baseFlatten,_arrayMap,hasRequired_arrayMap,isSymbol_1,hasRequiredIsSymbol$1,_isKey,hasRequired_isKey,memoize_1,hasRequiredMemoize,_memoizeCapped,hasRequired_memoizeCapped,_stringToPath,hasRequired_stringToPath,_baseToString,hasRequired_baseToString,toString_1,hasRequiredToString,_castPath,hasRequired_castPath,_toKey,hasRequired_toKey,_baseGet,hasRequired_baseGet,_baseIsMatch,hasRequired_baseIsMatch,_isStrictComparable,hasRequired_isStrictComparable,_getMatchData,hasRequired_getMatchData,_matchesStrictComparable,hasRequired_matchesStrictComparable,_baseMatches,hasRequired_baseMatches,get_1,hasRequiredGet$1,_baseHasIn,hasRequired_baseHasIn,_hasPath,hasRequired_hasPath,hasIn_1,hasRequiredHasIn,_baseMatchesProperty,hasRequired_baseMatchesProperty,identity_1,hasRequiredIdentity,_baseProperty,hasRequired_baseProperty,_basePropertyDeep,hasRequired_basePropertyDeep,property_1,hasRequiredProperty,_baseIteratee,hasRequired_baseIteratee,_createBaseFor,hasRequired_createBaseFor,_baseFor,hasRequired_baseFor,_baseForOwn,hasRequired_baseForOwn,_createBaseEach,hasRequired_createBaseEach,_baseEach,hasRequired_baseEach,_baseMap,hasRequired_baseMap,_baseSortBy,hasRequired_baseSortBy,_compareAscending,hasRequired_compareAscending,_compareMultiple,hasRequired_compareMultiple,_baseOrderBy,hasRequired_baseOrderBy,_apply,hasRequired_apply,_overRest,hasRequired_overRest,constant_1,hasRequiredConstant,_baseSetToString,hasRequired_baseSetToString,_shortOut,hasRequired_shortOut,_setToString,hasRequired_setToString,_baseRest,hasRequired_baseRest,_isIterateeCall,hasRequired_isIterateeCall,sortBy_1,hasRequiredSortBy,_baseFindIndex,hasRequired_baseFindIndex,_baseIsNaN,hasRequired_baseIsNaN,_strictIndexOf,hasRequired_strictIndexOf,_baseIndexOf,hasRequired_baseIndexOf,_arrayIncludes,hasRequired_arrayIncludes,_arrayIncludesWith,hasRequired_arrayIncludesWith,noop_1,hasRequiredNoop$1,_createSet,hasRequired_createSet,_baseUniq,hasRequired_baseUniq,uniq_1,hasRequiredUniq,uniqWith_1,hasRequiredUniqWith,defaults_1,hasRequiredDefaults,_baseIntersection,hasRequired_baseIntersection,isArrayLikeObject_1,hasRequiredIsArrayLikeObject,_castArrayLikeObject,hasRequired_castArrayLikeObject,last_1,hasRequiredLast,intersectionWith_1,hasRequiredIntersectionWith,isPlainObject_1,hasRequiredIsPlainObject,isBoolean_1,hasRequiredIsBoolean,src$1,hasRequiredSrc$1,lib$6,hasRequiredLib$6,lib$5,hasRequiredLib$5,lib$4,hasRequiredLib$4,lib$3,hasRequiredLib$3,lib$2,hasRequiredLib$2,lib$1,hasRequiredLib$1,lib,hasRequiredLib,_assignMergeValue,hasRequired_assignMergeValue,_safeGet,hasRequired_safeGet,toPlainObject_1,hasRequiredToPlainObject,_baseMergeDeep,hasRequired_baseMergeDeep,_baseMerge,hasRequired_baseMerge,_customDefaultsMerge,hasRequired_customDefaultsMerge,_createAssigner,hasRequired_createAssigner,mergeWith_1,hasRequiredMergeWith,defaultsDeep_1,hasRequiredDefaultsDeep,flatten_1,hasRequiredFlatten,flattenDeep_1,hasRequiredFlattenDeep,intersection_1,hasRequiredIntersection,_baseIndexOfWith,hasRequired_baseIndexOfWith,_basePullAll,hasRequired_basePullAll,pullAll_1,hasRequiredPullAll,_castFunction,hasRequired_castFunction,forEach_1,hasRequiredForEach$1,_baseDifference,hasRequired_baseDifference,without_1,hasRequiredWithout,common,hasRequiredCommon,properties,hasRequiredProperties,items,hasRequiredItems,src,hasRequiredSrc;function require_cloneBuffer(){return hasRequired_cloneBuffer||(hasRequired_cloneBuffer=1,function(e,t){var n=require_root(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(_cloneBuffer,_cloneBuffer.exports)),_cloneBuffer.exports}function require_copyArray(){if(hasRequired_copyArray)return _copyArray;return hasRequired_copyArray=1,_copyArray=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++nu))return!1;var p=c.get(r),f=c.get(i);if(p&&f)return p==i&&f==r;var _=-1,m=!0,h=2&o?new e:void 0;for(c.set(r,i),c.set(i,r);++_0&&o(u)?i>1?n(u,i-1,o,s,a):e(a,u):s||(a[a.length]=u)}return a},_baseFlatten}function require_arrayMap(){if(hasRequired_arrayMap)return _arrayMap;return hasRequired_arrayMap=1,_arrayMap=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++nn||s&&a&&l&&!c&&!u||i&&a&&l||!r&&l||!o)return 1;if(!i&&!s&&!u&&t=c?l:l*("desc"==r[i]?-1:1)}return t.index-n.index},_compareMultiple}function require_baseOrderBy(){if(hasRequired_baseOrderBy)return _baseOrderBy;hasRequired_baseOrderBy=1;var e=require_arrayMap(),t=require_baseGet(),n=require_baseIteratee(),r=require_baseMap(),i=require_baseSortBy(),o=require_baseUnary(),s=require_compareMultiple(),a=requireIdentity(),c=requireIsArray();return _baseOrderBy=function(l,u,d){u=u.length?e(u,(function(e){return c(e)?function(n){return t(n,1===e.length?e[0]:e)}:e})):[a];var p=-1;u=e(u,o(n));var f=r(l,(function(t,n,r){return{criteria:e(u,(function(e){return e(t)})),index:++p,value:t}}));return i(f,(function(e,t){return s(e,t,d)}))},_baseOrderBy}function require_apply(){if(hasRequired_apply)return _apply;return hasRequired_apply=1,_apply=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},_apply}function require_overRest(){if(hasRequired_overRest)return _overRest;hasRequired_overRest=1;var e=require_apply(),t=Math.max;return _overRest=function(n,r,i){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,s=-1,a=t(o.length-r,0),c=Array(a);++s0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},_shortOut}function require_setToString(){if(hasRequired_setToString)return _setToString;hasRequired_setToString=1;var e=require_baseSetToString(),t=require_shortOut()(e);return _setToString=t}function require_baseRest(){if(hasRequired_baseRest)return _baseRest;hasRequired_baseRest=1;var e=requireIdentity(),t=require_overRest(),n=require_setToString();return _baseRest=function(r,i){return n(t(r,i,e),r+"")}}function require_isIterateeCall(){if(hasRequired_isIterateeCall)return _isIterateeCall;hasRequired_isIterateeCall=1;var e=requireEq(),t=requireIsArrayLike(),n=require_isIndex(),r=requireIsObject$1();return _isIterateeCall=function(i,o,s){if(!r(s))return!1;var a=typeof o;return!!("number"==a?t(s)&&n(o,s.length):"string"==a&&o in s)&&e(s[o],i)},_isIterateeCall}function requireSortBy(){if(hasRequiredSortBy)return sortBy_1;hasRequiredSortBy=1;var e=require_baseFlatten(),t=require_baseOrderBy(),n=require_baseRest(),r=require_isIterateeCall(),i=n((function(n,i){if(null==n)return[];var o=i.length;return o>1&&r(n,i[0],i[1])?i=[]:o>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),t(n,e(i,1),[])}));return sortBy_1=i}function require_baseFindIndex(){if(hasRequired_baseFindIndex)return _baseFindIndex;return hasRequired_baseFindIndex=1,_baseFindIndex=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o-1},_arrayIncludes}function require_arrayIncludesWith(){if(hasRequired_arrayIncludesWith)return _arrayIncludesWith;return hasRequired_arrayIncludesWith=1,_arrayIncludesWith=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200){var m=a?null:i(s);if(m)return o(m);p=!1,u=r,_=new e}else _=a?[]:f;e:for(;++l2?s[2]:void 0;for(l&&n(s[0],s[1],l)&&(c=1);++a=120&&g.length>=120)?new e(f&&g):void 0}g=a[0];var A=-1,y=_[0];e:for(;++AArray.isArray(e)?e:[e],l=e=>void 0===e,u=e=>s(e)||Array.isArray(e)?Object.keys(e):[],d=(e,t)=>e.hasOwnProperty(t),p=e=>t(n(e)),f=e=>l(e)||Array.isArray(e)&&0===e.length,_=(t,n)=>l(t)&&0===n||l(n)&&0===t||e(t,n),m=t=>l(t)||e(t,{})||!0===t,h=t=>l(t)||e(t,{}),g=e=>l(e)||s(e)||!0===e||!1===e;function A(t,n){return!(!f(t)||!f(n))||e(p(t),p(n))}function y(t,r,i,o){var s=n(u(t).concat(u(r)));return!(!h(t)||!h(r))||(!h(t)||!u(r).length)&&((!h(r)||!u(t).length)&&s.every((function(n){var i=t[n],s=r[n];return Array.isArray(i)&&Array.isArray(s)?e(p(t),p(r)):!(Array.isArray(i)&&!Array.isArray(s))&&(!(Array.isArray(s)&&!Array.isArray(i))&&((e,t,n,r)=>t&&d(t,n)&&e&&d(e,n)&&r(e[n],t[n]))(t,r,n,o))})))}function v(e,t,n,i){var s=r(e,i),a=r(t,i);return o(s,a,i).length===Math.max(s.length,a.length)}var b={title:e,uniqueItems:(t,n)=>l(t)&&!1===n||l(n)&&!1===t||e(t,n),minLength:_,minItems:_,minProperties:_,required:A,enum:A,type:function(t,n){return t=c(t),n=c(n),e(p(t),p(n))},items:function(t,n,r,i){return s(t)&&s(n)?i(t,n):Array.isArray(t)&&Array.isArray(n)?y(t,n,0,i):e(t,n)},anyOf:v,allOf:v,oneOf:v,properties:y,patternProperties:y,dependencies:y},C=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],E=["additionalProperties","additionalItems","contains","propertyNames","not"];return src$1=function t(r,o,s){if(s=i(s,{ignore:[]}),m(r)&&m(o))return!0;if(!g(r)||!g(o))throw new Error("Either of the values are not a JSON schema.");if(r===o)return!0;if(a(r)&&a(o))return r===o;if(void 0===r&&!1===o||void 0===o&&!1===r)return!1;if(l(r)&&!l(o)||!l(r)&&l(o))return!1;var c=n(Object.keys(r).concat(Object.keys(o)));if(s.ignore.length&&(c=c.filter((e=>-1===s.ignore.indexOf(e)))),!c.length)return!0;function u(e,n){return t(e,n,s)}return c.every((function(n){var i=r[n],c=o[n];if(-1!==E.indexOf(n))return t(i,c,s);var l=b[n];if(l||(l=e),e(i,c))return!0;if(-1===C.indexOf(n)&&(!d(r,n)&&d(o,n)||d(r,n)&&!d(o,n)))return i===c;var p=l(i,c,n,u);if(!a(p))throw new Error("Comparer must return true or false");return p}))},src$1}function requireLib$6(){if(hasRequiredLib$6)return lib$6;return hasRequiredLib$6=1,lib$6=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}function requireLib$5(){if(hasRequiredLib$5)return lib$5;return hasRequiredLib$5=1,lib$5=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()}}function requireLib$4(){if(hasRequiredLib$4)return lib$4;hasRequiredLib$4=1;var e=requireLib$5();return lib$4=function(t){return e(t)&&t%1==0}}function requireLib$3(){if(hasRequiredLib$3)return lib$3;hasRequiredLib$3=1;var e=requireLib$6(),t=requireLib$4();return lib$3=function(n){var r;if(!e(n))return!1;if(!(r=n.length))return!1;for(var i=0;it&&(n=t,t=e,e=n),t-=e}return r*e}function o(e,t){var n,r=0;if(0===e)return t;if(0===t)return e;for(;!(1&e||1&t);)e>>>=1,t>>>=1,r++;for(;!(1&e);)e>>>=1;for(;t;){for(;!(1&t);)t>>>=1;e>t&&(n=t,t=e,e=n),t-=e}return e<1){if(c=s[0],a=s[1],!n(a))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+a+"`.")}else c=s[0]}if((l=c.length)<2)return null;if(a){for(u=new Array(l),p=0;p1){if(s=i[0],o=i[1],!r(o))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+o+"`.")}else s=i[0]}if((a=s.length)<2)return null;if(o){for(c=new Array(a),u=0;u1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=n.length>3&&"function"==typeof s?(o--,s):void 0,a&&t(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++i-1;)f!==s&&o.call(f,_,1),o.call(s,_,1);return s},_basePullAll}function requirePullAll(){if(hasRequiredPullAll)return pullAll_1;hasRequiredPullAll=1;var e=require_basePullAll();return pullAll_1=function(t,n){return t&&t.length&&n&&n.length?e(t,n):t},pullAll_1}function require_castFunction(){if(hasRequired_castFunction)return _castFunction;hasRequired_castFunction=1;var e=requireIdentity();return _castFunction=function(t){return"function"==typeof t?t:e}}function requireForEach$1(){if(hasRequiredForEach$1)return forEach_1;hasRequiredForEach$1=1;var e=require_arrayEach(),t=require_baseEach(),n=require_castFunction(),r=requireIsArray();return forEach_1=function(i,o){return(r(i)?e:t)(i,n(o))}}function require_baseDifference(){if(hasRequired_baseDifference)return _baseDifference;hasRequired_baseDifference=1;var e=require_SetCache(),t=require_arrayIncludes(),n=require_arrayIncludesWith(),r=require_arrayMap(),i=require_baseUnary(),o=require_cacheHas();return _baseDifference=function(s,a,c,l){var u=-1,d=t,p=!0,f=s.length,_=[],m=a.length;if(!f)return _;c&&(a=r(a,i(c))),l?(d=n,p=!1):a.length>=200&&(d=o,p=!1,a=new e(a));e:for(;++uObject.prototype.hasOwnProperty.call(e,t),a=e=>n(e)||Array.isArray(e)?Object.keys(e):[],c=e=>!a(e).length&&!1!==e&&!0!==e;return common={allUniqueKeys:e=>r(t(e.map(a))),deleteUndefinedProps:function(e){for(const t in e)s(e,t)&&c(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:s,isEmptySchema:c,isSchema:e=>n(e)||!0===e||!1===e,keys:a,notUndefined:e=>void 0!==e,uniqWith:i,withoutArr:(t,...n)=>o.apply(null,[t].concat(e(n)))},common}function requireProperties(){if(hasRequiredProperties)return properties;hasRequiredProperties=1;const e=requireSrc$1(),t=requireForEach$1(),{allUniqueKeys:n,deleteUndefinedProps:r,getValues:i,keys:o,notUndefined:s,uniqWith:a,withoutArr:c}=requireCommon();function l(t,r){return n(t).reduce((function(n,o){const c=i(t,o),l=a(c.filter(s),e);return n[o]=r(l,o),n}),{})}return properties={keywords:["properties","patternProperties","additionalProperties"],resolver(e,n,i,s){s.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),r=o(t.properties),s=o(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=o(e.properties),a=n.filter((e=>s.some((t=>t.test(e)))));c(n,r,a).forEach((function(n){e.properties[n]=i.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){const n=e.filter((e=>e!==t)),r=o(t.patternProperties);!1===t.additionalProperties&&n.forEach((function(e){const t=o(e.patternProperties);c(t,r).forEach((t=>delete e.patternProperties[t]))}))})));const a={additionalProperties:i.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:l(e.map((e=>e.patternProperties)),i.patternProperties),properties:l(e.map((e=>e.properties)),i.properties)};var u;return!1===a.additionalProperties&&t(u=a.properties,(function(e,t){!1===e&&delete u[t]})),r(a)}},properties}function requireItems(){if(hasRequiredItems)return items;hasRequiredItems=1;const e=requireSrc$1(),t=requireForEach$1(),{allUniqueKeys:n,deleteUndefinedProps:r,has:i,isSchema:o,notUndefined:s,uniqWith:a}=requireCommon();function c(t,r,c){return n(c).reduce((function(n,c){const l=function(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const n=e.items[t];if(o(n))return n;if(i(e,"additionalItems"))return e.additionalItems}}}))}(t,c),u=a(l.filter(s),e);return n[c]=r(u,c),n}),[])}return items={keywords:["items","additionalItems"],resolver(e,n,i){const a=e.map((e=>e.items)),l=a.filter(s),u={};let d;var p;return l.every(o)?u.items=i.items(a):u.items=c(e,i.items,a),l.every(Array.isArray)?d=e.map((e=>e.additionalItems)):l.some(Array.isArray)&&(d=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),d&&(u.additionalItems=i.additionalItems(d)),!1===u.additionalItems&&Array.isArray(u.items)&&(p=u.items,t(p,(function(e,t){!1===e&&p.splice(t,1)}))),r(u)}},items}function requireSrc(){if(hasRequiredSrc)return src;hasRequiredSrc=1;const e=requireCloneDeep(),t=requireSrc$1(),n=requireLib(),r=requireDefaultsDeep(),i=requireFlatten(),o=requireFlattenDeep(),s=requireIntersection(),a=requireIntersectionWith(),c=requireIsEqual(),l=requireIsPlainObject(),u=requirePullAll(),d=requireSortBy(),p=requireUniq(),f=requireUniqWith(),_=requireProperties(),m=requireItems(),h=(e,t)=>-1!==e.indexOf(t),g=e=>l(e)||!0===e||!1===e,A=e=>!1===e,y=e=>!0===e,v=(e,t,n)=>n(e),b=e=>d(p(o(e))),C=e=>void 0!==e,E=e=>p(o(e.map(I))),x=e=>e[0],S=e=>Math.max.apply(Math,e),k=e=>Math.min.apply(Math,e);function D(e){let{allOf:t=[],...n}=e;return n=l(e)?n:e,[n,...t.map(D)]}function w(e,t){return e.map((e=>e&&e[t]))}function I(e){return l(e)||Array.isArray(e)?Object.keys(e):[]}function T(e,t){if(t=t||[],!e.length)return t;const n=e.slice(0).shift(),r=e.slice(1);return t.length?T(r,i(t.map((e=>n.map((t=>[t].concat(e))))))):T(r,n.map((e=>e)))}function F(e,t){let n;try{n=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(t){n=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+n)}function R(e,n,r,i,o,s){if(e.length){const a=o.complexResolvers[n];if(!a||!a.resolver)throw new Error("No resolver found for "+n);const c=r.map((t=>e.reduce(((e,n)=>(void 0!==t[n]&&(e[n]=t[n]),e)),{}))),u=f(c,t),d=a.keywords.reduce(((e,t)=>({...e,[t]:(e,n=[])=>i(e,null,s.concat(t,n))})),{}),p=a.resolver(u,s.concat(n),d,o);return l(p)||F(u,s.concat(n)),p}}function P(e){return{required:e}}const N=["properties","patternProperties","definitions","dependencies"],B=["anyOf","oneOf"],O=["additionalProperties","additionalItems","contains","propertyNames","not","items"],q={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),n=s.apply(null,t);if(1===n.length)return n[0];if(n.length>1)return p(n)}},dependencies:(e,n,r)=>E(e).reduce((function(n,i){const o=w(e,i);let s=f(o.filter(C),c);const a=s.filter(Array.isArray);if(a.length){if(a.length===s.length)n[i]=b(s);else{const e=s.filter(g),t=a.map(P);n[i]=r(e.concat(t),i)}return n}return s=f(s,t),n[i]=r(s,i),n}),{}),oneOf(n,r,i){const o=function(e,t){return e.map((function(e,n){try{return t(e,n)}catch(e){return}})).filter(C)}(T(e(n)),i),s=f(o,t);if(s.length)return s},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let t=e.slice(0),r=1;for(;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return n(t)/r},enum(e){const t=a.apply(null,e.concat(c));if(t.length)return d(t)}};q.$id=x,q.$ref=x,q.$schema=x,q.additionalItems=v,q.additionalProperties=v,q.anyOf=q.oneOf,q.contains=v,q.default=x,q.definitions=q.dependencies,q.description=x,q.examples=e=>f(i(e),c),q.exclusiveMaximum=k,q.exclusiveMinimum=S,q.items=m,q.maximum=k,q.maxItems=k,q.maxLength=k,q.maxProperties=k,q.minimum=S,q.minItems=S,q.minLength=S,q.minProperties=S,q.properties=_,q.propertyNames=v,q.required=e=>b(e),q.title=x,q.uniqueItems=e=>e.some(y);const $={properties:_,items:m};function Q(n,i,s){i=r(i,{ignoreAdditionalProperties:!1,resolvers:q,complexResolvers:$,deep:!0});const a=Object.entries(i.complexResolvers);const c=function n(r,o,s){r=e(r.filter(C)),s=s||[];const c=l(o)?o:{};if(!r.length)return;if(r.some(A))return!1;if(r.every(y))return!0;r=r.filter(l);const d=E(r);if(i.deep&&h(d,"allOf"))return Q({allOf:r},i);const p=a.map((([e,t])=>d.filter((e=>t.keywords.includes(e)))));return p.forEach((e=>u(d,e))),d.forEach((function(e){const o=w(r,e),a=f(o.filter(C),function(e){return function(n,r){return t({[e]:n},{[e]:r})}}(e));if(1===a.length&&h(B,e))c[e]=a[0].map((e=>n([e],e)));else if(1!==a.length||h(N,e)||h(O,e)){const t=i.resolvers[e]||i.resolvers.defaultResolver;if(!t)throw new Error("No resolver found for key "+e+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const r=(t,r=[])=>n(t,null,s.concat(e,r));c[e]=t(a,s.concat(e),r,i),void 0===c[e]?F(a,s.concat(e)):void 0===c[e]&&delete c[e]}else c[e]=a[0]})),a.reduce(((e,[t,o],a)=>({...e,...R(p[a],t,r,n,i,s)})),c)}(o(D(n)));return c}return Q.options={resolvers:q},src=Q}_cloneBuffer.exports;var srcExports=requireSrc(),mergeJSONSchemaAllOf=getDefaultExportFromCjs(srcExports);function isObject$2(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function isEmptyObject(e){return"object"==typeof e&&null!==e&&!Object.keys(e).length}function stripEmptyObjects(e){const t=e;return isObject$2(e)||Array.isArray(t)?null!==e?Array.isArray(t)?(t.forEach(((e,n)=>{let r=e;"object"==typeof r&&null!==r?(r=stripEmptyObjects(r),isEmptyObject(r)?delete t[n]:t[n]=r):null===r&&delete t[n]})),t.filter((e=>void 0!==e))):(Object.keys(t).forEach((e=>{let n=t[e];"object"==typeof n&&null!==n&&(n=stripEmptyObjects(n),isEmptyObject(n)?delete t[e]:t[e]=n)})),t):void 0:t}function removeUndefinedObjects(e){if(void 0===e)return;let t=JSON.parse(JSON.stringify(e));return t=stripEmptyObjects(t),isEmptyObject(t)?void 0:t}function cloneObject(e){if(void 0!==e)return JSON.parse(JSON.stringify(e))}function hasSchemaType(e,t){return Array.isArray(e.type)?e.type.includes(t):e.type===t}function isObject$1(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function isPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function matchesMediaType(e,t){return e.some((e=>t.indexOf(e)>-1))}var matches_mimetype_default={formUrlEncoded:e=>matchesMediaType(["application/x-www-form-urlencoded"],e),json:e=>matchesMediaType(["application/json","application/x-json","text/json","text/x-json","+json"],e),multipart:e=>matchesMediaType(["multipart/mixed","multipart/related","multipart/form-data","multipart/alternative"],e),wildcard:e=>"*/*"===e,xml:e=>matchesMediaType(["application/xml","application/xml-external-parsed-entity","application/xml-dtd","text/xml","text/xml-external-parsed-entity","+xml"],e)},UNSUPPORTED_SCHEMA_PROPS=["example","externalDocs","xml"];function encodePointer(e){return e.replace("~","~0").replace("/","~1")}function getSchemaVersionString(e,t){return isOAS31(t)?e.$schema?e.$schema:t.jsonSchemaDialect?t.jsonSchemaDialect:"https://json-schema.org/draft/2020-12/schema#":"http://json-schema.org/draft-04/schema#"}function isPolymorphicSchema(e){return"allOf"in e||"anyOf"in e||"oneOf"in e}function isRequestBodySchema(e){return"content"in e}function searchForValueByPropAndPointer(e,t,n=[]){if(!n.length||!t.length)return;const r=t.split("/").filter(Boolean).reverse(),i=[];let o,s="";for(let e=0;e!0,transformer:e=>e,...t};if(isRef(n))return p(n.$ref,"ref"),f({$ref:n.$ref});if(isSchema(n,l)){if("allOf"in n&&Array.isArray(n.allOf)){try{n=mergeJSONSchemaAllOf(n,{ignoreAdditionalProperties:!0,resolvers:{description:e=>e.slice(-1)[0],enum:e=>{let t=[];return e.forEach((e=>{t=t.concat(e)})),t},defaultResolver:mergeJSONSchemaAllOf.options.resolvers.title}})}catch(e){const{...t}=n;n=t,delete n.allOf}if(isRef(n))return p(n.$ref,"ref"),f({$ref:n.$ref})}if(["anyOf","oneOf"].forEach((e=>{e in n&&Array.isArray(n[e])&&n[e].forEach(((t,r)=>{const l={addEnumsToDescriptions:i,currentLocation:`${o}/${r}`,globalDefaults:s,hideReadOnlyProperties:a,hideWriteOnlyProperties:c,isPolymorphicAllOfChild:!1,prevDefaultSchemas:u,prevExampleSchemas:d,refLogger:p,transformer:f};n[e][r]=toJSONSchema("properties"in n?{required:n.required,allOf:[t,{properties:n.properties}]}:"items"in n?{allOf:[t,{items:n.items}]}:t,l),isObject$1(n[e][r])&&"required"in n[e][r]&&"boolean"==typeof n[e][r].required&&delete n[e][r].required}))})),"discriminator"in n&&"mapping"in n.discriminator&&"object"==typeof n.discriminator.mapping){const e=n.discriminator.mapping;Object.keys(e).forEach((t=>{p(e[t],"discriminator")}))}}if("type"in n||isPolymorphicSchema(n)||isRequestBodySchema(n)||("properties"in n?n.type="object":"items"in n&&(n.type="array")),"type"in n)if("nullable"in n&&(n.nullable&&(Array.isArray(n.type)?n.type.push("null"):null!==n.type&&"null"!==n.type&&(n.type=[n.type,"null"])),delete n.nullable),null===n.type)n.type="null";else if(Array.isArray(n.type))if(n.type.includes(null)&&(n.type[n.type.indexOf(null)]="null"),n.type=Array.from(new Set(n.type)),1===n.type.length)n.type=n.type.shift();else if(n.type.includes("array")||n.type.includes("boolean")||n.type.includes("object")){const e=n.type.includes("null");if(2===n.type.length&&e);else{const t=[];Object.entries({array:["additionalItems","contains","items","maxContains","maxItems","minContains","minItems","prefixItems","uniqueItems"],boolean:[],object:["additionalProperties","maxProperties","minProperties","nullable","patternProperties","properties","propertyNames","required"]}).forEach((([r,i])=>{if(!n.type.includes(r))return;const o=removeUndefinedObjects({type:e?[r,"null"]:r,allowEmptyValue:n.allowEmptyValue??void 0,deprecated:n.deprecated??void 0,description:n.description??void 0,readOnly:n.readOnly??void 0,title:n.title??void 0,writeOnly:n.writeOnly??void 0});i.forEach((e=>{e in n&&(o[e]=n[e],delete n[e])})),t.push(o)})),n.type=n.type.filter((e=>"array"!==e&&"boolean"!==e&&"object"!==e)),1===n.type.length&&(n.type=n.type.shift()),n=n.type.length>1?{oneOf:[n,...t]}:{oneOf:t}}}if(isSchema(n,l)){if("default"in n&&isObject$1(n.default)&&u.push({default:n.default}),"example"in n)isPrimitive(n.example)?n.examples=[n.example]:Array.isArray(n.example)?(n.examples=n.example.filter((e=>isPrimitive(e))),n.examples.length||delete n.examples):d.push({example:n.example}),delete n.example;else if("examples"in n){let e=!1;if("object"!=typeof n.examples||Array.isArray(n.examples))Array.isArray(n.examples)&&isPrimitive(n.examples[0])&&(e=!0);else{const t=[];Object.keys(n.examples).forEach((r=>{const i=n.examples[r];"$ref"in i?p(i.$ref,"ref"):"value"in i&&(isPrimitive(i.value)?(t.push(i.value),e=!0):Array.isArray(i.value)&&isPrimitive(i.value[0])?(t.push(i.value[0]),e=!0):d.push({example:i.value}))})),t.length&&(e=!0,n.examples=t)}e||delete n.examples}if(!hasSchemaType(n,"array")&&!hasSchemaType(n,"object")&&!n.examples){const e=searchForValueByPropAndPointer("example",o,d);e&&(isPrimitive(e)||Array.isArray(e)&&isPrimitive(e[0]))&&(n.examples=[e])}if(hasSchemaType(n,"array"))"items"in n?!Array.isArray(n.items)&&1===Object.keys(n.items).length&&isRef(n.items)?p(n.items.$ref,"ref"):!0!==n.items&&(n.items=toJSONSchema(n.items,{addEnumsToDescriptions:i,currentLocation:`${o}/0`,globalDefaults:s,hideReadOnlyProperties:a,hideWriteOnlyProperties:c,prevExampleSchemas:d,refLogger:p,transformer:f}),isObject$1(n.items)&&"required"in n.items&&!Array.isArray(n.items.required)&&delete n.items.required):"properties"in n||"additionalProperties"in n?n.type="object":n.items={};else if(hasSchemaType(n,"object")){if("properties"in n&&(Object.keys(n.properties).forEach((e=>{if(Array.isArray(n.properties[e])||"object"==typeof n.properties[e]&&null!==n.properties[e]){const t=toJSONSchema(n.properties[e],{addEnumsToDescriptions:i,currentLocation:`${o}/${encodePointer(e)}`,globalDefaults:s,hideReadOnlyProperties:a,hideWriteOnlyProperties:c,prevDefaultSchemas:u,prevExampleSchemas:d,refLogger:p,transformer:f});let r=!0;!a&&!c||Object.keys(t).length||Object.keys(n.properties[e]).length>0&&(delete n.properties[e],r=!1),r&&(n.properties[e]=t,isObject$1(t)&&"required"in t&&"boolean"==typeof t.required&&!0===t.required&&("required"in n&&Array.isArray(n.required)?n.required.push(e):n.required=[e],delete n.properties[e].required))}})),(a||c)&&!Object.keys(n.properties).length))return f({});"object"==typeof r&&null!==r&&("type"in r||"$ref"in r||isPolymorphicSchema(r)?n.additionalProperties=toJSONSchema(r,{addEnumsToDescriptions:i,currentLocation:o,globalDefaults:s,hideReadOnlyProperties:a,hideWriteOnlyProperties:c,prevDefaultSchemas:u,prevExampleSchemas:d,refLogger:p,transformer:f}):n.additionalProperties=!0),isPolymorphicSchema(n)||"properties"in n||"additionalProperties"in n||(n.additionalProperties=!0)}}if(isSchema(n,l)&&s&&Object.keys(s).length>0&&o)try{const e=jsonPointer.get(s,o);e&&(n.default=e)}catch(e){}if("default"in n&&void 0!==n.default)hasSchemaType(n,"object")?delete n.default:"allowEmptyValue"in n&&n.allowEmptyValue&&""===n.default||""!==n.default||delete n.default;else if(u.length){const e=searchForValueByPropAndPointer("default",o,u);(isPrimitive(e)||null===e||Array.isArray(e)&&hasSchemaType(n,"array"))&&(n.default=e)}if(isSchema(n,l)&&"enum"in n&&Array.isArray(n.enum)&&(n.enum=Array.from(new Set(n.enum)),i)){const e=n.enum.filter(Boolean).map((e=>`\`${e}\``)).join(" ");e.length&&("description"in n?n.description+=`\n\n${e}`:n.description=e)}("anyOf"in n||"oneOf"in n)&&("properties"in n&&delete n.properties,"items"in n&&delete n.items);for(let e=0;e{const t=i.properties[e];!t.deprecated||s.includes(e)||t.readOnly||(a[e]=t)})),i.properties=a;const c=toJSONSchema(i,{globalDefaults:n.globalDefaults,hideReadOnlyProperties:n.hideReadOnlyProperties,hideWriteOnlyProperties:n.hideWriteOnlyProperties,prevExampleSchemas:[],refLogger:o,transformer:n.transformer});return 0===Object.keys(c).length||0===Object.keys(c.properties).length?null:(Object.keys(e.properties).forEach((t=>{e.properties[t].deprecated&&!s.includes(t)&&delete e.properties[t]})),{type:r,schema:isPrimitive(c)?c:{...c,$schema:getSchemaVersionString(c,t)}})}if(!e.hasParameters()&&!e.hasRequestBody())return null;const a=getExtension(PARAMETER_ORDERING,t,e).map((e=>e.toLowerCase()));a[a.indexOf("form")]="formData",a.push("metadata");const c=[function(){const r=e.getRequestBody();if(!r||!Array.isArray(r))return null;const[i,a,c]=r,l="application/x-www-form-urlencoded"===i?"formData":"body";if(!a.schema||!Object.keys(a.schema).length)return null;const u=[];"example"in a?u.push({example:a.example}):"examples"in a&&u.push({examples:Object.values(a.examples).map((e=>e.value)).filter((e=>void 0!==e))});const d=toJSONSchema(cloneObject(a.schema),{globalDefaults:n.globalDefaults,hideReadOnlyProperties:n.hideReadOnlyProperties,hideWriteOnlyProperties:n.hideWriteOnlyProperties,prevExampleSchemas:u,refLogger:o,transformer:n.transformer});return Object.keys(d).length?{type:l,label:types[l],schema:isPrimitive(d)?d:{...d,$schema:getSchemaVersionString(d,t)},deprecatedProps:s(d,l),...c?{description:c}:{}}:null}()].concat(...function(){const r=e.getParameters(),i=Object.keys(types).map((e=>{const i=[],a=r.filter((t=>t.in===e));if(0===a.length)return null;const c={type:"object",properties:a.reduce(((e,r)=>{let s={};if("schema"in r){const e=r.schema?cloneObject(r.schema):{};r.example?e.example=r.example:r.examples&&(e.examples=r.examples),r.deprecated&&(e.deprecated=r.deprecated);const i=toJSONSchema(e,{currentLocation:`/${r.name}`,globalDefaults:n.globalDefaults,hideReadOnlyProperties:n.hideReadOnlyProperties,hideWriteOnlyProperties:n.hideWriteOnlyProperties,refLogger:o,transformer:n.transformer});s=isPrimitive(i)?i:{...i,$schema:getSchemaVersionString(e,t)}}else if("content"in r&&"object"==typeof r.content){const e=Object.keys(r.content);if(e.length){let i;if(1===e.length)i=e[0];else{const t=e.filter((e=>matches_mimetype_default.json(e)));i=t.length?t[0]:e[0]}if("object"==typeof r.content[i]&&"schema"in r.content[i]){const e=r.content[i].schema?cloneObject(r.content[i].schema):{};r.example?e.example=r.example:r.examples&&(e.examples=r.examples),r.deprecated&&(e.deprecated=r.deprecated);const a=toJSONSchema(e,{currentLocation:`/${r.name}`,globalDefaults:n.globalDefaults,hideReadOnlyProperties:n.hideReadOnlyProperties,hideWriteOnlyProperties:n.hideWriteOnlyProperties,refLogger:o,transformer:n.transformer});s=isPrimitive(a)?a:{...a,$schema:getSchemaVersionString(e,t)}}}}return r.description&&(isPrimitive(s)||(s.description=r.description)),e[r.name]=s,r.required&&i.push(r.name),e}),{}),required:i};return{type:e,label:types[e],schema:c,deprecatedProps:s(c,e)}})).filter(Boolean);if(!n.mergeIntoBodyAndMetadata)return i;if(!i.length)return[];const a=i.map((e=>e.deprecatedProps?.schema||null)).filter(Boolean);return[{type:"metadata",label:types.metadata,schema:{allOf:i.map((e=>e.schema))},deprecatedProps:a.length?{type:"metadata",schema:{allOf:a}}:null}]}()).filter(Boolean),l=r||i&&n.includeDiscriminatorMappingRefs,u=!!l&&function(){if(!("components"in t))return!1;const e={...Object.keys(t.components).map((e=>({[e]:{}}))).reduce(((e,t)=>Object.assign(e,t)),{})};return Object.keys(t.components).forEach((r=>{"object"!=typeof t.components[r]||Array.isArray(t.components[r])||Object.keys(t.components[r]).forEach((i=>{const s=cloneObject(t.components[r][i]);e[r][i]=toJSONSchema(s,{globalDefaults:n.globalDefaults,hideReadOnlyProperties:n.hideReadOnlyProperties,hideWriteOnlyProperties:n.hideWriteOnlyProperties,refLogger:o,transformer:n.transformer})}))})),Object.keys(e).forEach((t=>{Object.keys(e[t]).length||delete e[t]})),e}();return c.map((e=>(u&&l&&(e.schema.components=u),e.deprecatedProps||delete e.deprecatedProps,e))).sort(((e,t)=>a.indexOf(e.type)-a.indexOf(t.type)))}function requireNoop(){return hasRequiredNoop?noop:(hasRequiredNoop=1,noop=function(){})}function requireIsValue(){if(hasRequiredIsValue)return isValue;hasRequiredIsValue=1;var e=requireNoop()();return isValue=function(t){return t!==e&&null!==t}}function requireNormalizeOptions(){if(hasRequiredNormalizeOptions)return normalizeOptions;hasRequiredNormalizeOptions=1;var e=requireIsValue(),t=Array.prototype.forEach,n=Object.create;return normalizeOptions=function(r){var i=n(null);return t.call(arguments,(function(t){e(t)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(t),i)})),i},normalizeOptions}function requireIsImplemented$7(){return hasRequiredIsImplemented$7||(hasRequiredIsImplemented$7=1,isImplemented$7=function(){var e=Math.sign;return"function"==typeof e&&(1===e(10)&&-1===e(-20))}),isImplemented$7}function requireShim$5(){return hasRequiredShim$5?shim$5:(hasRequiredShim$5=1,shim$5=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1})}function requireSign(){return hasRequiredSign?sign:(hasRequiredSign=1,sign=requireIsImplemented$7()()?Math.sign:requireShim$5())}function requireToInteger(){if(hasRequiredToInteger)return toInteger;hasRequiredToInteger=1;var e=requireSign(),t=Math.abs,n=Math.floor;return toInteger=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}function requireToPosInteger(){if(hasRequiredToPosInteger)return toPosInteger;hasRequiredToPosInteger=1;var e=requireToInteger(),t=Math.max;return toPosInteger=function(n){return t(0,e(n))}}function requireResolveLength(){if(hasRequiredResolveLength)return resolveLength;hasRequiredResolveLength=1;var e=requireToPosInteger();return resolveLength=function(t,n,r){var i;return isNaN(t)?(i=n)>=0?r&&i?i-1:i:1:!1!==t&&e(t)}}function requireValidCallable(){return hasRequiredValidCallable?validCallable:(hasRequiredValidCallable=1,validCallable=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function requireValidValue(){if(hasRequiredValidValue)return validValue;hasRequiredValidValue=1;var e=requireIsValue();return validValue=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function require_iterate(){if(hasRequired_iterate)return _iterate;hasRequired_iterate=1;var e=requireValidCallable(),t=requireValidValue(),n=Function.prototype.bind,r=Function.prototype.call,i=Object.keys,o=Object.prototype.propertyIsEnumerable;return _iterate=function(s,a){return function(c,l){var u,d=arguments[2],p=arguments[3];return c=Object(t(c)),e(l),u=i(c),p&&u.sort("function"==typeof p?n.call(p,c):void 0),"function"!=typeof s&&(s=u[s]),r.call(s,u,(function(e,t){return o.call(c,e)?r.call(l,d,c[e],e,c,t):a}))}},_iterate}function requireForEach(){return hasRequiredForEach?forEach:(hasRequiredForEach=1,forEach=require_iterate()("forEach"))}var registeredExtensions={},hasRequiredRegisteredExtensions;function requireRegisteredExtensions(){return hasRequiredRegisteredExtensions||(hasRequiredRegisteredExtensions=1),registeredExtensions}var custom={exports:{}},isImplemented$6,hasRequiredIsImplemented$6,isImplemented$5,hasRequiredIsImplemented$5,shim$4,hasRequiredShim$4,keys,hasRequiredKeys,shim$3,hasRequiredShim$3,assign,hasRequiredAssign,isObject,hasRequiredIsObject,hasRequiredCustom;function requireIsImplemented$6(){return hasRequiredIsImplemented$6||(hasRequiredIsImplemented$6=1,isImplemented$6=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}),isImplemented$6}function requireIsImplemented$5(){return hasRequiredIsImplemented$5?isImplemented$5:(hasRequiredIsImplemented$5=1,isImplemented$5=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}})}function requireShim$4(){if(hasRequiredShim$4)return shim$4;hasRequiredShim$4=1;var e=requireIsValue(),t=Object.keys;return shim$4=function(n){return t(e(n)?Object(n):n)}}function requireKeys(){return hasRequiredKeys?keys:(hasRequiredKeys=1,keys=requireIsImplemented$5()()?Object.keys:requireShim$4())}function requireShim$3(){if(hasRequiredShim$3)return shim$3;hasRequiredShim$3=1;var e=requireKeys(),t=requireValidValue(),n=Math.max;return shim$3=function(r,i){var o,s,a,c=n(arguments.length,2);for(r=Object(t(r)),a=function(e){try{r[e]=i[e]}catch(e){o||(o=e)}},s=1;s-1},shim$2}function requireContains(){return hasRequiredContains?contains:(hasRequiredContains=1,contains=requireIsImplemented$4()()?String.prototype.contains:requireShim$2())}function requireD(){if(hasRequiredD)return d.exports;hasRequiredD=1;var e=requireIs$4(),t=requireIs(),n=requireAssign(),r=requireNormalizeOptions(),i=requireContains(),o=d.exports=function(t,o){var s,a,c,l,u;return arguments.length<2||"string"!=typeof t?(l=o,o=t,t=null):l=arguments[2],e(t)?(s=i.call(t,"c"),a=i.call(t,"e"),c=i.call(t,"w")):(s=c=!0,a=!1),u={value:o,configurable:s,enumerable:a,writable:c},l?n(r(l),u):u};return o.gs=function(o,s,a){var c,l,u,d;return"string"!=typeof o?(u=a,a=s,s=o,o=null):u=arguments[3],e(s)?t(s)?e(a)?t(a)||(u=a,a=void 0):a=void 0:(u=s,s=a=void 0):s=void 0,e(o)?(c=i.call(o,"c"),l=i.call(o,"e")):(c=!0,l=!1),d={get:s,set:a,configurable:c,enumerable:l},u?n(r(u),d):d},d.exports}var eventEmitter={exports:{}},hasRequiredEventEmitter,isImplemented$3,hasRequiredIsImplemented$3,isImplemented$2,hasRequiredIsImplemented$2,implementation,hasRequiredImplementation,globalThis_1,hasRequiredGlobalThis,isImplemented$1,hasRequiredIsImplemented$1,isSymbol,hasRequiredIsSymbol,validateSymbol,hasRequiredValidateSymbol,generateName,hasRequiredGenerateName,standardSymbols,hasRequiredStandardSymbols,symbolRegistry,hasRequiredSymbolRegistry,polyfill,hasRequiredPolyfill,es6Symbol,hasRequiredEs6Symbol,isArguments,hasRequiredIsArguments,isFunction,hasRequiredIsFunction,isString,hasRequiredIsString,shim$1,hasRequiredShim$1,from,hasRequiredFrom,toArray,hasRequiredToArray,resolveResolve,hasRequiredResolveResolve,resolveNormalize,hasRequiredResolveNormalize,configureMap,hasRequiredConfigureMap,plain,hasRequiredPlain,primitive$1,hasRequiredPrimitive,getPrimitiveFixed,hasRequiredGetPrimitiveFixed,isImplemented,hasRequiredIsImplemented,shim,hasRequiredShim,isNan,hasRequiredIsNan,eIndexOf,hasRequiredEIndexOf,get,hasRequiredGet,get1,hasRequiredGet1,getFixed,hasRequiredGetFixed;function requireEventEmitter(){return hasRequiredEventEmitter||(hasRequiredEventEmitter=1,function(e,t){var n,r,i,o,s,a,c,l=requireD(),u=requireValidCallable(),d=Function.prototype.apply,p=Function.prototype.call,f=Object.create,_=Object.defineProperty,m=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return u(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),_(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,o;return u(t),o=this,n.call(this,e,r=function(){i.call(o,e,r),d.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e,t){var n,r,i,o;if(u(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},o=function(e){var t,n,r,i,o;if(h.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==typeof i){for(n=arguments.length,o=new Array(n-1),t=1;t=55296&&A<=56319&&(C+=p[++_]),C=E?l.call(E,x,C,m):C,f?(u.value=C,d(h,m,u)):h[m]=C,++m;g=m}if(void 0===g)for(g=r(p.length),f&&(h=new f(g)),_=0;_=0?s(u):t(this.length)-s(o(u));c"}}}function requireToShortStringRepresentation(){if(hasRequiredToShortStringRepresentation)return toShortStringRepresentation;hasRequiredToShortStringRepresentation=1;var e=requireSafeToString(),t=/[\n\r\u2028\u2029]/g;return toShortStringRepresentation=function(n){var r=e(n);return r.length>100&&(r=r.slice(0,99)+"โ€ฆ"),r=r.replace(t,(function(e){return JSON.stringify(e).slice(1,-1)}))},toShortStringRepresentation}var isPromise={exports:{}},hasRequiredIsPromise,hasRequiredPromise;function requireIsPromise(){if(hasRequiredIsPromise)return isPromise.exports;function e(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}return hasRequiredIsPromise=1,isPromise.exports=e,isPromise.exports.default=e,isPromise.exports}function requirePromise(){if(hasRequiredPromise)return promise;hasRequiredPromise=1;var e=requireMap(),t=requirePrimitiveSet(),n=requireValidateStringifiableValue(),r=requireToShortStringRepresentation(),i=requireIsPromise(),o=requireNextTick(),s=Object.create,a=t("then","then:finally","done","done:finally");return requireRegisteredExtensions().promise=function(t,c){var l=s(null),u=s(null),d=s(null);if(!0===t)t=null;else if(t=n(t),!a[t])throw new TypeError("'"+r(t)+"' is not valid promise mode");c.on("set",(function(e,n,r){var s=!1;if(!i(r))return u[e]=r,void c.emit("setasync",e,1);l[e]=1,d[e]=r;var a=function(t){var n=l[e];if(s)throw new Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");n&&(delete l[e],u[e]=t,c.emit("setasync",e,n))},p=function(){s=!0,l[e]&&(delete l[e],delete d[e],c.delete(e))},f=t;if(f||(f="then"),"then"===f){var _=function(){o(p)};"function"==typeof(r=r.then((function(e){o(a.bind(this,e))}),_)).finally&&r.finally(_)}else if("done"===f){if("function"!=typeof r.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");r.done(a,p)}else if("done:finally"===f){if("function"!=typeof r.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof r.finally)throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");r.done(a),r.finally(p)}})),c.on("get",(function(e,t,n){var r;if(l[e])++l[e];else{r=d[e];var s=function(){c.emit("getasync",e,t,n)};i(r)?"function"==typeof r.done?r.done(s):r.then((function(){o(s)})):s()}})),c.on("delete",(function(e){if(delete d[e],l[e])delete l[e];else if(hasOwnProperty.call(u,e)){var t=u[e];delete u[e],c.emit("deleteasync",e,[t])}})),c.on("clear",(function(){var t=u;u=s(null),l=s(null),d=s(null),c.emit("clearasync",e(t,(function(e){return[e]})))}))},promise}var dispose={},hasRequiredDispose;function requireDispose(){if(hasRequiredDispose)return dispose;hasRequiredDispose=1;var e=requireValidCallable(),t=requireForEach(),n=requireRegisteredExtensions(),r=Function.prototype.apply;return n.dispose=function(i,o,s){var a;if(e(i),s.async&&n.async||s.promise&&n.promise)return o.on("deleteasync",a=function(e,t){r.call(i,null,t)}),void o.on("clearasync",(function(e){t(e,(function(e,t){a(t,e)}))}));o.on("delete",a=function(e,t){i(t)}),o.on("clear",(function(e){t(e,(function(e,t){a(t,e)}))}))},dispose}var maxAge={},maxTimeout,hasRequiredMaxTimeout,validTimeout,hasRequiredValidTimeout,hasRequiredMaxAge;function requireMaxTimeout(){return hasRequiredMaxTimeout?maxTimeout:(hasRequiredMaxTimeout=1,maxTimeout=2147483647)}function requireValidTimeout(){if(hasRequiredValidTimeout)return validTimeout;hasRequiredValidTimeout=1;var e=requireToPosInteger(),t=requireMaxTimeout();return validTimeout=function(n){if((n=e(n))>t)throw new TypeError(n+" exceeds maximum possible timeout");return n}}function requireMaxAge(){if(hasRequiredMaxAge)return maxAge;hasRequiredMaxAge=1;var e=requireFrom(),t=requireForEach(),n=requireNextTick(),r=requireIsPromise(),i=requireValidTimeout(),o=requireRegisteredExtensions(),s=Function.prototype,a=Math.max,c=Math.min,l=Object.create;return o.maxAge=function(u,d,p){var f,_,m,h;(u=i(u))&&(f=l(null),_=p.async&&o.async||p.promise&&o.promise?"async":"",d.on("set"+_,(function(e){f[e]=setTimeout((function(){d.delete(e)}),u),"function"==typeof f[e].unref&&f[e].unref(),h&&(h[e]&&"nextTick"!==h[e]&&clearTimeout(h[e]),h[e]=setTimeout((function(){delete h[e]}),m),"function"==typeof h[e].unref&&h[e].unref())})),d.on("delete"+_,(function(e){clearTimeout(f[e]),delete f[e],h&&("nextTick"!==h[e]&&clearTimeout(h[e]),delete h[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(h={},m=(1-m)*u,d.on("get"+_,(function(t,i,o){h[t]||(h[t]="nextTick",n((function(){var n;"nextTick"===h[t]&&(delete h[t],d.delete(t),p.async&&(i=e(i)).push(s),n=d.memoized.apply(o,i),p.promise&&r(n)&&("function"==typeof n.done?n.done(s,s):n.then(s,s)))})))}))),d.on("clear"+_,(function(){t(f,(function(e){clearTimeout(e)})),f={},h&&(t(h,(function(e){"nextTick"!==e&&clearTimeout(e)})),h={})})))},maxAge}var max={},lruQueue,hasRequiredLruQueue,hasRequiredMax;function requireLruQueue(){if(hasRequiredLruQueue)return lruQueue;hasRequiredLruQueue=1;var e=requireToPosInteger(),t=Object.create,n=Object.prototype.hasOwnProperty;return lruQueue=function(r){var i,o=0,s=1,a=t(null),c=t(null),l=0;return r=e(r),{hit:function(e){var t=c[e],u=++l;if(a[u]=e,c[e]=u,!t){if(++o<=r)return;return e=a[s],i(e),e}if(delete a[t],s===t)for(;!n.call(a,++s);)continue},delete:i=function(e){var t=c[e];if(t&&(delete a[t],delete c[e],--o,s===t)){if(!o)return l=0,void(s=1);for(;!n.call(a,++s);)continue}},clear:function(){o=0,s=1,a=t(null),c=t(null),l=0}}},lruQueue}function requireMax(){if(hasRequiredMax)return max;hasRequiredMax=1;var e=requireToPosInteger(),t=requireLruQueue(),n=requireRegisteredExtensions();return n.max=function(r,i,o){var s,a,c;(r=e(r))&&(a=t(r),s=o.async&&n.async||o.promise&&n.promise?"async":"",i.on("set"+s,c=function(e){void 0!==(e=a.hit(e))&&i.delete(e)}),i.on("get"+s,c),i.on("delete"+s,a.delete),i.on("clear"+s,a.clear))},max}var refCounter={},hasRequiredRefCounter,memoizee,hasRequiredMemoizee;function requireRefCounter(){if(hasRequiredRefCounter)return refCounter;hasRequiredRefCounter=1;var e=requireD(),t=requireRegisteredExtensions(),n=Object.create,r=Object.defineProperties;return t.refCounter=function(i,o,s){var a,c;a=n(null),c=s.async&&t.async||s.promise&&t.promise?"async":"",o.on("set"+c,(function(e,t){a[e]=t||1})),o.on("get"+c,(function(e){++a[e]})),o.on("delete"+c,(function(e){delete a[e]})),o.on("clear"+c,(function(){a={}})),r(o.memoized,{deleteRef:e((function(){var e=o.get(arguments);return null===e?null:a[e]?! --a[e]&&(o.delete(e),!0):null})),getRefCount:e((function(){var e=o.get(arguments);return null===e?0:a[e]?a[e]:0}))})},refCounter}function requireMemoizee(){if(hasRequiredMemoizee)return memoizee;hasRequiredMemoizee=1;var e=requireNormalizeOptions(),t=requireResolveLength(),n=requirePlain();return memoizee=function(r){var i,o=e(arguments[1]);return o.normalizer||0!==(i=o.length=t(o.length,r.length,o.async))&&(o.primitive?!1===i?o.normalizer=requirePrimitive():i>1&&(o.normalizer=requireGetPrimitiveFixed()(i)):o.normalizer=!1===i?requireGet()():1===i?requireGet1()():requireGetFixed()(i)),o.async&&requireAsync(),o.promise&&requirePromise(),o.dispose&&requireDispose(),o.maxAge&&requireMaxAge(),o.max&&requireMax(),o.refCounter&&requireRefCounter(),n(r,o)},memoizee}var memoizeeExports=requireMemoizee(),memoize=getDefaultExportFromCjs(memoizeeExports);function dedupeCommonParameters(e,t){return t.filter((t=>!e.find((e=>t.name&&e.name?t.name===e.name&&t.in===e.in:!(!isRef(t)||!isRef(e))&&t.$ref===e.$ref))))}function usesPolymorphism(e){return e.oneOf?"oneOf":e.anyOf?"anyOf":!!e.allOf&&"allOf"}function objectify(e){return isObject$1(e)?e:{}}function normalizeArray(e){return Array.isArray(e)?e:[e]}function isFunc(e){return"function"==typeof e}function deeplyStripKey(e,t,n=(e,t)=>!0){if("object"!=typeof e||Array.isArray(e)||null===e||!t)return e;const r={...e};return Object.keys(r).forEach((e=>{e===t&&n(r[e],e)?delete r[e]:r[e]=deeplyStripKey(r[e],t,n)})),r}var sampleDefaults=e=>t=>typeof t.default==typeof e?t.default:e,primitives={string:sampleDefaults("string"),string_email:sampleDefaults("user@example.com"),"string_date-time":sampleDefaults((new Date).toISOString()),string_date:sampleDefaults((new Date).toISOString().substring(0,10)),"string_YYYY-MM-DD":sampleDefaults((new Date).toISOString().substring(0,10)),string_uuid:sampleDefaults("3fa85f64-5717-4562-b3fc-2c963f66afa6"),string_hostname:sampleDefaults("example.com"),string_ipv4:sampleDefaults("198.51.100.42"),string_ipv6:sampleDefaults("2001:0db8:5b96:0000:0000:426f:8e17:642a"),number:sampleDefaults(0),number_float:sampleDefaults(0),integer:sampleDefaults(0),boolean:sampleDefaults(!0)},primitive=e=>{e=objectify(e);const{format:t}=e;let{type:n}=e;if("null"===n)return null;Array.isArray(n)&&(1===n.length?n=n[0]:(n.includes("null")&&(n=n.filter((e=>"null"!==e))),n=n.shift()));const r=primitives[`${n}_${t}`]||primitives[n];return isFunc(r)?r(e):`Unknown Type: ${e.type}`};function sampleFromSchema(e,t={}){const n=objectify(e);let{type:r}=n;const i=usesPolymorphism(n);if("allOf"===i)try{return sampleFromSchema(mergeJSONSchemaAllOf(n,{resolvers:{defaultResolver:mergeJSONSchemaAllOf.options.resolvers.title}}),t)}catch(e){return}else if(i){const e=n[i].map((e=>sampleFromSchema(e,t)));return 1===e.length?e[0]:e.some((e=>null===e))?e.find((e=>null!==e)):e[0]}const{example:o,additionalProperties:s,properties:a,items:c}=n,{includeReadOnly:l,includeWriteOnly:u}=t;if(void 0!==o)return deeplyStripKey(o,"$$ref",(e=>"string"==typeof e&&e.indexOf("#")>-1));if(!r)if(a||s)r="object";else{if(!c)return;r="array"}if("object"===r||Array.isArray(r)&&r.includes("object")){const e=objectify(a),n={};for(const r in e)e[r]&&e[r].deprecated||e[r]&&e[r].readOnly&&!l||e[r]&&e[r].writeOnly&&!u||(e[r].examples?.length?n[r]=e[r].examples[0]:n[r]=sampleFromSchema(e[r],t));if(!0===s)n.additionalProp={};else if(s){const e=sampleFromSchema(objectify(s),t);n.additionalProp=e}return n}return"array"===r||Array.isArray(r)&&r.includes("array")?void 0===c?[]:Array.isArray(c.anyOf)?c.anyOf.map((e=>sampleFromSchema(e,t))):Array.isArray(c.oneOf)?c.oneOf.map((e=>sampleFromSchema(e,t))):[sampleFromSchema(c,t)]:e.enum?e.default?e.default:normalizeArray(e.enum)[0]:"file"!==r?primitive(e):void 0}var samples_default=memoize(sampleFromSchema);function getMediaTypeExamples(e,t,n={}){if(t.example)return[{value:t.example}];if(t.examples){const{examples:e}=t,n=Object.keys(e).map((t=>{let n,r=t,i=e[t];if(null!==i&&"object"==typeof i&&("summary"in i&&(r=i.summary),"description"in i&&(n=i.description),"value"in i)){if(null!==i.value&&"object"==typeof i.value&&"$ref"in i.value)return!1;i=i.value}const o={summary:r,title:t,value:i};return n&&(o.description=n),o})).filter(Boolean);if(n.length)return n}return t.schema&&!matches_mimetype_default.xml(e)?[{value:samples_default(JSON.parse(JSON.stringify(t.schema)),n)}]:[]}function getResponseExamples(e){return Object.keys(e.responses||{}).map((t=>{const n=e.responses[t];let r=!1;if(isRef(n))return!1;const i={};return(n.content?Object.keys(n.content):[]).forEach((e=>{if(!e)return;const t=getMediaTypeExamples(e,n.content[e],{includeReadOnly:!0,includeWriteOnly:!1});t&&(i[e]=t)})),n.headers&&Object.keys(n.headers).length&&!Object.keys(i).length&&(i["*/*"]=[],r=!0),!!Object.keys(i).length&&{status:t,mediaTypes:i,...r?{onlyHeaders:r}:{}}})).filter(Boolean)}function getCallbackExamples(e){return[].concat(...Object.keys(e.callbacks||{}).map((t=>{const n=e.callbacks[t];return[].concat(...Object.keys(n).map((e=>Object.keys(n[e]).map((r=>{const i=getResponseExamples(n[e][r]);return 0!==i.length&&{identifier:t,expression:e,method:r,example:i}}))))).filter(Boolean)})))}var noCorrespondingResponseKey="NoCorrespondingResponseForCustomCodeSample";function addMatchingResponseExamples(e,t){t.getResponseExamples().forEach((t=>{Object.entries(t.mediaTypes||{}).forEach((([n,r])=>{r.forEach((r=>{r.title&&Object.keys(e).includes(r.title)&&(e[r.title].response={mediaType:n,mediaTypeExample:r,status:t.status},e[r.title].name||(e[r.title].name=r.summary))}))}))}))}function getDefaultName(e,t){return e.name&&e.name.length>0?e.name:"Default"+(t[e.language]>1?` #${t[e.language]}`:"")}function getExampleGroups(e){const t={},n={},r=getExtension("code-samples",e.api,e);return r?.forEach(((e,r)=>{t[e.language]?t[e.language]+=1:t[e.language]=1;const i=getDefaultName(e,t);n[e.correspondingExample]?.customCodeSamples?.length?n[e.correspondingExample].customCodeSamples.push({...e,name:i,originalIndex:r}):e.correspondingExample?n[e.correspondingExample]={name:i,customCodeSamples:[{...e,name:i,originalIndex:r}]}:n[noCorrespondingResponseKey]?.customCodeSamples?.length?n[noCorrespondingResponseKey].customCodeSamples.push({...e,name:i,originalIndex:r}):n[noCorrespondingResponseKey]={name:i,customCodeSamples:[{...e,name:i,originalIndex:r}]}})),Object.keys(n).length?(addMatchingResponseExamples(n,e),n):(e.getParameters().forEach((e=>{Object.entries(e.examples||{}).forEach((([t,r])=>{n[t]={...n[t],name:n[t]?.name||r.summary,request:{...n[t]?.request,[e.in]:{...n[t]?.request?.[e.in],[e.name]:r.value}}}}))})),e.getRequestBodyExamples().forEach((e=>{e.examples.forEach((t=>{if(t.title){const r="application/x-www-form-urlencoded"===e.mediaType?"formData":"body";n[t.title]={...n[t.title],name:n[t.title]?.name||t.summary,request:{...n[t.title]?.request,[r]:t.value}}}}))})),Object.keys(n).length&&addMatchingResponseExamples(n,e),Object.entries(n).forEach((([e,t])=>{t.request&&!t.response&&delete n[e]})),n)}function getRequestBodyExamples(e){const t=e.requestBody;return t&&t.content?Object.keys(t.content||{}).map((e=>{const n=getMediaTypeExamples(e,t.content[e],{includeReadOnly:!1,includeWriteOnly:!0});return!!n.length&&{mediaType:e,examples:n}})).filter(Boolean):[]}var isJSON=matches_mimetype_default.json;function buildHeadersSchema(e,t){const n=e.headers,r={type:"object",properties:{}};Object.keys(n).forEach((e=>{if(n[e]&&n[e].schema){const i=n[e];r.properties[e]=toJSONSchema(i.schema,{addEnumsToDescriptions:!0,transformer:t.transformer}),i.description&&(r.properties[e].description=i.description)}}));const i={schema:r,type:"object",label:"Headers"};return e.description&&i.schema&&(i.description=e.description),i}function getResponseAsJSONSchema(e,t,n,r){const i=e.getResponseByStatusCode(n),o=[];if(!i)return null;let s=!1,a=!1;function c(e,t){"ref"===t?s=!0:a=!0}const l=function(e){if(!e)return null;const t=Object.keys(e);if(!t.length)return null;for(let n=0;n{matches_mimetype_default.json(e)&&(this.contentType=e)})),this.contentType}isFormUrlEncoded(){return matches_mimetype_default.formUrlEncoded(this.getContentType())}isMultipart(){return matches_mimetype_default.multipart(this.getContentType())}isJson(){return matches_mimetype_default.json(this.getContentType())}isXml(){return matches_mimetype_default.xml(this.getContentType())}isWebhook(){return this instanceof Webhook}getSecurity(){return this.api?.components?.securitySchemes&&Object.keys(this.api.components.securitySchemes).length&&(this.schema.security||this.api.security)||[]}getSecurityWithTypes(e=!1){return this.getSecurity().map((t=>{let n;try{n=Object.keys(t)}catch(e){return!1}const r=n.map((e=>{let n;try{n=this.api.components.securitySchemes[e]}catch(e){return!1}if(!n)return!1;let r=null;if("http"===n.type)r="basic"===n.scheme?"Basic":"bearer"===n.scheme?"Bearer":n.type;else if("oauth2"===n.type)r="OAuth2";else{if("apiKey"!==n.type)return!1;r="query"===n.in?"Query":"header"===n.in?"Header":"cookie"===n.in?"Cookie":n.type}return{type:r,security:{...n,_key:e,_requirements:t[e]}}}));return e?r.filter((e=>!1!==e)):r}))}prepareSecurity(){return this.getSecurityWithTypes().reduce(((e,t)=>t?(t.forEach((t=>{if(!t)return;e[t.type]||(e[t.type]=[]);e[t.type].some((e=>e._key===t.security._key))||(t.security?._requirements&&delete t.security._requirements,e[t.type].push(t.security))})),e):e),{})}getHeaders(){this.headers={request:[],response:[]};const e=this.prepareSecurity();return e.Header&&(this.headers.request=e.Header.map((e=>e.name))),(e.Bearer||e.Basic||e.OAuth2)&&this.headers.request.push("Authorization"),e.Cookie&&this.headers.request.push("Cookie"),this.schema.parameters&&(this.headers.request=this.headers.request.concat(this.schema.parameters.map((e=>{if(e.in&&"header"===e.in)return e.name})).filter((e=>e)))),this.schema.responses&&(this.headers.response=Object.keys(this.schema.responses).filter((e=>this.schema.responses[e].headers)).map((e=>Object.keys(this.schema.responses[e].headers))).reduce(((e,t)=>e.concat(t)),[])),!this.headers.request.includes("Content-Type")&&this.schema.requestBody&&this.schema.requestBody.content&&Object.keys(this.schema.requestBody.content)&&this.headers.request.push("Content-Type"),this.schema.responses&&Object.keys(this.schema.responses).some((e=>!!this.schema.responses[e].content))&&(this.headers.request.includes("Accept")||this.headers.request.push("Accept"),this.headers.response.includes("Content-Type")||this.headers.response.push("Content-Type")),this.headers}hasOperationId(){return Boolean("operationId"in this.schema&&this.schema.operationId.length)}getOperationId(e={}){function t(t){return t.replace(e?.camelCase||e?.friendlyCase?/[^a-zA-Z0-9_]/g:/[^a-zA-Z0-9]/g,"-").replace(/--+/g,"-").replace(/^-|-$/g,"")}let n;n=this.hasOperationId()?this.schema.operationId:t(this.path).toLowerCase();const r=this.method.toLowerCase();return e?.camelCase||e?.friendlyCase?(e?.friendlyCase&&(n=n.replaceAll("_"," "),this.hasOperationId()||(n=n.replace(/[^a-zA-Z0-9_]+(.)/g,((e,t)=>` ${t}`)).split(" ").filter(((e,t,n)=>e!==n[t-1])).join(" "))),n=n.replace(/[^a-zA-Z0-9_]+(.)/g,((e,t)=>t.toUpperCase())),this.hasOperationId()&&(n=t(n)),n=n.replace(/^[0-9]/g,(e=>`_${e}`)),n=n.charAt(0).toLowerCase()+n.slice(1),n.startsWith(r)||this.hasOperationId()?n:(n=n.charAt(0).toUpperCase()+n.slice(1),`${r}${n}`)):this.hasOperationId()?n:`${r}_${n}`}getTags(){if(!("tags"in this.schema))return[];const e=new Map;"tags"in this.api&&this.api.tags.forEach((t=>{e.set(t.name,t)}));const t=Object.fromEntries(e),n=[];return Array.isArray(this.schema.tags)&&this.schema.tags.forEach((e=>{e in t?n.push(t[e]):n.push({name:e})})),n}isDeprecated(){return"deprecated"in this.schema&&this.schema.deprecated}hasParameters(){return!!this.getParameters().length}getParameters(){let e=this.schema?.parameters||[];const t=this.api?.paths?.[this.path]?.parameters||[];return t.length&&(e=e.concat(dedupeCommonParameters(e,t)||[])),e}hasRequiredParameters(){return this.getParameters().some((e=>"required"in e&&e.required))}getParametersAsJSONSchema(e={}){return getParametersAsJSONSchema(this,this.api,{includeDiscriminatorMappingRefs:!0,transformer:e=>e,...e})}getResponseAsJSONSchema(e,t={}){return getResponseAsJSONSchema(this,this.api,e,{includeDiscriminatorMappingRefs:!0,transformer:e=>e,...t})}getResponseStatusCodes(){return this.schema.responses?Object.keys(this.schema.responses):[]}hasRequestBody(){return!!this.schema.requestBody}getRequestBodyMediaTypes(){if(!this.hasRequestBody())return[];const e=this.schema.requestBody;return isRef(e)?[]:Object.keys(e.content)}hasRequiredRequestBody(){if(!this.hasRequestBody())return!1;const e=this.schema.requestBody;return!isRef(e)&&(!!e.required||!!this.getParametersAsJSONSchema().filter((e=>["body","formData"].includes(e.type))).find((e=>e.schema&&Array.isArray(e.schema.required)&&e.schema.required.length)))}getRequestBody(e){if(!this.hasRequestBody())return!1;const t=this.schema.requestBody;if(isRef(t))return!1;if(e)return e in t.content&&t.content[e];let n;const r=this.getRequestBodyMediaTypes();return r.forEach((e=>{!n&&matches_mimetype_default.json(e)&&(n=e)})),n||r.forEach((e=>{n||(n=e)})),!!n&&[n,t.content[n],...t.description?[t.description]:[]]}getRequestBodyExamples(){const e=void 0!==this.requestBodyExamples?.[0]?.examples?.[0].value;return this.requestBodyExamples&&e||(this.requestBodyExamples=getRequestBodyExamples(this.schema)),this.requestBodyExamples}getResponseByStatusCode(e){if(!this.schema.responses)return!1;if(void 0===this.schema.responses[e])return!1;const t=this.schema.responses[e];return!isRef(t)&&t}getResponseExamples(){return this.responseExamples||(this.responseExamples=getResponseExamples(this.schema)),this.responseExamples}hasCallbacks(){return!!this.schema.callbacks}getCallback(e,t,n){if(!this.schema.callbacks)return!1;const r=!!this.schema.callbacks[e]&&this.schema.callbacks[e][t];return!(!r||!r[n])&&new Callback(this.api,t,n,r[n],e,r)}getCallbacks(){const e=[];return!!this.hasCallbacks()&&(Object.keys(this.schema.callbacks).forEach((t=>{Object.keys(this.schema.callbacks[t]).forEach((n=>{const r=this.schema.callbacks[t];if(!isRef(r)){const i=r[n];isRef(i)||Object.keys(i).forEach((r=>{supportedMethods.has(r)&&e.push(this.getCallback(t,n,r))}))}}))})),e)}getCallbackExamples(){return this.callbackExamples||(this.callbackExamples=getCallbackExamples(this.schema)),this.callbackExamples}hasExtension(e){return Boolean(this.schema&&e in this.schema)}getExtension(e){return this.schema?.[e]}getExampleGroups(){if(this.exampleGroups)return this.exampleGroups;const e=getExampleGroups(this);return this.exampleGroups=e,e}},Callback=class extends Operation{constructor(e,t,n,r,i,o){super(e,t,n,r),this.identifier=i,this.parentSchema=o}getIdentifier(){return this.identifier}getSummary(){return this.schema?.summary&&"string"==typeof this.schema.summary?this.schema.summary:this.parentSchema.summary&&"string"==typeof this.parentSchema.summary?this.parentSchema.summary:void 0}getDescription(){return this.schema?.description&&"string"==typeof this.schema.description?this.schema.description:this.parentSchema.description&&"string"==typeof this.parentSchema.description?this.parentSchema.description:void 0}getParameters(){let e=this.schema?.parameters||[];const t=this.parentSchema.parameters||[];return t.length&&(e=e.concat(dedupeCommonParameters(e,t)||[])),e}},Webhook=class extends Operation{getSummary(){return this.schema?.summary&&"string"==typeof this.schema.summary?this.schema.summary:this.api.webhooks[this.path].summary&&"string"==typeof this.api.webhooks[this.path].summary?this.api.webhooks[this.path].summary:void 0}getDescription(){return this.schema?.description&&"string"==typeof this.schema.description?this.schema.description:this.api.webhooks[this.path].description&&"string"==typeof this.api.webhooks[this.path].description?this.api.webhooks[this.path].description:void 0}},libExports=requireLib$d(),$RefParser=getDefaultExportFromCjs(libExports),dist={},hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist;hasRequiredDist=1,Object.defineProperty(dist,"__esModule",{value:!0}),dist.TokenData=void 0,dist.parse=l,dist.compile=function(t,n={}){const{encode:r=encodeURIComponent,delimiter:i=e}=n,o=t instanceof c?t:l(t,n),s=u(o.tokens,i,r);return function(e={}){const[t,...n]=s(e);if(n.length)throw new TypeError(`Missing parameters: ${n.join(", ")}`);return t}},dist.match=function(n,r={}){const{decode:i=decodeURIComponent,delimiter:o=e}=r,{regexp:s,keys:a}=d(n,r),c=a.map((e=>!1===i?t:"param"===e.type?i:e=>e.split(o).map(i)));return function(e){const t=s.exec(e);if(!t)return!1;const n=t[0],r=Object.create(null);for(let e=1;er.test(e)))}(t.name)&&function(e){return"text"!==(null==e?void 0:e.type)||!r.test(e.value[0])}(o[i+1]),a=s?t.name:JSON.stringify(t.name);if("param"===t.type)return`:${a}`;if("wildcard"===t.type)return`*${a}`;throw new TypeError(`Unexpected token: ${t}`)})).join("")};const e="/",t=e=>e,n=/^[$_\p{ID_Start}]$/u,r=/^[$\u200c\u200d\p{ID_Continue}]$/u,i="https://git.new/pathToRegexpError",o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function s(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class a{constructor(e){this.tokens=e}peek(){if(!this._peek){const e=this.tokens.next();this._peek=e.value}return this._peek}tryConsume(e){const t=this.peek();if(t.type===e)return this._peek=void 0,t.value}consume(e){const t=this.tryConsume(e);if(void 0!==t)return t;const{type:n,index:r}=this.peek();throw new TypeError(`Unexpected ${n} at ${r}, expected ${e}: ${i}`)}text(){let e,t="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=e;return t}}class c{constructor(e){this.tokens=e}}function l(e,s={}){const{encodePath:l=t}=s,u=new a(function*(e){const t=[...e];let s=0;function a(){let e="";if(n.test(t[++s]))for(e+=t[s];r.test(t[++s]);)e+=t[s];else if('"'===t[s]){let n=s;for(;sfunction(e,n,r){if("text"===e.type)return()=>[e.value];if("group"===e.type){const t=u(e.tokens,n,r);return e=>{const[n,...r]=t(e);return r.length?[""]:[n]}}const i=r||t;if("wildcard"===e.type&&!1!==r)return t=>{const r=t[e.name];if(null==r)return["",e.name];if(!Array.isArray(r)||0===r.length)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[r.map(((t,n)=>{if("string"!=typeof t)throw new TypeError(`Expected "${e.name}/${n}" to be a string`);return i(t)})).join(n)]};return t=>{const n=t[e.name];if(null==n)return["",e.name];if("string"!=typeof n)throw new TypeError(`Expected "${e.name}" to be a string`);return[i(n)]}}(e,n,r)));return e=>{const t=[""];for(const n of i){const[r,...i]=n(e);t[0]+=r,t.push(...i)}return t}}function d(t,n={}){const{delimiter:r=e,end:i=!0,sensitive:o=!1,trailing:a=!0}=n,u=[],d=[],_=o?"":"i",m=(Array.isArray(t)?t:[t]).map((e=>e instanceof c?e:l(e,n)));for(const{tokens:e}of m)for(const t of p(e,0,[])){const e=f(t,r,u);d.push(e)}let h=`^(?:${d.join("|")})`;a&&(h+=`(?:${s(r)}$)?`),h+=i?"$":`(?=${s(r)}|$)`;return{regexp:new RegExp(h,_),keys:u}}function*p(e,t,n){if(t===e.length)return yield n;const r=e[t];if("group"===r.type){const i=n.slice();for(const n of p(r.tokens,0,i))yield*p(e,t+1,n)}else n.push(r);yield*p(e,t+1,n)}function f(e,t,n){let r="",o="",a=!0;for(let c=0;ce.name===n)):e.keys[0],t):getKey(e,t)}function getAuth(e,t,n){return Object.keys(e?.components?.securitySchemes||{}).map((r=>({[r]:getByScheme(t,{...e.components.securitySchemes[r],_key:r},n)}))).reduce(((e,t)=>Object.assign(e,t)),{})}function getUserVariable(e,t,n){let r=e;return"keys"in e&&Array.isArray(e.keys)&&e.keys.length&&(r=e.keys[0]),r[t]||e[t]||null}var SERVER_VARIABLE_REGEX=/{([-_a-zA-Z0-9:.[\]]+)}/g;function ensureProtocol(e){return e.match(/^\/\//)?`https:${e}`:e.match(/\/\//)?e:`https://${e}`}function stripTrailingSlash(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function normalizedUrl(e,t){const n="https://example.com";let r;try{if(r=e.servers[t].url,!r)throw new Error("no url");if(r=stripTrailingSlash(r),r.startsWith("/")&&!r.startsWith("//")){const e=new URL(n);e.pathname=r,r=e.href}}catch(e){r=n}return ensureProtocol(r)}function transformUrlIntoRegex(e){return stripTrailingSlash(e.replace(SERVER_VARIABLE_REGEX,"([-_a-zA-Z0-9:.[\\]]+)"))}function normalizePath(e){return e.replace(/({?){(.*?)}(}?)/g,((e,...t)=>`:${t[1].replace("-","")}`)).replace(/::/,"\\::").split("?")[0]}function generatePathMatches(e,t,n){const r=t.split("?")[0];return Object.keys(e).map((t=>{const i=normalizePath(t);let o;try{const e=distExports.match(i,{decode:decodeURIComponent});o=e(r)}catch(e){return}const s={};return o&&Object.keys(o.params).length&&Object.keys(o.params).forEach((e=>{s[`:${e}`]=o.params[e]})),{url:{origin:n,path:i.replace(/\\::/,"::"),nonNormalizedPath:t,slugs:s},operation:e[t],match:o}})).filter(Boolean).filter((e=>e.match))}function filterPathMethods(e,t){const n=distExports.pathToRegexp(t);return e.map((e=>{const t=Object.keys(e.operation).filter((e=>n.regexp.exec(e)));if(t.length){const n=t[0];return e.url.method=n.toUpperCase(),{url:e.url,operation:e.operation[n]}}return!1})).filter(Boolean)}function findTargetPath(e){let t,n=Object.keys(e[0].url.slugs).length;for(let r=0;r{n[e]=getUserVariable(this.user,e)||t[e].default||""})),n}splitUrl(e=0){const t=normalizedUrl(this.api,e),n=this.variables(e);return t.split(/({.+?})/).filter(Boolean).map(((e,t)=>{const r=e.match(/[{}]/),i=e.replace(/[{}]/g,""),o=`${i}-${t}`;if(!r)return{type:"text",value:i,key:o};const s=n?.[i];return{type:"variable",value:i,key:o,description:s?.description,enum:s?.enum}}))}splitVariables(e){const t=(this.api.servers||[]).map(((t,n)=>{const r=transformUrlIntoRegex(t.url),i=new RegExp(r).exec(e);if(!i)return!1;const o={};return Array.from(t.url.matchAll(SERVER_VARIABLE_REGEX)).forEach(((e,t)=>{o[e[1]]=i[t+1]})),{selected:n,variables:o}})).filter(Boolean);return!!t.length&&t[0]}replaceUrl(e,t={}){return stripTrailingSlash(e.replace(SERVER_VARIABLE_REGEX,((e,n)=>{if(n in t){const e=t[n];if("object"!=typeof e)return e;if(!Array.isArray(e)&&null!==e&&"default"in e)return e.default}const r=getUserVariable(this.user,n);return r||e})))}operation(e,t,n={}){let r={parameters:[]};if(n.isWebhook){const n=this.api;if(n?.webhooks[e]?.[t])return r=n.webhooks[e][t],new Webhook(n,e,t,r)}return this?.api?.paths?.[e]?.[t]&&(r=this.api.paths[e][t]),new Operation(this.api,e,t,r)}findOperationMatches(e){const{origin:t,hostname:n}=new URL(e),r=new RegExp(t,"i"),{servers:i,paths:o}=this.api;let s,a,c;if(i&&i.length){if(c=i.find((e=>r.exec(this.replaceUrl(e.url,e.variables||{})))),!c){const e=new RegExp(n);c=i.find((t=>e.exec(this.replaceUrl(t.url,t.variables||{}))))}}else c={url:"https://example.com"};if(c)a={...c,url:this.replaceUrl(c.url,c.variables||{})},[,s]=e.split(new RegExp(a.url,"i"));else{const t=i.map((t=>{const n=transformUrlIntoRegex(t.url);if(new RegExp(n).exec(e))return{matchedServer:t,pathName:e.split(new RegExp(n)).slice(-1).pop()}})).filter(Boolean);if(!t.length)return;s=t[0].pathName,a={...t[0].matchedServer}}if(void 0===s)return;""===s&&(s="/");const l=generatePathMatches(o,s,a.url);return l.length?l:void 0}findOperation(e,t){const n=this.findOperationMatches(e);if(!n)return;const r=filterPathMethods(n,t);return r.length?findTargetPath(r):void 0}findOperationWithoutMethod(e){const t=this.findOperationMatches(e);if(t)return findTargetPath(t)}getOperation(e,t){const n=this.findOperation(e,t);if(void 0!==n)return this.operation(n.url.nonNormalizedPath,t)}getOperationById(e){let t;return Object.values(this.getPaths()).forEach((n=>{t||(t=Object.values(n).find((t=>t.getOperationId()===e)))})),t||(Object.entries(this.getWebhooks()).forEach((([,n])=>{t||(t=Object.values(n).find((t=>t.getOperationId()===e)))})),t)}getAuth(e,t){return this.api?.components?.securitySchemes?getAuth(this.api,e,t):{}}getPaths(){const e={};return Object.keys(this.api.paths?this.api.paths:[]).forEach((t=>{t.startsWith("x-")||(e[t]={},"$ref"in this.api.paths[t]&&(this.api.paths[t]=findSchemaDefinition(this.api.paths[t].$ref,this.api)),Object.keys(this.api.paths[t]).forEach((n=>{supportedMethods.has(n)&&(e[t][n]=this.operation(t,n))})))})),e}getWebhooks(){const e={},t=this.api;return Object.keys(t.webhooks?t.webhooks:[]).forEach((n=>{e[n]={},Object.keys(t.webhooks[n]).forEach((t=>{e[n][t]=this.operation(n,t,{isWebhook:!0})}))})),e}getTags(e=!1){const t=new Set,n=this.api.tags?.map((e=>e.name))||[],r=getExtension("disable-tag-sorting",this.api);Object.entries(this.getPaths()).forEach((([n,r])=>{Object.values(r).forEach((r=>{const i=r.getTags();!e||i.length?i.forEach((e=>{t.add(e.name)})):t.add(n)}))})),Object.entries(this.getWebhooks()).forEach((([n,r])=>{Object.values(r).forEach((r=>{const i=r.getTags();!e||i.length?i.forEach((e=>{t.add(e.name)})):t.add(n)}))}));const i=[],o=[];if(r)return Array.from(t);Array.from(t).forEach((e=>{n.includes(e)?o.push(e):i.push(e)}));let s=o.sort(((e,t)=>n.indexOf(e)-n.indexOf(t)));return s=s.concat(i),s}hasExtension(e){return hasRootExtension(e,this.api)}getExtension(e,t){return getExtension(e,this.api,t)}validateExtension(e){if(this.hasExtension("x-readme")){const t=this.getExtension("x-readme");if("object"!=typeof t||Array.isArray(t)||null===t)throw new TypeError('"x-readme" must be of type "Object"');if(e in t)if([CODE_SAMPLES,HEADERS,PARAMETER_ORDERING,SAMPLES_LANGUAGES].includes(e)){if(!Array.isArray(t[e]))throw new TypeError(`"x-readme.${e}" must be of type "Array"`);e===PARAMETER_ORDERING&&validateParameterOrdering(t[e],`x-readme.${e}`)}else if(e===OAUTH_OPTIONS){if("object"!=typeof t[e])throw new TypeError(`"x-readme.${e}" must be of type "Object"`)}else if("boolean"!=typeof t[e])throw new TypeError(`"x-readme.${e}" must be of type "Boolean"`)}if(this.hasExtension(`x-${e}`)){const t=this.getExtension(`x-${e}`);if([CODE_SAMPLES,HEADERS,PARAMETER_ORDERING,SAMPLES_LANGUAGES].includes(e)){if(!Array.isArray(t))throw new TypeError(`"x-${e}" must be of type "Array"`);e===PARAMETER_ORDERING&&validateParameterOrdering(t,`x-${e}`)}else if(e===OAUTH_OPTIONS){if("object"!=typeof t)throw new TypeError(`"x-${e}" must be of type "Object"`)}else if("boolean"!=typeof t)throw new TypeError(`"x-${e}" must be of type "Boolean"`)}}validateExtensions(){Object.keys(extensionDefaults).forEach((e=>{this.validateExtension(e)}))}getCircularReferences(){if(!this.dereferencing.complete)throw new Error("#dereference() must be called first in order for this method to obtain circular references.");return this.dereferencing.circularRefs}async dereference(e={preserveRefAsJSONSchemaTitle:!1}){if(this.dereferencing.complete)return new Promise((e=>{e(!0)}));if(this.dereferencing.processing)return new Promise(((e,t)=>{this.promises.push({resolve:e,reject:t})}));this.dereferencing.processing=!0;const{api:t,promises:n}=this;t&&t.components&&t.components.schemas&&"object"==typeof t.components.schemas&&Object.keys(t.components.schemas).forEach((n=>{isPrimitive(t.components.schemas[n])||Array.isArray(t.components.schemas[n])||null===t.components.schemas[n]||(e.preserveRefAsJSONSchemaTitle&&(t.components.schemas[n].title=n),t.components.schemas[n]["x-readme-ref-name"]=n)}));const r=new $RefParser;return r.dereference(t||{},{resolve:{external:!1},dereference:{circular:"ignore"}}).then((t=>{let i=[];r.$refs.circular&&(i=r.$refs.circularRefs.map((e=>`#${e.split("#")[1]}`))),this.api=t,this.promises=n,this.dereferencing={processing:!1,complete:!0,circularRefs:i},e.cb&&e.cb()})).then((()=>this.promises.map((e=>e.resolve()))))}};class Hooks{add(e,t,n){if("string"!=typeof arguments[0])for(let e in arguments[0])this.add(e,arguments[0][e],arguments[1]);else(Array.isArray(e)?e:[e]).forEach((function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)}),this)}run(e,t){this[e]=this[e]||[],this[e].forEach((function(e){e.call(t&&t.context?t.context:t,t)}))}}class Plugins{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach((e=>{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)}))}}class Jsep{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+Jsep.version}static addUnaryOp(e){return Jsep.max_unop_len=Math.max(e.length,Jsep.max_unop_len),Jsep.unary_ops[e]=1,Jsep}static addBinaryOp(e,t,n){return Jsep.max_binop_len=Math.max(e.length,Jsep.max_binop_len),Jsep.binary_ops[e]=t,n?Jsep.right_associative.add(e):Jsep.right_associative.delete(e),Jsep}static addIdentifierChar(e){return Jsep.additional_identifier_chars.add(e),Jsep}static addLiteral(e,t){return Jsep.literals[e]=t,Jsep}static removeUnaryOp(e){return delete Jsep.unary_ops[e],e.length===Jsep.max_unop_len&&(Jsep.max_unop_len=Jsep.getMaxKeyLen(Jsep.unary_ops)),Jsep}static removeAllUnaryOps(){return Jsep.unary_ops={},Jsep.max_unop_len=0,Jsep}static removeIdentifierChar(e){return Jsep.additional_identifier_chars.delete(e),Jsep}static removeBinaryOp(e){return delete Jsep.binary_ops[e],e.length===Jsep.max_binop_len&&(Jsep.max_binop_len=Jsep.getMaxKeyLen(Jsep.binary_ops)),Jsep.right_associative.delete(e),Jsep}static removeAllBinaryOps(){return Jsep.binary_ops={},Jsep.max_binop_len=0,Jsep}static removeLiteral(e){return delete Jsep.literals[e],Jsep}static removeAllLiterals(){return Jsep.literals={},Jsep}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new Jsep(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map((e=>e.length)))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return Jsep.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!Jsep.binary_ops[String.fromCharCode(e)]||Jsep.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return Jsep.isIdentifierStart(e)||Jsep.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(Jsep.hooks[e]){const n={context:this,node:t};return Jsep.hooks.run(e,n),n.node}return t}searchHook(e){if(Jsep.hooks[e]){const t={context:this};return Jsep.hooks[e].find((function(e){return e.call(t.context,t),t.node})),t.node}}gobbleSpaces(){let e=this.code;for(;e===Jsep.SPACE_CODE||e===Jsep.TAB_CODE||e===Jsep.LF_CODE||e===Jsep.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:Jsep.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t,n,r=[];for(;this.index0;){if(Jsep.binary_ops.hasOwnProperty(e)&&(!Jsep.isIdentifierStart(this.code)||this.index+e.lengthi.right_a&&e.right_a?n>e.prec:n<=e.prec;for(;r.length>2&&a(r[r.length-2]);)s=r.pop(),t=r.pop().value,o=r.pop(),e={type:Jsep.BINARY_EXP,operator:t,left:o,right:s},r.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+c),r.push(i,e)}for(a=r.length-1,e=r[a];a>1;)e={type:Jsep.BINARY_EXP,operator:r[a-1].value,left:r[a-2],right:e},a-=2;return e}gobbleToken(){let e,t,n,r;if(this.gobbleSpaces(),r=this.searchHook("gobble-token"),r)return this.runHook("after-token",r);if(e=this.code,Jsep.isDecimalDigit(e)||e===Jsep.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===Jsep.SQUOTE_CODE||e===Jsep.DQUOTE_CODE)r=this.gobbleStringLiteral();else if(e===Jsep.OBRACK_CODE)r=this.gobbleArray();else{for(t=this.expr.substr(this.index,Jsep.max_unop_len),n=t.length;n>0;){if(Jsep.unary_ops.hasOwnProperty(t)&&(!Jsep.isIdentifierStart(this.code)||this.index+t.length=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(i===Jsep.COMMA_CODE){if(this.index++,r++,r!==t.length)if(e===Jsep.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===Jsep.CBRACK_CODE)for(let e=t.length;e":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),Jsep.max_unop_len=Jsep.getMaxKeyLen(Jsep.unary_ops),Jsep.max_binop_len=Jsep.getMaxKeyLen(Jsep.binary_ops);const jsep=e=>new Jsep(e).parse(),stdClassProps=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(Jsep).filter((e=>!stdClassProps.includes(e)&&void 0===jsep[e])).forEach((e=>{jsep[e]=Jsep[e]})),jsep.Jsep=Jsep;const CONDITIONAL_EXP="ConditionalExpression";var ternary={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:CONDITIONAL_EXP,test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){let r=n;for(;r.right.operator&&e.binary_ops[r.right.operator]<=.9;)r=r.right;t.node.test=r.right,r.right=t.node,t.node=n}}else this.throwError("Expected :")}}))}};jsep.plugins.register(ternary);const FSLASH_CODE=47,BSLASH_CODE=92;var index={name:"regex",init(e){e.hooks.add("gobble-token",(function(t){if(this.code===FSLASH_CODE){const n=++this.index;let r=!1;for(;this.index=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57))break;o+=this.char}try{i=new RegExp(r,o)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:i,raw:this.expr.slice(n-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?r=!0:r&&this.code===e.CBRACK_CODE&&(r=!1),this.index+=this.code===BSLASH_CODE?2:1}this.throwError("Unclosed Regex")}}))}};const PLUS_CODE=43,MINUS_CODE=45,plugin={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[PLUS_CODE,MINUS_CODE],assignmentPrecedence:.9,init(e){const t=[e.IDENTIFIER,e.MEMBER_EXP];function n(e){plugin.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",n(e.left),n(e.right)):e.operator||Object.values(e).forEach((e=>{e&&"object"==typeof e&&n(e)}))}plugin.assignmentOperators.forEach((t=>e.addBinaryOp(t,plugin.assignmentPrecedence,!0))),e.hooks.add("gobble-token",(function(e){const n=this.code;plugin.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(this.index+=2,e.node={type:"UpdateExpression",operator:n===PLUS_CODE?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},e.node.argument&&t.includes(e.node.argument.type)||this.throwError(`Unexpected ${e.node.operator}`))})),e.hooks.add("after-token",(function(e){if(e.node){const n=this.code;plugin.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(t.includes(e.node.type)||this.throwError(`Unexpected ${e.node.operator}`),this.index+=2,e.node={type:"UpdateExpression",operator:n===PLUS_CODE?"++":"--",argument:e.node,prefix:!1})}})),e.hooks.add("after-expression",(function(e){e.node&&n(e.node)}))}};jsep.plugins.register(index,plugin),jsep.addUnaryOp("typeof"),jsep.addLiteral("null",null),jsep.addLiteral("undefined",void 0);const BLOCKED_PROTO_PROPERTIES=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__"]),SafeEval={evalAst(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return SafeEval.evalBinaryExpression(e,t);case"Compound":return SafeEval.evalCompound(e,t);case"ConditionalExpression":return SafeEval.evalConditionalExpression(e,t);case"Identifier":return SafeEval.evalIdentifier(e,t);case"Literal":return SafeEval.evalLiteral(e,t);case"MemberExpression":return SafeEval.evalMemberExpression(e,t);case"UnaryExpression":return SafeEval.evalUnaryExpression(e,t);case"ArrayExpression":return SafeEval.evalArrayExpression(e,t);case"CallExpression":return SafeEval.evalCallExpression(e,t);case"AssignmentExpression":return SafeEval.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression:(e,t)=>({"||":(e,t)=>e||t(),"&&":(e,t)=>e&&t(),"|":(e,t)=>e|t(),"^":(e,t)=>e^t(),"&":(e,t)=>e&t(),"==":(e,t)=>e==t(),"!=":(e,t)=>e!=t(),"===":(e,t)=>e===t(),"!==":(e,t)=>e!==t(),"<":(e,t)=>e":(e,t)=>e>t(),"<=":(e,t)=>e<=t(),">=":(e,t)=>e>=t(),"<<":(e,t)=>e<>":(e,t)=>e>>t(),">>>":(e,t)=>e>>>t(),"+":(e,t)=>e+t(),"-":(e,t)=>e-t(),"*":(e,t)=>e*t(),"/":(e,t)=>e/t(),"%":(e,t)=>e%t()}[e.operator](SafeEval.evalAst(e.left,t),(()=>SafeEval.evalAst(e.right,t)))),evalCompound(e,t){let n;for(let r=0;rSafeEval.evalAst(e.test,t)?SafeEval.evalAst(e.consequent,t):SafeEval.evalAst(e.alternate,t),evalIdentifier(e,t){if(Object.hasOwn(t,e.name))return t[e.name];throw ReferenceError(`${e.name} is not defined`)},evalLiteral:e=>e.value,evalMemberExpression(e,t){const n=e.computed?SafeEval.evalAst(e.property):e.property.name,r=SafeEval.evalAst(e.object,t);if(null==r)throw TypeError(`Cannot read properties of ${r} (reading '${n}')`);if(!Object.hasOwn(r,n)&&BLOCKED_PROTO_PROPERTIES.has(n))throw TypeError(`Cannot read properties of ${r} (reading '${n}')`);const i=r[n];return"function"==typeof i?i.bind(r):i},evalUnaryExpression:(e,t)=>({"-":e=>-SafeEval.evalAst(e,t),"!":e=>!SafeEval.evalAst(e,t),"~":e=>~SafeEval.evalAst(e,t),"+":e=>+SafeEval.evalAst(e,t),typeof:e=>typeof SafeEval.evalAst(e,t)}[e.operator](e.argument)),evalArrayExpression:(e,t)=>e.elements.map((e=>SafeEval.evalAst(e,t))),evalCallExpression(e,t){const n=e.arguments.map((e=>SafeEval.evalAst(e,t)));return SafeEval.evalAst(e.callee,t)(...n)},evalAssignmentExpression(e,t){if("Identifier"!==e.left.type)throw SyntaxError("Invalid left-hand side in assignment");const n=e.left.name,r=SafeEval.evalAst(e.right,t);return t[n]=r,t[n]}};class SafeScript{constructor(e){this.code=e,this.ast=jsep(this.code)}runInNewContext(e){const t=Object.assign(Object.create(null),e);return SafeEval.evalAst(this.ast,t)}}function push(e,t){return(e=e.slice()).push(t),e}function unshift(e,t){return(t=t.slice()).unshift(e),t}class NewError extends Error{constructor(e){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=e,this.name="NewError"}}function JSONPath(e,t,n,r,i){if(!(this instanceof JSONPath))try{return new JSONPath(e,t,n,r,i)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(i=r,r=n,n=t,t=e,e=null);const o=e&&"object"==typeof e;if(e=e||{},this.json=e.json||n,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!Object.hasOwn(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.eval=void 0===e.eval?"safe":e.eval,this.ignoreEvalErrors=void 0!==e.ignoreEvalErrors&&e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||r||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){const r={path:o?e.path:t};o?"json"in e&&(r.json=e.json):r.json=n;const i=this.evaluate(r);if(!i||"object"!=typeof i)throw new NewError(i);return i}}function query(e,t){const n=e.map((e=>JSONPath({path:e,json:t,resultType:"all"}))).filter((e=>!!e.length&&e)).reduce(((e,t)=>e.concat(t)),[]);return n.sort(((e,t)=>e.pointert.pointer?1:0)),n}function refizePointer(e){return`#${e}`}function additionalProperties(e){return query(["$..additionalProperties"],e).map((e=>refizePointer(e.pointer)))}function callbacks(e){return query(["$.components.callbacks","$.paths..callbacks"],e).map((e=>refizePointer(e.pointer)))}async function circularRefs(e){const t=new Oas(JSON.parse(JSON.stringify(e)));await t.dereference();const n=t.getCircularReferences();return n.sort(),n}function discriminators(e){return query(["$..discriminator"],e).map((e=>refizePointer(e.pointer)))}function links(e){return query(["$..links"],e).map((e=>refizePointer(e.pointer)))}function mediaTypes(e){const t=Array.from(new Set(query(["$..paths..content"],e).map((e=>Object.keys(e.value))).flat()));return t.sort(),t}function parameterSerialization(e){return query(["$..parameters[*].style^"],e).map((e=>refizePointer(e.pointer)))}function polymorphism(e){const t=Array.from(new Set(query(["$..allOf^","$..anyOf^","$..oneOf^"],e).map((e=>refizePointer(e.pointer)))));return t.sort(),t}function securityTypes(e){return Array.from(new Set(query(["$.components.securitySchemes..type"],e).map((e=>e.value))))}function serverVariables(e){return query(["$.servers..variables^"],e).map((e=>refizePointer(e.pointer)))}function totalOperations(e){return query(["$..paths[*]"],e).map((e=>Object.keys(e.value))).flat().length}function webhooks(e){return query(["$.webhooks[*]"],e).map((e=>refizePointer(e.pointer)))}function xml(e){return query(["$.components.schemas..xml^","$..parameters..xml^","$..requestBody..xml^","$..requestBody..['application/xml']","$..requestBody..['application/xml-external-parsed-entity']","$..requestBody..['application/xml-dtd']","$..requestBody..['text/xml']","$..requestBody..['text/xml-external-parsed-entity']","$..requestBody.content[?(@property.match(/\\+xml$/i))]","$..responses..['application/xml']","$..responses..['application/xml-external-parsed-entity']","$..responses..['application/xml-dtd']","$..responses..['text/xml']","$..responses..['text/xml-external-parsed-entity']","$..responses[*].content[?(@property.match(/\\+xml$/i))]"],e).map((e=>refizePointer(e.pointer)))}function authDefaults(e){return query(["$.components.securitySchemes..['x-default']^"],e).map((e=>refizePointer(e.pointer)))}function codeSampleLanguages(e){const t=Array.from(new Set(query(["$..['x-readme']['samples-languages']","$..['x-samples-languages']"],e).map((e=>e.value)).reduce(((e,t)=>e.concat(t)),[])));return t.sort(),t}function codeSamplesDisabled(e){return Array.from(new Set(query(["$['x-samples-enabled']^","$['x-readme']['samples-enabled']","$..paths[*]..['x-samples-enabled']^","$..paths[*]..['x-readme']['samples-enabled']^^"],e).map((e=>refizePointer(e.pointer)))))}function corsProxyDisabled(e){return Array.from(new Set(query(["$['x-proxy-enabled']^","$['x-readme']['proxy-enabled']","$..paths[*]..['x-proxy-enabled']^","$..paths[*]..['x-readme']['proxy-enabled']^^"],e).map((e=>refizePointer(e.pointer)))))}function customCodeSamples(e){return query(["$..['x-code-samples']","$..['x-readme']['code-samples']"],e).filter((e=>!(!Array.isArray(e.value)||!e.value.length)&&e)).map((e=>refizePointer(e.pointer)))}function explorerDisabled(e){return query(["$['x-explorer-enabled']^","$['x-readme']['explorer-enabled']","$..paths[*]..['x-explorer-enabled']^","$..paths[*]..['x-readme']['explorer-enabled']^^"],e).map((e=>refizePointer(e.pointer)))}function rawBody(e){return query(["$..RAW_BODY^^"],e).map((e=>refizePointer(e.pointer)))}function staticHeaders(e){return query(["$..['x-headers']","$..['x-readme']['headers']"],e).filter((e=>!(!Array.isArray(e.value)||!e.value.length)&&e)).map((e=>refizePointer(e.pointer)))}async function analyzer(e){const t=additionalProperties(e),n=callbacks(e),r=await circularRefs(e),i=discriminators(e),o=links(e),s=parameterSerialization(e),a=polymorphism(e),c=serverVariables(e),l=webhooks(e),u=xml(e),d=authDefaults(e),p=codeSampleLanguages(e),f=customCodeSamples(e),_=codeSamplesDisabled(e),m=corsProxyDisabled(e),h=explorerDisabled(e),g=staticHeaders(e),A=rawBody(e),y={general:{mediaTypes:{name:"Media Type",found:mediaTypes(e)},operationTotal:{name:"Operation",found:totalOperations(e)},securityTypes:{name:"Security Type",found:securityTypes(e)}},openapi:{additionalProperties:{present:!!t.length,locations:t},callbacks:{present:!!n.length,locations:n},circularRefs:{present:!!r.length,locations:r},discriminators:{present:!!i.length,locations:i},links:{present:!!o.length,locations:o},style:{present:!!s.length,locations:s},polymorphism:{present:!!a.length,locations:a},serverVariables:{present:!!c.length,locations:c},webhooks:{present:!!l.length,locations:l},xml:{present:!!u.length,locations:u}},readme:{"x-default":{present:!!d.length,locations:d},"x-readme.code-samples":{present:!!f.length,locations:f},"x-readme.headers":{present:!!g.length,locations:g},"x-readme.explorer-enabled":{present:!!h.length,locations:h},"x-readme.proxy-enabled":{present:!!m.length,locations:m},"x-readme.samples-languages":{present:!!p.length,locations:p}}};return _.length&&(y.readme["x-readme.samples-enabled"]={present:!!_.length,locations:_}),A.length&&(y.readme.raw_body={present:!!A.length,locations:A}),y}JSONPath.prototype.evaluate=function(e,t,n,r){let i=this.parent,o=this.parentProperty,{flatten:s,wrap:a}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=r||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"==typeof e&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:t}=e),s=Object.hasOwn(e,"flatten")?e.flatten:s,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,a=Object.hasOwn(e,"wrap")?e.wrap:a,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,n=Object.hasOwn(e,"callback")?e.callback:n,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,i=Object.hasOwn(e,"parent")?e.parent:i,o=Object.hasOwn(e,"parentProperty")?e.parentProperty:o,e=e.path}if(i=i||null,o=o||null,Array.isArray(e)&&(e=JSONPath.toPathString(e)),!e&&""!==e||!t)return;const c=JSONPath.toPathArray(e);"$"===c[0]&&c.length>1&&c.shift(),this._hasParentSelector=null;const l=this._trace(c,t,["$"],i,o,n).filter((function(e){return e&&!e.isParentSelector}));return l.length?a||1!==l.length||l[0].hasArrExpr?l.reduce(((e,t)=>{const n=this._getPreferredOutput(t);return s&&Array.isArray(n)?e=e.concat(n):e.push(n),e}),[]):this._getPreferredOutput(l[0]):a?[]:void 0},JSONPath.prototype._getPreferredOutput=function(e){const t=this.currResultType;switch(t){case"all":{const t=Array.isArray(e.path)?e.path:JSONPath.toPathArray(e.path);return e.pointer=JSONPath.toPointer(t),e.path="string"==typeof e.path?e.path:JSONPath.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return JSONPath.toPathString(e[t]);case"pointer":return JSONPath.toPointer(e.path);default:throw new TypeError("Unknown result type")}},JSONPath.prototype._handleCallback=function(e,t,n){if(t){const r=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:JSONPath.toPathString(e.path),t(r,n,e)}},JSONPath.prototype._trace=function(e,t,n,r,i,o,s,a){let c;if(!e.length)return c={path:n,value:t,parent:r,parentProperty:i,hasArrExpr:s},this._handleCallback(c,o,"value"),c;const l=e[0],u=e.slice(1),d=[];function p(e){Array.isArray(e)?e.forEach((e=>{d.push(e)})):d.push(e)}if(("string"!=typeof l||a)&&t&&Object.hasOwn(t,l))p(this._trace(u,t[l],push(n,l),t,l,o,s));else if("*"===l)this._walk(t,(e=>{p(this._trace(u,t[e],push(n,e),t,e,o,!0,!0))}));else if(".."===l)p(this._trace(u,t,n,r,i,o,s)),this._walk(t,(r=>{"object"==typeof t[r]&&p(this._trace(e.slice(),t[r],push(n,r),t,r,o,!0))}));else{if("^"===l)return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:u,isParentSelector:!0};if("~"===l)return c={path:push(n,l),value:i,parent:r,parentProperty:null},this._handleCallback(c,o,"property"),c;if("$"===l)p(this._trace(u,t,n,null,null,o,s));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(l))p(this._slice(l,u,t,n,r,i,o));else if(0===l.indexOf("?(")){if(!1===this.currEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");const e=l.replace(/^\?\((.*?)\)$/u,"$1"),s=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(e);s?this._walk(t,(e=>{const a=[s[2]],c=s[1]?t[e][s[1]]:t[e];this._trace(a,c,n,r,i,o,!0).length>0&&p(this._trace(u,t[e],push(n,e),t,e,o,!0))})):this._walk(t,(s=>{this._eval(e,t[s],s,n,r,i)&&p(this._trace(u,t[s],push(n,s),t,s,o,!0))}))}else if("("===l[0]){if(!1===this.currEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");p(this._trace(unshift(this._eval(l,t,n.at(-1),n.slice(0,-1),r,i),u),t,n,r,i,o,s))}else if("@"===l[0]){let e=!1;const s=l.slice(1,-2);switch(s){case"scalar":t&&["object","function"].includes(typeof t)||(e=!0);break;case"boolean":case"string":case"undefined":case"function":typeof t===s&&(e=!0);break;case"integer":!Number.isFinite(t)||t%1||(e=!0);break;case"number":Number.isFinite(t)&&(e=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(e=!0);break;case"object":t&&typeof t===s&&(e=!0);break;case"array":Array.isArray(t)&&(e=!0);break;case"other":e=this.currOtherTypeCallback(t,n,r,i);break;case"null":null===t&&(e=!0);break;default:throw new TypeError("Unknown value type "+s)}if(e)return c={path:n,value:t,parent:r,parentProperty:i},this._handleCallback(c,o,"value"),c}else if("`"===l[0]&&t&&Object.hasOwn(t,l.slice(1))){const e=l.slice(1);p(this._trace(u,t[e],push(n,e),t,e,o,s,!0))}else if(l.includes(",")){const e=l.split(",");for(const s of e)p(this._trace(unshift(s,u),t,n,r,i,o,!0))}else!a&&t&&Object.hasOwn(t,l)&&p(this._trace(u,t[l],push(n,l),t,l,o,s,!0))}if(this._hasParentSelector)for(let e=0;e{t(e)}))},JSONPath.prototype._slice=function(e,t,n,r,i,o,s){if(!Array.isArray(n))return;const a=n.length,c=e.split(":"),l=c[2]&&Number.parseInt(c[2])||1;let u=c[0]&&Number.parseInt(c[0])||0,d=c[1]&&Number.parseInt(c[1])||a;u=u<0?Math.max(0,u+a):Math.min(a,u),d=d<0?Math.max(0,d+a):Math.min(a,d);const p=[];for(let e=u;e{p.push(e)}))}return p},JSONPath.prototype._eval=function(e,t,n,r,i,o){this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=i,this.currSandbox._$_property=n,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;const s=e.includes("@path");s&&(this.currSandbox._$_path=JSONPath.toPathString(r.concat([n])));const a=this.currEval+"Script:"+e;if(!JSONPath.cache[a]){let t=e.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(s&&(t=t.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)JSONPath.cache[a]=new this.safeVm.Script(t);else if("native"===this.currEval)JSONPath.cache[a]=new this.vm.Script(t);else if("function"==typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){const e=this.currEval;JSONPath.cache[a]=new e(t)}else{if("function"!=typeof this.currEval)throw new TypeError(`Unknown "eval" property "${this.currEval}"`);JSONPath.cache[a]={runInNewContext:e=>this.currEval(t,e)}}}try{return JSONPath.cache[a].runInNewContext(this.currSandbox)}catch(t){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+t.message+": "+e)}},JSONPath.cache={},JSONPath.toPathString=function(e){const t=e,n=t.length;let r="$";for(let e=1;e{const t=e;return t.openapi&&Object.entries(OPENAPI_FEATURE_DOCS).forEach((([e,n])=>{t.openapi[e]={...t.openapi[e],...n}})),t.readme&&Object.entries(README_FEATURE_DOCS).forEach((([e,n])=>{e in t.readme&&(t.readme[e]={...t.readme[e],...n})})),t}))}function getSupportedFeatures(){return[...Object.keys(OPENAPI_FEATURE_DOCS),"readme"]}class SoftError extends Error{constructor(e){super(e),this.name="SoftError"}}function getFeatureDocsURL(e,t){if(e.url)return"object"==typeof e.url?t.startsWith("3.0")?e.url?.["3.0"]||"This feature is not available on OpenAPI v3.0.":t.startsWith("3.1")?e.url?.[3.1]||"This feature is not available on OpenAPI v3.1.":"":e.url}function buildFeaturesReport(e,t){let n=!1;const r=[""];return t.forEach((t=>{if(t in e.openapi){const i=e.openapi[t];i.present?(r.push(""),r.push(`${t}:`),r.push(...i.locations.map((e=>` ยท ${chalk.yellow(e)}`)))):(r.length&&r[r.length-1].length&&r.push(""),r.push(`${t}: You do not use this.`),n=!0)}})),t.includes("readme")&&(t.length>1&&r[r.length-1].length&&r.push(""),Object.entries(e.readme).forEach((([e,t])=>{t.present?(r.push(`${e}:`),r.push(...t.locations.map((e=>` ยท ${chalk.yellow(e)}`))),r.push("")):(r.push(`${e}: You do not use this.`),n=!0)}))),r[1].length||r.splice(0,1),r[r.length-1].length||r.pop(),{report:r.join("\n"),hasUnusedFeature:n}}function buildFullReport(e,t,n){const r=["Here are some interesting things we found in your API definition. ๐Ÿ•ต๏ธ",""];return Object.entries(e.general).forEach((([,e])=>{let t;if(Array.isArray(e.found)){if(!e.found.length)return;const n=e.found.map((e=>chalk.yellow(e)));t=e.found.length>1?`You are using ${chalk.bold(e.found.length)} ${pluralize(e.name,e.found.length)} throughout your API: ${new Intl.ListFormat("en").format(n)}`:`You are using a single ${e.name} throughout your API: ${n[0]}`}else e.found>1?(t=`You have a total of ${chalk.bold(e.found)} ${pluralize(e.name,e.found)} in your API.`,e.found>100&&(t+=" Wow!")):t=`You have a single ${e.name} in your API.`;r.push(` ยท ${t}`)})),[{component:"openapi",header:"OpenAPI Features"},{component:"readme",header:"ReadMe-Specific Features and Extensions"}].forEach((({component:i,header:o})=>{const s=[[chalk.bold.green("Feature"),chalk.bold.green("Used?"),chalk.bold.green("Description")]];Object.entries(e[i]).forEach((([e,n])=>{const r=[];n.description&&r.push(n.description);const i=getFeatureDocsURL(n,t);i&&r.push(chalk.grey(i)),s.push([e,n.present?"โœ…":"",r.join("\n\n")])})),r.push(""),r.push(o),r.push(srcExports$1.table(s,{border:n,columns:{2:{width:80,wrapWord:!0}}}))})),r.join("\n")}class OpenAPIInspectCommand extends BaseCommand{static summary="Analyze an OpenAPI/Swagger definition for various OpenAPI and ReadMe feature usage.";static description="This command will perform a comprehensive analysis of your API definition to determine how it's utilizing aspects of the OpenAPI Specification (such as circular references, polymorphism, etc.) and any ReadMe-specific extensions you might be using.";static args={spec:specArg};static flags={feature:libExports$3.Flags.string({description:"A specific OpenAPI or ReadMe feature you wish to see detailed information on (if it exists). If any features supplied do not exist within the API definition an exit(1) code will be returned alongside the report.",multiple:!0,options:getSupportedFeatures()}),workingDirectory:workingDirectoryFlag};static examples=[{description:"By default, this command will display a comprehensive table of all OpenAPI and ReadMe features found in your API definition:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file]"},{description:"You can omit the file name and `rdme` will scan your working directory (and any subdirectories) for OpenAPI/Swagger files. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %>"},{description:"If you wish to automate this command, it contains a `--feature` flag so you can filter for one or several specific features. If you pass in one or more `--feature` flags, the command returns a `0` exit code if your definition contains all of the given features and a `1` exit code if your definition lacks any of the given features:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file] --feature circularRefs --feature polymorphism"}];async run(){const{spec:e}=this.args,{workingDirectory:t,feature:n}=this.flags,r=Object.entries(srcExports$1.getBorderCharacters("norc")).map((([e,t])=>({[e]:chalk.gray(t)}))).reduce(((e,t)=>Object.assign(e,t)));if(t){const e=process.cwd();process.chdir(t),this.debug(`switching working directory from ${e} to ${process.cwd()}`)}const{preparedSpec:i,definitionVersion:o}=await prepareOas(e,"openapi inspect",{convertToLatest:!0}),s=JSON.parse(i),a=ora({...oraOptions()});n?.length?a.start(`Analyzing your API definition for usage of ${new Intl.ListFormat("en").format(n.map((e=>"readme"===e?"ReadMe extensions":e)))}...`):a.start("Analyzing your API definition for OpenAPI and ReadMe feature usage...");const c=await analyzeOas(s).catch((e=>{throw this.debug(`analyzer err: ${e.message}`),a.fail(),e}));if(n?.length){a.succeed(`${a.text} done! โœ…`);const{report:e,hasUnusedFeature:t}=buildFeaturesReport(c,n);return t?Promise.reject(new SoftError(e)):Promise.resolve(e)}return a.stop(),Promise.resolve(buildFullReport(c,o.version,r))}}function getUsedRefs(e){return query(["$..['$ref']"],e)}function accumulateUsedRefs(e,t,n){let r;"string"==typeof n&&(r=jsonPointer.get(e,n.substring(1))),void 0!==r&&getUsedRefs(r).forEach((({value:n})=>{t.has(n)||(t.add(n),accumulateUsedRefs(e,t,n))}))}function reducer(e,t={}){const n="tags"in t?t.tags.map((e=>e.toLowerCase())):[],r="paths"in t?Object.entries(t.paths).reduce(((e,[t,n])=>{const r=t.toLowerCase(),i=Array.isArray(n)?n.map((e=>e.toLowerCase())):n.toLowerCase();return e[r]=i,e}),{}):{},i=new Set,o=new Set;if("openapi"!==getAPIDefinitionType(e))throw new Error("Sorry, only OpenAPI definitions are supported.");const s=JSON.parse(JSON.stringify(e));if("security"in s&&Object.values(s.security).forEach((e=>{Object.keys(e).forEach((e=>{i.add(`#/components/securitySchemes/${e}`)}))})),"paths"in s&&(Object.keys(s.paths).forEach((e=>{const t=e.toLowerCase();!Object.keys(r).length||t in r?(Object.keys(s.paths[e]).forEach((a=>{if("parameters"!==a&&Object.keys(r).length&&"*"!==r[t]&&Array.isArray(r[t])&&!r[t].includes(a))return void delete s.paths[e][a];const c=s.paths[e][a];if(n.length){if(!("tags"in c))return void delete s.paths[e][a];if(!c.tags.filter((e=>n.includes(e.toLowerCase()))).length)return void delete s.paths[e][a]}"tags"in c&&c.tags.forEach((e=>{o.add(e)})),getUsedRefs(c).forEach((({value:e})=>{i.add(e)})),"security"in c&&Object.values(c.security).forEach((e=>{Object.keys(e).forEach((e=>{i.add(`#/components/securitySchemes/${e}`)}))}))})),Object.keys(s.paths[e]).length||delete s.paths[e]):delete s.paths[e]})),!Object.keys(s.paths).length))throw new Error("All paths in the API definition were removed. Did you supply the right path name to reduce by?");return i.forEach((e=>accumulateUsedRefs(s,i,e))),"components"in s&&(Object.keys(s.components).forEach((e=>{Object.keys(s.components[e]).forEach((t=>{i.has(`#/components/${e}/${t}`)||delete s.components[e][t]})),Object.keys(s.components[e]).length||delete s.components[e]})),Object.keys(s.components).length||delete s.components),"tags"in s&&(s.tags.forEach(((e,t)=>{o.has(e.name)||delete s.tags[t]})),s.tags=s.tags.filter(Boolean),s.tags.length||delete s.tags),s}class OpenAPIReduceCommand extends BaseCommand{static summary="Reduce an OpenAPI definition into a smaller subset.";static description="Reduce your API definition down to a specific set of tags or paths, which can be useful if you're debugging a problematic schema somewhere, or if you have a file that is too big to maintain.";static args={spec:specArg};static flags={method:libExports$3.Flags.string({description:"Methods to reduce by (can only be used alongside the `path` option)",multiple:!0}),out:libExports$3.Flags.string({description:"Output file path to write reduced file to"}),path:libExports$3.Flags.string({description:"Paths to reduce by",multiple:!0}),tag:libExports$3.Flags.string({description:"Tags to reduce by",multiple:!0}),title:titleFlag,workingDirectory:workingDirectoryFlag};static examples=[{description:"By default, this command will ask you a couple questions about how you wish to reduce the file and then do so:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file]"},{description:"You can omit the file name and `rdme` will scan your working directory (and any subdirectories) for OpenAPI/Swagger files. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %>"},{description:"If you wish to automate this command, you can pass in CLI arguments to bypass the prompts:",command:"<%= config.bin %> <%= command.id %> petstore.json --path /pet/{id} --method get --method put --out petstore.reduced.json"}];async run(){const{spec:e}=this.args,t=this.flags,{title:n,workingDirectory:r}=t;if(r){const e=process.cwd();process.chdir(r),this.debug(`switching working directory from ${e} to ${process.cwd()}`)}const{preparedSpec:i,specPath:o,specType:s}=await prepareOas(e,"openapi reduce",{title:n}),a=JSON.parse(i);if("OpenAPI"!==s)throw new Error("Sorry, this reducer feature in rdme only supports OpenAPI 3.0+ definitions.");if((t.path?.length||t.method?.length)&&t.tag?.length)throw new Error("You can pass in either tags or paths/methods, but not both.");prompts.override({reduceBy:t.tag?.length?"tags":t.path?.length?"paths":void 0,tags:t.tag,paths:t.path,methods:t.method,outputPath:t.out});const c=await promptTerminal([{type:"select",name:"reduceBy",message:"Would you like to reduce by paths or tags?",choices:[{title:"Tags",value:"tags"},{title:"Paths",value:"paths"}]},{type:(e,t)=>"tags"===t.reduceBy?"multiselect":null,name:"tags",message:"Choose which tags to reduce by:",min:1,choices:()=>new Oas(a).getTags().map((e=>({title:e,value:e})))},{type:(e,t)=>"paths"===t.reduceBy?"multiselect":null,name:"paths",message:"Choose which paths to reduce by:",min:1,choices:()=>Object.keys(a.paths||[]).map((e=>({title:e,value:e})))},{type:(e,t)=>"paths"===t.reduceBy?"multiselect":null,name:"methods",message:"Choose which HTTP methods that are available across these paths to reduce by:",min:1,choices:(e,n)=>{let r=n.paths.map((e=>Object.keys(a.paths?.[e]||{}))).flat().filter((e=>"parameters"!==e.toLowerCase()));if(!r.length&&!t.method?.length)throw new Error("All paths in the API definition were removed. Did you supply the right path name to reduce by?");return r=[...new Set(r)],r.sort(),r.map((e=>({title:e.toUpperCase(),value:e})))}},{type:"text",name:"outputPath",message:"Enter the path to save your reduced API definition to:",initial:()=>{const e=path$1.extname(o);return`${path$1.basename(o).split(e)[0]}.reduced${e}`},validate:e=>validateFilePath(e)}]);this.debug(`reducing by ${c.reduceBy}`),this.debug(`options being supplied to the reducer: ${JSON.stringify({tags:c.tags,paths:c.paths,methods:c.methods})}`),this.debug(`about to reduce spec located at ${o}`);const l=ora({...oraOptions()});let u;l.start("Reducing your API definition...");try{u=reducer(a,{tags:c.tags||[],paths:(c.paths||[]).reduce(((e,t)=>(e[t]=c.methods,e)),{})}),l.succeed(`${l.text} done! โœ…`)}catch(e){throw this.debug(`reducer err: ${e.message}`),l.fail(),e}return this.debug(`saving reduced spec to ${c.outputPath}`),fs$6.writeFileSync(c.outputPath,JSON.stringify(u,null,2)),this.debug("reduced spec saved"),Promise.resolve(chalk.green(`Your reduced API definition has been saved to ${c.outputPath}! ๐Ÿค`))}}class OpenAPIValidateCommand extends BaseCommand{static summary="Validate your OpenAPI/Swagger definition.";static description="Perform a local validation of your API definition (no ReadMe account required!), which can be useful when constructing or editing your API definition.";static id="openapi validate";static args={spec:specArg};static examples=[{description:"This will validate the API definition at the given URL or path:",command:"<%= config.bin %> <%= command.id %> [url-or-local-path-to-file]"},{description:"You can omit the file name and `rdme` will scan your working directory (and any subdirectories) for OpenAPI/Swagger files. This approach will provide you with CLI prompts, so we do not recommend this technique in CI environments.",command:"<%= config.bin %> <%= command.id %>"}];static flags={github:githubFlag,workingDirectory:workingDirectoryFlag};async run(){if(this.flags.workingDirectory){const e=process.cwd();process.chdir(this.flags.workingDirectory),this.debug(`switching working directory from ${e} to ${process.cwd()}`)}const{specPath:e,specType:t}=await prepareOas(this.args.spec,OpenAPIValidateCommand.id);return this.runCreateGHAHook({parsedOpts:{...this.flags,spec:e},result:chalk.green(`${e} is a valid ${t} API definition!`)})}}function castStringOptToBool(e,t){if(e){if("true"===e)return!0;if("false"===e)return!1;throw new Error(`Invalid option passed for '${t}'. Must be 'true' or 'false'.`)}}class CreateVersionCommand extends BaseCommand{static description="Create a new version for your project.";static id="versions create";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static args={version:libExports$3.Args.string({description:"The version you'd like to create. Must be valid SemVer (https://semver.org/)",required:!0})};static flags={fork:libExports$3.Flags.string({description:"The semantic version which you'd like to fork from."}),key:keyFlag,...baseVersionFlags};static examples=[{description:"Create a new version (with no flags):",command:"<%= config.bin %> <%= command.id %>"},{description:"If you wish to automate the process of creating a new project version, and not have the CLI prompt you for input, you can do so by supplying the necessary flags:",command:"<%= config.bin %> <%= command.id %> --fork={version-fork} --main={true|false} --beta={true|false} --deprecated={true|false} --hidden={true|false}"}];async run(){let e;const{version:t}=this.args,{key:n,fork:r,codename:i,main:o,beta:s,deprecated:a,hidden:c}=this.flags;if(!semver.valid(semver.coerce(t)))return Promise.reject(new Error(`Please specify a semantic version. See \`${this.config.bin} help ${this.id}\` for help.`));r||(e=await readmeAPIv1Fetch("/api/v1/version",{method:"get",headers:cleanAPIv1Headers(n)}).then(handleAPIv1Res)),prompts.override({from:r,is_beta:castStringOptToBool(s,"beta"),is_deprecated:castStringOptToBool(a,"deprecated"),is_hidden:castStringOptToBool(c,"hidden"),is_stable:castStringOptToBool(o,"main")});const l=await promptTerminal(versionPrompt(e||[])),u={codename:i,version:t,from:l.from,is_beta:l.is_beta,is_deprecated:l.is_deprecated,is_hidden:l.is_hidden,is_stable:l.is_stable};return readmeAPIv1Fetch("/api/v1/version",{method:"post",headers:cleanAPIv1Headers(n,void 0,new Headers({Accept:"application/json","Content-Type":"application/json"})),body:JSON.stringify(u)}).then(handleAPIv1Res).then((()=>Promise.resolve(`Version ${t} created successfully.`)))}}class DeleteVersionCommand extends BaseCommand{static id="versions delete";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static description="Delete a version associated with your ReadMe project.";static args={version:libExports$3.Args.string({description:"The version you'd like to delete."})};static flags={key:keyFlag};static examples=[{description:"Remove a specific version from your project, as well as all of the associated documentation:",command:"<%= config.bin %> <%= command.id %> "}];async run(){const{version:e}=this.args,{key:t}=this.flags,n=await getProjectVersion(e,t);return this.debug(`selectedVersion: ${n}`),readmeAPIv1Fetch(`/api/v1/version/${n}`,{method:"delete",headers:cleanAPIv1Headers(t)}).then(handleAPIv1Res).then((()=>Promise.resolve(`Version ${n} deleted successfully.`)))}}class VersionsCommand extends BaseCommand{static id="versions";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static description="List versions available in your project or get a version by SemVer (https://semver.org/).";static flags={key:keyFlag,version:libExports$3.Flags.string({description:"A specific project version to view."})};static examples=[{description:"Get all versions associated with your project:",command:"<%= config.bin %> <%= command.id %>"},{description:"Get all information about a particular version:",command:"<%= config.bin %> <%= command.id %> --version={project-version}"}];async run(){const{key:e,version:t}=this.flags;return readmeAPIv1Fetch(t?`/api/v1/version/${t}`:"/api/v1/version",{method:"get",headers:cleanAPIv1Headers(e)}).then(handleAPIv1Res).then((e=>Promise.resolve(JSON.stringify(e,null,2))))}}class UpdateVersionCommand extends BaseCommand{static id="versions update";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static description="Update an existing version for your project.";static args={version:libExports$3.Args.string({description:"The existing version you'd like to update."})};static flags={newVersion:libExports$3.Flags.string({description:"What should the version be renamed to?"}),key:keyFlag,...baseVersionFlags};static examples=[{description:"Update an existing version (with no flags):",command:"<%= config.bin %> <%= command.id %>"},{description:"If you wish to automate the process of updating a project version, and not have the CLI prompt you for input, you can do so by supplying the necessary flags:",command:"<%= config.bin %> <%= command.id %> --newVersion={new-version-name} --main={true|false} --beta={true|false} --deprecated={true|false} --hidden={true|false}"}];async run(){const{version:e}=this.args,{key:t,newVersion:n,codename:r,main:i,beta:o,hidden:s,deprecated:a}=this.flags,c=await getProjectVersion(e,t);this.debug(`selectedVersion: ${c}`);const l=await readmeAPIv1Fetch(`/api/v1/version/${c}`,{method:"get",headers:cleanAPIv1Headers(t)}).then(handleAPIv1Res);prompts.override({is_beta:castStringOptToBool(o,"beta"),is_deprecated:castStringOptToBool(a,"deprecated"),is_hidden:castStringOptToBool(s,"hidden"),is_stable:castStringOptToBool(i,"main"),newVersion:n});const u=await promptTerminal(versionPrompt([],l)),d={codename:r,version:u.newVersion||c,is_beta:u.is_beta,is_deprecated:u.is_deprecated,is_hidden:u.is_hidden,is_stable:u.is_stable};return readmeAPIv1Fetch(`/api/v1/version/${c}`,{method:"put",headers:cleanAPIv1Headers(t,void 0,new Headers({Accept:"application/json","Content-Type":"application/json"})),body:JSON.stringify(d)}).then(handleAPIv1Res).then((()=>Promise.resolve(`Version ${c} updated successfully.`)))}}class WhoAmICommand extends BaseCommand{static description="Displays the current user and project authenticated with ReadMe.";async run(){const{email:e,project:t}=getCurrentConfig();return e&&t?Promise.resolve(`You are currently logged in as ${chalk.green(e)} to the ${chalk.blue(t)} project.`):Promise.reject(new Error(`Please login using \`${this.config.bin} login\`.`))}}const hook$1=async function(e){const t=e.result,n=e.command,r=e.parsedOpts;return createGHA.call(this,t,n,r)},hook=async function(e){this.debug("configstore location:",configstore.path),e.Command?.flags?.key?(this.debug("current command has --key flag"),isTest()?e.Command.flags.key=keyFlag:e.Command.flags.key=libExports$3.Flags.string({parse:async e=>{this.debug("--key flag detected in parse function");const{email:t,project:n}=getCurrentConfig.call(this);return e&&configstore.get("apiKey")===e&&info(`๐Ÿ”‘ ${chalk.green(t)} is currently logged in, using the stored API key for this project: ${chalk.blue(n)}`,{includeEmojiPrefix:!1}),e},default:async()=>{this.debug("no --key flag detected, running default function");const{apiKey:e}=getCurrentConfig.call(this);if(e)return this.debug("api key found in config, returning"),e;if(isCI())throw new Error("No project API key provided. Please use `--key`.");info("Looks like you're missing a ReadMe API key, let's fix that! ๐Ÿฆ‰",{includeEmojiPrefix:!1});return info(await loginFlow(),{includeEmojiPrefix:!1}),configstore.get("apiKey")}})):this.debug("current command does not have --key flag"),e.Command?.flags?.github?(this.debug("current command has --github flag"),isCI()&&(this.debug("in CI environment"),e.Command.flags.github=libExports$3.Flags.boolean({parse:()=>{throw new Error("The `--github` flag is only for usage in non-CI environments.")}})),process.env.TEST_RDME_CREATEGHA&&(e.Command.flags.github=githubFlag)):this.debug("current command does not have --github flag")},COMMANDS={categories:CategoriesCommand,"categories:create":CategoriesCreateCommand,changelogs:ChangelogsCommand,custompages:CustomPagesCommand,docs:DocsCommand,"docs:prune":DocsPruneCommand,versions:VersionsCommand,"versions:create":CreateVersionCommand,"versions:delete":DeleteVersionCommand,"versions:update":UpdateVersionCommand,login:LoginCommand,logout:LogoutCommand,open:OpenCommand,openapi:OpenAPICommand,"openapi:convert":OpenAPIConvertCommand,"openapi:inspect":OpenAPIInspectCommand,"openapi:reduce":OpenAPIReduceCommand,"openapi:validate":OpenAPIValidateCommand,whoami:WhoAmICommand};export{COMMANDS,hook$1 as createGHA,hook as prerun}; diff --git a/documentation/commands/categories.md b/documentation/commands/categories.md index 237c23592..8779ff5ab 100644 --- a/documentation/commands/categories.md +++ b/documentation/commands/categories.md @@ -15,9 +15,7 @@ USAGE $ rdme categories --key [--version ] FLAGS - --key= (required) An API key for your ReadMe project. Note that API authentication is required despite - being omitted from the example usage. See our docs for more information: - https://github.com/readmeio/rdme/tree/v9#authentication + --key= (required) ReadMe project API key --version= ReadMe project version DESCRIPTION @@ -29,13 +27,11 @@ EXAMPLES $ rdme categories --version={project-version} FLAG DESCRIPTIONS - --key= + --key= ReadMe project API key An API key for your ReadMe project. Note that API authentication is required despite being omitted from the example usage. See our docs for more information: https://github.com/readmeio/rdme/tree/v9#authentication - ReadMe project API key - --version= ReadMe project version If running command in a CI environment and this option is not passed, the main project version will be used. See our @@ -56,9 +52,7 @@ ARGUMENTS FLAGS --categoryType=